/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#5a5a5a #1b1b1b}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track{background:#1b1b1b}*::-webkit-scrollbar-thumb{background:#555;border:2px solid #1b1b1b;border-radius:8px}*::-webkit-scrollbar-thumb:hover{background:#6d6d6d}*::-webkit-scrollbar-corner{background:#1b1b1b}html,body,#root{margin:0;height:100%;font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:#181818;color:#d4d4d4}button,input{font:inherit}.login{height:100%;display:grid;place-items:center;background:radial-gradient(circle at top,#28384b,#141414 55%)}.login section{width:360px;padding:36px;background:#202020;border:1px solid #3d3d3d;border-radius:10px;box-shadow:0 20px 60px #0008}.login svg{color:#59b4ff}.login h1{margin:10px 0 4px}.login p{color:#aaa;margin-top:0}.login form{display:grid;gap:15px;margin-top:25px}.login label{display:grid;gap:6px;font-size:13px;color:#bbb}.login input{background:#111;border:1px solid #555;color:#fff;padding:10px;border-radius:4px}.login form button,.save{border:0;background:#0e639c;color:#fff;padding:10px;border-radius:4px;cursor:pointer}.error{color:#ff9090;font-size:13px}.workspace{height:100%;display:grid;grid-template-rows:42px 1fr 27px}header{display:flex;justify-content:space-between;align-items:center;padding:0 12px;background:#252526;border-bottom:1px solid #333;font-size:13px}.brand,.header-right,.header-nav{display:flex;gap:8px;align-items:center}.header-nav{height:100%;gap:0}.header-nav button{height:100%;border:0;background:transparent;color:#aaa;padding:0 14px;cursor:pointer;display:flex;align-items:center;gap:6px}.header-nav button.active{color:#fff;border-bottom:2px solid #007acc}.brand span{color:#8b8b8b;font-size:11px;letter-spacing:.08em}.header-right button{background:transparent;border:0;color:#ccc;display:grid;place-items:center;cursor:pointer}.locale-select{background:#333;border:1px solid #555;border-radius:3px;color:#ddd;font-size:12px;padding:4px 6px}.body{position:relative;min-height:0;display:grid;grid-template-columns:270px 1fr}.resize-handle{position:absolute;z-index:10;width:8px;cursor:col-resize}.resize-handle:hover,.resizing .resize-handle{background:#007acc66}.explorer-resize{top:0;bottom:0;left:calc(var(--explorer-width, 270px) - 4px)}.body .explorer-resize{left:calc(var(--explorer-width, 270px) - 4px)}body.resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.body>aside{position:relative;min-width:0}aside{background:#181818;border-right:1px solid #333;overflow:auto}.explorer-title{height:37px;padding:10px 13px;display:flex;justify-content:space-between;font-size:11px;font-weight:700;letter-spacing:.07em}.explorer-title span{display:flex}.explorer-title button{border:0;background:transparent;color:#ccc;cursor:pointer;padding:0 3px;display:flex;align-items:center}.tree{font-size:13px}.tree-file{display:flex;align-items:center;height:25px}.tree-file .tree-item{flex:1;min-width:0}.tree-file.selected{background:#37373d}.tree-item{display:flex;align-items:center;gap:5px;width:100%;height:25px;border:0;background:transparent;color:#ccc;text-align:left;padding:0 8px;cursor:pointer}.tree-item:hover{background:#2a2d2e}.tree-item.selected{background:#37373d;color:#fff}.copy-endpoints{display:grid;place-items:center;width:26px;height:25px;border:0;background:transparent;color:#a9d7ff;cursor:pointer;opacity:0}.tree-file:hover .copy-endpoints,.tree-file.selected .copy-endpoints{opacity:1}.copy-endpoints:hover{background:#094771;color:#fff}.tree-item.dragging{opacity:.45}.tree-item.folder:hover{outline:1px solid #007acc;outline-offset:-1px}.tree-item svg{color:#c5c5c5}.tree-item.folder svg{color:#dcb67a}.tree-item.file svg{color:#5fb3f7}.tree-children{padding-left:22px}.editor-pane{min-width:0;background:#1e1e1e}.tabs{height:36px;background:#181818;display:flex;overflow:auto}.tab{border:0;border-right:1px solid #272727;background:#2d2d2d;color:#aaa;padding:0 12px;white-space:nowrap;cursor:pointer;font-size:12px}.tab.active{background:#1e1e1e;color:#fff;border-top:1px solid #0e639c}.tab b{font-size:16px;font-weight:400;margin-left:12px;color:#aaa}.toolbar{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #303030;color:#aaa;font-size:12px}.toolbar div{display:flex;gap:8px}.toolbar .editor-actions{align-items:center}.editor-actions small{color:#75beff;white-space:nowrap}.toolbar button{background:#333;border:1px solid #555;color:#ddd;border-radius:3px;padding:5px 9px;cursor:pointer}.toolbar button:disabled{cursor:not-allowed;opacity:.7}.toolbar .validate{display:inline-flex;align-items:center;gap:5px}.toolbar .validate.valid{border-color:#4f9d61;color:#8ee39a}.toolbar .validate.invalid{border-color:#c35a54;color:#ff9c94}.toolbar .save{display:inline-flex;gap:5px;align-items:center;background:#0e639c;border-color:#0e639c}.toolbar .save:disabled{background:#333;border-color:#444;color:#777;cursor:not-allowed}.toolbar .test{display:inline-flex;align-items:center;gap:5px}.toolbar .test.active{border-color:#0e639c;background:#11354d;color:#fff}.editor-split{position:relative;display:block}.test-resize{top:0;bottom:0;left:calc(100% - var(--test-width, 36%) - 4px)}.editor-split.with-test{display:grid;grid-template-columns:minmax(0,64%) minmax(300px,36%);height:calc(100vh - 155px)}.editor-split.with-test .code-editor .monaco-editor{height:calc(100vh - 155px)!important}.test-panel{height:calc(100vh - 155px);overflow:auto;border-left:1px solid #3a3a3a;background:#1a1a1a;padding:14px;display:flex;flex-direction:column;gap:12px}.test-panel>*{flex:none}.test-panel h3{margin:0;font-size:15px}.test-tabs{display:flex;border-bottom:1px solid #3a3a3a;margin:0 -14px;padding:0 14px}.test-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#aaa;padding:8px 12px;cursor:pointer}.test-tabs button.active{border-color:#0e639c;color:#fff}.test-panel label{display:grid;gap:5px;color:#aaa;font-size:12px}.test-panel select,.test-panel textarea,.test-panel input{width:100%;background:#111;border:1px solid #555;border-radius:3px;color:#e5e5e5;padding:8px;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.test-panel textarea{min-height:130px;resize:vertical}.test-panel textarea:disabled{opacity:.45}.schedule-test{display:flex;flex-direction:column;gap:12px}.schedule-test small{color:#aaa;font-size:12px}.payload-field{display:grid;gap:5px;min-height:0;color:#aaa;font-size:12px}.payload-label,.payload-heading{display:flex;align-items:center;justify-content:space-between}.payload-tools{display:flex;align-items:center;gap:4px}.format-payload,.copy-payload{display:grid;place-items:center;width:22px;height:20px;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;color:#aaa;cursor:pointer}.format-payload:hover,.copy-payload:hover{border-color:#555;background:#333;color:#d8ecff}.payload-editor{height:360px;min-height:0;flex:none;border:1px solid #555;border-radius:3px;overflow:hidden;background:#111}.payload-editor .cm-editor{height:360px!important;max-height:360px;min-height:0;overflow:hidden;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.payload-editor .cm-scroller{height:100%!important;max-height:100%;min-height:0;overflow-y:scroll!important;overflow-x:auto;scrollbar-gutter:stable}.payload-heading h4{margin:16px 0 5px!important}.payload-heading .copy-payload{margin-bottom:0}.json-viewer{height:min(60vh,560px);max-height:min(60vh,560px);min-height:0;border:1px solid #303030;border-radius:3px;overflow:hidden;background:#111}.json-viewer .cm-editor{height:min(60vh,560px)!important;max-height:min(60vh,560px);min-height:0;overflow:hidden;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.json-viewer .cm-scroller{height:100%!important;max-height:100%;min-height:0;overflow-y:scroll!important;overflow-x:auto;scrollbar-gutter:stable}.result-viewer{position:relative;max-height:230px;border:1px solid #303030;border-radius:3px;overflow:hidden;background:#101010}.result-viewer-toolbar{position:absolute;z-index:1;top:5px;right:5px}.result-viewer .copy-payload{background:#1e1e1e;border-color:#555}.result-viewer .cm-editor{height:230px!important;max-height:230px;min-height:0;overflow:hidden;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.result-viewer .cm-scroller{height:100%!important;max-height:100%;min-height:0;overflow-y:scroll!important;overflow-x:auto;scrollbar-gutter:stable;padding-right:30px}.send-test{border:0;border-radius:3px;background:#0e639c;color:#fff;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}.test-actions{display:flex;justify-content:center;gap:4%}.test-actions .send-test,.test-actions .listen-test,.test-actions .copy-curl{width:28%;justify-content:center}.listen-test,.copy-curl{border:1px solid #555;border-radius:3px;background:#333;color:#ddd;padding:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px}.listen-test:hover,.copy-curl:hover{border-color:#0e639c;background:#11354d}.listen-test.listening{border-color:#48a65b;background:#173c20;color:#9cf0a9;animation:listen-pulse 1s ease-in-out infinite}@keyframes listen-pulse{50%{background:#267238;color:#e2ffe5;box-shadow:0 0 10px #48a65b88}}.copy-curl{padding:8px}.send-test:disabled{opacity:.6;cursor:not-allowed}.listening-status{color:#8ed0ff!important;line-height:1.4}.background-pending{display:flex;align-items:center;gap:6px;color:#dcdcaa!important;line-height:1.4}.background-log{border-color:#0e639c}.background-running{display:inline-flex;align-items:center;gap:5px;margin-left:8px;color:#dcdcaa;font-size:12px;font-weight:400}.test-error{color:#ff9c94;font-size:12px}.test-result,.test-log{border-top:1px solid #3b3b3b;padding-top:10px}.test-result h4,.test-log h4{margin:0 0 7px;font-size:13px}.test-result h4 span{margin-left:6px}.success{color:#8ee39a}.failure{color:#ff9c94}.test-panel small,.test-panel p{color:#aaa;font-size:12px;margin:3px 0}.test-panel pre{margin:7px 0 0;max-height:230px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#101010;border:1px solid #303030;border-radius:3px;padding:8px;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.empty-test{color:#aaa}.empty-test p{font-size:13px;line-height:1.5}.empty{height:calc(100% - 36px);display:grid;place-content:center;text-align:center;color:#888}.empty h2{color:#ddd;margin-bottom:0}footer{display:flex;justify-content:space-between;align-items:center;padding:0 12px;background:#007acc;color:#fff;font-size:12px}.context-menu{position:fixed;z-index:20;min-width:190px;padding:5px;background:#252526;border:1px solid #454545;border-radius:4px;box-shadow:0 8px 24px #0008}.context-menu button{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;color:#ddd;padding:8px 10px;text-align:left;font-size:13px;cursor:pointer}.context-menu button:hover{background:#094771}.context-menu button.danger{color:#ff9c9c}.context-menu button.danger:hover{background:#6b2020}.context-menu hr{border:0;border-top:1px solid #444;margin:4px 0}.logs-screen{min-height:0;background:#1e1e1e;display:grid;grid-template-rows:auto 1fr}.logs-filters{display:flex;gap:8px;align-items:end;padding:12px;border-bottom:1px solid #333;background:#252526}.logs-filters input,.logs-filters select{display:block;background:#171717;border:1px solid #555;color:#ddd;border-radius:3px;padding:6px}.logs-filters label{display:grid;gap:3px;color:#aaa;font-size:11px}.logs-filters button{background:#0e639c;border:0;border-radius:3px;color:#fff;padding:7px 12px;cursor:pointer}.logs-filters span{margin-left:auto;color:#aaa;font-size:12px}.logs-content{position:relative;min-height:0;display:grid;grid-template-columns:minmax(580px,1fr) 520px}.logs-resize{top:0;bottom:0}.log-table{overflow:auto}.log-row{width:100%;display:grid;grid-template-columns:180px 100px minmax(0,1fr) 65px 86px;gap:8px;align-items:center;min-height:33px;padding:0 12px;border:0;border-bottom:1px solid #2a2a2a;background:transparent;color:#ccc;text-align:left;font-size:12px;cursor:pointer}.log-row:not(.log-heading):hover,.log-row.selected{background:#2a2d2e}.log-heading{position:sticky;top:0;background:#252526;color:#aaa;font-size:11px;font-weight:700;cursor:default}.log-row span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.method{font-weight:700}.method.POST{color:#65b7f3}.method.GET,.status{color:#7dcc7d}.error-status{color:#f48771}.warn-status{color:#dcdcaa}.running-status,.log-running{color:#dcdcaa;display:flex;align-items:center;gap:6px}.log-spinner{animation:sync-spin 1s linear infinite}.log-detail{overflow:auto;border-left:1px solid #333;padding:14px;background:#181818;font-size:12px}.log-detail h3{font-size:14px;margin-top:0}.log-detail h4{margin:16px 0 5px;color:#aaa}.log-detail pre{margin:0;white-space:pre-wrap;word-break:break-word;padding:9px;background:#111;border:1px solid #303030;border-radius:3px;color:#ccc}.log-detail .stack{color:#f48771}.log-empty{color:#888;text-align:center;padding-top:50px}.terminal-screen{min-height:0;background:#111;padding:14px;position:relative}.terminal-host{height:calc(100vh - 98px);width:100%}.terminal-disabled{display:grid;place-content:center;text-align:center;color:#bbb}.terminal-disabled h2{color:#eee}.terminal-message{position:absolute;bottom:18px;left:18px;color:#f48771;font-size:12px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;background:#0009}.new-file-dialog{width:440px;padding:22px;background:#252526;border:1px solid #555;border-radius:7px;box-shadow:0 18px 60px #000}.source-control{min-height:0;overflow:auto;padding:28px;background:#1e1e1e}.source-control>header{height:auto;padding:0 0 20px;margin-bottom:20px;display:flex;justify-content:flex-start;gap:10px;background:transparent;border-bottom:1px solid #3a3a3a}.source-control>header>svg{color:#8ed0ff;margin-top:2px}.source-control h2{margin:0;font-size:20px}.source-control header p{margin:3px 0 0;color:#aaa;font-size:12px}.source-toolbar{display:flex;gap:12px;align-items:end;margin-bottom:20px}.source-toolbar label{display:grid;flex:1;gap:6px;color:#bbb;font-size:12px}.source-toolbar input{background:#111;border:1px solid #666;border-radius:3px;color:#fff;padding:9px}.source-toolbar button{width:40px;height:36px;border:1px solid #0e639c;border-radius:3px;background:#0e639c;color:#fff;padding:0;cursor:pointer;display:grid;place-items:center}.syncing-icon{animation:sync-spin 1s linear infinite}@keyframes sync-spin{to{transform:rotate(360deg)}}.source-toolbar button:disabled{opacity:.55;cursor:not-allowed}.source-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.source-heading h3{margin:0;font-size:13px}.source-heading span{color:#aaa;font-size:12px}.source-changes{border:1px solid #444;border-radius:4px;background:#1b1b1b}.source-changes label{display:grid;grid-template-columns:20px 1fr auto;gap:8px;align-items:center;padding:11px;border-bottom:1px solid #333;font-size:13px}.source-changes label:last-child{border-bottom:0}.source-changes small{color:#8ed0ff;text-transform:capitalize}.source-changes p{margin:16px;color:#aaa;font-size:13px}.git-success{color:#8ee39a}.new-file-dialog h2{margin:0 0 8px;font-size:17px}.dialog-location{margin:0 0 18px;color:#aaa;font-size:12px}.dialog-location code{color:#8ed0ff}.new-file-dialog>label{display:grid;gap:6px;color:#bbb;font-size:12px}.new-file-dialog input[type=text],.new-file-dialog>label input{background:#111;border:1px solid #666;border-radius:3px;color:#fff;padding:9px}.file-kind{display:grid;gap:8px;margin:18px 0}.file-kind label{display:grid;grid-template-columns:18px 1fr;column-gap:8px;padding:10px;border:1px solid #444;border-radius:4px;cursor:pointer}.file-kind label.selected{border-color:#0e639c;background:#11354d}.file-kind input{grid-row:span 2;margin:3px 0}.file-kind b{font-size:13px}.file-kind span{color:#aaa;font-size:12px;margin-top:3px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dialog-actions button{border:1px solid #555;background:#333;color:#eee;border-radius:3px;padding:7px 13px;cursor:pointer}.dialog-actions .primary{border-color:#0e639c;background:#0e639c}.git-preview{width:min(640px,calc(100vw - 32px));max-height:85vh;padding:22px;background:#252526;color:#ddd;border:1px solid #555;border-radius:7px}.git-preview::backdrop{background:#0009}.git-preview h2{margin:0;font-size:18px}.git-preview h3,.git-preview p,.git-preview li{font-size:13px;overflow-wrap:anywhere}.git-preview ul{max-height:24vh;overflow:auto;padding-left:24px}.git-preview .dialog-actions button:disabled{opacity:.55;cursor:not-allowed}
