/**
 * 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 .xterm-scroll-area{visibility:hidden}.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{-webkit-user-select:text;user-select:text;white-space:pre}.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}.ac-chat{--ac-bg: #0d1117;--ac-fg: #e6edf3;--ac-muted: #8b949e;--ac-border: #232c3d;--ac-accent: #4dd0e1;--ac-user: #5fd75f;--ac-panel: #161b22;--ac-radius: 12px;--ac-mono: ui-monospace, SFMono-Regular, Menlo, monospace;display:flex;flex-direction:column;gap:10px;height:100%;background:var(--ac-bg);color:var(--ac-fg);font:15px/1.55 system-ui,sans-serif}.ac-transcript{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding:14px}.ac-transcript>*{flex-shrink:0}.ac-msg{display:flex;gap:8px}.ac-msg-user{color:var(--ac-user)}.ac-msg-prefix{font-family:var(--ac-mono);opacity:.8}.ac-msg-body{min-width:0}.ac-msg-md .ac-msg-body{color:var(--ac-fg)}.ac-p{margin:0 0 8px}.ac-h{margin:12px 0 6px;line-height:1.25}.ac-list{margin:6px 0;padding-left:22px}.ac-quote{border-left:3px solid var(--ac-border);margin:8px 0;padding:2px 12px;color:var(--ac-muted)}.ac-link{color:var(--ac-accent);text-decoration:underline}.ac-code-inline{font-family:var(--ac-mono);background:var(--ac-panel);border:1px solid var(--ac-border);border-radius:6px;padding:1px 5px;font-size:.9em}.ac-code-block{font-family:var(--ac-mono);background:var(--ac-panel);border:1px solid var(--ac-border);border-radius:var(--ac-radius);padding:12px 14px;overflow-x:auto;margin:10px 0}.ac-tool{border:1px solid var(--ac-border);border-radius:10px;background:var(--ac-panel);margin:2px 0;overflow:hidden;flex-shrink:0}.ac-tool-error{border-color:#b3403a}.ac-tool-head{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;color:var(--ac-accent);padding:8px 12px;cursor:pointer;font:inherit;text-align:left}.ac-tool-caret{color:var(--ac-muted)}.ac-tool-name{font-family:var(--ac-mono);font-weight:600}.ac-tool-summary{color:var(--ac-muted);font-family:var(--ac-mono);font-size:.85em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ac-tool-body{padding:0 12px 10px}.ac-tool-args,.ac-tool-result{font-family:var(--ac-mono);font-size:.85em;background:var(--ac-bg);border:1px solid var(--ac-border);border-radius:8px;padding:8px 10px;overflow-x:auto;margin:6px 0 0}.ac-tool-result-error{color:#ff8a80}.ac-working{display:flex;align-items:center;gap:8px;padding:6px 14px;color:var(--ac-muted);font-family:var(--ac-mono);font-size:13px}.ac-working-text{background:linear-gradient(90deg,var(--ac-muted) 30%,var(--ac-accent) 50%,var(--ac-muted) 70%);background-size:200% auto;-webkit-background-clip:text;background-clip:text;color:transparent;animation:ac-shimmer 1.6s linear infinite}.ac-working-spinner{width:9px;height:9px;border-radius:50%;background:var(--ac-accent);animation:ac-pulse 1s ease-in-out infinite}@keyframes ac-shimmer{to{background-position:-200% center}}@keyframes ac-pulse{0%,to{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}.ac-composer{display:flex;gap:8px;align-items:flex-end;padding:12px 14px;border-top:1px solid var(--ac-border)}.ac-composer-input{flex:1;resize:none;background:var(--ac-panel);color:var(--ac-fg);border:1px solid var(--ac-border);border-radius:10px;padding:10px 12px;font:inherit;min-height:20px;max-height:180px}.ac-composer-input:focus{outline:none;border-color:var(--ac-accent)}.ac-composer-send{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--ac-accent);color:#00121a;border:0;cursor:pointer;flex:none}.ac-composer-send:disabled{opacity:.4;cursor:default}:root{--ac-bg: #0d1117;--ac-fg: #e6edf3;--ac-muted: #8b949e;--ac-border: #232c3d;--ac-accent: #4dd0e1;--ac-user: #5fd75f;--ac-panel: #161b22;--ac-radius: 12px;--ac-mono: ui-monospace, SFMono-Regular, Menlo, monospace}.ac-chatpanel{display:flex;flex-direction:column;height:100%;background:var(--ac-bg);color:var(--ac-fg);font:15px/1.55 system-ui,sans-serif}.ac-chatpanel-head{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;border-bottom:1px solid var(--ac-border);font-size:14px}.ac-chatpanel-title{font-weight:600}.ac-chatpanel-stats{color:var(--ac-muted);font-family:var(--ac-mono);font-size:12.5px}.ac-status{text-transform:capitalize}.ac-status-running{color:var(--ac-accent)}.ac-status-paused{color:#ffd75f}.ac-terminal{display:flex;flex-direction:column;height:100%;background:#0b0e14;border:1px solid var(--ac-border);border-radius:var(--ac-radius);overflow:hidden}.ac-terminal-head{padding:6px 12px;font-family:var(--ac-mono);font-size:12px;color:var(--ac-muted);border-bottom:1px solid var(--ac-border)}.ac-terminal-host{flex:1;min-height:0;padding:6px}.ac-explorer{background:var(--ac-panel);border:1px solid var(--ac-border);border-radius:var(--ac-radius);overflow:auto;font-size:13px;color:var(--ac-fg)}.ac-explorer-head{padding:8px 12px;font-weight:600;color:var(--ac-muted);border-bottom:1px solid var(--ac-border)}.ac-tree-row{padding:4px 8px;cursor:pointer;white-space:nowrap;font-family:var(--ac-mono)}.ac-tree-row:hover{background:#ffffff0d}.ac-tree-row.ac-active{background:#4dd0e129;color:var(--ac-accent)}.ac-tree-caret{opacity:.7}.ac-dir{color:var(--ac-fg)}.ac-editor-host{height:100%;overflow:hidden;border:1px solid var(--ac-border);border-radius:var(--ac-radius)}.ac-editor-host .cm-editor{height:100%}.ac-askuser{border:1px solid var(--ac-accent);border-radius:var(--ac-radius);background:var(--ac-panel);padding:12px 14px;margin:8px 0}.ac-askuser-header{display:inline-block;font-family:var(--ac-mono);font-size:11px;text-transform:uppercase;color:var(--ac-accent);margin-bottom:4px}.ac-askuser-question{font-weight:600;margin-bottom:10px}.ac-askuser-options{display:flex;flex-direction:column;gap:6px}.ac-askuser-option{text-align:left;background:var(--ac-bg);border:1px solid var(--ac-border);border-radius:8px;padding:8px 10px;color:var(--ac-fg);cursor:pointer;display:flex;flex-direction:column;gap:2px}.ac-askuser-option:hover,.ac-askuser-option.ac-selected{border-color:var(--ac-accent)}.ac-askuser-label{font-weight:600}.ac-askuser-desc{color:var(--ac-muted);font-size:13px}.ac-askuser-submit{margin-top:10px;background:var(--ac-accent);color:#001016;border:none;border-radius:8px;padding:8px 14px;font-weight:600;cursor:pointer}.ac-askuser-submit:disabled{opacity:.5;cursor:default}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:#0d1117;color:#e6edf3;font:15px/1.5 system-ui,sans-serif}.boot{display:grid;place-items:center;height:100%;color:#8b949e;font-family:ui-monospace,monospace}.ide{display:flex;flex-direction:column;height:100%}.ide-head{display:flex;align-items:baseline;gap:12px;padding:10px 16px;border-bottom:1px solid #232c3d}.ide-brand{font-weight:700;color:#4dd0e1}.ide-sub{color:#8b949e;font-size:13px}.ide-body{flex:1;min-height:0;display:grid;grid-template-columns:220px 1fr 380px;gap:10px;padding:10px}.ide-files{height:100%;min-height:0}.ide-center{display:grid;grid-template-rows:auto 1fr 240px;gap:8px;min-height:0}.ide-editor-bar{display:flex;justify-content:space-between;align-items:center;font-family:ui-monospace,monospace;font-size:12.5px;color:#8b949e}.ide-editor-bar button{background:#161b22;color:#e6edf3;border:1px solid #232c3d;border-radius:7px;padding:4px 12px;cursor:pointer}.ide-editor-bar button:disabled{opacity:.5}.ide-editor,.ide-term{min-height:0}.ide-chat{height:100%;min-height:0;border:1px solid #232c3d;border-radius:12px;overflow:hidden}.ide-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:grid;place-items:center;padding:20px}.ide-overlay>*{max-width:460px;width:100%}
