/**
 * 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}#desktop{position:absolute;top:0;right:0;bottom:30px;left:0;overflow:hidden;background:#1a1d23}#taskbar{position:absolute;left:0;right:0;bottom:0;height:30px}.wasmos-taskbar{display:flex;align-items:center;gap:6px;height:30px;padding:0 6px;background:#0d0f13;border-top:1px solid #2c313a;font:12px/1 system-ui,sans-serif;color:#d6d9df;box-sizing:border-box}.wasmos-launcher{background:#2b6cb0;color:#fff;border:none;border-radius:4px;padding:5px 10px;cursor:pointer;font:inherit}.wasmos-launcher:hover{background:#3b7ec0}.wasmos-launcher-menu{position:absolute;bottom:34px;left:6px;min-width:160px;background:#14171c;border:1px solid #2c313a;border-radius:6px;box-shadow:0 -6px 24px #00000080;padding:4px;z-index:100000}.wasmos-launch-item{display:block;width:100%;text-align:left;background:transparent;color:#d6d9df;border:none;border-radius:4px;padding:7px 10px;cursor:pointer;font:13px/1 system-ui,sans-serif}.wasmos-launch-item:hover{background:#2b6cb0;color:#fff}.wasmos-tasks{display:flex;gap:4px;flex:1;overflow:hidden}.wasmos-task{background:#20242c;color:#c8ccd4;border:1px solid #2c313a;border-radius:4px;padding:4px 10px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;font:inherit}.wasmos-task-active{background:#2c3340;border-color:#3b82f6;color:#fff}.wasmos-task-min{opacity:.6;font-style:italic}.wasmos-clock{margin-left:auto;font-variant-numeric:tabular-nums;color:#9aa3b2}.wasmos-settings{background:#20242c;color:#d6d9df;border:1px solid #2c313a;border-radius:4px;width:26px;height:22px;cursor:pointer;font:13px/1 system-ui}.wasmos-settings:hover{background:#2c3340}.wasmos-settings-menu{position:absolute;bottom:34px;right:6px;min-width:180px;background:#14171c;border:1px solid #2c313a;border-radius:6px;box-shadow:0 -6px 24px #00000080;padding:8px;z-index:100000}.wasmos-settings-label{font:11px/1 system-ui;color:#9aa3b2;margin:2px 2px 6px}.wasmos-wallpaper-row{display:flex;gap:6px;margin-bottom:8px}.wasmos-wallpaper{width:36px;height:26px;border:2px solid #2c313a;border-radius:4px;cursor:pointer}.wasmos-wallpaper:hover{border-color:#3b82f6}.wasmos-theme-toggle{display:block;width:100%;text-align:left;background:#20242c;color:#d6d9df;border:1px solid #2c313a;border-radius:4px;padding:7px 10px;cursor:pointer;font:13px/1 system-ui}.wasmos-theme-toggle:hover{background:#2b6cb0;color:#fff}body[data-theme=light] .wasmos-taskbar{background:#e8eaed;border-top-color:#c4c8cf;color:#21242b}body[data-theme=light] .wasmos-titlebar{background:#d6dae1}body[data-theme=light] .wasmos-window-active .wasmos-titlebar{background:#c2cad6}body[data-theme=light] .wasmos-title{color:#21242b}body[data-theme=light] .wasmos-clock{color:#4a5160}.wasmos-window{position:absolute;display:flex;flex-direction:column;min-width:160px;min-height:96px;background:#15181d;border:1px solid #2c313a;border-radius:6px;box-shadow:0 8px 24px #00000073;overflow:hidden}.wasmos-window-active{border-color:#3b82f6;box-shadow:0 10px 30px #0009}.wasmos-window-max{border-radius:0}.wasmos-titlebar{display:flex;align-items:center;height:28px;padding:0 4px 0 10px;background:#20242c;cursor:move;-webkit-user-select:none;user-select:none;flex:0 0 28px}.wasmos-window-active .wasmos-titlebar{background:#283041}.wasmos-title{flex:1;font:12px/28px system-ui,sans-serif;color:#d6d9df;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wasmos-winbtns{display:flex;gap:2px}.wasmos-winbtn{width:22px;height:20px;border:none;border-radius:3px;background:transparent;color:#aeb4bf;cursor:pointer;font:12px/1 system-ui,sans-serif}.wasmos-winbtn:hover{background:#3a4150;color:#fff}.wasmos-winbtn-close:hover{background:#c0392b;color:#fff}.wasmos-menubar{display:flex;align-items:stretch;height:24px;flex:0 0 24px;padding:0 4px;background:#181c24;border-bottom:1px solid #303746;color:#c8ccd4;font:12px/24px system-ui,sans-serif;-webkit-user-select:none;user-select:none}.wasmos-menu-group{position:relative}.wasmos-menu-trigger{height:22px;padding:0 9px;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit}.wasmos-menu-trigger:hover,.wasmos-menu-trigger:focus-visible{background:#2b6cb0;color:#fff;outline:none}.wasmos-menu-popup{position:absolute;top:23px;left:0;min-width:142px;padding:4px;background:#14171c;border:1px solid #2c313a;border-radius:4px;box-shadow:0 6px 18px #00000073;z-index:100001}.wasmos-menu-item{display:block;width:100%;padding:6px 9px;border:0;border-radius:3px;background:transparent;color:#d6d9df;text-align:left;cursor:pointer;font:12px/1.2 system-ui,sans-serif}.wasmos-menu-item:hover,.wasmos-menu-item:focus-visible{background:#2b6cb0;color:#fff;outline:none}.wasmos-about-popup{position:absolute;left:12px;right:12px;bottom:12px;padding:8px 10px;background:#20242c;border:1px solid #3b82f6;border-radius:4px;color:#d6d9df;font:12px/1.35 system-ui,sans-serif;z-index:2}.wasmos-content{flex:1;position:relative;overflow:hidden;background:#000}.wasmos-content>#terminal{width:100%;height:100%}.wasmos-content>canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.wasmos-window-max .wasmos-content>canvas{width:auto;height:auto;max-width:none;max-height:none;flex:0 0 auto}.wasmos-content-welcome{display:flex;flex-direction:column}.wasmos-content-welcome>.wasmos-welcome-canvas{flex:1 1 auto;min-height:0;width:100%;height:auto;image-rendering:pixelated}.wasmos-welcome-links{position:static;flex:0 0 32px;height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:18px;background:#181c25;border-top:1px solid #303746;font:12px/1 system-ui,sans-serif}.wasmos-welcome-links a{color:#96c8ff;text-decoration:none}.wasmos-welcome-links a:hover,.wasmos-welcome-links a:focus-visible{color:#7ed68e;text-decoration:underline}.wasmos-resize{position:absolute}.wasmos-resize-n{top:-3px;left:8px;right:8px;height:6px;cursor:ns-resize}.wasmos-resize-s{bottom:-3px;left:8px;right:8px;height:6px;cursor:ns-resize}.wasmos-resize-e{right:-3px;top:8px;bottom:8px;width:6px;cursor:ew-resize}.wasmos-resize-w{left:-3px;top:8px;bottom:8px;width:6px;cursor:ew-resize}.wasmos-resize-ne{top:-3px;right:-3px;width:12px;height:12px;cursor:nesw-resize}.wasmos-resize-nw{top:-3px;left:-3px;width:12px;height:12px;cursor:nwse-resize}.wasmos-resize-se{bottom:-3px;right:-3px;width:12px;height:12px;cursor:nwse-resize}.wasmos-resize-sw{bottom:-3px;left:-3px;width:12px;height:12px;cursor:nesw-resize}html,body,#root{margin:0;height:100%;background:#000;color:#eee;font-family:system-ui,-apple-system,Segoe UI,monospace;overflow:hidden}.wasmos-root{position:relative;height:100vh;width:100vw}.wasmos-desktop{position:absolute;top:0;right:0;bottom:0;left:0}.wasmos-status{position:absolute;top:6px;right:8px;z-index:9999;margin:0;padding:2px 8px;font-size:11px;color:#8f8;background:#00000080;border-radius:4px;pointer-events:none}.wasmos-status-error{color:#f88}.wasmos-bootsplash{position:absolute;top:0;right:0;bottom:0;left:0;z-index:9998;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:radial-gradient(ellipse at center,#1a1426,#07060c 70%);color:#d6d9df;-webkit-user-select:none;user-select:none}.wasmos-bootsplash-logo{font-size:44px;font-weight:800;letter-spacing:4px;color:#b794f6;text-shadow:0 0 24px rgba(150,110,230,.45)}.wasmos-bootsplash-sub{font-size:13px;color:#8c92a3}.wasmos-bootsplash-status{margin-top:6px;font-size:12px;color:#7ed68e}.wasmos-bootsplash-error .wasmos-bootsplash-status{color:#f88}.wasmos-bootsplash-status code{font-family:ui-monospace,SF Mono,Menlo,monospace;background:#ffffff14;border-radius:4px;padding:1px 5px}.wasmos-bootsplash-help{margin:14px 0 0;padding:0 24px;max-width:440px;list-style:disc;text-align:left;font-size:13px;line-height:1.5;color:#c2c6d0}.wasmos-bootsplash-help li{margin:7px 0}.wasmos-bootsplash-help b{color:#e6e0f6}
