/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/hyperterm-chesterish@1.1.4/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const{shell:shell}=require("electron"),{exec:exec}=require("child_process"),throttle=require("lodash.throttle"),backgroundColor="#293341",foregroundColor="#CDD2E9",cursorColor="#2C85F7",borderColor="#293341",colors={black:"#293341",orange:"#FFB68E",red:"#E17E85",green:"#61BA86",yellow:"#FFEC8E",blue:"#4CB2FF",magenta:"#BE86E3",cyan:"#2DCED0",white:"#CDD2E9",lightBlack:"#546386",lightRed:"#E17E85",lightGreen:"#61BA86",lightYellow:"#FFEC8E",lightBlue:"#4CB2FF",lightMagenta:"#BE86E3",lightCyan:"#2DCED0",lightWhite:"#CDD2E9"};exports.decorateConfig=t=>Object.assign({},t,{foregroundColor:"#CDD2E9",backgroundColor:"#293341",borderColor:"#293341",cursorColor:"#2C85F7",colors:colors,cursorShape:"BEAM",termCSS:`\n            ${t.termCSS||""}\n            ::selection {\n                background: #9198A2 !important;\n            }\n            .cursor-node {\n                background-color: transparent !important;\n            }\n            .cursor-node[focus=false] {\n                width: 3px !important;\n            }\n            .cursor-node[focus=true]:not([moving]) {\n                animation: blink 1s ease infinite;\n            }\n            @keyframes blink {\n                50% {\n                    opacity: 0;\n                }\n            }\n            span {\n                font-weight: normal !important;\n            }\n        `,css:`\n            ${t.css||""}\n            ::selection {\n                background: #9198A2 !important;\n            }\n            .notifications_view {\n                display: none !important;\n            }\n            .header_header {\n                top: 0;\n                right: 0;\n                left: 0;\n            }\n            .tabs_borderShim {\n                display: none;\n            }\n            .tabs_list {\n                margin-left: 0;\n                border-bottom: 1px solid #354253;\n            }\n            .tab_first {\n                border-left-width: 0px !important;\n                padding-left: 1px;\n            }\n            .tab_tab {\n                color: #626978;\n                border-right-width: 1px;\n                border-right-style: solid;\n                border-color: transparent !important;\n                background-color: #232C37;\n                transition: background 150ms ease;\n            }\n            .tab_tab:last-child, .tab_tab.tab_active:last-child {\n                border-right-width: 0 !important;\n                padding-right: 1px;\n            }\n            .tab_tab:hover {\n                color: #FFFFFF;\n                background-color: #354253;\n            }\n            .tab_tab.tab_active {\n                color: #FFFFFF;\n                border-color: #354253 !important;\n                background-color: transparent;\n            }\n            .tab_tab.tab_active::before {\n                content: '';\n                position: absolute;\n                left: 0;\n                right: 0;\n                bottom: -1px;\n                border-bottom: 1px solid #293341;\n            }\n            .tab_icon {\n                top: 9px;\n                left: 9px;\n                width: 16px;\n                height: 16px;\n                border-radius: 2px;\n                transform: scale(0);\n                transition: transform 150ms ease, background 150ms ease;\n            }\n            .tab_icon:hover {\n                background-color: #232C37;\n            }\n            .tab_tab:hover .tab_icon {\n                transform: scale(1);\n            }\n            .tab_tab.tab_active .tab_icon:hover {\n                background-color: #3B495C;\n            }\n            .tab_icon::before {\n                content: '';\n                position: absolute;\n                width: 100%;\n                height: 100%;\n                background-color: #FFFFFF;\n                -webkit-mask-image: url('${__dirname}/icons/close.svg');\n                -webkit-mask-repeat: no-repeat;\n                -webkit-mask-size: 9px;\n                -webkit-mask-position: center;\n                transition: background 150ms ease;\n            }\n            .tab_shape {\n                display: none;\n            }\n            .tab_tab.tab_hasActivity .tab_text {\n                color: ${colors.orange};\n                animation: pulse 3s ease-in-out infinite;\n            }\n            .tab_tab.tab_hasActivity:hover .tab_text {\n                animation: none;\n            }\n            @keyframes pulse {\n                0% {\n                    opacity: 1;\n                }\n                50% {\n                    opacity: 1;\n                }\n                75% {\n                    opacity: 0.5;\n                }\n                100% {\n                    opacity: 1;\n                }\n            }\n            .tab_tab.tab_hasActivity .tab_icon::before {\n                background-color: ${colors.orange};\n            }\n            .tab_tab.tab_hasActivity .tab_icon:hover {\n                background-color: ${colors.orange};\n            }\n            .tab_tab.tab_hasActivity .tab_icon:hover::before {\n                background-color: #FFFFFF;\n            }\n            .tab_textInner {\n                padding: 0 30px;\n            }\n            .tab_service {\n                max-width: 100%;\n                position: relative;\n                display: inline-block;\n                white-space: nowrap;\n                padding: 0 6px 0 20px;\n                overflow: hidden;\n                text-overflow: ellipsis;\n                transition: background-image 150ms ease;\n            }\n            .tab_service::before {\n                content: '';\n                position: absolute;\n                left: 0;\n                width: 14px;\n                height: 100%;\n                background-color: #626978;\n                -webkit-mask-repeat: no-repeat;\n                -webkit-mask-position: left center;\n                transition: background 150ms ease;\n            }\n            .tab_service.tab_shell::before {\n                left: 5px;\n                -webkit-mask-image: url('${__dirname}/icons/shell.svg');\n                -webkit-mask-size: 8px 14px;\n            }\n            .tab_service.tab_gulp::before {\n                left: 6px;\n                -webkit-mask-image: url('${__dirname}/icons/gulp.svg');\n                -webkit-mask-size: 6px 14px;\n            }\n            .tab_service.tab_php::before {\n                -webkit-mask-image: url('${__dirname}/icons/php.svg');\n                -webkit-mask-size: 14px 10px;\n            }\n            .tab_service.tab_node::before {\n                -webkit-mask-image: url('${__dirname}/icons/node.svg');\n                -webkit-mask-size: 14px 14px;\n            }\n            .tab_service.tab_vim::before {\n                left: 2px;\n                -webkit-mask-image: url('${__dirname}/icons/vim.svg');\n                -webkit-mask-size: 12px 11px;\n            }\n            .tabs_title .tab_service::before, .tab_tab.tab_active .tab_service::before, .tab_tab:hover .tab_service::before {\n                background-color: #FFFFFF;\n            }\n            .tab_tab.tab_hasActivity .tab_service::before {\n                background-color: ${colors.orange};\n            }\n        `}),exports.decorateBrowserOptions=t=>Object.assign({},t,{titleBarStyle:"",transparent:!0,frame:!1});const getService=t=>"gulp"===t.split(" ")[1]||"php"===t.split(" ")[1]||"node"===t.split(" ")[1]||"vim"===t.split(" ")[1]?t.split(" ")[1]:"shell";exports.decorateTab=(t,{React:n})=>class extends t{render(){const e=getService(this.props.text);return this.props.text=n.createElement("span",{className:`tab_service tab_${e}`},this.props.text),n.createElement(t,Object.assign({},this.props,{}))}},exports.decorateTabs=(t,{React:n})=>class extends t{render(){if(1===this.props.tabs.length&&"string"==typeof this.props.tabs[0].title){const t=getService(this.props.tabs[0].title);this.props.tabs[0].title=n.createElement("span",{className:`tab_service tab_${t}`},this.props.tabs[0].title)}return n.createElement(t,Object.assign({},this.props,{}))}};const busy_timeout=700,busy_throttle=350;exports.decorateTerm=(t,{React:n})=>class extends n.Component{constructor(t){super(t),this._onTerminal=this._onTerminal.bind(this),this._onCursorChange=this._onCursorChange.bind(this),this._updateCursorStatus=this._updateCursorStatus.bind(this),this._markBusyThrottled=throttle(this._markBusy.bind(this),350),this._markIdle=this._markIdle.bind(this)}_onTerminal(t){this.props.onTerminal&&this.props.onTerminal(t),this._cursor=t.cursorNode_,this._observer=new MutationObserver(this._onCursorChange),this._observer.observe(this._cursor,{attributes:!0,childList:!1,characterData:!1})}_onCursorChange(t){t.some((t=>"title"===t.attributeName))&&this._updateCursorStatus()}_updateCursorStatus(){this._markBusyThrottled(),clearTimeout(this._markingTimer),this._markingTimer=setTimeout((()=>{this._markIdle()}),700)}_markBusy(){this._cursor.setAttribute("moving",!0)}_markIdle(){this._cursor.removeAttribute("moving")}render(){return n.createElement(t,Object.assign({},this.props,{onTerminal:this._onTerminal}))}componentWillUnmount(){this._observer&&this._observer.disconnect()}};
//# sourceMappingURL=/sm/bca0e91556f97f5931add983f22d4f9a7d8e70862eb3b12e8d264b44ffa2957b.map