Advertisement
Guest User

Untitled

a guest
Sep 15th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 107.14 KB | None | 0 0
  1. function(e){function t(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function n(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var r=function(){return r.cache.hasOwnProperty(arguments[0])||(r.cache[arguments[0]]=r.parse(arguments[0])),r.format.call(null,r.cache[arguments[0]],arguments)};r.format=function(e,i){var o,s,a,u,l,c,f,p=1,h=e.length,d="",m=[];for(s=0;h>s;s++)if(d=t(e[s]),"string"===d)m.push(e[s]);else if("array"===d){if(u=e[s],u[2])for(o=i[p],a=0;a<u[2].length;a++){if(!o.hasOwnProperty(u[2][a]))throw r('[sprintf] property "%s" does not exist',u[2][a]);o=o[u[2][a]]}else o=u[1]?i[u[1]]:i[p++];if(/[^s]/.test(u[8])&&"number"!=t(o))throw r("[sprintf] expecting number but found %s",t(o));switch(u[8]){case"b":o=o.toString(2);break;case"c":o=String.fromCharCode(o);break;case"d":o=parseInt(o,10);break;case"e":o=u[7]?o.toExponential(u[7]):o.toExponential();break;case"f":o=u[7]?parseFloat(o).toFixed(u[7]):parseFloat(o);break;case"o":o=o.toString(8);break;case"s":o=(o=String(o))&&u[7]?o.substring(0,u[7]):o;break;case"u":o>>>=0;break;case"x":o=o.toString(16);break;case"X":o=o.toString(16).toUpperCase()}o=/[def]/.test(u[8])&&u[3]&&o>=0?"+"+o:o,c=u[4]?"0"==u[4]?"0":u[4].charAt(1):" ",f=u[6]-String(o).length,l=u[6]?n(c,f):"",m.push(u[5]?o+l:l+o)}return m.join("")},r.cache={},r.parse=function(e){for(var t=e,n=[],r=[],i=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){i|=1;var o=[],s=n[2],a=[];if(null===(a=/^([a-z_][a-z_\d]*)/i.exec(s)))throw"[sprintf] huh?";for(o.push(a[1]);""!==(s=s.substring(a[0].length));)if(null!==(a=/^\.([a-z_][a-z_\d]*)/i.exec(s)))o.push(a[1]);else{if(null===(a=/^\[(\d+)\]/.exec(s)))throw"[sprintf] huh?";o.push(a[1])}n[2]=o}else i|=2;if(3===i)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r};var i=function(e,t,n){return n=t.slice(0),n.splice(0,0,e),r.apply(null,n)};e.sprintf=r,e.vsprintf=i}("undefined"!=typeof global?global:window),function(e,t){"use strict";function n(e,t){var n;if("string"==typeof e&&"string"==typeof t)return localStorage[e]=t,!0;if("object"==typeof e&&"undefined"==typeof t){for(n in e)e.hasOwnProperty(n)&&(localStorage[n]=e[n]);return!0}return!1}function r(e,t){var n,r,i;if(n=new Date,n.setTime(n.getTime()+31536e6),r="; expires="+n.toGMTString(),"string"==typeof e&&"string"==typeof t)return document.cookie=e+"="+t+r+"; path=/",!0;if("object"==typeof e&&"undefined"==typeof t){for(i in e)e.hasOwnProperty(i)&&(document.cookie=i+"="+e[i]+r+"; path=/");return!0}return!1}function i(e){return localStorage[e]}function o(e){var t,n,r,i;for(t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}function s(e){return delete localStorage[e]}function a(e){return r(e,"",-1)}function u(e,t){var n=[],r=e.length;if(t>r)return[e];if(0>t)throw new Error("str_parts: length can't be negative");for(var i=0;r>i;i+=t)n.push(e.substring(i,i+t));return n}function l(t){var n=t?[t]:[],r=0;e.extend(this,{get:function(){return n},rotate:function(){return n.filter(Boolean).length?1===n.length?n[0]:(r===n.length-1?r=0:++r,n[r]?n[r]:this.rotate()):void 0},length:function(){return n.length},remove:function(e){delete n[e]},set:function(e){for(var t=n.length;t--;)if(n[t]===e)return void(r=t);this.append(e)},front:function(){if(n.length){for(var e=r,t=!1;!n[e];)if(e++,e>n.length){if(t)break;e=0,t=!0}return n[e]}},append:function(e){n.push(e)}})}function c(t){var n=t instanceof Array?t:t?[t]:[];e.extend(this,{data:function(){return n},map:function(t){return e.map(n,t)},size:function(){return n.length},pop:function(){if(0===n.length)return null;var e=n[n.length-1];return n=n.slice(0,n.length-1),e},push:function(e){return n=n.concat([e]),e},top:function(){return n.length>0?n[n.length-1]:null},clone:function(){return new c(n.slice(0))}})}function f(t,n){var r=!0,i="";"string"==typeof t&&""!==t&&(i=t+"_"),i+="commands";var o=e.Storage.get(i);o=o?e.parseJSON(o):[];var s=o.length-1;e.extend(this,{append:function(t){r&&o[o.length-1]!==t&&(o.push(t),n&&o.length>n&&(o=o.slice(-n)),s=o.length-1,e.Storage.set(i,e.json_stringify(o)))},data:function(){return o},reset:function(){s=o.length-1},last:function(){return o[length-1]},end:function(){return s===o.length-1},position:function(){return s},current:function(){return o[s]},next:function(){return s<o.length-1&&++s,-1!==s?o[s]:void 0},previous:function(){var e=s;return s>0&&--s,-1!==e?o[s]:void 0},clear:function(){o=[],this.purge()},enabled:function(){return r},enable:function(){r=!0},purge:function(){e.Storage.remove(i)},disable:function(){r=!1}})}function p(t,n){var r=n(t);if(r.length){var i=r.shift(),o=new RegExp("^"+e.terminal.escape_regex(i)),s=t.replace(o,"").trim();return{command:t,name:i,args:r,rest:s}}return{command:t,name:"",args:[],rest:""}}function h(){var t=e('<div class="terminal temp"><div class="cmd"><span class="cursor">&nbsp;</span></div></div>').appendTo("body"),n=t.find("span"),r={width:n.width(),height:n.outerHeight()};return t.remove(),r}function d(t){var n=e('<div class="terminal wrap"><span class="cursor">&nbsp;</span></div>').appendTo("body").css("padding",0),r=n.find("span"),i=r[0].getBoundingClientRect().width,o=Math.floor(t.width()/i);if(n.remove(),v(t)){var s=20,a=t.innerWidth()-t.width();o-=Math.ceil((s-a/2)/(i-1))}return o}function m(e){return Math.floor(e.height()/h().height)}function g(){if(window.getSelection||document.getSelection){var e=(window.getSelection||document.getSelection)();return e.text?e.text:e.toString()}return document.selection?document.selection.createRange().text:void 0}function v(t){return"scroll"==t.css("overflow")||"scroll"==t.css("overflow-y")?!0:t.is("body")?e("body").height()>e(window).height():t.get(0).scrollHeight>t.innerHeight()}e.omap=function(t,n){var r={};return e.each(t,function(e,i){r[e]=n.call(t,e,i)}),r};var y={clone_object:function(t){var n={};if("object"==typeof t){if(e.isArray(t))return this.clone_array(t);if(null===t)return t;for(var r in t)e.isArray(t[r])?n[r]=this.clone_array(t[r]):"object"==typeof t[r]?n[r]=this.clone_object(t[r]):n[r]=t[r]}return n},clone_array:function(t){if(!e.isFunction(Array.prototype.map))throw new Error("You'r browser don't support ES5 array map use es5-shim");return t.slice(0).map(function(e){return"object"==typeof e?this.clone_object(e):e}.bind(this))}},b=function(e){return y.clone_object(e)},w=function(){var e="test",t=window.localStorage;try{return t.setItem(e,"1"),t.removeItem(e),!0}catch(n){return!1}},_=w();e.extend({Storage:{set:_?n:r,get:_?i:o,remove:_?s:a}});var x=e;x.fn.extend({everyTime:function(e,t,n,r,i){return this.each(function(){x.timer.add(this,e,t,n,r,i)})},oneTime:function(e,t,n){return this.each(function(){x.timer.add(this,e,t,n,1)})},stopTime:function(e,t){return this.each(function(){x.timer.remove(this,e,t)})}}),x.extend({timer:{guid:1,global:{},regex:/^([0-9]+)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1e3,das:1e4,hs:1e5,ks:1e6},timeParse:function(e){if(e===t||null===e)return null;var n=this.regex.exec(x.trim(e.toString()));if(n[2]){var r=parseInt(n[1],10),i=this.powers[n[2]]||1;return r*i}return e},add:function(e,t,n,r,i,o){var s=0;if(x.isFunction(n)&&(i||(i=r),r=n,n=t),t=x.timer.timeParse(t),!("number"!=typeof t||isNaN(t)||0>=t)){i&&i.constructor!==Number&&(o=!!i,i=0),i=i||0,o=o||!1,e.$timers||(e.$timers={}),e.$timers[n]||(e.$timers[n]={}),r.$timerID=r.$timerID||this.guid++;var a=function(){o&&a.inProgress||(a.inProgress=!0,(++s>i&&0!==i||r.call(e,s)===!1)&&x.timer.remove(e,n,r),a.inProgress=!1)};a.$timerID=r.$timerID,e.$timers[n][r.$timerID]||(e.$timers[n][r.$timerID]=window.setInterval(a,t)),this.global[n]||(this.global[n]=[]),this.global[n].push(e)}},remove:function(e,t,n){var r,i=e.$timers;if(i){if(t){if(i[t]){if(n)n.$timerID&&(window.clearInterval(i[t][n.$timerID]),delete i[t][n.$timerID]);else for(var o in i[t])i[t].hasOwnProperty(o)&&(window.clearInterval(i[t][o]),delete i[t][o]);for(r in i[t])if(i[t].hasOwnProperty(r))break;r||(r=null,delete i[t])}}else for(var s in i)i.hasOwnProperty(s)&&this.remove(e,s,n);for(r in i)if(i.hasOwnProperty(r))break;r||(e.$timers=null)}}}}),/(msie) ([\w.]+)/.exec(navigator.userAgent.toLowerCase())&&x(window).one("unload",function(){var e=x.timer.global;for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t],r=n.length;--r;)x.timer.remove(n[r],t)}),function(e){if(String.prototype.split.toString().match(/\[native/)){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;return t=function(t,i,o){if("[object RegExp]"!==Object.prototype.toString.call(i))return n.call(t,i,o);var s,a,u,l,c=[],f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),p=0;for(i=new RegExp(i.source,f+"g"),t+="",r||(s=new RegExp("^"+i.source+"$(?!\\s)",f)),o=o===e?-1>>>0:o>>>0;(a=i.exec(t))&&(u=a.index+a[0].length,!(u>p&&(c.push(t.slice(p,a.index)),!r&&a.length>1&&a[0].replace(s,function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(a[t]=e)}),a.length>1&&a.index<t.length&&Array.prototype.push.apply(c,a.slice(1)),l=a[0].length,p=u,c.length>=o)));)i.lastIndex===a.index&&i.lastIndex++;return p===t.length?(l||!i.test(""))&&c.push(""):c.push(t.slice(p)),c.length>o?c.slice(0,o):c},String.prototype.split=function(e,n){return t(this,e,n)},t}}(),e.fn.caret=function(e){var t=this[0],n="true"===t.contentEditable;if(0==arguments.length){if(window.getSelection){if(n){t.focus();var r=window.getSelection().getRangeAt(0),i=r.cloneRange();return i.selectNodeContents(t),i.setEnd(r.endContainer,r.endOffset),i.toString().length}return t.selectionStart}if(document.selection){if(t.focus(),n){var r=document.selection.createRange(),i=document.body.createTextRange();return i.moveToElementText(t),i.setEndPoint("EndToEnd",r),i.text.length}var e=0,o=t.createTextRange(),i=document.selection.createRange().duplicate(),s=i.getBookmark();for(o.moveToBookmark(s);0!==o.moveStart("character",-1);)e++;return e}return 0}if(-1==e&&(e=this[n?"text":"val"]().length),window.getSelection)n?(t.focus(),window.getSelection().collapse(t.firstChild,e)):t.setSelectionRange(e,e);else if(document.body.createTextRange){var o=document.body.createTextRange();o.moveToElementText(t),o.moveStart("character",e),o.collapse(!0),o.select()}return n||t.focus(),e},e.json_stringify=function(n,r){var i,o="";r=r===t?1:r;var s=typeof n;switch(s){case"function":o+=n;break;case"boolean":o+=n?"true":"false";break;case"object":if(null===n)o+="null";else if(n instanceof Array){o+="[";var a=n.length;for(i=0;a-1>i;++i)o+=e.json_stringify(n[i],r+1);o+=e.json_stringify(n[a-1],r+1)+"]"}else{o+="{";for(var u in n)n.hasOwnProperty(u)&&(o+='"'+u+'":'+e.json_stringify(n[u],r+1));o+="}"}break;case"string":var l=n,c={"\\\\":"\\\\",'"':'\\"',"/":"\\/","\\n":"\\n","\\r":"\\r","\\t":"\\t"};for(i in c)c.hasOwnProperty(i)&&(l=l.replace(new RegExp(i,"g"),c[i]));o+='"'+l+'"';break;case"number":o+=String(n)}return o+=r>1?",":"",1===r&&(o=o.replace(/,([\]}])/g,"$1")),o.replace(/([\[{]),/g,"$1")};var k=function(){var e=document.createElement("div");return e.setAttribute("onpaste","return;"),"function"==typeof e.onpaste}();e.fn.cmd=function(n){function r(){var e=_.is(":focus");A?e||(_.focus(),b.oneTime(10,function(){_.focus()})):e&&_.blur()}function i(){S&&b.oneTime(10,function(){_.val($),b.oneTime(10,function(){_.caret(M)})})}function o(e){U.toggleClass("inverted")}function s(){D="(reverse-i-search)`"+L+"': ",Y()}function a(){D=E,I=!1,q=null,L=""}function l(t){var n,r,i=R.data(),o=i.length;if(t&&q>0&&(o-=q),L.length>0)for(var a=L.length;a>0;a--){r=e.terminal.escape_regex(L.substring(0,a)),n=new RegExp(r);for(var u=o;u--;)if(n.test(i[u]))return q=i.length-u,b.position(i[u].indexOf(r)),b.set(i[u],!0),G(),void(L.length!==a&&(L=L.substring(0,a),s()))}L=""}function c(){var e=b.width(),t=U[0].getBoundingClientRect().width;x=Math.floor(e/t)}function p(e){var t=e.substring(0,x-j),n=e.substring(x-j);return[t].concat(u(n,x))}function h(e){if(!(X++>0)&&(e.originalEvent&&(e=e.originalEvent),b.isenabled())){var t=b.find("textarea");t.is(":focus")||t.focus(),b.oneTime(100,function(){b.insert(t.val()),t.val(""),i()})}}function d(r){if(!window.terminal.enabled()||window.terminal.paused())return t;var i,o,u;if(A){if(e.isFunction(n.keydown)&&(i=n.keydown(r),i!==t))return i;if(38===r.which||80===r.which&&r.ctrlKey||(J=!0),!I||35!==r.which&&36!==r.which&&37!==r.which&&38!==r.which&&39!==r.which&&40!==r.which&&13!==r.which&&27!==r.which){if(r.altKey)return 68===r.which?(b.set($.slice(0,M)+$.slice(M).replace(/ *[^ ]+ *(?= )|[^ ]+$/,""),!0),!1):!0;if(13===r.keyCode)if(r.shiftKey)b.insert("\n");else{(R&&$&&!H&&e.isFunction(n.historyFilter)&&n.historyFilter($)||n.historyFilter instanceof RegExp&&$.match(n.historyFilter)||!n.historyFilter)&&R.append($);var c=$;R.reset(),b.set(""),n.commands&&n.commands(c),e.isFunction(D)&&Y()}else if(8===r.which){if(I?(L=L.slice(0,-1),s()):""!==$&&M>0&&b["delete"](-1),S)return!0}else if(67===r.which&&r.ctrlKey&&r.shiftKey)W=g();else if(86===r.which&&r.ctrlKey&&r.shiftKey)""!==W&&b.insert(W);else if(9!==r.which||r.ctrlKey||r.altKey){if(46===r.which)return void b["delete"](1);if(R&&38===r.which&&!r.ctrlKey||80===r.which&&r.ctrlKey)J?(F=$,b.set(R.current())):b.set(R.previous()),J=!1;else if(R&&40===r.which&&!r.ctrlKey||78===r.which&&r.ctrlKey)b.set(R.end()?F:R.next());else if(37===r.which||66===r.which&&r.ctrlKey)if(r.ctrlKey&&66!==r.which){u=M-1,o=0," "===$[u]&&--u;for(var f=u;f>0;--f){if(" "===$[f]&&" "!==$[f+1]){o=f+1;break}if("\n"===$[f]&&"\n"!==$[f+1]){o=f;break}}b.position(o)}else M>0&&(b.position(-1,!0),G());else if(82===r.which&&r.ctrlKey)I?l(!0):(E=D,s(),F=$,b.set(""),G(),I=!0);else if(71==r.which&&r.ctrlKey)I&&(D=E,Y(),b.set(F),G(),I=!1,L="");else if(39===r.which||70===r.which&&r.ctrlKey)if(r.ctrlKey&&70!==r.which){" "===$[M]&&++M;var p=/\S[\n\s]{2,}|[\n\s]+\S?/,m=$.slice(M).match(p);!m||m[0].match(/^\s+$/)?b.position($.length):" "!==m[0][0]?M+=m.index+1:(M+=m.index+m[0].length-1," "!==m[0][m[0].length-1]&&--M),G()}else M<$.length&&b.position(1,!0);else{if(123===r.which)return;if(36===r.which)b.position(0);else if(35===r.which)b.position($.length);else{if(r.shiftKey&&45==r.which)return _.val(""),X=0,void(k?_.focus():h(r));if(!r.ctrlKey&&!r.metaKey)return Z=!1,void(Q=!0);if(192===r.which)return;if(r.metaKey){if(82===r.which)return;if(76===r.which)return}if(r.shiftKey){if(84===r.which)return}else{if(81===r.which){if(""!==$&&0!==M){var v=$.slice(0,M).match(/([^ ]+ *$)/);z=b["delete"](-v[0].length)}return!1}if(72===r.which)return""!==$&&M>0&&b["delete"](-1),!1;if(65===r.which)b.position(0);else if(69===r.which)b.position($.length);else{if(88===r.which||67===r.which||84===r.which)return;if(89===r.which)""!==z&&b.insert(z);else{if(86===r.which||118===r.which)return _.val(""),X=0,void(k?(_.focus(),_.on("input",function y(e){h(e),_.off("input",y)})):h(r));if(75===r.which)z=b["delete"]($.length-M);else if(85===r.which)""!==$&&0!==M&&(z=b["delete"](-M));else if(17===r.which)return!1}}}}}}else b.insert(" ")}else a(),Y(),27===r.which&&b.set(""),G(),d.call(this,r);r.preventDefault()}}function m(){e.isFunction(n.onCommandChange)&&n.onCommandChange($)}function v(r){var i;if(Q=!1,(!r.ctrlKey&&!r.metaKey||-1===[99,118,86].indexOf(r.which))&&!Z){if(!I&&e.isFunction(n.keypress)&&(i=n.keypress(r)),i!==t&&!i)return i;if(A){if(e.inArray(r.which,[38,13,0,8])>-1&&(38!==r.which||!r.shiftKey)){if(123==r.keyCode)return;return!1}if(!r.ctrlKey&&(!r.altKey||100!==r.which)||r.altKey)return I?(L+=String.fromCharCode(r.which),l(),s()):b.insert(String.fromCharCode(r.which)),!1}}}function y(e){if(Q){var t=_.val();(t||8==e.which)&&b.set(t)}}var b=this,w=b.data("cmd");if(w)return w;b.addClass("cmd"),b.append('<span class="prompt"></span><span></span><span class="cursor">&nbsp;</span><span></span>');var _=e("<textarea>").addClass("clipboard").appendTo(b);n.width&&b.width(n.width);var x,j,E,F,D,A,N,R,P,O=b.find(".prompt"),I=!1,L="",q=null,H=n.mask||!1,$="",W="",z="",M=0,B=n.historySize||60,U=b.find(".cursor"),X=0;if(T&&!C)P=function(e){e?U.addClass("blink"):U.removeClass("blink")};else{var K=!1;P=function(e){e&&!K?(K=!0,U.addClass("inverted blink"),b.everyTime(500,"blink",o)):K&&!e&&(K=!1,b.stopTime("blink",o),U.removeClass("inverted blink"))}}var Q,G=function(t){function n(t,n){var r=t.length;if(n===r)s.html(e.terminal.encode(t)),U.html("&nbsp;"),a.html("");else if(0===n)s.html(""),U.html(e.terminal.encode(t.slice(0,1))),a.html(e.terminal.encode(t.slice(1)));else{var i=t.slice(0,n);s.html(e.terminal.encode(i));var o=t.slice(n,n+1);U.html(e.terminal.encode(o)),n===t.length-1?a.html(""):a.html(e.terminal.encode(t.slice(n+1)))}}function r(t){return"<div>"+e.terminal.encode(t)+"</div>"}function i(t){var n=a;e.each(t,function(t,i){n=e(r(i)).insertAfter(n).addClass("clear")})}function o(t){e.each(t,function(e,t){s.before(r(t))})}var s=U.prev(),a=U.next();return function(){var l,c;switch(typeof H){case"boolean":l=H?$.replace(/./g,"*"):$;break;case"string":l=$.replace(/./g,H)}var f,h;if(t.find("div").remove(),s.html(""),l.length>x-j-1||l.match(/\n/)){var d,m=l.match(/\t/g),g=m?3*m.length:0;if(m&&(l=l.replace(/\t/g,"\x00\x00\x00\x00")),l.match(/\n/)){var v=l.split("\n");for(h=x-j-1,f=0;f<v.length-1;++f)v[f]+=" ";for(v[0].length>h?(d=[v[0].substring(0,h)],c=v[0].substring(h),d=d.concat(u(c,x))):d=[v[0]],f=1;f<v.length;++f)v[f].length>x?d=d.concat(u(v[f],x)):d.push(v[f])}else d=p(l);if(m&&(d=e.map(d,function(e){return e.replace(/\x00\x00\x00\x00/g," ")})),h=d[0].length,0===h&&1===d.length);else if(h>M)n(d[0],M),i(d.slice(1));else if(M===h)s.before(r(d[0])),n(d[1],0),i(d.slice(2));else{var y=d.length;if(h>M)n(d[0],M),i(d.slice(1));else if(M===h)s.before(r(d[0])),n(d[1],0),i(d.slice(2));else{var b=d.slice(-1)[0],w=l.length-M-g,_=b.length,k=0;if(_>=w)o(d.slice(0,-1)),k=_===w?0:_-w,n(b,k);else if(3===y)c=e.terminal.encode(d[0]),s.before("<div>"+c+"</div>"),n(d[1],M-h-1),c=e.terminal.encode(d[2]),a.after('<div class="clear">'+c+"</div>");else{var T,C;for(k=M,f=0;f<d.length;++f){var S=d[f].length;if(!(k>S))break;k-=S}C=d[f],T=f,k===C.length&&(k=0,C=d[++T]),n(C,k),o(d.slice(0,T)),i(d.slice(T+1))}}}}else""===l?(s.html(""),U.html("&nbsp;"),a.html("")):n(l,M)}}(b),Y=function(){function t(t){O.html(e.terminal.format(e.terminal.encode(t))),j=O.text().length}return function(){switch(typeof D){case"string":t(D);break;case"function":D(t)}}}(),J=!0,Z=!1;e.extend(b,{name:function(e){if(e!==t){N=e;var n=R&&R.enabled()||!R;return R=new f(e,B),n||R.disable(),b}return N},purge:function(){return R.clear(),b},history:function(){return R},"delete":function(e,t){var n;return 0===e?b:(0>e?M>0&&(n=$.slice(0,M).slice(e),$=$.slice(0,M+e)+$.slice(M,$.length),t?m():b.position(M+e)):""!==$&&M<$.length&&(n=$.slice(M).slice(0,e),$=$.slice(0,M)+$.slice(M+e,$.length),m()),G(),i(),n)},set:function(e,n){return e!==t&&($=e,n||b.position($.length),G(),i(),m()),b},insert:function(e,t){return e=e.slice(0,1031-$.length),M===$.length?$+=e:$=0===M?e+$:$.slice(0,M)+e+$.slice(M),t?i():b.position(e.length,!0),G(),m(),b},get:function(){return $},commands:function(e){return e?(n.commands=e,b):e},destroy:function(){return V.unbind("keypress.cmd",v),V.unbind("keydown.cmd",d),V.unbind("paste.cmd",h),V.unbind("input.cmd",y),b.stopTime("blink",o),b.find(".cursor").next().remove().end().prev().remove().end().remove(),b.find(".prompt, .clipboard").remove(),b.removeClass("cmd").removeData("cmd"),b},prompt:function(e){if(e===t)return D;if("string"!=typeof e&&"function"!=typeof e)throw new Error("prompt must be a function or string");return D=e,Y(),G(),b},kill_text:function(){return z},position:function(t,r){return"number"==typeof t?(r?M+=t:M=0>t?0:t>$.length?$.length:t,e.isFunction(n.onPositionChange)&&n.onPositionChange(M),G(),i(),b):M},visible:function(){var e=b.visible;return function(){e.apply(b,[]),G(),Y()}}(),show:function(){var e=b.show;return function(){e.apply(b,[]),G(),Y()}}(),resize:function(e){return e?x=e:c(),G(),b},enable:function(){return A=!0,b.addClass("enabled"),P(!0),r(),b},isenabled:function(){return A},disable:function(){return A=!1,b.removeClass("enabled"),P(!1),r(),b},mask:function(e){return"undefined"==typeof e?H:(H=e,G(),b)}}),b.name(n.name||n.prompt||""),D="string"==typeof n.prompt?n.prompt:"> ",Y(),(n.enabled===t||n.enabled===!0)&&b.enable();var V=e(document.documentElement||window);return V.bind("keypress.cmd",v).bind("keydown.cmd",d).bind("input.cmd",y),b.data("cmd",b),b};var T=function(){var e=!1,n="animation",r="",i="Webkit Moz O ms Khtml".split(" "),o="",s=document.createElement("div");if(s.style.animationName&&(e=!0),e===!1)for(var a=0;a<i.length;a++){var u=i[a]+"AnimationName";if(s.style[u]!==t){o=i[a],n=o+"Animation",r="-"+o.toLowerCase()+"-",e=!0;break}}return e}(),C=-1!=navigator.userAgent.toLowerCase().indexOf("android"),S=function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}(),j=/(\[\[[!gbiuso]*;[^;]*;[^\]]*\](?:[^\]]*\\\][^\]]*|[^\]]*|[^\[]*\[[^\]]*)\]?)/i,E=/\[\[([!gbiuso]*);([^;]*);([^;\]]*);?([^;\]]*);?([^\]]*)\]([^\]]*\\\][^\]]*|[^\]]*|[^\[]*\[[^\]]*)\]?/gi,F=/\[\[([!gbiuso]*;[^;\]]*;[^;\]]*(?:;|[^\]()]*);?[^\]]*)\]([^\]]*\\\][^\]]*|[^\]]*|[^\[]*\[[^\]]*)\]?/gi,D=/\[\[([!gbiuso]*;[^;\]]*;[^;\]]*(?:;|[^\]()]*);?[^\]]*)\]([^\]]*\\\][^\]]*|[^\]]*|[^\[]*\[[^\]]*)\]/gi,A=/^\[\[([!gbiuso]*;[^;\]]*;[^;\]]*(?:;|[^\]()]*);?[^\]]*)\]([^\]]*\\\][^\]]*|[^\]]*|[^\[]*\[[^\]]*)\]$/gi,N=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i,R=/(\bhttps?:\/\/(?:(?:(?!&[^;]+;)|(?=&amp;))[^\s"'<>\]\[)])+\b)/gi,P=/\b(https?:\/\/(?:(?:(?!&[^;]+;)|(?=&amp;))[^\s"'<>\][)])+)\b(?![^[\]]*])/gi,O=/((([^<>('")[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})))/g,I=/('[^']*'|"(\\"|[^"])*"|(?:\/(\\\/|[^\/])+\/[gimy]*)(?=:? |$)|(\\ |[^ ])+|[\w-]+)/gi,L=/(\[\[[!gbiuso]*;[^;]*;[^\]]*\])/i,q=/^(\[\[[!gbiuso]*;[^;]*;[^\]]*\])/i,H=/\[\[[!gbiuso]*;[^;]*;[^\]]*\]?$/i,$=/(\[\[(?:[^\]]|\\\])*\]\])/;e.terminal={version:"{{VER}}",color_names:["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],valid_color:function(t){return t.match(N)?!0:-1!==e.inArray(t.toLowerCase(),e.terminal.color_names)},escape_regex:function(e){if("string"==typeof e){var t=/([-\\\^$\[\]()+{}?*.|])/g;return e.replace(t,"\\$1")}},have_formatting:function(e){return"string"==typeof e&&!!e.match(D)},is_formatting:function(e){return"string"==typeof e&&!!e.match(A)},format_split:function(e){return e.split(j)},split_equal:function(t,n,r){function i(){return"&nbsp;"==p.substring(g-6,g)||" "==p.substring(g-1,g)}for(var o=!1,s=!1,a="",u=[],l=t.replace(F,function(e,t,n){var r=t.match(/;/g).length;if(r>=4)return e;r=2==r?";;":3==r?";":"";var i=n.replace(/\\\]/g,"&#93;").replace(/\n/g,"\\n").replace(/&nbsp;/g," ");return"[["+t+r+i+"]"+n+"]"}).split(/\n/g),c=0,f=l.length;f>c;++c)if(""!==l[c])for(var p=l[c],h=0,d=0,m=-1,g=0,v=p.length;v>g;++g){if(p.substring(g).match(q))o=!0,s=!1;else if(o&&"]"===p[g])s?(o=!1,s=!1):s=!0;else if(o&&s||!o){if("&"===p[g]){var y=p.substring(g).match(/^(&[^;]+;)/);if(!y)throw new Error("Unclosed html entity in line "+(c+1)+" at char "+(g+1));g+=y[1].length-2,g===v-1&&u.push(b+y[1]);continue}"]"===p[g]&&"\\"===p[g-1]?--d:++d}if(i()&&(o&&s||!o||"["===p[g]&&"["===p[g+1])&&(m=g),(d===n||g===v-1)&&(o&&s||!o)){var b,w=e.terminal.strip(p.substring(m));w=e("<span>"+w+"</span>").text();var _=w.length;w=w.substring(0,g+n+1);var x=!!w.match(/\s/)||g+n+1>_;r&&-1!=m&&g!==v-1&&x?(b=p.substring(h,m),g=m-1):b=p.substring(h,g+1),r&&(b=b.replace(/(&nbsp;|\s)+$/g,"")),m=-1,h=g+1,d=0,a&&(b=a+b,b.match("]")&&(a=""));var k=b.match(F);if(k){var T=k[k.length-1];if("]"!==T[T.length-1])a=T.match(L)[1],b+="]";else if(b.match(H)){b.length;b=b.replace(H,""),a=T.match(L)[1]}}u.push(b)}}else u.push("");return u},encode:function(e){return e=e.replace(/&(?!#[0-9]+;|[a-zA-Z]+;)/g,"&amp;"),e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/ /g,"&nbsp;").replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;")},escape_formatting:function(t){return e.terminal.escape_brackets(e.terminal.encode(t))},format:function(t,n){var r=e.extend({},{linksNoReferrer:!1},n||{});if("string"==typeof t){var i=e.terminal.format_split(t);return t=e.map(i,function(t){return""===t?t:e.terminal.is_formatting(t)?(t=t.replace(/\[\[[^\]]+\]/,function(e){return e.replace(/&nbsp;/g," ")}),t.replace(E,function(t,n,i,o,s,a,u){if(""===u)return"";u=u.replace(/\\]/g,"]");var l="";-1!==n.indexOf("b")&&(l+="font-weight:bold;");var c=[];-1!==n.indexOf("u")&&c.push("underline"),-1!==n.indexOf("s")&&c.push("line-through"),-1!==n.indexOf("o")&&c.push("overline"),c.length&&(l+="text-decoration:"+c.join(" ")+";"),-1!==n.indexOf("i")&&(l+="font-style:italic;"),e.terminal.valid_color(i)&&(l+="color:"+i+";",-1!==n.indexOf("g")&&(l+="text-shadow:0 0 5px "+i+";")),e.terminal.valid_color(o)&&(l+="background-color:"+o);var f;f=""===a?u:a.replace(/&#93;/g,"]");var p;return-1!==n.indexOf("!")?f.match(O)?p='<a href="mailto:'+f+'" ':(p='<a target="_blank" href="'+f+'" ',r.linksNoReferrer&&(p+='rel="noreferrer" ')):p="<span",""!==l&&(p+=' style="'+l+'"'),""!==s&&(p+=' class="'+s+'"'),p+=-1!==n.indexOf("!")?">"+u+"</a>":' data-text="'+f.replace('"',"&quote;")+'">'+u+"</span>"})):"<span>"+t.replace(/\\\]/g,"]")+"</span>"}).join(""),t.replace(/<span><br\s*\/?><\/span>/gi,"<br/>")}return""},escape_brackets:function(e){return e.replace(/\[/g,"&#91;").replace(/\]/g,"&#93;")},strip:function(e){return e.replace(E,"$6")},active:function(){return Y.front()},parseArguments:function(t){return e.terminal.parse_arguments(t)},splitArguments:function(t){return e.terminal.split_arguments(t)},parseCommand:function(t){return e.terminal.parse_command(t)},splitCommand:function(t){return e.terminal.split_command(t)},parse_arguments:function(t){var n=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;return e.map(t.match(I)||[],function(e){if("'"===e[0]&&"'"===e[e.length-1])return e.replace(/^'|'$/g,"");if('"'===e[0]&&'"'===e[e.length-1])return e=e.replace(/^"|"$/g,"").replace(/\\([" ])/g,"$1"),e.replace(/\\\\|\\t|\\n/g,function(e){return"t"===e[1]?" ":"n"===e[1]?"\n":"\\"}).replace(/\\x([0-9a-f]+)/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}).replace(/\\0([0-7]+)/g,function(e,t){return String.fromCharCode(parseInt(t,8))});if(e.match(/^\/(\\\/|[^\/])+\/[gimy]*$/)){var t=e.match(/^\/([^\/]+)\/([^\/]*)$/);return new RegExp(t[1],t[2])}return e.match(/^-?[0-9]+$/)?parseInt(e,10):e.match(n)?parseFloat(e):e.replace(/\\ /g," ")})},split_arguments:function(t){return e.map(t.match(I)||[],function(e){return"'"===e[0]&&"'"===e[e.length-1]?e.replace(/^'|'$/g,""):'"'===e[0]&&'"'===e[e.length-1]?e.replace(/^"|"$/g,"").replace(/\\([" ])/g,"$1"):e.match(/\/.*\/[gimy]*$/)?e:e.replace(/\\ /g," ")})},parse_command:function(t){return p(t,e.terminal.parse_arguments)},split_command:function(t){return p(t,e.terminal.split_arguments)},extended_command:function(e,t){try{Z=!1,e.exec(t,!0).then(function(){Z=!0})}catch(n){}}},e.fn.visible=function(){return this.css("visibility","visible")},e.fn.hidden=function(){return this.css("visibility","hidden")};var W={};e.jrpc=function(t,n,r,i,o){W[t]=W[t]||0;var s=e.json_stringify({jsonrpc:"2.0",method:n,params:r,id:++W[t]});return e.ajax({url:t,data:s,success:function(t,n,r){var s=r.getResponseHeader("Content-Type");if(!s.match(/application\/json/)){var a="Response Content-Type is not application/json";if(!console||!console.warn)throw new Error("WARN: "+a);console.warn(a)}var u;try{u=e.parseJSON(t)}catch(l){if(!o)throw new Error("Invalid JSON");return void o(r,"Invalid JSON",l)}i(u,n,r)},error:o,contentType:"application/json",dataType:"text",async:!0,cache:!1,type:"POST"})};var z=!e.terminal.version.match(/^\{\{/),M="Copyright (c) 2011-2016 Jakub Jankiewicz <http://jcubic.pl>",B=z?" v. "+e.terminal.version:" ",U=new RegExp(" {"+B.length+"}$"),X="jQuery Terminal Emulator"+(z?B:""),K=[["jQuery Terminal","(c) 2011-2016 jcubic"],[X,M.replace(/^Copyright | *<.*>/g,"")],[X,M.replace(/^Copyright /,"")],[" _______ ________ __"," / / _ /_ ____________ _/__ ___/______________ _____ / /"," __ / / // / // / _ / _/ // / / / _ / _/ / / \\/ / _ \\/ /","/ / / // / // / ___/ // // / / / ___/ // / / / / /\\ / // / /__","\\___/____ \\\\__/____/_/ \\__ / /_/____/_//_/_/_/ /_/ \\/\\__\\_\\___/"," \\/ /____/ ".replace(U," ")+B,M],[" __ _____ ________ __"," / // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /"," __ / // // // // // _ // _// // / / // _ // _// // // \\/ // _ \\/ /","/ / // // // // // ___// / / // / / // ___// / / / / // // /\\ // // / /__","\\___//____ \\\\___//____//_/ _\\_ / /_//____//_/ /_/ /_//_//_/ /_/ \\__\\_\\___/"," \\/ /____/ ".replace(U,"")+B,M]];e.terminal.defaults={prompt:"> ",history:!0,exit:!0,clear:!0,enabled:!0,historySize:60,maskChar:"*",checkArity:!0,raw:!1,exceptionHandler:null,cancelableAjax:!0,processArguments:!0,linksNoReferrer:!1,processRPCResponse:null,Token:!0,convertLinks:!0,historyState:!1,echoCommand:!0,login:null,outputLimit:-1,formatters:[],onAjaxError:null,onRPCError:null,completion:!1,historyFilter:null,onInit:e.noop,onClear:e.noop,onBlur:e.noop,onFocus:e.noop,onTerminalChange:e.noop,onExit:e.noop,keypress:e.noop,keydown:e.noop,strings:{wrongPasswordTryAgain:"Wrong password try again!",wrongPassword:"Wrong password!",ajaxAbortError:"Error while aborting ajax call!",wrongArity:"Wrong number of arguments. Function '%s' expects %s got %s!",commandNotFound:"Command '%s' Not Found!",oneRPCWithIgnore:"You can use only one rpc with ignoreSystemDescribe",oneInterpreterFunction:"You can't use more than one function (rpcwith ignoreSystemDescribe counts as one)",loginFunctionMissing:"You didn't specify a login function",noTokenError:"Access denied (no token)",serverResponse:"Server responded",wrongGreetings:"Wrong value of greetings parameter",notWhileLogin:"You can't call `%s' function while in login",loginIsNotAFunction:"Authenticate must be a function",canExitError:"You can't exit from main interpreter",invalidCompletion:"Invalid completion",invalidSelector:'Sorry, but terminal said that "%s" is not valid selector!',invalidTerminalId:"Invalid Terminal ID",login:"login",password:"password",recursiveCall:"Recursive call detected, skip"}};var Q,G=[],Y=new l,J=[],Z=!1,V=!0,ee=!0;e.fn.terminal=function(n,r){function i(t){return e.isFunction(Te.processArguments)?p(t,Te.processArguments):Te.processArguments?e.terminal.parse_command(t):e.terminal.split_command(t)}function o(t){"string"==typeof t?ae.echo(t):t instanceof Array?ae.echo(e.map(t,function(t){
  2. return e.json_stringify(t)}).join(" ")):"object"==typeof t?ae.echo(e.json_stringify(t)):ae.echo(t)}function s(t){var n=/(.*):([0-9]+):([0-9]+)$/,r=t.match(n);r&&(ae.pause(),e.get(r[1],function(t){var n=location.href.replace(/[^\/]+$/,""),i=r[1].replace(n,"");ae.echo("[[b;white;]"+i+"]");var o=t.split("\n"),s=+r[2]-1;ae.echo(o.slice(s-2,s+3).map(function(t,n){return 2==n&&(t="[[;#f00;]"+e.terminal.escape_brackets(t)+"]"),"["+(s+n)+"]: "+t}).join("\n")).resume()},"text"))}function a(t){if(e.isFunction(Te.onRPCError))Te.onRPCError.call(ae,t);else if(ae.error("&#91;RPC&#93; "+t.message),t.error&&t.error.message){t=t.error;var n=" "+t.message;t.file&&(n+=' in file "'+t.file.replace(/.*\//,"")+'"'),t.at&&(n+=" at line "+t.at),ae.error(n)}}function u(t,n){var r=function(n,r){ae.pause(),e.jrpc(t,n,r,function(t){t.error?a(t.error):e.isFunction(Te.processRPCResponse)?Te.processRPCResponse.call(ae,t.result,ae):o(t.result),ae.resume()},f)};return function(e,t){if(""!==e){try{e=i(e)}catch(o){return void t.error(o.toString())}if(n&&"help"!==e.name){var s=t.token();s?r(e.name,[s].concat(e.args)):t.error("&#91;AUTH&#93; "+Ce.noTokenError)}else r(e.name,e.args)}}}function l(n,r,o,s){return function(a,u){if(""!==a){var c;try{c=i(a)}catch(f){return void ae.error(f.toString())}var p=n[c.name],h=e.type(p);if("function"===h){if(!r||p.length===c.args.length)return p.apply(ae,c.args);ae.error("&#91;Arity&#93; "+sprintf(Ce.wrongArity,c.name,p.length,c.args.length))}else if("object"===h||"string"===h){var d=[];"object"===h&&(d=Object.keys(p),p=l(p,r,o)),u.push(p,{prompt:c.name+"> ",name:c.name,completion:"object"===h?d:t})}else e.isFunction(s)?s(a,ae):e.isFunction(Te.onCommandNotFound)?Te.onCommandNotFound(a,ae):u.error(sprintf(Ce.commandNotFound,c.name))}}}function f(t,n,r){ae.resume(),e.isFunction(Te.onAjaxError)?Te.onAjaxError.call(ae,t,n,r):"abort"!==n&&ae.error("&#91;AJAX&#93; "+n+" - "+Ce.serverResponse+": \n"+e.terminal.escape_brackets(t.responseText))}function h(t,n,r){e.jrpc(t,"system.describe",[],function(i){if(i.procs){var s={};e.each(i.procs,function(r,i){s[i.name]=function(){var r=n&&"help"!=i.name,s=Array.prototype.slice.call(arguments),u=s.length+(r?1:0);if(Te.checkArity&&i.params&&i.params.length!==u)ae.error("&#91;Arity&#93; "+sprintf(Ce.wrongArity,i.name,i.params.length,u));else{if(ae.pause(),r){var l=ae.token(!0);l?s=[l].concat(s):ae.error("&#91;AUTH&#93; "+Ce.noTokenError)}e.jrpc(t,i.name,s,function(t){t.error?a(t.error):e.isFunction(Te.processRPCResponse)?Te.processRPCResponse.call(ae,t.result,ae):o(t.result),ae.resume()},f)}}}),s.help=s.help||function(t){if("undefined"==typeof t)ae.echo("Available commands: "+i.procs.map(function(e){return e.name}).join(", ")+", help");else{var n=!1;if(e.each(i.procs,function(e,r){if(r.name==t){n=!0;var i="";return i+="[[bu;#fff;]"+r.name+"]",r.params&&(i+=" "+r.params.join(" ")),r.help&&(i+="\n"+r.help),ae.echo(i),!1}}),!n)if("help"==t)ae.echo("[[bu;#fff;]help] [method]\ndisplay help for the method or list of methods if not specified");else{var r="Method `"+t.toString()+"' not found ";ae.error(r)}}},r(s)}else r(null)},function(){r(null)})}function y(t,n,r){r=r||e.noop;var i,o,s=e.type(t),a={},c=0;if("array"===s)i={},function f(t,r){if(t.length){var s=t[0],a=t.slice(1),l=e.type(s);"string"===l?(c++,ae.pause(),Te.ignoreSystemDescribe?(1===c?o=u(s,n):ae.error(Ce.oneRPCWithIgnore),f(a,r)):h(s,n,function(t){t&&e.extend(i,t),ae.resume(),f(a,r)})):"function"===l?(o?ae.error(Ce.oneInterpreterFunction):o=s,f(a,r)):"object"===l&&(e.extend(i,s),f(a,r))}else r()}(t,function(){r({interpreter:l(i,!1,n,o),completion:Object.keys(i)})});else if("string"===s)Te.ignoreSystemDescribe?(i={interpreter:u(t,n)},e.isArray(Te.completion)&&(i.completion=Te.completion),r(i)):(ae.pause(),h(t,n,function(e){e?(a.interpreter=l(e,!1,n),a.completion=Object.keys(e)):a.interpreter=u(t,n),r(a),ae.resume()}));else if("object"===s)r({interpreter:l(t,Te.checkArity),completion:Object.keys(t)});else{if("undefined"===s)t=e.noop;else if("function"!==s)throw s+" is invalid interpreter value";r({interpreter:t,completion:Te.completion})}}function w(t,n){var r="boolean"===e.type(n)?"login":n;return function(n,i,o,s){ae.pause(),e.jrpc(t,r,[n,i],function(e){o(!e.error&&e.result?e.result:null),ae.resume()},f)}}function _(e){return"string"==typeof e?e:"string"==typeof e.fileName?e.fileName+": "+e.message:e.message}function x(t,n){e.isFunction(Te.exceptionHandler)?Te.exceptionHandler.call(ae,t):ae.exception(t,n)}function k(){var e;e=ue.prop?ue.prop("scrollHeight"):ue.attr("scrollHeight"),ue.scrollTop(e)}function T(t,n){try{if(e.isFunction(n))n(function(){});else if("string"!=typeof n){var r=t+" must be string or function";throw r}}catch(i){return x(i,t.toUpperCase()),!1}return!0}function C(t,n){Te.convertLinks&&(t=t.replace(O,"[[!;;]$1]").replace(P,"[[!;;]$1]"));var r,i,o=e.terminal.defaults.formatters;if(!n.raw){for(r=0;r<o.length;++r)try{if("function"==typeof o[r]){var s=o[r](t);"string"==typeof s&&(t=s)}}catch(a){alert("formatting error at formatters["+r+"]\n"+(a.stack?a.stack:a))}t=e.terminal.encode(t)}if(re.push(ie),!n.raw&&(t.length>fe||t.match(/\n/))){var u=n.keepWords,l=e.terminal.split_equal(t,fe,u);for(r=0,i=l.length;i>r;++r)""===l[r]||"\r"===l[r]?re.push("<span></span>"):n.raw?re.push(l[r]):re.push(e.terminal.format(l[r],{linksNoReferrer:Te.linksNoReferrer}))}else n.raw||(t=e.terminal.format(t,{linksNoReferrer:Te.linksNoReferrer})),re.push(t);re.push(n.finalize)}function j(t,n){try{var r=e.extend({exec:!0,raw:!1,finalize:e.noop},n||{}),i="function"===e.type(t)?t():t;i="string"===e.type(i)?i:String(i),""!==i&&(r.exec?(i=e.map(i.split($),function(t){return t.match($)&&!e.terminal.is_formatting(t)?(t=t.replace(/^\[\[|\]\]$/g,""),le&&le.command==t?ae.error(Ce.recursiveCall):e.terminal.extended_command(ae,t),""):t}).join(""),""!==i&&C(i,r)):C(i,r))}catch(o){re=[],alert("[Internal Exception(process_line)]:"+_(o)+"\n"+o.stack)}}function E(){Ie.resize(fe);var t,n=ce.empty().detach();if(Te.outputLimit>=0){var r=0===Te.outputLimit?ae.rows():Te.outputLimit;t=ve.slice(ve.length-r-1)}else t=ve;try{re=[],e.each(t,function(e,t){j.apply(null,t)}),Ie.before(n),ae.flush()}catch(i){alert("Exception in redraw\n"+i.stack)}}function F(){if(Te.greetings===t)ae.echo(ae.signature);else if(Te.greetings){var e=typeof Te.greetings;"string"===e?ae.echo(Te.greetings):"function"===e?Te.greetings.call(ae,ae.echo):ae.error(Ce.wrongGreetings)}}function D(t){var n=Ie.prompt(),r=Ie.mask();switch(typeof r){case"string":t=t.replace(/./g,r);break;case"boolean":t=r?t.replace(/./g,Te.maskChar):e.terminal.escape_formatting(t)}var i={finalize:function(e){e.addClass("command")}};e.isFunction(n)?n(function(e){ae.echo(e+t,i)}):ae.echo(n+t,i)}function A(e){var t=Y.get()[e[0]];if(!t)throw new Error(Ce.invalidTerminalId);var n=e[1];if(J[n])t.import_view(J[n]);else{Z=!1;var r=e[2];r&&t.exec(r).then(function(){Z=!0,J[n]=t.export_view()})}}function N(){Z&&(V=!1,location.hash="#"+e.json_stringify(Q),setTimeout(function(){V=!0},100))}function I(n,r,i){function s(){i||(Z=!0,Te.historyState&&ae.save_state(n,!1),Z=l),u.resolve(),e.isFunction(Te.onAfterCommand)&&Te.onAfterCommand(ae,n)}ne=n,oe&&(oe=!1,(Te.historyState||Te.execHash&&i)&&(J.length?ae.save_state(null):ae.save_state()));try{if(e.isFunction(Te.onBeforeCommand)&&Te.onBeforeCommand(ae,n)===!1)return;i||(le=e.terminal.split_command(n)),B()||i&&(e.isFunction(Te.historyFilter)&&Te.historyFilter(n)||n.match(Te.historyFilter))&&Ie.history().append(n);var a=Oe.top();!r&&Te.echoCommand&&D(n);var u=new e.Deferred,l=Z,c=ve.length-1,f=a.interpreter.call(ae,n,ae);if(f!==t)return ae.pause(!0),e.when(f).then(function(e){e&&c===ve.length-1&&o(e),s(),ae.resume()});if(je){se.push(function(){s()})}else s();return u.promise()}catch(p){throw x(p,"USER"),ae.resume(),p}}function L(){if(e.isFunction(Te.onBeforeLogout))try{if(Te.onBeforeLogout(ae)===!1)return}catch(t){x(t,"onBeforeLogout")}if(q(),e.isFunction(Te.onAfterLogout))try{Te.onAfterLogout(ae)}catch(t){x(t,"onAfterlogout")}ae.login(Te.login,!0,z)}function q(){var t=ae.prefix_name(!0)+"_";e.Storage.remove(t+"token"),e.Storage.remove(t+"login")}function H(t){var n=ae.prefix_name()+"_interpreters",r=e.Storage.get(n);r=r?e.parseJSON(r):[],-1==e.inArray(t,r)&&(r.push(t),e.Storage.set(n,e.json_stringify(r)))}function W(t){var n=Oe.top(),r=ae.prefix_name(!0);B()||H(r),Ie.name(r),e.isFunction(n.prompt)?Ie.prompt(function(e){n.prompt(e,ae)}):Ie.prompt(n.prompt),Ie.set(""),!t&&e.isFunction(n.onStart)&&n.onStart(ae)}function z(){function t(){if(V&&Te.execHash)try{if(location.hash){var t=location.hash.replace(/^#/,"");Q=e.parseJSON(decodeURIComponent(t))}else Q=[];Q.length?A(Q[Q.length-1]):J[0]&&ae.import_view(J[0])}catch(n){x(n,"TERMINAL")}}W(),F();var n=!1;if(e.isFunction(Te.onInit)){xe=function(){n=!0};try{Te.onInit(ae)}catch(r){x(r,"OnInit")}finally{xe=e.noop,n||ae.resume()}}ee&&(ee=!1,e.fn.hashchange?e(window).hashchange(t):e(window).bind("hashchange",t))}function M(t,n,r){var i=Ie.get().substring(0,Ie.position());if(i===t){for(var o=new RegExp("^"+e.terminal.escape_regex(n)),s=[],a=r.length;a--;)o.test(r[a])&&s.push(r[a]);if(1===s.length)ae.insert(s[0].replace(o,""));else if(s.length>1)if(ge>=2){D(t);var u=s.reverse().join(" ");ae.echo(e.terminal.escape_brackets(u),{keepWords:!0}),ge=0}else{var l,c=!1;e:for(l=n.length;l<s[0].length;++l){for(a=1;a<s.length;++a)if(s[0].charAt(l)!==s[a].charAt(l))break e;c=!0}c&&ae.insert(s[0].slice(0,l).replace(o,""))}}}function B(){return _e||Ie.mask()!==!1}function U(n){var r,i,o,s=Oe.top();if(!ae.paused()&&ae.enabled()){if(e.isFunction(s.keydown)){if(r=s.keydown(n,ae),r!==t)return r}else if(e.isFunction(Te.keydown)&&(r=Te.keydown(n,ae),r!==t))return r;if(o=Te.completion&&"boolean"!=e.type(Te.completion)&&s.completion===t?Te.completion:s.completion,ae.oneTime(10,function(){Fe()}),9!==n.which&&(ge=0),76===n.which&&n.ctrlKey)ae.clear();else{if(o&&9===n.which){++ge;var a,u=Ie.position(),l=Ie.get().substring(0,u),c=l.split(" ");if(1==Ce.length)a=c[0];else for(a=c[c.length-1],i=c.length-1;i>0&&"\\"==c[i-1][c[i-1].length-1];i--)a=c[i-1]+" "+a;switch(e.type(o)){case"function":o(ae,a,function(e){M(l,a,e)});break;case"array":M(l,a,o);break;default:throw new Error(Ce.invalidCompletion)}return!1}if((118===n.which||86===n.which)&&(n.ctrlKey||n.metaKey))return void ae.oneTime(1,function(){k()});if(9===n.which&&n.ctrlKey){if(Y.length()>1)return ae.focus(!1),!1}else 34===n.which?ae.scroll(ae.height()):33===n.which?ae.scroll(-ae.height()):ae.attr({scrollTop:ae.attr("scrollHeight")})}}else if(68===n.which&&n.ctrlKey){if(G.length){for(i=G.length;i--;){var f=G[i];if(4!==f.readyState)try{f.abort()}catch(p){ae.error(Ce.ajaxAbortError)}}G=[],ae.resume()}return!1}}function X(){Le&&ae.focus()}function te(){Le=Se,ae.disable()}var ne,re=[],ie=1,oe=!0,se=[],ae=this;if(this.length>1)return this.each(function(){e.fn.terminal.call(e(this),n,e.extend({name:ae.selector},r))});if(ae.data("terminal"))return ae.data("terminal");if(0===ae.length)throw sprintf(e.terminal.defaults.strings.invalidSelector,ae.selector);var ue,le,ce,fe,pe,he,de,me,ge=0,ve=[],ye=Y.length(),be=new c,we=e.Deferred(),_e=!1,xe=e.noop,ke=[],Te=e.extend({},e.terminal.defaults,{name:ae.selector},r||{}),Ce=e.terminal.defaults.strings,Se=Te.enabled,je=!1,Ee=!0;e.extend(ae,e.omap({id:function(){return ye},clear:function(){ce.html(""),ve=[];try{Te.onClear(ae)}catch(e){x(e,"onClear")}return ae.attr({scrollTop:0}),ae},export_view:function(){var t={};if(e.isFunction(Te.onExport))try{t=Te.onExport()}catch(n){x(n,"onExport")}return e.extend({},{focus:Se,mask:Ie.mask(),prompt:ae.get_prompt(),command:ae.get_command(),position:Ie.position(),lines:b(ve),interpreters:Oe.clone()},t)},import_view:function(t){if(_e)throw new Error(sprintf(Ce.notWhileLogin,"import_view"));if(e.isFunction(Te.onImport))try{Te.onImport(t)}catch(n){x(n,"onImport")}return we.then(function(){ae.set_prompt(t.prompt),ae.set_command(t.command),Ie.position(t.position),Ie.mask(t.mask),t.focus&&ae.focus(),ve=b(t.lines),Oe=t.interpreters,E()}),ae},save_state:function(n,r,i){if("undefined"!=typeof i?J[i]=ae.export_view():J.push(ae.export_view()),e.isArray(Q)||(Q=[]),n!==t&&!r){var o=[ye,J.length-1,n];Q.push(o),N()}},exec:function(t,n,r){function i(){e.isArray(t)?!function r(){var e=t.shift();e?ae.exec(e,n).then(r):o.resolve()}():je?ke.push([t,n,o]):I(t,n,!0).then(function(){o.resolve(ae)})}var o=r||new e.Deferred;return"resolved"!=we.state()?we.then(i):i(),o.promise()},autologin:function(e,t,n){return ae.trigger("terminal.autologin",[e,t,n]),ae},login:function(t,n,r,i,o){function s(t,s,u,l){if(s){for(;ae.level()>a;)ae.pop();Te.history&&Ie.history().enable();var c=ae.prefix_name(!0)+"_";e.Storage.set(c+"token",s),e.Storage.set(c+"login",t),_e=!1,e.isFunction(r)&&r()}else n?(u||ae.error(Ce.wrongPasswordTryAgain),ae.pop().set_mask(!1)):(_e=!1,u||ae.error(Ce.wrongPassword),o?ae.pop():ae.pop().pop()),e.isFunction(i)&&i();ae.off("terminal.autologin")}if(be.push([].slice.call(arguments)),_e)throw new Error(sprintf(Ce.notWhileLogin,"login"));if(!e.isFunction(t))throw new Error(Ce.loginIsNotAFunction);if(_e=!0,ae.token()&&1==ae.level()&&!Ee)_e=!1,ae.logout(!0);else if(ae.token(!0)&&ae.login_name(!0))return _e=!1,e.isFunction(r)&&r(),ae;Te.history&&Ie.history().disable();var a=ae.level();ae.on("terminal.autologin",function(e,t,n,r){s(t,n,r)});var u=function(e){ae.set_mask(Te.maskChar).push(function(n){try{t.call(ae,e,n,function(t,n){s(e,t,n)})}catch(r){x(r,"AUTH")}},{prompt:Ce.password+": ",name:"password"})};return o?u(o):ae.push(u,{prompt:Ce.login+": ",name:"login"})},settings:function(){return Te},commands:function(){return Oe.top().interpreter},setInterpreter:function(){return window.console&&console.warn&&console.warn("This function is deprecated, use set_interpreter insead!"),ae.set_interpreter.apply(ae,arguments)},set_interpreter:function(t,n){function r(){ae.pause(),y(t,!!n,function(t){ae.resume();var n=Oe.top();e.extend(n,t),W(!0)})}return"string"==e.type(t)&&n?ae.login(w(t,n),!0,r):r(),ae},greetings:function(){return F(),ae},paused:function(){return je},pause:function(t){return xe(),!je&&Ie&&we.then(function(){je=!0,Ie.disable(),t||Ie.hidden(),e.isFunction(Te.onPause)&&Te.onPause()}),ae},resume:function(){function t(){je=!1,Y.front()==ae&&Ie.enable(),Ie.visible();var t=ke;ke=[];for(var n=0;n<t.length;++n)ae.exec.apply(ae,t[n]);ae.trigger("resume");var r=se.shift();r&&r(),k(),e.isFunction(Te.onResume)&&Te.onResume()}return je&&Ie&&("resolved"!=we.state()?we.then(t):t()),ae},cols:function(){return Te.numChars?Te.numChars:d(ae)},rows:function(){return Te.numRows?Te.numRows:m(ae)},history:function(){return Ie.history()},history_state:function(e){return e?ae.oneTime(1,function(){Te.historyState=!0,J.length?Y.length()>1&&ae.save_state(null):ae.save_state()}):Te.historyState=!1,ae},clear_history_state:function(){Q=[],J=[]},next:function(){if(1===Y.length())return ae;ae.offset().top,ae.height(),ae.scrollTop();Y.front().disable();var t=Y.rotate().enable(),n=t.offset().top-50;e("html,body").animate({scrollTop:n},500);try{Te.onTerminalChange(t)}catch(r){x(r,"onTerminalChange")}return t},focus:function(e,t){return we.then(function(){if(1===Y.length())if(e===!1)try{(!t&&Te.onBlur(ae)!==!1||t)&&ae.disable()}catch(n){x(n,"onBlur")}else try{(!t&&Te.onFocus(ae)!==!1||t)&&ae.enable()}catch(n){x(n,"onFocus")}else if(e===!1)ae.next();else{var r=Y.front();if(r!=ae&&(r.disable(),!t))try{Te.onTerminalChange(ae)}catch(n){x(n,"onTerminalChange")}Y.set(ae),ae.enable()}}),ae},freeze:function(e){we.then(function(){e?(ae.disable(),me=!0):(me=!1,ae.enable())})},frozen:function(){return me},enable:function(){return Se||me||(fe===t&&ae.resize(),we.then(function(){Ie.enable(),Se=!0})),ae},disable:function(){return Se&&!me&&we.then(function(){Se=!1,Ie.disable()}),ae},enabled:function(){return Se},signature:function(){var e=ae.cols(),t=15>e?null:35>e?0:55>e?1:64>e?2:75>e?3:4;return null!==t?K[t].join("\n")+"\n":""},version:function(){return e.terminal.version},cmd:function(){return Ie},get_command:function(){return Ie.get()},set_command:function(e){return we.then(function(){Ie.set(e)}),ae},insert:function(e){if("string"==typeof e)return we.then(function(){Ie.insert(e)}),ae;throw"insert function argument is not a string"},set_prompt:function(t){return we.then(function(){T("prompt",t)&&(e.isFunction(t)?Ie.prompt(function(e){t(e,ae)}):Ie.prompt(t),Oe.top().prompt=t)}),ae},get_prompt:function(){return Oe.top().prompt},set_mask:function(e){return we.then(function(){Ie.mask(e===!0?Te.maskChar:e)}),ae},get_output:function(t){return t?ve:e.map(ve,function(t){return e.isFunction(t[0])?t[0]():t[0]}).join("\n")},resize:function(t,n){if(ae.is(":visible")){t&&n&&(ae.width(t),ae.height(n)),t=ae.width(),n=ae.height();var r=ae.cols(),i=ae.rows();if(r!==fe||i!==pe){fe=r,pe=i,E();var o=Oe.top();e.isFunction(o.resize)?o.resize(ae):e.isFunction(Te.onResize)&&Te.onResize(ae),de=n,he=t,k()}}else ae.stopTime("resize"),ae.oneTime(500,"resize",function(){ae.resize(t,n)});return ae},flush:function(){try{var t;if(e.each(re,function(n,r){if(r===ie)t=e("<div></div>");else if(e.isFunction(r)){t.appendTo(ce);try{r(t)}catch(i){x(i,"USER:echo(finalize)")}}else e("<div/>").html(r).appendTo(t).width("100%")}),Te.outputLimit>=0){var n=0===Te.outputLimit?ae.rows():Te.outputLimit,r=ce.find("div div");if(r.length>n){var i=ve.length-n+1,o=r.slice(0,i),s=o.parent();o.remove(),s.each(function(){var t=e(this);t.is(":empty")&&t.remove()})}}k(),re=[]}catch(a){alert("[Flush] "+_(a)+"\n"+a.stack)}return ae},update:function(e,t){return we.then(function(){0>e&&(e=ve.length+e),ve[e]?(null==t?ve.splice(e,1):ve[e][0]=t,E()):ae.error("Invalid line number "+e)}),ae},last_index:function(){return ve.length-1},echo:function(t,n){return t=t||"",e.when(t).then(function(t){try{re=[];var r=e.extend({flush:!0,raw:Te.raw,finalize:e.noop,keepWords:!1},n||{});j(t,r),ve.push([t,e.extend(r,{exec:!1})]),r.flush&&ae.flush(),pe=m(ae),Fe()}catch(i){alert("[Terminal.echo] "+_(i)+"\n"+i.stack)}}),ae},error:function(t,n){var r=e.terminal.escape_brackets(t).replace(/\\$/,"&#92;").replace(R,"]$1[[;;;error]");return ae.echo("[[;;;error]"+r+"]",n)},exception:function(t,n){var r=_(t);if(n&&(r="&#91;"+n+"&#93;: "+r),r&&ae.error(r,{finalize:function(e){e.addClass("exception message")}}),"string"==typeof t.fileName&&(ae.pause(),e.get(t.fileName,function(e){ae.resume();var n=t.lineNumber-1,r=e.split("\n")[n];r&&ae.error("["+t.lineNumber+"]: "+r)})),t.stack){var i=e.terminal.escape_brackets(t.stack);ae.echo(i.split(/\n/g).map(function(e){return"[[;;;error]"+e.replace(R,function(e){return"]"+e+"[[;;;error]"})+"]"}).join("\n"),{finalize:function(e){e.addClass("exception stack-trace")}})}},scroll:function(e){var t;return e=Math.round(e),ue.prop?(e>ue.prop("scrollTop")&&e>0&&ue.prop("scrollTop",0),t=ue.prop("scrollTop"),ue.scrollTop(t+e)):(e>ue.attr("scrollTop")&&e>0&&ue.attr("scrollTop",0),t=ue.attr("scrollTop"),ue.scrollTop(t+e)),ae},logout:function(e){if(_e)throw new Error(sprintf(Ce.notWhileLogin,"logout"));return we.then(function(){if(e){var n=be.pop();ae.set_token(t,!0),ae.login.apply(ae,n)}else for(;Oe.size()>0&&!ae.pop(););}),ae},token:function(t){return e.Storage.get(ae.prefix_name(t)+"_token")},set_token:function(t,n){var r=ae.prefix_name(n)+"_token";return"undefined"==typeof t?e.Storage.remove(r,t):e.Storage.set(r,t),ae},get_token:function(t){return e.Storage.get(ae.prefix_name(t)+"_token")},login_name:function(t){return e.Storage.get(ae.prefix_name(t)+"_login")},name:function(){return Oe.top().name},prefix_name:function(e){var t=(Te.name?Te.name+"_":"")+ye;if(e&&Oe.size()>1){var n=Oe.map(function(e){return e.name}).slice(1).join("_");n&&(t+="_"+n)}return t},read:function(t,n){var r=new e.Deferred;return ae.push(function(t){ae.pop(),e.isFunction(n)&&n(t),r.resolve(t)},{prompt:t}),r.promise()},push:function(n,r){return we.then(function(){r=r||{};var i={infiniteLogin:!1},o=e.extend({},i,r);!o.name&&le&&(o.name=le.name),o.prompt===t&&(o.prompt=(o.name||">")+" ");var s=Oe.top();s&&(s.mask=Ie.mask());var a=je;y(n,!!r.login,function(t){if(Oe.push(e.extend({},t,o)),e.isArray(t.completion)&&o.completion===!0?Oe.top().completion=t.completion:t.completion||o.completion!==!0||(Oe.top().completion=!1),o.login){var r=e.type(o.login);"function"==r?ae.login(o.login,o.infiniteLogin,W,o.infiniteLogin?e.noop:ae.pop):("string"==e.type(n)&&"string"==r||"boolean"==r)&&ae.login(w(n,o.login),o.infiniteLogin,W,o.infiniteLogin?e.noop:ae.pop)}else W();a||ae.resume()})}),ae},pop:function(n){n!==t&&D(n);ae.token(!0);if(1==Oe.size()){if(Te.login){if(L(),e.isFunction(Te.onExit))try{Te.onExit(ae)}catch(r){x(r,"onExit")}return!0}ae.error(Ce.canExitError)}else{ae.token(!0)&&q();var i=Oe.pop();if(W(),_e&&ae.get_prompt()!=Ce.login+": "&&(_e=!1),e.isFunction(i.onExit))try{i.onExit(ae)}catch(r){x(r,"onExit")}ae.set_mask(Oe.top().mask)}return ae},option:function(t,n){if("undefined"==typeof n){if("string"==typeof t)return Te[t];"object"==typeof t&&e.each(t,function(e,t){Te[e]=t})}else Te[t]=n;return ae},level:function(){return Oe.size()},reset:function(){return we.then(function(){for(ae.clear();Oe.size()>1;)Oe.pop();z()}),ae},purge:function(){return we.then(function(){var t=ae.prefix_name()+"_",n=e.Storage.get(t+"interpreters");e.each(e.parseJSON(n),function(t,n){e.Storage.remove(n+"_commands"),e.Storage.remove(n+"_token"),e.Storage.remove(n+"_login")}),Ie.purge(),e.Storage.remove(t+"interpreters")}),ae},destroy:function(){return we.then(function(){Ie.destroy().remove(),ce.remove(),e(document).unbind(".terminal"),e(window).unbind(".terminal"),ae.unbind("click mousewheel mousedown mouseup"),ae.removeData("terminal").removeClass("terminal"),Te.width&&ae.css("width",""),Te.height&&ae.css("height",""),e(window).off("blur",te).off("focus",X),Y.remove(ye)}),ae}},function(e,t){return function(){try{return t.apply(ae,[].slice.apply(arguments))}catch(n){throw"exec"!==e&&"resume"!==e&&x(n,"TERMINAL"),n}}}));var Fe=function(){var e=v(ae);return function(){e!==v(ae)&&(ae.resize(),e=v(ae))}}();Te.width&&ae.width(Te.width),Te.height&&ae.height(Te.height);var De=navigator.userAgent.toLowerCase();if(ue=De.match(/(webkit)[ \/]([\w.]+)/)||"body"!=ae[0].tagName.toLowerCase()?ae:e("html"),e(document).bind("ajaxSend.terminal",function(e,t,n){G.push(t)}),ce=e("<div>").addClass("terminal-output").appendTo(ae),ae.addClass("terminal"),Te.login&&e.isFunction(Te.onBeforeLogin))try{Te.onBeforeLogin(ae)===!1&&(Ee=!1)}catch(Ae){throw x(Ae,"onBeforeLogin"),Ae}var Ne;Te.login;if("string"==typeof n)Ne=n;else if(n instanceof Array)for(var Re=0,Pe=n.length;Pe>Re;++Re)if("string"==typeof n[Re]){Ne=n[Re];break}!Ne||"string"!=typeof Te.login&&Te.login!==!0||(Te.login=w(Ne,Te.login)),Y.append(ae);var Oe,Ie,Le;return y(n,!!Te.login,function(n){function r(t){var n=Y.get()[t[0]];if(n&&ye==n.id()&&t[2])try{if(je){var r=e.Deferred();return se.push(function(){return n.exec(t[2]).then(function(e,i){n.save_state(t[2],!0,t[1]),r.resolve()})}),r.promise()}return n.exec(t[2]).then(function(e,r){n.save_state(t[2],!0,t[1])})}catch(i){var o=e.terminal.escape_brackets(command),s="Error while exec with command "+o;n.error(s).exception(i)}}(Te.completion&&"boolean"!=typeof Te.completion||!Te.completion)&&(n.completion=Te.completion),Oe=new c(e.extend({name:Te.name,prompt:Te.prompt,keypress:Te.keypress,keydown:Te.keydown,resize:Te.onResize,greetings:Te.greetings,mousewheel:Te.mousewheel},n)),Ie=e("<div/>").appendTo(ae).cmd({prompt:Te.prompt,history:Te.history,historyFilter:Te.historyFilter,historySize:Te.historySize,width:"100%",enabled:Se&&!S,keydown:U,keypress:function(t){var n=Oe.top();return e.isFunction(n.keypress)?n.keypress(t,ae):e.isFunction(Te.keypress)?Te.keypress(t,ae):void 0},onCommandChange:function(t){if(e.isFunction(Te.onCommandChange))try{Te.onCommandChange(t,ae)}catch(n){throw x(n,"onCommandChange"),n}k()},commands:I}),Se&&ae.is(":visible")&&!S?ae.focus(t,!0):ae.disable(),ae.oneTime(100,function(){function t(t){var n=e(t.target);!n.closest(".terminal").length&&ae.enabled()&&Te.onBlur(ae)!==!1&&ae.disable()}e(document).bind("click.terminal",t).bind("contextmenu.terminal",t)});var i=e(window);if(S||i.on("focus",X).on("blur",te),function(){var t=0,n=!1;ae.mousedown(function(){e(window).mousemove(function(){n=!0,t=0,e(window).unbind("mousemove")})}).mouseup(function(){var r=n;n=!1,e(window).unbind("mousemove"),r||1!=t++||(ae.enabled()?S&&ae.focus(!0,!0):ae.focus(),Ie.enable())})}(),ae.delegate(".exception a","click",function(t){var n=e(this).attr("href");n.match(/:[0-9]+$/)&&(t.preventDefault(),s(n))}),navigator.platform.match(/linux/i)||ae.mousedown(function(e){if(2==e.which){var t=g();ae.insert(t)}}),ae.is(":visible")&&(fe=ae.cols(),Ie.resize(fe),pe=m(ae)),Te.login?ae.login(Te.login,!0,z):z(),ae.oneTime(100,function(){i.bind("resize.terminal",function(){if(ae.is(":visible")){var e=ae.width(),t=ae.height();(de!==t||he!==e)&&ae.resize()}})}),Te.execHash&&location.hash?setTimeout(function(){try{var t=location.hash.replace(/^#/,"");Q=e.parseJSON(decodeURIComponent(t));var n=0;!function o(){var e=Q[n++];e?r(e).then(o):Z=!0}()}catch(i){}}):Z=!0,e.event.special.mousewheel){var o=!1;e(document).bind("keydown.terminal",function(e){e.shiftKey&&(o=!0)}).bind("keyup.terminal",function(e){(e.shiftKey||16==e.which)&&(o=!1)}),ae.mousewheel(function(t,n){if(!o){var r=Oe.top();if(e.isFunction(r.mousewheel)){var i=r.mousewheel(t,n,ae);if(i===!1)return}else e.isFunction(Te.mousewheel)&&Te.mousewheel(t,n,ae);n>0?ae.scroll(-40):ae.scroll(40)}})}we.resolve()}),ae.data("terminal",ae),ae}}(jQuery),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Cat=function(){function t(t){this.supports=e(this.supports,this),this.command=t.trim()}return t.prototype.supports=function(){return"cat rules.txt"===this.command},t.prototype.perform=function(){var e,t,n;return terminal.pause(),n=["\n","\u041e \u041a\u041e\u041d\u041a\u0423\u0420\u0421\u0415 ITRANSITION OPENER 2016","\n","Itransition Opener 2016 - \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u043d\u0430 \u043f\u0440\u0438\u0437\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Itransition. \u041a\u043e\u043d\u043a\u0443\u0440\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c \u0443\u0437\u043d\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0430\u043a\u0442\u044b \u0438\u0437 CompSci, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u0443\u0437\u043d\u0430\u0442\u044c \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u044f\u0437\u044b\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0437\u0430\u0432\u044f\u0437\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0432 IT.","\u041a\u043e\u043d\u043a\u0443\u0440\u0441 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u043e\u0432, \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e. \u041a\u0430\u0436\u0434\u044b\u0439 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043b\u0438\u0447\u043d\u043e\u043c \u0437\u0430\u0447\u0435\u0442\u0435.","\u041a\u043e\u043d\u043a\u0443\u0440\u0441 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f 10 \u043e\u043a\u0442\u044f\u0431\u0440\u044f 2016 \u0433\u043e\u0434\u0430 \u0432 21:00 \u043f\u043e \u043c\u0438\u043d\u0441\u043a\u043e\u043c\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f \u0434\u043e 21:00 4 \u043d\u043e\u044f\u0431\u0440\u044f 2016 \u0433\u043e\u0434\u0430.","\u041f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u0438 \u043f\u043e\u0438\u0441\u043a \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 (vk.com/opener.itransition).","\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u0432 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 on.software@itransition.com.","\u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u0443\u0436\u0431\u0443 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 on.software@itransition.com.","\n","\u0423\u0427\u0410\u0421\u0422\u041d\u0418\u041a\u0418 ITRANSITION OPENER 2016","\n","\u041f\u043e\u043b\u043d\u043e\u043f\u0440\u0430\u0432\u043d\u044b\u043c\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u043b\u0435\u0442\u043d\u0438\u0435 \u0433\u0440\u0430\u0436\u0434\u0430\u043d\u0435 \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0438 \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c, \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0430\u043c\u0438, \u043c\u0430\u0433\u0438\u0441\u0442\u0440\u0430\u043d\u0442\u0430\u043c\u0438 \u0438\u043b\u0438 \u0430\u0441\u043f\u0438\u0440\u0430\u043d\u0442\u0430\u043c\u0438 \u043b\u044e\u0431\u044b\u0445 \u043a\u0443\u0440\u0441\u043e\u0432 \u043b\u044e\u0431\u044b\u0445 \u0444\u043e\u0440\u043c \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430.","\u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0430\u043c\u0438, \u043c\u0430\u0433\u0438\u0441\u0442\u0440\u0430\u043d\u0442\u0430\u043c\u0438 \u0438\u043b\u0438 \u0430\u0441\u043f\u0438\u0440\u0430\u043d\u0442\u0430\u043c\u0438 \u0438/\u0438\u043b\u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0433\u0440\u0430\u0436\u0434\u0430\u043d\u0430\u043c\u0438 \u0420\u0411, \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u0437\u044b \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430.","\u041d\u0430 \u043f\u0440\u0438\u0437\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u0444\u0438\u043d\u0430\u043b\u0438\u0441\u0442\u044b \u0438/\u0438\u043b\u0438 \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 Itransition Opener \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u043b\u0435\u0442.","\n","\u041f\u0420\u0418\u0417\u042b","\n","\u0417\u0430 \u043f\u043e\u0431\u0435\u0434\u0443 \u0432 \u0444\u0438\u043d\u0430\u043b\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u043f\u0435\u0440\u0432\u043e\u0439 \u0440\u0435\u0448\u0438\u0432\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430, \u043f\u0440\u0438\u0441\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0440\u0438\u0437, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 10000 BYN.",'\u041f\u0440\u0438\u0437\u0430\u043c\u0438 \u0437\u0430 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u043b\u0438\u0447\u043d\u043e\u043c \u0437\u0430\u0447\u0435\u0442\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f 6 Apple 9.7" iPad Pro \u0438 300 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u0438\u043b\u0435\u0442\u043e\u0432 \u043d\u0430 iParty.',"\n","\u041a\u041e\u041c\u0410\u041d\u0414\u041d\u042b\u0419 \u0417\u0410\u0427\u0415\u0422","\n","\u0414\u043b\u044f \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u043c \u0437\u0430\u0447\u0435\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043e\u043b\u0436\u0435\u043d \u043a \u043d\u0435\u0439 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0441\u044f.","\u0414\u043b\u044f \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u043c \u0437\u0430\u0447\u0435\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439:"," * \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043c\u0435\u043d\u0438;"," * \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u043d\u043e\u043f\u0440\u0430\u0432\u043d\u044b\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 3 \u0438 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 5;"," * \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0430;"," * \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0432 \u041c\u0438\u043d\u0441\u043a\u0435 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0432\u0441\u0435\u0433\u043e \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.","\u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430, \u043d\u043e \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0439, \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a, \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0438 \u043f\u0440\u043e\u0447., \u0434\u0430\u043b\u0435\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u043c.","\u041a\u043e\u043c\u0430\u043d\u0434\u044b, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0442\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u043f\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447, \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b (\u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e\u0442 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043b\u0438\u0447\u043d\u043e\u043c \u0437\u0430\u0447\u0435\u0442\u0435).","\u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u044b \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0443 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u043a\u043e\u043c\u0430\u043d\u0434 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043e\u0442\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0432\u043e\u0434 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430.","\u0422\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u0437\u044b. \u041a\u043e\u043c\u0430\u043d\u0434\u0430, \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0434\u0430\u0447 \u0440\u0430\u043d\u044c\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432 \u0444\u0438\u043d\u0430\u043b\u0435, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0437\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0440\u0438\u0437.","\n","\u041b\u0418\u0427\u041d\u042b\u0419 \u0417\u0410\u0427\u0415\u0422","\n","\u041b\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u0447\u0435\u0442 Itransition Opener 2016 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430. \u0414\u043b\u044f \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432 \u043b\u0438\u0447\u043d\u043e\u043c \u0437\u0430\u0447\u0435\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430.","\u0422\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u0437\u044b.","\n","\u0424\u0418\u041d\u0410\u041b","\n","\u0412 \u0444\u0438\u043d\u0430\u043b\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438-\u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u0441\u0440\u0430\u0437\u044f\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0437\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0440\u0438\u0437. \u0424\u0438\u043d\u0430\u043b \u0441\u043e\u0441\u0442\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0446\u0435\u043d\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0435\u0447\u0435\u0440\u0438\u043d\u043a\u0438 iParty.","\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432 \u0444\u0438\u043d\u0430\u043b\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u0430\u0441\u043f\u043e\u0440\u0442\u0430 \u0433\u0440\u0430\u0436\u0434\u0430\u043d\u0438\u043d\u0430 \u0420\u0411, \u043b\u044e\u0431\u0430\u044f \u0441\u0435\u043a\u0441\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0442\u044c \u0441\u043f\u0438\u0440\u0442\u043d\u044b\u0435 \u043d\u0430\u043f\u0438\u0442\u043a\u0438.","\n","IPARTY","\n","\u0422\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0437\u0430\u043a\u0440\u044b\u0442\u0430\u044f \u0432\u0435\u0447\u0435\u0440\u0438\u043d\u043a\u0430 \u0434\u043b\u044f \u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a\u043e\u0432 iParty, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0443\u0435\u043c\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 Itransition \u0441\u043e\u0441\u0442\u043e\u0438\u0442\u0441\u044f 24 \u043d\u043e\u044f\u0431\u0440\u044f 2016 \u0433\u043e\u0434\u0430. \u041d\u0430 \u0432\u0435\u0447\u0435\u0440\u0438\u043d\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f 300 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430, \u043f\u0435\u0440\u0432\u044b\u043c\u0438 \u0440\u0435\u0448\u0438\u0432\u0448\u0438\u0435 \u0432\u0441\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u0438\u043b\u0438 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0432\u0448\u0438\u0435\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0445 \u043a \u043c\u043e\u043c\u0435\u043d\u0442\u0443 \u0435\u0433\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f.","\u0412 2016 \u0433\u043e\u0434\u0443 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 iParty \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u0431\u043e\u0443\u043b\u0438\u043d\u0433, \u0430\u043b\u043a\u043e\u0433\u043e\u043b\u044c, \u0441\u0442\u0440\u0438\u043f\u0442\u0438\u0437 \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0432\u044f\u0437\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0432 IT.","\n","\u041e\u0413\u0420\u0410\u041d\u0418\u0427\u0415\u041d\u0418\u042f \u0418 \u0414\u0418\u0421\u041a\u0412\u0410\u041b\u0418\u0424\u0418\u041a\u0410\u0426\u0418\u042f","\n","\u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0430\u0432\u043e \u0433\u0434\u0435-\u043b\u0438\u0431\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438/\u0438\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u0434\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0442\u0443\u0440\u0430 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 (\u0434\u043e 21:00 4 \u043d\u043e\u044f\u0431\u0440\u044f 2016).","\u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0430\u0432\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 \u0438\u0434\u0435\u0438 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c\u0438, \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0432\u0448\u0438\u043c\u0438\u0441\u044f \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447, \u043d\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.","\u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u043c\u043e\u0433\u0443\u0442 \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0438 \u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.","\u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u0447\u0435\u0442\u0430 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0430\u0432\u0430:"," * \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438/\u0438\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447;"," * \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u0442\u044c \u0438\u043b\u0438 \u043a\u0430\u043a\u0438\u043c-\u043b\u0438\u0431\u043e \u0438\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0432 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0435;"," * \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043a\u0440\u043e\u043c\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0434\u0435\u0437\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430, \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c \u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c;"," * \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u043d\u0430 \u0432\u0441\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443.","\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u0430\u0432\u043e \u0434\u0438\u0441\u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 \u0438/\u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u0443\u0447\u0430\u0441\u0442\u0438\u0438 \u0432 \u0444\u0438\u043d\u0430\u043b\u0435 \u0438/\u0438\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u043f\u0440\u0438\u0437\u0430 \u0431\u0435\u0437 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0447\u0438\u043d \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u0439 \u0432 \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u043c \u043f\u0440\u0430\u0432\u0438\u043b \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430.","\n"],
  3. t=0,(e=function(){return t===n.length?terminal.resume():(terminal.echo(n[t],{keepWords:!0}),t+=1,setTimeout(e,20))})()},t}()}.call(this),function(){$(function(){var e,t;if($("#terminal-js").length)return e=function(e,n){var r,i,o,s,a,u,l,c,f;if(e=e.trim(),(c=new Submit(e)).supports())c.perform();else if((a=new Postpone(e)).supports())a.perform();else if((l=new Stat(e)).supports())l.perform();else if((f=new Team(e)).supports())f.perform();else if((u=new Profile(e)).supports())u.perform();else if((i=new Logout(e,t)).supports())i.perform();else if((s=new Man(e)).supports())s.perform();else if((o=new Ls(e)).supports())o.perform();else if((r=new Cat(e)).supports())r.perform();else{if(""===e)return void 0;n.error("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c "+e+".")}return void 0},t=function(t,n){var r,i,o,s,a;if(t=t.trim(),!n.enabled())return void 0;if((a=new Registration(t)).supports())a.perform();else if((i=new Login(t,e)).supports())i.perform();else if((s=new Man(t)).supports())s.perform();else if((o=new Ls(t)).supports())o.perform();else if((r=new Cat(t)).supports())r.perform();else{if(""===t)return void 0;n.error("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c "+t+".")}return void 0},window.terminal=$("#terminal-js").terminal(t,{height:$(window).height()-14-10,prompt:"$ ",clear:!1,exit:!1,completion:["man","help","login","register","ls","cat"],convertLinks:!1,greetings:function(e){return e("<pre style='margin:1em; margin-top:0px; line-height: 16px;'>"+[" _____ ____ ____ _ _ ____ ____ ___ ___ __ _ ","( _ )( _ \\( ___)( \\( )( ___)( _ \\ (__ \\ / _ \\ / ) / ) "," )(_)( )___/ )__) ) ( )__) ) / / _/( (_) ) )( / _ \\","(_____)(__) (____)(_)\\_)(____)(_)\\_) (____)\\___/ (__)\\___/"].join("\n")+"</pre>",{raw:!0})}}),window.terminal.token()?t("login",window.terminal):void 0})}.call(this),function(){$(function(){return $("#terminal-js").on("click",".link-man",function(){return window.terminal.exec("man "+$(this).text())})})}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Login=function(){function t(t,n){var r;this.authenticated_interpreter=n,this.login_failure=e(this.login_failure,this),this.login_success=e(this.login_success,this),this.login_handler=e(this.login_handler,this),this.perform=e(this.perform,this),this.supports=e(this.supports,this),$.terminal.defaults.strings.login="E-mail",$.terminal.defaults.strings.password="\u041f\u0430\u0440\u043e\u043b\u044c",$.terminal.defaults.strings.wrongPassword="\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439\xa0e-mail \u0438\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u044c.",r=t.split(" "),this.command=r[0],this.login=r[1]}return t.prototype.supports=function(){return"login"===this.command&&!window.contest.ended},t.prototype.perform=function(){return terminal.history().disable(),this.login?terminal.login(this.login_handler,!1,this.login_success,this.login_failure,this.login):terminal.login(this.login_handler,!1,this.login_success,this.login_failure)},t.prototype.login_handler=function(e,t,n){return terminal.pause(),$.ajax({url:"/login",method:"POST",dataType:"text",data:{user:{email:e,password:t}},complete:function(e,t){return n(200===e.status?e.responseText:void 0)}}).always(function(){return terminal.resume()})},t.prototype.login_success=function(){return window.setTimeout(function(){var e,t;try{return $("#terminal-js").fileupload("enable")}catch(t){e=t}},1e3),terminal.push(this.authenticated_interpreter,{name:"authenticated",completion:["logout","man","help","profile","team","stat","postpone","submit","ls","cat"],prompt:(terminal.login_name().startsWith("[")&&terminal.login_name().endsWith("]")?terminal.login_name().slice(1,-1):terminal.login_name())+" $ "}),terminal.clear(),terminal.set_mask(!1),terminal.history().enable()},t.prototype.login_failure=function(){return terminal.set_mask(!1),terminal.history().enable()},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Logout=function(){function t(t,n){this.unauthenticated_interpreter=n,this.perform=e(this.perform,this),this.supports=e(this.supports,this),this.command=t}return t.prototype.supports=function(){return"logout"===this.command},t.prototype.perform=function(){var e,t;try{$("#terminal-js").fileupload("disable")}catch(t){e=t}return terminal.pop(),terminal.purge(),terminal.set_interpreter(this.unauthenticated_interpreter,void 0),terminal.set_prompt(terminal.settings().prompt),terminal.clear(),terminal.greetings(),window.location.replace("/")},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Ls=function(){function t(t){this.supports=e(this.supports,this),this.command=t.trim()}return t.prototype.supports=function(){return"ls"===this.command},t.prototype.perform=function(){return terminal.echo("rules.txt")},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=[].slice;this.Man=function(){function n(n){this._man=e(this._man,this),this.perform=e(this.perform,this),this.supports=e(this.supports,this);var r,i;this.command=n,i=this.command.split(" "),this.command=i[0],r=2<=i.length?t.call(i,1):[],"-f"===r[0]?(this["short"]=!0,r.shift()):this["short"]=!1,1===r.length?this.subject=r[0]:0===r.length?this.subject=this.command:this.subject=null}return n.prototype.supports=function(){var e;return!("man"!==this.command&&"help"!==this.command||"man"!==(e=this.subject)&&"help"!==e&&"login"!==e&&"logout"!==e&&"profile"!==e&&"register"!==e&&"team"!==e&&"submit"!==e&&"stat"!==e&&"postpone"!==e&&"ls"!==e&&"cat"!==e||window.contest.ended)},n.prototype.perform=function(){return this._man().done(function(e){return function(e){return terminal.echo(e+"<br/><br/>",{raw:!0,exec:!1})}}(this))},n.prototype._man=function(){return terminal.pause(),$.ajax({url:"/man/man".replace(/man$/,this.subject),method:"GET",dataType:"html",data:{"short":this["short"]}}).always(function(){return terminal.resume()})},n}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Ping=function(){function t(t){this.attempt_id=t,this.handle_error_response=e(this.handle_error_response,this),this.handle_success_response=e(this.handle_success_response,this),this.perform=e(this.perform,this),this.progress=e(this.progress,this),this.messages=["\u041d\u0435\u0432\u0435\u0440\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435."],this.round=0}return t.prototype.progress=function(){var e;return terminal.update(-1,"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f."+function(){var t,n,r;for(r=[],e=t=0,n=this.round;n>=0?n>t:t>n;e=n>=0?++t:--t)r.push(".");return r}.call(this).join(""))},t.prototype.perform=function(){return this.progress(),terminal.pause(),10===this.round?(terminal.resume(),terminal.echo("\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a. \u0421\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c.",{raw:!0,exec:!1})):this.ping().done(this.handle_success_response).fail(this.handle_error_response).always(function(e){return function(){return e.round+=1}}(this))},t.prototype.handle_success_response=function(e,t,n){switch(n.status){case 206:return setTimeout(this.perform,1e3);case 200:return terminal.resume(),terminal.echo(n.responseText,{raw:!0,exec:!1})}},t.prototype.handle_error_response=function(e){switch(e.status){case 400:terminal.error(e.responseText);break;case 409:new Logout(null).perform();break;case 410:terminal.echo(e.responseText,{raw:!0,exec:!1});break;case 406:terminal.error(this.messages[Math.floor(Math.random()*this.messages.length)]),terminal.echo(e.responseText,{raw:!0,exec:!1})}return terminal.resume()},t.prototype.ping=function(){return $.ajax({url:"/ping",method:"GET",dataType:"text",headers:{token:terminal.token()},data:{id:this.attempt_id}})},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Postpone=function(){function t(t){this.supports=e(this.supports,this),this.command=t.trim()}return t.prototype.supports=function(){return this.command.startsWith("postpone")&&window.contest.in_progress},t.prototype.perform=function(){return terminal.pause(),$.ajax({url:"/postpone",method:"POST",dataType:"text",headers:{token:terminal.token()}}).fail(function(e){switch(e.status){case 400:return terminal.error(e.responseText);case 405:return terminal.error("\u0414\u0430\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u043e\u0442\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f.");case 409:return new Logout(null).perform()}}).done(function(e,t,n){return terminal.echo(n.responseText,{raw:!0,exec:!1})}).always(function(){return terminal.resume()})},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Profile=function(){function t(t){this.phone_validation=e(this.phone_validation,this),this.handler=e(this.handler,this),this.info=e(this.info,this),this.perform=e(this.perform,this),this.supports=e(this.supports,this),this.command=t.trim()}return t.prototype.supports=function(){return"profile"===this.command||"profile -v"===this.command||"profile --verbose"===this.command&&!window.contest.ended},t.prototype.perform=function(){return this["short"]="profile"===this.command,this.info().fail(function(e){return function(e){switch(e.status){case 400:return terminal.error(e.responseText);case 409:return new Logout(null).perform()}}}(this)).done(function(e){return function(t){return e.data=t,e.handler("first_name","\u0418\u043c\u044f: ",e.default_validation("\u0418\u043c\u044f \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e."),function(){return e.handler("last_name","\u0424\u0430\u043c\u0438\u043b\u0438\u044f: ",e.default_validation("\u0424\u0430\u043c\u0438\u043b\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0430."),function(){return e.handler("phone","\u0422\u0435\u043b\u0435\u0444\u043e\u043d (9 \u0446\u0438\u0444\u0440 \u0431\u0435\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f): +375",e.phone_validation,function(){return"profile -v"===e.command||"profile --verbose"===e.command?e.handler("birthdate","\u0414\u0430\u0442\u0430\xa0\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f (\u0413\u0413\u0413\u0413-\u041c\u041c-\u0414\u0414): ",e.date_validation("\u0414\u0430\u0442\u0430 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0430."),function(){return e.handler("university","\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442: ",e.empty_validation,function(){return e.handler("company","\u041c\u0435\u0441\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u044b: ",e.empty_validation,function(){return e.handler("experience","\u041e\u043f\u044b\u0442 \u0440\u0430\u0431\u043e\u0442\u044b\xa0\u0432 \u0433\u043e\u0434\u0430\u0445: ",e.empty_validation,function(){return e.submit(e.data)})})})}):e.submit(e.data)})})})}}(this))},t.prototype.info=function(){return terminal.pause(),$.ajax({url:"/profile",method:"GET",dataType:"json",headers:{token:terminal.token()},data:{"short":this["short"]}}).always(function(e){return function(){return terminal.resume()}}(this))},t.prototype.handler=function(e,t,n,r){return terminal.push(function(t){return function(i){var o;return void((o=n(i,e))===!0?(t.data[e]=i.trim(),terminal.pop(),r()):(terminal.error(o),terminal.set_command(t.data[e]||"")))}}(this),{prompt:t,name:e}).set_command(this.data[e]||"")},t.prototype.default_validation=function(e){return function(t){return function(t){return""===t.trim()?e:!0}}(this)},t.prototype.date_validation=function(e){return function(t){return function(t){return""===t.trim()?!0:t.trim().match(/^(19|20)\d{2}\-(0[1-9]|1[0-2])\-(0[1-9]|1\d|2\d|3[01])$/)?!0:e}}(this)},t.prototype.empty_validation=function(e){return!0},t.prototype.phone_validation=function(e,t){return/^\d{9}$/.test(e)||"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430."},t.prototype.submit=function(e){return terminal.pause(),$.ajax({url:"/profile",method:"PUT",dataType:"text",headers:{token:terminal.token()},data:{profile:e}}).always(function(){return terminal.resume()}).fail(function(e){return function(e){switch(e.status){case 406:return terminal.error(e.responseText);case 409:return new Logout(null).perform()}}}(this)).done(function(){return terminal.echo("\u041f\u0440\u043e\u0444\u0438\u043b\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d.")})},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Registration=function(){function t(t){this.password=e(this.password,this),this.perform=e(this.perform,this),this.supports=e(this.supports,this);var n;n=t.split(" "),this.command=n[0],this.login=n[1]}return t.prototype.supports=function(){return"register"===this.command&&!window.contest.ended},t.prototype.perform=function(){return terminal.history().disable(),this.login?this.password(2,this.login):terminal.push(function(e){return function(t){return void e.password(3,t)}}(this),{prompt:"E-mail: ",name:"email"})},t.prototype.password=function(e,t){return terminal.set_mask("*").push(function(n){return function(r){return void terminal.push(function(i){return void n._register(t,r,i).fail(function(e){return terminal.error(e.responseText)}).done(function(){return terminal.echo("\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0448\u043b\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e!")}).always(function(){var t,n,r;for(t=n=1,r=e;r>=1?r>=n:n>=r;t=r>=1?++n:--n)terminal.pop();return terminal.set_mask(!1)})},{prompt:"\u041f\u043e\u0432\u0442\u043e\u0440\xa0\u043f\u0430\u0440\u043e\u043b\u044f: ",name:"password_confirmation"})}}(this),{prompt:"\u041f\u0430\u0440\u043e\u043b\u044c: ",name:"password"})},t.prototype._register=function(e,t,n){return terminal.pause(),$.ajax({url:"/register",method:"POST",dataType:"text",data:{user:{email:e,password:t,password_confirmation:n}}}).always(function(){return terminal.resume(),terminal.history().enable()})},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Stat=function(){function t(t){this.info=e(this.info,this),this.perform=e(this.perform,this),this.supports=e(this.supports,this),this.command=t.trim()}return t.prototype.supports=function(){return"stat"===this.command||"stat -v"===this.command||"stat --verbose"===this.command},t.prototype.perform=function(){return this["short"]="stat"===this.command,this.info().fail(function(e){return function(e){switch(e.status){case 400:return terminal.error(e.responseText);case 409:return new Logout(null).perform();case 406:return terminal.error(e.responseText)}}}(this)).done(function(e){return function(e){return terminal.echo(e)}}(this))},t.prototype.info=function(){return terminal.pause(),$.ajax({url:"/stat",method:"GET",dataType:"text",headers:{token:terminal.token()},data:{"short":this["short"]}}).always(function(e){return function(){return terminal.resume()}}(this))},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Submit=function(){function t(t){this.handle_error_response=e(this.handle_error_response,this),this.handle_success_response=e(this.handle_success_response,this),this.perform=e(this.perform,this),this.supports=e(this.supports,this),this.command=t,this.answer=t.replace(/\s*submit\s+(.*)\s*/,"$1"),this.messages=["\u041d\u0435\u0432\u0435\u0440\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435."]}return t.prototype.supports=function(){return this.command.startsWith("submit ")&&window.contest.in_progress},t.prototype.perform=function(){return this.submit().done(this.handle_success_response).fail(this.handle_error_response)},t.prototype.handle_success_response=function(e,t,n){switch(n.status){case 206:return new Ping(n.responseText).perform();case 200:return terminal.echo(n.responseText,{raw:!0,exec:!1})}},t.prototype.handle_error_response=function(e){switch(e.status){case 400:return terminal.error(e.responseText);case 409:return new Logout(null).perform();case 410:return terminal.echo(e.responseText,{raw:!0,exec:!1});case 406:return terminal.error(this.messages[Math.floor(Math.random()*this.messages.length)]),terminal.echo(e.responseText,{raw:!0,exec:!1})}},t.prototype.submit=function(){return terminal.pause(),$.ajax({url:"/answer",method:"POST",dataType:"text",headers:{token:terminal.token()},data:{answer:{text:this.answer}}}).always(function(){return terminal.resume()})},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};this.Team=function(){function t(t){this.info=e(this.info,this),this.perform=e(this.perform,this),this.supports=e(this.supports,this),this.command=t.trim()}return t.prototype.supports=function(){return this.command.startsWith("team -c")||this.command.startsWith("team -j")||"team -u"===this.command||this.command.startsWith("team --create")||this.command.startsWith("team --join")||"team --unjoin"===this.command?!(window.contest.ended||window.contest.in_progress):"team"===this.command?!window.contest.ended:!1},t.prototype.perform=function(){return"team"===this.command?this.info().fail(function(e){return function(e){switch(e.status){case 400:return terminal.error(e.responseText);case 409:return new Logout(null).perform();case 406:return terminal.error(e.responseText)}}}(this)).done(function(e){return function(e){return terminal.echo(e)}}(this)):this.command.startsWith("team -c")||this.command.startsWith("team --create")?this.info().done(function(e){return function(e){return terminal.error("\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e\xa0\u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432, \u044f\u0432\u043b\u044f\u044f\u0441\u044c \u0447\u043b\u0435\u043d\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 "+e.split("\n")[0])}}(this)).fail(function(e){return function(t){switch(t.status){case 400:return terminal.error(t.responseText);case 409:return new Logout(null).perform();case 406:return e.create({name:e.command.replace(/^team\ \-c/,"").replace(/^team\ \-\-create/,"").trim()})}}}(this)):this.command.startsWith("team -j")||this.command.startsWith("team --join")?this.info().done(function(e){return function(e){return terminal.error("\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0443\u043f\u0438\u0442\u044c\xa0\u0432\xa0\u043d\u043e\u0432\u0443\u044e\xa0\u043a\u043e\u043c\u0430\u043d\u0434\u0443\xa0\u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432, \u044f\u0432\u043b\u044f\u044f\u0441\u044c \u0447\u043b\u0435\u043d\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 "+e.split("\n")[0])}}(this)).fail(function(e){return function(t){switch(t.status){case 400:return terminal.error(t.responseText);case 409:return new Logout(null).perform();case 406:return e.join({name:e.command.replace(/^team\ \-j/,"").replace(/^team\ \-\-join/,"").trim()})}}}(this)):"team -u"===this.command||"team --unjoin"===this.command?this.info().fail(function(e){return function(e){return terminal.error("\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043a\u0438\u043d\u0443\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432, \u043d\u0435 \u044f\u0432\u043b\u044f\u044f\u0441\u044c \u0435\u0451 \u0447\u043b\u0435\u043d\u043e\u043c.")}}(this)).done(function(e){return function(t){return e["delete"]()}}(this)):void 0},t.prototype.info=function(){return terminal.pause(),$.ajax({url:"/team",method:"GET",dataType:"text",headers:{token:terminal.token()}}).always(function(e){return function(){return terminal.resume()}}(this))},t.prototype.create=function(e){return terminal.pause(),$.ajax({url:"/team",method:"POST",dataType:"text",headers:{token:terminal.token()},data:{team:e}}).fail(function(e){switch(e.status){case 405:return terminal.error("\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e\xa0\u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432, \u044f\u0432\u043b\u044f\u044f\u0441\u044c \u0447\u043b\u0435\u043d\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432.");case 409:return new Logout(null).perform();case 503:return terminal.error(e.responseText)}}).done(function(){return terminal.echo("\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0430.")}).always(function(){return terminal.resume()})},t.prototype.join=function(e){return terminal.pause(),$.ajax({url:"/team",method:"PUT",dataType:"text",headers:{token:terminal.token()},data:{team:e}}).always(function(){return terminal.resume()}).done(function(){return terminal.echo("\u0412\u044b \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b\u0438\u0441\u044c \u043a \u043a\u043e\u043c\u0430\u043d\u0434\u0435\xa0\u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432.")}).fail(function(e){switch(e.status){case 405:return terminal.error("\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u0432\xa0\u043d\u043e\u0432\u0443\u044e\xa0\u043a\u043e\u043c\u0430\u043d\u0434\u0443\xa0\u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432.");case 409:return new Logout(null).perform();case 503:return terminal.error(e.responseText)}})},t.prototype["delete"]=function(e){return terminal.pause(),$.ajax({url:"/team",method:"DELETE",dataType:"text",headers:{token:terminal.token()}}).always(function(){return terminal.resume()}).fail(function(e){switch(e.status){case 503:return terminal.error(e.responseText);case 409:return new Logout(null).perform()}}).done(function(){return terminal.echo("\u0412\u044b \u043f\u043e\u043a\u0438\u043d\u0443\u043b\u0438\xa0\u043a\u043e\u043c\u0430\u043d\u0434\u0443\xa0\u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432.")})},t}()}.call(this),function(){var e,t;String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ")},null==(e=String.prototype).startsWith&&(e.startsWith=function(e){return this.slice(0,e.length)===e}),null==(t=String.prototype).endsWith&&(t.endsWith=function(e){return""===e||this.slice(-e.length)===e})}.call(this),function(){$(function(){return window.contest.in_progress?($("#terminal-js").fileupload({url:"/upload",maxFileSize:2e6,maxNumberOfFiles:1,singleFileUploads:!1,messages:{maxNumberOfFiles:"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.",acceptFileTypes:"\u0422\u0438\u043f \u0444\u0430\u0439\u043b\u0430 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f.",maxFileSize:"\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430.",minFileSize:"\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0430\u043b\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430."},dragover:function(){return $("#terminal-js").fileupload("option","headers",{token:terminal.token()}),$("#terminal-js").addClass("upload")},drop:function(){return $("#terminal-js").removeClass("upload")},start:function(){return terminal.pause(),terminal.echo("\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f...")},progress:function(e,t){return $(".terminal-output span:last").text($(".terminal-output span:last").text()+".")},done:function(e,t){return new Submit("").handle_success_response(null,null,t.response().jqXHR)},fail:function(e,t){return new Submit("").handle_error_response(t.response().jqXHR),terminal.resume()},processfail:function(e,t){return terminal.error(t.files[0].error),terminal.resume()}}),$("#terminal-js").fileupload("disable")):void 0})}.call(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement