/**
 * 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}.tq-asst-col{min-height:0;display:flex;flex-direction:column;background:#fffdfb;border:1px solid #e1dcd5;border-radius:12px;overflow:hidden}.tq-pile{position:relative;padding:4px 0 8px}.tq-pile-cheer{text-align:center;color:#6e685f;font:600 10.5px IBM Plex Sans,system-ui,sans-serif;padding:10px 0 2px}.tq-pile-note{text-align:center;color:#8a847a;font:500 10px IBM Plex Mono,Consolas,monospace;padding:3px 0}.tq-pile-stack{position:relative}.tq-pile-row{position:absolute;left:0;right:0;height:30px;display:grid;grid-template-columns:70px 14px minmax(0,1fr);align-items:stretch;transition:top .55s cubic-bezier(.2,.8,.2,1),opacity .3s ease,transform .3s ease}.tq-pile-row.landing{opacity:0;transform:translateY(-6px) scale(.98)}.tq-pile-row .when{font:500 10px IBM Plex Mono,Consolas,monospace;color:#a09b92;text-align:right;padding:6px 12px 0 8px;white-space:nowrap;letter-spacing:-.2px;font-variant-numeric:tabular-nums}.tq-pile-row .rail{position:relative}.tq-pile-row .rail:before{content:"";position:absolute;left:6px;top:-5px;bottom:-5px;width:1px;background:#e1dcd5}.tq-pile-row .rail i{position:absolute;left:2.5px;top:9px;width:8px;height:8px;border-radius:50%;background:#d3ccc1;box-shadow:0 0 0 3px #fffdfb}.tq-pile-row .card{margin-left:8px;min-width:0;overflow:hidden;border:1px solid #e1dcd5;border-left:2px solid var(--edge, #d3ccc1);border-radius:8px;padding:3px 10px 4px;background:#fffdfb;cursor:pointer;transition:box-shadow .18s,border-color .18s}.tq-pile-row .card:hover{border-color:#d8cfbe;border-left-color:var(--edge, #d3ccc1);box-shadow:0 2px 8px #2f6b4f1a}.tq-pile-row.settling .card{border-style:dashed}.tq-pile-row.shown .card{opacity:.62;border-style:dashed}.tq-pile-row.next .card{border-color:#7d9a7c;box-shadow:inset 0 0 0 1px #7d9a7c,0 2px 10px #2f6b4f24}.tq-pile-row.current{height:54px}.tq-pile-row.current .card{border-color:#55697a;background:#f7f9fa;box-shadow:inset 0 0 0 1px #55697a,0 2px 10px #454f4624;cursor:default}.tq-pile-row .t{display:flex;align-items:center;gap:7px;min-width:0;min-height:22px}.tq-pile-row .logo{display:flex;flex-shrink:0}.tq-pile-row .who{flex:0 0 auto;max-width:118px;font-size:12px;font-weight:600;color:#262521;letter-spacing:-.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tq-pile-row .t b{flex:1 1 auto;min-width:0;font-size:11.5px;font-weight:500;color:#6e685f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tq-pile-row .up{flex:0 0 auto;color:#526b53;font-weight:800;font-size:11px}.tq-pile-ref{flex:0 0 auto;font:500 9px IBM Plex Mono,Consolas,monospace;color:#a09889;letter-spacing:.02em}.tq-pile-tag{flex:0 0 auto;display:inline-block;padding:0 6px;border-radius:99px;border:1px solid;font:600 9px/15px IBM Plex Sans,system-ui,sans-serif;letter-spacing:.01em;white-space:nowrap}.tq-pile-next{flex:0 0 auto;font:800 8.5px/1 IBM Plex Mono,Consolas,monospace;letter-spacing:.14em;text-transform:uppercase;color:#fff;background:linear-gradient(90deg,#55697a,#7d9a7c);padding:3px 6px;border-radius:99px}.tq-pile-next.cur{background:linear-gradient(90deg,#41525f,#55697a)}.tq-pile-row .sub{font-size:10.5px;line-height:1.5;padding:2px 0 0 24px;color:#6e685f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tq-pile-empty{padding:56px 24px 24px;text-align:center;color:#6e685f;font-size:11.5px;line-height:1.5}.tq-pile-empty .mark{display:block;font-size:30px;line-height:1;color:#3c5740}.tq-pile-empty b{display:block;color:#3c5740;font-size:15px;margin:6px 0 4px}.tq-chat-head{display:flex;align-items:center;gap:10px;padding:9px 12px 9px 14px;border-bottom:1px solid #e1dcd5;background:#fffdfb}.tq-chat-head .who b{display:block;font-size:14px;color:#262521;font-weight:800;letter-spacing:.2px}.tq-chat-head .who{min-width:0}.tq-chat-head .who span{display:block;font-size:10.5px;color:#6e685f;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tq-chat-head .grow{flex:1}.tq-stage-mode{display:inline-flex;border:1px solid #ddd6cb;border-radius:99px;overflow:hidden;flex:0 0 auto}.tq-stage-mode button{border:0;background:transparent;padding:4px 10px;font:600 10.5px IBM Plex Sans,system-ui,sans-serif;color:#6e685f;cursor:pointer;white-space:nowrap}.tq-stage-mode button.on{background:#eae4d8;color:#55697a}.tq-chat-body{flex:1;min-height:0;overflow-y:auto;padding:18px 20px 8px;scroll-behavior:smooth}.tq-chat-inner{width:min(900px,100%);margin:0 auto}.tq-msg{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:10px;margin-bottom:16px}.tq-msg .avatar{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:linear-gradient(90deg,#55697a,#7d9a7c)}.tq-msg .body{min-width:0;font-size:13.5px;line-height:1.55;color:#262521;padding-top:3px}.tq-msg .body p{margin:0 0 6px}.tq-msg .body p:last-child{margin-bottom:0}.tq-msg.you{grid-template-columns:minmax(0,1fr)}.tq-msg.you .body{justify-self:end;max-width:78%;background:#f1eee8;border:1px solid #dfdbd3;border-radius:13px 13px 4px;padding:8px 12px;white-space:pre-wrap}.tq-msg.receipt .body{color:#4c6450;font-size:12px}.tq-msg .at{font:500 9.5px IBM Plex Mono,Consolas,monospace;color:#a09b92;margin-top:3px}.tq-typing{display:inline-flex;gap:4px;padding:8px 2px}.tq-work{margin:2px 0 6px;padding:6px 9px;border-left:2px solid #dde1d6;font:10.5px/1.5 IBM Plex Mono,Consolas,monospace;color:#6e685f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tq-work div{overflow:hidden;text-overflow:ellipsis}.tq-typing i{width:6px;height:6px;border-radius:50%;background:#a9a294;animation:tqTyping 1.1s ease-in-out infinite}.tq-typing i:nth-child(2){animation-delay:.15s}.tq-typing i:nth-child(3){animation-delay:.3s}@keyframes tqTyping{0%,to{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}.tq-welcome{text-align:center;color:#6e685f;padding:48px 16px 24px}.tq-welcome b{display:block;font-size:17px;color:#262521;margin:10px 0 4px}.tq-welcome span{font-size:12.5px;line-height:1.5}.tq-modes{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:14px}.tq-chip{border:1px solid #d8d1c5;background:#fffdfb;color:#41525f;border-radius:99px;padding:5px 12px;font:600 11.5px IBM Plex Sans,system-ui,sans-serif;cursor:pointer;transition:all .15s}.tq-chip:hover{border-color:#55697a;background:#f4f6f8}.tq-chip:disabled{opacity:.5;cursor:default}.tq-chip.primary{background:linear-gradient(90deg,#55697a,#7d9a7c);color:#fff;border-color:transparent}.tq-options{display:flex;gap:6px;flex-wrap:wrap;margin:2px 0 14px 38px}.tq-card{margin:8px 0 4px;border:1px solid #ddd8cf;border-left-width:4px;border-radius:11px;background:#fffdf9;padding:10px 12px;box-shadow:0 4px 16px #332d230f}.tq-card-kicker{display:flex;align-items:center;gap:7px;font:750 9px/1.2 IBM Plex Mono,Consolas,monospace;letter-spacing:.14em;text-transform:uppercase;color:#6e685f}.tq-card-kicker .dot{width:7px;height:7px;border-radius:50%;background:#d3ccc1}.tq-card-kicker .src{display:inline-flex;align-items:center;margin-right:2px}.tq-fyi{padding:6px 0;border-top:1px solid #efeae2}.tq-fyi:first-of-type{border-top:0}.tq-fyi-row{display:flex;align-items:center;gap:7px;min-width:0}.tq-fyi-row b{flex:0 0 auto;font-size:12px;color:#262521}.tq-fyi-row .t{flex:1 1 auto;min-width:0;font-size:12px;color:#4d4a43;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tq-fyi-row button{text-transform:none;font-size:10.5px;min-width:0;padding:1px 6px}.tq-fyi-gist{margin:2px 0 0 20px;font-size:11px;color:#6e685f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tq-card-term{margin-top:8px;border-radius:8px;overflow:hidden;border:1px solid #2a2b33;background:#1e1e2e}.tq-card-full{margin-top:7px;padding:10px 12px;border-radius:8px;background:#f6f4f1;border:1px solid #ebe6de;font-size:12.5px;line-height:1.55;color:#262521;white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto}.tq-card-kicker em{margin-left:auto;font-style:normal;letter-spacing:.04em;text-transform:none;color:#989188}.tq-card-title{margin-top:5px;font-size:13px;font-weight:700;color:#262521;line-height:1.35;overflow-wrap:anywhere}.tq-card-sub{font-size:11px;color:#6e685f;margin-top:2px;overflow-wrap:anywhere}.tq-card-excerpt{margin-top:7px;padding:8px 10px;border-radius:8px;background:#f6f4f1;border:1px solid #ebe6de;font-size:12px;line-height:1.5;color:#4d4a43;white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto}.tq-card-tail{margin-top:7px;padding:8px 10px;border-radius:8px;background:#22231f;color:#e8e4dc;font:11px/1.5 IBM Plex Mono,Cascadia Mono,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:130px;overflow:auto}.tq-card-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:9px}.tq-card-actions button{text-transform:none;font-size:11px;min-height:28px}.tq-card-actions .sp{flex:1}.tq-card-note{font-size:10.5px;color:#8a847a;margin-top:6px}.tq-card-err{font-size:11px;color:#7a2f3c;margin-top:6px}.tq-btw{margin:0 20px 8px;padding:8px 12px;border:1px solid #cbd4dc;border-radius:10px;background:#fffdfb;display:flex;align-items:center;gap:10px;box-shadow:0 6px 18px #332d2314;animation:tqBtw .35s ease both}@keyframes tqBtw{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.tq-btw .dot{width:8px;height:8px;border-radius:50%;background:#55697a;flex:0 0 8px;animation:tqPulse 1.4s ease-in-out infinite}@keyframes tqPulse{50%{opacity:.35}}.tq-btw .txt{flex:1;min-width:0;font-size:12px;color:#262521}.tq-btw .txt b{color:#41525f;margin-right:4px}.tq-compose{padding:6px 20px 10px;border-top:1px solid #e4e0d9;background:#fffdfb}.tq-quick{display:flex;gap:6px;flex-wrap:wrap;width:min(900px,100%);margin:0 auto 8px}.tq-quick .tq-chip{padding:3px 10px;font-size:10.5px}.tq-compose-box{width:min(900px,100%);margin:0 auto;display:flex;align-items:flex-end;gap:5px;padding:6px 7px;border:1px solid #d5d0c7;background:#fff;border-radius:13px;box-shadow:0 2px 8px #39352d0b}.tq-compose-box textarea{flex:1;min-width:0;resize:none;border:0;outline:0;background:transparent;color:#292824;font:inherit;font-size:13px;line-height:1.45;padding:7px 5px;max-height:150px}.tq-compose-box textarea::placeholder{color:#8f8b84}.tq-send{width:34px;height:34px;flex:0 0 34px;border:0;border-radius:9px;display:grid;place-items:center;cursor:pointer;color:#fff;background:#738275}.tq-send:disabled{opacity:.4;cursor:default}.tq-compose-hint{margin:5px auto 0;text-align:center;color:#a09b92;font:9px/1.2 IBM Plex Mono,Consolas,monospace}.tq-chats{position:absolute;top:0;right:0;bottom:0;left:0;background:#fffdfbf2;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:5;display:flex;flex-direction:column}.tq-chats-head{display:flex;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid #e1dcd5;font-size:12.5px;font-weight:700;color:#262521}.tq-chats-list{overflow-y:auto;padding:6px 10px}.tq-chats-list .c{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;cursor:pointer}.tq-chats-list .c:hover{background:#f4f1ec}.tq-chats-list .c b{flex:1;min-width:0;font-size:12.5px;font-weight:600;color:#262521;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tq-chats-list .c span{font:500 10px IBM Plex Mono,Consolas,monospace;color:#8a847a;white-space:nowrap}.tq-chats-list .c i{width:7px;height:7px;border-radius:50%;background:#55697a}.tq-old-banner{padding:6px 14px;background:#eee7d6;border-bottom:1px solid #ddd2b9;color:#6b5f45;font-size:11.5px;display:flex;align-items:center;gap:10px}@media (max-width: 899.95px){.tq-phone-hide{display:none!important}.tq-msg.you .body{max-width:92%}.tq-chat-body{padding:12px 12px 6px}.tq-compose,.tq-btw{padding-left:12px;padding-right:12px;margin-left:12px;margin-right:12px}}
