Added xterm terminal and fixed device link.

Ylian Saint-Hilaire committed Jan 23, 2020 at 15:15 UTC f05f86d1e13ba1602409dd586da5face22af5bb2
10 files changed +1445 -991
agents/meshcore.js
+3 -2
@@ -1214,8 +1214,9 @@ function createMeshCore(agent) {
1214 var shell = bash || sh;
1215
1216 var options = { uid: (this.httprequest.protocol == 8) ? require('user-sessions').consoleUid() : null, env: { HISTCONTROL: 'ignoreboth', TERM: 'xterm' } };
1217 - var setupcommands = ' alias ls=\'ls --color=auto\'\n';
1218 - if (shell == sh) setupcommands += 'stty erase ^H\n'
1217 + var setupcommands = 'alias ls=\'ls --color=auto\'\n';
1218 + if (shell == sh) setupcommands += 'stty erase ^H\n';
1219 + setupcommands += 'clear\n';
1220
1221 if (script && shell && process.platform == 'linux') {
1222 this.httprequest.process = childProcess.execFile(script, ['script', '--return', '--quiet', '-c', '"' + shell + '"', '/dev/null'], options); // Start as active user
public/scripts/agent-redir-ws-0.1.1.js
+2 -26
@@ -148,34 +148,9 @@ var CreateAgentRedirect = function (meshserver, module, serverPublicNamePort, au
148 return;
149 }
150
151 - /*
152 - if (typeof e.data == 'object') {
153 - var f = new FileReader();
154 - if (f.readAsBinaryString) {
155 - // Chrome & Firefox (Draft)
156 - f.onload = function (e) { obj.xxOnSocketData(e.target.result); }
157 - f.readAsBinaryString(new Blob([e.data]));
158 - } else if (f.readAsArrayBuffer) {
159 - // Chrome & Firefox (Spec)
160 - f.onloadend = function (e) { obj.xxOnSocketData(e.target.result); }
161 - f.readAsArrayBuffer(e.data);
162 - } else {
163 - // IE10, readAsBinaryString does not exist, use an alternative.
164 - var binary = '';
165 - var bytes = new Uint8Array(e.data);
166 - var length = bytes.byteLength;
167 - for (var i = 0; i < length; i++) { binary += String.fromCharCode(bytes[i]); }
168 - obj.xxOnSocketData(binary);
169 - }
170 - } else {
171 - // If we get a string object, it maybe the WebRTC confirm. Ignore it.
172 - obj.xxOnSocketData(e.data);
173 - }
174 - */
175 -
151 if (typeof e.data == 'object') {
152 if (fileReaderInuse == true) { fileReaderAcc.push(e.data); return; }
178 - if (fileReader.readAsBinaryString) {
153 + if (fileReader.readAsBinaryString && (obj.m.ProcessBinaryData == null)) {
154 // Chrome & Firefox (Draft)
155 fileReaderInuse = true;
156 fileReader.readAsBinaryString(new Blob([e.data]));
@@ -209,6 +184,7 @@ var CreateAgentRedirect = function (meshserver, module, serverPublicNamePort, au
184 obj.xxOnSocketData = function (data) {
185 if (!data || obj.connectstate == -1) return;
186 if (typeof data === 'object') {
187 + if (obj.m.ProcessBinaryData) { return obj.m.ProcessBinaryData(data); }
188 // This is an ArrayBuffer, convert it to a string array (used in IE)
189 var binary = '', bytes = new Uint8Array(data), length = bytes.byteLength;
190 for (var i = 0; i < length; i++) { binary += String.fromCharCode(bytes[i]); }
public/scripts/xterm-addon-fit.js new
+2
@@ -0,0 +1,2 @@
1 +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FitAddon=t():e.FitAddon=t()}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.activate=function(e){this._terminal=e},e.prototype.dispose=function(){},e.prototype.fit=function(){var e=this.proposeDimensions();if(e&&this._terminal){var t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}},e.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var e=this._terminal._core,t=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(t.getPropertyValue("height")),n=Math.max(0,parseInt(t.getPropertyValue("width"))),o=window.getComputedStyle(this._terminal.element),i=r-(parseInt(o.getPropertyValue("padding-top"))+parseInt(o.getPropertyValue("padding-bottom"))),a=n-(parseInt(o.getPropertyValue("padding-right"))+parseInt(o.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(a/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(i/e._renderService.dimensions.actualCellHeight))}}},e}();t.FitAddon=n}])});
2 +//# sourceMappingURL=xterm-addon-fit.js.map
\ No newline at end of file
public/scripts/xterm.js new
+2
@@ -0,0 +1,2 @@
1 +!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(window,function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=33)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(14);t.IBufferService=i.createDecorator("BufferService"),t.ICoreMouseService=i.createDecorator("CoreMouseService"),t.ICoreService=i.createDecorator("CoreService"),t.IDirtyRowService=i.createDecorator("DirtyRowService"),t.IInstantiationService=i.createDecorator("InstantiationService"),t.ILogService=i.createDecorator("LogService"),t.IOptionsService=i.createDecorator("OptionsService")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var r=0;r<e._listeners.length;r++)if(e._listeners[r]===t)return void e._listeners.splice(r,1)}}}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){for(var t=[],r=0;r<this._listeners.length;r++)t.push(this._listeners[r]);for(r=0;r<t.length;r++)t[r].call(void 0,e)},e.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},e}();t.EventEmitter=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed=!0,this._disposables.forEach(function(e){return e.dispose()}),this._disposables.length=0},e.prototype.register=function(e){this._disposables.push(e)},e.prototype.unregister=function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)},e}();t.Disposable=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(14);t.ICharSizeService=i.createDecorator("CharSizeService"),t.ICoreBrowserService=i.createDecorator("CoreBrowserService"),t.IMouseService=i.createDecorator("MouseService"),t.IRenderService=i.createDecorator("RenderService"),t.ISelectionService=i.createDecorator("SelectionService"),t.ISoundService=i.createDecorator("SoundService")},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(8),s=r(3),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.content=0,t.fg=0,t.bg=0,t.combinedData="",t}return n(t,e),t.fromCharData=function(e){var r=new t;return r.setFromCharData(e),r},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?o.stringFromCodePoint(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[s.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[s.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[s.CHAR_DATA_CHAR_INDEX].length){var r=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=r&&r<=56319){var i=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=i&&i<=57343?this.content=1024*(r-55296)+i-56320+65536|e[s.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[s.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[s.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[s.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(r(6).AttributeData);t.CellData=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.fg=0,this.bg=0}return e.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},e.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},e.prototype.clone=function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t},e.prototype.isInverse=function(){return 67108864&this.fg},e.prototype.isBold=function(){return 134217728&this.fg},e.prototype.isUnderline=function(){return 268435456&this.fg},e.prototype.isBlink=function(){return 536870912&this.fg},e.prototype.isInvisible=function(){return 1073741824&this.fg},e.prototype.isItalic=function(){return 67108864&this.bg},e.prototype.isDim=function(){return 134217728&this.bg},e.prototype.getFgColorMode=function(){return 50331648&this.fg},e.prototype.getBgColorMode=function(){return 50331648&this.bg},e.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},e.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},e.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},e.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},e.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},e.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},e}();t.AttributeData=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=function(e,t,r,i){return e.addEventListener(t,r,i),{dispose:function(){r&&e.removeEventListener(t,r,i)}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length);for(var i="",n=t;n<r;++n){var o=e[n];o>65535?(o-=65536,i+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):i+=String.fromCharCode(o)}return i};var i=function(){function e(){this._interim=0}return e.prototype.clear=function(){this._interim=0},e.prototype.decode=function(e,t){var r=e.length;if(!r)return 0;var i=0,n=0;this._interim&&(56320<=(a=e.charCodeAt(n++))&&a<=57343?t[i++]=1024*(this._interim-55296)+a-56320+65536:(t[i++]=this._interim,t[i++]=a),this._interim=0);for(var o=n;o<r;++o){var s=e.charCodeAt(o);if(55296<=s&&s<=56319){if(++o>=r)return this._interim=s,i;var a;56320<=(a=e.charCodeAt(o))&&a<=57343?t[i++]=1024*(s-55296)+a-56320+65536:(t[i++]=s,t[i++]=a)}else t[i++]=s}return i},e}();t.StringToUtf32=i;var n=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var r=e.length;if(!r)return 0;var i,n,o,s,a=0,c=0,l=0;if(this.interim[0]){var h=!1,u=this.interim[0];u&=192==(224&u)?31:224==(240&u)?15:7;for(var f=0,_=void 0;(_=63&this.interim[++f])&&f<4;)u<<=6,u|=_;for(var d=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,p=d-f;l<p;){if(l>=r)return 0;if(128!=(192&(_=e[l++]))){l--,h=!0;break}this.interim[f++]=_,u<<=6,u|=63&_}h||(2===d?u<128?l--:t[a++]=u:3===d?u<2048||u>=55296&&u<=57343||(t[a++]=u):u<65536||u>1114111||(t[a++]=u)),this.interim.fill(0)}for(var v=r-4,g=l;g<r;){for(;!(!(g<v)||128&(i=e[g])||128&(n=e[g+1])||128&(o=e[g+2])||128&(s=e[g+3]));)t[a++]=i,t[a++]=n,t[a++]=o,t[a++]=s,g+=4;if((i=e[g++])<128)t[a++]=i;else if(192==(224&i)){if(g>=r)return this.interim[0]=i,a;if(128!=(192&(n=e[g++]))){g--;continue}if((c=(31&i)<<6|63&n)<128){g--;continue}t[a++]=c}else if(224==(240&i)){if(g>=r)return this.interim[0]=i,a;if(128!=(192&(n=e[g++]))){g--;continue}if(g>=r)return this.interim[0]=i,this.interim[1]=n,a;if(128!=(192&(o=e[g++]))){g--;continue}if((c=(15&i)<<12|(63&n)<<6|63&o)<2048||c>=55296&&c<=57343)continue;t[a++]=c}else if(240==(248&i)){if(g>=r)return this.interim[0]=i,a;if(128!=(192&(n=e[g++]))){g--;continue}if(g>=r)return this.interim[0]=i,this.interim[1]=n,a;if(128!=(192&(o=e[g++]))){g--;continue}if(g>=r)return this.interim[0]=i,this.interim[1]=n,this.interim[2]=o,a;if(128!=(192&(s=e[g++]))){g--;continue}if((c=(7&i)<<18|(63&n)<<12|(63&o)<<6|63&s)<65536||c>1114111)continue;t[a++]=c}}return a},e}();t.Utf8ToUtf32=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.CHAR_ATLAS_CELL_SPACING=1},function(e,t,r){"use strict";function i(e){var t=e.toString(16);return t.length<2?"0"+t:t}function n(e,t,r,n){return void 0!==n?"#"+i(e)+i(t)+i(r)+i(n):"#"+i(e)+i(t)+i(r)}function o(e,t,r,i){return void 0===i&&(i=255),(e<<24|t<<16|r<<8|i)>>>0}function s(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function a(e){return c(e>>16&255,e>>8&255,255&e)}function c(e,t,r){var i=e/255,n=t/255,o=r/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}function l(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}function h(e,t,r){return{css:n(e,t,r),rgba:o(e,t,r)}}function u(e,t,r){var i=a(e>>8),n=a(t>>8);if(l(i,n)<r)return n<i?f(e,t,r):_(e,t,r)}function f(e,t,r){for(var i=e>>24&255,n=e>>16&255,o=e>>8&255,s=t>>24&255,a=t>>16&255,h=t>>8&255,u=l(c(s,h,a),c(i,n,o));u<r&&(s>0||a>0||h>0);)s-=Math.max(0,Math.ceil(.1*s)),a-=Math.max(0,Math.ceil(.1*a)),u=l(c(s,h-=Math.max(0,Math.ceil(.1*h)),a),c(i,n,o));return(s<<24|a<<16|h<<8|255)>>>0}function _(e,t,r){for(var i=e>>24&255,n=e>>16&255,o=e>>8&255,s=t>>24&255,a=t>>16&255,h=t>>8&255,u=l(c(s,h,a),c(i,n,o));u<r&&(s<255||a<255||h<255);)s=Math.min(255,s+Math.ceil(.1*(255-s))),a=Math.min(255,a+Math.ceil(.1*(255-a))),u=l(c(s,h=Math.min(255,h+Math.ceil(.1*(255-h))),a),c(i,n,o));return(s<<24|a<<16|h<<8|255)>>>0}Object.defineProperty(t,"__esModule",{value:!0}),t.blend=function(e,t){var r=(255&t.rgba)/255;if(1===r)return{css:t.css,rgba:t.rgba};var i=t.rgba>>24&255,s=t.rgba>>16&255,a=t.rgba>>8&255,c=e.rgba>>24&255,l=e.rgba>>16&255,h=e.rgba>>8&255,u=c+Math.round((i-c)*r),f=l+Math.round((s-l)*r),_=h+Math.round((a-h)*r);return{css:n(u,f,_),rgba:o(u,f,_)}},t.fromCss=function(e){return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0}},t.toPaddedHex=i,t.toCss=n,t.toRgba=o,t.fromRgba=s,t.opaque=function(e){var t=(255|e.rgba)>>>0,r=s(t);return{css:n(r[0],r[1],r[2]),rgba:t}},t.rgbRelativeLuminance=a,t.rgbRelativeLuminance2=c,t.contrastRatio=l,t.rgbaToColor=h,t.ensureContrastRatioRgba=u,t.ensureContrastRatio=function(e,t,r){var i=u(e.rgba,t.rgba,r);if(i)return h(i>>24&255,i>>16&255,i>>8&255)},t.reduceLuminance=f,t.increaseLuminance=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="undefined"==typeof navigator,n=i?"node":navigator.userAgent,o=i?"node":navigator.platform;function s(e,t){return e.indexOf(t)>=0}t.isFirefox=!!~n.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.isMac=s(["Macintosh","MacIntel","MacPPC","Mac68K"],o),t.isIpad="iPad"===o,t.isIphone="iPhone"===o,t.isWindows=s(["Windows","Win16","Win32","WinCE"],o),t.isLinux=o.indexOf("Linux")>=0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""}(t.C0||(t.C0={})),function(e){e.PAD="€",e.HOP="",e.BPH="‚",e.NBH="ƒ",e.IND="„",e.NEL="…",e.SSA="†",e.ESA="‡",e.HTS="ˆ",e.HTJ="‰",e.VTS="Š",e.PLD="‹",e.PLU="Œ",e.RI="",e.SS2="Ž",e.SS3="",e.DCS="",e.PU1="‘",e.PU2="’",e.STS="“",e.CCH="”",e.MW="•",e.SPA="–",e.EPA="—",e.SOS="˜",e.SGCI="™",e.SCI="š",e.CSI="›",e.ST="œ",e.OSC="",e.PM="ž",e.APC="Ÿ"}(t.C1||(t.C1={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),n=r(9),o=r(24),s=r(6),a=r(27),c=r(10),l=function(){function e(e,t,r,i,n,o,s,a){this._container=e,this._alpha=i,this._colors=n,this._rendererId=o,this._bufferService=s,this._optionsService=a,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;this._container.removeChild(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=a.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,r){void 0===r&&(r=!1)},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=o.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype._fillCells=function(e,t,r,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,i*this._scaledCellHeight)},e.prototype._fillBottomLineAtCells=function(e,t,r){void 0===r&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,r,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,r,i){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,i*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(r),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},e.prototype._drawChars=function(e,t,r){var o,s,a=this._getContrastColor(e);a||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,t,r,a):(e.isInverse()?(o=e.isBgDefault()?n.INVERTED_DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?n.INVERTED_DEFAULT_COLOR:e.getFgColor()):(s=e.isBgDefault()?i.DEFAULT_COLOR:e.getBgColor(),o=e.isFgDefault()?i.DEFAULT_COLOR:e.getFgColor()),o+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||i.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||i.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=s,this._currentGlyphIdentifier.fg=o,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,r))},e.prototype._drawUncachedChars=function(e,t,r,i){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(i)this._ctx.fillStyle=i.css;else if(e.isBgDefault())this._ctx.fillStyle=c.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var o=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),this._ctx.fillStyle=this._colors.ansi[o].css}else if(i)this._ctx.fillStyle=i.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var a=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(r),e.isDim()&&(this._ctx.globalAlpha=n.DIM_OPACITY),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},e.prototype._getContrastColor=function(e){if(1!==this._optionsService.options.minimumContrastRatio){var t=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==t)return t||void 0;var r=e.getFgColor(),i=e.getFgColorMode(),n=e.getBgColor(),o=e.getBgColorMode(),s=!!e.isInverse(),a=!!e.isInverse();if(s){var l=r;r=n,n=l;var h=i;i=o,o=h}var u=this._resolveBackgroundRgba(o,n,s),f=this._resolveForegroundRgba(i,r,s,a),_=c.ensureContrastRatioRgba(u,f,this._optionsService.options.minimumContrastRatio);if(_){var d={css:c.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return this._colors.contrastCache.setColor(e.bg,e.fg,d),d}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},e.prototype._resolveBackgroundRgba=function(e,t,r){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,r,i){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&i&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return r?this._colors.background.rgba:this._colors.foreground.rgba}},e}();t.BaseRenderLayer=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="di$target",n="di$dependencies";function o(e,t,r){t[i]===t?t[n].push({id:e,index:r}):(t[n]=[{id:e,index:r}],t[i]=t)}t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[n]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var r=function(e,t,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(r,e,i)};return r.toString=function(){return e},t.serviceRegistry.set(e,r),r}},function(e,t,r){"use strict";function i(e,t,r,i){if(void 0===r&&(r=0),void 0===i&&(i=e.length),r>=e.length)return e;r=(e.length+r)%e.length,i=i>=e.length?e.length:(e.length+i)%e.length;for(var n=r;n<i;++n)e[n]=t;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.fill=function(e,t,r,n){return e.fill?e.fill(t,r,n):i(e,t,r,n)},t.fillFallback=i,t.concat=function(e,t){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(8),n=r(3),o=r(5),s=r(6),a=3;t.DEFAULT_ATTR_DATA=Object.freeze(new s.AttributeData);var c=function(){function e(e,t,r){void 0===r&&(r=!1),this.isWrapped=r,this._combined={},this._data=new Uint32Array(e*a);for(var i=t||o.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]),s=0;s<e;++s)this.setCell(s,i);this.length=e}return e.prototype.get=function(e){var t=this._data[e*a+0],r=2097151&t;return[this._data[e*a+1],2097152&t?this._combined[e]:r?i.stringFromCodePoint(r):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):r]},e.prototype.set=function(e,t){this._data[e*a+1]=t[n.CHAR_DATA_ATTR_INDEX],t[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[e*a+0]=2097152|e|t[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[e*a+0]=t[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[n.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[e*a+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[e*a+0]},e.prototype.getFg=function(e){return this._data[e*a+1]},e.prototype.getBg=function(e){return this._data[e*a+2]},e.prototype.hasContent=function(e){return 4194303&this._data[e*a+0]},e.prototype.getCodePoint=function(e){var t=this._data[e*a+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[e*a+0]},e.prototype.getString=function(e){var t=this._data[e*a+0];return 2097152&t?this._combined[e]:2097151&t?i.stringFromCodePoint(2097151&t):""},e.prototype.loadCell=function(e,t){var r=e*a;return t.content=this._data[r+0],t.fg=this._data[r+1],t.bg=this._data[r+2],2097152&t.content&&(t.combinedData=this._combined[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),this._data[e*a+0]=t.content,this._data[e*a+1]=t.fg,this._data[e*a+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,r,i,n){this._data[e*a+0]=t|r<<22,this._data[e*a+1]=i,this._data[e*a+2]=n},e.prototype.addCodepointToCell=function(e,t){var r=this._data[e*a+0];2097152&r?this._combined[e]+=i.stringFromCodePoint(t):(2097151&r?(this._combined[e]=i.stringFromCodePoint(2097151&r)+i.stringFromCodePoint(t),r&=-2097152,r|=2097152):r=t|1<<22,this._data[e*a+0]=r)},e.prototype.insertCells=function(e,t,r){if(e%=this.length,t<this.length-e){for(var i=new o.CellData,n=this.length-e-t-1;n>=0;--n)this.setCell(e+t+n,this.loadCell(e+n,i));for(n=0;n<t;++n)this.setCell(e+n,r)}else for(n=e;n<this.length;++n)this.setCell(n,r)},e.prototype.deleteCells=function(e,t,r){if(e%=this.length,t<this.length-e){for(var i=new o.CellData,n=0;n<this.length-e-t;++n)this.setCell(e+n,this.loadCell(e+t+n,i));for(n=this.length-t;n<this.length;++n)this.setCell(n,r)}else for(n=e;n<this.length;++n)this.setCell(n,r)},e.prototype.replaceCells=function(e,t,r){for(;e<t&&e<this.length;)this.setCell(e++,r)},e.prototype.resize=function(e,t){if(e!==this.length){if(e>this.length){var r=new Uint32Array(e*a);this.length&&(e*a<this._data.length?r.set(this._data.subarray(0,e*a)):r.set(this._data)),this._data=r;for(var i=this.length;i<e;++i)this.setCell(i,t)}else if(e){(r=new Uint32Array(e*a)).set(this._data.subarray(0,e*a)),this._data=r;var n=Object.keys(this._combined);for(i=0;i<n.length;i++){var o=parseInt(n[i],10);o>=e&&delete this._combined[o]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={};for(var t=0;t<this.length;++t)this.setCell(t,e)},e.prototype.copyFrom=function(e){for(var t in this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={},e._combined)this._combined[t]=e._combined[t];this.isWrapped=e.isWrapped},e.prototype.clone=function(){var t=new e(0);for(var r in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[r]=this._combined[r];return t.isWrapped=this.isWrapped,t},e.prototype.getTrimmedLength=function(){for(var e=this.length-1;e>=0;--e)if(4194303&this._data[e*a+0])return e+(this._data[e*a+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,r,i,n){var o=e._data;if(n)for(var s=i-1;s>=0;s--)for(var c=0;c<a;c++)this._data[(r+s)*a+c]=o[(t+s)*a+c];else for(s=0;s<i;s++)for(c=0;c<a;c++)this._data[(r+s)*a+c]=o[(t+s)*a+c];var l=Object.keys(e._combined);for(c=0;c<l.length;c++){var h=parseInt(l[c],10);h>=t&&(this._combined[h-t+r]=e._combined[h])}},e.prototype.translateToString=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===r&&(r=this.length),e&&(r=Math.min(r,this.getTrimmedLength()));for(var o="";t<r;){var s=this._data[t*a+0],c=2097151&s;o+=2097152&s?this._combined[t]:c?i.stringFromCodePoint(c):n.WHITESPACE_CELL_CHAR,t+=s>>22||1}return o},e}();t.BufferLine=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"\t",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"␤",i:"\v",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=null,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(15);t.wcwidth=function(e){var t=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],r=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];var n=0|e.control,o=new Uint8Array(65536);i.fill(o,1),o[0]=e.nul,i.fill(o,e.control,1,32),i.fill(o,e.control,127,160),i.fill(o,2,4352,4448),o[9001]=2,o[9002]=2,i.fill(o,2,11904,42192),o[12351]=1,i.fill(o,2,44032,55204),i.fill(o,2,63744,64256),i.fill(o,2,65040,65050),i.fill(o,2,65072,65136),i.fill(o,2,65280,65377),i.fill(o,2,65504,65511);for(var s=0;s<t.length;++s)i.fill(o,0,t[s][0],t[s][1]+1);return function(e){return e<32?0|n:e<127?1:e<65536?o[e]:function(e,t){var r,i=0,n=t.length-1;if(e<t[0][0]||e>t[n][1])return!1;for(;n>=i;)if(e>t[r=i+n>>1][1])i=r+1;else{if(!(e<t[r][0]))return!0;n=r-1}return!1}(t=e,r)?0:t>=131072&&t<=196605||t>=196608&&t<=262141?2:1;var t}}({nul:0,control:0}),t.getStringCellWidth=function(e){for(var r=0,i=e.length,n=0;n<i;++n){var o=e.charCodeAt(n);if(55296<=o&&o<=56319){if(++n>=i)return r+t.wcwidth(o);var s=e.charCodeAt(n);56320<=s&&s<=57343?o=1024*(o-55296)+s-56320+65536:r+=t.wcwidth(s)}r+=t.wcwidth(o)}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=256,n=function(){function e(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,this.maxSubParamsLength=t,t>i)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var r=new e;if(!t.length)return r;for(var i=t[0]instanceof Array?1:0;i<t.length;++i){var n=t[i];if(n instanceof Array)for(var o=0;o<n.length;++o)r.addSubParam(n[o]);else r.addParam(n)}return r},e.prototype.clone=function(){var t=new e(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t},e.prototype.toArray=function(){for(var e=[],t=0;t<this.length;++t){e.push(this.params[t]);var r=this._subParamsIdx[t]>>8,i=255&this._subParamsIdx[t];i-r>0&&e.push(Array.prototype.slice.call(this._subParams,r,i))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>2147483647?2147483647:e}},e.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>2147483647?2147483647:e,this._subParamsIdx[this.length-1]++}},e.prototype.hasSubParams=function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0},e.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,r=255&this._subParamsIdx[e];return r-t>0?this._subParams.subarray(t,r):null},e.prototype.getSubParamsAll=function(){for(var e={},t=0;t<this.length;++t){var r=this._subParamsIdx[t]>>8,i=255&this._subParamsIdx[t];i-r>0&&(e[t]=this._subParams.slice(r,i))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var r=this._digitIsSub?this._subParams:this.params,i=r[t-1];r[t-1]=~i?Math.min(10*i+e,2147483647):e}},e}();t.Params=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(22),n=r(8),o=function(){function e(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return e.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var r=this._handlers[e];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},e.prototype.setHandler=function(e,t){this._handlers[e]=[t]},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},e.prototype.reset=function(){2===this._state&&this.end(!1),this._id=-1,this._state=0},e.prototype._start=function(){var e=this._handlers[this._id];if(e)for(var t=e.length-1;t>=0;t--)e[t].start();else this._handlerFb(this._id,"START")},e.prototype._put=function(e,t,r){var i=this._handlers[this._id];if(i)for(var o=i.length-1;o>=0;o--)i[o].put(e,t,r);else this._handlerFb(this._id,"PUT",n.utf32ToString(e,t,r))},e.prototype._end=function(e){var t=this._handlers[this._id];if(t){for(var r=t.length-1;r>=0&&!1===t[r].end(e);r--);for(r--;r>=0;r--)t[r].end(!1)}else this._handlerFb(this._id,"END",e)},e.prototype.start=function(){this.reset(),this._id=-1,this._state=1},e.prototype.put=function(e,t,r){if(3!==this._state){if(1===this._state)for(;t<r;){var i=e[t++];if(59===i){this._state=2,this._start();break}if(i<48||57<i)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+i-48}2===this._state&&r-t>0&&this._put(e,t,r)}},e.prototype.end=function(e){0!==this._state&&(3!==this._state&&(1===this._state&&this._start(),this._end(e)),this._id=-1,this._state=0)},e}();t.OscParser=o;var s=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.start=function(){this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,r){this._hitLimit||(this._data+=n.utf32ToString(e,t,r),this._data.length>i.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data)),this._data="",this._hitLimit=!1,t},e}();t.OscHandler=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=1e7},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(8),n=r(20),o=r(22),s=[],a=function(){function e(){this._handlers=Object.create(null),this._active=s,this._ident=0,this._handlerFb=function(){}}return e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},e.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var r=this._handlers[e];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},e.prototype.setHandler=function(e,t){this._handlers[e]=[t]},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=s,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||s,this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,r){if(this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,r);else this._handlerFb(this._ident,"PUT",i.utf32ToString(e,t,r))},e.prototype.unhook=function(e){if(this._active.length){for(var t=this._active.length-1;t>=0&&!1===this._active[t].unhook(e);t--);for(t--;t>=0;t--)this._active[t].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",e);this._active=s,this._ident=0},e}();t.DcsParser=a;var c=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.clone(),this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,r){this._hitLimit||(this._data+=i.utf32ToString(e,t,r),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data,this._params?this._params:new n.Params)),this._params=void 0,this._data="",this._hitLimit=!1,t},e}();t.DcsHandler=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(25),n=r(43),o=[];t.acquireCharAtlas=function(e,t,r,s,a){for(var c=i.generateConfig(s,a,e,r),l=0;l<o.length;l++){var h=(u=o[l]).ownedBy.indexOf(t);if(h>=0){if(i.configEquals(u.config,c))return u.atlas;1===u.ownedBy.length?(u.atlas.dispose(),o.splice(l,1)):u.ownedBy.splice(h,1);break}}for(l=0;l<o.length;l++){var u=o[l];if(i.configEquals(u.config,c))return u.ownedBy.push(t),u.atlas}var f={atlas:new n.DynamicCharAtlas(document,c),config:c,ownedBy:[t]};return o.push(f),f.atlas},t.removeTerminalFromCache=function(e){for(var t=0;t<o.length;t++){var r=o[t].ownedBy.indexOf(e);if(-1!==r){1===o[t].ownedBy.length?(o[t].atlas.dispose(),o.splice(t,1)):o[t].ownedBy.splice(r,1);break}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(3);t.generateConfig=function(e,t,r,i){var n={foreground:i.foreground,background:i.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:i.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:r.fontFamily,fontSize:r.fontSize,fontWeight:r.fontWeight,fontWeightBold:r.fontWeightBold,allowTransparency:r.allowTransparency,colors:n}},t.configEquals=function(e,t){for(var r=0;r<e.colors.ansi.length;r++)if(e.colors.ansi[r].rgba!==t.colors.ansi[r].rgba)return!1;return e.devicePixelRatio===t.devicePixelRatio&&e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontWeight===t.fontWeight&&e.fontWeightBold===t.fontWeightBold&&e.allowTransparency===t.allowTransparency&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background},t.is256Color=function(e){return e<i.DEFAULT_COLOR}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(10),n=r(45),o=i.fromCss("#ffffff"),s=i.fromCss("#000000"),a=i.fromCss("#ffffff"),c=i.fromCss("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=function(){for(var e=[i.fromCss("#2e3436"),i.fromCss("#cc0000"),i.fromCss("#4e9a06"),i.fromCss("#c4a000"),i.fromCss("#3465a4"),i.fromCss("#75507b"),i.fromCss("#06989a"),i.fromCss("#d3d7cf"),i.fromCss("#555753"),i.fromCss("#ef2929"),i.fromCss("#8ae234"),i.fromCss("#fce94f"),i.fromCss("#729fcf"),i.fromCss("#ad7fa8"),i.fromCss("#34e2e2"),i.fromCss("#eeeeec")],t=[0,95,135,175,215,255],r=0;r<216;r++){var n=t[r/36%6|0],o=t[r/6%6|0],s=t[r%6];e.push({css:i.toCss(n,o,s),rgba:i.toRgba(n,o,s)})}for(r=0;r<24;r++){var a=8+10*r;e.push({css:i.toCss(a,a,a),rgba:i.toRgba(a,a,a)})}return e}();var h=function(){function e(e,r){this.allowTransparency=r;var h=e.createElement("canvas");h.width=1,h.height=1;var u=h.getContext("2d");if(!u)throw new Error("Could not get rendering context");this._ctx=u,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new n.ColorContrastCache,this.colors={foreground:o,background:s,cursor:a,cursorAccent:c,selection:l,selectionOpaque:i.blend(s,l),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return e.prototype.onOptionsChange=function(e){"minimumContrastRatio"===e&&this._contrastCache.clear()},e.prototype.setTheme=function(e){void 0===e&&(e={}),this.colors.foreground=this._parseColor(e.foreground,o),this.colors.background=this._parseColor(e.background,s),this.colors.cursor=this._parseColor(e.cursor,a,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,c,!0),this.colors.selection=this._parseColor(e.selection,l,!0),this.colors.selectionOpaque=i.blend(this.colors.background,this.colors.selection),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},e.prototype._parseColor=function(e,t,r){if(void 0===r&&(r=this.allowTransparency),void 0===e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var n=this._ctx.getImageData(0,0,1,1).data;if(255!==n[3]){if(!r)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t;var o=void 0,s=void 0,a=void 0,c=void 0,l=void 0;if(5===e.length){var h=parseInt(e.substr(1),16);o=16*(h>>12&15),s=16*(h>>8&15),a=16*(h>>4&15),c=16*(15&h),l=i.toRgba(o,s,a,c)}else o=(l=parseInt(e.substr(1),16))>>24&255,s=l>>16&255,a=l>>8&255,c=255&l;return{rgba:l,css:i.toCss(o,s,a,c)}}return{css:e,rgba:i.toRgba(n[0],n[1],n[2],n[3])}},e}();t.ColorManager=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e}},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(6),s=r(3),a=r(5),c=function(e){function t(t,r,i){var n=e.call(this)||this;return n.content=0,n.combinedData="",n.fg=t.fg,n.bg=t.bg,n.combinedData=r,n._width=i,n}return n(t,e),t.prototype.isCombined=function(){return 2097152},t.prototype.getWidth=function(){return this._width},t.prototype.getChars=function(){return this.combinedData},t.prototype.getCode=function(){return 2097151},t.prototype.setFromCharData=function(e){throw new Error("not implemented")},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(o.AttributeData);t.JoinedCellData=c;var l=function(){function e(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}return e.prototype.registerCharacterJoiner=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregisterCharacterJoiner=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},e.prototype.getJoinedCharacters=function(e){if(0===this._characterJoiners.length)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];for(var r=[],i=t.translateToString(!0),n=0,o=0,a=0,c=t.getFg(0),l=t.getBg(0),h=0;h<t.getTrimmedLength();h++)if(t.loadCell(h,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==c||this._workCell.bg!==l){if(h-n>1)for(var u=this._getJoinedRanges(i,a,o,t,n),f=0;f<u.length;f++)r.push(u[f]);n=h,a=o,c=this._workCell.fg,l=this._workCell.bg}o+=this._workCell.getChars().length||s.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-n>1)for(u=this._getJoinedRanges(i,a,o,t,n),f=0;f<u.length;f++)r.push(u[f]);return r},e.prototype._getJoinedRanges=function(t,r,i,n,o){for(var s=t.substring(r,i),a=this._characterJoiners[0].handler(s),c=1;c<this._characterJoiners.length;c++)for(var l=this._characterJoiners[c].handler(s),h=0;h<l.length;h++)e._mergeRanges(a,l[h]);return this._stringRangesToCellRanges(a,n,o),a},e.prototype._stringRangesToCellRanges=function(e,t,r){var i=0,n=!1,o=0,a=e[i];if(a){for(var c=r;c<this._bufferService.cols;c++){var l=t.getWidth(c),h=t.getString(c).length||s.WHITESPACE_CELL_CHAR.length;if(0!==l){if(!n&&a[0]<=o&&(a[0]=c,n=!0),a[1]<=o){if(a[1]=c,!(a=e[++i]))break;a[0]<=o?(a[0]=c,n=!0):n=!1}o+=h}}a&&(a[1]=this._bufferService.cols)}},e._mergeRanges=function(e,t){for(var r=!1,i=0;i<e.length;i++){var n=e[i];if(r){if(t[1]<=n[0])return e[i-1][1]=t[1],e;if(t[1]<=n[1])return e[i-1][1]=Math.max(t[1],n[1]),e.splice(i,1),e;e.splice(i,1),i--}else{if(t[1]<=n[0])return e.splice(i,0,t),e;if(t[1]<=n[1])return n[0]=Math.min(t[0],n[0]),e;t[0]<n[1]&&(n[0]=Math.min(t[0],n[0]),r=!0)}}return r?e[e.length-1][1]=t[1]:e.push(t),e},e}();t.CharacterJoinerRegistry=l},function(e,t,r){"use strict";function i(e,t){var r=t.getBoundingClientRect();return[e.clientX-r.left,e.clientY-r.top]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoordsRelativeToElement=i,t.getCoords=function(e,t,r,n,o,s,a,c){if(o){var l=i(e,t);if(l)return l[0]=Math.ceil((l[0]+(c?s/2:0))/s),l[1]=Math.ceil(l[1]/a),l[0]=Math.min(Math.max(l[0],1),r+(c?1:0)),l[1]=Math.min(Math.max(l[1],1),n),l}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._renderCallback=e}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.refresh=function(e,t,r){var i=this;this._rowCount=r,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return i._innerRefresh()}))},e.prototype._innerRefresh=function(){void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount&&(this._rowStart=Math.max(this._rowStart,0),this._rowEnd=Math.min(this._rowEnd,this._rowCount-1),this._renderCallback(this._rowStart,this._rowEnd),this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0)},e}();t.RenderDebouncer=i},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currentDevicePixelRatio=window.devicePixelRatio,t}return n(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},t.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},t}(r(2).Disposable);t.ScreenDprMonitor=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=function e(t,r){if(void 0===r&&(r=5),"object"!=typeof t)return t;var i=Array.isArray(t)?[]:{};for(var n in t)i[n]=r<=1?t[n]:t[n]?e(t[n],r-1):t[n];return i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(34),n=r(17),o=r(78),s=function(){function e(e){this._core=new i.Terminal(e),this._addonManager=new o.AddonManager}return Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser||(this._parser=new h(this._core)),this._parser},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return new a(this._core.buffer)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._core.markers},enumerable:!0,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},e.prototype.open=function(e){this._core.open(e)},e.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},e.prototype.registerLinkMatcher=function(e,t,r){return this._core.registerLinkMatcher(e,t,r)},e.prototype.deregisterLinkMatcher=function(e){this._core.deregisterLinkMatcher(e)},e.prototype.registerCharacterJoiner=function(e){return this._core.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){this._core.deregisterCharacterJoiner(e)},e.prototype.addMarker=function(e){return this._verifyIntegers(e),this._core.addMarker(e)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(e,t,r){this._verifyIntegers(e,t,r),this._core.select(e,t,r)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},e.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(e,t){this._core.write(e,t)},e.prototype.writeUtf8=function(e,t){this._core.write(e,t)},e.prototype.writeln=function(e,t){this._core.write(e),this._core.write("\r\n",t)},e.prototype.paste=function(e){this._core.paste(e)},e.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},e.prototype.setOption=function(e,t){this._core.optionsService.setOption(e,t)},e.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},e.prototype.reset=function(){this._core.reset()},e.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(e,"strings",{get:function(){return n},enumerable:!0,configurable:!0}),e.prototype._verifyIntegers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.forEach(function(e){if(e===1/0||isNaN(e)||e%1!=0)throw new Error("This API only accepts integers")})},e}();t.Terminal=s;var a=function(){function e(e){this._buffer=e}return Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!0,configurable:!0}),e.prototype.getLine=function(e){var t=this._buffer.lines.get(e);if(t)return new c(t)},e}(),c=function(){function e(e){this._line=e}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!0,configurable:!0}),e.prototype.getCell=function(e){if(!(e<0||e>=this._line.length))return new l(this._line,e)},e.prototype.translateToString=function(e,t,r){return this._line.translateToString(e,t,r)},e}(),l=function(){function e(e,t){this._line=e,this._x=t}return Object.defineProperty(e.prototype,"char",{get:function(){return this._line.getString(this._x)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._line.getWidth(this._x)},enumerable:!0,configurable:!0}),e}(),h=function(){function e(e){this._core=e}return e.prototype.addCsiHandler=function(e,t){return this._core.addCsiHandler(e,function(e){return t(e.toArray())})},e.prototype.addDcsHandler=function(e,t){return this._core.addDcsHandler(e,function(e,r){return t(e,r.toArray())})},e.prototype.addEscHandler=function(e,t){return this._core.addEscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this._core.addOscHandler(e,t)},e}()},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(35),s=r(36),a=r(37),c=r(12),l=r(38),h=r(40),u=r(50),f=r(51),_=r(11),d=r(7),p=r(17),v=r(54),g=r(55),y=r(56),b=r(57),m=r(59),C=r(1),S=r(16),w=r(60),E=r(26),L=r(61),A=r(0),R=r(62),x=r(4),k=r(63),D=r(64),T=r(2),M=r(70),O=r(71),P=r(72),H=r(73),I=r(74),B=r(75),F=r(76),j=r(77),q="undefined"!=typeof window?window.document:null,W=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.browser=_,r.mouseEvents=0,r._keyDownHandled=!1,r._blankLine=null,r._onCursorMove=new C.EventEmitter,r._onData=new C.EventEmitter,r._onBinary=new C.EventEmitter,r._onKey=new C.EventEmitter,r._onLineFeed=new C.EventEmitter,r._onRender=new C.EventEmitter,r._onResize=new C.EventEmitter,r._onScroll=new C.EventEmitter,r._onSelectionChange=new C.EventEmitter,r._onTitleChange=new C.EventEmitter,r._onFocus=new C.EventEmitter,r._onBlur=new C.EventEmitter,r.onA11yCharEmitter=new C.EventEmitter,r.onA11yTabEmitter=new C.EventEmitter,r._instantiationService=new I.InstantiationService,r.optionsService=new R.OptionsService(t),r._instantiationService.setService(A.IOptionsService,r.optionsService),r._bufferService=r._instantiationService.createInstance(D.BufferService),r._instantiationService.setService(A.IBufferService,r._bufferService),r._logService=r._instantiationService.createInstance(P.LogService),r._instantiationService.setService(A.ILogService,r._logService),r._coreService=r._instantiationService.createInstance(O.CoreService,function(){return r.scrollToBottom()}),r._instantiationService.setService(A.ICoreService,r._coreService),r._coreService.onData(function(e){return r._onData.fire(e)}),r._coreService.onBinary(function(e){return r._onBinary.fire(e)}),r._coreMouseService=r._instantiationService.createInstance(B.CoreMouseService),r._instantiationService.setService(A.ICoreMouseService,r._coreMouseService),r._dirtyRowService=r._instantiationService.createInstance(H.DirtyRowService),r._instantiationService.setService(A.IDirtyRowService,r._dirtyRowService),r._setupOptionsListeners(),r._setup(),r._writeBuffer=new F.WriteBuffer(function(e){return r._inputHandler.parse(e)}),r}return n(t,e),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this.onA11yCharEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this.onA11yTabEmitter.event},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){var t,r,i,n;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0,null===(r=this._renderService)||void 0===r||r.dispose(),this._customKeyEventHandler=null,this.write=function(){},null===(n=null===(i=this.element)||void 0===i?void 0:i.parentNode)||void 0===n||n.removeChild(this.element))},t.prototype._setup=function(){var e=this;this._parent=q?q.body:null,this._customKeyEventHandler=null,this.applicationKeypad=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!0,this.bracketedPasteMode=!1,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.curAttrData=S.DEFAULT_ATTR_DATA.clone(),this._eraseAttrData=S.DEFAULT_ATTR_DATA.clone(),this.params=[],this.currentParam=0,this._userScrolling=!1,this._inputHandler=new l.InputHandler(this,this._bufferService,this._coreService,this._dirtyRowService,this._logService,this.optionsService,this._coreMouseService),this._inputHandler.onCursorMove(function(){return e._onCursorMove.fire()}),this._inputHandler.onLineFeed(function(){return e._onLineFeed.fire()}),this.register(this._inputHandler),this.linkifier=this.linkifier||new u.Linkifier(this._bufferService,this._logService),this.options.windowsMode&&this._enableWindowsMode()},t.prototype._enableWindowsMode=function(){this._windowsMode||(this._windowsMode=this.onLineFeed(w.handleWindowsModeLineFeed.bind(null,this._bufferService)))},Object.defineProperty(t.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!0,configurable:!0}),t.prototype.eraseAttrData=function(){return this._eraseAttrData.bg&=-67108864,this._eraseAttrData.bg|=67108863&this.curAttrData.bg,this._eraseAttrData},t.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},t.prototype._setupOptionsListeners=function(){var e=this;this.optionsService.onOptionChange(function(t){var r,i,n,o,s;switch(t){case"fontFamily":case"fontSize":null===(r=e._renderService)||void 0===r||r.clear(),null===(i=e._charSizeService)||void 0===i||i.measure();break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":e._renderService&&(e._renderService.clear(),e._renderService.onResize(e.cols,e.rows),e.refresh(0,e.rows-1));break;case"rendererType":e._renderService&&(e._renderService.setRenderer(e._createRenderer()),e._renderService.onResize(e.cols,e.rows));break;case"scrollback":e.buffers.resize(e.cols,e.rows),null===(n=e.viewport)||void 0===n||n.syncScrollArea();break;case"screenReaderMode":e.optionsService.options.screenReaderMode?!e._accessibilityManager&&e._renderService&&(e._accessibilityManager=new y.AccessibilityManager(e,e._renderService)):(null===(o=e._accessibilityManager)||void 0===o||o.dispose(),e._accessibilityManager=null);break;case"tabStopWidth":e.buffers.setupTabStops();break;case"theme":e._setTheme(e.optionsService.options.theme);break;case"windowsMode":e.optionsService.options.windowsMode?e._enableWindowsMode():(null===(s=e._windowsMode)||void 0===s||s.dispose(),e._windowsMode=void 0)}})},t.prototype._onTextAreaFocus=function(e){this.sendFocus&&this._coreService.triggerDataEvent(c.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this.showCursor(),this._onFocus.fire()},t.prototype.blur=function(){return this.textarea.blur()},t.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this._coreService.triggerDataEvent(c.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),this.register(d.addDisposableDomListener(this.element,"copy",function(t){e.hasSelection()&&a.copyHandler(t,e._selectionService)}));var t=function(t){return a.handlePasteEvent(t,e.textarea,e.bracketedPasteMode,e._coreService)};this.register(d.addDisposableDomListener(this.textarea,"paste",t)),this.register(d.addDisposableDomListener(this.element,"paste",t)),_.isFirefox?this.register(d.addDisposableDomListener(this.element,"mousedown",function(t){2===t.button&&a.rightClickHandler(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)})):this.register(d.addDisposableDomListener(this.element,"contextmenu",function(t){a.rightClickHandler(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)})),_.isLinux&&this.register(d.addDisposableDomListener(this.element,"auxclick",function(t){1===t.button&&a.moveTextAreaUnderMouseCursor(t,e.textarea,e.screenElement)}))},t.prototype._bindKeys=function(){var e=this;this.register(d.addDisposableDomListener(this.textarea,"keyup",function(t){return e._keyUp(t)},!0)),this.register(d.addDisposableDomListener(this.textarea,"keydown",function(t){return e._keyDown(t)},!0)),this.register(d.addDisposableDomListener(this.textarea,"keypress",function(t){return e._keyPress(t)},!0)),this.register(d.addDisposableDomListener(this.textarea,"compositionstart",function(){return e._compositionHelper.compositionstart()})),this.register(d.addDisposableDomListener(this.textarea,"compositionupdate",function(t){return e._compositionHelper.compositionupdate(t)})),this.register(d.addDisposableDomListener(this.textarea,"compositionend",function(){return e._compositionHelper.compositionend()})),this.register(this.onRender(function(){return e._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(t){return e._queueLinkification(t.start,t.end)}))},t.prototype.open=function(e){var t=this;if(this._parent=e||this._parent,!this._parent)throw new Error("Terminal requires a parent element.");q.body.contains(e)||this._logService.warn("Terminal.open was called on an element that was not attached to the DOM"),this._document=this._parent.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),this._parent.appendChild(this.element);var r=q.createDocumentFragment();this._viewportElement=q.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),r.appendChild(this._viewportElement),this._viewportScrollArea=q.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=q.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=q.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),r.appendChild(this.screenElement),this.textarea=q.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",p.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(d.addDisposableDomListener(this.textarea,"focus",function(e){return t._onTextAreaFocus(e)})),this.register(d.addDisposableDomListener(this.textarea,"blur",function(){return t._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var i=this._instantiationService.createInstance(j.CoreBrowserService,this.textarea);this._instantiationService.setService(x.ICoreBrowserService,i),this._charSizeService=this._instantiationService.createInstance(k.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(x.ICharSizeService,this._charSizeService),this._compositionView=q.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(o.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(r),this._theme=this.options.theme||this._theme,this.options.theme=void 0,this._colorManager=new E.ColorManager(q,this.options.allowTransparency),this.optionsService.onOptionChange(function(e){return t._colorManager.onOptionsChange(e)}),this._colorManager.setTheme(this._theme);var n=this._createRenderer();this._renderService=this._instantiationService.createInstance(L.RenderService,n,this.rows,this.screenElement),this._instantiationService.setService(x.IRenderService,this._renderService),this._renderService.onRender(function(e){return t._onRender.fire(e)}),this.onResize(function(e){return t._renderService.resize(e.cols,e.rows)}),this._soundService=this._instantiationService.createInstance(v.SoundService),this._instantiationService.setService(x.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(M.MouseService),this._instantiationService.setService(x.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(s.Viewport,function(e,r){return t.scrollLines(e,r)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this.viewport),this.register(this.onCursorMove(function(){return t._renderService.onCursorMove()})),this.register(this.onResize(function(){return t._renderService.onResize(t.cols,t.rows)})),this.register(this.onBlur(function(){return t._renderService.onBlur()})),this.register(this.onFocus(function(){return t._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return t.viewport.syncScrollArea()})),this._selectionService=this._instantiationService.createInstance(f.SelectionService,function(e,r){return t.scrollLines(e,r)},this.element,this.screenElement),this._instantiationService.setService(x.ISelectionService,this._selectionService),this.register(this._selectionService.onSelectionChange(function(){return t._onSelectionChange.fire()})),this.register(this._selectionService.onRedrawRequest(function(e){return t._renderService.onSelectionChanged(e.start,e.end,e.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()})),this.register(this.onScroll(function(){t.viewport.syncScrollArea(),t._selectionService.refresh()})),this.register(d.addDisposableDomListener(this._viewportElement,"scroll",function(){return t._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(g.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return t._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.register(d.addDisposableDomListener(this.element,"mousedown",function(e){return t._selectionService.onMouseDown(e)})),this.mouseEvents?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new y.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},t.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(h.Renderer,this._colorManager.colors,this.screenElement,this.linkifier);case"dom":return this._instantiationService.createInstance(b.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},t.prototype._setTheme=function(e){var t,r,i;this._theme=e,null===(t=this._colorManager)||void 0===t||t.setTheme(e),null===(r=this._renderService)||void 0===r||r.setColors(this._colorManager.colors),null===(i=this.viewport)||void 0===i||i.onThemeChange(this._colorManager.colors)},t.prototype.bindMouse=function(){var e=this,t=this,r=this.element;function i(e){var r,i,n;if(!(r=t._mouseService.getRawByteCoords(e,t.screenElement,t.cols,t.rows)))return!1;switch(e.overrideType||e.type){case"mousemove":n=32,void 0===e.buttons?(i=3,void 0!==e.button&&(i=e.button<3?e.button:3)):i=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":n=0,i=e.button<3?e.button:3;break;case"mousedown":n=1,i=e.button<3?e.button:3;break;case"wheel":0!==e.deltaY&&(n=e.deltaY<0?0:1),i=4;break;default:return!1}return!(void 0===n||void 0===i||i>4)&&t._coreMouseService.triggerMouseEvent({col:r.x-33,row:r.y-33,button:i,action:n,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var n={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o=function(t){return i(t),t.buttons||(e._document.removeEventListener("mouseup",n.mouseup),n.mousedrag&&e._document.removeEventListener("mousemove",n.mousedrag)),e.cancel(t)},s=function(t){return i(t),t.preventDefault(),e.cancel(t)},a=function(e){e.buttons&&i(e)},l=function(e){e.buttons||i(e)};this._coreMouseService.onProtocolChange(function(t){e.mouseEvents=t,t?("debug"===e.optionsService.options.logLevel&&e._logService.debug("Binding to mouse events:",e._coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?n.mousemove||(r.addEventListener("mousemove",l),n.mousemove=l):(r.removeEventListener("mousemove",n.mousemove),n.mousemove=null),16&t?n.wheel||(r.addEventListener("wheel",s),n.wheel=s):(r.removeEventListener("wheel",n.wheel),n.wheel=null),2&t?n.mouseup||(n.mouseup=o):(e._document.removeEventListener("mouseup",n.mouseup),n.mouseup=null),4&t?n.mousedrag||(n.mousedrag=a):(e._document.removeEventListener("mousemove",n.mousedrag),n.mousedrag=null)}),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(d.addDisposableDomListener(r,"mousedown",function(t){if(t.preventDefault(),e.focus(),e.mouseEvents&&!e._selectionService.shouldForceSelection(t))return i(t),n.mouseup&&e._document.addEventListener("mouseup",n.mouseup),n.mousedrag&&e._document.addEventListener("mousemove",n.mousedrag),e.cancel(t)})),this.register(d.addDisposableDomListener(r,"wheel",function(t){if(n.wheel);else if(!e.buffer.hasScrollback){var r=e.viewport.getLinesScrolled(t);if(0===r)return;for(var i=c.C0.ESC+(e._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),o="",s=0;s<Math.abs(r);s++)o+=i;e._coreService.triggerDataEvent(o,!0)}})),this.register(d.addDisposableDomListener(r,"wheel",function(t){if(!n.wheel)return e.viewport.onWheel(t)?void 0:e.cancel(t)})),this.register(d.addDisposableDomListener(r,"touchstart",function(t){if(!e.mouseEvents)return e.viewport.onTouchStart(t),e.cancel(t)})),this.register(d.addDisposableDomListener(r,"touchmove",function(t){if(!e.mouseEvents)return e.viewport.onTouchMove(t)?void 0:e.cancel(t)}))},t.prototype.refresh=function(e,t){var r;null===(r=this._renderService)||void 0===r||r.refreshRows(e,t)},t.prototype._queueLinkification=function(e,t){var r;null===(r=this.linkifier)||void 0===r||r.linkifyRows(e,t)},t.prototype.updateCursorStyle=function(e){this._selectionService&&this._selectionService.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},t.prototype.showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},t.prototype.scroll=function(e){var t;void 0===e&&(e=!1),t=this._blankLine;var r=this.eraseAttrData();t&&t.length===this.cols&&t.getFg(0)===r.fg&&t.getBg(0)===r.bg||(t=this.buffer.getBlankLine(r,e),this._blankLine=t),t.isWrapped=e;var i=this.buffer.ybase+this.buffer.scrollTop,n=this.buffer.ybase+this.buffer.scrollBottom;if(0===this.buffer.scrollTop){var o=this.buffer.lines.isFull;n===this.buffer.lines.length-1?o?this.buffer.lines.recycle().copyFrom(t):this.buffer.lines.push(t.clone()):this.buffer.lines.splice(n+1,0,t.clone()),o?this._userScrolling&&(this.buffer.ydisp=Math.max(this.buffer.ydisp-1,0)):(this.buffer.ybase++,this._userScrolling||this.buffer.ydisp++)}else{var s=n-i+1;this.buffer.lines.shiftElements(i+1,s-1,-1),this.buffer.lines.set(n,t.clone())}this._userScrolling||(this.buffer.ydisp=this.buffer.ybase),this._dirtyRowService.markRangeDirty(this.buffer.scrollTop,this.buffer.scrollBottom),this._onScroll.fire(this.buffer.ydisp)},t.prototype.scrollLines=function(e,t){if(e<0){if(0===this.buffer.ydisp)return;this._userScrolling=!0}else e+this.buffer.ydisp>=this.buffer.ybase&&(this._userScrolling=!1);var r=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),r!==this.buffer.ydisp&&(t||this._onScroll.fire(this.buffer.ydisp),this.refresh(0,this.rows-1))},t.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},t.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},t.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},t.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},t.prototype.paste=function(e){a.paste(e,this.textarea,this.bracketedPasteMode,this._coreService)},t.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},t.prototype.addEscHandler=function(e,t){return this._inputHandler.addEscHandler(e,t)},t.prototype.addDcsHandler=function(e,t){return this._inputHandler.addDcsHandler(e,t)},t.prototype.addCsiHandler=function(e,t){return this._inputHandler.addCsiHandler(e,t)},t.prototype.addOscHandler=function(e,t){return this._inputHandler.addOscHandler(e,t)},t.prototype.registerLinkMatcher=function(e,t,r){var i=this.linkifier.registerLinkMatcher(e,t,r);return this.refresh(0,this.rows-1),i},t.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.registerCharacterJoiner=function(e){var t=this._renderService.registerCharacterJoiner(e);return this.refresh(0,this.rows-1),t},t.prototype.deregisterCharacterJoiner=function(e){this._renderService.deregisterCharacterJoiner(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(t.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!0,configurable:!0}),t.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},t.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},t.prototype.select=function(e,t,r){this._selectionService.setSelection(e,t,r)},t.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},t.prototype.getSelectionPosition=function(){if(this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},t.prototype.clearSelection=function(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()},t.prototype.selectAll=function(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()},t.prototype.selectLines=function(e,t){var r;null===(r=this._selectionService)||void 0===r||r.selectLines(e,t)},t.prototype._keyDown=function(e){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=m.evaluateKeyboardEvent(e,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===t.type||2===t.type){var r=this.rows-1;return this.scrollLines(2===t.type?-r:r),this.cancel(e,!0)}return 1===t.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(t.key!==c.C0.ETX&&t.key!==c.C0.CR||(this.textarea.value=""),this._onKey.fire({key:t.key,domEvent:e}),this.showCursor(),this._coreService.triggerDataEvent(t.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0)))},t.prototype._isThirdLevelShift=function(e,t){var r=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?r:r&&(!t.keyCode||t.keyCode>47)},t.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},t.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},t.prototype._keyUp=function(e){this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e))},t.prototype._keyPress=function(e){var t;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e))&&(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this.showCursor(),this._coreService.triggerDataEvent(t,!0),!0)},t.prototype.bell=function(){var e=this;this._soundBell()&&this._soundService.playBellSound(),this._visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this._visualBellTimer),this._visualBellTimer=window.setTimeout(function(){e.element.classList.remove("visual-bell-active")},200))},t.prototype.resize=function(e,t){var r;isNaN(e)||isNaN(t)||(e!==this.cols||t!==this.rows?(e<D.MINIMUM_COLS&&(e=D.MINIMUM_COLS),t<D.MINIMUM_ROWS&&(t=D.MINIMUM_ROWS),this.buffers.resize(e,t),this._bufferService.resize(e,t),this.buffers.setupTabStops(this.cols),null===(r=this._charSizeService)||void 0===r||r.measure(),this.viewport.syncScrollArea(!0),this.refresh(0,this.rows-1),this._onResize.fire({cols:e,rows:t})):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure())},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(S.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},t.prototype.is=function(e){return 0===(this.options.termName+"").indexOf(e)},t.prototype.handleTitle=function(e){this._onTitleChange.fire(e)},t.prototype.reset=function(){var e,t;this.options.rows=this.rows,this.options.cols=this.cols;var r=this._customKeyEventHandler,i=this._inputHandler,n=this._userScrolling;this._setup(),this._bufferService.reset(),this._coreService.reset(),this._coreMouseService.reset(),null===(e=this._selectionService)||void 0===e||e.reset(),this._customKeyEventHandler=r,this._inputHandler=i,this._userScrolling=n,this.refresh(0,this.rows-1),null===(t=this.viewport)||void 0===t||t.syncScrollArea()},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype._visualBell=function(){return!1},t.prototype._soundBell=function(){return"sound"===this.options.bellStyle},t.prototype.write=function(e,t){this._writeBuffer.write(e,t)},t.prototype.writeSync=function(e){this._writeBuffer.writeSync(e)},t}(T.Disposable);t.Terminal=W},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),s=r(0),a=function(){function e(e,t,r,i,n,o){this._textarea=e,this._compositionView=t,this._bufferService=r,this._optionsService=i,this._charSizeService=n,this._coreService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,this._clearTextareaPosition(),e){var r={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(t._isSendingComposition){t._isSendingComposition=!1;var e=void 0;e=t._isComposing?t._textarea.value.substring(r.start,r.end):t._textarea.value.substring(r.start),t._coreService.triggerDataEvent(e,!0)}},0)}else{this._isSendingComposition=!1;var i=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(i,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout(function(){if(!e._isComposing){var r=e._textarea.value.replace(t,"");r.length>0&&e._coreService.triggerDataEvent(r,!0)}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var r=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),i=this._bufferService.buffer.y*r,n=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=n+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=r+"px",this._compositionView.style.lineHeight=r+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var o=this._compositionView.getBoundingClientRect();this._textarea.style.left=n+"px",this._textarea.style.top=i+"px",this._textarea.style.width=o.width+"px",this._textarea.style.height=o.height+"px",this._textarea.style.lineHeight=o.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},e.prototype._clearTextareaPosition=function(){this._textarea.style.left="",this._textarea.style.top=""},e=i([n(2,s.IBufferService),n(3,s.IOptionsService),n(4,o.ICharSizeService),n(5,s.ICoreService)],e)}();t.CompositionHelper=a},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),c=r(7),l=r(4),h=r(0),u=15,f=function(e){function t(t,r,i,n,o,s,a){var l=e.call(this)||this;return l._scrollLines=t,l._viewportElement=r,l._scrollArea=i,l._bufferService=n,l._optionsService=o,l._charSizeService=s,l._renderService=a,l.scrollBarWidth=0,l._currentRowHeight=0,l._lastRecordedBufferLength=0,l._lastRecordedViewportHeight=0,l._lastRecordedBufferHeight=0,l._lastTouchY=0,l._lastScrollTop=0,l._wheelPartialScroll=0,l._refreshAnimationFrame=null,l._ignoreNextScrollEvent=!1,l.scrollBarWidth=l._viewportElement.offsetWidth-l._scrollArea.offsetWidth||u,l.register(c.addDisposableDomListener(l._viewportElement,"scroll",l._onScroll.bind(l))),setTimeout(function(){return l.syncScrollArea()},0),l}return n(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===t&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)}else this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t,!0)}},t.prototype._bubbleScroll=function(e,t){var r=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&r<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},t.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},t.prototype._getPixelsScrolled=function(e){if(0===e.deltaY)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t},t.prototype.getLinesScrolled=function(e){if(0===e.deltaY)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},t.prototype._applyScrollModifier=function(e,t){var r=this._optionsService.options.fastScrollModifier;return"alt"===r&&t.altKey||"ctrl"===r&&t.ctrlKey||"shift"===r&&t.shiftKey?e*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:e*this._optionsService.options.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},t=o([s(3,h.IBufferService),s(4,h.IOptionsService),s(5,l.ICharSizeService),s(6,l.IRenderService)],t)}(a.Disposable);t.Viewport=f},function(e,t,r){"use strict";function i(e){return e.replace(/\r?\n/g,"\r")}function n(e,t){return t?"[200~"+e+"[201~":e}function o(e,t,r,o){e=n(e=i(e),r),o.triggerDataEvent(e,!0),t.value=""}function s(e,t,r){var i=r.getBoundingClientRect(),n=e.clientX-i.left-10,o=e.clientY-i.top-10;t.style.position="absolute",t.style.width="20px",t.style.height="20px",t.style.left=n+"px",t.style.top=o+"px",t.style.zIndex="1000",t.focus(),setTimeout(function(){t.style.position="",t.style.width="",t.style.height="",t.style.left="",t.style.top="",t.style.zIndex=""},200)}Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTextForTerminal=i,t.bracketTextForPaste=n,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,r,i){e.stopPropagation(),e.clipboardData&&o(e.clipboardData.getData("text/plain"),t,r,i)},t.paste=o,t.moveTextAreaUnderMouseCursor=s,t.rightClickHandler=function(e,t,r,i,n){s(e,t,r),n&&!i.isClickInSelection(e)&&i.selectWordAtCursor(e),t.value=i.selectionText,t.select()}},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(12),s=r(18),a=r(19),c=r(39),l=r(2),h=r(15),u=r(8),f=r(16),_=r(1),d=r(3),p=r(5),v=r(6),g=r(21),y=r(23),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2},m=function(){function e(e,t,r,i){this._bufferService=e,this._coreService=t,this._logService=r,this._optionsService=i,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,r){this._data=h.concat(this._data,e.subarray(t,r))},e.prototype.unhook=function(e){if(e){var t=u.utf32ToString(this._data);switch(this._data=new Uint32Array(0),t){case'"q':return this._coreService.triggerDataEvent(o.C0.ESC+'P1$r0"q'+o.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(o.C0.ESC+'P1$r61"p'+o.C0.ESC+"\\");case"r":var r=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(o.C0.ESC+"P1$r"+r+o.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(o.C0.ESC+"P1$r0m"+o.C0.ESC+"\\");case" q":var i={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return i-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(o.C0.ESC+"P1$r"+i+" q"+o.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(o.C0.ESC+"P0$r"+o.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},e}(),C=function(e){function t(t,r,i,n,a,l,h,f){void 0===f&&(f=new c.EscapeSequenceParser);var d=e.call(this)||this;d._terminal=t,d._bufferService=r,d._coreService=i,d._dirtyRowService=n,d._logService=a,d._optionsService=l,d._coreMouseService=h,d._parser=f,d._parseBuffer=new Uint32Array(4096),d._stringDecoder=new u.StringToUtf32,d._utf8Decoder=new u.Utf8ToUtf32,d._workCell=new p.CellData,d._onCursorMove=new _.EventEmitter,d._onLineFeed=new _.EventEmitter,d._onScroll=new _.EventEmitter,d.register(d._parser),d._parser.setCsiHandlerFallback(function(e,t){d._logService.debug("Unknown CSI code: ",{identifier:d._parser.identToString(e),params:t.toArray()})}),d._parser.setEscHandlerFallback(function(e){d._logService.debug("Unknown ESC code: ",{identifier:d._parser.identToString(e)})}),d._parser.setExecuteHandlerFallback(function(e){d._logService.debug("Unknown EXECUTE code: ",{code:e})}),d._parser.setOscHandlerFallback(function(e,t,r){d._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:r})}),d._parser.setDcsHandlerFallback(function(e,t,r){"HOOK"===t&&(r=r.toArray()),d._logService.debug("Unknown DCS code: ",{identifier:d._parser.identToString(e),action:t,payload:r})}),d._parser.setPrintHandler(function(e,t,r){return d.print(e,t,r)}),d._parser.setCsiHandler({final:"@"},function(e){return d.insertChars(e)}),d._parser.setCsiHandler({intermediates:" ",final:"@"},function(e){return d.scrollLeft(e)}),d._parser.setCsiHandler({final:"A"},function(e){return d.cursorUp(e)}),d._parser.setCsiHandler({intermediates:" ",final:"A"},function(e){return d.scrollRight(e)}),d._parser.setCsiHandler({final:"B"},function(e){return d.cursorDown(e)}),d._parser.setCsiHandler({final:"C"},function(e){return d.cursorForward(e)}),d._parser.setCsiHandler({final:"D"},function(e){return d.cursorBackward(e)}),d._parser.setCsiHandler({final:"E"},function(e){return d.cursorNextLine(e)}),d._parser.setCsiHandler({final:"F"},function(e){return d.cursorPrecedingLine(e)}),d._parser.setCsiHandler({final:"G"},function(e){return d.cursorCharAbsolute(e)}),d._parser.setCsiHandler({final:"H"},function(e){return d.cursorPosition(e)}),d._parser.setCsiHandler({final:"I"},function(e){return d.cursorForwardTab(e)}),d._parser.setCsiHandler({final:"J"},function(e){return d.eraseInDisplay(e)}),d._parser.setCsiHandler({prefix:"?",final:"J"},function(e){return d.eraseInDisplay(e)}),d._parser.setCsiHandler({final:"K"},function(e){return d.eraseInLine(e)}),d._parser.setCsiHandler({prefix:"?",final:"K"},function(e){return d.eraseInLine(e)}),d._parser.setCsiHandler({final:"L"},function(e){return d.insertLines(e)}),d._parser.setCsiHandler({final:"M"},function(e){return d.deleteLines(e)}),d._parser.setCsiHandler({final:"P"},function(e){return d.deleteChars(e)}),d._parser.setCsiHandler({final:"S"},function(e){return d.scrollUp(e)}),d._parser.setCsiHandler({final:"T"},function(e){return d.scrollDown(e)}),d._parser.setCsiHandler({final:"X"},function(e){return d.eraseChars(e)}),d._parser.setCsiHandler({final:"Z"},function(e){return d.cursorBackwardTab(e)}),d._parser.setCsiHandler({final:"`"},function(e){return d.charPosAbsolute(e)}),d._parser.setCsiHandler({final:"a"},function(e){return d.hPositionRelative(e)}),d._parser.setCsiHandler({final:"b"},function(e){return d.repeatPrecedingCharacter(e)}),d._parser.setCsiHandler({final:"c"},function(e){return d.sendDeviceAttributesPrimary(e)}),d._parser.setCsiHandler({prefix:">",final:"c"},function(e){return d.sendDeviceAttributesSecondary(e)}),d._parser.setCsiHandler({final:"d"},function(e){return d.linePosAbsolute(e)}),d._parser.setCsiHandler({final:"e"},function(e){return d.vPositionRelative(e)}),d._parser.setCsiHandler({final:"f"},function(e){return d.hVPosition(e)}),d._parser.setCsiHandler({final:"g"},function(e){return d.tabClear(e)}),d._parser.setCsiHandler({final:"h"},function(e){return d.setMode(e)}),d._parser.setCsiHandler({prefix:"?",final:"h"},function(e){return d.setModePrivate(e)}),d._parser.setCsiHandler({final:"l"},function(e){return d.resetMode(e)}),d._parser.setCsiHandler({prefix:"?",final:"l"},function(e){return d.resetModePrivate(e)}),d._parser.setCsiHandler({final:"m"},function(e){return d.charAttributes(e)}),d._parser.setCsiHandler({final:"n"},function(e){return d.deviceStatus(e)}),d._parser.setCsiHandler({prefix:"?",final:"n"},function(e){return d.deviceStatusPrivate(e)}),d._parser.setCsiHandler({intermediates:"!",final:"p"},function(e){return d.softReset(e)}),d._parser.setCsiHandler({intermediates:" ",final:"q"},function(e){return d.setCursorStyle(e)}),d._parser.setCsiHandler({final:"r"},function(e){return d.setScrollRegion(e)}),d._parser.setCsiHandler({final:"s"},function(e){return d.saveCursor(e)}),d._parser.setCsiHandler({final:"u"},function(e){return d.restoreCursor(e)}),d._parser.setCsiHandler({intermediates:"'",final:"}"},function(e){return d.insertColumns(e)}),d._parser.setCsiHandler({intermediates:"'",final:"~"},function(e){return d.deleteColumns(e)}),d._parser.setExecuteHandler(o.C0.BEL,function(){return d.bell()}),d._parser.setExecuteHandler(o.C0.LF,function(){return d.lineFeed()}),d._parser.setExecuteHandler(o.C0.VT,function(){return d.lineFeed()}),d._parser.setExecuteHandler(o.C0.FF,function(){return d.lineFeed()}),d._parser.setExecuteHandler(o.C0.CR,function(){return d.carriageReturn()}),d._parser.setExecuteHandler(o.C0.BS,function(){return d.backspace()}),d._parser.setExecuteHandler(o.C0.HT,function(){return d.tab()}),d._parser.setExecuteHandler(o.C0.SO,function(){return d.shiftOut()}),d._parser.setExecuteHandler(o.C0.SI,function(){return d.shiftIn()}),d._parser.setExecuteHandler(o.C1.IND,function(){return d.index()}),d._parser.setExecuteHandler(o.C1.NEL,function(){return d.nextLine()}),d._parser.setExecuteHandler(o.C1.HTS,function(){return d.tabSet()}),d._parser.setOscHandler(0,new g.OscHandler(function(e){return d.setTitle(e)})),d._parser.setOscHandler(2,new g.OscHandler(function(e){return d.setTitle(e)})),d._parser.setEscHandler({final:"7"},function(){return d.saveCursor()}),d._parser.setEscHandler({final:"8"},function(){return d.restoreCursor()}),d._parser.setEscHandler({final:"D"},function(){return d.index()}),d._parser.setEscHandler({final:"E"},function(){return d.nextLine()}),d._parser.setEscHandler({final:"H"},function(){return d.tabSet()}),d._parser.setEscHandler({final:"M"},function(){return d.reverseIndex()}),d._parser.setEscHandler({final:"="},function(){return d.keypadApplicationMode()}),d._parser.setEscHandler({final:">"},function(){return d.keypadNumericMode()}),d._parser.setEscHandler({final:"c"},function(){return d.reset()}),d._parser.setEscHandler({final:"n"},function(){return d.setgLevel(2)}),d._parser.setEscHandler({final:"o"},function(){return d.setgLevel(3)}),d._parser.setEscHandler({final:"|"},function(){return d.setgLevel(3)}),d._parser.setEscHandler({final:"}"},function(){return d.setgLevel(2)}),d._parser.setEscHandler({final:"~"},function(){return d.setgLevel(1)}),d._parser.setEscHandler({intermediates:"%",final:"@"},function(){return d.selectDefaultCharset()}),d._parser.setEscHandler({intermediates:"%",final:"G"},function(){return d.selectDefaultCharset()});var v=function(e){y._parser.setEscHandler({intermediates:"(",final:e},function(){return d.selectCharset("("+e)}),y._parser.setEscHandler({intermediates:")",final:e},function(){return d.selectCharset(")"+e)}),y._parser.setEscHandler({intermediates:"*",final:e},function(){return d.selectCharset("*"+e)}),y._parser.setEscHandler({intermediates:"+",final:e},function(){return d.selectCharset("+"+e)}),y._parser.setEscHandler({intermediates:"-",final:e},function(){return d.selectCharset("-"+e)}),y._parser.setEscHandler({intermediates:".",final:e},function(){return d.selectCharset("."+e)}),y._parser.setEscHandler({intermediates:"/",final:e},function(){return d.selectCharset("/"+e)})},y=this;for(var b in s.CHARSETS)v(b);return d._parser.setEscHandler({intermediates:"#",final:"8"},function(){return d.screenAlignmentPattern()}),d._parser.setErrorHandler(function(e){return d._logService.error("Parsing error: ",e),e}),d._parser.setDcsHandler({intermediates:"$",final:"q"},new m(d._bufferService,d._coreService,d._logService,d._optionsService)),d}return n(t,e),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.parse=function(e){var t=this._bufferService.buffer,r=t.x,i=t.y;if(this._logService.debug("parsing data",e),this._parseBuffer.length<e.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(e.length,131072))),this._dirtyRowService.clearRange(),e.length>131072)for(var n=0;n<e.length;n+=131072){var o=n+131072<e.length?n+131072:e.length,s="string"==typeof e?this._stringDecoder.decode(e.substring(n,o),this._parseBuffer):this._utf8Decoder.decode(e.subarray(n,o),this._parseBuffer);this._parser.parse(this._parseBuffer,s)}else{s="string"==typeof e?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);this._parser.parse(this._parseBuffer,s)}(t=this._bufferService.buffer).x===r&&t.y===i||this._onCursorMove.fire(),this._terminal.refresh(this._dirtyRowService.start,this._dirtyRowService.end)},t.prototype.print=function(e,t,r){var i,n,o=this._bufferService.buffer,s=this._terminal.charset,c=this._optionsService.options.screenReaderMode,l=this._bufferService.cols,h=this._terminal.wraparoundMode,f=this._terminal.insertMode,_=this._terminal.curAttrData,p=o.lines.get(o.y+o.ybase);this._dirtyRowService.markDirty(o.y);for(var v=t;v<r;++v){if(i=e[v],n=a.wcwidth(i),i<127&&s){var g=s[String.fromCharCode(i)];g&&(i=g.charCodeAt(0))}if(c&&this._terminal.onA11yCharEmitter.fire(u.stringFromCodePoint(i)),n||!o.x){if(o.x+n-1>=l)if(h)o.x=0,o.y++,o.y===o.scrollBottom+1?(o.y--,this._terminal.scroll(!0)):(o.y>=this._bufferService.rows&&(o.y=this._bufferService.rows-1),o.lines.get(o.y).isWrapped=!0),p=o.lines.get(o.y+o.ybase);else if(o.x=l-1,2===n)continue;if(f&&(p.insertCells(o.x,n,o.getNullCell(_)),2===p.getWidth(l-1)&&p.setCellFromCodePoint(l-1,d.NULL_CELL_CODE,d.NULL_CELL_WIDTH,_.fg,_.bg)),p.setCellFromCodePoint(o.x++,i,n,_.fg,_.bg),n>0)for(;--n;)p.setCellFromCodePoint(o.x++,0,0,_.fg,_.bg)}else p.getWidth(o.x-1)?p.addCodepointToCell(o.x-1,i):p.addCodepointToCell(o.x-2,i)}r&&(p.loadCell(o.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._dirtyRowService.markDirty(o.y)},t.prototype.addCsiHandler=function(e,t){return this._parser.addCsiHandler(e,t)},t.prototype.addDcsHandler=function(e,t){return this._parser.addDcsHandler(e,new y.DcsHandler(t))},t.prototype.addEscHandler=function(e,t){return this._parser.addEscHandler(e,t)},t.prototype.addOscHandler=function(e,t){return this._parser.addOscHandler(e,new g.OscHandler(t))},t.prototype.bell=function(){this._terminal.bell()},t.prototype.lineFeed=function(){var e=this._bufferService.buffer;this._dirtyRowService.markDirty(e.y),this._optionsService.options.convertEol&&(e.x=0),e.y++,e.y===e.scrollBottom+1?(e.y--,this._terminal.scroll()):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),e.x>=this._bufferService.cols&&e.x--,this._dirtyRowService.markDirty(e.y),this._onLineFeed.fire()},t.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},t.prototype.backspace=function(){this._restrictCursor(),this._bufferService.buffer.x>0&&this._bufferService.buffer.x--},t.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var e=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._terminal.onA11yTabEmitter.fire(this._bufferService.buffer.x-e)}},t.prototype.shiftOut=function(){this._terminal.setgLevel(1)},t.prototype.shiftIn=function(){this._terminal.setgLevel(0)},t.prototype._restrictCursor=function(){this._bufferService.buffer.x=Math.min(this._bufferService.cols-1,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._terminal.originMode?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},t.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._terminal.originMode?(this._bufferService.buffer.x=e,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+t):(this._bufferService.buffer.x=e,this._bufferService.buffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},t.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+e,this._bufferService.buffer.y+t)},t.prototype.cursorUp=function(e){var t=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1))},t.prototype.cursorDown=function(e){var t=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1)},t.prototype.cursorForward=function(e){this._moveCursor(e.params[0]||1,0)},t.prototype.cursorBackward=function(e){this._moveCursor(-(e.params[0]||1),0)},t.prototype.cursorNextLine=function(e){this.cursorDown(e),this._bufferService.buffer.x=0},t.prototype.cursorPrecedingLine=function(e){this.cursorUp(e),this._bufferService.buffer.x=0},t.prototype.cursorCharAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},t.prototype.cursorPosition=function(e){this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1)},t.prototype.charPosAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},t.prototype.hPositionRelative=function(e){this._moveCursor(e.params[0]||1,0)},t.prototype.linePosAbsolute=function(e){this._setCursor(this._bufferService.buffer.x,(e.params[0]||1)-1)},t.prototype.vPositionRelative=function(e){this._moveCursor(0,e.params[0]||1)},t.prototype.hVPosition=function(e){this.cursorPosition(e)},t.prototype.tabClear=function(e){var t=e.params[0];0===t?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:3===t&&(this._bufferService.buffer.tabs={})},t.prototype.cursorForwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1;t--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},t.prototype.cursorBackwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1,r=this._bufferService.buffer;t--;)r.x=r.prevStop()},t.prototype._eraseInBufferLine=function(e,t,r,i){void 0===i&&(i=!1);var n=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);n.replaceCells(t,r,this._bufferService.buffer.getNullCell(this._terminal.eraseAttrData())),i&&(n.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);t.fill(this._bufferService.buffer.getNullCell(this._terminal.eraseAttrData())),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(),e.params[0]){case 0:for(t=this._bufferService.buffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._bufferService.buffer.x,this._bufferService.cols,0===this._bufferService.buffer.x);t<this._bufferService.rows;t++)this._resetBufferLine(t);this._dirtyRowService.markDirty(t);break;case 1:for(t=this._bufferService.buffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var r=this._bufferService.buffer.lines.length-this._bufferService.rows;r>0&&(this._bufferService.buffer.lines.trimStart(r),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-r,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-r,0),this._onScroll.fire(0))}},t.prototype.eraseInLine=function(e){switch(this._restrictCursor(),e.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},t.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1,r=this._bufferService.buffer;if(!(r.y>r.scrollBottom||r.y<r.scrollTop)){for(var i=r.y+r.ybase,n=this._bufferService.rows-1-r.scrollBottom,o=this._bufferService.rows-1+r.ybase-n+1;t--;)r.lines.splice(o-1,1),r.lines.splice(i,0,r.getBlankLine(this._terminal.eraseAttrData()));this._dirtyRowService.markRangeDirty(r.y,r.scrollBottom),r.x=0}},t.prototype.deleteLines=function(e){this._restrictCursor();var t=e.params[0]||1,r=this._bufferService.buffer;if(!(r.y>r.scrollBottom||r.y<r.scrollTop)){var i,n=r.y+r.ybase;for(i=this._bufferService.rows-1-r.scrollBottom,i=this._bufferService.rows-1+r.ybase-i;t--;)r.lines.splice(n,1),r.lines.splice(i,0,r.getBlankLine(this._terminal.eraseAttrData()));this._dirtyRowService.markRangeDirty(r.y,r.scrollBottom),r.x=0}},t.prototype.insertChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.y+this._bufferService.buffer.ybase);t&&(t.insertCells(this._bufferService.buffer.x,e.params[0]||1,this._bufferService.buffer.getNullCell(this._terminal.eraseAttrData())),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},t.prototype.deleteChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.y+this._bufferService.buffer.ybase);t&&(t.deleteCells(this._bufferService.buffer.x,e.params[0]||1,this._bufferService.buffer.getNullCell(this._terminal.eraseAttrData())),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},t.prototype.scrollUp=function(e){for(var t=e.params[0]||1,r=this._bufferService.buffer;t--;)r.lines.splice(r.ybase+r.scrollTop,1),r.lines.splice(r.ybase+r.scrollBottom,0,r.getBlankLine(this._terminal.eraseAttrData()));this._dirtyRowService.markRangeDirty(r.scrollTop,r.scrollBottom)},t.prototype.scrollDown=function(e){for(var t=e.params[0]||1,r=this._bufferService.buffer;t--;)r.lines.splice(r.ybase+r.scrollBottom,1),r.lines.splice(r.ybase+r.scrollTop,0,r.getBlankLine(f.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(r.scrollTop,r.scrollBottom)},t.prototype.scrollLeft=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var r=e.params[0]||1,i=t.scrollTop;i<=t.scrollBottom;++i){var n=t.lines.get(t.ybase+i);n.deleteCells(0,r,t.getNullCell(this._terminal.eraseAttrData())),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},t.prototype.scrollRight=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var r=e.params[0]||1,i=t.scrollTop;i<=t.scrollBottom;++i){var n=t.lines.get(t.ybase+i);n.insertCells(0,r,t.getNullCell(this._terminal.eraseAttrData())),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},t.prototype.insertColumns=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var r=e.params[0]||1,i=t.scrollTop;i<=t.scrollBottom;++i){var n=this._bufferService.buffer.lines.get(t.ybase+i);n.insertCells(t.x,r,t.getNullCell(this._terminal.eraseAttrData())),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},t.prototype.deleteColumns=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var r=e.params[0]||1,i=t.scrollTop;i<=t.scrollBottom;++i){var n=t.lines.get(t.ybase+i);n.deleteCells(t.x,r,t.getNullCell(this._terminal.eraseAttrData())),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},t.prototype.eraseChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.y+this._bufferService.buffer.ybase);t&&(t.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(e.params[0]||1),this._bufferService.buffer.getNullCell(this._terminal.eraseAttrData())),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},t.prototype.repeatPrecedingCharacter=function(e){if(this._parser.precedingCodepoint){for(var t=e.params[0]||1,r=new Uint32Array(t),i=0;i<t;++i)r[i]=this._parser.precedingCodepoint;this.print(r,0,r.length)}},t.prototype.sendDeviceAttributesPrimary=function(e){e.params[0]>0||(this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._coreService.triggerDataEvent(o.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._coreService.triggerDataEvent(o.C0.ESC+"[?6c"))},t.prototype.sendDeviceAttributesSecondary=function(e){e.params[0]>0||(this._terminal.is("xterm")?this._coreService.triggerDataEvent(o.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._coreService.triggerDataEvent(o.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._terminal.is("screen")&&this._coreService.triggerDataEvent(o.C0.ESC+"[>83;40003;0c"))},t.prototype.setMode=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 4:this._terminal.insertMode=!0}},t.prototype.setModePrivate=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._terminal.setgCharset(0,s.DEFAULT_CHARSET),this._terminal.setgCharset(1,s.DEFAULT_CHARSET),this._terminal.setgCharset(2,s.DEFAULT_CHARSET),this._terminal.setgCharset(3,s.DEFAULT_CHARSET);break;case 3:this._terminal.savedCols=this._bufferService.cols,this._terminal.resize(132,this._bufferService.rows),this._terminal.reset();break;case 6:this._terminal.originMode=!0,this._setCursor(0,0);break;case 7:this._terminal.wraparoundMode=!0;break;case 12:break;case 66:this._logService.debug("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._terminal.eraseAttrData()),this._terminal.refresh(0,this._bufferService.rows-1),this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!0}},t.prototype.resetMode=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 4:this._terminal.insertMode=!1}},t.prototype.resetModePrivate=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:132===this._bufferService.cols&&this._terminal.savedCols&&this._terminal.resize(this._terminal.savedCols,this._bufferService.rows),delete this._terminal.savedCols,this._terminal.reset();break;case 6:this._terminal.originMode=!1,this._setCursor(0,0);break;case 7:this._terminal.wraparoundMode=!1;break;case 12:break;case 66:this._logService.debug("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._terminal.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===e.params[t]&&this.restoreCursor(),this._terminal.refresh(0,this._bufferService.rows-1),this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!1}},t.prototype._extractColor=function(e,t,r){var i=[0,0,-1,0,0,0],n=0,o=0;do{if(i[o+n]=e.params[t+o],e.hasSubParams(t+o)){var s=e.getSubParams(t+o),a=0;do{5===i[1]&&(n=1),i[o+a+1+n]=s[a]}while(++a<s.length&&a+o+1+n<i.length);break}if(5===i[1]&&o+n>=2||2===i[1]&&o+n>=5)break;i[1]&&(n=1)}while(++o+t<e.length&&o+n<i.length);for(a=2;a<i.length;++a)-1===i[a]&&(i[a]=0);return 38===i[0]?2===i[1]?(r.fg|=50331648,r.fg&=-16777216,r.fg|=v.AttributeData.fromColorRGB([i[3],i[4],i[5]])):5===i[1]&&(r.fg&=-50331904,r.fg|=33554432|255&i[3]):48===i[0]&&(2===i[1]?(r.bg|=50331648,r.bg&=-16777216,r.bg|=v.AttributeData.fromColorRGB([i[3],i[4],i[5]])):5===i[1]&&(r.bg&=-50331904,r.bg|=33554432|255&i[3])),o},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._terminal.curAttrData.fg=f.DEFAULT_ATTR_DATA.fg,void(this._terminal.curAttrData.bg=f.DEFAULT_ATTR_DATA.bg);for(var t,r=e.length,i=this._terminal.curAttrData,n=0;n<r;n++)(t=e.params[n])>=30&&t<=37?(i.fg&=-50331904,i.fg|=16777216|t-30):t>=40&&t<=47?(i.bg&=-50331904,i.bg|=16777216|t-40):t>=90&&t<=97?(i.fg&=-50331904,i.fg|=16777224|t-90):t>=100&&t<=107?(i.bg&=-50331904,i.bg|=16777224|t-100):0===t?(i.fg=f.DEFAULT_ATTR_DATA.fg,i.bg=f.DEFAULT_ATTR_DATA.bg):1===t?i.fg|=134217728:3===t?i.bg|=67108864:4===t?i.fg|=268435456:5===t?i.fg|=536870912:7===t?i.fg|=67108864:8===t?i.fg|=1073741824:2===t?i.bg|=134217728:22===t?(i.fg&=-134217729,i.bg&=-134217729):23===t?i.bg&=-67108865:24===t?i.fg&=-268435457:25===t?i.fg&=-536870913:27===t?i.fg&=-67108865:28===t?i.fg&=-1073741825:39===t?(i.fg&=-67108864,i.fg|=16777215&f.DEFAULT_ATTR_DATA.fg):49===t?(i.bg&=-67108864,i.bg|=16777215&f.DEFAULT_ATTR_DATA.bg):38===t||48===t?n+=this._extractColor(e,n,i):100===t?(i.fg&=-67108864,i.fg|=16777215&f.DEFAULT_ATTR_DATA.fg,i.bg&=-67108864,i.bg|=16777215&f.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t)},t.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(o.C0.ESC+"[0n");break;case 6:var t=this._bufferService.buffer.y+1,r=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(o.C0.ESC+"["+t+";"+r+"R")}},t.prototype.deviceStatusPrivate=function(e){switch(e.params[0]){case 6:var t=this._bufferService.buffer.y+1,r=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(o.C0.ESC+"[?"+t+";"+r+"R")}},t.prototype.softReset=function(e){this._coreService.isCursorHidden=!1,this._terminal.insertMode=!1,this._terminal.originMode=!1,this._terminal.wraparoundMode=!0,this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._coreService.decPrivateModes.applicationCursorKeys=!1,this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._terminal.curAttrData=f.DEFAULT_ATTR_DATA.clone(),this._bufferService.buffer.x=this._bufferService.buffer.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null]},t.prototype.setCursorStyle=function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var r=t%2==1;this._optionsService.options.cursorBlink=r},t.prototype.setScrollRegion=function(e){var t,r=e.params[0]||1;(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>r&&(this._bufferService.buffer.scrollTop=r-1,this._bufferService.buffer.scrollBottom=t-1,this._setCursor(0,0))},t.prototype.saveCursor=function(e){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._terminal.curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._terminal.curAttrData.bg,this._bufferService.buffer.savedCharset=this._terminal.charset},t.prototype.restoreCursor=function(e){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._terminal.curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._terminal.curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._terminal.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._terminal.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},t.prototype.setTitle=function(e){this._terminal.handleTitle(e)},t.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},t.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},t.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},t.prototype.selectDefaultCharset=function(){this._terminal.setgLevel(0),this._terminal.setgCharset(0,s.DEFAULT_CHARSET)},t.prototype.selectCharset=function(e){2===e.length?"/"!==e[0]&&this._terminal.setgCharset(b[e[0]],s.CHARSETS[e[1]]||s.DEFAULT_CHARSET):this.selectDefaultCharset()},t.prototype.index=function(){this._restrictCursor();var e=this._bufferService.buffer;this._bufferService.buffer.y++,e.y===e.scrollBottom+1?(e.y--,this._terminal.scroll()):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),this._restrictCursor()},t.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},t.prototype.reverseIndex=function(){this._restrictCursor();var e=this._bufferService.buffer;if(e.y===e.scrollTop){var t=e.scrollBottom-e.scrollTop;e.lines.shiftElements(e.y+e.ybase,t,1),e.lines.set(e.y+e.ybase,e.getBlankLine(this._terminal.eraseAttrData())),this._dirtyRowService.markRangeDirty(e.scrollTop,e.scrollBottom)}else e.y--,this._restrictCursor()},t.prototype.reset=function(){this._parser.reset(),this._terminal.reset()},t.prototype.setgLevel=function(e){this._terminal.setgLevel(e)},t.prototype.screenAlignmentPattern=function(){var e=new p.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._terminal.curAttrData.fg,e.bg=this._terminal.curAttrData.bg;var t=this._bufferService.buffer;this._setCursor(0,0);for(var r=0;r<this._bufferService.rows;++r){var i=t.y+t.ybase+r;t.lines.get(i).fill(e),t.lines.get(i).isWrapped=!1}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},t}(l.Disposable);t.InputHandler=C},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),s=r(15),a=r(20),c=r(21),l=r(23),h=function(){function e(e){this.table=new Uint8Array(e)}return e.prototype.setDefault=function(e,t){s.fill(this.table,e<<4|t)},e.prototype.add=function(e,t,r,i){this.table[t<<8|e]=r<<4|i},e.prototype.addMany=function(e,t,r,i){for(var n=0;n<e.length;n++)this.table[t<<8|e[n]]=r<<4|i},e}();t.TransitionTable=h;t.VT500_TRANSITION_TABLE=function(){var e=new h(4095),t=Array.apply(null,Array(256)).map(function(e,t){return t}),r=function(e,r){return t.slice(e,r)},i=r(32,127),n=r(0,24);n.push(25),n.push.apply(n,r(28,32));var o,s=r(0,14);for(o in e.setDefault(1,0),e.addMany(i,0,2,0),s)e.addMany([24,26,153,154],o,3,0),e.addMany(r(128,144),o,3,0),e.addMany(r(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(n,0,3,0),e.addMany(n,1,3,1),e.add(127,1,0,1),e.addMany(n,8,0,8),e.addMany(n,3,3,3),e.add(127,3,0,3),e.addMany(n,4,3,4),e.add(127,4,0,4),e.addMany(n,6,3,6),e.addMany(n,5,3,5),e.add(127,5,0,5),e.addMany(n,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(i,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(i,7,0,7),e.addMany(n,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(96,127),1,10,0),e.add(80,1,11,9),e.addMany(n,9,0,9),e.add(127,9,0,9),e.addMany(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(n,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(n,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(n,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(n,13,13,13),e.addMany(i,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();var u=function(e){function r(r){void 0===r&&(r=t.VT500_TRANSITION_TABLE);var i=e.call(this)||this;return i.TRANSITIONS=r,i.initialState=0,i.currentState=i.initialState,i._params=new a.Params,i._params.addParam(0),i._collect=0,i.precedingCodepoint=0,i._printHandlerFb=function(e,t,r){},i._executeHandlerFb=function(e){},i._csiHandlerFb=function(e,t){},i._escHandlerFb=function(e){},i._errorHandlerFb=function(e){return e},i._printHandler=i._printHandlerFb,i._executeHandlers=Object.create(null),i._csiHandlers=Object.create(null),i._escHandlers=Object.create(null),i._oscParser=new c.OscParser,i._dcsParser=new l.DcsParser,i._errorHandler=i._errorHandlerFb,i.setEscHandler({final:"\\"},function(){}),i}return n(r,e),r.prototype._identifier=function(e,t){void 0===t&&(t=[64,126]);var r=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((r=e.prefix.charCodeAt(0))&&60>r||r>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var i=0;i<e.intermediates.length;++i){var n=e.intermediates.charCodeAt(i);if(32>n||n>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");r<<=8,r|=n}}if(1!==e.final.length)throw new Error("final must be a single byte");var o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return r<<=8,r|=o},r.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},r.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},r.prototype.setPrintHandler=function(e){this._printHandler=e},r.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},r.prototype.addEscHandler=function(e,t){var r=this._identifier(e,[48,126]);void 0===this._escHandlers[r]&&(this._escHandlers[r]=[]);var i=this._escHandlers[r];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},r.prototype.setEscHandler=function(e,t){this._escHandlers[this._identifier(e,[48,126])]=[t]},r.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},r.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},r.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},r.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},r.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},r.prototype.addCsiHandler=function(e,t){var r=this._identifier(e);void 0===this._csiHandlers[r]&&(this._csiHandlers[r]=[]);var i=this._csiHandlers[r];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},r.prototype.setCsiHandler=function(e,t){this._csiHandlers[this._identifier(e)]=[t]},r.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},r.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},r.prototype.addDcsHandler=function(e,t){return this._dcsParser.addHandler(this._identifier(e),t)},r.prototype.setDcsHandler=function(e,t){this._dcsParser.setHandler(this._identifier(e),t)},r.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},r.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},r.prototype.addOscHandler=function(e,t){return this._oscParser.addHandler(e,t)},r.prototype.setOscHandler=function(e,t){this._oscParser.setHandler(e,t)},r.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},r.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},r.prototype.setErrorHandler=function(e){this._errorHandler=e},r.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},r.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},r.prototype.parse=function(e,t){for(var r=0,i=0,n=this.currentState,o=this._oscParser,s=this._dcsParser,a=this._collect,c=this._params,l=this.TRANSITIONS.table,h=0;h<t;++h){switch((i=l[n<<8|((r=e[h])<160?r:160)])>>4){case 2:for(var u=h+1;;++u){if(u>=t||(r=e[u])<32||r>126&&r<160){this._printHandler(e,h,u),h=u-1;break}if(++u>=t||(r=e[u])<32||r>126&&r<160){this._printHandler(e,h,u),h=u-1;break}if(++u>=t||(r=e[u])<32||r>126&&r<160){this._printHandler(e,h,u),h=u-1;break}if(++u>=t||(r=e[u])<32||r>126&&r<160){this._printHandler(e,h,u),h=u-1;break}}break;case 3:this._executeHandlers[r]?this._executeHandlers[r]():this._executeHandlerFb(r),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:h,code:r,currentState:n,collect:a,params:c,abort:!1}).abort)return;break;case 7:for(var f=this._csiHandlers[a<<8|r],_=f?f.length-1:-1;_>=0&&!1===f[_](c);_--);_<0&&this._csiHandlerFb(a<<8|r,c),this.precedingCodepoint=0;break;case 8:do{switch(r){case 59:c.addParam(0);break;case 58:c.addSubParam(-1);break;default:c.addDigit(r-48)}}while(++h<t&&(r=e[h])>47&&r<60);h--;break;case 9:a<<=8,a|=r;break;case 10:for(var d=this._escHandlers[a<<8|r],p=d?d.length-1:-1;p>=0&&!1===d[p]();p--);p<0&&this._escHandlerFb(a<<8|r),this.precedingCodepoint=0;break;case 11:c.reset(),c.addParam(0),a=0;break;case 12:s.hook(a<<8|r,c);break;case 13:for(var v=h+1;;++v)if(v>=t||24===(r=e[v])||26===r||27===r||r>127&&r<160){s.put(e,h,v),h=v-1;break}break;case 14:s.unhook(24!==r&&26!==r),27===r&&(i|=1),c.reset(),c.addParam(0),a=0,this.precedingCodepoint=0;break;case 4:o.start();break;case 5:for(var g=h+1;;g++)if(g>=t||(r=e[g])<32||r>127&&r<=159){o.put(e,h,g),h=g-1;break}break;case 6:o.end(24!==r&&26!==r),27===r&&(i|=1),c.reset(),c.addParam(0),a=0,this.precedingCodepoint=0}n=15&i}this._collect=a,this.currentState=n},r}(o.Disposable);t.EscapeSequenceParser=u},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(41),c=r(47),l=r(48),h=r(49),u=r(28),f=r(2),_=r(4),d=r(0),p=r(24),v=r(1),g=1,y=function(e){function t(t,r,i,n,o,s,f,_){var d=e.call(this)||this;d._colors=t,d._screenElement=r,d._linkifier=i,d._bufferService=n,d._charSizeService=o,d._optionsService=s,d.coreService=f,d.coreBrowserService=_,d._id=g++,d._onRequestRefreshRows=new v.EventEmitter;var p=d._optionsService.options.allowTransparency;return d._characterJoinerRegistry=new u.CharacterJoinerRegistry(d._bufferService),d._renderLayers=[new a.TextRenderLayer(d._screenElement,0,d._colors,d._characterJoinerRegistry,p,d._id,d._bufferService,s),new c.SelectionRenderLayer(d._screenElement,1,d._colors,d._id,d._bufferService,s),new h.LinkRenderLayer(d._screenElement,2,d._colors,d._id,d._linkifier,d._bufferService,s),new l.CursorRenderLayer(d._screenElement,3,d._colors,d._id,d._onRequestRefreshRows,d._bufferService,s,f,_)],d.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},d._devicePixelRatio=window.devicePixelRatio,d._updateDimensions(),d.onOptionsChanged(),d}return n(t,e),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._renderLayers.forEach(function(e){return e.dispose()}),p.removeTerminalFromCache(this._id)},t.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},t.prototype.setColors=function(e){var t=this;this._colors=e,this._renderLayers.forEach(function(e){e.setColors(t._colors),e.reset()})},t.prototype.onResize=function(e,t){var r=this;this._updateDimensions(),this._renderLayers.forEach(function(e){return e.resize(r.dimensions)}),this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},t.prototype.onBlur=function(){this._runOperation(function(e){return e.onBlur()})},t.prototype.onFocus=function(){this._runOperation(function(e){return e.onFocus()})},t.prototype.onSelectionChanged=function(e,t,r){void 0===r&&(r=!1),this._runOperation(function(i){return i.onSelectionChanged(e,t,r)})},t.prototype.onCursorMove=function(){this._runOperation(function(e){return e.onCursorMove()})},t.prototype.onOptionsChanged=function(){this._runOperation(function(e){return e.onOptionsChanged()})},t.prototype.clear=function(){this._runOperation(function(e){return e.reset()})},t.prototype._runOperation=function(e){this._renderLayers.forEach(function(t){return e(t)})},t.prototype.renderRows=function(e,t){this._renderLayers.forEach(function(r){return r.onGridChanged(e,t)})},t.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},t.prototype.registerCharacterJoiner=function(e){return this._characterJoinerRegistry.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){return this._characterJoinerRegistry.deregisterCharacterJoiner(e)},t=o([s(3,d.IBufferService),s(4,_.ICharSizeService),s(5,d.IOptionsService),s(6,d.ICoreService),s(7,_.ICoreBrowserService)],t)}(f.Disposable);t.Renderer=y},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(42),s=r(13),a=r(6),c=r(3),l=r(28),h=r(5),u=function(e){function t(t,r,i,n,s,a,c,l){var u=e.call(this,t,"text",r,s,i,a,c,l)||this;return u.bufferService=c,u.optionsService=l,u._characterWidth=0,u._characterFont="",u._characterOverlapCache={},u._workCell=new h.CellData,u._state=new o.GridCache,u._characterJoinerRegistry=n,u}return n(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t);var r=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===r||(this._characterWidth=t.scaledCharWidth,this._characterFont=r,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},t.prototype.reset=function(){this._state.clear(),this._clearAll()},t.prototype._forEachCell=function(e,t,r,i){for(var n=e;n<=t;n++)for(var o=n+this._bufferService.buffer.ydisp,s=this._bufferService.buffer.lines.get(o),a=r?r.getJoinedCharacters(o):[],h=0;h<this._bufferService.cols;h++){s.loadCell(h,this._workCell);var u=this._workCell,f=!1,_=h;if(0!==u.getWidth()){if(a.length>0&&h===a[0][0]){f=!0;var d=a.shift();u=new l.JoinedCellData(this._workCell,s.translateToString(!0,d[0],d[1]),d[1]-d[0]),_=d[1]-1}!f&&this._isOverlapping(u)&&_<s.length-1&&s.getCodePoint(_+1)===c.NULL_CELL_CODE&&(u.content&=-12582913,u.content|=2<<22),i(u,h,n),h=_}}},t.prototype._drawBackground=function(e,t){var r=this,i=this._ctx,n=this._bufferService.cols,o=0,s=0,c=null;i.save(),this._forEachCell(e,t,null,function(e,t,l){var h=null;e.isInverse()?h=e.isFgDefault()?r._colors.foreground.css:e.isFgRGB()?"rgb("+a.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":r._colors.ansi[e.getFgColor()].css:e.isBgRGB()?h="rgb("+a.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":e.isBgPalette()&&(h=r._colors.ansi[e.getBgColor()].css),null===c&&(o=t,s=l),l!==s?(i.fillStyle=c||"",r._fillCells(o,s,n-o,1),o=t,s=l):c!==h&&(i.fillStyle=c||"",r._fillCells(o,s,t-o,1),o=t,s=l),c=h}),null!==c&&(i.fillStyle=c,this._fillCells(o,s,n-o,1)),i.restore()},t.prototype._drawForeground=function(e,t){var r=this;this._forEachCell(e,t,this._characterJoinerRegistry,function(e,t,i){if(!e.isInvisible()&&(r._drawChars(e,t,i),e.isUnderline())){if(r._ctx.save(),e.isInverse())if(e.isBgDefault())r._ctx.fillStyle=r._colors.background.css;else if(e.isBgRGB())r._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var n=e.getBgColor();r._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&n<8&&(n+=8),r._ctx.fillStyle=r._colors.ansi[n].css}else if(e.isFgDefault())r._ctx.fillStyle=r._colors.foreground.css;else if(e.isFgRGB())r._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var o=e.getFgColor();r._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),r._ctx.fillStyle=r._colors.ansi[o].css}r._fillBottomLineAtCells(t,i,e.getWidth()),r._ctx.restore()}})},t.prototype.onGridChanged=function(e,t){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,t-e+1),this._drawBackground(e,t),this._drawForeground(e,t))},t.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},t.prototype._isOverlapping=function(e){if(1!==e.getWidth())return!1;if(e.getCode()<256)return!1;var t=e.getChars();if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var r=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=r,r},t}(s.BaseRenderLayer);t.TextRenderLayer=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var r=0;r<e;r++){this.cache.length<=r&&this.cache.push([]);for(var i=this.cache[r].length;i<t;i++)this.cache[r].push(void 0);this.cache[r].length=t}this.cache.length=e},e.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=void 0},e}();t.GridCache=i},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(9),s=r(44),a=r(26),c=r(46),l=r(11),h=r(27),u=r(10),f=1024,_=1024,d={css:"rgba(0, 0, 0, 0)",rgba:0};function p(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=p;var v=function(e){function t(t,r){var i=e.call(this)||this;i._config=r,i._drawToCacheCount=0,i._glyphsWaitingOnBitmap=[],i._bitmapCommitTimeout=null,i._bitmap=null,i._cacheCanvas=t.createElement("canvas"),i._cacheCanvas.width=f,i._cacheCanvas.height=_,i._cacheCtx=h.throwIfFalsy(i._cacheCanvas.getContext("2d",{alpha:!0}));var n=t.createElement("canvas");n.width=i._config.scaledCharWidth,n.height=i._config.scaledCharHeight,i._tmpCtx=h.throwIfFalsy(n.getContext("2d",{alpha:i._config.allowTransparency})),i._width=Math.floor(f/i._config.scaledCharWidth),i._height=Math.floor(_/i._config.scaledCharHeight);var o=i._width*i._height;return i._cacheMap=new c.LRUMap(o),i._cacheMap.prealloc(o),i}return n(t,e),t.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.draw=function(e,t,r,i){if(32===t.code)return!0;if(!this._canCache(t))return!1;var n=p(t),o=this._cacheMap.get(n);if(null!=o)return this._drawFromCache(e,o,r,i),!0;if(this._drawToCacheCount<100){var s=void 0;s=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var a=this._drawToCache(t,s);return this._cacheMap.set(n,a),this._drawFromCache(e,a,r,i),!0}return!1},t.prototype._canCache=function(e){return e.code<256},t.prototype._toCoordinateX=function(e){return e%this._width*this._config.scaledCharWidth},t.prototype._toCoordinateY=function(e){return Math.floor(e/this._width)*this._config.scaledCharHeight},t.prototype._drawFromCache=function(e,t,r,i){if(!t.isEmpty){var n=this._toCoordinateX(t.index),o=this._toCoordinateY(t.index);e.drawImage(t.inBitmap?this._bitmap:this._cacheCanvas,n,o,this._config.scaledCharWidth,this._config.scaledCharHeight,r,i,this._config.scaledCharWidth,this._config.scaledCharHeight)}},t.prototype._getColorFromAnsiIndex=function(e){return e<this._config.colors.ansi.length?this._config.colors.ansi[e]:a.DEFAULT_ANSI_COLORS[e]},t.prototype._getBackgroundColor=function(e){return this._config.allowTransparency?d:e.bg===o.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:e.bg<256?this._getColorFromAnsiIndex(e.bg):this._config.colors.background},t.prototype._getForegroundColor=function(e){return e.fg===o.INVERTED_DEFAULT_COLOR?u.opaque(this._config.colors.background):e.fg<256?this._getColorFromAnsiIndex(e.fg):this._config.colors.foreground},t.prototype._drawToCache=function(e,t){this._drawToCacheCount++,this._tmpCtx.save();var r=this._getBackgroundColor(e);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=r.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var i=e.bold?this._config.fontWeightBold:this._config.fontWeight,n=e.italic?"italic":"";this._tmpCtx.font=n+" "+i+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(e).css,e.dim&&(this._tmpCtx.globalAlpha=o.DIM_OPACITY),this._tmpCtx.fillText(e.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var s=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),a=!1;this._config.allowTransparency||(a=function(e,t){for(var r=!0,i=t.rgba>>>24,n=t.rgba>>>16&255,o=t.rgba>>>8&255,s=0;s<e.data.length;s+=4)e.data[s]===i&&e.data[s+1]===n&&e.data[s+2]===o?e.data[s+3]=0:r=!1;return r}(s,r));var c=this._toCoordinateX(t),l=this._toCoordinateY(t);this._cacheCtx.putImageData(s,c,l);var h={index:t,isEmpty:a,inBitmap:!1};return this._addGlyphToBitmap(h),h},t.prototype._addGlyphToBitmap=function(e){var t=this;"createImageBitmap"in window&&!l.isFirefox&&!l.isSafari&&(this._glyphsWaitingOnBitmap.push(e),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return t._generateBitmap()},100)))},t.prototype._generateBitmap=function(){var e=this,t=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(r){e._bitmap=r;for(var i=0;i<t.length;i++){t[i].inBitmap=!0}}),this._bitmapCommitTimeout=null},t}(s.BaseCharAtlas);t.DynamicCharAtlas=v;var g=function(e){function t(t,r){return e.call(this)||this}return n(t,e),t.prototype.draw=function(e,t,r,i){return!1},t}(s.BaseCharAtlas);t.NoneCharAtlas=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._didWarmUp=!1}return e.prototype.dispose=function(){},e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.beginFrame=function(){},e}();t.BaseCharAtlas=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._color={},this._rgba={}}return e.prototype.clear=function(){this._color={},this._rgba={}},e.prototype.setCss=function(e,t,r){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=r},e.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},e.prototype.setColor=function(e,t,r){this._color[e]||(this._color[e]={}),this._color[e][t]=r},e.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},e}();t.ColorContrastCache=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,r=e.next;e===this._head&&(this._head=r),e===this._tail&&(this._tail=t),null!==t&&(t.next=r),null!==r&&(r.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,r=0;r<e;r++)t.push({prev:null,next:null,key:null,value:null})},e.prototype.get=function(e){var t=this._map[e];return void 0!==t?(this._unlinkNode(t),this._appendNode(t),t.value):null},e.prototype.peekValue=function(e){var t=this._map[e];return void 0!==t?t.value:null},e.prototype.peek=function(){var e=this._head;return null===e?null:e.value},e.prototype.set=function(e,t){var r=this._map[e];if(void 0!==r)r=this._map[e],this._unlinkNode(r),r.value=t;else if(this.size>=this.capacity)r=this._head,this._unlinkNode(r),delete this._map[r.key],r.key=e,r.value=t,this._map[e]=r;else{var i=this._nodePool;i.length>0?((r=i.pop()).key=e,r.value=t):r={prev:null,next:null,key:e,value:t},this._map[e]=r,this.size++}this._appendNode(r)},e}();t.LRUMap=i},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,r,i,n,o,s){var a=e.call(this,t,"selection",r,!0,i,n,o,s)||this;return a.bufferService=o,a.optionsService=s,a._clearState(),a}return n(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(e,t,r){if(this._didStateChange(e,t,r,this._bufferService.buffer.ydisp))if(this._clearAll(),e&&t){var i=e[1]-this._bufferService.buffer.ydisp,n=t[1]-this._bufferService.buffer.ydisp,o=Math.max(i,0),s=Math.min(n,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||s<0)){if(this._ctx.fillStyle=this._colors.selection.css,r){var a=e[0],c=t[0]-a,l=s-o+1;this._fillCells(a,o,c,l)}else{a=i===o?e[0]:0;var h=o===s?t[0]:this._bufferService.cols;this._fillCells(a,o,h-a,1);var u=Math.max(s-o-1,0);if(this._fillCells(0,o+1,this._bufferService.cols,u),o!==s){var f=n===s?t[0]:this._bufferService.cols;this._fillCells(0,s,f,1)}}this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=r,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,r,i){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||r!==this._state.columnSelectMode||i!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&(e[0]===t[0]&&e[1]===t[1])},t}(r(13).BaseRenderLayer);t.SelectionRenderLayer=o},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(13),s=r(5),a=function(e){function t(t,r,i,n,o,a,c,l,h){var u=e.call(this,t,"cursor",r,!0,i,n,a,c)||this;return u._onRequestRefreshRowsEvent=o,u.bufferService=a,u.optionsService=c,u._coreService=l,u._coreBrowserService=h,u._cell=new s.CellData,u._state={x:0,y:0,isFocused:!1,style:"",width:0},u._cursorRenderers={bar:u._renderBarCursor.bind(u),block:u._renderBlockCursor.bind(u),underline:u._renderUnderlineCursor.bind(u)},u}return n(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},t.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new c(this._coreBrowserService.isFocused,function(){t._render(!0)})):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,r=t-this._bufferService.buffer.ydisp;if(r<0||r>=this._bufferService.rows)this._clearCursor();else if(this._bufferService.buffer.lines.get(t).loadCell(this._bufferService.buffer.x,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.options.cursorStyle;return i&&"block"!==i?this._cursorRenderers[i](this._bufferService.buffer.x,r,this._cell):this._renderBlurCursor(this._bufferService.buffer.x,r,this._cell),this._ctx.restore(),this._state.x=this._bufferService.buffer.x,this._state.y=r,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===this._bufferService.buffer.x&&this._state.y===r&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](this._bufferService.buffer.x,r,this._cell),this._ctx.restore(),this._state.x=this._bufferService.buffer.x,this._state.y=r,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,r.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(r,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,r){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,r.getWidth(),1),this._ctx.restore()},t}(o.BaseRenderLayer);t.CursorRenderLayer=a;var c=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=void 0})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0}),t._blinkInterval=setInterval(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})},600)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(13),s=r(9),a=r(25),c=function(e){function t(t,r,i,n,o,s,a){var c=e.call(this,t,"link",r,!0,i,n,s,a)||this;return c.bufferService=s,c.optionsService=a,o.onLinkHover(function(e){return c._onLinkHover(e)}),o.onLinkLeave(function(e){return c._onLinkLeave(e)}),c}return n(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onLinkHover=function(e){if(e.fg===s.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&a.is256Color(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t<e.y2;t++)this._fillBottomLineAtCells(0,t,e.cols);this._fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},t.prototype._onLinkLeave=function(e){this._clearCurrentLink()},t}(o.BaseRenderLayer);t.LinkRenderLayer=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(19),n=r(1),o=function(){function e(e,t){this._bufferService=e,this._logService=t,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onLinkHover=new n.EventEmitter,this._onLinkLeave=new n.EventEmitter,this._onLinkTooltip=new n.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(e.prototype,"onLinkHover",{get:function(){return this._onLinkHover.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLinkLeave",{get:function(){return this._onLinkLeave.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!0,configurable:!0}),e.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,r){var i=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=r):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,r)),this._mouseZoneManager.clearAll(t,r),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return i._linkifyRows()},e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var r=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,i=Math.ceil(2e3/this._bufferService.cols),n=this._bufferService.buffer.iterator(!1,t,r,i,i);n.hasNext();)for(var o=n.next(),s=0;s<this._linkMatchers.length;s++)this._doLinkifyRow(o.range.first,o.content,this._linkMatchers[s]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},e.prototype.registerLinkMatcher=function(e,t,r){if(void 0===r&&(r={}),!t)throw new Error("handler must be defined");var i={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:r.matchIndex,validationCallback:r.validationCallback,hoverTooltipCallback:r.tooltipCallback,hoverLeaveCallback:r.leaveCallback,willLinkActivate:r.willLinkActivate,priority:r.priority||0};return this._addLinkMatcherToList(i),i.id},e.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;t>=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},e.prototype._doLinkifyRow=function(e,t,r){for(var i,n=this,o=new RegExp(r.regex.source,(r.regex.flags||"")+"g"),s=-1,a=function(){var a=i["number"!=typeof r.matchIndex?0:r.matchIndex];if(!a)return c._logService.debug("match found without corresponding matchIndex",i,r),"break";if(s=t.indexOf(a,s+1),o.lastIndex=s+a.length,s<0)return"break";var l=c._bufferService.buffer.stringIndexToBufferIndex(e,s);if(l[0]<0)return"break";var h=c._bufferService.buffer.lines.get(l[0]);if(!h)return"break";var u=h.getFg(l[1]),f=u?u>>9&511:void 0;r.validationCallback?r.validationCallback(a,function(e){n._rowsTimeoutId||e&&n._addLink(l[1],l[0]-n._bufferService.buffer.ydisp,a,r,f)}):c._addLink(l[1],l[0]-c._bufferService.buffer.ydisp,a,r,f)},c=this;null!==(i=o.exec(t));){if("break"===a())break}},e.prototype._addLink=function(e,t,r,n,o){var a=this;if(this._mouseZoneManager&&this._element){var c=i.getStringCellWidth(r),l=e%this._bufferService.cols,h=t+Math.floor(e/this._bufferService.cols),u=(l+c)%this._bufferService.cols,f=h+Math.floor((l+c)/this._bufferService.cols);0===u&&(u=this._bufferService.cols,f--),this._mouseZoneManager.add(new s(l+1,h+1,u+1,f+1,function(e){if(n.handler)return n.handler(e,r);window.open(r,"_blank")},function(){a._onLinkHover.fire(a._createLinkHoverEvent(l,h,u,f,o)),a._element.classList.add("xterm-cursor-pointer")},function(e){a._onLinkTooltip.fire(a._createLinkHoverEvent(l,h,u,f,o)),n.hoverTooltipCallback&&n.hoverTooltipCallback(e,r,{start:{x:l,y:h},end:{x:u,y:f}})},function(){a._onLinkLeave.fire(a._createLinkHoverEvent(l,h,u,f,o)),a._element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()},function(e){return!n.willLinkActivate||n.willLinkActivate(e,r)}))}},e.prototype._createLinkHoverEvent=function(e,t,r,i,n){return{x1:e,y1:t,x2:r,y2:i,cols:this._bufferService.cols,fg:n}},e._timeBeforeLatency=200,e}();t.Linkifier=o;var s=function(e,t,r,i,n,o,s,a,c){this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.clickCallback=n,this.hoverCallback=o,this.tooltipCallback=s,this.leaveCallback=a,this.willLinkActivate=c};t.MouseZone=s},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(11),s=r(52),a=r(5),c=r(1),l=r(4),h=r(0),u=r(29),f=r(53),_=String.fromCharCode(160),d=new RegExp(_,"g"),p=function(){function e(e,t,r,i,n,o,l,h){var u=this;this._scrollLines=e,this._element=t,this._screenElement=r,this._charSizeService=i,this._bufferService=n,this._coreService=o,this._mouseService=l,this._optionsService=h,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new a.CellData,this._mouseDownTimeStamp=0,this._onLinuxMouseSelection=new c.EventEmitter,this._onRedrawRequest=new c.EventEmitter,this._onSelectionChange=new c.EventEmitter,this._mouseMoveListener=function(e){return u._onMouseMove(e)},this._mouseUpListener=function(e){return u._onMouseUp(e)},this._coreService.onUserInput(function(){u.hasSelection&&u.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(function(e){return u._onTrim(e)}),this._bufferService.buffers.onBufferActivate(function(e){return u._onBufferActivate(e)}),this.enable(),this._model=new s.SelectionModel(this._bufferService),this._activeSelectionMode=0}return Object.defineProperty(e.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onRedrawRequest",{get:function(){return this._onRedrawRequest.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._removeMouseDownListeners()},e.prototype.reset=function(){this.clearSelection()},e.prototype.disable=function(){this.clearSelection(),this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},Object.defineProperty(e.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t)&&(e[0]!==t[0]||e[1]!==t[1])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var r=this._bufferService.buffer,i=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var n=e[1];n<=t[1];n++){var s=r.translateBufferLineToString(n,!0,e[0],t[0]);i.push(s)}}else{var a=e[1]===t[1]?t[0]:void 0;i.push(r.translateBufferLineToString(e[1],!0,e[0],a));for(n=e[1]+1;n<=t[1]-1;n++){var c=r.lines.get(n);s=r.translateBufferLineToString(n,!0);c&&c.isWrapped?i[i.length-1]+=s:i.push(s)}if(e[1]!==t[1]){c=r.lines.get(t[1]),s=r.translateBufferLineToString(t[1],!0,0,t[0]);c&&c.isWrapped?i[i.length-1]+=s:i.push(s)}}return i.map(function(e){return e.replace(d," ")}).join(o.isWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),e.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},e.prototype.refresh=function(e){var t=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),o.isLinux&&e)&&(this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText))},e.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},e.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),r=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!!(r&&i&&t)&&this._areCoordsInSelection(t,r,i)},e.prototype._areCoordsInSelection=function(e,t,r){return e[1]>t[1]&&e[1]<r[1]||t[1]===r[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<r[0]||t[1]<r[1]&&e[1]===r[1]&&e[0]<r[0]||t[1]<r[1]&&e[1]===t[1]&&e[0]>=t[0]},e.prototype.selectWordAtCursor=function(e){var t=this._getMouseBufferCoords(e);t&&(this._selectWordAt(t,!1),this._model.selectionEnd=void 0,this.refresh(!0))},e.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},e.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},e.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},e.prototype._getMouseBufferCoords=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t},e.prototype._getMouseEventScrollAmount=function(e){var t=u.getCoordsRelativeToElement(e,this._screenElement)[1],r=this._bufferService.rows*Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight);return t>=0&&t<=r?0:(t>r&&(t-=r),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},e.prototype.shouldForceSelection=function(e){return o.isMac?e.altKey&&this._optionsService.options.macOptionClickForcesSelection:e.shiftKey},e.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},e.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return e._dragScroll()},50)},e.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},e.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},e.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},e.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=1,this._selectWordAt(t,!0))},e.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},e.prototype.shouldColumnSelect=function(e){return e.altKey&&!(o.isMac&&this._optionsService.options.macOptionClickForcesSelection)},e.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var r=this._bufferService.buffer;if(this._model.selectionEnd[1]<r.lines.length){var i=r.lines.get(this._model.selectionEnd[1]);i&&0===i.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},e.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._scrollLines(this._dragScrollAmount,!1);var e=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},e.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500){if(e.altKey&&this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var r=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(r&&void 0!==r[0]&&void 0!==r[1]){var i=f.moveToCellSequence(r[0]-1,r[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(i,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},e.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(function(e){return t._onTrim(e)})},e.prototype._convertViewportColToCharacterIndex=function(e,t){for(var r=t[0],i=0;t[0]>=i;i++){var n=e.loadCell(i,this._workCell).getChars().length;0===this._workCell.getWidth()?r--:n>1&&t[0]!==i&&(r+=n-1)}return r},e.prototype.setSelection=function(e,t,r){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=r,this.refresh()},e.prototype._getWordAt=function(e,t,r,i){if(void 0===r&&(r=!0),void 0===i&&(i=!0),!(e[0]>=this._bufferService.cols)){var n=this._bufferService.buffer,o=n.lines.get(e[1]);if(o){var s=n.translateBufferLineToString(e[1],!1),a=this._convertViewportColToCharacterIndex(o,e),c=a,l=e[0]-a,h=0,u=0,f=0,_=0;if(" "===s.charAt(a)){for(;a>0&&" "===s.charAt(a-1);)a--;for(;c<s.length&&" "===s.charAt(c+1);)c++}else{var d=e[0],p=e[0];0===o.getWidth(d)&&(h++,d--),2===o.getWidth(p)&&(u++,p++);var v=o.getString(p).length;for(v>1&&(_+=v-1,c+=v-1);d>0&&a>0&&!this._isCharWordSeparator(o.loadCell(d-1,this._workCell));){o.loadCell(d-1,this._workCell);var g=this._workCell.getChars().length;0===this._workCell.getWidth()?(h++,d--):g>1&&(f+=g-1,a-=g-1),a--,d--}for(;p<o.length&&c+1<s.length&&!this._isCharWordSeparator(o.loadCell(p+1,this._workCell));){o.loadCell(p+1,this._workCell);var y=this._workCell.getChars().length;2===this._workCell.getWidth()?(u++,p++):y>1&&(_+=y-1,c+=y-1),c++,p++}}c++;var b=a+l-h+f,m=Math.min(this._bufferService.cols,c-a+h+u-f-_);if(t||""!==s.slice(a,c).trim()){if(r&&0===b&&32!==o.getCodePoint(0)){var C=n.lines.get(e[1]-1);if(C&&o.isWrapped&&32!==C.getCodePoint(this._bufferService.cols-1)){var S=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(S){var w=this._bufferService.cols-S.start;b-=w,m+=w}}}if(i&&b+m===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){var E=n.lines.get(e[1]+1);if(E&&E.isWrapped&&32!==E.getCodePoint(0)){var L=this._getWordAt([0,e[1]+1],!1,!1,!0);L&&(m+=L.length)}}return{start:b,length:m}}}}},e.prototype._selectWordAt=function(e,t){var r=this._getWordAt(e,t);if(r){for(;r.start<0;)r.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[r.start,e[1]],this._model.selectionStartLength=r.length}},e.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var r=e[1];t.start<0;)t.start+=this._bufferService.cols,r--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,r++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,r]}},e.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&this._optionsService.options.wordSeparator.indexOf(e.getChars())>=0},e.prototype._selectLineAt=function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._bufferService.cols,t.last],this._model.selectionStartLength=0},e=i([n(3,l.ICharSizeService),n(4,h.IBufferService),n(5,h.ICoreService),n(6,l.IMouseService),n(7,h.IOptionsService)],e)}();t.SelectionService=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}return e.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!0,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(12);function n(e,t,r,i){var n=e-o(r,e),s=t-o(r,t);return h(Math.abs(n-s)-function(e,t,r){for(var i=0,n=e-o(r,e),s=t-o(r,t),c=0;c<Math.abs(n-s);c++){var l="A"===a(e,t)?-1:1,h=r.buffer.lines.get(n+l*c);h&&h.isWrapped&&i++}return i}(e,t,r),l(a(e,t),i))}function o(e,t){for(var r=0,i=e.buffer.lines.get(t),n=i&&i.isWrapped;n&&t>=0&&t<e.rows;)r++,n=(i=e.buffer.lines.get(--t))&&i.isWrapped;return r}function s(e,t,r,i,s,a){var c;return c=n(r,i,s,a).length>0?i-o(s,i):t,e<r&&c<=i||e>=r&&c<i?"C":"D"}function a(e,t){return e>t?"A":"B"}function c(e,t,r,i,n,o){for(var s=e,a=t,c="";s!==r||a!==i;)s+=n?1:-1,n&&s>o.cols-1?(c+=o.buffer.translateBufferLineToString(a,!1,e,s),s=0,e=0,a++):!n&&s<0&&(c+=o.buffer.translateBufferLineToString(a,!1,0,e+1),e=s=o.cols-1,a--);return c+o.buffer.translateBufferLineToString(a,!1,e,s)}function l(e,t){var r=t?"O":"[";return i.C0.ESC+r+e}function h(e,t){e=Math.floor(e);for(var r="",i=0;i<e;i++)r+=t;return r}t.moveToCellSequence=function(e,t,r,i){var a=r.buffer.x,u=r.buffer.y;return r.buffer.hasScrollback?function(e,t,r,i,n,o){var a=s(e,t,r,i,n,o);return h(Math.abs(e-r),l(a,o))}(a,u,e,t,r,i):function(e,t,r,i,s,a){if(0===n(t,i,s,a).length)return"";return h(c(e,t,e,t-o(s,t),!1,s).length,l("D",a))}(a,u,0,t,r,i)+n(u,t,r,i)+function(e,t,r,i,a,u){var f;f=n(t,i,a,u).length>0?i-o(a,i):t;var _=i,d=s(e,t,r,i,a,u);return h(c(e,f,r,_,"C"===d,a).length,l(d,u))}(a,u,e,t,r,i)}},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),s=function(){function e(e){this._optionsService=e}return Object.defineProperty(e,"audioContext",{get:function(){if(!e._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;e._audioContext=new t}return e._audioContext},enumerable:!0,configurable:!0}),e.prototype.playBellSound=function(){var t=e.audioContext;if(t){var r=t.createBufferSource();t.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(e){r.buffer=e,r.connect(t.destination),r.start(0)})}},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),r=t.length,i=new Uint8Array(r),n=0;n<r;n++)i[n]=t.charCodeAt(n);return i.buffer},e.prototype._removeMimeType=function(e){return e.split(",")[1]},e=i([n(0,o.IOptionsService)],e)}();t.SoundService=s},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),c=r(7),l=r(4),h=r(0),u=function(e){function t(t,r,i,n,o){var s=e.call(this)||this;return s._element=t,s._screenElement=r,s._bufferService=i,s._mouseService=n,s._selectionService=o,s._zones=[],s._areZonesActive=!1,s._lastHoverCoords=[void 0,void 0],s._initialSelectionLength=0,s.register(c.addDisposableDomListener(s._element,"mousedown",function(e){return s._onMouseDown(e)})),s._mouseMoveListener=function(e){return s._onMouseMove(e)},s._mouseLeaveListener=function(e){return s._onMouseLeave(e)},s._clickListener=function(e){return s._onClick(e)},s}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var r=0;r<this._zones.length;r++){var i=this._zones[r];(i.y1>e&&i.y1<=t+1||i.y2>e&&i.y2<=t+1||i.y1<e&&i.y2>t+1)&&(this._currentZone&&this._currentZone===i&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(r--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,r=this._findZoneEventAt(e);r!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),r&&(this._currentZone=r,r.hoverCallback&&r.hoverCallback(e),this._tooltipTimeout=setTimeout(function(){return t._onTooltip(e)},500)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){var t;(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive)&&((null===(t=this._findZoneEventAt(e))||void 0===t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation()))},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),r=this._getSelectionLength();t&&r===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var r=t[0],i=t[1],n=0;n<this._zones.length;n++){var o=this._zones[n];if(o.y1===o.y2){if(i===o.y1&&r>=o.x1&&r<o.x2)return o}else if(i===o.y1&&r>=o.x1||i===o.y2&&r<o.x2||i>o.y1&&i<o.y2)return o}},t=o([s(2,h.IBufferService),s(3,l.IMouseService),s(4,l.ISelectionService)],t)}(a.Disposable);t.MouseZoneManager=u},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(17),s=r(11),a=r(30),c=r(7),l=r(2),h=r(31),u=function(e){function t(t,r){var i=e.call(this)||this;i._terminal=t,i._renderService=r,i._liveRegionLineCount=0,i._charsToConsume=[],i._charsToAnnounce="",i._accessibilityTreeRoot=document.createElement("div"),i._accessibilityTreeRoot.classList.add("xterm-accessibility"),i._rowContainer=document.createElement("div"),i._rowContainer.classList.add("xterm-accessibility-tree"),i._rowElements=[];for(var n=0;n<i._terminal.rows;n++)i._rowElements[n]=i._createAccessibilityTreeNode(),i._rowContainer.appendChild(i._rowElements[n]);return i._topBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,0)},i._bottomBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,1)},i._rowElements[0].addEventListener("focus",i._topBoundaryFocusListener),i._rowElements[i._rowElements.length-1].addEventListener("focus",i._bottomBoundaryFocusListener),i._refreshRowsDimensions(),i._accessibilityTreeRoot.appendChild(i._rowContainer),i._renderRowsDebouncer=new a.RenderDebouncer(i._renderRows.bind(i)),i._refreshRows(),i._liveRegion=document.createElement("div"),i._liveRegion.classList.add("live-region"),i._liveRegion.setAttribute("aria-live","assertive"),i._accessibilityTreeRoot.appendChild(i._liveRegion),i._terminal.element.insertAdjacentElement("afterbegin",i._accessibilityTreeRoot),i.register(i._renderRowsDebouncer),i.register(i._terminal.onResize(function(e){return i._onResize(e.rows)})),i.register(i._terminal.onRender(function(e){return i._refreshRows(e.start,e.end)})),i.register(i._terminal.onScroll(function(){return i._refreshRows()})),i.register(i._terminal.onA11yChar(function(e){return i._onChar(e)})),i.register(i._terminal.onLineFeed(function(){return i._onChar("\n")})),i.register(i._terminal.onA11yTab(function(e){return i._onTab(e)})),i.register(i._terminal.onKey(function(e){return i._onKey(e.key)})),i.register(i._terminal.onBlur(function(){return i._clearLiveRegion()})),i.register(i._renderService.onDimensionsChange(function(){return i._refreshRowsDimensions()})),i._screenDprMonitor=new h.ScreenDprMonitor,i.register(i._screenDprMonitor),i._screenDprMonitor.setListener(function(){return i._refreshRowsDimensions()}),i.register(c.addDisposableDomListener(window,"resize",function(){return i._refreshRowsDimensions()})),i}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._terminal.element.removeChild(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(e,t){var r=e.target,i=this._rowElements[0===t?1:this._rowElements.length-2];if(r.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===i){var n,o;if(0===t?(n=r,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(n=this._rowElements.shift(),o=r,this._rowContainer.removeChild(n)),n.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){var s=this._createAccessibilityTreeNode();this._rowElements.unshift(s),this._rowContainer.insertAdjacentElement("afterbegin",s)}else{s=this._createAccessibilityTreeNode();this._rowElements.push(s),this._rowContainer.appendChild(s)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}},t.prototype._onResize=function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},t.prototype._onChar=function(e){var t=this;if(this._liveRegionLineCount<21){if(this._charsToConsume.length>0)this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e);else this._charsToAnnounce+=e;"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=o.tooMuchOutput)),s.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0)}},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,s.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var r=this._terminal.buffer,i=r.lines.length.toString(),n=e;n<=t;n++){var o=r.translateBufferLineToString(r.ydisp+n,!0),s=(r.ydisp+n+1).toString(),a=this._rowElements[n];a&&(0===o.length?a.innerHTML="&nbsp;":a.textContent=o,a.setAttribute("aria-posinset",s),a.setAttribute("aria-setsize",i))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}},t.prototype._refreshRowDimensions=function(e){e.style.height=this._renderService.dimensions.actualCellHeight+"px"},t.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},t}(l.Disposable);t.AccessibilityManager=u},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(58),c=r(9),l=r(2),h=r(4),u=r(0),f=r(1),_=r(10),d="xterm-dom-renderer-owner-",p="xterm-rows",v="xterm-selection",g=1,y=function(e){function t(t,r,i,n,o,s,c,l){var h=e.call(this)||this;return h._colors=t,h._element=r,h._screenElement=i,h._viewportElement=n,h._linkifier=o,h._charSizeService=s,h._optionsService=c,h._bufferService=l,h._terminalClass=g++,h._rowElements=[],h._onRequestRefreshRows=new f.EventEmitter,h._rowContainer=document.createElement("div"),h._rowContainer.classList.add(p),h._rowContainer.style.lineHeight="normal",h._rowContainer.setAttribute("aria-hidden","true"),h._refreshRowElements(h._bufferService.cols,h._bufferService.rows),h._selectionContainer=document.createElement("div"),h._selectionContainer.classList.add(v),h._selectionContainer.setAttribute("aria-hidden","true"),h.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},h._updateDimensions(),h._injectCss(),h._rowFactory=new a.DomRendererRowFactory(document,h._optionsService,h._colors),h._element.classList.add(d+h._terminalClass),h._screenElement.appendChild(h._rowContainer),h._screenElement.appendChild(h._selectionContainer),h._linkifier.onLinkHover(function(e){return h._onLinkHover(e)}),h._linkifier.onLinkLeave(function(e){return h._onLinkLeave(e)}),h}return n(t,e),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove(d+this._terminalClass),this._screenElement.removeChild(this._rowContainer),this._screenElement.removeChild(this._selectionContainer),this._screenElement.removeChild(this._themeStyleElement),this._screenElement.removeChild(this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){var e=this;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this._rowElements.forEach(function(t){t.style.width=e.dimensions.canvasWidth+"px",t.style.height=e.dimensions.actualCellHeight+"px",t.style.lineHeight=e.dimensions.actualCellHeight+"px",t.style.overflow="hidden"}),this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var t=this._terminalSelector+" ."+p+" span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.setColors=function(e){this._colors=e,this._injectCss()},t.prototype._injectCss=function(){var e=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var t=this._terminalSelector+" ."+p+" { color: "+this._colors.foreground.css+"; background-color: "+this._colors.background.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";t+=this._terminalSelector+" span:not(."+a.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+a.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+a.ITALIC_CLASS+" { font-style: italic;}",t+="@keyframes blink_box_shadow { 50% { box-shadow: none; }}",t+="@keyframes blink_block { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",t+=this._terminalSelector+" ."+p+":not(.xterm-focus) ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" ."+p+".xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_BLINK_CLASS+":not(."+a.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow 1s step-end infinite;}"+this._terminalSelector+" ."+p+".xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_BLINK_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block 1s step-end infinite;}"+this._terminalSelector+" ."+p+".xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" ."+p+" ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BAR_CLASS+" { box-shadow: 1px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" ."+p+" ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",t+=this._terminalSelector+" ."+v+" { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" ."+v+" div { position: absolute; background-color: "+this._colors.selection.css+";}",this._colors.ansi.forEach(function(r,i){t+=e._terminalSelector+" .xterm-fg-"+i+" { color: "+r.css+"; }"+e._terminalSelector+" .xterm-bg-"+i+" { background-color: "+r.css+"; }"}),t+=this._terminalSelector+" .xterm-fg-"+c.INVERTED_DEFAULT_COLOR+" { color: "+_.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+c.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=t},t.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},t.prototype._refreshRowElements=function(e,t){for(var r=this._rowElements.length;r<=t;r++){var i=document.createElement("div");this._rowContainer.appendChild(i),this._rowElements.push(i)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},t.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},t.prototype.onSelectionChanged=function(e,t,r){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var i=e[1]-this._bufferService.buffer.ydisp,n=t[1]-this._bufferService.buffer.ydisp,o=Math.max(i,0),s=Math.min(n,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||s<0)){var a=document.createDocumentFragment();if(r)a.appendChild(this._createSelectionElement(o,e[0],t[0],s-o+1));else{var c=i===o?e[0]:0,l=o===s?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,c,l));var h=s-o-1;if(a.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,h)),o!==s){var u=n===s?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(s,0,u))}}this._selectionContainer.appendChild(a)}}},t.prototype._createSelectionElement=function(e,t,r,i){void 0===i&&(i=1);var n=document.createElement("div");return n.style.height=i*this.dimensions.actualCellHeight+"px",n.style.top=e*this.dimensions.actualCellHeight+"px",n.style.left=t*this.dimensions.actualCellWidth+"px",n.style.width=this.dimensions.actualCellWidth*(r-t)+"px",n},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){this._rowElements.forEach(function(e){return e.innerHTML=""})},t.prototype.renderRows=function(e,t){for(var r=this._bufferService.buffer.ybase+this._bufferService.buffer.y,i=this._bufferService.buffer.x,n=this._optionsService.options.cursorBlink,o=e;o<=t;o++){var s=this._rowElements[o];s.innerHTML="";var a=o+this._bufferService.buffer.ydisp,c=this._bufferService.buffer.lines.get(a),l=this._optionsService.options.cursorStyle;s.appendChild(this._rowFactory.createRow(c,a===r,l,i,n,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return"."+d+this._terminalClass},enumerable:!0,configurable:!0}),t.prototype.registerCharacterJoiner=function(e){return-1},t.prototype.deregisterCharacterJoiner=function(e){return!1},t.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},t.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},t.prototype._setCellUnderline=function(e,t,r,i,n,o){for(;e!==t||r!==i;){var s=this._rowElements[r];if(!s)return;var a=s.children[e];a&&(a.style.textDecoration=o?"underline":"none"),++e>=n&&(e=0,r++)}},t=o([s(5,h.ICharSizeService),s(6,u.IOptionsService),s(7,u.IBufferService)],t)}(l.Disposable);t.DomRenderer=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),n=r(3),o=r(5),s=r(10);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var a=function(){function e(e,t,r){this._document=e,this._optionsService=t,this._colors=r,this._workCell=new o.CellData}return e.prototype.setColors=function(e){this._colors=e},e.prototype.createRow=function(e,r,o,a,l,h,u){for(var f=this._document.createDocumentFragment(),_=0,d=Math.min(e.length,u)-1;d>=0;d--)if(e.loadCell(d,this._workCell).getCode()!==n.NULL_CELL_CODE||r&&d===a){_=d+1;break}for(d=0;d<_;d++){e.loadCell(d,this._workCell);var p=this._workCell.getWidth();if(0!==p){var v=this._document.createElement("span");if(p>1&&(v.style.width=h*p+"px"),r&&d===a)switch(v.classList.add(t.CURSOR_CLASS),l&&v.classList.add(t.CURSOR_BLINK_CLASS),o){case"bar":v.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":v.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:v.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&v.classList.add(t.BOLD_CLASS),this._workCell.isItalic()&&v.classList.add(t.ITALIC_CLASS),this._workCell.isDim()&&v.classList.add(t.DIM_CLASS),this._workCell.isUnderline()&&v.classList.add(t.UNDERLINE_CLASS),v.textContent=this._workCell.getChars()||n.WHITESPACE_CELL_CHAR;var g=this._workCell.getFgColor(),y=this._workCell.getFgColorMode(),b=this._workCell.getBgColor(),m=this._workCell.getBgColorMode(),C=!!this._workCell.isInverse();if(C){var S=g;g=b,b=S;var w=y;y=m,m=w}switch(y){case 16777216:case 33554432:this._workCell.isBold()&&g<8&&this._optionsService.options.drawBoldTextInBrightColors&&(g+=8),this._applyMinimumContrast(v,this._colors.background,this._colors.ansi[g])||v.classList.add("xterm-fg-"+g);break;case 50331648:var E=s.rgbaToColor(g>>16&255,g>>8&255,255&g);this._applyMinimumContrast(v,this._colors.background,E)||this._addStyle(v,"color:#"+c(g.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(v,this._colors.background,this._colors.foreground)||C&&v.classList.add("xterm-fg-"+i.INVERTED_DEFAULT_COLOR)}switch(m){case 16777216:case 33554432:v.classList.add("xterm-bg-"+b);break;case 50331648:this._addStyle(v,"background-color:#"+c(b.toString(16),"0",6));break;case 0:default:C&&v.classList.add("xterm-bg-"+i.INVERTED_DEFAULT_COLOR)}f.appendChild(v)}}return f},e.prototype._applyMinimumContrast=function(e,t,r){if(1===this._optionsService.options.minimumContrastRatio)return!1;var i=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===i&&(i=s.ensureContrastRatio(t,r,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=i?i:null)),!!i&&(this._addStyle(e,"color:"+i.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},e}();function c(e,t,r){for(;e.length<r;)e=t+e;return e}t.DomRendererRowFactory=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(12),n={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,r,o){var s={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?s.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?s.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?s.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(s.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B");break;case 8:if(e.shiftKey){s.key=i.C0.BS;break}if(e.altKey){s.key=i.C0.ESC+i.C0.DEL;break}s.key=i.C0.DEL;break;case 9:if(e.shiftKey){s.key=i.C0.ESC+"[Z";break}s.key=i.C0.HT,s.cancel=!0;break;case 13:s.key=i.C0.CR,s.cancel=!0;break;case 27:s.key=i.C0.ESC,s.cancel=!0;break;case 37:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"D",s.key===i.C0.ESC+"[1;3D"&&(s.key=i.C0.ESC+(r?"b":"[1;5D"))):s.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"C",s.key===i.C0.ESC+"[1;3C"&&(s.key=i.C0.ESC+(r?"f":"[1;5C"))):s.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"A",r||s.key!==i.C0.ESC+"[1;3A"||(s.key=i.C0.ESC+"[1;5A")):s.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"B",r||s.key!==i.C0.ESC+"[1;3B"||(s.key=i.C0.ESC+"[1;5B")):s.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(s.key=i.C0.ESC+"[2~");break;case 46:s.key=a?i.C0.ESC+"[3;"+(a+1)+"~":i.C0.ESC+"[3~";break;case 36:s.key=a?i.C0.ESC+"[1;"+(a+1)+"H":t?i.C0.ESC+"OH":i.C0.ESC+"[H";break;case 35:s.key=a?i.C0.ESC+"[1;"+(a+1)+"F":t?i.C0.ESC+"OF":i.C0.ESC+"[F";break;case 33:e.shiftKey?s.type=2:s.key=i.C0.ESC+"[5~";break;case 34:e.shiftKey?s.type=3:s.key=i.C0.ESC+"[6~";break;case 112:s.key=a?i.C0.ESC+"[1;"+(a+1)+"P":i.C0.ESC+"OP";break;case 113:s.key=a?i.C0.ESC+"[1;"+(a+1)+"Q":i.C0.ESC+"OQ";break;case 114:s.key=a?i.C0.ESC+"[1;"+(a+1)+"R":i.C0.ESC+"OR";break;case 115:s.key=a?i.C0.ESC+"[1;"+(a+1)+"S":i.C0.ESC+"OS";break;case 116:s.key=a?i.C0.ESC+"[15;"+(a+1)+"~":i.C0.ESC+"[15~";break;case 117:s.key=a?i.C0.ESC+"[17;"+(a+1)+"~":i.C0.ESC+"[17~";break;case 118:s.key=a?i.C0.ESC+"[18;"+(a+1)+"~":i.C0.ESC+"[18~";break;case 119:s.key=a?i.C0.ESC+"[19;"+(a+1)+"~":i.C0.ESC+"[19~";break;case 120:s.key=a?i.C0.ESC+"[20;"+(a+1)+"~":i.C0.ESC+"[20~";break;case 121:s.key=a?i.C0.ESC+"[21;"+(a+1)+"~":i.C0.ESC+"[21~";break;case 122:s.key=a?i.C0.ESC+"[23;"+(a+1)+"~":i.C0.ESC+"[23~";break;case 123:s.key=a?i.C0.ESC+"[24;"+(a+1)+"~":i.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(r&&!o||!e.altKey||e.metaKey)r&&!e.altKey&&!e.ctrlKey&&e.metaKey?65===e.keyCode&&(s.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?s.key=e.key:e.key&&e.ctrlKey&&"_"===e.key&&(s.key=i.C0.US);else{var c=n[e.keyCode],l=c&&c[e.shiftKey?1:0];if(l)s.key=i.C0.ESC+l;else if(e.keyCode>=65&&e.keyCode<=90){var h=e.ctrlKey?e.keyCode-64:e.keyCode+32;s.key=i.C0.ESC+String.fromCharCode(h)}}else e.keyCode>=65&&e.keyCode<=90?s.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?s.key=i.C0.NUL:e.keyCode>=51&&e.keyCode<=55?s.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?s.key=i.C0.DEL:219===e.keyCode?s.key=i.C0.ESC:220===e.keyCode?s.key=i.C0.FS:221===e.keyCode&&(s.key=i.C0.GS)}return s}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(3);t.handleWindowsModeLineFeed=function(e){var t,r=null===(t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1))||void 0===t?void 0:t.get(e.cols-1),n=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);n&&r&&(n.isWrapped=r[i.CHAR_DATA_CODE_INDEX]!==i.NULL_CELL_CODE&&r[i.CHAR_DATA_CODE_INDEX]!==i.WHITESPACE_CELL_CODE)}},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(30),c=r(1),l=r(2),h=r(31),u=r(7),f=r(0),_=r(4),d=function(e){function t(t,r,i,n,o){var s=e.call(this)||this;if(s._renderer=t,s._rowCount=r,s.screenElement=i,s.optionsService=n,s.charSizeService=o,s._isPaused=!1,s._needsFullRefresh=!1,s._canvasWidth=0,s._canvasHeight=0,s._onDimensionsChange=new c.EventEmitter,s._onRender=new c.EventEmitter,s._onRefreshRequest=new c.EventEmitter,s._renderDebouncer=new a.RenderDebouncer(function(e,t){return s._renderRows(e,t)}),s.register(s._renderDebouncer),s._screenDprMonitor=new h.ScreenDprMonitor,s._screenDprMonitor.setListener(function(){return s.onDevicePixelRatioChange()}),s.register(s._screenDprMonitor),s.register(n.onOptionChange(function(){return s._renderer.onOptionsChanged()})),s.register(o.onCharSizeChange(function(){return s.onCharSizeChanged()})),s._renderer.onRequestRefreshRows(function(e){return s.refreshRows(e.start,e.end)}),s.register(u.addDisposableDomListener(window,"resize",function(){return s.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var l=new IntersectionObserver(function(e){return s._onIntersectionChange(e[e.length-1])},{threshold:0});l.observe(i),s.register({dispose:function(){return l.disconnect()}})}return s}return n(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!0,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=0===e.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},t.prototype.refreshRows=function(e,t){this._isPaused?this._needsFullRefresh=!0:this._renderDebouncer.refresh(e,t,this._rowCount)},t.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._onRender.fire({start:e,end:t})},t.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},t.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},t.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},t.prototype.dispose=function(){this._renderer.dispose(),e.prototype.dispose.call(this)},t.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRefreshRows(function(e){return t.refreshRows(e.start,e.end)}),this.refreshRows(0,this._rowCount-1)},t.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},t.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},t.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},t.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},t.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},t.prototype.onBlur=function(){this._renderer.onBlur()},t.prototype.onFocus=function(){this._renderer.onFocus()},t.prototype.onSelectionChanged=function(e,t,r){this._renderer.onSelectionChanged(e,t,r)},t.prototype.onCursorMove=function(){this._renderer.onCursorMove()},t.prototype.clear=function(){this._renderer.clear()},t.prototype.registerCharacterJoiner=function(e){return this._renderer.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){return this._renderer.deregisterCharacterJoiner(e)},t=o([s(3,f.IOptionsService),s(4,_.ICharSizeService)],t)}(l.Disposable);t.RenderService=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),n=r(11),o=r(32);t.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",t.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",bellSound:t.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,rendererType:"canvas",windowsMode:!1,convertEol:!1,termName:"xterm",screenKeys:!1,cancelEvents:!1,useFlowControl:!1,wordSeparator:" ()[]{}',:;\"`"});var s=["cols","rows"],a=function(){function e(e){var r=this;this._onOptionChange=new i.EventEmitter,this.options=o.clone(t.DEFAULT_OPTIONS),Object.keys(e).forEach(function(t){if(t in r.options){var i=e[t];r.options[t]=i}})}return Object.defineProperty(e.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!0,configurable:!0}),e.prototype.setOption=function(e,r){if(!(e in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+e+'"');if(-1!==s.indexOf(e))throw new Error('Option "'+e+'" can only be set in the constructor');this.options[e]!==r&&(r=this._sanitizeAndValidateOption(e,r),this.options[e]!==r&&(this.options[e]=r,this._onOptionChange.fire(e)))},e.prototype._sanitizeAndValidateOption=function(e,r){switch(e){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":r||(r=t.DEFAULT_OPTIONS[e]);break;case"lineHeight":case"tabStopWidth":if(r<1)throw new Error(e+" cannot be less than 1, value: "+r);break;case"minimumContrastRatio":r=Math.max(1,Math.min(21,Math.round(10*r)/10));case"scrollback":if((r=Math.min(r,4294967295))<0)throw new Error(e+" cannot be less than 0, value: "+r);break;case"fastScrollSensitivity":case"scrollSensitivity":if(r<=0)throw new Error(e+" cannot be less than or equal to 0, value: "+r)}return r},e.prototype.getOption=function(e){if(!(e in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+e+'"');return this.options[e]},e}();t.OptionsService=a},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),s=r(1),a=function(){function e(e,t,r){this.document=e,this.parentElement=t,this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=new s.EventEmitter,this._measureStrategy=new c(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!0,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},e=i([n(2,o.IOptionsService)],e)}();t.CharSizeService=a;var c=function(){function e(e,t,r){this._document=e,this._parentElement=t,this._optionsService=r,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return e.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},e}()},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),s=r(65);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var a=function(){function e(e){this._optionsService=e,this.cols=Math.max(e.options.cols,t.MINIMUM_COLS),this.rows=Math.max(e.options.rows,t.MINIMUM_ROWS),this.buffers=new s.BufferSet(e,this)}return Object.defineProperty(e.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),e.prototype.resize=function(e,t){this.cols=e,this.rows=t},e.prototype.reset=function(){this.buffers=new s.BufferSet(this._optionsService,this)},e=i([n(0,o.IOptionsService)],e)}();t.BufferService=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(66),n=r(1),o=function(){function e(e,t){this.optionsService=e,this.bufferService=t,this._onBufferActivate=new n.EventEmitter,this._normal=new i.Buffer(!0,e,t),this._normal.fillViewportRows(),this._alt=new i.Buffer(!1,e,t),this._activeBuffer=this._normal,this.setupTabStops()}return Object.defineProperty(e.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alt",{get:function(){return this._alt},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal},enumerable:!0,configurable:!0}),e.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},e.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},e.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},e.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},e}();t.BufferSet=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(67),n=r(16),o=r(5),s=r(3),a=r(68),c=r(69),l=r(18);t.MAX_BUFFER_SIZE=4294967295;var h=function(){function e(e,t,r){this._hasScrollback=e,this._optionsService=t,this._bufferService=r,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=n.DEFAULT_ATTR_DATA.clone(),this.savedCharset=l.DEFAULT_CHARSET,this.markers=[],this._nullCell=o.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]),this._whitespaceCell=o.CellData.fromCharData([0,s.WHITESPACE_CELL_CHAR,s.WHITESPACE_CELL_WIDTH,s.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return e.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg):(this._nullCell.fg=0,this._nullCell.bg=0),this._nullCell},e.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0),this._whitespaceCell},e.prototype.getBlankLine=function(e,t){return new n.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows},enumerable:!0,configurable:!0}),e.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var r=e+this._optionsService.options.scrollback;return r>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:r},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=n.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var r=this.getNullCell(n.DEFAULT_ATTR_DATA),i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols<e)for(var o=0;o<this.lines.length;o++)this.lines.get(o).resize(e,r);var s=0;if(this._rows<t)for(var a=this._rows;a<t;a++)this.lines.length<t+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new n.BufferLine(e,r)):this.ybase>0&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,this.ydisp>0&&this.ydisp--):this.lines.push(new n.BufferLine(e,r)));else for(a=this._rows;a>t;a--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i<this.lines.maxLength){var c=this.lines.length-i;c>0&&(this.lines.trimStart(c),this.ybase=Math.max(this.ybase-c,0),this.ydisp=Math.max(this.ydisp-c,0),this.savedY=Math.max(this.savedY-c,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),s&&(this.y+=s),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(o=0;o<this.lines.length;o++)this.lines.get(o).resize(e,r);this._cols=e,this._rows=t},Object.defineProperty(e.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!0,configurable:!0}),e.prototype._reflow=function(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var r=a.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(n.DEFAULT_ATTR_DATA));if(r.length>0){var i=a.reflowLargerCreateNewLayout(this.lines,r);a.reflowLargerApplyNewLayout(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,r){for(var i=this.getNullCell(n.DEFAULT_ATTR_DATA),o=r;o-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new n.BufferLine(e,i))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-r,0)},e.prototype._reflowSmaller=function(e,t){for(var r=this.getNullCell(n.DEFAULT_ATTR_DATA),i=[],o=0,s=this.lines.length-1;s>=0;s--){var c=this.lines.get(s);if(!(!c||!c.isWrapped&&c.getTrimmedLength()<=e)){for(var l=[c];c.isWrapped&&s>0;)c=this.lines.get(--s),l.unshift(c);var h=this.ybase+this.y;if(!(h>=s&&h<s+l.length)){var u=l[l.length-1].getTrimmedLength(),f=a.reflowSmallerGetNewLineLengths(l,this._cols,e),_=f.length-l.length,d=void 0;d=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+_):Math.max(0,this.lines.length-this.lines.maxLength+_);for(var p=[],v=0;v<_;v++){var g=this.getBlankLine(n.DEFAULT_ATTR_DATA,!0);p.push(g)}p.length>0&&(i.push({start:s+l.length+o,newLines:p}),o+=p.length),l.push.apply(l,p);var y=f.length-1,b=f[y];0===b&&(b=f[--y]);for(var m=l.length-_-1,C=u;m>=0;){var S=Math.min(C,b);if(l[y].copyCellsFrom(l[m],C-S,b-S,S,!0),0===(b-=S)&&(b=f[--y]),0===(C-=S)){m--;var w=Math.max(m,0);C=a.getWrappedLineTrimmedLength(l,w,this._cols)}}for(v=0;v<l.length;v++)f[v]<e&&l[v].setCell(f[v],r);for(var E=_-d;E-- >0;)0===this.ybase?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+o)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+_,this.ybase+t-1)}}}if(i.length>0){var L=[],A=[];for(v=0;v<this.lines.length;v++)A.push(this.lines.get(v));var R=this.lines.length,x=R-1,k=0,D=i[k];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+o);var T=0;for(v=Math.min(this.lines.maxLength-1,R+o-1);v>=0;v--)if(D&&D.start>x+T){for(var M=D.newLines.length-1;M>=0;M--)this.lines.set(v--,D.newLines[M]);v++,L.push({index:x+1,amount:D.newLines.length}),T+=D.newLines.length,D=i[++k]}else this.lines.set(v,A[x--]);var O=0;for(v=L.length-1;v>=0;v--)L[v].index+=O,this.lines.onInsertEmitter.fire(L[v]),O+=L[v].amount;var P=Math.max(0,R+o-this.lines.maxLength);P>0&&this.lines.onTrimEmitter.fire(P)}},e.prototype.stringIndexToBufferIndex=function(e,t,r){for(void 0===r&&(r=!1);t;){var i=this.lines.get(e);if(!i)return[-1,-1];for(var n=r?i.getTrimmedLength():i.length,o=0;o<n;++o)if(i.get(o)[s.CHAR_DATA_WIDTH_INDEX]&&(t-=i.get(o)[s.CHAR_DATA_CHAR_INDEX].length||1),t<0)return[e,o];e++}return[e,0]},e.prototype.translateBufferLineToString=function(e,t,r,i){void 0===r&&(r=0);var n=this.lines.get(e);return n?n.translateToString(t,r,i):""},e.prototype.getWrappedRangeForLine=function(e){for(var t=e,r=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;r+1<this.lines.length&&this.lines.get(r+1).isWrapped;)r++;return{first:t,last:r}},e.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.options.tabStopWidth)this.tabs[e]=!0},e.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,r=new c.Marker(e);return this.markers.push(r),r.register(this.lines.onTrim(function(e){r.line-=e,r.line<0&&r.dispose()})),r.register(this.lines.onInsert(function(e){r.line>=e.index&&(r.line+=e.amount)})),r.register(this.lines.onDelete(function(e){r.line>=e.index&&r.line<e.index+e.amount&&r.dispose(),r.line>e.index&&(r.line-=e.amount)})),r.register(r.onDispose(function(){return t._removeMarker(r)})),r},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,r,i,n){return new u(this,e,t,r,i,n)},e}();t.Buffer=h;var u=function(){function e(e,t,r,i,n,o){void 0===r&&(r=0),void 0===i&&(i=e.lines.length),void 0===n&&(n=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=r,this._endIndex=i,this._startOverscan=n,this._endOverscan=o,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._current<this._endIndex},e.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",r=e.first;r<=e.last;++r)t+=this._buffer.translateBufferLineToString(r,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),n=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new i.EventEmitter,this.onInsertEmitter=new i.EventEmitter,this.onTrimEmitter=new i.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),r=0;r<Math.min(e,this.length);r++)t[r]=this._array[this._getCyclicIndex(r)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},e.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},e.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},e.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(e.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!0,configurable:!0}),e.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},e.prototype.splice=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(t){for(var n=e;n<this._length-t;n++)this._array[this._getCyclicIndex(n)]=this._array[this._getCyclicIndex(n+t)];this._length-=t}for(n=this._length-1;n>=e;n--)this._array[this._getCyclicIndex(n+r.length)]=this._array[this._getCyclicIndex(n)];for(n=0;n<r.length;n++)this._array[this._getCyclicIndex(e+n)]=r[n];if(this._length+r.length>this._maxLength){var o=this._length+r.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=r.length},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},e.prototype.shiftElements=function(e,t,r){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+r<0)throw new Error("Cannot shift elements in list beyond index 0");if(r>0){for(var i=t-1;i>=0;i--)this.set(e+i+r,this.get(e+i));var n=e+t+r-this._length;if(n>0)for(this._length+=n;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i<t;i++)this.set(e+i+r,this.get(e+i))}},e.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this._maxLength},e}();t.CircularList=n},function(e,t,r){"use strict";function i(e,t,r){if(t===e.length-1)return e[t].getTrimmedLength();var i=!e[t].hasContent(r-1)&&1===e[t].getWidth(r-1),n=2===e[t+1].getWidth(0);return i&&n?r-1:r}Object.defineProperty(t,"__esModule",{value:!0}),t.reflowLargerGetLinesToRemove=function(e,t,r,n,o){for(var s=[],a=0;a<e.length-1;a++){var c=a,l=e.get(++c);if(l.isWrapped){for(var h=[e.get(a)];c<e.length&&l.isWrapped;)h.push(l),l=e.get(++c);if(n>=a&&n<c)a+=h.length-1;else{for(var u=0,f=i(h,u,t),_=1,d=0;_<h.length;){var p=i(h,_,t),v=p-d,g=r-f,y=Math.min(v,g);h[u].copyCellsFrom(h[_],d,f,y,!1),(f+=y)===r&&(u++,f=0),(d+=y)===p&&(_++,d=0),0===f&&0!==u&&2===h[u-1].getWidth(r-1)&&(h[u].copyCellsFrom(h[u-1],r-1,f++,1,!1),h[u-1].setCell(r-1,o))}h[u].replaceCells(f,r,o);for(var b=0,m=h.length-1;m>0&&(m>u||0===h[m].getTrimmedLength());m--)b++;b>0&&(s.push(a+h.length-b),s.push(b)),a+=h.length-1}}}return s},t.reflowLargerCreateNewLayout=function(e,t){for(var r=[],i=0,n=t[i],o=0,s=0;s<e.length;s++)if(n===s){var a=t[++i];e.onDeleteEmitter.fire({index:s-o,amount:a}),s+=a-1,o+=a,n=t[++i]}else r.push(s);return{layout:r,countRemoved:o}},t.reflowLargerApplyNewLayout=function(e,t){for(var r=[],i=0;i<t.length;i++)r.push(e.get(t[i]));for(i=0;i<r.length;i++)e.set(i,r[i]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,r){for(var n=[],o=e.map(function(r,n){return i(e,n,t)}).reduce(function(e,t){return e+t}),s=0,a=0,c=0;c<o;){if(o-c<r){n.push(o-c);break}s+=r;var l=i(e,a,t);s>l&&(s-=l,a++);var h=2===e[a].getWidth(s-1);h&&s--;var u=h?r-1:r;n.push(u),c+=u}return n},t.getWrappedLineTrimmedLength=i},function(e,t,r){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),s=function(e){function t(r){var i=e.call(this)||this;return i.line=r,i._id=t._nextId++,i.isDisposed=!1,i._onDispose=new o.EventEmitter,i}return n(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},t._nextId=1,t}(r(2).Disposable);t.Marker=s},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),s=r(29),a=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,r,i,n){return s.getCoords(e,t,r,i,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,n)},e.prototype.getRawByteCoords=function(e,t,r,i){var n=this.getCoords(e,t,r,i);return s.getRawByteCoords(n)},e=i([n(0,o.IRenderService),n(1,o.ICharSizeService)],e)}();t.MouseService=a},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),s=r(1),a=r(32),c=Object.freeze({applicationCursorKeys:!1}),l=function(){function e(e,t,r,i){this._scrollToBottom=e,this._bufferService=t,this._logService=r,this._optionsService=i,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=new s.EventEmitter,this._onUserInput=new s.EventEmitter,this._onBinary=new s.EventEmitter,this.decPrivateModes=a.clone(c)}return Object.defineProperty(e.prototype,"onData",{get:function(){return this._onData.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.decPrivateModes=a.clone(c)},e.prototype.triggerDataEvent=function(e,t){if(void 0===t&&(t=!1),!this._optionsService.options.disableStdin){var r=this._bufferService.buffer;r.ybase!==r.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onData.fire(e)}},e.prototype.triggerBinaryEvent=function(e){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onBinary.fire(e))},e=i([n(1,o.IBufferService),n(2,o.ILogService),n(3,o.IOptionsService)],e)}();t.CoreService=l},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=Array(e),n=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,n++)i[n]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0});var s,a=r(0);!function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e[e.OFF=4]="OFF"}(s=t.LogLevel||(t.LogLevel={}));var c={debug:s.DEBUG,info:s.INFO,warn:s.WARN,error:s.ERROR,off:s.OFF},l=function(){function e(e){var t=this;this._optionsService=e,this._updateLogLevel(),this._optionsService.onOptionChange(function(e){"logLevel"===e&&t._updateLogLevel()})}return e.prototype._updateLogLevel=function(){this._logLevel=c[this._optionsService.options.logLevel]},e.prototype._evalLazyOptionalParams=function(e){for(var t=0;t<e.length;t++)"function"==typeof e[t]&&(e[t]=e[t]())},e.prototype._log=function(e,t,r){this._evalLazyOptionalParams(r),e.call.apply(e,o([console,"xterm.js: "+t],r))},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this._logLevel<=s.DEBUG&&this._log(console.log,e,t)},e.prototype.info=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this._logLevel<=s.INFO&&this._log(console.info,e,t)},e.prototype.warn=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this._logLevel<=s.WARN&&this._log(console.warn,e,t)},e.prototype.error=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this._logLevel<=s.ERROR&&this._log(console.error,e,t)},e=i([n(0,a.IOptionsService)],e)}();t.LogService=l},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),s=function(){function e(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),e.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},e.prototype.markDirty=function(e){e<this._start?this._start=e:e>this._end&&(this._end=e)},e.prototype.markRangeDirty=function(e,t){if(e>t){var r=e;e=t,t=r}e<this._start&&(this._start=e),t>this._end&&(this._end=t)},e.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},e=i([n(0,o.IBufferService)],e)}();t.DirtyRowService=s},function(e,t,r){"use strict";var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=Array(e),n=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,n++)i[n]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(14),s=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var r=0,i=e;r<i.length;r++){var n=i[r],o=n[0],s=n[1];this.set(o,s)}}return e.prototype.set=function(e,t){var r=this._entries.get(e);return this._entries.set(e,t),r},e.prototype.forEach=function(e){this._entries.forEach(function(t,r){return e(r,t)})},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}();t.ServiceCollection=s;var a=function(){function e(){this._services=new s,this._services.set(n.IInstantiationService,this)}return e.prototype.setService=function(e,t){this._services.set(e,t)},e.prototype.createInstance=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=o.getServiceDependencies(e).sort(function(e,t){return e.index-t.index}),s=[],a=0,c=n;a<c.length;a++){var l=c[a],h=this._services.get(l.id);if(!h)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+l.id+".");s.push(h)}var u=n.length>0?n[0].index:t.length;if(t.length!==u)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(u+1)+" conflicts with "+t.length+" static arguments");return new(e.bind.apply(e,i([void 0],i(t,s))))},e}();t.InstantiationService=a},function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},n=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),s=r(1),a={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function c(e,t){var r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(r|=64,r|=e.action):(r|=3&e.button,4&e.button&&(r|=64),8&e.button&&(r|=128),32===e.action?r|=32:0!==e.action||t||(r|=3)),r}var l=String.fromCharCode,h={DEFAULT:function(e){var t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":""+l(t[0])+l(t[1])+l(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"[<"+c(e,!0)+";"+e.col+";"+e.row+t}},u=function(){function e(e,t){var r=this;this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new s.EventEmitter,this._lastEvent=null,Object.keys(a).forEach(function(e){return r.addProtocol(e,a[e])}),Object.keys(h).forEach(function(e){return r.addEncoding(e,h[e])}),this.reset()}return e.prototype.addProtocol=function(e,t){this._protocols[e]=t},e.prototype.addEncoding=function(e,t){this._encodings[e]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!0,configurable:!0}),e.prototype.triggerMouseEvent=function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{DOWN:!!(1&e),UP:!!(2&e),DRAG:!!(4&e),MOVE:!!(8&e),WHEEL:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&(e.row===t.row&&(e.button===t.button&&(e.action===t.action&&(e.ctrl===t.ctrl&&(e.alt===t.alt&&e.shift===t.shift)))))},e=i([n(0,o.IBufferService),n(1,o.ICoreService)],e)}();t.CoreMouseService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return e.prototype.writeSync=function(e){if(this._writeBuffer.length){for(var t=this._bufferOffset;t<this._writeBuffer.length;++t){var r=this._writeBuffer[t],i=this._callbacks[t];this._action(r),i&&i()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(e)},e.prototype.write=function(e,t){var r=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return r._innerWrite()})),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},e.prototype._innerWrite=function(){for(var e=this,t=Date.now();this._writeBuffer.length>this._bufferOffset;){var r=this._writeBuffer[this._bufferOffset],i=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(r),this._pendingData-=r.length,i&&i(),Date.now()-t>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return e._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},e}();t.WriteBuffer=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!0,configurable:!0}),e}();t.CoreBrowserService=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._addons=[]}return e.prototype.dispose=function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()},e.prototype.loadAddon=function(e,t){var r=this,i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=function(){return r._wrappedAddonDispose(i)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,r=0;r<this._addons.length;r++)if(this._addons[r]===e){t=r;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},e}();t.AddonManager=i}])});
2 +//# sourceMappingURL=xterm.js.map
\ No newline at end of file
public/styles/xterm.css new
+171
@@ -0,0 +1,171 @@
1 +/**
2 + * Copyright (c) 2014 The xterm.js authors. All rights reserved.
3 + * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
4 + * https://github.com/chjj/term.js
5 + * @license MIT
6 + *
7 + * Permission is hereby granted, free of charge, to any person obtaining a copy
8 + * of this software and associated documentation files (the "Software"), to deal
9 + * in the Software without restriction, including without limitation the rights
10 + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 + * copies of the Software, and to permit persons to whom the Software is
12 + * furnished to do so, subject to the following conditions:
13 + *
14 + * The above copyright notice and this permission notice shall be included in
15 + * all copies or substantial portions of the Software.
16 + *
17 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 + * THE SOFTWARE.
24 + *
25 + * Originally forked from (with the author's permission):
26 + * Fabrice Bellard's javascript vt100 for jslinux:
27 + * http://bellard.org/jslinux/
28 + * Copyright (c) 2011 Fabrice Bellard
29 + * The original design remains. The terminal itself
30 + * has been extended to include xterm CSI codes, among
31 + * other features.
32 + */
33 +
34 +/**
35 + * Default styles for xterm.js
36 + */
37 +
38 +.xterm {
39 + font-feature-settings: "liga" 0;
40 + position: relative;
41 + user-select: none;
42 + -ms-user-select: none;
43 + -webkit-user-select: none;
44 +}
45 +
46 +.xterm.focus,
47 +.xterm:focus {
48 + outline: none;
49 +}
50 +
51 +.xterm .xterm-helpers {
52 + position: absolute;
53 + top: 0;
54 + /**
55 + * The z-index of the helpers must be higher than the canvases in order for
56 + * IMEs to appear on top.
57 + */
58 + z-index: 5;
59 +}
60 +
61 +.xterm .xterm-helper-textarea {
62 + /*
63 + * HACK: to fix IE's blinking cursor
64 + * Move textarea out of the screen to the far left, so that the cursor is not visible.
65 + */
66 + position: absolute;
67 + opacity: 0;
68 + left: -9999em;
69 + top: 0;
70 + width: 0;
71 + height: 0;
72 + z-index: -5;
73 + /** Prevent wrapping so the IME appears against the textarea at the correct position */
74 + white-space: nowrap;
75 + overflow: hidden;
76 + resize: none;
77 +}
78 +
79 +.xterm .composition-view {
80 + /* TODO: Composition position got messed up somewhere */
81 + background: #000;
82 + color: #FFF;
83 + display: none;
84 + position: absolute;
85 + white-space: nowrap;
86 + z-index: 1;
87 +}
88 +
89 +.xterm .composition-view.active {
90 + display: block;
91 +}
92 +
93 +.xterm .xterm-viewport {
94 + /* On OS X this is required in order for the scroll bar to appear fully opaque */
95 + background-color: #000;
96 + overflow-y: scroll;
97 + cursor: default;
98 + position: absolute;
99 + right: 0;
100 + left: 0;
101 + top: 0;
102 + bottom: 0;
103 +}
104 +
105 +.xterm .xterm-screen {
106 + position: relative;
107 +}
108 +
109 +.xterm .xterm-screen canvas {
110 + position: absolute;
111 + left: 0;
112 + top: 0;
113 +}
114 +
115 +.xterm .xterm-scroll-area {
116 + visibility: hidden;
117 +}
118 +
119 +.xterm-char-measure-element {
120 + display: inline-block;
121 + visibility: hidden;
122 + position: absolute;
123 + top: 0;
124 + left: -9999em;
125 + line-height: normal;
126 +}
127 +
128 +.xterm {
129 + cursor: text;
130 +}
131 +
132 +.xterm.enable-mouse-events {
133 + /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
134 + cursor: default;
135 +}
136 +
137 +.xterm.xterm-cursor-pointer {
138 + cursor: pointer;
139 +}
140 +
141 +.xterm.column-select.focus {
142 + /* Column selection mode */
143 + cursor: crosshair;
144 +}
145 +
146 +.xterm .xterm-accessibility,
147 +.xterm .xterm-message {
148 + position: absolute;
149 + left: 0;
150 + top: 0;
151 + bottom: 0;
152 + right: 0;
153 + z-index: 10;
154 + color: transparent;
155 +}
156 +
157 +.xterm .live-region {
158 + position: absolute;
159 + left: -9999px;
160 + width: 1px;
161 + height: 1px;
162 + overflow: hidden;
163 +}
164 +
165 +.xterm-dim {
166 + opacity: 0.5;
167 +}
168 +
169 +.xterm-underline {
170 + text-decoration: underline;
171 +}
translate/translate.js
+1
@@ -27,6 +27,7 @@ var meshCentralSourceFiles = [
27 "../views/login-mobile.handlebars",
28 "../views/terms.handlebars",
29 "../views/terms-mobile.handlebars",
30 + "../views/xterm.handlebars",
31 "../views/message.handlebars",
32 "../views/messenger.handlebars",
33 "../public/player.htm"
translate/translate.json
+983 -956
@@ -11,7 +11,7 @@
11 "ru": " + CIRA",
12 "xloc": [
13 "default.handlebars->23->1000",
14 - "default.handlebars->23->998"
14 + "default.handlebars->23->1002"
15 ]
16 },
17 {
@@ -149,7 +149,7 @@
149 "pt": " Dica de senha pode ser usada, mas não é recomendada.",
150 "ru": "Может быть использована подсказка пароля, но не рекоммендуется.",
151 "xloc": [
152 - "default.handlebars->23->930"
152 + "default.handlebars->23->932"
153 ]
154 },
155 {
@@ -162,8 +162,8 @@
162 "pt": " Os usuários precisam fazer login neste servidor uma vez antes de poderem ser adicionados a um grupo de dispositivos.",
163 "ru": " Для добавления в группу устройств, пользователь должен зайти на сервер хоть один раз.",
164 "xloc": [
165 - "default.handlebars->23->1073",
166 - "default.handlebars->23->1303"
165 + "default.handlebars->23->1075",
166 + "default.handlebars->23->1305"
167 ]
168 },
169 {
@@ -303,7 +303,7 @@
303 "pt": "* Deixe em branco para atribuir uma senha aleatória a cada dispositivo.",
304 "ru": "* Для установления случайного пароля каждому устройству - оставьте пустым.",
305 "xloc": [
306 - "default.handlebars->23->1048"
306 + "default.handlebars->23->1050"
307 ]
308 },
309 {
@@ -329,7 +329,7 @@
329 "ru": ", ",
330 "xloc": [
331 "default-mobile.handlebars->9->330",
332 - "default.handlebars->23->1124"
332 + "default.handlebars->23->1126"
333 ]
334 },
335 {
@@ -354,7 +354,7 @@
354 "pt": ", O MQTT está online",
355 "ru": ", MQTT онлайн",
356 "xloc": [
357 - "default.handlebars->23->683"
357 + "default.handlebars->23->685"
358 ]
359 },
360 {
@@ -366,7 +366,7 @@
366 "pt": ", Soft-KVM",
367 "ru": ", Soft-KVM",
368 "xloc": [
369 - "default.handlebars->23->595"
369 + "default.handlebars->23->597"
370 ]
371 },
372 {
@@ -380,9 +380,10 @@
380 "xloc": [
381 "default-mobile.handlebars->9->228",
382 "default-mobile.handlebars->9->238",
383 - "default.handlebars->23->596",
384 - "default.handlebars->23->626",
385 - "default.handlebars->23->638"
383 + "default.handlebars->23->598",
384 + "default.handlebars->23->628",
385 + "default.handlebars->23->640",
386 + "xterm.handlebars->3->6"
387 ]
388 },
389 {
@@ -432,7 +433,8 @@
433 "pt": "-",
434 "ru": "-",
435 "xloc": [
435 - "default-mobile.handlebars->9->231"
436 + "default-mobile.handlebars->9->231",
437 + "xterm.handlebars->p11->deskarea0->deskarea1->3"
438 ]
439 },
440 {
@@ -466,9 +468,9 @@
468 "xloc": [
469 "default-mobile.handlebars->9->243",
470 "default-mobile.handlebars->9->67",
469 - "default.handlebars->23->1146",
470 - "default.handlebars->23->1379",
471 - "default.handlebars->23->640"
471 + "default.handlebars->23->1148",
472 + "default.handlebars->23->1381",
473 + "default.handlebars->23->642"
474 ]
475 },
476 {
@@ -506,7 +508,7 @@
508 "pt": "1 sessão ativa",
509 "ru": "1 активная сессия",
510 "xloc": [
509 - "default.handlebars->23->1343"
511 + "default.handlebars->23->1345"
512 ]
513 },
514 {
@@ -521,7 +523,7 @@
523 "xloc": [
524 "default-mobile.handlebars->9->334",
525 "default-mobile.handlebars->9->77",
524 - "default.handlebars->23->1163"
526 + "default.handlebars->23->1165"
527 ]
528 },
529 {
@@ -549,7 +551,7 @@
551 "pt": "1 grupo",
552 "ru": "1 группа",
553 "xloc": [
552 - "default.handlebars->23->1327"
554 + "default.handlebars->23->1329"
555 ]
556 },
557 {
@@ -599,7 +601,7 @@
601 "pt": "Mais 1 usuário não mostrado, use a caixa de pesquisa para procurar usuários...",
602 "ru": "Еще 1 пользователь не показан, используйте \\\"Поиск\\\" чтобы найти пользователей...",
603 "xloc": [
602 - "default.handlebars->23->1198"
604 + "default.handlebars->23->1200"
605 ]
606 },
607 {
@@ -633,7 +635,7 @@
635 "pt": "1 sessão",
636 "ru": "1 сессия",
637 "xloc": [
636 - "default.handlebars->23->1202"
638 + "default.handlebars->23->1204"
639 ]
640 },
641 {
@@ -826,7 +828,7 @@
828 "pt": "Autenticação de segundo fator ativada",
829 "ru": "двухфакторная аутентификация включена",
830 "xloc": [
829 - "default.handlebars->23->1336"
831 + "default.handlebars->23->1338"
832 ]
833 },
834 {
@@ -1066,7 +1068,7 @@
1068 "pt": "Estado de energia de 7 dias",
1069 "ru": "7-дневная статистика работы",
1070 "xloc": [
1069 - "default.handlebars->23->535"
1071 + "default.handlebars->23->537"
1072 ]
1073 },
1074 {
@@ -1293,7 +1295,7 @@
1295 "pt": "Acesso Negado",
1296 "ru": "Отказано в доступе",
1297 "xloc": [
1296 - "default.handlebars->23->684"
1298 + "default.handlebars->23->686"
1299 ]
1300 },
1301 {
@@ -1317,7 +1319,7 @@
1319 "pt": "Acesso aos arquivos do servidor",
1320 "ru": "Доступ в файлам сервера",
1321 "xloc": [
1320 - "default.handlebars->23->1308"
1322 + "default.handlebars->23->1310"
1323 ]
1324 },
1325 {
@@ -1374,8 +1376,8 @@
1376 "default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->p3AccountActions->1->0",
1377 "default.handlebars->23->425",
1378 "default.handlebars->23->427",
1377 - "default.handlebars->23->939",
1378 - "default.handlebars->23->941"
1379 + "default.handlebars->23->941",
1380 + "default.handlebars->23->943"
1381 ]
1382 },
1383 {
@@ -1447,15 +1449,15 @@
1449 "pt": "Ação",
1450 "ru": "Действиe",
1451 "xloc": [
1450 - "default.handlebars->23->689",
1452 + "default.handlebars->23->691",
1453 "default.handlebars->container->column_l->p42->p42tbl->1->0->8"
1454 ]
1455 },
1456 {
1457 "en": "Action File",
1458 "xloc": [
1457 - "default.handlebars->23->575",
1458 - "default.handlebars->23->577"
1459 + "default.handlebars->23->577",
1460 + "default.handlebars->23->579"
1461 ]
1462 },
1463 {
@@ -1526,8 +1528,8 @@
1528 "pt": "Ativação",
1529 "ru": "Активация",
1530 "xloc": [
1529 - "default.handlebars->23->1011",
1531 "default.handlebars->23->1013",
1532 + "default.handlebars->23->1015",
1533 "default.handlebars->23->230",
1534 "default.handlebars->23->232"
1535 ]
@@ -1580,7 +1582,7 @@
1582 "pt": "Adicionar evento do dispositivo",
1583 "ru": "Добавить событие к устройству",
1584 "xloc": [
1583 - "default.handlebars->23->518"
1585 + "default.handlebars->23->520"
1586 ]
1587 },
1588 {
@@ -1593,10 +1595,10 @@
1595 "pt": "Adicionar grupo de dispositivos",
1596 "ru": "Добавить группу устройств",
1597 "xloc": [
1596 - "default.handlebars->23->1098",
1598 "default.handlebars->23->1100",
1598 - "default.handlebars->23->1282",
1599 - "default.handlebars->23->1356",
1599 + "default.handlebars->23->1102",
1600 + "default.handlebars->23->1284",
1601 + "default.handlebars->23->1358",
1602 "default.handlebars->23->205"
1603 ]
1604 },
@@ -1653,7 +1655,7 @@
1655 "en": "Add Membership",
1656 "nl": "Lidmaatschap toevoegen",
1657 "xloc": [
1656 - "default.handlebars->23->1375"
1658 + "default.handlebars->23->1377"
1659 ]
1660 },
1661 {
@@ -1682,8 +1684,8 @@
1684 "default.handlebars->23->148",
1685 "default.handlebars->23->151",
1686 "default.handlebars->23->152",
1685 - "default.handlebars->23->708",
1686 - "default.handlebars->23->709"
1687 + "default.handlebars->23->710",
1688 + "default.handlebars->23->711"
1689 ]
1690 },
1691 {
@@ -1691,9 +1693,9 @@
1693 "en": "Add User Group",
1694 "nl": "Gebruikersgroep toevoegen",
1695 "xloc": [
1694 - "default.handlebars->23->1005",
1695 - "default.handlebars->23->1099",
1696 - "default.handlebars->23->1365"
1696 + "default.handlebars->23->1007",
1697 + "default.handlebars->23->1101",
1698 + "default.handlebars->23->1367"
1699 ]
1700 },
1701 {
@@ -1719,8 +1721,8 @@
1721 "pt": "Adicionar usuários",
1722 "ru": "Добавить пользователей",
1723 "xloc": [
1722 - "default.handlebars->23->1004",
1723 - "default.handlebars->23->1277"
1724 + "default.handlebars->23->1006",
1725 + "default.handlebars->23->1279"
1726 ]
1727 },
1728 {
@@ -1732,7 +1734,7 @@
1734 "pt": "Adicionar usuários ao grupo de dispositivos",
1735 "ru": "Добавить пользователей к Группам устройств",
1736 "xloc": [
1735 - "default.handlebars->23->1097"
1737 + "default.handlebars->23->1099"
1738 ]
1739 },
1740 {
@@ -1740,7 +1742,7 @@
1742 "en": "Add Users to User Group",
1743 "nl": "Voeg gebruikers toe aan de gebruikersgroep",
1744 "xloc": [
1743 - "default.handlebars->23->1305"
1745 + "default.handlebars->23->1307"
1746 ]
1747 },
1748 {
@@ -1776,7 +1778,7 @@
1778 "pt": "Adicione um novo Intel&reg; Computador AMT localizado na Internet.",
1779 "ru": "Добавить новый Intel&reg; AMT компьютер, находящийся в интернете.",
1780 "xloc": [
1779 - "default.handlebars->23->1006",
1781 + "default.handlebars->23->1008",
1782 "default.handlebars->23->223"
1783 ]
1784 },
@@ -1789,7 +1791,7 @@
1791 "pt": "Adicione um novo Intel&reg; AMT computer that is located on the local network.",
1792 "ru": "Добавить новый Intel&reg; AMT компьютер, находящийся в локальной сети.",
1793 "xloc": [
1792 - "default.handlebars->23->1008",
1794 + "default.handlebars->23->1010",
1795 "default.handlebars->23->225"
1796 ]
1797 },
@@ -1814,7 +1816,7 @@
1816 "pt": "Adicione um novo computador a essa malha instalando o agente de malha.",
1817 "ru": "Добавить новый компьютер к этой сети инсталированием меш агента.",
1818 "xloc": [
1817 - "default.handlebars->23->1014",
1819 + "default.handlebars->23->1016",
1820 "default.handlebars->23->233"
1821 ]
1822 },
@@ -1862,7 +1864,7 @@
1864 "pt": "Admin Realms",
1865 "ru": "Oбласти Aдминистратора",
1866 "xloc": [
1865 - "default.handlebars->23->1331"
1867 + "default.handlebars->23->1333"
1868 ]
1869 },
1870 {
@@ -1885,7 +1887,7 @@
1887 "pt": "Domínios Administrativos",
1888 "ru": "Административные Области",
1889 "xloc": [
1888 - "default.handlebars->23->1247"
1890 + "default.handlebars->23->1249"
1891 ]
1892 },
1893 {
@@ -1897,7 +1899,7 @@
1899 "pt": "Administrador",
1900 "ru": "Администратор",
1901 "xloc": [
1900 - "default.handlebars->23->1209"
1902 + "default.handlebars->23->1211"
1903 ]
1904 },
1905 {
@@ -1909,7 +1911,7 @@
1911 "pt": "afrikaans",
1912 "ru": "Африканский",
1913 "xloc": [
1912 - "default.handlebars->23->711"
1914 + "default.handlebars->23->713"
1915 ]
1916 },
1917 {
@@ -1925,8 +1927,8 @@
1927 "default-mobile.handlebars->9->121",
1928 "default-mobile.handlebars->9->174",
1929 "default-mobile.handlebars->9->190",
1928 - "default.handlebars->23->1134",
1929 - "default.handlebars->23->1140",
1930 + "default.handlebars->23->1136",
1931 + "default.handlebars->23->1142",
1932 "default.handlebars->23->184",
1933 "default.handlebars->23->371",
1934 "default.handlebars->container->column_l->p15->consoleTable->1->6->1->1->1->0->p15outputselecttd->p15outputselect->1"
@@ -1937,8 +1939,8 @@
1939 "en": "Agent + Intel AMT",
1940 "nl": "Agent + Intel AMT",
1941 "xloc": [
1940 - "default.handlebars->23->1136",
1941 - "default.handlebars->23->1142"
1942 + "default.handlebars->23->1138",
1943 + "default.handlebars->23->1144"
1944 ]
1945 },
1946 {
@@ -1963,7 +1965,7 @@
1965 "ru": "Консоль агента",
1966 "xloc": [
1967 "default-mobile.handlebars->9->315",
1966 - "default.handlebars->23->1108"
1968 + "default.handlebars->23->1110"
1969 ]
1970 },
1971 {
@@ -1972,7 +1974,7 @@
1974 "en": "Agent Error Counters",
1975 "nl": "Agent fout tellers",
1976 "xloc": [
1975 - "default.handlebars->23->1387"
1977 + "default.handlebars->23->1389"
1978 ]
1979 },
1980 {
@@ -2006,7 +2008,7 @@
2008 "en": "Agent Sessions",
2009 "nl": "Agent Sessies",
2010 "xloc": [
2009 - "default.handlebars->23->1403"
2011 + "default.handlebars->23->1405"
2012 ]
2013 },
2014 {
@@ -2028,7 +2030,7 @@
2030 "en": "Agent Types",
2031 "nl": "Agent Type",
2032 "xloc": [
2031 - "default.handlebars->23->1138",
2033 + "default.handlebars->23->1140",
2034 "default.handlebars->container->column_l->p21->3->1->meshOsChartDiv->1"
2035 ]
2036 },
@@ -2042,8 +2044,8 @@
2044 "ru": "Агент подключен",
2045 "xloc": [
2046 "default.handlebars->23->154",
2045 - "default.handlebars->23->509",
2046 - "default.handlebars->23->510"
2047 + "default.handlebars->23->511",
2048 + "default.handlebars->23->512"
2049 ]
2050 },
2051 {
@@ -2067,7 +2069,7 @@
2069 "pt": "O agente está offline",
2070 "ru": "Агент оффлайн",
2071 "xloc": [
2070 - "default.handlebars->23->682"
2072 + "default.handlebars->23->684"
2073 ]
2074 },
2075 {
@@ -2079,7 +2081,7 @@
2081 "pt": "Agente está online",
2082 "ru": "Агент онлайн",
2083 "xloc": [
2082 - "default.handlebars->23->681"
2084 + "default.handlebars->23->683"
2085 ]
2086 },
2087 {
@@ -2091,7 +2093,7 @@
2093 "pt": "Agentes",
2094 "ru": "Агенты",
2095 "xloc": [
2094 - "default.handlebars->23->1416"
2096 + "default.handlebars->23->1418"
2097 ]
2098 },
2099 {
@@ -2103,7 +2105,7 @@
2105 "pt": "albanês",
2106 "ru": "Албанский",
2107 "xloc": [
2106 - "default.handlebars->23->712"
2108 + "default.handlebars->23->714"
2109 ]
2110 },
2111 {
@@ -2142,9 +2144,9 @@
2144 "pt": "All Focus",
2145 "ru": "Фокусирование всех",
2146 "xloc": [
2145 - "default.handlebars->23->597",
2147 "default.handlebars->23->599",
2147 - "default.handlebars->23->600"
2148 + "default.handlebars->23->601",
2149 + "default.handlebars->23->602"
2150 ]
2151 },
2152 {
@@ -2157,8 +2159,8 @@
2159 "pt": "Permitir que os usuários gerenciem esse grupo de dispositivos e dispositivos neste grupo.",
2160 "ru": "Разрешить пользователям управлять этой группой и устройствами этой группы.",
2161 "xloc": [
2160 - "default.handlebars->23->1072",
2161 - "default.handlebars->23->1302"
2162 + "default.handlebars->23->1074",
2163 + "default.handlebars->23->1304"
2164 ]
2165 },
2166 {
@@ -2196,7 +2198,7 @@
2198 "pt": "Alternativo (F10 = ESC + 0)",
2199 "ru": "Поменять (F10 = ESC+0)",
2200 "xloc": [
2199 - "default.handlebars->23->631"
2201 + "default.handlebars->23->633"
2202 ]
2203 },
2204 {
@@ -2209,7 +2211,7 @@
2211 "pt": "Notificar sempre",
2212 "ru": "Всегда уведомлять",
2213 "xloc": [
2212 - "default.handlebars->23->987"
2214 + "default.handlebars->23->989"
2215 ]
2216 },
2217 {
@@ -2221,7 +2223,7 @@
2223 "pt": "Sempre alerta",
2224 "ru": "Всегда напоминать",
2225 "xloc": [
2224 - "default.handlebars->23->988"
2226 + "default.handlebars->23->990"
2227 ]
2228 },
2229 {
@@ -2333,7 +2335,7 @@
2335 "pt": "Árabe (Argélia)",
2336 "ru": "Арабский (Алжир)",
2337 "xloc": [
2336 - "default.handlebars->23->714"
2338 + "default.handlebars->23->716"
2339 ]
2340 },
2341 {
@@ -2345,7 +2347,7 @@
2347 "pt": "Árabe (Bahrain)",
2348 "ru": "Арабский (Бахрейн)",
2349 "xloc": [
2348 - "default.handlebars->23->715"
2350 + "default.handlebars->23->717"
2351 ]
2352 },
2353 {
@@ -2357,7 +2359,7 @@
2359 "pt": "Árabe (Egito)",
2360 "ru": "Арабский (Египет)",
2361 "xloc": [
2360 - "default.handlebars->23->716"
2362 + "default.handlebars->23->718"
2363 ]
2364 },
2365 {
@@ -2369,7 +2371,7 @@
2371 "pt": "Árabe (Iraque)",
2372 "ru": "Арабский (Ирак)",
2373 "xloc": [
2372 - "default.handlebars->23->717"
2374 + "default.handlebars->23->719"
2375 ]
2376 },
2377 {
@@ -2381,7 +2383,7 @@
2383 "pt": "Árabe (Jordânia)",
2384 "ru": "Арабский (Иордания)",
2385 "xloc": [
2384 - "default.handlebars->23->718"
2386 + "default.handlebars->23->720"
2387 ]
2388 },
2389 {
@@ -2393,7 +2395,7 @@
2395 "pt": "Árabe (Kuwait)",
2396 "ru": "Арабский (Кувейт)",
2397 "xloc": [
2396 - "default.handlebars->23->719"
2398 + "default.handlebars->23->721"
2399 ]
2400 },
2401 {
@@ -2405,7 +2407,7 @@
2407 "pt": "Árabe (Líbano)",
2408 "ru": "Арабский (Ливан)",
2409 "xloc": [
2408 - "default.handlebars->23->720"
2410 + "default.handlebars->23->722"
2411 ]
2412 },
2413 {
@@ -2417,7 +2419,7 @@
2419 "pt": "Árabe (Líbia)",
2420 "ru": "Арабский (Ливия)",
2421 "xloc": [
2420 - "default.handlebars->23->721"
2422 + "default.handlebars->23->723"
2423 ]
2424 },
2425 {
@@ -2429,7 +2431,7 @@
2431 "pt": "Árabe (Marrocos)",
2432 "ru": "Арабский (Марокко)",
2433 "xloc": [
2432 - "default.handlebars->23->722"
2434 + "default.handlebars->23->724"
2435 ]
2436 },
2437 {
@@ -2441,7 +2443,7 @@
2443 "pt": "Árabe (Omã)",
2444 "ru": "Арабский (Оман)",
2445 "xloc": [
2444 - "default.handlebars->23->723"
2446 + "default.handlebars->23->725"
2447 ]
2448 },
2449 {
@@ -2453,7 +2455,7 @@
2455 "pt": "Árabe (Catar)",
2456 "ru": "Арабский (Катар)",
2457 "xloc": [
2456 - "default.handlebars->23->724"
2458 + "default.handlebars->23->726"
2459 ]
2460 },
2461 {
@@ -2465,7 +2467,7 @@
2467 "pt": "Árabe (Arábia Saudita)",
2468 "ru": "Арабский (Саудовская Аравия)",
2469 "xloc": [
2468 - "default.handlebars->23->725"
2470 + "default.handlebars->23->727"
2471 ]
2472 },
2473 {
@@ -2477,7 +2479,7 @@
2479 "pt": "Árabe (padrão)",
2480 "ru": "Арабский (стандартный)",
2481 "xloc": [
2480 - "default.handlebars->23->713"
2482 + "default.handlebars->23->715"
2483 ]
2484 },
2485 {
@@ -2489,7 +2491,7 @@
2491 "pt": "Árabe (Síria)",
2492 "ru": "Арабский (Сирия)",
2493 "xloc": [
2492 - "default.handlebars->23->726"
2494 + "default.handlebars->23->728"
2495 ]
2496 },
2497 {
@@ -2501,7 +2503,7 @@
2503 "pt": "Árabe (Tunísia)",
2504 "ru": "Арабский (Тунис)",
2505 "xloc": [
2504 - "default.handlebars->23->727"
2506 + "default.handlebars->23->729"
2507 ]
2508 },
2509 {
@@ -2513,7 +2515,7 @@
2515 "pt": "Árabe (U.A.E)",
2516 "ru": "Арабский (О.А.Э.)",
2517 "xloc": [
2516 - "default.handlebars->23->728"
2518 + "default.handlebars->23->730"
2519 ]
2520 },
2521 {
@@ -2525,7 +2527,7 @@
2527 "pt": "Árabe (Iêmen)",
2528 "ru": "Арабский (Йемен)",
2529 "xloc": [
2528 - "default.handlebars->23->729"
2530 + "default.handlebars->23->731"
2531 ]
2532 },
2533 {
@@ -2537,7 +2539,7 @@
2539 "pt": "Aragonês",
2540 "ru": "Арагонский",
2541 "xloc": [
2540 - "default.handlebars->23->730"
2542 + "default.handlebars->23->732"
2543 ]
2544 },
2545 {
@@ -2575,7 +2577,7 @@
2577 "ru": "Вы уверенны, что хотите удалить группу {0}? Удаление группы приведет к удалению всей информации связанной с устройствами в этой группе.",
2578 "xloc": [
2579 "default-mobile.handlebars->9->286",
2578 - "default.handlebars->23->1052"
2580 + "default.handlebars->23->1054"
2581 ]
2582 },
2583 {
@@ -2588,7 +2590,7 @@
2590 "pt": "Tem certeza de que deseja excluir o nó {0}?",
2591 "ru": "Вы уверенны, что хотите удалить узел {0}?",
2592 "xloc": [
2591 - "default.handlebars->23->557"
2593 + "default.handlebars->23->559"
2594 ]
2595 },
2596 {
@@ -2599,7 +2601,7 @@
2601 "nl": "Weet u zeker dat u de geselecteerde agent wilt verwijderen?",
2602 "ru": "Вы уверенны, что хотите деинсталировать избранного агента?",
2603 "xloc": [
2602 - "default.handlebars->23->546"
2604 + "default.handlebars->23->548"
2605 ]
2606 },
2607 {
@@ -2610,7 +2612,7 @@
2612 "nl": "Weet u zeker dat u de geselecteerde {0} agenten wilt verwijderen?",
2613 "ru": "Вы уверенны, что хотите деинсталировать избранных {0} агентов?",
2614 "xloc": [
2613 - "default.handlebars->23->545"
2615 + "default.handlebars->23->547"
2616 ]
2617 },
2618 {
@@ -2621,7 +2623,7 @@
2623 "nl": "Weet u zeker dat u de plug-in {0} wilt gebruiken: {1}",
2624 "ru": "Вы уверенны, что {0} плагин: {1}",
2625 "xloc": [
2624 - "default.handlebars->23->1451"
2626 + "default.handlebars->23->1453"
2627 ]
2628 },
2629 {
@@ -2633,7 +2635,7 @@
2635 "pt": "Armênio",
2636 "ru": "Арменский",
2637 "xloc": [
2636 - "default.handlebars->23->731"
2638 + "default.handlebars->23->733"
2639 ]
2640 },
2641 {
@@ -2645,7 +2647,7 @@
2647 "pt": "Assamese",
2648 "ru": "Ассамский",
2649 "xloc": [
2648 - "default.handlebars->23->732"
2650 + "default.handlebars->23->734"
2651 ]
2652 },
2653 {
@@ -2657,7 +2659,7 @@
2659 "pt": "Asturiano",
2660 "ru": "Астурии",
2661 "xloc": [
2660 - "default.handlebars->23->733"
2662 + "default.handlebars->23->735"
2663 ]
2664 },
2665 {
@@ -2669,7 +2671,7 @@
2671 "pt": "Aplicativo de autenticação",
2672 "ru": "Приложение аутентификации",
2673 "xloc": [
2672 - "default.handlebars->23->1332"
2674 + "default.handlebars->23->1334"
2675 ]
2676 },
2677 {
@@ -2687,8 +2689,8 @@
2689 "default-mobile.handlebars->9->32",
2690 "default.handlebars->23->122",
2691 "default.handlebars->23->127",
2690 - "default.handlebars->23->697",
2691 - "default.handlebars->23->699"
2692 + "default.handlebars->23->699",
2693 + "default.handlebars->23->701"
2694 ]
2695 },
2696 {
@@ -2738,7 +2740,7 @@
2740 "pt": "Remover automaticamente",
2741 "ru": "Авто-Удаление",
2742 "xloc": [
2741 - "default.handlebars->23->975"
2743 + "default.handlebars->23->977"
2744 ]
2745 },
2746 {
@@ -2778,7 +2780,7 @@
2780 "pt": "Azerbaijão",
2781 "ru": "Азербайджанский",
2782 "xloc": [
2781 - "default.handlebars->23->734"
2783 + "default.handlebars->23->736"
2784 ]
2785 },
2786 {
@@ -2904,7 +2906,7 @@
2906 "pt": "Códigos de backup",
2907 "ru": "Коды бэкапа",
2908 "xloc": [
2907 - "default.handlebars->23->1334"
2909 + "default.handlebars->23->1336"
2910 ]
2911 },
2912 {
@@ -2913,7 +2915,7 @@
2915 "en": "Bad Signature",
2916 "nl": "Ongeldige handtening",
2917 "xloc": [
2916 - "default.handlebars->23->1394"
2918 + "default.handlebars->23->1396"
2919 ]
2920 },
2921 {
@@ -2922,7 +2924,7 @@
2924 "en": "Bad Web Certificate",
2925 "nl": "Onjuist webcertificaat",
2926 "xloc": [
2925 - "default.handlebars->23->1393"
2927 + "default.handlebars->23->1395"
2928 ]
2929 },
2930 {
@@ -2934,7 +2936,7 @@
2936 "pt": "Basco",
2937 "ru": "Баскский",
2938 "xloc": [
2937 - "default.handlebars->23->735"
2939 + "default.handlebars->23->737"
2940 ]
2941 },
2942 {
@@ -2958,7 +2960,7 @@
2960 "pt": "Bielorrusso",
2961 "ru": "Белорусский",
2962 "xloc": [
2961 - "default.handlebars->23->737"
2963 + "default.handlebars->23->739"
2964 ]
2965 },
2966 {
@@ -2970,7 +2972,7 @@
2972 "pt": "Bengali",
2973 "ru": "Бенгальский",
2974 "xloc": [
2973 - "default.handlebars->23->738"
2975 + "default.handlebars->23->740"
2976 ]
2977 },
2978 {
@@ -2982,7 +2984,7 @@
2984 "pt": "Bósnia",
2985 "ru": "Боснийский",
2986 "xloc": [
2985 - "default.handlebars->23->739"
2987 + "default.handlebars->23->741"
2988 ]
2989 },
2990 {
@@ -2994,7 +2996,7 @@
2996 "pt": "Breton",
2997 "ru": "Бретонский",
2998 "xloc": [
2997 - "default.handlebars->23->740"
2999 + "default.handlebars->23->742"
3000 ]
3001 },
3002 {
@@ -3007,7 +3009,7 @@
3009 "pt": "Broadcast",
3010 "ru": "Отправить сообщение...",
3011 "xloc": [
3010 - "default.handlebars->23->1275",
3012 + "default.handlebars->23->1277",
3013 "default.handlebars->container->column_l->p4->3->1->0->3->1"
3014 ]
3015 },
@@ -3021,7 +3023,7 @@
3023 "pt": "Mensagem de transmissão",
3024 "ru": "Отправить сообщение",
3025 "xloc": [
3024 - "default.handlebars->23->1232"
3026 + "default.handlebars->23->1234"
3027 ]
3028 },
3029 {
@@ -3033,7 +3035,7 @@
3035 "pt": "Transmita uma mensagem para todos os usuários conectados.",
3036 "ru": "Отправить сообщение всем подключенным пользователям.",
3037 "xloc": [
3036 - "default.handlebars->23->1231"
3038 + "default.handlebars->23->1233"
3039 ]
3040 },
3041 {
@@ -3045,7 +3047,7 @@
3047 "pt": "Búlgaria",
3048 "ru": "Болгарский",
3049 "xloc": [
3048 - "default.handlebars->23->736"
3050 + "default.handlebars->23->738"
3051 ]
3052 },
3053 {
@@ -3057,7 +3059,7 @@
3059 "pt": "Birmanês",
3060 "ru": "Бирманский",
3061 "xloc": [
3060 - "default.handlebars->23->741"
3062 + "default.handlebars->23->743"
3063 ]
3064 },
3065 {
@@ -3083,8 +3085,8 @@
3085 "ru": "CIRA",
3086 "xloc": [
3087 "default-mobile.handlebars->9->122",
3086 - "default.handlebars->23->1040",
3087 - "default.handlebars->23->1045",
3088 + "default.handlebars->23->1042",
3089 + "default.handlebars->23->1047",
3090 "default.handlebars->23->186",
3091 "default.handlebars->23->373"
3092 ]
@@ -3098,7 +3100,7 @@
3100 "pt": "Servidor CIRA",
3101 "ru": "CIRA Сервер",
3102 "xloc": [
3101 - "default.handlebars->23->1442"
3103 + "default.handlebars->23->1444"
3104 ]
3105 },
3106 {
@@ -3110,7 +3112,7 @@
3112 "pt": "Comandos do servidor CIRA",
3113 "ru": "CIRA Сервер комманды",
3114 "xloc": [
3113 - "default.handlebars->23->1443"
3115 + "default.handlebars->23->1445"
3116 ]
3117 },
3118 {
@@ -3119,7 +3121,7 @@
3121 "en": "CPU Load",
3122 "nl": "CPU gebruik",
3123 "xloc": [
3122 - "default.handlebars->23->1408"
3124 + "default.handlebars->23->1410"
3125 ]
3126 },
3127 {
@@ -3131,7 +3133,7 @@
3133 "pt": "Carga da CPU nos últimos 15 minutos",
3134 "ru": "Загрузка ЦПУ за последние 15 минут",
3135 "xloc": [
3134 - "default.handlebars->23->1411"
3136 + "default.handlebars->23->1413"
3137 ]
3138 },
3139 {
@@ -3143,7 +3145,7 @@
3145 "pt": "Carga da CPU nos últimos 5 minutos",
3146 "ru": "Загрузка ЦПУ за последние 5 минут",
3147 "xloc": [
3146 - "default.handlebars->23->1410"
3148 + "default.handlebars->23->1412"
3149 ]
3150 },
3151 {
@@ -3155,7 +3157,7 @@
3157 "pt": "Carga da CPU no último minuto",
3158 "ru": "Загрузка ЦПУ за последнюю минуту",
3159 "xloc": [
3158 - "default.handlebars->23->1409"
3160 + "default.handlebars->23->1411"
3161 ]
3162 },
3163 {
@@ -3167,8 +3169,8 @@
3169 "pt": "CR + LF",
3170 "ru": "CR+LF",
3171 "xloc": [
3170 - "default.handlebars->23->624",
3171 - "default.handlebars->23->633",
3172 + "default.handlebars->23->626",
3173 + "default.handlebars->23->635",
3174 "default.handlebars->container->column_l->p12->termTable->1->1->6->1->1->terminalSettingsButtons"
3175 ]
3176 },
@@ -3181,8 +3183,8 @@
3183 "pt": "Formato CSV",
3184 "ru": "Формат CSV",
3185 "xloc": [
3184 - "default.handlebars->23->1184",
3185 - "default.handlebars->23->1223"
3186 + "default.handlebars->23->1186",
3187 + "default.handlebars->23->1225"
3188 ]
3189 },
3190 {
@@ -3195,7 +3197,7 @@
3197 "pt": "Erro de chamada",
3198 "ru": "Ошибка вызова",
3199 "xloc": [
3198 - "default.handlebars->23->1452"
3200 + "default.handlebars->23->1454"
3201 ]
3202 },
3203 {
@@ -3210,11 +3212,12 @@
3212 "xloc": [
3213 "default-mobile.handlebars->9->41",
3214 "default-mobile.handlebars->dialog->idx_dlgButtonBar",
3213 - "default.handlebars->23->960",
3215 + "default.handlebars->23->962",
3216 "default.handlebars->container->dialog->idx_dlgButtonBar",
3217 "login-mobile.handlebars->dialog->idx_dlgButtonBar",
3218 "login.handlebars->dialog->idx_dlgButtonBar",
3217 - "player.htm->p11->dialog->idx_dlgButtonBar"
3219 + "player.htm->p11->dialog->idx_dlgButtonBar",
3220 + "xterm.handlebars->p11->dialog->idx_dlgButtonBar"
3221 ]
3222 },
3223 {
@@ -3238,7 +3241,7 @@
3241 "pt": "Catalão",
3242 "ru": "Каталонский",
3243 "xloc": [
3241 - "default.handlebars->23->742"
3244 + "default.handlebars->23->744"
3245 ]
3246 },
3247 {
@@ -3263,7 +3266,7 @@
3266 "pt": "Chamorro",
3267 "ru": "Чаморро",
3268 "xloc": [
3266 - "default.handlebars->23->743"
3269 + "default.handlebars->23->745"
3270 ]
3271 },
3272 {
@@ -3275,7 +3278,7 @@
3278 "pt": "Alterar email para {0}",
3279 "ru": "Смена е-мейла для {0}",
3280 "xloc": [
3278 - "default.handlebars->23->1347"
3281 + "default.handlebars->23->1349"
3282 ]
3283 },
3284 {
@@ -3288,8 +3291,8 @@
3291 "ru": "Смена группы",
3292 "xloc": [
3293 "default.handlebars->23->491",
3291 - "default.handlebars->23->554",
3292 - "default.handlebars->23->555"
3294 + "default.handlebars->23->556",
3295 + "default.handlebars->23->557"
3296 ]
3297 },
3298 {
@@ -3302,8 +3305,8 @@
3305 "ru": "Смена Пароля",
3306 "xloc": [
3307 "default-mobile.handlebars->9->49",
3305 - "default.handlebars->23->1342",
3306 - "default.handlebars->23->936"
3308 + "default.handlebars->23->1344",
3309 + "default.handlebars->23->938"
3310 ]
3311 },
3312 {
@@ -3315,7 +3318,7 @@
3318 "pt": "Alterar senha para {0}",
3319 "ru": "Смена пароля для {0}",
3320 "xloc": [
3318 - "default.handlebars->23->1354"
3321 + "default.handlebars->23->1356"
3322 ]
3323 },
3324 {
@@ -3377,7 +3380,7 @@
3380 "pt": "Mude o endereço de e-mail da sua conta aqui.",
3381 "ru": "Измените адрес электронной почты вашей учетной записи здесь.",
3382 "xloc": [
3380 - "default.handlebars->23->923"
3383 + "default.handlebars->23->925"
3384 ]
3385 },
3386 {
@@ -3389,7 +3392,7 @@
3392 "pt": "Altere a senha da sua conta digitando a senha antiga e a nova senha duas vezes nas caixas abaixo.",
3393 "ru": "Измените пароль своей учетной записи, введя старый пароль и дважды новый пароль в поля ниже.",
3394 "xloc": [
3392 - "default.handlebars->23->929"
3395 + "default.handlebars->23->931"
3396 ]
3397 },
3398 {
@@ -3401,7 +3404,7 @@
3404 "pt": "Alterar o idioma exigirá uma atualização da página.",
3405 "ru": "Изменение языка потребует обновления страницы.",
3406 "xloc": [
3404 - "default.handlebars->23->908"
3407 + "default.handlebars->23->910"
3408 ]
3409 },
3410 {
@@ -3413,7 +3416,7 @@
3416 "pt": "Chat",
3417 "ru": "Чат",
3418 "xloc": [
3416 - "default.handlebars->23->1201"
3419 + "default.handlebars->23->1203"
3420 ]
3421 },
3422 {
@@ -3427,8 +3430,8 @@
3430 "xloc": [
3431 "default-mobile.handlebars->9->307",
3432 "default-mobile.handlebars->9->325",
3430 - "default.handlebars->23->1095",
3431 - "default.handlebars->23->1118"
3433 + "default.handlebars->23->1097",
3434 + "default.handlebars->23->1120"
3435 ]
3436 },
3437 {
@@ -3440,7 +3443,7 @@
3443 "pt": "Checheno",
3444 "ru": "Чеченский",
3445 "xloc": [
3443 - "default.handlebars->23->744"
3446 + "default.handlebars->23->746"
3447 ]
3448 },
3449 {
@@ -3488,8 +3491,8 @@
3491 "pt": "Verificando ...",
3492 "ru": "Проверка...",
3493 "xloc": [
3491 - "default.handlebars->23->1448",
3492 - "default.handlebars->23->710"
3494 + "default.handlebars->23->1450",
3495 + "default.handlebars->23->712"
3496 ]
3497 },
3498 {
@@ -3501,7 +3504,7 @@
3504 "pt": "Chinês",
3505 "ru": "Китайский",
3506 "xloc": [
3504 - "default.handlebars->23->745"
3507 + "default.handlebars->23->747"
3508 ]
3509 },
3510 {
@@ -3513,7 +3516,7 @@
3516 "pt": "Chinês (Hong Kong)",
3517 "ru": "Китайский (Гонконг)",
3518 "xloc": [
3516 - "default.handlebars->23->746"
3519 + "default.handlebars->23->748"
3520 ]
3521 },
3522 {
@@ -3525,7 +3528,7 @@
3528 "pt": "Chinês (PRC)",
3529 "ru": "Китайский (КНР)",
3530 "xloc": [
3528 - "default.handlebars->23->747"
3531 + "default.handlebars->23->749"
3532 ]
3533 },
3534 {
@@ -3537,7 +3540,7 @@
3540 "pt": "Chinês (Singapura)",
3541 "ru": "Китайский (Сингапур)",
3542 "xloc": [
3540 - "default.handlebars->23->748"
3543 + "default.handlebars->23->750"
3544 ]
3545 },
3546 {
@@ -3549,7 +3552,7 @@
3552 "pt": "Chinês (Taiwan)",
3553 "ru": "Китайский (Тайвань)",
3554 "xloc": [
3552 - "default.handlebars->23->749"
3555 + "default.handlebars->23->751"
3556 ]
3557 },
3558 {
@@ -3574,7 +3577,7 @@
3577 "pt": "Chuvash",
3578 "ru": "Чувашский",
3579 "xloc": [
3577 - "default.handlebars->23->750"
3580 + "default.handlebars->23->752"
3581 ]
3582 },
3583 {
@@ -3604,11 +3607,11 @@
3607 "default-mobile.handlebars->9->268",
3608 "default-mobile.handlebars->9->28",
3609 "default-mobile.handlebars->9->91",
3607 - "default.handlebars->23->1178",
3608 - "default.handlebars->23->659",
3610 + "default.handlebars->23->1180",
3611 "default.handlebars->23->661",
3612 "default.handlebars->23->663",
3613 "default.handlebars->23->665",
3614 + "default.handlebars->23->667",
3615 "default.handlebars->container->column_l->p15->consoleTable->1->6->1->1->1->0->7",
3616 "default.handlebars->container->column_l->p41->3->1",
3617 "messenger.handlebars->xbottom"
@@ -3635,7 +3638,7 @@
3638 "pt": "Limpe o núcleo",
3639 "ru": "Очистить ядро",
3640 "xloc": [
3638 - "default.handlebars->23->691"
3641 + "default.handlebars->23->693"
3642 ]
3643 },
3644 {
@@ -3672,7 +3675,7 @@
3675 "ru": "Нажмите ок для отправки подтверждения по електронной почте:",
3676 "xloc": [
3677 "default-mobile.handlebars->9->34",
3675 - "default.handlebars->23->920"
3678 + "default.handlebars->23->922"
3679 ]
3680 },
3681 {
@@ -3696,8 +3699,8 @@
3699 "pt": "Acesso remoto iniciado pelo cliente",
3700 "ru": "Удаленная Связь Установленая Клиентом",
3701 "xloc": [
3699 - "default.handlebars->23->1039",
3700 - "default.handlebars->23->1044"
3702 + "default.handlebars->23->1041",
3703 + "default.handlebars->23->1046"
3704 ]
3705 },
3706 {
@@ -3724,7 +3727,7 @@
3727 "default-mobile.handlebars->9->26",
3728 "default.handlebars->23->134",
3729 "default.handlebars->23->142",
3727 - "default.handlebars->23->617"
3730 + "default.handlebars->23->619"
3731 ]
3732 },
3733 {
@@ -3745,8 +3748,8 @@
3748 "en": "Common Device Groups",
3749 "nl": "Gemeenschappelijke apparaatgroepen",
3750 "xloc": [
3748 - "default.handlebars->23->1283",
3749 - "default.handlebars->23->1357"
3751 + "default.handlebars->23->1285",
3752 + "default.handlebars->23->1359"
3753 ]
3754 },
3755 {
@@ -3759,7 +3762,7 @@
3762 "ru": "Подтвердить {0} из {1} записи {2} в это местоположение?",
3763 "xloc": [
3764 "default-mobile.handlebars->9->86",
3762 - "default.handlebars->23->1173"
3765 + "default.handlebars->23->1175"
3766 ]
3767 },
3768 {
@@ -3773,11 +3776,11 @@
3776 "xloc": [
3777 "default-mobile.handlebars->9->220",
3778 "default-mobile.handlebars->9->287",
3776 - "default.handlebars->23->1053",
3777 - "default.handlebars->23->1298",
3779 + "default.handlebars->23->1055",
3780 + "default.handlebars->23->1300",
3781 "default.handlebars->23->396",
3779 - "default.handlebars->23->549",
3780 - "default.handlebars->23->558"
3782 + "default.handlebars->23->551",
3783 + "default.handlebars->23->560"
3784 ]
3785 },
3786 {
@@ -3790,7 +3793,7 @@
3793 "ru": "Подтвердить копию 1 записи в это место?",
3794 "xloc": [
3795 "default-mobile.handlebars->9->257",
3793 - "default.handlebars->23->654"
3796 + "default.handlebars->23->656"
3797 ]
3798 },
3799 {
@@ -3803,7 +3806,7 @@
3806 "ru": "Подтвердить копию {0} записей в этом месте?",
3807 "xloc": [
3808 "default-mobile.handlebars->9->256",
3806 - "default.handlebars->23->653"
3809 + "default.handlebars->23->655"
3810 ]
3811 },
3812 {
@@ -3828,7 +3831,7 @@
3831 "ru": "Подтвердить перемещение 1 записи в это место?",
3832 "xloc": [
3833 "default-mobile.handlebars->9->259",
3831 - "default.handlebars->23->656"
3834 + "default.handlebars->23->658"
3835 ]
3836 },
3837 {
@@ -3841,7 +3844,7 @@
3844 "ru": "Подтвердить перемещение {0} записей в это место?",
3845 "xloc": [
3846 "default-mobile.handlebars->9->258",
3844 - "default.handlebars->23->655"
3847 + "default.handlebars->23->657"
3848 ]
3849 },
3850 {
@@ -3852,7 +3855,7 @@
3855 "nl": "Bevestig overschrijven?",
3856 "ru": "Подтвердить перезапись?",
3857 "xloc": [
3855 - "default.handlebars->23->1172"
3858 + "default.handlebars->23->1174"
3859 ]
3860 },
3861 {
@@ -3865,7 +3868,7 @@
3868 "ru": "Подтвердите удаление приложения аутентификации 2-хэтапного входа в систему.",
3869 "xloc": [
3870 "default-mobile.handlebars->9->33",
3868 - "default.handlebars->23->700"
3871 + "default.handlebars->23->702"
3872 ]
3873 },
3874 {
@@ -3873,8 +3876,8 @@
3876 "en": "Confirm removal of device group {0}?",
3877 "nl": "Bevestig het verwijderen van de apparaatgroep {0}?",
3878 "xloc": [
3876 - "default.handlebars->23->1293",
3877 - "default.handlebars->23->1377"
3879 + "default.handlebars->23->1295",
3880 + "default.handlebars->23->1379"
3881 ]
3882 },
3883 {
@@ -3882,7 +3885,7 @@
3885 "en": "Confirm removal of group {0}?",
3886 "nl": "Bevestig het verwijderen van de groep {0}?",
3887 "xloc": [
3885 - "default.handlebars->23->1373"
3888 + "default.handlebars->23->1375"
3889 ]
3890 },
3891 {
@@ -3895,8 +3898,8 @@
3898 "ru": "Подтвердить удаление пользователя {0}?",
3899 "xloc": [
3900 "default-mobile.handlebars->9->333",
3898 - "default.handlebars->23->1127",
3899 - "default.handlebars->23->1301"
3901 + "default.handlebars->23->1129",
3902 + "default.handlebars->23->1303"
3903 ]
3904 },
3905 {
@@ -3911,11 +3914,12 @@
3914 "default-mobile.handlebars->9->236",
3915 "default-mobile.handlebars->container->page_content->column_l->p10->p10desktop->deskarea1->1->3",
3916 "default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->0->1->3",
3914 - "default.handlebars->23->636",
3915 - "default.handlebars->23->991",
3917 + "default.handlebars->23->638",
3918 + "default.handlebars->23->993",
3919 "default.handlebars->container->column_l->p11->deskarea0->deskarea1->3->connectbutton1span",
3920 "default.handlebars->container->column_l->p12->termTable->1->1->0->1->3->connectbutton2span",
3918 - "default.handlebars->container->column_l->p13->p13toolbar->1->0->1->3"
3921 + "default.handlebars->container->column_l->p13->p13toolbar->1->0->1->3",
3922 + "xterm.handlebars->p11->deskarea0->deskarea1->3"
3923 ]
3924 },
3925 {
@@ -3940,8 +3944,8 @@
3944 "pt": "Conecte-se ao servidor",
3945 "ru": "Подключиться к серверу",
3946 "xloc": [
3943 - "default.handlebars->23->1043",
3944 - "default.handlebars->23->1047"
3947 + "default.handlebars->23->1045",
3948 + "default.handlebars->23->1049"
3949 ]
3950 },
3951 {
@@ -3978,7 +3982,8 @@
3982 "ru": "Подключено",
3983 "xloc": [
3984 "default-mobile.handlebars->9->4",
3981 - "default.handlebars->23->11"
3985 + "default.handlebars->23->11",
3986 + "xterm.handlebars->3->4"
3987 ]
3988 },
3989 {
@@ -3987,7 +3992,7 @@
3992 "en": "Connected Intel&reg; AMT",
3993 "nl": "Verbonden Intel&reg; AMT",
3994 "xloc": [
3990 - "default.handlebars->23->1399"
3995 + "default.handlebars->23->1401"
3996 ]
3997 },
3998 {
@@ -3996,7 +4001,7 @@
4001 "en": "Connected Users",
4002 "nl": "Verbonden gebruikers",
4003 "xloc": [
3999 - "default.handlebars->23->1404"
4004 + "default.handlebars->23->1406"
4005 ]
4006 },
4007 {
@@ -4026,8 +4031,9 @@
4031 "default.handlebars->23->211",
4032 "default.handlebars->23->214",
4033 "default.handlebars->23->220",
4029 - "default.handlebars->23->677",
4030 - "default.handlebars->23->9"
4034 + "default.handlebars->23->679",
4035 + "default.handlebars->23->9",
4036 + "xterm.handlebars->3->2"
4037 ]
4038 },
4039 {
@@ -4039,7 +4045,7 @@
4045 "pt": "Contagem de conexões",
4046 "ru": "Подключений ",
4047 "xloc": [
4042 - "default.handlebars->23->1415"
4048 + "default.handlebars->23->1417"
4049 ]
4050 },
4051 {
@@ -4051,7 +4057,7 @@
4057 "pt": "Encaminhador de conexão",
4058 "ru": "Реле подключения",
4059 "xloc": [
4054 - "default.handlebars->23->1441"
4060 + "default.handlebars->23->1443"
4061 ]
4062 },
4063 {
@@ -4088,7 +4094,7 @@
4094 "ru": "Связь",
4095 "xloc": [
4096 "default-mobile.handlebars->9->195",
4091 - "default.handlebars->23->1143",
4097 + "default.handlebars->23->1145",
4098 "default.handlebars->23->202",
4099 "default.handlebars->23->482",
4100 "default.handlebars->container->column_l->p21->3->1->meshConnChartDiv->1"
@@ -4129,7 +4135,7 @@
4135 "pt": "Codificador de cookies",
4136 "ru": "Cookie-кодировщик",
4137 "xloc": [
4132 - "default.handlebars->23->1429"
4138 + "default.handlebars->23->1431"
4139 ]
4140 },
4141 {
@@ -4318,7 +4324,7 @@
4324 "pt": "Servidor Core",
4325 "ru": "Основной сервер",
4326 "xloc": [
4321 - "default.handlebars->23->1428"
4327 + "default.handlebars->23->1430"
4328 ]
4329 },
4330 {
@@ -4330,7 +4336,7 @@
4336 "pt": "Corso",
4337 "ru": "Kорсиканский",
4338 "xloc": [
4333 - "default.handlebars->23->751"
4339 + "default.handlebars->23->753"
4340 ]
4341 },
4342 {
@@ -4342,7 +4348,7 @@
4348 "pt": "Criar conta",
4349 "ru": "Создать учетную запись",
4350 "xloc": [
4345 - "default.handlebars->23->1243",
4351 + "default.handlebars->23->1245",
4352 "login-mobile.handlebars->container->page_content->column_l->1->1->0->1->createpanel->1->1->9->1->12->1->1",
4353 "login.handlebars->container->column_l->centralTable->1->0->logincell->createpanel->1->9->1->12->1->1"
4354 ]
@@ -4364,7 +4370,7 @@
4370 "en": "Create User Group",
4371 "nl": "Maak een gebruikersgroep.",
4372 "xloc": [
4367 - "default.handlebars->23->1266"
4373 + "default.handlebars->23->1268"
4374 ]
4375 },
4376 {
@@ -4376,7 +4382,7 @@
4382 "pt": "Crie um novo grupo de dispositivos usando as opções abaixo.",
4383 "ru": "Создайте новую группу устройств, используя параметры ниже.",
4384 "xloc": [
4379 - "default.handlebars->23->943"
4385 + "default.handlebars->23->945"
4386 ]
4387 },
4388 {
@@ -4400,7 +4406,7 @@
4406 "pt": "Crie várias contas ao mesmo tempo importando um arquivo JSON com o seguinte formato:",
4407 "ru": "Создайте сразу несколько учетных записей, импортировав файл JSON в следующем формате:",
4408 "xloc": [
4403 - "default.handlebars->23->1214"
4409 + "default.handlebars->23->1216"
4410 ]
4411 },
4412 {
@@ -4425,7 +4431,7 @@
4431 "pt": "Criação",
4432 "ru": "Создание",
4433 "xloc": [
4428 - "default.handlebars->23->1320"
4434 + "default.handlebars->23->1322"
4435 ]
4436 },
4437 {
@@ -4450,7 +4456,7 @@
4456 "pt": "Cree",
4457 "ru": "Кри (Канадский язык)",
4458 "xloc": [
4453 - "default.handlebars->23->752"
4459 + "default.handlebars->23->754"
4460 ]
4461 },
4462 {
@@ -4462,7 +4468,7 @@
4468 "pt": "Croata",
4469 "ru": "Хорватский",
4470 "xloc": [
4465 - "default.handlebars->23->753"
4471 + "default.handlebars->23->755"
4472 ]
4473 },
4474 {
@@ -4563,7 +4569,7 @@
4569 "pt": "Tcheco",
4570 "ru": "Чешский",
4571 "xloc": [
4566 - "default.handlebars->23->754"
4572 + "default.handlebars->23->756"
4573 ]
4574 },
4575 {
@@ -4587,7 +4593,7 @@
4593 "pt": "Dinamarquês",
4594 "ru": "Датский",
4595 "xloc": [
4590 - "default.handlebars->23->755"
4596 + "default.handlebars->23->757"
4597 ]
4598 },
4599 {
@@ -4599,7 +4605,7 @@
4605 "pt": "DataChannel",
4606 "ru": "DataChannel",
4607 "xloc": [
4602 - "default.handlebars->23->594"
4608 + "default.handlebars->23->596"
4609 ]
4610 },
4611 {
@@ -4611,7 +4617,7 @@
4617 "pt": "Datas e Horário",
4618 "ru": "Даты & Время",
4619 "xloc": [
4614 - "default.handlebars->23->911"
4620 + "default.handlebars->23->913"
4621 ]
4622 },
4623 {
@@ -4623,7 +4629,7 @@
4629 "pt": "Dia",
4630 "ru": "День",
4631 "xloc": [
4626 - "default.handlebars->23->533"
4632 + "default.handlebars->23->535"
4633 ]
4634 },
4635 {
@@ -4635,7 +4641,7 @@
4641 "pt": "Desativar o modo de controle do cliente (CCM)",
4642 "ru": "Деактивировать режим управления клиентом (CCM)",
4643 "xloc": [
4638 - "default.handlebars->23->1031"
4644 + "default.handlebars->23->1033"
4645 ]
4646 },
4647 {
@@ -4664,12 +4670,13 @@
4670 "default-mobile.handlebars->9->81",
4671 "default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->2->1->1",
4672 "default-mobile.handlebars->container->page_content->column_l->p5->p5myfiles->p5toolbar->1->0->1->1",
4667 - "default.handlebars->23->1167",
4668 - "default.handlebars->23->646",
4673 + "default.handlebars->23->1169",
4674 + "default.handlebars->23->648",
4675 "default.handlebars->container->column_l->p13->p13toolbar->1->2->1->3",
4676 "default.handlebars->container->column_l->p5->p5toolbar->1->0->p5filehead->3",
4677 "default.handlebars->container->dialog->idx_dlgButtonBar->5",
4672 - "player.htm->p11->dialog->idx_dlgButtonBar->5"
4678 + "player.htm->p11->dialog->idx_dlgButtonBar->5",
4679 + "xterm.handlebars->p11->dialog->idx_dlgButtonBar->5"
4680 ]
4681 },
4682 {
@@ -4682,7 +4689,7 @@
4689 "ru": "Удалить Пользователя",
4690 "xloc": [
4691 "default-mobile.handlebars->9->43",
4685 - "default.handlebars->23->928"
4692 + "default.handlebars->23->930"
4693 ]
4694 },
4695 {
@@ -4709,8 +4716,8 @@
4716 "xloc": [
4717 "default-mobile.handlebars->9->285",
4718 "default-mobile.handlebars->9->288",
4712 - "default.handlebars->23->1024",
4713 - "default.handlebars->23->1054"
4719 + "default.handlebars->23->1026",
4720 + "default.handlebars->23->1056"
4721 ]
4722 },
4723 {
@@ -4723,7 +4730,7 @@
4730 "ru": "Удалить Узел",
4731 "xloc": [
4732 "default-mobile.handlebars->9->218",
4726 - "default.handlebars->23->559"
4733 + "default.handlebars->23->561"
4734 ]
4735 },
4736 {
@@ -4744,7 +4751,7 @@
4751 "en": "Delete User",
4752 "nl": "Verwijder gebruiker",
4753 "xloc": [
4747 - "default.handlebars->23->1341"
4754 + "default.handlebars->23->1343"
4755 ]
4756 },
4757 {
@@ -4752,8 +4759,8 @@
4759 "en": "Delete User Group",
4760 "nl": "Verwijder de gebruikersgroep",
4761 "xloc": [
4755 - "default.handlebars->23->1291",
4756 - "default.handlebars->23->1299"
4762 + "default.handlebars->23->1293",
4763 + "default.handlebars->23->1301"
4764 ]
4765 },
4766 {
@@ -4765,7 +4772,7 @@
4772 "pt": "Excluir usuário {0}",
4773 "ru": "Удалить Пользователя {0}",
4774 "xloc": [
4768 - "default.handlebars->23->1355"
4775 + "default.handlebars->23->1357"
4776 ]
4777 },
4778 {
@@ -4804,8 +4811,8 @@
4811 "xloc": [
4812 "default-mobile.handlebars->9->251",
4813 "default-mobile.handlebars->9->83",
4807 - "default.handlebars->23->1169",
4808 - "default.handlebars->23->648"
4814 + "default.handlebars->23->1171",
4815 + "default.handlebars->23->650"
4816 ]
4817 },
4818 {
@@ -4813,7 +4820,7 @@
4820 "en": "Delete user group {0}?",
4821 "nl": "Verwijder gebruikersgroep {0}?",
4822 "xloc": [
4816 - "default.handlebars->23->1297"
4823 + "default.handlebars->23->1299"
4824 ]
4825 },
4826 {
@@ -4827,8 +4834,8 @@
4834 "xloc": [
4835 "default-mobile.handlebars->9->250",
4836 "default-mobile.handlebars->9->82",
4830 - "default.handlebars->23->1168",
4831 - "default.handlebars->23->647"
4837 + "default.handlebars->23->1170",
4838 + "default.handlebars->23->649"
4839 ]
4840 },
4841 {
@@ -4903,17 +4910,17 @@
4910 "default-mobile.handlebars->9->277",
4911 "default-mobile.handlebars->9->290",
4912 "default-mobile.handlebars->9->60",
4906 - "default.handlebars->23->1056",
4907 - "default.handlebars->23->1265",
4908 - "default.handlebars->23->1270",
4913 + "default.handlebars->23->1058",
4914 + "default.handlebars->23->1267",
4915 "default.handlebars->23->1272",
4910 - "default.handlebars->23->1295",
4916 + "default.handlebars->23->1274",
4917 + "default.handlebars->23->1297",
4918 "default.handlebars->23->440",
4919 "default.handlebars->23->441",
4913 - "default.handlebars->23->590",
4914 - "default.handlebars->23->948",
4920 + "default.handlebars->23->592",
4921 "default.handlebars->23->95",
4916 - "default.handlebars->23->972",
4922 + "default.handlebars->23->950",
4923 + "default.handlebars->23->974",
4924 "default.handlebars->container->column_l->p42->p42tbl->1->0->3"
4925 ]
4926 },
@@ -4935,7 +4942,7 @@
4942 "pt": "Área de Trabalho",
4943 "ru": "Рабочий стол",
4944 "xloc": [
4938 - "default.handlebars->23->1058",
4945 + "default.handlebars->23->1060",
4946 "default.handlebars->23->409",
4947 "default.handlebars->container->topbar->1->1->MainSubMenuSpan->MainSubMenu->1->0->MainDevDesktop",
4948 "default.handlebars->contextMenu->cxdesktop"
@@ -4962,7 +4969,7 @@
4969 "pt": "Notificação na área de trabalho",
4970 "ru": "Уведомление на рабочем столе",
4971 "xloc": [
4965 - "default.handlebars->23->982"
4972 + "default.handlebars->23->984"
4973 ]
4974 },
4975 {
@@ -4974,7 +4981,7 @@
4981 "pt": "Prompt da área de trabalho",
4982 "ru": "Запрос рабочего стола",
4983 "xloc": [
4977 - "default.handlebars->23->981"
4984 + "default.handlebars->23->983"
4985 ]
4986 },
4987 {
@@ -4986,7 +4993,7 @@
4993 "pt": "Prompt da área de trabalho + barra de ferramentas",
4994 "ru": "Запрос рабочего стола + панель инструментов",
4995 "xloc": [
4989 - "default.handlebars->23->979"
4996 + "default.handlebars->23->981"
4997 ]
4998 },
4999 {
@@ -4998,7 +5005,7 @@
5005 "pt": "Barra de ferramentas da área de trabalho",
5006 "ru": "Панель инструментов рабочего стола",
5007 "xloc": [
5001 - "default.handlebars->23->980"
5008 + "default.handlebars->23->982"
5009 ]
5010 },
5011 {
@@ -5060,7 +5067,7 @@
5067 "ru": "Действие устройства",
5068 "xloc": [
5069 "default-mobile.handlebars->9->211",
5063 - "default.handlebars->23->532"
5070 + "default.handlebars->23->534"
5071 ]
5072 },
5073 {
@@ -5068,11 +5075,11 @@
5075 "en": "Device Group",
5076 "nl": "Apparaat Groep",
5077 "xloc": [
5071 - "default.handlebars->23->1075",
5078 "default.handlebars->23->1077",
5073 - "default.handlebars->23->1289",
5074 - "default.handlebars->23->1363",
5075 - "default.handlebars->23->1369"
5079 + "default.handlebars->23->1079",
5080 + "default.handlebars->23->1291",
5081 + "default.handlebars->23->1365",
5082 + "default.handlebars->23->1371"
5083 ]
5084 },
5085 {
@@ -5085,7 +5092,7 @@
5092 "ru": "Пользователь группы устройств",
5093 "xloc": [
5094 "default-mobile.handlebars->9->331",
5088 - "default.handlebars->23->1125"
5095 + "default.handlebars->23->1127"
5096 ]
5097 },
5098 {
@@ -5098,10 +5105,10 @@
5105 "ru": "Группы устройств",
5106 "xloc": [
5107 "default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->3",
5101 - "default.handlebars->23->1261",
5102 - "default.handlebars->23->1274",
5103 - "default.handlebars->23->1329",
5104 - "default.handlebars->23->1402",
5108 + "default.handlebars->23->1263",
5109 + "default.handlebars->23->1276",
5110 + "default.handlebars->23->1331",
5111 + "default.handlebars->23->1404",
5112 "default.handlebars->container->column_l->p2->9"
5113 ]
5114 },
@@ -5114,7 +5121,7 @@
5121 "pt": "Localização do dispositivo",
5122 "ru": "Местонахождение устройства",
5123 "xloc": [
5117 - "default.handlebars->23->560"
5124 + "default.handlebars->23->562"
5125 ]
5126 },
5127 {
@@ -5128,7 +5135,7 @@
5135 "xloc": [
5136 "default-mobile.handlebars->9->222",
5137 "default.handlebars->23->238",
5131 - "default.handlebars->23->588",
5138 + "default.handlebars->23->590",
5139 "player.htm->3->9"
5140 ]
5141 },
@@ -5141,7 +5148,7 @@
5148 "pt": "Notificação de dispositivo",
5149 "ru": "Уведомление устройства",
5150 "xloc": [
5144 - "default.handlebars->23->523"
5151 + "default.handlebars->23->525"
5152 ]
5153 },
5154 {
@@ -5165,8 +5172,8 @@
5172 "pt": "Conexões de dispositivos.",
5173 "ru": "Подключения устройства",
5174 "xloc": [
5168 - "default.handlebars->23->1129",
5169 - "default.handlebars->23->916"
5175 + "default.handlebars->23->1131",
5176 + "default.handlebars->23->918"
5177 ]
5178 },
5179 {
@@ -5178,8 +5185,8 @@
5185 "pt": "Desconexões de dispositivos.",
5186 "ru": "Отключения устройства",
5187 "xloc": [
5181 - "default.handlebars->23->1130",
5182 - "default.handlebars->23->917"
5188 + "default.handlebars->23->1132",
5189 + "default.handlebars->23->919"
5190 ]
5191 },
5192 {
@@ -5191,7 +5198,7 @@
5198 "pt": "As notas do grupo de dispositivos podem ser visualizadas e alteradas por outros administradores do grupo de dispositivos.",
5199 "ru": "Примечания группы устройств могут быть просмотрены и изменены другими администраторами группы устройств.",
5200 "xloc": [
5194 - "default.handlebars->23->521"
5201 + "default.handlebars->23->523"
5202 ]
5203 },
5204 {
@@ -5416,10 +5423,11 @@
5423 "xloc": [
5424 "default-mobile.handlebars->9->237",
5425 "default-mobile.handlebars->container->page_content->column_l->p10->p10desktop->deskarea1->1->3",
5419 - "default.handlebars->23->637",
5420 - "default.handlebars->23->992",
5426 + "default.handlebars->23->639",
5427 + "default.handlebars->23->994",
5428 "default.handlebars->container->column_l->p11->deskarea0->deskarea1->3->disconnectbutton1span",
5422 - "default.handlebars->container->column_l->p12->termTable->1->1->0->1->3->disconnectbutton2span"
5429 + "default.handlebars->container->column_l->p12->termTable->1->1->0->1->3->disconnectbutton2span",
5430 + "xterm.handlebars->p11->deskarea0->deskarea1->3"
5431 ]
5432 },
5433 {
@@ -5454,7 +5462,8 @@
5462 "default.handlebars->23->8",
5463 "default.handlebars->container->column_l->p11->deskarea0->deskarea1->3->deskstatus",
5464 "default.handlebars->container->column_l->p12->termTable->1->1->0->1->3->termstatus",
5457 - "default.handlebars->container->column_l->p13->p13toolbar->1->0->1->3->p13Status"
5465 + "default.handlebars->container->column_l->p13->p13toolbar->1->0->1->3->p13Status",
5466 + "xterm.handlebars->3->1"
5467 ]
5468 },
5469 {
@@ -5475,7 +5484,7 @@
5484 "en": "Display device group name",
5485 "nl": "Toon apparaatgroepsnaam",
5486 "xloc": [
5478 - "default.handlebars->23->915"
5487 + "default.handlebars->23->917"
5488 ]
5489 },
5490 {
@@ -5487,7 +5496,7 @@
5496 "pt": "Mostrar nome",
5497 "ru": "Показать имя",
5498 "xloc": [
5490 - "default.handlebars->23->608"
5499 + "default.handlebars->23->610"
5500 ]
5501 },
5502 {
@@ -5499,7 +5508,7 @@
5508 "pt": "Fazer nada",
5509 "ru": "Ничего не делать",
5510 "xloc": [
5502 - "default.handlebars->23->1037"
5511 + "default.handlebars->23->1039"
5512 ]
5513 },
5514 {
@@ -5524,8 +5533,8 @@
5533 "pt": "Não configure",
5534 "ru": "Не настраивать",
5535 "xloc": [
5527 - "default.handlebars->23->1041",
5528 - "default.handlebars->23->1046"
5536 + "default.handlebars->23->1043",
5537 + "default.handlebars->23->1048"
5538 ]
5539 },
5540 {
@@ -5537,7 +5546,7 @@
5546 "pt": "Não conecte ao servidor",
5547 "ru": "Не подключаться к серверу",
5548 "xloc": [
5540 - "default.handlebars->23->1042"
5549 + "default.handlebars->23->1044"
5550 ]
5551 },
5552 {
@@ -5577,7 +5586,7 @@
5586 "ru": "Скачать файл",
5587 "xloc": [
5588 "default-mobile.handlebars->9->270",
5580 - "default.handlebars->23->666"
5589 + "default.handlebars->23->668"
5590 ]
5591 },
5592 {
@@ -5601,7 +5610,7 @@
5610 "pt": "Baixar MeshCmd",
5611 "ru": "Скачать MeshCmd",
5612 "xloc": [
5604 - "default.handlebars->23->579"
5613 + "default.handlebars->23->581"
5614 ]
5615 },
5616 {
@@ -5631,7 +5640,7 @@
5640 "en": "Download \\\"meshcmd\\\" with an action file to route traffic thru this server to this device. Make sure to edit meshaction.txt and add your account password or make any changes needed.",
5641 "nl": "Download \\\"meshcmd\\\" met het actiebestand om verkeer via deze server naar dit apparaat te leiden. Zorg ervoor dat u meshaction.txt bewerkt en uw accountwachtwoord toevoegt of breng de nodige wijzigingen aan.",
5642 "xloc": [
5634 - "default.handlebars->23->572"
5643 + "default.handlebars->23->574"
5644 ]
5645 },
5646 {
@@ -5679,7 +5688,7 @@
5688 "pt": "Download de eventos de energia",
5689 "ru": "Скачать события состояния питания",
5690 "xloc": [
5682 - "default.handlebars->23->534"
5691 + "default.handlebars->23->536"
5692 ]
5693 },
5694 {
@@ -5715,7 +5724,7 @@
5724 "pt": "Faça o download da lista de eventos com um dos formatos de arquivo abaixo.",
5725 "ru": "Скачать список событий с одним из форматов файлов ниже.",
5726 "xloc": [
5718 - "default.handlebars->23->1183"
5727 + "default.handlebars->23->1185"
5728 ]
5729 },
5730 {
@@ -5727,7 +5736,7 @@
5736 "pt": "Baixe a lista de usuários com um dos formatos de arquivo abaixo.",
5737 "ru": "Скачать список пользователей с одним из форматов файлов ниже.",
5738 "xloc": [
5730 - "default.handlebars->23->1222"
5739 + "default.handlebars->23->1224"
5740 ]
5741 },
5742 {
@@ -5785,7 +5794,7 @@
5794 "en": "Duplicate Agent",
5795 "nl": "Duplicaat Agent",
5796 "xloc": [
5788 - "default.handlebars->23->1398"
5797 + "default.handlebars->23->1400"
5798 ]
5799 },
5800 {
@@ -5801,7 +5810,7 @@
5810 "en": "Duplicate User Group",
5811 "nl": "Dupliceer Gebruikers Groep",
5812 "xloc": [
5804 - "default.handlebars->23->1267"
5813 + "default.handlebars->23->1269"
5814 ]
5815 },
5816 {
@@ -5825,7 +5834,7 @@
5834 "pt": "Durante a ativação, o agente terá acesso às informações da senha do administrador.",
5835 "ru": "Во время активации агент будет иметь доступ к информации пароля администратора.",
5836 "xloc": [
5828 - "default.handlebars->23->1051"
5837 + "default.handlebars->23->1053"
5838 ]
5839 },
5840 {
@@ -5837,7 +5846,7 @@
5846 "pt": "Holandês (belga)",
5847 "ru": "Голландский (Бельгийский)",
5848 "xloc": [
5840 - "default.handlebars->23->757"
5849 + "default.handlebars->23->759"
5850 ]
5851 },
5852 {
@@ -5849,7 +5858,7 @@
5858 "pt": "Holandês (padrão)",
5859 "ru": "Голландский (Стандартный)",
5860 "xloc": [
5852 - "default.handlebars->23->756"
5861 + "default.handlebars->23->758"
5862 ]
5863 },
5864 {
@@ -5912,7 +5921,7 @@
5921 "ru": "Редактировать устройство",
5922 "xloc": [
5923 "default-mobile.handlebars->9->227",
5915 - "default.handlebars->23->593"
5924 + "default.handlebars->23->595"
5925 ]
5926 },
5927 {
@@ -5927,9 +5936,9 @@
5936 "default-mobile.handlebars->9->291",
5937 "default-mobile.handlebars->9->293",
5938 "default-mobile.handlebars->9->311",
5930 - "default.handlebars->23->1057",
5931 - "default.handlebars->23->1081",
5932 - "default.handlebars->23->1104"
5939 + "default.handlebars->23->1059",
5940 + "default.handlebars->23->1083",
5941 + "default.handlebars->23->1106"
5942 ]
5943 },
5944 {
@@ -5941,7 +5950,7 @@
5950 "pt": "Editar recursos do grupo de dispositivos",
5951 "ru": "Редактировать функции группы устройств",
5952 "xloc": [
5944 - "default.handlebars->23->1071"
5953 + "default.handlebars->23->1073"
5954 ]
5955 },
5956 {
@@ -5949,7 +5958,7 @@
5958 "en": "Edit Device Group Permissions",
5959 "nl": "Bewerk apparaatgroep rechten",
5960 "xloc": [
5952 - "default.handlebars->23->1101"
5961 + "default.handlebars->23->1103"
5962 ]
5963 },
5964 {
@@ -5961,7 +5970,7 @@
5970 "pt": "Editar consentimento do usuário do grupo de dispositivos",
5971 "ru": "Редактировать согласие пользователя группы устройств",
5972 "xloc": [
5964 - "default.handlebars->23->1068"
5973 + "default.handlebars->23->1070"
5974 ]
5975 },
5976 {
@@ -5974,7 +5983,7 @@
5983 "ru": "Редактировать примечания устройства",
5984 "xloc": [
5985 "default-mobile.handlebars->9->305",
5977 - "default.handlebars->23->1093"
5986 + "default.handlebars->23->1095"
5987 ]
5988 },
5989 {
@@ -5989,7 +5998,7 @@
5998 "default-mobile.handlebars->9->217",
5999 "default.handlebars->23->455",
6000 "default.handlebars->23->458",
5992 - "default.handlebars->23->541"
6001 + "default.handlebars->23->543"
6002 ]
6003 },
6004 {
@@ -6003,7 +6012,7 @@
6012 "ru": "Редактировать примечания",
6013 "xloc": [
6014 "default-mobile.handlebars->9->318",
6006 - "default.handlebars->23->1111"
6015 + "default.handlebars->23->1113"
6016 ]
6017 },
6018 {
@@ -6015,7 +6024,7 @@
6024 "pt": "Editar permissões do grupo de dispositivos do usuário",
6025 "ru": "Редактировать права потребителя группы устройств",
6026 "xloc": [
6018 - "default.handlebars->23->1102"
6027 + "default.handlebars->23->1104"
6028 ]
6029 },
6030 {
@@ -6023,7 +6032,7 @@
6032 "en": "Edit User Group",
6033 "nl": "Bewerk de gebruikersgroep",
6034 "xloc": [
6026 - "default.handlebars->23->1296"
6035 + "default.handlebars->23->1298"
6036 ]
6037 },
6038 {
@@ -6048,10 +6057,10 @@
6057 "ru": "Эл. почта",
6058 "xloc": [
6059 "default-mobile.handlebars->9->37",
6051 - "default.handlebars->23->1234",
6052 - "default.handlebars->23->1316",
6053 - "default.handlebars->23->1317",
6054 - "default.handlebars->23->1345",
6060 + "default.handlebars->23->1236",
6061 + "default.handlebars->23->1318",
6062 + "default.handlebars->23->1319",
6063 + "default.handlebars->23->1347",
6064 "default.handlebars->23->283"
6065 ]
6066 },
@@ -6065,7 +6074,7 @@
6074 "ru": "Изменение адреса эл. почты",
6075 "xloc": [
6076 "default-mobile.handlebars->9->38",
6068 - "default.handlebars->23->924"
6077 + "default.handlebars->23->926"
6078 ]
6079 },
6080 {
@@ -6078,7 +6087,7 @@
6087 "ru": "Подтверждение эл. почты",
6088 "xloc": [
6089 "default-mobile.handlebars->9->36",
6081 - "default.handlebars->23->922"
6090 + "default.handlebars->23->924"
6091 ]
6092 },
6093 {
@@ -6090,7 +6099,7 @@
6099 "pt": "O email foi verificado",
6100 "ru": "Ел. почта подтверждена",
6101 "xloc": [
6093 - "default.handlebars->23->1313"
6102 + "default.handlebars->23->1315"
6103 ]
6104 },
6105 {
@@ -6102,7 +6111,7 @@
6111 "pt": "O email foi verificado.",
6112 "ru": "Ел. почта подтверждена.",
6113 "xloc": [
6105 - "default.handlebars->23->1240"
6114 + "default.handlebars->23->1242"
6115 ]
6116 },
6117 {
@@ -6114,7 +6123,7 @@
6123 "pt": "Email não verificado",
6124 "ru": "Ел. почта не подтверждена",
6125 "xloc": [
6117 - "default.handlebars->23->1314"
6126 + "default.handlebars->23->1316"
6127 ]
6128 },
6129 {
@@ -6179,7 +6188,7 @@
6188 "pt": "Inglês",
6189 "ru": "Английский",
6190 "xloc": [
6182 - "default.handlebars->23->758"
6191 + "default.handlebars->23->760"
6192 ]
6193 },
6194 {
@@ -6191,7 +6200,7 @@
6200 "pt": "Inglês (Austrália)",
6201 "ru": "Английский (Австралия)",
6202 "xloc": [
6194 - "default.handlebars->23->759"
6203 + "default.handlebars->23->761"
6204 ]
6205 },
6206 {
@@ -6203,7 +6212,7 @@
6212 "pt": "Inglês (Belize)",
6213 "ru": "Английский (Белиз)",
6214 "xloc": [
6206 - "default.handlebars->23->760"
6215 + "default.handlebars->23->762"
6216 ]
6217 },
6218 {
@@ -6215,7 +6224,7 @@
6224 "pt": "Inglês (Canadá)",
6225 "ru": "Английский (Канада)",
6226 "xloc": [
6218 - "default.handlebars->23->761"
6227 + "default.handlebars->23->763"
6228 ]
6229 },
6230 {
@@ -6227,7 +6236,7 @@
6236 "pt": "Inglês (Irlanda)",
6237 "ru": "Английский (Ирландия)",
6238 "xloc": [
6230 - "default.handlebars->23->762"
6239 + "default.handlebars->23->764"
6240 ]
6241 },
6242 {
@@ -6239,7 +6248,7 @@
6248 "pt": "Inglês (Jamaica)",
6249 "ru": "Английский (Ямайка)",
6250 "xloc": [
6242 - "default.handlebars->23->763"
6251 + "default.handlebars->23->765"
6252 ]
6253 },
6254 {
@@ -6251,7 +6260,7 @@
6260 "pt": "Inglês (Nova Zelândia)",
6261 "ru": "Английский (Новая Зеландия)",
6262 "xloc": [
6254 - "default.handlebars->23->764"
6263 + "default.handlebars->23->766"
6264 ]
6265 },
6266 {
@@ -6263,7 +6272,7 @@
6272 "pt": "Inglês (Filipinas)",
6273 "ru": "Английский (Филиппины)",
6274 "xloc": [
6266 - "default.handlebars->23->765"
6275 + "default.handlebars->23->767"
6276 ]
6277 },
6278 {
@@ -6275,7 +6284,7 @@
6284 "pt": "Inglês (África do Sul)",
6285 "ru": "Английский (Южная Африка)",
6286 "xloc": [
6278 - "default.handlebars->23->766"
6287 + "default.handlebars->23->768"
6288 ]
6289 },
6290 {
@@ -6287,7 +6296,7 @@
6296 "pt": "Inglês (Trinidad Tobago)",
6297 "ru": "Английский (Тринидад и Тобаго)",
6298 "xloc": [
6290 - "default.handlebars->23->767"
6299 + "default.handlebars->23->769"
6300 ]
6301 },
6302 {
@@ -6300,7 +6309,7 @@
6309 "pt": "Inglês (Reino Unido)",
6310 "ru": "Английский (Великобритания)",
6311 "xloc": [
6303 - "default.handlebars->23->768"
6312 + "default.handlebars->23->770"
6313 ]
6314 },
6315 {
@@ -6313,7 +6322,7 @@
6322 "pt": "Inglês (Estados Unidos)",
6323 "ru": "Английский (Соединенные Штаты)",
6324 "xloc": [
6316 - "default.handlebars->23->769"
6325 + "default.handlebars->23->771"
6326 ]
6327 },
6328 {
@@ -6326,7 +6335,7 @@
6335 "pt": "Inglês (Zimbábue)",
6336 "ru": "Английский (Зимбабве)",
6337 "xloc": [
6329 - "default.handlebars->23->770"
6338 + "default.handlebars->23->772"
6339 ]
6340 },
6341 {
@@ -6338,8 +6347,8 @@
6347 "pt": "Entrar",
6348 "ru": "Ввод",
6349 "xloc": [
6341 - "default.handlebars->23->950",
6342 - "default.handlebars->23->951"
6350 + "default.handlebars->23->952",
6351 + "default.handlebars->23->953"
6352 ]
6353 },
6354 {
@@ -6351,7 +6360,7 @@
6360 "pt": "Insira uma lista separada por vírgulas de nomes de regiões administrativas.",
6361 "ru": "Введите разделенный запятыми список имен административных областей.",
6362 "xloc": [
6354 - "default.handlebars->23->1244"
6363 + "default.handlebars->23->1246"
6364 ]
6365 },
6366 {
@@ -6375,7 +6384,7 @@
6384 "pt": "Digite o texto e clique em OK para digitá-lo remotamente usando um teclado em inglês dos EUA.Certifique-se de colocar o cursor remoto na posição correta antes de continuar.",
6385 "ru": "Для удаленного набора введите текст, используя английскую раскладку и нажмите OK. Перед продолжением убедитесь, что дистанционный курсор установлен в правильное положение.",
6386 "xloc": [
6378 - "default.handlebars->23->603"
6387 + "default.handlebars->23->605"
6388 ]
6389 },
6390 {
@@ -6436,7 +6445,7 @@
6445 "pt": "Esperanto",
6446 "ru": "Эсперанто",
6447 "xloc": [
6439 - "default.handlebars->23->771"
6448 + "default.handlebars->23->773"
6449 ]
6450 },
6451 {
@@ -6448,7 +6457,7 @@
6457 "pt": "Estoniano",
6458 "ru": "Эстонский",
6459 "xloc": [
6451 - "default.handlebars->23->772"
6460 + "default.handlebars->23->774"
6461 ]
6462 },
6463 {
@@ -6460,7 +6469,7 @@
6469 "pt": "Detalhes do evento",
6470 "ru": "Детайли события",
6471 "xloc": [
6463 - "default.handlebars->23->679"
6472 + "default.handlebars->23->681"
6473 ]
6474 },
6475 {
@@ -6472,7 +6481,7 @@
6481 "pt": "Exportação da lista de eventos",
6482 "ru": "Экспорт списка событий",
6483 "xloc": [
6475 - "default.handlebars->23->1188"
6484 + "default.handlebars->23->1190"
6485 ]
6486 },
6487 {
@@ -6525,7 +6534,7 @@
6534 "pt": "ASCII estendido",
6535 "ru": "Расширенный ASCII",
6536 "xloc": [
6528 - "default.handlebars->23->628"
6537 + "default.handlebars->23->630"
6538 ]
6539 },
6540 {
@@ -6546,7 +6555,7 @@
6555 "en": "External",
6556 "nl": "Extern",
6557 "xloc": [
6549 - "default.handlebars->23->1422"
6558 + "default.handlebars->23->1424"
6559 ]
6560 },
6561 {
@@ -6559,7 +6568,7 @@
6568 "pt": "FYRO Macedonian",
6569 "ru": "Mакедонский (БЮР)",
6570 "xloc": [
6562 - "default.handlebars->23->822"
6571 + "default.handlebars->23->824"
6572 ]
6573 },
6574 {
@@ -6571,7 +6580,7 @@
6580 "pt": "O servidor remoto retornou um erro: (429) Too Many Requests.",
6581 "ru": "Фарерский",
6582 "xloc": [
6574 - "default.handlebars->23->773"
6583 + "default.handlebars->23->775"
6584 ]
6585 },
6586 {
@@ -6597,7 +6606,7 @@
6606 "pt": "Persa (persa)",
6607 "ru": "Фарси (Персидский)",
6608 "xloc": [
6600 - "default.handlebars->23->774"
6609 + "default.handlebars->23->776"
6610 ]
6611 },
6612 {
@@ -6623,7 +6632,7 @@
6632 "pt": "Recursos",
6633 "ru": "Функции",
6634 "xloc": [
6626 - "default.handlebars->23->978"
6635 + "default.handlebars->23->980"
6636 ]
6637 },
6638 {
@@ -6635,7 +6644,7 @@
6644 "pt": "Fijiano",
6645 "ru": "Фиджи",
6646 "xloc": [
6638 - "default.handlebars->23->775"
6647 + "default.handlebars->23->777"
6648 ]
6649 },
6650 {
@@ -6649,7 +6658,7 @@
6658 "ru": "Редактор файлов",
6659 "xloc": [
6660 "default-mobile.handlebars->9->254",
6652 - "default.handlebars->23->651"
6661 + "default.handlebars->23->653"
6662 ]
6663 },
6664 {
@@ -6674,7 +6683,7 @@
6683 "pt": "Driver do sistema de arquivos",
6684 "ru": "Драйвер файловой системы",
6685 "xloc": [
6677 - "default.handlebars->23->611"
6686 + "default.handlebars->23->613"
6687 ]
6688 },
6689 {
@@ -6687,7 +6696,7 @@
6696 "pt": "Arquivos",
6697 "ru": "Файлы",
6698 "xloc": [
6690 - "default.handlebars->23->1065",
6699 + "default.handlebars->23->1067",
6700 "default.handlebars->container->topbar->1->1->MainSubMenuSpan->MainSubMenu->1->0->MainDevFiles",
6701 "default.handlebars->contextMenu->cxfiles"
6702 ]
@@ -6714,7 +6723,7 @@
6723 "pt": "Notificação arquivos",
6724 "ru": "Уведомление файлов",
6725 "xloc": [
6717 - "default.handlebars->23->986"
6726 + "default.handlebars->23->988"
6727 ]
6728 },
6729 {
@@ -6726,7 +6735,7 @@
6735 "pt": "Arquivos do prompt",
6736 "ru": "Запрос файлов",
6737 "xloc": [
6729 - "default.handlebars->23->985"
6738 + "default.handlebars->23->987"
6739 ]
6740 },
6741 {
@@ -6753,7 +6762,7 @@
6762 "pt": "Finlandês",
6763 "ru": "Финский",
6764 "xloc": [
6756 - "default.handlebars->23->776"
6765 + "default.handlebars->23->778"
6766 ]
6767 },
6768 {
@@ -6808,8 +6817,8 @@
6817 "pt": "Forçar redefinição de senha no próximo login.",
6818 "ru": "Принудительно сбросить пароль при следующем входе в систему.",
6819 "xloc": [
6811 - "default.handlebars->23->1238",
6812 - "default.handlebars->23->1352"
6820 + "default.handlebars->23->1240",
6821 + "default.handlebars->23->1354"
6822 ]
6823 },
6824 {
@@ -6872,8 +6881,8 @@
6881 "pt": "Livre",
6882 "ru": "Свободно",
6883 "xloc": [
6875 - "default.handlebars->23->1383",
6876 - "default.handlebars->23->1385"
6884 + "default.handlebars->23->1385",
6885 + "default.handlebars->23->1387"
6886 ]
6887 },
6888 {
@@ -6899,7 +6908,7 @@
6908 "pt": "Francês (Bélgica)",
6909 "ru": "Французский (Бельгия)",
6910 "xloc": [
6902 - "default.handlebars->23->778"
6911 + "default.handlebars->23->780"
6912 ]
6913 },
6914 {
@@ -6912,7 +6921,7 @@
6921 "pt": "Francês (Canadá)",
6922 "ru": "Французский (Канада)",
6923 "xloc": [
6915 - "default.handlebars->23->779"
6924 + "default.handlebars->23->781"
6925 ]
6926 },
6927 {
@@ -6925,7 +6934,7 @@
6934 "pt": "Francês (França)",
6935 "ru": "Французский (Франция)",
6936 "xloc": [
6928 - "default.handlebars->23->780"
6937 + "default.handlebars->23->782"
6938 ]
6939 },
6940 {
@@ -6938,7 +6947,7 @@
6947 "pt": "Francês (Luxemburgo)",
6948 "ru": "Французский (Люксембург)",
6949 "xloc": [
6941 - "default.handlebars->23->781"
6950 + "default.handlebars->23->783"
6951 ]
6952 },
6953 {
@@ -6951,7 +6960,7 @@
6960 "pt": "Francês (Mônaco)",
6961 "ru": "Французский (Монако)",
6962 "xloc": [
6954 - "default.handlebars->23->782"
6963 + "default.handlebars->23->784"
6964 ]
6965 },
6966 {
@@ -6964,7 +6973,7 @@
6973 "pt": "Francês (Padrão)",
6974 "ru": "Французский (Стандартный)",
6975 "xloc": [
6967 - "default.handlebars->23->777"
6976 + "default.handlebars->23->779"
6977 ]
6978 },
6979 {
@@ -6977,7 +6986,7 @@
6986 "pt": "Francês (Suíça)",
6987 "ru": "Французский (Швейцария)",
6988 "xloc": [
6980 - "default.handlebars->23->783"
6989 + "default.handlebars->23->785"
6990 ]
6991 },
6992 {
@@ -6990,7 +6999,7 @@
6999 "pt": "Frísio",
7000 "ru": "Фризский",
7001 "xloc": [
6993 - "default.handlebars->23->784"
7002 + "default.handlebars->23->786"
7003 ]
7004 },
7005 {
@@ -7003,7 +7012,7 @@
7012 "pt": "Friuliano",
7013 "ru": "Фриульский",
7014 "xloc": [
7006 - "default.handlebars->23->785"
7015 + "default.handlebars->23->787"
7016 ]
7017 },
7018 {
@@ -7020,9 +7029,9 @@
7029 "default-mobile.handlebars->9->292",
7030 "default-mobile.handlebars->9->310",
7031 "default-mobile.handlebars->9->64",
7023 - "default.handlebars->23->1080",
7024 - "default.handlebars->23->1249",
7025 - "default.handlebars->23->957"
7032 + "default.handlebars->23->1082",
7033 + "default.handlebars->23->1251",
7034 + "default.handlebars->23->959"
7035 ]
7036 },
7037 {
@@ -7035,7 +7044,7 @@
7044 "pt": "Administrador Pleno (todos os direitos)",
7045 "ru": "Администратор с полным доступом (все права)",
7046 "xloc": [
7038 - "default.handlebars->23->1103"
7047 + "default.handlebars->23->1105"
7048 ]
7049 },
7050 {
@@ -7043,9 +7052,9 @@
7052 "en": "Full Device Group Administrator",
7053 "nl": "Volledige apparaatgroep beheerder",
7054 "xloc": [
7046 - "default.handlebars->23->1020",
7047 - "default.handlebars->23->1286",
7048 - "default.handlebars->23->1360"
7055 + "default.handlebars->23->1022",
7056 + "default.handlebars->23->1288",
7057 + "default.handlebars->23->1362"
7058 ]
7059 },
7060 {
@@ -7072,7 +7081,7 @@
7081 "pt": "Administrador completo",
7082 "ru": "Администратор с полным доступом",
7083 "xloc": [
7075 - "default.handlebars->23->1309"
7084 + "default.handlebars->23->1311"
7085 ]
7086 },
7087 {
@@ -7085,7 +7094,7 @@
7094 "pt": "Gaélico (irlandês)",
7095 "ru": "Гэльский (Ирландский)",
7096 "xloc": [
7088 - "default.handlebars->23->787"
7097 + "default.handlebars->23->789"
7098 ]
7099 },
7100 {
@@ -7098,7 +7107,7 @@
7107 "pt": "Gaélico (escocês)",
7108 "ru": "Гэльский (Шотландия)",
7109 "xloc": [
7101 - "default.handlebars->23->786"
7110 + "default.handlebars->23->788"
7111 ]
7112 },
7113 {
@@ -7111,7 +7120,7 @@
7120 "pt": "Galego",
7121 "ru": "Галицкий",
7122 "xloc": [
7114 - "default.handlebars->23->788"
7123 + "default.handlebars->23->790"
7124 ]
7125 },
7126 {
@@ -7194,7 +7203,7 @@
7203 "pt": "Georgiano",
7204 "ru": "Грузинский",
7205 "xloc": [
7197 - "default.handlebars->23->789"
7206 + "default.handlebars->23->791"
7207 ]
7208 },
7209 {
@@ -7206,7 +7215,7 @@
7215 "pt": "Alemão (Áustria)",
7216 "ru": "Немецкий (Австрия)",
7217 "xloc": [
7209 - "default.handlebars->23->791"
7218 + "default.handlebars->23->793"
7219 ]
7220 },
7221 {
@@ -7218,7 +7227,7 @@
7227 "pt": "Alemão (Alemanha)",
7228 "ru": "Немецкий (Германия)",
7229 "xloc": [
7221 - "default.handlebars->23->792"
7230 + "default.handlebars->23->794"
7231 ]
7232 },
7233 {
@@ -7230,7 +7239,7 @@
7239 "pt": "Alemão (Liechtenstein)",
7240 "ru": "Немецкий (Лихтенштейн)",
7241 "xloc": [
7233 - "default.handlebars->23->793"
7242 + "default.handlebars->23->795"
7243 ]
7244 },
7245 {
@@ -7242,7 +7251,7 @@
7251 "pt": "Alemão (Luxemburgo)",
7252 "ru": "Немецкий (Люксембург)",
7253 "xloc": [
7245 - "default.handlebars->23->794"
7254 + "default.handlebars->23->796"
7255 ]
7256 },
7257 {
@@ -7254,7 +7263,7 @@
7263 "pt": "Alemão (Padrão)",
7264 "ru": "Немецкий (Стандартный)",
7265 "xloc": [
7257 - "default.handlebars->23->790"
7266 + "default.handlebars->23->792"
7267 ]
7268 },
7269 {
@@ -7266,7 +7275,7 @@
7275 "pt": "Alemão (Suíça)",
7276 "ru": "German (Switzerland)",
7277 "xloc": [
7269 - "default.handlebars->23->795"
7278 + "default.handlebars->23->797"
7279 ]
7280 },
7281 {
@@ -7278,7 +7287,7 @@
7287 "pt": "Obtenha credenciais de login do MQTT para este dispositivo.",
7288 "ru": "Получить MQTT учетные данные для этого устройства.",
7289 "xloc": [
7281 - "default.handlebars->23->507"
7290 + "default.handlebars->23->509"
7291 ]
7292 },
7293 {
@@ -7319,7 +7328,7 @@
7328 "pt": "Bom",
7329 "ru": "Хорошо",
7330 "xloc": [
7322 - "default.handlebars->23->953"
7331 + "default.handlebars->23->955"
7332 ]
7333 },
7334 {
@@ -7348,7 +7357,7 @@
7357 "pt": "Grego",
7358 "ru": "Греческий",
7359 "xloc": [
7351 - "default.handlebars->23->796"
7360 + "default.handlebars->23->798"
7361 ]
7362 },
7363 {
@@ -7385,7 +7394,7 @@
7394 "en": "Group Members",
7395 "nl": "Groeps leden",
7396 "xloc": [
7388 - "default.handlebars->23->1278"
7397 + "default.handlebars->23->1280"
7398 ]
7399 },
7400 {
@@ -7398,7 +7407,7 @@
7407 "pt": "Permissões de grupo para o usuário {0}.",
7408 "ru": "Групповые права для потребителя {0}.",
7409 "xloc": [
7401 - "default.handlebars->23->1079"
7410 + "default.handlebars->23->1081"
7411 ]
7412 },
7413 {
@@ -7406,7 +7415,7 @@
7415 "en": "Group permissions for {0}.",
7416 "nl": "Groepsrechten voor {0}.",
7417 "xloc": [
7409 - "default.handlebars->23->1078"
7418 + "default.handlebars->23->1080"
7419 ]
7420 },
7421 {
@@ -7428,7 +7437,7 @@
7437 "en": "Groups",
7438 "nl": "Groepen",
7439 "xloc": [
7431 - "default.handlebars->23->1193",
7440 + "default.handlebars->23->1195",
7441 "default.handlebars->container->topbar->1->1->UsersSubMenuSpan->UsersSubMenu->1->0->UsersGroups"
7442 ]
7443 },
@@ -7442,7 +7451,7 @@
7451 "pt": "Gujarati",
7452 "ru": "Гуджарати",
7453 "xloc": [
7445 - "default.handlebars->23->797"
7454 + "default.handlebars->23->799"
7455 ]
7456 },
7457 {
@@ -7470,7 +7479,7 @@
7479 "pt": "Haitiano",
7480 "ru": "Гаитянский",
7481 "xloc": [
7473 - "default.handlebars->23->798"
7482 + "default.handlebars->23->800"
7483 ]
7484 },
7485 {
@@ -7496,7 +7505,7 @@
7505 "pt": "Forçar desconexão do agente",
7506 "ru": "Жесткое отключение агента",
7507 "xloc": [
7499 - "default.handlebars->23->695"
7508 + "default.handlebars->23->697"
7509 ]
7510 },
7511 {
@@ -7504,7 +7513,7 @@
7513 "en": "Heap Total",
7514 "nl": "Heap Totaal",
7515 "xloc": [
7507 - "default.handlebars->23->1424"
7516 + "default.handlebars->23->1426"
7517 ]
7518 },
7519 {
@@ -7512,7 +7521,7 @@
7521 "en": "Heap Used",
7522 "nl": "Heap gebruikt",
7523 "xloc": [
7515 - "default.handlebars->23->1423"
7524 + "default.handlebars->23->1425"
7525 ]
7526 },
7527 {
@@ -7524,7 +7533,7 @@
7533 "pt": "Hebraico",
7534 "ru": "Иврит",
7535 "xloc": [
7527 - "default.handlebars->23->799"
7536 + "default.handlebars->23->801"
7537 ]
7538 },
7539 {
@@ -7535,7 +7544,7 @@
7544 "nl": "Help bij het vertalen van MeshCentral",
7545 "ru": "Помочь перевести MeshCentral",
7546 "xloc": [
7538 - "default.handlebars->23->912"
7547 + "default.handlebars->23->914"
7548 ]
7549 },
7550 {
@@ -7563,7 +7572,7 @@
7572 "pt": "Hindi",
7573 "ru": "Хинди",
7574 "xloc": [
7566 - "default.handlebars->23->800"
7575 + "default.handlebars->23->802"
7576 ]
7577 },
7578 {
@@ -7589,7 +7598,7 @@
7598 "ru": "Задержана 1 запись для копирования",
7599 "xloc": [
7600 "default-mobile.handlebars->9->263",
7592 - "default.handlebars->23->660"
7601 + "default.handlebars->23->662"
7602 ]
7603 },
7604 {
@@ -7602,7 +7611,7 @@
7611 "ru": "Задержана 1 запись для перемещения",
7612 "xloc": [
7613 "default-mobile.handlebars->9->267",
7605 - "default.handlebars->23->664"
7614 + "default.handlebars->23->666"
7615 ]
7616 },
7617 {
@@ -7615,7 +7624,7 @@
7624 "ru": "Задержана/о {0} запись/ей для копирования",
7625 "xloc": [
7626 "default-mobile.handlebars->9->261",
7618 - "default.handlebars->23->658"
7627 + "default.handlebars->23->660"
7628 ]
7629 },
7630 {
@@ -7628,7 +7637,7 @@
7637 "ru": "Задержана/о {0} запись/ей для перемещения",
7638 "xloc": [
7639 "default-mobile.handlebars->9->265",
7631 - "default.handlebars->23->662"
7640 + "default.handlebars->23->664"
7641 ]
7642 },
7643 {
@@ -7641,7 +7650,7 @@
7650 "ru": "Задержанa/о {0} запись/ей {1} для {2}",
7651 "xloc": [
7652 "default-mobile.handlebars->9->88",
7644 - "default.handlebars->23->1175"
7653 + "default.handlebars->23->1177"
7654 ]
7655 },
7656 {
@@ -7661,7 +7670,7 @@
7670 "default.handlebars->23->435",
7671 "default.handlebars->23->436",
7672 "default.handlebars->23->438",
7664 - "default.handlebars->23->589"
7673 + "default.handlebars->23->591"
7674 ]
7675 },
7676 {
@@ -7673,7 +7682,7 @@
7682 "pt": "Sincronização de nome de host",
7683 "ru": "Синхронизация имени хоста",
7684 "xloc": [
7676 - "default.handlebars->23->976"
7685 + "default.handlebars->23->978"
7686 ]
7687 },
7688 {
@@ -7685,7 +7694,7 @@
7694 "pt": "Húngaro",
7695 "ru": "Венгерский",
7696 "xloc": [
7688 - "default.handlebars->23->801"
7697 + "default.handlebars->23->803"
7698 ]
7699 },
7700 {
@@ -7758,7 +7767,7 @@
7767 "pt": "islandês",
7768 "ru": "Исландский",
7769 "xloc": [
7761 - "default.handlebars->23->802"
7770 + "default.handlebars->23->804"
7771 ]
7772 },
7773 {
@@ -7772,7 +7781,7 @@
7781 "ru": "Выбор иконки",
7782 "xloc": [
7783 "default-mobile.handlebars->9->221",
7775 - "default.handlebars->23->587"
7784 + "default.handlebars->23->589"
7785 ]
7786 },
7787 {
@@ -7809,7 +7818,7 @@
7818 "pt": "Indonésia",
7819 "ru": "Индонезийский",
7820 "xloc": [
7812 - "default.handlebars->23->803"
7821 + "default.handlebars->23->805"
7822 ]
7823 },
7824 {
@@ -7861,7 +7870,7 @@
7870 "pt": "Instalar",
7871 "ru": "Установка",
7872 "xloc": [
7864 - "default.handlebars->23->1015"
7873 + "default.handlebars->23->1017"
7874 ]
7875 },
7876 {
@@ -7894,7 +7903,7 @@
7903 "pt": "Instalar CIRA",
7904 "ru": "Установка CIRA",
7905 "xloc": [
7897 - "default.handlebars->23->1007"
7906 + "default.handlebars->23->1009"
7907 ]
7908 },
7909 {
@@ -7906,7 +7915,7 @@
7915 "pt": "Instalação local",
7916 "ru": "Локальная установка",
7917 "xloc": [
7909 - "default.handlebars->23->1009"
7918 + "default.handlebars->23->1011"
7919 ]
7920 },
7921 {
@@ -7931,7 +7940,7 @@
7940 "pt": "Intel (F10 = ESC+[OM)",
7941 "ru": "Intel (F10 = ESC+[OM)",
7942 "xloc": [
7934 - "default.handlebars->23->630",
7943 + "default.handlebars->23->632",
7944 "default.handlebars->container->column_l->p12->termTable->1->1->6->1->1->terminalSettingsButtons"
7945 ]
7946 },
@@ -7944,10 +7953,10 @@
7953 "pt": "Intel AMT",
7954 "ru": "Intel AMT",
7955 "xloc": [
7947 - "default.handlebars->23->1135",
7948 - "default.handlebars->23->1141",
7949 - "default.handlebars->23->1420",
7950 - "default.handlebars->23->1440"
7956 + "default.handlebars->23->1137",
7957 + "default.handlebars->23->1143",
7958 + "default.handlebars->23->1422",
7959 + "default.handlebars->23->1442"
7960 ]
7961 },
7962 {
@@ -8057,7 +8066,7 @@
8066 "pt": "Intel ASCII",
8067 "ru": "Intel ASCII",
8068 "xloc": [
8060 - "default.handlebars->23->629"
8069 + "default.handlebars->23->631"
8070 ]
8071 },
8072 {
@@ -8072,11 +8081,11 @@
8081 "default-mobile.handlebars->9->123",
8082 "default-mobile.handlebars->9->187",
8083 "default-mobile.handlebars->9->192",
8075 - "default.handlebars->23->1001",
8084 + "default.handlebars->23->1003",
8085 "default.handlebars->23->411",
8086 "default.handlebars->23->461",
8087 "default.handlebars->23->477",
8079 - "default.handlebars->23->993"
8088 + "default.handlebars->23->995"
8089 ]
8090 },
8091 {
@@ -8116,7 +8125,8 @@
8125 "ru": "Intel&reg; AMT Подключен",
8126 "xloc": [
8127 "default-mobile.handlebars->9->5",
8119 - "default.handlebars->23->12"
8128 + "default.handlebars->23->12",
8129 + "xterm.handlebars->3->5"
8130 ]
8131 },
8132 {
@@ -8128,7 +8138,7 @@
8138 "pt": "Intel&reg; Política da AMT",
8139 "ru": "Политика Intel&reg; AMT",
8140 "xloc": [
8131 - "default.handlebars->23->1033"
8141 + "default.handlebars->23->1035"
8142 ]
8143 },
8144 {
@@ -8190,8 +8200,8 @@
8200 "ru": "Intel&reg; AMT подключен",
8201 "xloc": [
8202 "default-mobile.handlebars->9->201",
8193 - "default.handlebars->23->511",
8194 - "default.handlebars->23->512"
8203 + "default.handlebars->23->513",
8204 + "default.handlebars->23->514"
8205 ]
8206 },
8207 {
@@ -8202,9 +8212,9 @@
8212 "nl": "Intel&reg; AMT desktop- en seriële gebeurtenissen.",
8213 "pt": "Intel&reg; Área de trabalho AMT e eventos seriais.",
8214 "ru": "Настольные и серийные события Intel&reg; AMT.",
8205 - "xloc": [
8206 - "default.handlebars->23->1131",
8207 - "default.handlebars->23->918"
8215 + "xloc": [
8216 + "default.handlebars->23->1133",
8217 + "default.handlebars->23->920"
8218 ]
8219 },
8220 {
@@ -8217,8 +8227,8 @@
8227 "ru": "Intel&reg; AMT обнаружен",
8228 "xloc": [
8229 "default-mobile.handlebars->9->202",
8220 - "default.handlebars->23->513",
8221 - "default.handlebars->23->514"
8230 + "default.handlebars->23->515",
8231 + "default.handlebars->23->516"
8232 ]
8233 },
8234 {
@@ -8268,8 +8278,8 @@
8278 "ru": "Только Intel&reg; AMT, без агента",
8279 "xloc": [
8280 "default-mobile.handlebars->9->274",
8271 - "default.handlebars->23->947",
8272 - "default.handlebars->23->969"
8281 + "default.handlebars->23->949",
8282 + "default.handlebars->23->971"
8283 ]
8284 },
8285 {
@@ -8386,7 +8396,7 @@
8396 "pt": "Interativo",
8397 "ru": "undefined",
8398 "xloc": [
8389 - "default.handlebars->23->612"
8399 + "default.handlebars->23->614"
8400 ]
8401 },
8402 {
@@ -8425,7 +8435,7 @@
8435 "pt": "Inuktitut",
8436 "ru": "undefined",
8437 "xloc": [
8428 - "default.handlebars->23->804"
8438 + "default.handlebars->23->806"
8439 ]
8440 },
8441 {
@@ -8434,7 +8444,7 @@
8444 "en": "Invalid Device Group Type",
8445 "nl": "Ongeldige apparaatgroep type",
8446 "xloc": [
8437 - "default.handlebars->23->1397"
8447 + "default.handlebars->23->1399"
8448 ]
8449 },
8450 {
@@ -8443,7 +8453,7 @@
8453 "en": "Invalid JSON",
8454 "nl": "Onjuiste JSON",
8455 "xloc": [
8446 - "default.handlebars->23->1391"
8456 + "default.handlebars->23->1393"
8457 ]
8458 },
8459 {
@@ -8455,8 +8465,8 @@
8465 "pt": "Formato de arquivo JSON inválido.",
8466 "ru": "undefined",
8467 "xloc": [
8458 - "default.handlebars->23->1219",
8459 - "default.handlebars->23->1221"
8468 + "default.handlebars->23->1221",
8469 + "default.handlebars->23->1223"
8470 ]
8471 },
8472 {
@@ -8467,7 +8477,7 @@
8477 "nl": "Ongeldig JSON-bestand: {0}.",
8478 "pt": "Arquivo JSON inválido: {0}.",
8479 "xloc": [
8470 - "default.handlebars->23->1217"
8480 + "default.handlebars->23->1219"
8481 ]
8482 },
8483 {
@@ -8476,7 +8486,7 @@
8486 "en": "Invalid PKCS signature",
8487 "nl": "Onjuiste PKCS handtekening",
8488 "xloc": [
8479 - "default.handlebars->23->1389"
8489 + "default.handlebars->23->1391"
8490 ]
8491 },
8492 {
@@ -8485,7 +8495,7 @@
8495 "en": "Invalid RSA siguature",
8496 "nl": "Ongeldige RSA handtekening",
8497 "xloc": [
8488 - "default.handlebars->23->1390"
8498 + "default.handlebars->23->1392"
8499 ]
8500 },
8501 {
@@ -8556,7 +8566,7 @@
8566 "pt": "Convite",
8567 "ru": "Пригласить",
8568 "xloc": [
8559 - "default.handlebars->23->1017",
8569 + "default.handlebars->23->1019",
8570 "default.handlebars->23->236",
8571 "default.handlebars->23->313"
8572 ]
@@ -8583,7 +8593,7 @@
8593 "pt": "Convide alguém para instalar o agente de malha nessa malha.",
8594 "ru": "Отправить приглашение на установку Mesh Агента",
8595 "xloc": [
8586 - "default.handlebars->23->1016",
8596 + "default.handlebars->23->1018",
8597 "default.handlebars->23->235"
8598 ]
8599 },
@@ -8609,7 +8619,7 @@
8619 "pt": "Irish",
8620 "ru": "Ирландский",
8621 "xloc": [
8612 - "default.handlebars->23->805"
8622 + "default.handlebars->23->807"
8623 ]
8624 },
8625 {
@@ -8622,7 +8632,7 @@
8632 "pt": "Italiano (Padrão)",
8633 "ru": "Итальянский (Стандартный)",
8634 "xloc": [
8625 - "default.handlebars->23->806"
8635 + "default.handlebars->23->808"
8636 ]
8637 },
8638 {
@@ -8635,7 +8645,7 @@
8645 "pt": "Italiano (Suíça)",
8646 "ru": "Итальянский (Швейцария)",
8647 "xloc": [
8638 - "default.handlebars->23->807"
8648 + "default.handlebars->23->809"
8649 ]
8650 },
8651 {
@@ -8648,8 +8658,8 @@
8658 "pt": "Formato JSON",
8659 "ru": "Формат JSON",
8660 "xloc": [
8651 - "default.handlebars->23->1186",
8652 - "default.handlebars->23->1225"
8661 + "default.handlebars->23->1188",
8662 + "default.handlebars->23->1227"
8663 ]
8664 },
8665 {
@@ -8662,7 +8672,7 @@
8672 "pt": "japonês",
8673 "ru": "Японский",
8674 "xloc": [
8665 - "default.handlebars->23->808"
8675 + "default.handlebars->23->810"
8676 ]
8677 },
8678 {
@@ -8674,7 +8684,7 @@
8684 "pt": "Kannada",
8685 "ru": "Каннада",
8686 "xloc": [
8677 - "default.handlebars->23->809"
8687 + "default.handlebars->23->811"
8688 ]
8689 },
8690 {
@@ -8686,7 +8696,7 @@
8696 "pt": "Caxemira",
8697 "ru": "Кашмирский",
8698 "xloc": [
8689 - "default.handlebars->23->810"
8699 + "default.handlebars->23->812"
8700 ]
8701 },
8702 {
@@ -8698,7 +8708,7 @@
8708 "pt": "Cazaque",
8709 "ru": "Казахский",
8710 "xloc": [
8701 - "default.handlebars->23->811"
8711 + "default.handlebars->23->813"
8712 ]
8713 },
8714 {
@@ -8710,7 +8720,7 @@
8720 "pt": "KernelDriver",
8721 "ru": "Драйвер ядра",
8722 "xloc": [
8713 - "default.handlebars->23->613"
8723 + "default.handlebars->23->615"
8724 ]
8725 },
8726 {
@@ -8723,8 +8733,8 @@
8733 "pt": "Nome da chave",
8734 "ru": "Имя ключа",
8735 "xloc": [
8726 - "default.handlebars->23->702",
8727 - "default.handlebars->23->705"
8736 + "default.handlebars->23->704",
8737 + "default.handlebars->23->707"
8738 ]
8739 },
8740 {
@@ -8749,7 +8759,7 @@
8759 "pt": "Khmer",
8760 "ru": "Кхмерский",
8761 "xloc": [
8752 - "default.handlebars->23->812"
8762 + "default.handlebars->23->814"
8763 ]
8764 },
8765 {
@@ -8761,7 +8771,7 @@
8771 "pt": "Kirghiz",
8772 "ru": "Киргизский",
8773 "xloc": [
8764 - "default.handlebars->23->813"
8774 + "default.handlebars->23->815"
8775 ]
8776 },
8777 {
@@ -8773,7 +8783,7 @@
8783 "pt": "Klingon",
8784 "ru": "Клингонский",
8785 "xloc": [
8776 - "default.handlebars->23->814"
8786 + "default.handlebars->23->816"
8787 ]
8788 },
8789 {
@@ -8786,7 +8796,7 @@
8796 "pt": "coreano",
8797 "ru": "Korean",
8798 "xloc": [
8789 - "default.handlebars->23->815"
8799 + "default.handlebars->23->817"
8800 ]
8801 },
8802 {
@@ -8799,7 +8809,7 @@
8809 "pt": "Coreano (Coréia do Norte)",
8810 "ru": "Корейский (Северная Корея)",
8811 "xloc": [
8802 - "default.handlebars->23->816"
8812 + "default.handlebars->23->818"
8813 ]
8814 },
8815 {
@@ -8812,7 +8822,7 @@
8822 "pt": "Coreano (Coréia do Sul)",
8823 "ru": "Корейский (Южная Корея)",
8824 "xloc": [
8815 - "default.handlebars->23->817"
8825 + "default.handlebars->23->819"
8826 ]
8827 },
8828 {
@@ -8823,8 +8833,8 @@
8833 "pt": "LF",
8834 "ru": "LF",
8835 "xloc": [
8826 - "default.handlebars->23->625",
8827 - "default.handlebars->23->634"
8836 + "default.handlebars->23->627",
8837 + "default.handlebars->23->636"
8838 ]
8839 },
8840 {
@@ -8837,7 +8847,7 @@
8847 "pt": "Língua",
8848 "ru": "Язык",
8849 "xloc": [
8840 - "default.handlebars->23->910"
8850 + "default.handlebars->23->912"
8851 ]
8852 },
8853 {
@@ -8863,7 +8873,7 @@
8873 "pt": "Foco grande",
8874 "ru": "Большой Фокус",
8875 "xloc": [
8866 - "default.handlebars->23->602"
8876 + "default.handlebars->23->604"
8877 ]
8878 },
8879 {
@@ -9006,7 +9016,7 @@
9016 "pt": "Último acesso",
9017 "ru": "Последний доступ",
9018 "xloc": [
9009 - "default.handlebars->23->1194"
9019 + "default.handlebars->23->1196"
9020 ]
9021 },
9022 {
@@ -9019,7 +9029,7 @@
9029 "pt": "Último login",
9030 "ru": "Последний вход в систему",
9031 "xloc": [
9022 - "default.handlebars->23->1321"
9032 + "default.handlebars->23->1323"
9033 ]
9034 },
9035 {
@@ -9060,7 +9070,7 @@
9070 "pt": "Última alteração: {0}",
9071 "ru": "Последнее изменение: {0}",
9072 "xloc": [
9063 - "default.handlebars->23->1325"
9073 + "default.handlebars->23->1327"
9074 ]
9075 },
9076 {
@@ -9098,7 +9108,7 @@
9108 "pt": "Último login: {0}",
9109 "ru": "Последний вход в систему: {0}",
9110 "xloc": [
9101 - "default.handlebars->23->1204"
9111 + "default.handlebars->23->1206"
9112 ]
9113 },
9114 {
@@ -9111,7 +9121,7 @@
9121 "pt": "Visto pela última vez:",
9122 "ru": "Последнее посещение:",
9123 "xloc": [
9114 - "default.handlebars->23->517",
9124 + "default.handlebars->23->519",
9125 "default.handlebars->23->83"
9126 ]
9127 },
@@ -9163,7 +9173,7 @@
9173 "pt": "Latim",
9174 "ru": "Латинский",
9175 "xloc": [
9166 - "default.handlebars->23->818"
9176 + "default.handlebars->23->820"
9177 ]
9178 },
9179 {
@@ -9175,7 +9185,7 @@
9185 "pt": "letão",
9186 "ru": "Латышский",
9187 "xloc": [
9178 - "default.handlebars->23->819"
9188 + "default.handlebars->23->821"
9189 ]
9190 },
9191 {
@@ -9204,7 +9214,7 @@
9214 "pt": "Menos",
9215 "ru": "Меньше",
9216 "xloc": [
9207 - "default.handlebars->23->1454"
9217 + "default.handlebars->23->1456"
9218 ]
9219 },
9220 {
@@ -9230,7 +9240,7 @@
9240 "ru": "Ограниченный ввод",
9241 "xloc": [
9242 "default-mobile.handlebars->9->323",
9233 - "default.handlebars->23->1116"
9243 + "default.handlebars->23->1118"
9244 ]
9245 },
9246 {
@@ -9243,7 +9253,7 @@
9253 "ru": "Только ограниченный ввод",
9254 "xloc": [
9255 "default-mobile.handlebars->9->298",
9246 - "default.handlebars->23->1086"
9256 + "default.handlebars->23->1088"
9257 ]
9258 },
9259 {
@@ -9257,7 +9267,7 @@
9267 "ru": "Ссылка",
9268 "xloc": [
9269 "default-mobile.handlebars->9->68",
9260 - "default.handlebars->23->1147",
9270 + "default.handlebars->23->1149",
9271 "default.handlebars->container->column_l->p42->p42tbl->1->0->4"
9272 ]
9273 },
@@ -9360,7 +9370,7 @@
9370 "pt": "Linux ARM, Raspberry Pi (32 bits)",
9371 "ru": "Linux ARM, Raspberry Pi (32bit)",
9372 "xloc": [
9363 - "default.handlebars->23->570"
9373 + "default.handlebars->23->572"
9374 ]
9375 },
9376 {
@@ -9436,7 +9446,7 @@
9446 "pt": "Linux x86 (32 bits)",
9447 "ru": "Linux x86 (32bit)",
9448 "xloc": [
9439 - "default.handlebars->23->567"
9449 + "default.handlebars->23->569"
9450 ]
9451 },
9452 {
@@ -9448,7 +9458,7 @@
9458 "pt": "Linux x86 (64 bits)",
9459 "ru": "Linux x86 (64bit)",
9460 "xloc": [
9451 - "default.handlebars->23->568"
9461 + "default.handlebars->23->570"
9462 ]
9463 },
9464 {
@@ -9475,7 +9485,7 @@
9485 "pt": "Lituano",
9486 "ru": "Литовский",
9487 "xloc": [
9478 - "default.handlebars->23->820"
9488 + "default.handlebars->23->822"
9489 ]
9490 },
9491 {
@@ -9489,10 +9499,10 @@
9499 "ru": "Загрузка...",
9500 "xloc": [
9501 "default-mobile.handlebars->9->31",
9492 - "default.handlebars->23->562",
9493 - "default.handlebars->23->698",
9494 - "default.handlebars->23->964",
9495 - "default.handlebars->23->966"
9502 + "default.handlebars->23->564",
9503 + "default.handlebars->23->700",
9504 + "default.handlebars->23->966",
9505 + "default.handlebars->23->968"
9506 ]
9507 },
9508 {
@@ -9540,7 +9550,7 @@
9550 "pt": "Configurações de localização",
9551 "ru": "Настройки локализации",
9552 "xloc": [
9543 - "default.handlebars->23->913",
9553 + "default.handlebars->23->915",
9554 "default.handlebars->container->column_l->p2->p2AccountActions->3->5"
9555 ]
9556 },
@@ -9578,7 +9588,7 @@
9588 "pt": "Bloquear conta",
9589 "ru": "Заблокировать аккаунт",
9590 "xloc": [
9581 - "default.handlebars->23->1255"
9591 + "default.handlebars->23->1257"
9592 ]
9593 },
9594 {
@@ -9591,7 +9601,7 @@
9601 "pt": "Bloqueado",
9602 "ru": "Заблокирован",
9603 "xloc": [
9594 - "default.handlebars->23->1205"
9604 + "default.handlebars->23->1207"
9605 ]
9606 },
9607 {
@@ -9604,7 +9614,7 @@
9614 "pt": "Conta bloqueada",
9615 "ru": "Заблокированный аккаунт",
9616 "xloc": [
9607 - "default.handlebars->23->1306"
9617 + "default.handlebars->23->1308"
9618 ]
9619 },
9620 {
@@ -9713,7 +9723,7 @@
9723 "pt": "Luxemburguês",
9724 "ru": "Люксембургский",
9725 "xloc": [
9716 - "default.handlebars->23->821"
9726 + "default.handlebars->23->823"
9727 ]
9728 },
9729 {
@@ -9770,8 +9780,8 @@
9780 "default.handlebars->23->192",
9781 "default.handlebars->23->379",
9782 "default.handlebars->23->481",
9773 - "default.handlebars->23->685",
9774 - "default.handlebars->23->686",
9783 + "default.handlebars->23->687",
9784 + "default.handlebars->23->688",
9785 "default.handlebars->container->column_l->p15->consoleTable->1->6->1->1->1->0->p15outputselecttd->p15outputselect->3"
9786 ]
9787 },
@@ -9796,7 +9806,7 @@
9806 "pt": "Login do MQTT",
9807 "ru": "MQTT Вход",
9808 "xloc": [
9799 - "default.handlebars->23->508"
9809 + "default.handlebars->23->510"
9810 ]
9811 },
9812 {
@@ -9809,7 +9819,7 @@
9819 "ru": "Подключен MQTT канал",
9820 "xloc": [
9821 "default-mobile.handlebars->9->203",
9812 - "default.handlebars->23->516"
9822 + "default.handlebars->23->518"
9823 ]
9824 },
9825 {
@@ -9822,7 +9832,7 @@
9832 "ru": "Подключен MQTT",
9833 "xloc": [
9834 "default.handlebars->23->157",
9825 - "default.handlebars->23->515"
9835 + "default.handlebars->23->517"
9836 ]
9837 },
9838 {
@@ -9872,7 +9882,7 @@
9882 "pt": "MacOS (64 bits)",
9883 "ru": "MacOS (64-разрядная)",
9884 "xloc": [
9875 - "default.handlebars->23->569"
9885 + "default.handlebars->23->571"
9886 ]
9887 },
9888 {
@@ -9910,7 +9920,7 @@
9920 "pt": "Mensagens do servidor principal",
9921 "ru": "Сообщения главного сервера",
9922 "xloc": [
9913 - "default.handlebars->23->1431"
9923 + "default.handlebars->23->1433"
9924 ]
9925 },
9926 {
@@ -9922,7 +9932,7 @@
9932 "pt": "Malaio",
9933 "ru": "Малайский",
9934 "xloc": [
9925 - "default.handlebars->23->823"
9935 + "default.handlebars->23->825"
9936 ]
9937 },
9938 {
@@ -9934,7 +9944,7 @@
9944 "pt": "Malaiala",
9945 "ru": "Малаяламский",
9946 "xloc": [
9937 - "default.handlebars->23->824"
9947 + "default.handlebars->23->826"
9948 ]
9949 },
9950 {
@@ -9946,7 +9956,7 @@
9956 "pt": "Maltês",
9957 "ru": "Мальтийский",
9958 "xloc": [
9949 - "default.handlebars->23->825"
9959 + "default.handlebars->23->827"
9960 ]
9961 },
9962 {
@@ -9973,8 +9983,8 @@
9983 "xloc": [
9984 "default-mobile.handlebars->9->295",
9985 "default-mobile.handlebars->9->313",
9976 - "default.handlebars->23->1083",
9977 - "default.handlebars->23->1106"
9986 + "default.handlebars->23->1085",
9987 + "default.handlebars->23->1108"
9988 ]
9989 },
9990 {
@@ -9988,8 +9998,8 @@
9998 "xloc": [
9999 "default-mobile.handlebars->9->294",
10000 "default-mobile.handlebars->9->312",
9991 - "default.handlebars->23->1082",
9992 - "default.handlebars->23->1105"
10001 + "default.handlebars->23->1084",
10002 + "default.handlebars->23->1107"
10003 ]
10004 },
10005 {
@@ -10009,7 +10019,7 @@
10019 "en": "Manage User Groups",
10020 "nl": "Beheer gebruikersgroepen.",
10021 "xloc": [
10012 - "default.handlebars->23->1254"
10022 + "default.handlebars->23->1256"
10023 ]
10024 },
10025 {
@@ -10022,7 +10032,7 @@
10032 "pt": "Gerenciar Usuários",
10033 "ru": "Управление пользователями",
10034 "xloc": [
10025 - "default.handlebars->23->1253"
10035 + "default.handlebars->23->1255"
10036 ]
10037 },
10038 {
@@ -10073,7 +10083,7 @@
10083 "pt": "Gerenciar usando um agente de software",
10084 "ru": "Управление с помощью программного агента",
10085 "xloc": [
10076 - "default.handlebars->23->946"
10086 + "default.handlebars->23->948"
10087 ]
10088 },
10089 {
@@ -10087,7 +10097,7 @@
10097 "ru": "Управляется с помощью программного агента",
10098 "xloc": [
10099 "default-mobile.handlebars->9->275",
10090 - "default.handlebars->23->970"
10100 + "default.handlebars->23->972"
10101 ]
10102 },
10103 {
@@ -10099,7 +10109,7 @@
10109 "pt": "Gerenciador",
10110 "ru": "Менеджер",
10111 "xloc": [
10102 - "default.handlebars->23->1210"
10112 + "default.handlebars->23->1212"
10113 ]
10114 },
10115 {
@@ -10137,7 +10147,7 @@
10147 "pt": "Maori",
10148 "ru": "Маори",
10149 "xloc": [
10140 - "default.handlebars->23->826"
10150 + "default.handlebars->23->828"
10151 ]
10152 },
10153 {
@@ -10164,7 +10174,7 @@
10174 "pt": "Marathi",
10175 "ru": "Маратхи",
10176 "xloc": [
10167 - "default.handlebars->23->827"
10177 + "default.handlebars->23->829"
10178 ]
10179 },
10180 {
@@ -10173,7 +10183,7 @@
10183 "en": "Max Sessions Reached",
10184 "nl": "Max Sessies bereikt",
10185 "xloc": [
10176 - "default.handlebars->23->1395"
10186 + "default.handlebars->23->1397"
10187 ]
10188 },
10189 {
@@ -10215,7 +10225,7 @@
10225 "pt": "Megabytes",
10226 "ru": "Мегабайт",
10227 "xloc": [
10218 - "default.handlebars->23->1421"
10228 + "default.handlebars->23->1423"
10229 ]
10230 },
10231 {
@@ -10228,7 +10238,7 @@
10238 "pt": "Memória",
10239 "ru": "ОЗУ",
10240 "xloc": [
10231 - "default.handlebars->23->1412",
10241 + "default.handlebars->23->1414",
10242 "default.handlebars->23->75",
10243 "default.handlebars->container->column_l->p40->3->1->p40type->3"
10244 ]
@@ -10262,7 +10272,7 @@
10272 "ru": "Консоль Mesh Agent-а",
10273 "xloc": [
10274 "default-mobile.handlebars->9->302",
10265 - "default.handlebars->23->1090"
10275 + "default.handlebars->23->1092"
10276 ]
10277 },
10278 {
@@ -10308,8 +10318,8 @@
10318 "en": "MeshAction (.txt)",
10319 "nl": "MeshAction (.txt)",
10320 "xloc": [
10311 - "default.handlebars->23->576",
10312 - "default.handlebars->23->578"
10321 + "default.handlebars->23->578",
10322 + "default.handlebars->23->580"
10323 ]
10324 },
10325 {
@@ -10320,7 +10330,7 @@
10330 "nl": "MeshAgent verkeer",
10331 "ru": "Трафик MeshAgent-а",
10332 "xloc": [
10323 - "default.handlebars->23->1433"
10333 + "default.handlebars->23->1435"
10334 ]
10335 },
10336 {
@@ -10331,7 +10341,7 @@
10341 "nl": "MeshAgent update",
10342 "ru": "Обновление MeshAgent-а",
10343 "xloc": [
10334 - "default.handlebars->23->1434"
10344 + "default.handlebars->23->1436"
10345 ]
10346 },
10347 {
@@ -10355,7 +10365,7 @@
10365 "pt": "MeshCentral Errors",
10366 "ru": "Ошибки MeshCentral",
10367 "xloc": [
10358 - "default.handlebars->23->965"
10368 + "default.handlebars->23->967"
10369 ]
10370 },
10371 {
@@ -10367,7 +10377,7 @@
10377 "pt": "MeshCentral Router",
10378 "ru": "MeshCentral Маршрутизатор",
10379 "xloc": [
10370 - "default.handlebars->23->564"
10380 + "default.handlebars->23->566"
10381 ]
10382 },
10383 {
@@ -10379,7 +10389,7 @@
10389 "pt": "O MeshCentral Router é uma ferramenta do Windows para mapeamento de portas TCP. Você pode, por exemplo, RDP em um dispositivo remoto através deste servidor.",
10390 "ru": "MeshCentral Маршрутизатор это инструмент Windows для сопоставления портов TCP. Например, через этот сервер вы можете установить RDP к удаленному устройство.",
10391 "xloc": [
10382 - "default.handlebars->23->563"
10392 + "default.handlebars->23->565"
10393 ]
10394 },
10395 {
@@ -10404,7 +10414,7 @@
10414 "pt": "Peering do servidor MeshCentral",
10415 "ru": "Соединения MeshCentral Сервера",
10416 "xloc": [
10407 - "default.handlebars->23->1432"
10417 + "default.handlebars->23->1434"
10418 ]
10419 },
10420 {
@@ -10430,7 +10440,7 @@
10440 "xloc": [
10441 "default.handlebars->23->112",
10442 "default.handlebars->23->113",
10433 - "default.handlebars->23->963"
10443 + "default.handlebars->23->965"
10444 ]
10445 },
10446 {
@@ -10443,56 +10453,56 @@
10453 "ru": "MeshCmd",
10454 "xloc": [
10455 "default.handlebars->23->207",
10446 - "default.handlebars->23->574"
10456 + "default.handlebars->23->576"
10457 ]
10458 },
10459 {
10460 "en": "MeshCmd (Linux ARM, 32bit)",
10461 "nl": "MeshCmd (Linux ARM, 32bit)",
10462 "xloc": [
10453 - "default.handlebars->23->586"
10463 + "default.handlebars->23->588"
10464 ]
10465 },
10466 {
10467 "en": "MeshCmd (Linux x86, 32bit)",
10468 "nl": "MeshCmd (Linux x86, 32bit)",
10469 "xloc": [
10460 - "default.handlebars->23->583"
10470 + "default.handlebars->23->585"
10471 ]
10472 },
10473 {
10474 "en": "MeshCmd (Linux x86, 64bit)",
10475 "nl": "MeshCmd (Linux x86, 64bit)",
10476 "xloc": [
10467 - "default.handlebars->23->584"
10477 + "default.handlebars->23->586"
10478 ]
10479 },
10480 {
10481 "en": "MeshCmd (MacOS, 64bit)",
10482 "nl": "MeshCmd (MacOS, 64bit)",
10483 "xloc": [
10474 - "default.handlebars->23->585"
10484 + "default.handlebars->23->587"
10485 ]
10486 },
10487 {
10488 "en": "MeshCmd (Win32 executable)",
10489 "nl": "MeshCmd (Win32 executable)",
10490 "xloc": [
10481 - "default.handlebars->23->581"
10491 + "default.handlebars->23->583"
10492 ]
10493 },
10494 {
10495 "en": "MeshCmd (Win64 executable)",
10496 "nl": "MeshCmd (Win64 executable)",
10497 "xloc": [
10488 - "default.handlebars->23->582"
10498 + "default.handlebars->23->584"
10499 ]
10500 },
10501 {
10502 "en": "MeshCmd is a command line tool that performs lots of different operations. The action file can optionally be downloaded and edited to provide server information and credentials.",
10503 "nl": "MeshCmd is een opdrachtregelprogramma dat veel verschillende bewerkingen uitvoert. Het actiebestand is optioneel, en kan worden gedownload en bewerkt om serverinformatie en referenties te verstrekken.",
10504 "xloc": [
10495 - "default.handlebars->23->571"
10505 + "default.handlebars->23->573"
10506 ]
10507 },
10508 {
@@ -10542,7 +10552,7 @@
10552 "ru": "Сообщение",
10553 "xloc": [
10554 "default.handlebars->23->302",
10545 - "default.handlebars->23->543"
10555 + "default.handlebars->23->545"
10556 ]
10557 },
10558 {
@@ -10554,7 +10564,7 @@
10564 "pt": "Despachante de mensagens",
10565 "ru": "Диспетчер сообщения",
10566 "xloc": [
10557 - "default.handlebars->23->1430"
10567 + "default.handlebars->23->1432"
10568 ]
10569 },
10570 {
@@ -10615,7 +10625,7 @@
10625 "pt": "Moldavian",
10626 "ru": "Молдавский",
10627 "xloc": [
10618 - "default.handlebars->23->828"
10628 + "default.handlebars->23->830"
10629 ]
10630 },
10631 {
@@ -10628,7 +10638,7 @@
10638 "pt": "Mais",
10639 "ru": "Еще",
10640 "xloc": [
10631 - "default.handlebars->23->1453"
10641 + "default.handlebars->23->1455"
10642 ]
10643 },
10644 {
@@ -10770,7 +10780,7 @@
10780 "pt": "Console do meu servidor",
10781 "ru": "Консоль моего сервера",
10782 "xloc": [
10773 - "default.handlebars->23->680"
10783 + "default.handlebars->23->682"
10784 ]
10785 },
10786 {
@@ -10856,8 +10866,8 @@
10866 "pt": "Minha chave",
10867 "ru": "Мой ключ",
10868 "xloc": [
10859 - "default.handlebars->23->703",
10860 - "default.handlebars->23->706"
10869 + "default.handlebars->23->705",
10870 + "default.handlebars->23->708"
10871 ]
10872 },
10873 {
@@ -10875,20 +10885,20 @@
10885 "default-mobile.handlebars->9->289",
10886 "default-mobile.handlebars->9->56",
10887 "default-mobile.handlebars->container->page_content->column_l->p10->p10desktop->deskarea3->deskarea3x->DeskTools->5->1->1",
10878 - "default.handlebars->23->1055",
10879 - "default.handlebars->23->1192",
10880 - "default.handlebars->23->1233",
10881 - "default.handlebars->23->1260",
10882 - "default.handlebars->23->1264",
10883 - "default.handlebars->23->1269",
10888 + "default.handlebars->23->1057",
10889 + "default.handlebars->23->1194",
10890 + "default.handlebars->23->1235",
10891 + "default.handlebars->23->1262",
10892 + "default.handlebars->23->1266",
10893 "default.handlebars->23->1271",
10885 - "default.handlebars->23->1294",
10886 - "default.handlebars->23->607",
10894 + "default.handlebars->23->1273",
10895 + "default.handlebars->23->1296",
10896 + "default.handlebars->23->609",
10897 "default.handlebars->23->71",
10898 "default.handlebars->23->80",
10899 "default.handlebars->23->94",
10890 - "default.handlebars->23->944",
10891 - "default.handlebars->23->971",
10900 + "default.handlebars->23->946",
10901 + "default.handlebars->23->973",
10902 "default.handlebars->container->column_l->p11->deskarea0->deskarea3x->DeskTools->deskToolsArea->DeskToolsProcessTab->deskToolsHeader->3",
10903 "default.handlebars->container->column_l->p11->deskarea0->deskarea3x->DeskTools->deskToolsArea->DeskToolsServiceTab->deskToolsServiceHeader->3",
10904 "default.handlebars->container->column_l->p42->p42tbl->1->0->2"
@@ -10917,7 +10927,7 @@
10927 "pt": "Nome1, Nome2, Nome3",
10928 "ru": "Имя1, Имя2, Имя3",
10929 "xloc": [
10920 - "default.handlebars->23->1246"
10930 + "default.handlebars->23->1248"
10931 ]
10932 },
10933 {
@@ -10930,7 +10940,7 @@
10940 "pt": "Navajo",
10941 "ru": "Навахо",
10942 "xloc": [
10933 - "default.handlebars->23->829"
10943 + "default.handlebars->23->831"
10944 ]
10945 },
10946 {
@@ -10943,7 +10953,7 @@
10953 "pt": "Ndonga",
10954 "ru": "Ндонга",
10955 "xloc": [
10946 - "default.handlebars->23->830"
10956 + "default.handlebars->23->832"
10957 ]
10958 },
10959 {
@@ -10956,7 +10966,7 @@
10966 "pt": "Nepali",
10967 "ru": "Непальский",
10968 "xloc": [
10959 - "default.handlebars->23->831"
10969 + "default.handlebars->23->833"
10970 ]
10971 },
10972 {
@@ -10969,7 +10979,7 @@
10979 "pt": "Interfaces de rede",
10980 "ru": "Сетевые интерфейсы",
10981 "xloc": [
10972 - "default.handlebars->23->561"
10982 + "default.handlebars->23->563"
10983 ]
10984 },
10985 {
@@ -10982,7 +10992,7 @@
10992 "pt": "Roteador de rede",
10993 "ru": "Сетевой маршрутизатор",
10994 "xloc": [
10985 - "default.handlebars->23->580"
10995 + "default.handlebars->23->582"
10996 ]
10997 },
10998 {
@@ -11023,9 +11033,9 @@
11033 "ru": "Новая группа устройств",
11034 "xloc": [
11035 "default-mobile.handlebars->9->50",
11026 - "default.handlebars->23->553",
11027 - "default.handlebars->23->937",
11028 - "default.handlebars->23->949"
11036 + "default.handlebars->23->555",
11037 + "default.handlebars->23->939",
11038 + "default.handlebars->23->951"
11039 ]
11040 },
11041 {
@@ -11040,8 +11050,8 @@
11050 "xloc": [
11051 "default-mobile.handlebars->9->247",
11052 "default-mobile.handlebars->9->79",
11043 - "default.handlebars->23->1165",
11044 - "default.handlebars->23->644",
11053 + "default.handlebars->23->1167",
11054 + "default.handlebars->23->646",
11055 "default.handlebars->container->column_l->p13->p13toolbar->1->2->1->3",
11056 "default.handlebars->container->column_l->p5->p5toolbar->1->0->p5filehead->3"
11057 ]
@@ -11079,8 +11089,8 @@
11089 "xloc": [
11090 "default-mobile.handlebars->9->45",
11091 "default-mobile.handlebars->9->46",
11082 - "default.handlebars->23->932",
11083 - "default.handlebars->23->933"
11092 + "default.handlebars->23->934",
11093 + "default.handlebars->23->935"
11094 ]
11095 },
11096 {
@@ -11121,9 +11131,9 @@
11131 "pt": "Nenhum evento encontrado",
11132 "ru": "События не найдены",
11133 "xloc": [
11124 - "default.handlebars->23->1182",
11125 - "default.handlebars->23->1378",
11126 - "default.handlebars->23->678"
11134 + "default.handlebars->23->1184",
11135 + "default.handlebars->23->1380",
11136 + "default.handlebars->23->680"
11137 ]
11138 },
11139 {
@@ -11137,7 +11147,7 @@
11147 "ru": "Нет доступа к файлу",
11148 "xloc": [
11149 "default-mobile.handlebars->9->300",
11140 - "default.handlebars->23->1088"
11150 + "default.handlebars->23->1090"
11151 ]
11152 },
11153 {
@@ -11151,7 +11161,7 @@
11161 "ru": "Файлов нет",
11162 "xloc": [
11163 "default-mobile.handlebars->9->321",
11154 - "default.handlebars->23->1114"
11164 + "default.handlebars->23->1116"
11165 ]
11166 },
11167 {
@@ -11165,8 +11175,8 @@
11175 "xloc": [
11176 "default-mobile.handlebars->9->301",
11177 "default-mobile.handlebars->9->322",
11168 - "default.handlebars->23->1089",
11169 - "default.handlebars->23->1115"
11178 + "default.handlebars->23->1091",
11179 + "default.handlebars->23->1117"
11180 ]
11181 },
11182 {
@@ -11210,7 +11220,7 @@
11220 "en": "No Members",
11221 "nl": "Geen leden",
11222 "xloc": [
11213 - "default.handlebars->23->1281"
11223 + "default.handlebars->23->1283"
11224 ]
11225 },
11226 {
@@ -11222,7 +11232,7 @@
11232 "pt": "Não há novos grupos de dispositivos",
11233 "ru": "Новых групп устройств нет",
11234 "xloc": [
11225 - "default.handlebars->23->1256"
11235 + "default.handlebars->23->1258"
11236 ]
11237 },
11238 {
@@ -11234,9 +11244,9 @@
11244 "pt": "Nenhuma política",
11245 "ru": "Политик нет",
11246 "xloc": [
11237 - "default.handlebars->23->1027",
11238 - "default.handlebars->23->1030",
11239 - "default.handlebars->23->996"
11247 + "default.handlebars->23->1029",
11248 + "default.handlebars->23->1032",
11249 + "default.handlebars->23->998"
11250 ]
11251 },
11252 {
@@ -11251,11 +11261,11 @@
11261 "default-mobile.handlebars->9->284",
11262 "default-mobile.handlebars->9->327",
11263 "default-mobile.handlebars->9->65",
11254 - "default.handlebars->23->1021",
11255 - "default.handlebars->23->1120",
11256 - "default.handlebars->23->1287",
11257 - "default.handlebars->23->1361",
11258 - "default.handlebars->23->958"
11264 + "default.handlebars->23->1023",
11265 + "default.handlebars->23->1122",
11266 + "default.handlebars->23->1289",
11267 + "default.handlebars->23->1363",
11268 + "default.handlebars->23->960"
11269 ]
11270 },
11271 {
@@ -11270,7 +11280,7 @@
11280 "xloc": [
11281 "default-mobile.handlebars->9->215",
11282 "default.handlebars->23->245",
11273 - "default.handlebars->23->539"
11283 + "default.handlebars->23->541"
11284 ]
11285 },
11286 {
@@ -11283,7 +11293,7 @@
11293 "ru": "Терминала нет",
11294 "xloc": [
11295 "default-mobile.handlebars->9->320",
11286 - "default.handlebars->23->1113"
11296 + "default.handlebars->23->1115"
11297 ]
11298 },
11299 {
@@ -11296,7 +11306,7 @@
11306 "ru": "Нет доступа к терминалу",
11307 "xloc": [
11308 "default-mobile.handlebars->9->299",
11299 - "default.handlebars->23->1087"
11309 + "default.handlebars->23->1089"
11310 ]
11311 },
11312 {
@@ -11308,7 +11318,7 @@
11318 "pt": "Sem ferramentas (MeshCmd / Roteador)",
11319 "ru": "Нет инструментов (MeshCmd/Маршрутизатор)",
11320 "xloc": [
11311 - "default.handlebars->23->1257"
11321 + "default.handlebars->23->1259"
11322 ]
11323 },
11324 {
@@ -11316,8 +11326,8 @@
11326 "en": "No device groups in common",
11327 "nl": "Geen gemeenschappelijke apparaatgroepen",
11328 "xloc": [
11319 - "default.handlebars->23->1290",
11320 - "default.handlebars->23->1364"
11329 + "default.handlebars->23->1292",
11330 + "default.handlebars->23->1366"
11331 ]
11332 },
11333 {
@@ -11379,7 +11389,7 @@
11389 "en": "No devices in this device group.",
11390 "nl": "Geen apparaten in deze apparaatgroep.",
11391 "xloc": [
11382 - "default.handlebars->23->1144"
11392 + "default.handlebars->23->1146"
11393 ]
11394 },
11395 {
@@ -11423,7 +11433,7 @@
11433 "en": "No groups found.",
11434 "nl": "Geen groepen gevonden.",
11435 "xloc": [
11426 - "default.handlebars->23->1259"
11436 + "default.handlebars->23->1261"
11437 ]
11438 },
11439 {
@@ -11471,7 +11481,7 @@
11481 "pt": "Não existe outro grupo de dispositivos do mesmo tipo.",
11482 "ru": "Других групп устройств такого же типа не существует.",
11483 "xloc": [
11474 - "default.handlebars->23->556"
11484 + "default.handlebars->23->558"
11485 ]
11486 },
11487 {
@@ -11494,7 +11504,7 @@
11504 "pt": "Sem direitos de servidor",
11505 "ru": "Нет серверных прав",
11506 "xloc": [
11497 - "default.handlebars->23->1307"
11507 + "default.handlebars->23->1309"
11508 ]
11509 },
11510 {
@@ -11502,7 +11512,7 @@
11512 "en": "No user group memberships",
11513 "nl": "Geen gebruikersgroep lidmaatschap",
11514 "xloc": [
11505 - "default.handlebars->23->1370"
11515 + "default.handlebars->23->1372"
11516 ]
11517 },
11518 {
@@ -11514,7 +11524,7 @@
11524 "pt": "Usuários não encontrados.",
11525 "ru": "Пользователи не найдены.",
11526 "xloc": [
11517 - "default.handlebars->23->1200"
11527 + "default.handlebars->23->1202"
11528 ]
11529 },
11530 {
@@ -11561,10 +11571,10 @@
11571 "default-mobile.handlebars->9->75",
11572 "default-mobile.handlebars->9->93",
11573 "default-mobile.handlebars->9->95",
11564 - "default.handlebars->23->1153",
11565 - "default.handlebars->23->1268",
11566 - "default.handlebars->23->1326",
11567 - "default.handlebars->23->1330",
11574 + "default.handlebars->23->1155",
11575 + "default.handlebars->23->1270",
11576 + "default.handlebars->23->1328",
11577 + "default.handlebars->23->1332",
11578 "default.handlebars->23->166",
11579 "default.handlebars->23->181",
11580 "default.handlebars->23->182",
@@ -11573,10 +11583,10 @@
11583 "default.handlebars->23->439",
11584 "default.handlebars->23->483",
11585 "default.handlebars->23->63",
11576 - "default.handlebars->23->973",
11577 - "default.handlebars->23->977",
11578 - "default.handlebars->23->989",
11579 - "default.handlebars->23->994",
11586 + "default.handlebars->23->975",
11587 + "default.handlebars->23->979",
11588 + "default.handlebars->23->991",
11589 + "default.handlebars->23->996",
11590 "default.handlebars->container->column_l->p41->3->3->p41traceStatus"
11591 ]
11592 },
@@ -11603,7 +11613,7 @@
11613 "pt": "norueguês",
11614 "ru": "Норвежский",
11615 "xloc": [
11606 - "default.handlebars->23->832"
11616 + "default.handlebars->23->834"
11617 ]
11618 },
11619 {
@@ -11616,7 +11626,7 @@
11626 "pt": "Norueguês (Bokmal)",
11627 "ru": "Норвежский (Букмол)",
11628 "xloc": [
11619 - "default.handlebars->23->833"
11629 + "default.handlebars->23->835"
11630 ]
11631 },
11632 {
@@ -11629,7 +11639,7 @@
11639 "pt": "Norueguês (Nynorsk)",
11640 "ru": "Норвежский (Нюнорск)",
11641 "xloc": [
11632 - "default.handlebars->23->834"
11642 + "default.handlebars->23->836"
11643 ]
11644 },
11645 {
@@ -11664,8 +11674,8 @@
11674 "en": "Not Connected",
11675 "nl": "Niet verbonden",
11676 "xloc": [
11667 - "default.handlebars->23->1133",
11668 - "default.handlebars->23->1139"
11677 + "default.handlebars->23->1135",
11678 + "default.handlebars->23->1141"
11679 ]
11680 },
11681 {
@@ -11677,7 +11687,7 @@
11687 "pt": "Não configurado",
11688 "ru": "Не задано",
11689 "xloc": [
11680 - "default.handlebars->23->1312"
11690 + "default.handlebars->23->1314"
11691 ]
11692 },
11693 {
@@ -11690,10 +11700,10 @@
11700 "pt": "Notas",
11701 "ru": "Заметки",
11702 "xloc": [
11693 - "default.handlebars->23->1002",
11694 - "default.handlebars->23->1337",
11703 + "default.handlebars->23->1004",
11704 + "default.handlebars->23->1339",
11705 "default.handlebars->23->486",
11696 - "default.handlebars->23->520"
11706 + "default.handlebars->23->522"
11707 ]
11708 },
11709 {
@@ -11716,8 +11726,8 @@
11726 "pt": "Configurações de notificação",
11727 "ru": "Настройки уведомлений",
11728 "xloc": [
11719 - "default.handlebars->23->1132",
11720 - "default.handlebars->23->919",
11729 + "default.handlebars->23->1134",
11730 + "default.handlebars->23->921",
11731 "default.handlebars->container->column_l->p2->p2AccountActions->3->8"
11732 ]
11733 },
@@ -11727,7 +11737,7 @@
11737 "en": "Notification settings must also be turned on in account settings.",
11738 "nl": "Meldingsinstellingen moeten ook worden ingeschakeld in accountinstellingen.",
11739 "xloc": [
11730 - "default.handlebars->23->1128"
11740 + "default.handlebars->23->1130"
11741 ]
11742 },
11743 {
@@ -11739,7 +11749,7 @@
11749 "pt": "Som de notificação.",
11750 "ru": "Звук уведомления.",
11751 "xloc": [
11742 - "default.handlebars->23->914"
11752 + "default.handlebars->23->916"
11753 ]
11754 },
11755 {
@@ -11751,7 +11761,7 @@
11761 "pt": "Notificações",
11762 "ru": "Уведомления",
11763 "xloc": [
11754 - "default.handlebars->23->995"
11764 + "default.handlebars->23->997"
11765 ]
11766 },
11767 {
@@ -11763,7 +11773,7 @@
11773 "pt": "Notificar",
11774 "ru": "Уведомить",
11775 "xloc": [
11766 - "default.handlebars->23->1339"
11776 + "default.handlebars->23->1341"
11777 ]
11778 },
11779 {
@@ -11776,9 +11786,9 @@
11786 "pt": "Notificar usuário",
11787 "ru": "Уведомить пользователя",
11788 "xloc": [
11779 - "default.handlebars->23->1059",
11780 - "default.handlebars->23->1063",
11781 - "default.handlebars->23->1066"
11789 + "default.handlebars->23->1061",
11790 + "default.handlebars->23->1065",
11791 + "default.handlebars->23->1068"
11792 ]
11793 },
11794 {
@@ -11790,7 +11800,7 @@
11800 "pt": "Notificar {0}",
11801 "ru": "Уведомить {0}",
11802 "xloc": [
11793 - "default.handlebars->23->1212"
11803 + "default.handlebars->23->1214"
11804 ]
11805 },
11806 {
@@ -11805,11 +11815,12 @@
11815 "default-mobile.handlebars->9->42",
11816 "default-mobile.handlebars->dialog->idx_dlgButtonBar",
11817 "default.handlebars->23->469",
11808 - "default.handlebars->23->961",
11818 + "default.handlebars->23->963",
11819 "default.handlebars->container->dialog->idx_dlgButtonBar",
11820 "login-mobile.handlebars->dialog->idx_dlgButtonBar",
11821 "login.handlebars->dialog->idx_dlgButtonBar",
11812 - "player.htm->p11->dialog->idx_dlgButtonBar"
11822 + "player.htm->p11->dialog->idx_dlgButtonBar",
11823 + "xterm.handlebars->p11->dialog->idx_dlgButtonBar"
11824 ]
11825 },
11826 {
@@ -11834,7 +11845,7 @@
11845 "pt": "Occitânico",
11846 "ru": "Окситанский",
11847 "xloc": [
11837 - "default.handlebars->23->835"
11848 + "default.handlebars->23->837"
11849 ]
11850 },
11851 {
@@ -11847,7 +11858,7 @@
11858 "pt": "Ocorreu em {0}",
11859 "ru": "Произошло в {0}",
11860 "xloc": [
11850 - "default.handlebars->23->1381"
11861 + "default.handlebars->23->1383"
11862 ]
11863 },
11864 {
@@ -11860,7 +11871,7 @@
11871 "pt": "Usuários offline",
11872 "ru": "Оффлайн пользователи",
11873 "xloc": [
11863 - "default.handlebars->23->1197"
11874 + "default.handlebars->23->1199"
11875 ]
11876 },
11877 {
@@ -11874,7 +11885,7 @@
11885 "ru": "Старый пароль:",
11886 "xloc": [
11887 "default-mobile.handlebars->9->44",
11877 - "default.handlebars->23->931"
11888 + "default.handlebars->23->933"
11889 ]
11890 },
11891 {
@@ -11900,7 +11911,7 @@
11911 "pt": "Usuários Online",
11912 "ru": "Онлайн пользователи",
11913 "xloc": [
11903 - "default.handlebars->23->1196"
11914 + "default.handlebars->23->1198"
11915 ]
11916 },
11917 {
@@ -11913,7 +11924,7 @@
11924 "ru": "Только файлы размером меньше 200к могут быть редактированны",
11925 "xloc": [
11926 "default-mobile.handlebars->9->255",
11916 - "default.handlebars->23->652"
11927 + "default.handlebars->23->654"
11928 ]
11929 },
11930 {
@@ -11938,7 +11949,13 @@
11949 "pt": "Abrir página no dispositivo",
11950 "ru": "Открыть страницу на устройстве",
11951 "xloc": [
11941 - "default.handlebars->23->522"
11952 + "default.handlebars->23->524"
11953 + ]
11954 + },
11955 + {
11956 + "en": "Open XTerm terminal",
11957 + "xloc": [
11958 + "default.handlebars->23->501"
11959 ]
11960 },
11961 {
@@ -11978,7 +11995,7 @@
11995 "default.handlebars->23->285",
11996 "default.handlebars->23->314",
11997 "default.handlebars->23->466",
11981 - "default.handlebars->23->573",
11998 + "default.handlebars->23->575",
11999 "default.handlebars->23->79"
12000 ]
12001 },
@@ -11994,7 +12011,7 @@
12011 "xloc": [
12012 "default-mobile.handlebars->9->210",
12013 "default.handlebars->23->386",
11997 - "default.handlebars->23->531"
12014 + "default.handlebars->23->533"
12015 ]
12016 },
12017 {
@@ -12019,7 +12036,7 @@
12036 "pt": "Oriya",
12037 "ru": "Ория",
12038 "xloc": [
12022 - "default.handlebars->23->836"
12039 + "default.handlebars->23->838"
12040 ]
12041 },
12042 {
@@ -12031,7 +12048,7 @@
12048 "pt": "Oromo",
12049 "ru": "Оромо",
12050 "xloc": [
12034 - "default.handlebars->23->837"
12051 + "default.handlebars->23->839"
12052 ]
12053 },
12054 {
@@ -12082,7 +12099,7 @@
12099 "pt": "Processo próprio",
12100 "ru": "Собственный процесс",
12101 "xloc": [
12085 - "default.handlebars->23->614"
12102 + "default.handlebars->23->616"
12103 ]
12104 },
12105 {
@@ -12095,7 +12112,7 @@
12112 "ru": "PID",
12113 "xloc": [
12114 "default-mobile.handlebars->container->page_content->column_l->p10->p10desktop->deskarea3->deskarea3x->DeskTools->5->1->0",
12098 - "default.handlebars->23->610",
12115 + "default.handlebars->23->612",
12116 "default.handlebars->container->column_l->p11->deskarea0->deskarea3x->DeskTools->deskToolsArea->DeskToolsProcessTab->deskToolsHeader->1"
12117 ]
12118 },
@@ -12122,7 +12139,7 @@
12139 "pt": "Parcial",
12140 "ru": "Частично",
12141 "xloc": [
12125 - "default.handlebars->23->1211"
12142 + "default.handlebars->23->1213"
12143 ]
12144 },
12145 {
@@ -12130,9 +12147,9 @@
12147 "en": "Partial Device Group Rights",
12148 "nl": "Gedeeltelijke apparaatgroep rechten",
12149 "xloc": [
12133 - "default.handlebars->23->1019",
12134 - "default.handlebars->23->1284",
12135 - "default.handlebars->23->1358"
12150 + "default.handlebars->23->1021",
12151 + "default.handlebars->23->1286",
12152 + "default.handlebars->23->1360"
12153 ]
12154 },
12155 {
@@ -12146,7 +12163,7 @@
12163 "xloc": [
12164 "default-mobile.handlebars->9->282",
12165 "default-mobile.handlebars->9->63",
12149 - "default.handlebars->23->956"
12166 + "default.handlebars->23->958"
12167 ]
12168 },
12169 {
@@ -12158,7 +12175,7 @@
12175 "pt": "Direitos parciais",
12176 "ru": "Частичные права",
12177 "xloc": [
12161 - "default.handlebars->23->1310"
12178 + "default.handlebars->23->1312"
12179 ]
12180 },
12181 {
@@ -12184,15 +12201,15 @@
12201 "ru": "Пароль",
12202 "xloc": [
12203 "default-mobile.handlebars->9->213",
12187 - "default.handlebars->23->1235",
12188 - "default.handlebars->23->1236",
12189 - "default.handlebars->23->1322",
12204 + "default.handlebars->23->1237",
12205 + "default.handlebars->23->1238",
12206 "default.handlebars->23->1324",
12191 - "default.handlebars->23->1348",
12192 - "default.handlebars->23->1349",
12207 + "default.handlebars->23->1326",
12208 + "default.handlebars->23->1350",
12209 + "default.handlebars->23->1351",
12210 "default.handlebars->23->243",
12211 "default.handlebars->23->272",
12195 - "default.handlebars->23->537"
12212 + "default.handlebars->23->539"
12213 ]
12214 },
12215 {
@@ -12260,7 +12277,7 @@
12277 "pt": "Dica de senha",
12278 "ru": "Подсказка пароля",
12279 "xloc": [
12263 - "default.handlebars->23->1350"
12280 + "default.handlebars->23->1352"
12281 ]
12282 },
12283 {
@@ -12273,7 +12290,7 @@
12290 "ru": "Подсказка пароля:",
12291 "xloc": [
12292 "default-mobile.handlebars->9->47",
12276 - "default.handlebars->23->934"
12293 + "default.handlebars->23->936"
12294 ]
12295 },
12296 {
@@ -12285,7 +12302,7 @@
12302 "pt": "Senha incorreta",
12303 "ru": "Пароль не совпадает",
12304 "xloc": [
12288 - "default.handlebars->23->1036"
12305 + "default.handlebars->23->1038"
12306 ]
12307 },
12308 {
@@ -12311,8 +12328,8 @@
12328 "pt": "Senha*",
12329 "ru": "Пароль*",
12330 "xloc": [
12314 - "default.handlebars->23->1034",
12315 - "default.handlebars->23->1035"
12331 + "default.handlebars->23->1036",
12332 + "default.handlebars->23->1037"
12333 ]
12334 },
12335 {
@@ -12327,8 +12344,8 @@
12344 "xloc": [
12345 "default-mobile.handlebars->9->39",
12346 "default-mobile.handlebars->9->40",
12330 - "default.handlebars->23->926",
12331 - "default.handlebars->23->927",
12347 + "default.handlebars->23->928",
12348 + "default.handlebars->23->929",
12349 "login-mobile.handlebars->container->page_content->column_l->1->1->0->1->createpanel->1->1->9->1->4->1",
12350 "login-mobile.handlebars->container->page_content->column_l->1->1->0->1->createpanel->1->1->9->1->6->1",
12351 "login-mobile.handlebars->container->page_content->column_l->1->1->0->1->loginpanel->1->7->1->2->1",
@@ -12355,9 +12372,9 @@
12372 "default-mobile.handlebars->9->87",
12373 "default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->2->1->3",
12374 "default-mobile.handlebars->container->page_content->column_l->p5->p5myfiles->p5toolbar->1->0->1->3",
12358 - "default.handlebars->23->1174",
12359 - "default.handlebars->23->635",
12360 - "default.handlebars->23->657",
12375 + "default.handlebars->23->1176",
12376 + "default.handlebars->23->637",
12377 + "default.handlebars->23->659",
12378 "default.handlebars->container->column_l->p12->termTable->1->1->6->1->3",
12379 "default.handlebars->container->column_l->p13->p13toolbar->1->2->1->3",
12380 "default.handlebars->container->column_l->p5->p5toolbar->1->0->p5filehead->3"
@@ -12399,7 +12416,7 @@
12416 "pt": "Executar ação do agente",
12417 "ru": "Произвести действие агента",
12418 "xloc": [
12402 - "default.handlebars->23->688"
12419 + "default.handlebars->23->690"
12420 ]
12421 },
12422 {
@@ -12423,7 +12440,7 @@
12440 "pt": "Execute a ativação do modo de controle de administração Intel AMT (ACM).",
12441 "ru": "Выполнить активацию Intel AMT в режиме управления администратора (ACM).",
12442 "xloc": [
12426 - "default.handlebars->23->1012",
12443 + "default.handlebars->23->1014",
12444 "default.handlebars->23->231"
12445 ]
12446 },
@@ -12448,7 +12465,7 @@
12465 "pt": "Execute a ativação do modo de controle do cliente Intel AMT (CCM).",
12466 "ru": "Выполнить активацию Intel AMT в режиме управления клиента (CCM).",
12467 "xloc": [
12451 - "default.handlebars->23->1010",
12468 + "default.handlebars->23->1012",
12469 "default.handlebars->23->229"
12470 ]
12471 },
@@ -12479,8 +12496,8 @@
12496 "ru": "Права",
12497 "xloc": [
12498 "default-mobile.handlebars->9->329",
12482 - "default.handlebars->23->1123",
12483 - "default.handlebars->23->1195"
12499 + "default.handlebars->23->1125",
12500 + "default.handlebars->23->1197"
12501 ]
12502 },
12503 {
@@ -12492,7 +12509,7 @@
12509 "pt": "Persa / Irã",
12510 "ru": "Персидский/Иран",
12511 "xloc": [
12495 - "default.handlebars->23->838"
12512 + "default.handlebars->23->840"
12513 ]
12514 },
12515 {
@@ -12573,7 +12590,7 @@
12590 "ru": "Подождите пару минут для получения подтверждения.",
12591 "xloc": [
12592 "default-mobile.handlebars->9->35",
12576 - "default.handlebars->23->921"
12593 + "default.handlebars->23->923"
12594 ]
12595 },
12596 {
@@ -12584,7 +12601,7 @@
12601 "nl": "Plugin Actie",
12602 "ru": "Действие плагина",
12603 "xloc": [
12587 - "default.handlebars->23->1450",
12604 + "default.handlebars->23->1452",
12605 "default.handlebars->23->177"
12606 ]
12607 },
@@ -12667,7 +12684,7 @@
12684 "ru": "Политика",
12685 "xloc": [
12686 "default-mobile.handlebars->9->62",
12670 - "default.handlebars->23->955"
12687 + "default.handlebars->23->957"
12688 ]
12689 },
12690 {
@@ -12679,7 +12696,7 @@
12696 "pt": "polonês",
12697 "ru": "Польский",
12698 "xloc": [
12682 - "default.handlebars->23->839"
12699 + "default.handlebars->23->841"
12700 ]
12701 },
12702 {
@@ -12691,7 +12708,7 @@
12708 "pt": "Português",
12709 "ru": "Португальский",
12710 "xloc": [
12694 - "default.handlebars->23->840"
12711 + "default.handlebars->23->842"
12712 ]
12713 },
12714 {
@@ -12703,7 +12720,7 @@
12720 "pt": "Português (Brasil)",
12721 "ru": "Португальский (Бразилия)",
12722 "xloc": [
12706 - "default.handlebars->23->841"
12723 + "default.handlebars->23->843"
12724 ]
12725 },
12726 {
@@ -12737,7 +12754,7 @@
12754 "en": "Power States",
12755 "nl": "Power Status",
12756 "xloc": [
12740 - "default.handlebars->23->1137",
12757 + "default.handlebars->23->1139",
12758 "default.handlebars->container->column_l->p21->3->1->meshPowerChartDiv->1"
12759 ]
12760 },
@@ -12753,7 +12770,7 @@
12770 "xloc": [
12771 "default-mobile.handlebars->9->105",
12772 "default-mobile.handlebars->9->209",
12756 - "default.handlebars->23->528",
12773 + "default.handlebars->23->530",
12774 "default.handlebars->23->6"
12775 ]
12776 },
@@ -12839,7 +12856,7 @@
12856 "ru": "Нажмите Control",
12857 "xloc": [
12858 "default-mobile.handlebars->9->234",
12842 - "default.handlebars->23->622"
12859 + "default.handlebars->23->624"
12860 ]
12861 },
12862 {
@@ -12866,9 +12883,9 @@
12883 "pt": "Solicitar consentimento do usuário",
12884 "ru": "Запрос согласия пользователя",
12885 "xloc": [
12869 - "default.handlebars->23->1060",
12870 - "default.handlebars->23->1064",
12871 - "default.handlebars->23->1067"
12886 + "default.handlebars->23->1062",
12887 + "default.handlebars->23->1066",
12888 + "default.handlebars->23->1069"
12889 ]
12890 },
12891 {
@@ -12895,7 +12912,7 @@
12912 "ru": "Публичная ссылка",
12913 "xloc": [
12914 "default-mobile.handlebars->9->74",
12898 - "default.handlebars->23->1160"
12915 + "default.handlebars->23->1162"
12916 ]
12917 },
12918 {
@@ -12907,7 +12924,7 @@
12924 "pt": "Punjabi",
12925 "ru": "Пенджаби",
12926 "xloc": [
12910 - "default.handlebars->23->842"
12927 + "default.handlebars->23->844"
12928 ]
12929 },
12930 {
@@ -12919,7 +12936,7 @@
12936 "pt": "Punjabi (Índia)",
12937 "ru": "Пенджаби (Индия)",
12938 "xloc": [
12922 - "default.handlebars->23->843"
12939 + "default.handlebars->23->845"
12940 ]
12941 },
12942 {
@@ -12931,7 +12948,7 @@
12948 "pt": "Punjabi (Paquistão)",
12949 "ru": "Пенджаби (Пакистан)",
12950 "xloc": [
12934 - "default.handlebars->23->844"
12951 + "default.handlebars->23->846"
12952 ]
12953 },
12954 {
@@ -12943,7 +12960,7 @@
12960 "pt": "Putty",
12961 "ru": "Putty",
12962 "xloc": [
12946 - "default.handlebars->23->504"
12963 + "default.handlebars->23->506"
12964 ]
12965 },
12966 {
@@ -12969,7 +12986,7 @@
12986 "pt": "Quechua",
12987 "ru": "Кечуа",
12988 "xloc": [
12972 - "default.handlebars->23->845"
12989 + "default.handlebars->23->847"
12990 ]
12991 },
12992 {
@@ -13009,7 +13026,7 @@
13026 "pt": "RDP",
13027 "ru": "RDP",
13028 "xloc": [
13012 - "default.handlebars->23->502"
13029 + "default.handlebars->23->504"
13030 ]
13031 },
13032 {
@@ -13045,7 +13062,7 @@
13062 "en": "RSS",
13063 "nl": "RSS",
13064 "xloc": [
13048 - "default.handlebars->23->1425"
13065 + "default.handlebars->23->1427"
13066 ]
13067 },
13068 {
@@ -13058,7 +13075,7 @@
13075 "pt": "Randomize a senha.",
13076 "ru": "Случайный пароль",
13077 "xloc": [
13061 - "default.handlebars->23->1237"
13078 + "default.handlebars->23->1239"
13079 ]
13080 },
13081 {
@@ -13082,7 +13099,7 @@
13099 "pt": "Reativar Intel&reg;AMT",
13100 "ru": "Возобновить Intel&reg; AMT",
13101 "xloc": [
13085 - "default.handlebars->23->1038"
13102 + "default.handlebars->23->1040"
13103 ]
13104 },
13105 {
@@ -13094,7 +13111,7 @@
13111 "pt": "Realms",
13112 "ru": "Области",
13113 "xloc": [
13097 - "default.handlebars->23->1245"
13114 + "default.handlebars->23->1247"
13115 ]
13116 },
13117 {
@@ -13109,8 +13126,8 @@
13126 "xloc": [
13127 "default-mobile.handlebars->9->248",
13128 "default-mobile.handlebars->9->80",
13112 - "default.handlebars->23->1166",
13113 - "default.handlebars->23->645"
13129 + "default.handlebars->23->1168",
13130 + "default.handlebars->23->647"
13131 ]
13132 },
13133 {
@@ -13177,7 +13194,7 @@
13194 "en": "Relay Count",
13195 "nl": "Relay geteld",
13196 "xloc": [
13180 - "default.handlebars->23->1407"
13197 + "default.handlebars->23->1409"
13198 ]
13199 },
13200 {
@@ -13186,7 +13203,7 @@
13203 "en": "Relay Errors",
13204 "nl": "Relay fouten",
13205 "xloc": [
13189 - "default.handlebars->23->1400"
13206 + "default.handlebars->23->1402"
13207 ]
13208 },
13209 {
@@ -13198,8 +13215,8 @@
13215 "pt": "Retransmissão de sessão ",

This file is too large to show in full.

views/default.handlebars
+20 -7
@@ -1770,6 +1770,7 @@
1770
1771 if (xxcurrentView == -1) { if ('{{viewmode}}' != '') { go(parseInt('{{viewmode}}')); } else { setDialogMode(0); go(1); } }
1772 if ('{{currentNode}}' != '') { gotoDevice('{{currentNode}}',parseInt('{{viewmode}}'));}
1773 + else if (args.gotonode != null) { goBackStack.push(1); gotoDevice('node/' + domain + '/' + args.gotonode,parseInt('{{viewmode}}')); delete args.gotonode; }
1774 break;
1775 }
1776 case 'powertimeline': {
@@ -4785,6 +4786,11 @@
4786 // Show node last 7 days timeline
4787 masterUpdate(256);
4788
4789 + // Check if we have terminal and file access
4790 + var terminalAccess = ((meshrights == 0xFFFFFFFF) || ((meshrights & 512) == 0));
4791 + var fileAccess = ((meshrights == 0xFFFFFFFF) || ((meshrights & 1024) == 0));
4792 + var amtAccess = ((meshrights == 0xFFFFFFFF) || ((meshrights & 2048) == 0));
4793 +
4794 // Show bottom buttons
4795 x = '<div class="p10html3right">';
4796 if ((meshrights & 4) != 0) {
@@ -4796,7 +4802,8 @@
4802 x += '<img title=\"' + "Place link to this device in the clipboard" + '\" src="images/link1.png" style=cursor:pointer onclick=p10deviceLinkToClipboard() />&nbsp;';
4803 if (mesh.mtype == 2) x += '<a href=# onclick=p10showNodeNetInfoDialog("' + node._id + '") title=\"' + "Show device network interface information" + '\">' + "Interfaces" + '</a>&nbsp;';
4804 if (xxmap != null) x += '<a href=# onclick=p10showNodeLocationDialog("' + node._id + '") title=\"' + "Show device locations information" + '\">' + "Location" + '</a>&nbsp;';
4799 - if (((meshrights & 8) != 0) && (mesh.mtype == 2)) x += '<a href=# onclick=p10showMeshCmdDialog(1,"' + node._id + '") title=\"' + "Traffic router used to connect to a device thru this server" + '.\">' + "Router" + '</a>&nbsp;';
4805 + if ((terminalAccess) && ((meshrights & 8) != 0) && (mesh.mtype == 2)) x += '<a href=# onclick=p10showMeshCmdDialog(1,"' + node._id + '") title=\"' + "Traffic router used to connect to a device thru this server" + '.\">' + "Router" + '</a>&nbsp;';
4806 + if ((mesh.mtype == 2) && ((node.agent.caps & 2) != 0) && ((meshrights & 8) != 0) && ((meshrights == 0xFFFFFFFF) || ((meshrights & 512) == 0))) { x += '<a href=# onclick=p10openxterm(event,"' + node._id + '") title=\"' + "Open XTerm terminal" + '\">' + "XTerm" + '</a>&nbsp;'; }
4807
4808 // RDP link, show this link only of the remote machine is Windows.
4809 if (((connectivity & 1) != 0) && (clickOnce == true) && (mesh.mtype == 2) && ((meshrights & 8) != 0)) {
@@ -4827,11 +4834,6 @@
4834 Q('MainComputerImage').setAttribute('src', 'images/icons256-' + node.icon + '-1.png');
4835 Q('MainComputerImage').className = ((!node.conn) || (node.conn == 0)?'gray':'');
4836
4830 - // Check if we have terminal and file access
4831 - var terminalAccess = ((meshrights == 0xFFFFFFFF) || ((meshrights & 512) == 0));
4832 - var fileAccess = ((meshrights == 0xFFFFFFFF) || ((meshrights & 1024) == 0));
4833 - var amtAccess = ((meshrights == 0xFFFFFFFF) || ((meshrights & 2048) == 0));
4834 -
4837 // Setup/Refresh the desktop tab
4838 if (terminalAccess) { setupTerminal(); }
4839 if (fileAccess) { setupFiles(); }
@@ -5262,7 +5264,18 @@
5264 function p10showMqttLoginDialog(nodeid) { meshserver.send({ action: 'getmqttlogin', nodeid: nodeid }); }
5265
5266 // Place a device link URL in the clipboard
5265 - function p10deviceLinkToClipboard() { copyTextToClip2(document.URL.split('?')[0].split('#')[0] + '?node=' + currentNode._id.split('/')[2] + '&viewmode=10'); }
5267 + function p10deviceLinkToClipboard() { copyTextToClip2(document.URL.split('?')[0].split('#')[0] + '?gotonode=' + currentNode._id.split('/')[2] + '&viewmode=10'); }
5268 +
5269 + // Open XTerm
5270 + function p10openxterm(e, nodeid) {
5271 + haltEvent(e);
5272 + var url = '/xterm?nodeid=' + encodeURIComponent(nodeid) + '&auto=1';
5273 + var node = getNodeFromId(nodeid);
5274 + if (node == null) return;
5275 + if ([1, 2, 3, 4, 21, 22].indexOf(node.agent.id) >= 0) { url += '&fixsize=1'; }
5276 + window.open(url, 'xterm:' + nodeid);
5277 + return false;
5278 + }
5279
5280 // Show MeshCmd dialog
5281 function p10showMeshCmdDialog(mode, nodeid) {
views/xterm.handlebars new
+227
@@ -0,0 +1,227 @@
1 +<!DOCTYPE html>
2 +<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
3 +<head>
4 + <meta http-equiv="X-UA-Compatible" content="IE=edge" />
5 + <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
6 + <meta name="viewport" content="user-scalable=1.0,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0" />
7 + <meta name="apple-mobile-web-app-capable" content="yes" />
8 + <meta name="format-detection" content="telephone=no" />
9 + <link type="text/css" href="styles/style.css" media="screen" rel="stylesheet" title="CSS" />
10 + <link type="text/css" href="styles/xterm.css" media="screen" rel="stylesheet" title="CSS" />
11 + <script type="text/javascript" src="scripts/common-0.0.1.js"></script>
12 + <script type="text/javascript" src="scripts/meshcentral.js"></script>
13 + <script type="text/javascript" src="scripts/agent-redir-ws-0.1.1.js"></script>
14 + <script type="text/javascript" src="scripts/agent-redir-rtc-0.1.0.js"></script>
15 + <script type="text/javascript" src="scripts/xterm.js"></script>
16 + <script type="text/javascript" src="scripts/xterm-addon-fit.js"></script>
17 + <title>{{{name}}}</title>
18 +</head>
19 +<body style="overflow:hidden;background-color:black">
20 + <div id=p11 class="noselect" style="overflow:hidden">
21 + <div id=deskarea0>
22 + <div id=deskarea1 class="areaHead">
23 + <div class="toright2">
24 + </div>
25 + <div>
26 + <input id="ConnectButton" style="display:none" type=button value="Connect" onclick="connectButton()">
27 + <input id="DisconnectButton" type=button value="Disconnect" onclick="connectButton()">
28 + <span><b>{{{name}}}</b></span> - <span id="termstatus"></span>
29 + </div>
30 + </div>
31 + <div id=deskarea2 style="">
32 + <div class="areaProgress"><div id="progressbar" style=""></div></div>
33 + </div>
34 + <div id=deskarea3x style="max-height:calc(100vh - 54px);height:calc(100vh - 54px);">
35 + <div id="bigok" style="display:none;left:calc((100vh / 2))"><b>&checkmark;</b></div>
36 + <div id="bigfail" style="display:none;left:calc((100vh / 2))"><b>&#10007;</b></div>
37 + <div id="metadatadiv" style="padding:20px;color:lightgrey;text-align:left;display:none"></div>
38 + <div id=terminal style="max-height:calc(100vh - 54px);height:calc(100vh - 54px);"></div>
39 + <div id=p11DeskConsoleMsg style="display:none;cursor:pointer;position:absolute;left:30px;top:17px;color:yellow;background-color:rgba(0,0,0,0.6);padding:10px;border-radius:5px" onclick=clearConsoleMsg()></div>
40 + </div>
41 + <div id=deskarea4 class="areaHead">
42 + <div class="toright2">
43 + </div>
44 + <div style="height:21px;max-height:21px">
45 + </div>
46 + </div>
47 + </div>
48 + <div id=dialog class="noselect" style="display:none">
49 + <div id=dialogHeader>
50 + <div tabindex=0 id=id_dialogclose onclick=setDialogMode() onkeypress="if (event.key == 'Enter') setDialogMode()">&#x2716;</div>
51 + <div id=id_dialogtitle></div>
52 + </div>
53 + <div id=dialogBody>
54 + <div id=dialog1>
55 + <div id=id_dialogMessage style=""></div>
56 + </div>
57 + <div id=dialog2 style="">
58 + <div id=id_dialogOptions></div>
59 + </div>
60 + </div>
61 + <div id="idx_dlgButtonBar">
62 + <input id="idx_dlgCancelButton" type="button" value="Cancel" style="" onclick="dialogclose(0)">
63 + <input id="idx_dlgOkButton" type="button" value="OK" style="" onclick="dialogclose(1)">
64 + <div><input id="idx_dlgDeleteButton" type="button" value="Delete" style="display:none" onclick="dialogclose(2)"></div>
65 + </div>
66 + </div>
67 + </div>
68 + <script>
69 + var term = null;
70 + var termfit = null;
71 + var tunnel = null;
72 + var domain = '{{{domain}}}';
73 + var domainUrl = '{{{domainurl}}}';
74 + var authCookie = '{{{authCookie}}}';
75 + var authRelayCookie = '{{{authRelayCookie}}}';
76 + var serverPublicNamePort = '{{{serverDnsName}}}:{{{serverPublicPort}}}';
77 + var StatusStrs = ["Disconnected", "Connecting...", "Setup...", "Connected", "Intel&reg; AMT Connected"];
78 +
79 + function start() {
80 + // Parse any URL arguments
81 + args = parseUriArgs();
82 +
83 + // Connect to the mesh server
84 + meshserver = MeshServerCreateControl(domainUrl, authCookie);
85 + meshserver.onStateChanged = onStateChanged;
86 + meshserver.onMessage = onMessage;
87 + meshserver.trace = (args.trace == 1);
88 + meshserver.Start();
89 +
90 + // When the user resizes the window, re-fit
91 + window.onresize = function () { if (termfit != null) { termfit.fit(); } }
92 +
93 + // Update the terminal status and buttons
94 + QH('termstatus', StatusStrs[0]);
95 + updateButtons();
96 + }
97 +
98 + // Show the correct button state
99 + function updateButtons() {
100 + var tunnelState = ((tunnel != null) && (tunnel.state != 0) && (meshserver.State == 2));
101 + QE('ConnectButton', meshserver.State == 2);
102 + QV('ConnectButton', !tunnelState);
103 + QV('DisconnectButton', tunnelState);
104 + }
105 +
106 + // MeshServer - Change State
107 + function onStateChanged(server, state, prevState, errorCode) {
108 + QE('ConnectButton', (state == 2));
109 + if ((state == 2) && (args.auto == 1)) { delete args.auto; connectButton(); }
110 + updateButtons();
111 + }
112 +
113 + // MeshServer - Handle messages
114 + function onMessage(server, message) { }
115 +
116 + // Handles a tunnel to a remote shell
117 + function CreateRemoteTunnel(onTunnelUpdate) {
118 + var obj = { protocol: 1 };
119 + obj.onTunnelUpdate = onTunnelUpdate;
120 + obj.xxStateChange = function (state) { }
121 + obj.ProcessBinaryData = function (data) { obj.onTunnelUpdate(data); }
122 + obj.ProcessData = function (data) { obj.onTunnelUpdate(data); }
123 + return obj;
124 + }
125 +
126 + // Called when the connect/disconnect button is pressed
127 + function connectButton() {
128 + if (!tunnel) {
129 + // Setup the terminal with auto-fit
130 + if (term != null) { term.dispose(); }
131 + if (args.fixsize != 1) { termfit = new FitAddon.FitAddon(); }
132 + term = new Terminal();
133 + if (termfit) { term.loadAddon(termfit); }
134 + term.open(Q('terminal'));
135 + term.onData(function (data) { if (tunnel != null) { tunnel.sendText(data); } })
136 + term.onResize(function (size) {
137 + //console.log('Resize', size);
138 + //term.resize(size.cols, size.rows);
139 + //if (tunnel != null) { tunnel.send(String.fromCharCode(27) + '[8;' + size.cols + ';' + size.rows + 't') }
140 + });
141 + if (termfit) { termfit.fit(); }
142 +
143 + // Setup a terminal tunnel to the agent
144 + tunnel = CreateAgentRedirect(meshserver, CreateRemoteTunnel(tunnelUpdate), serverPublicNamePort, authCookie, authRelayCookie, domainUrl);
145 + tunnel.Start(args.nodeid);
146 + tunnel.onStateChanged = onTunnelStateChange;
147 + } else {
148 + tunnel.Stop();
149 + }
150 + }
151 +
152 + function tunnelUpdate(data) { if (typeof data == 'string') { term.writeUtf8(data); } else { term.writeUtf8(new Uint8Array(data)); } }
153 +
154 + // Called when the terminal state changes
155 + function onTunnelStateChange(xterminal, state) {
156 + var xstate = state;
157 + if ((xstate == 3) && (xterminal.contype == 2)) { xstate++; }
158 + var str = StatusStrs[xstate];
159 + if (tunnel.webRtcActive == true) { str += ", WebRTC"; }
160 + QH('termstatus', str);
161 + switch (state) {
162 + case 0:
163 + // Disconnected, clear the terminal
164 + term.dispose();
165 + term = null;
166 + termfit = null;
167 + tunnel = null;
168 + break;
169 + case 3:
170 + // Connected
171 + term.focus();
172 + break;
173 + default:
174 + // Other
175 + break;
176 + }
177 + updateButtons();
178 + }
179 +
180 + //
181 + // POPUP DIALOG
182 + //
183 +
184 + // null = Hidden, 1 = Generic Message
185 + var xxdialogMode;
186 + var xxdialogFunc;
187 + var xxdialogButtons;
188 + var xxdialogTag;
189 + var xxcurrentView = -1;
190 +
191 + // Display a dialog box
192 + // Parameters: Dialog Mode (0 = none), Dialog Title, Buttons (1 = OK, 2 = Cancel, 3 = OK & Cancel), Call back function(0 = Cancel, 1 = OK), Dialog Content (Mode 2 only)
193 + function setDialogMode(x, y, b, f, c, tag) {
194 + xxdialogMode = x;
195 + xxdialogFunc = f;
196 + xxdialogButtons = b;
197 + xxdialogTag = tag;
198 + QE('idx_dlgOkButton', true);
199 + QV('idx_dlgOkButton', b & 1);
200 + QV('idx_dlgCancelButton', b & 2);
201 + QV('id_dialogclose', (b & 2) || (b & 8));
202 + QV('idx_dlgDeleteButton', b & 4);
203 + QV('idx_dlgButtonBar', b & 7);
204 + if (y) QH('id_dialogtitle', y);
205 + for (var i = 1; i < 3; i++) { QV('dialog' + i, i == x); } // Edit this line when more dialogs are added
206 + QV('dialog', x);
207 + if (c) { if (x == 2) { QH('id_dialogOptions', c); } else { QH('id_dialogMessage', c); } }
208 + }
209 +
210 + // Called when the dialog box must be closed
211 + function dialogclose(x) {
212 + var f = xxdialogFunc, b = xxdialogButtons, t = xxdialogTag;
213 + setDialogMode();
214 + if (((b & 8) || x) && f) f(x, t);
215 + }
216 +
217 + function messagebox(t, m) { setSessionActivity(); QH('id_dialogMessage', m); setDialogMode(1, t, 1); }
218 + function statusbox(t, m) { setSessionActivity(); QH('id_dialogMessage', m); setDialogMode(1, t); }
219 + function haltEvent(e) { if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false; }
220 + function pad2(num) { var s = '00' + num; return s.substr(s.length - 2); }
221 + function format(format) { var args = Array.prototype.slice.call(arguments, 1); return format.replace(/{(\d+)}/g, function (match, number) { return typeof args[number] != 'undefined' ? args[number] : match; }); };
222 + function parseUriArgs() { var name, r = {}, parsedUri = window.document.location.href.split(/[\?&|\=]/); parsedUri.splice(0, 1); for (x in parsedUri) { switch (x % 2) { case 0: { name = decodeURIComponent(parsedUri[x]); break; } case 1: { r[name] = decodeURIComponent(parsedUri[x]); var x = parseInt(r[name]); if (x == r[name]) { r[name] = x; } break; } default: { break; } } } return r; }
223 +
224 + start();
225 + </script>
226 +</body>
227 +</html>
\ No newline at end of file
webserver.js
+34
@@ -1695,6 +1695,39 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
1695 return '';
1696 }
1697
1698 + // Serve the xterm page
1699 + function handleXTermRequest(req, res) {
1700 + const domain = checkUserIpAddress(req, res);
1701 + if (domain == null) { parent.debug('web', 'handleXTermRequest: Bad domain'); res.sendStatus(404); return; }
1702 + if ((domain.loginkey != null) && (domain.loginkey.indexOf(req.query.key) == -1)) { res.sendStatus(404); return; } // Check 3FA URL key
1703 +
1704 + parent.debug('web', 'handleXTermRequest: sending xterm');
1705 + res.set({ 'Cache-Control': 'no-cache, no-store, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0' });
1706 + if (req.session && req.session.userid) {
1707 + if (req.session.domainid != domain.id) { res.redirect(domain.url + getQueryPortion(req)); return; } // Check if the session is for the correct domain
1708 + var user = obj.users[req.session.userid];
1709 + if ((user == null) || (req.query.nodeid == null)) { res.redirect(domain.url + getQueryPortion(req)); return; } // Check if the user exists
1710 +
1711 + // Check permissions
1712 + obj.GetNodeWithRights(domain, user, req.query.nodeid, function (node, rights, visible) {
1713 + if ((node == null) || ((rights & 8) == 0) || ((rights != 0xFFFFFFFF) && ((rights & 512) != 0))) { res.redirect(domain.url + getQueryPortion(req)); return; }
1714 +
1715 + var logoutcontrols = { name: user.name };
1716 + var extras = (req.query.key != null) ? ('&key=' + req.query.key) : '';
1717 + if ((domain.ldap == null) && (domain.sspi == null) && (obj.args.user == null) && (obj.args.nousers != true)) { logoutcontrols.logoutUrl = (domain.url + 'logout?' + Math.random() + extras); } // If a default user is in use or no user mode, don't display the logout button
1718 +
1719 + // Create a authentication cookie
1720 + const authCookie = obj.parent.encodeCookie({ userid: user._id, domainid: domain.id, ip: cleanRemoteAddr(req.ip) }, obj.parent.loginCookieEncryptionKey);
1721 + const authRelayCookie = obj.parent.encodeCookie({ ruserid: user._id, domainid: domain.id }, obj.parent.loginCookieEncryptionKey);
1722 + var httpsPort = ((obj.args.aliasport == null) ? obj.args.port : obj.args.aliasport); // Use HTTPS alias port is specified
1723 + render(req, res, getRenderPage('xterm', req), getRenderArgs({ serverDnsName: obj.getWebServerName(domain), serverRedirPort: args.redirport, serverPublicPort: httpsPort, authCookie: authCookie, authRelayCookie: authRelayCookie, logoutControls: JSON.stringify(logoutcontrols), name: EscapeHtml(node.name) }, domain));
1724 + });
1725 + } else {
1726 + res.redirect(domain.url + getQueryPortion(req));
1727 + return;
1728 + }
1729 + }
1730 +
1731 // Render the terms of service.
1732 function handleTermsRequest(req, res) {
1733 const domain = checkUserIpAddress(req, res);
@@ -3447,6 +3480,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
3480 obj.app.get(url + 'backup.zip', handleBackupRequest);
3481 obj.app.post(url + 'restoreserver.ashx', handleRestoreRequest);
3482 obj.app.get(url + 'terms', handleTermsRequest);
3483 + obj.app.get(url + 'xterm', handleXTermRequest);
3484 obj.app.post(url + 'login', handleLoginRequest);
3485 obj.app.post(url + 'tokenlogin', handleLoginRequest);
3486 obj.app.get(url + 'logout', handleLogoutRequest);