3946 lines
120 KiB
JavaScript
3946 lines
120 KiB
JavaScript
// starts hand written code
|
|
MALLOC_ZERO_FILLED = 0
|
|
|
|
try {
|
|
log;
|
|
print = log;
|
|
} catch(e) {
|
|
}
|
|
|
|
Function.prototype.method = function (name, func) {
|
|
this.prototype[name] = func;
|
|
return this;
|
|
};
|
|
|
|
function inherits(child, parent) {
|
|
child.parent = parent;
|
|
for (i in parent.prototype) {
|
|
if (!child.prototype[i]) {
|
|
child.prototype[i] = parent.prototype[i];
|
|
}
|
|
}
|
|
}
|
|
|
|
function isinstanceof(self, what) {
|
|
t = self.constructor;
|
|
while ( t ) {
|
|
if (t == what) {
|
|
return (true);
|
|
}
|
|
t = t.parent;
|
|
}
|
|
return (false);
|
|
}
|
|
|
|
/*function delitem(fn, l, i) {
|
|
for(j = i; j < l.length-1; ++j) {
|
|
l[j] = l[j+1];
|
|
}
|
|
l.length--;
|
|
}*/
|
|
|
|
function strcmp(s1, s2) {
|
|
if ( s1 < s2 ) {
|
|
return ( -1 );
|
|
} else if ( s1 == s2 ) {
|
|
return ( 0 );
|
|
}
|
|
return (1);
|
|
}
|
|
|
|
function startswith(s1, s2) {
|
|
if (s1.length<s2.length) {
|
|
return(false);
|
|
}
|
|
for (i = 0; i < s2.length; ++i){
|
|
if (s1[i]!=s2[i]) {
|
|
return(false);
|
|
}
|
|
}
|
|
return(true);
|
|
}
|
|
|
|
function endswith(s1, s2) {
|
|
if (s2.length>s1.length) {
|
|
return(false);
|
|
}
|
|
for (i = s1.length-s2.length; i<s1.length; ++i) {
|
|
if (s1[i]!=s2[i-s1.length+s2.length]) {
|
|
return(false);
|
|
}
|
|
}
|
|
return(true);
|
|
}
|
|
|
|
function splitchr(s, ch) {
|
|
var i, lst;
|
|
lst = [];
|
|
next = "";
|
|
for (i = 0; i<s.length; ++i) {
|
|
if (s[i] == ch) {
|
|
lst.length += 1;
|
|
lst[lst.length-1] = next;
|
|
next = "";
|
|
} else {
|
|
next += s[i];
|
|
}
|
|
}
|
|
lst.length += 1;
|
|
lst[lst.length-1] = next;
|
|
return (lst);
|
|
}
|
|
|
|
function DictIter() {
|
|
}
|
|
|
|
DictIter.prototype.ll_go_next = function () {
|
|
var ret = this.l.length != 0;
|
|
this.current_key = this.l.pop();
|
|
return ret;
|
|
}
|
|
|
|
DictIter.prototype.ll_current_key = function () {
|
|
return this.current_key;
|
|
}
|
|
|
|
function dict_items_iterator(d) {
|
|
var d2 = new DictIter();
|
|
var l = [];
|
|
for (var i in d) {
|
|
l.length += 1;
|
|
l[l.length-1] = i;
|
|
}
|
|
d2.l = l;
|
|
d2.current_key = undefined;
|
|
return d2;
|
|
}
|
|
|
|
function get_dict_len(d) {
|
|
var count;
|
|
count = 0;
|
|
for (var i in d) {
|
|
count += 1;
|
|
}
|
|
return (count);
|
|
}
|
|
|
|
function StringBuilder() {
|
|
this.l = [];
|
|
}
|
|
|
|
StringBuilder.prototype.ll_append_char = function(s) {
|
|
this.l.length += 1;
|
|
this.l[this.l.length - 1] = s;
|
|
}
|
|
|
|
StringBuilder.prototype.ll_append = function(s) {
|
|
this.l += s;
|
|
}
|
|
|
|
StringBuilder.prototype.ll_allocate = function(t) {
|
|
}
|
|
|
|
StringBuilder.prototype.ll_build = function() {
|
|
var s;
|
|
s = "";
|
|
for (i in this.l) {
|
|
s += this.l[i];
|
|
}
|
|
return (s);
|
|
}
|
|
|
|
function time() {
|
|
var d;
|
|
d = new Date();
|
|
return d/1000;
|
|
}
|
|
|
|
var main_clock_stuff;
|
|
|
|
function clock() {
|
|
if (main_clock_stuff) {
|
|
return (new Date() - main_clock_stuff)/1000;
|
|
} else {
|
|
main_clock_stuff = new Date();
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
function substring(s, l, c) {
|
|
return (s.substring(l, l+c));
|
|
}
|
|
|
|
function clear_dict(d) {
|
|
for (var elem in d) {
|
|
delete(d[elem]);
|
|
}
|
|
}
|
|
// ends hand written code
|
|
function ExportedMethods () {
|
|
}
|
|
|
|
|
|
function callback_0 (x, cb) {
|
|
var d;
|
|
if (x.readyState == 4) {
|
|
if (x.responseText) {
|
|
eval ( "d = " + x.responseText );
|
|
cb(d);
|
|
} else {
|
|
cb({});
|
|
}
|
|
}
|
|
}
|
|
|
|
ExportedMethods.prototype.show_all_statuses = function ( sessid,callback ) {
|
|
var data,str;
|
|
var x = new XMLHttpRequest();
|
|
data = {'sessid':sessid};
|
|
str = ""
|
|
for(i in data) {
|
|
if (data[i]) {
|
|
if (str.length == 0) {
|
|
str += "?";
|
|
} else {
|
|
str += "&";
|
|
}
|
|
str += i + "=" + data[i].toString();
|
|
}
|
|
}
|
|
//logDebug('show_all_statuses'+str);
|
|
x.open("GET", 'show_all_statuses' + str, true);
|
|
//x.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
|
x.onreadystatechange = function () { callback_0(x, callback) };
|
|
//x.setRequestHeader("Connection", "close");
|
|
//x.send(data);
|
|
x.send(null);
|
|
}
|
|
|
|
function callback_1 (x, cb) {
|
|
var d;
|
|
if (x.readyState == 4) {
|
|
if (x.responseText) {
|
|
eval ( "d = " + x.responseText );
|
|
cb(d);
|
|
} else {
|
|
cb({});
|
|
}
|
|
}
|
|
}
|
|
|
|
ExportedMethods.prototype.show_skip = function ( item_name,callback ) {
|
|
var data,str;
|
|
var x = new XMLHttpRequest();
|
|
data = {'item_name':item_name};
|
|
str = ""
|
|
for(i in data) {
|
|
if (data[i]) {
|
|
if (str.length == 0) {
|
|
str += "?";
|
|
} else {
|
|
str += "&";
|
|
}
|
|
str += i + "=" + data[i].toString();
|
|
}
|
|
}
|
|
//logDebug('show_skip'+str);
|
|
x.open("GET", 'show_skip' + str, true);
|
|
//x.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
|
x.onreadystatechange = function () { callback_1(x, callback) };
|
|
//x.setRequestHeader("Connection", "close");
|
|
//x.send(data);
|
|
x.send(null);
|
|
}
|
|
|
|
function callback_2 (x, cb) {
|
|
var d;
|
|
if (x.readyState == 4) {
|
|
if (x.responseText) {
|
|
eval ( "d = " + x.responseText );
|
|
cb(d);
|
|
} else {
|
|
cb({});
|
|
}
|
|
}
|
|
}
|
|
|
|
ExportedMethods.prototype.show_sessid = function ( callback ) {
|
|
var data,str;
|
|
var x = new XMLHttpRequest();
|
|
data = {};
|
|
str = ""
|
|
for(i in data) {
|
|
if (data[i]) {
|
|
if (str.length == 0) {
|
|
str += "?";
|
|
} else {
|
|
str += "&";
|
|
}
|
|
str += i + "=" + data[i].toString();
|
|
}
|
|
}
|
|
//logDebug('show_sessid'+str);
|
|
x.open("GET", 'show_sessid' + str, true);
|
|
//x.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
|
x.onreadystatechange = function () { callback_2(x, callback) };
|
|
//x.setRequestHeader("Connection", "close");
|
|
//x.send(data);
|
|
x.send(null);
|
|
}
|
|
|
|
function callback_3 (x, cb) {
|
|
var d;
|
|
if (x.readyState == 4) {
|
|
if (x.responseText) {
|
|
eval ( "d = " + x.responseText );
|
|
cb(d);
|
|
} else {
|
|
cb({});
|
|
}
|
|
}
|
|
}
|
|
|
|
ExportedMethods.prototype.show_hosts = function ( callback ) {
|
|
var data,str;
|
|
var x = new XMLHttpRequest();
|
|
data = {};
|
|
str = ""
|
|
for(i in data) {
|
|
if (data[i]) {
|
|
if (str.length == 0) {
|
|
str += "?";
|
|
} else {
|
|
str += "&";
|
|
}
|
|
str += i + "=" + data[i].toString();
|
|
}
|
|
}
|
|
//logDebug('show_hosts'+str);
|
|
x.open("GET", 'show_hosts' + str, true);
|
|
//x.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
|
x.onreadystatechange = function () { callback_3(x, callback) };
|
|
//x.setRequestHeader("Connection", "close");
|
|
//x.send(data);
|
|
x.send(null);
|
|
}
|
|
|
|
function callback_4 (x, cb) {
|
|
var d;
|
|
if (x.readyState == 4) {
|
|
if (x.responseText) {
|
|
eval ( "d = " + x.responseText );
|
|
cb(d);
|
|
} else {
|
|
cb({});
|
|
}
|
|
}
|
|
}
|
|
|
|
ExportedMethods.prototype.show_fail = function ( item_name,callback ) {
|
|
var data,str;
|
|
var x = new XMLHttpRequest();
|
|
data = {'item_name':item_name};
|
|
str = ""
|
|
for(i in data) {
|
|
if (data[i]) {
|
|
if (str.length == 0) {
|
|
str += "?";
|
|
} else {
|
|
str += "&";
|
|
}
|
|
str += i + "=" + data[i].toString();
|
|
}
|
|
}
|
|
//logDebug('show_fail'+str);
|
|
x.open("GET", 'show_fail' + str, true);
|
|
//x.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
|
x.onreadystatechange = function () { callback_4(x, callback) };
|
|
//x.setRequestHeader("Connection", "close");
|
|
//x.send(data);
|
|
x.send(null);
|
|
}
|
|
function some_strange_function_which_will_never_be_called () {
|
|
var v0,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
main ( );
|
|
v2 = __consts_0.const_str;
|
|
show_skip ( v2 );
|
|
v4 = __consts_0.const_str;
|
|
show_traceback ( v4 );
|
|
v6 = __consts_0.const_str;
|
|
show_info ( v6 );
|
|
hide_info ( );
|
|
v9 = __consts_0.const_str;
|
|
show_host ( v9 );
|
|
hide_host ( );
|
|
hide_messagebox ( );
|
|
opt_scroll ( );
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v0 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function main () {
|
|
var v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
__consts_0.py____test_rsession_webjs_Globals.ofinished = false;
|
|
v16 = __consts_0.ExportedMethods;
|
|
v17 = v16.show_hosts(host_init);
|
|
v18 = __consts_0.ExportedMethods;
|
|
v19 = v18.show_sessid(sessid_comeback);
|
|
__consts_0.Document.onkeypress = key_pressed;
|
|
v21 = __consts_0.Document;
|
|
v22 = v21.getElementById(__consts_0.const_str__4);
|
|
v23 = v22;
|
|
v23.setAttribute(__consts_0.const_str__5,__consts_0.const_str__6);
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v14 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function sessid_comeback (id_0) {
|
|
var v176,v177,v178,v179;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
__consts_0.py____test_rsession_webjs_Globals.osessid = id_0;
|
|
v178 = __consts_0.ExportedMethods;
|
|
v179 = v178.show_all_statuses(id_0,comeback);
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v176 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function hide_host () {
|
|
var v100,v101,v102,elem_5,v103,v104,v105,v106,v107,v108,v109,elem_6,v110,v111,v112,v113;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v101 = __consts_0.Document;
|
|
v102 = v101.getElementById(__consts_0.const_str__7);
|
|
elem_5 = v102;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v103 = elem_5.childNodes;
|
|
v104 = ll_len__List_ExternalType_ ( v103 );
|
|
v105 = !!v104;
|
|
if (v105 == true)
|
|
{
|
|
elem_6 = elem_5;
|
|
block = 4;
|
|
break;
|
|
}
|
|
else{
|
|
v106 = elem_5;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
v107 = v106.style;
|
|
v107.visibility = __consts_0.const_str__8;
|
|
__consts_0.py____test_rsession_webjs_Globals.ohost = __consts_0.const_str__9;
|
|
block = 3;
|
|
break;
|
|
case 3:
|
|
return ( v100 );
|
|
case 4:
|
|
v110 = elem_6;
|
|
v111 = elem_6.childNodes;
|
|
v112 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v111,0 );
|
|
v110.removeChild(v112);
|
|
elem_5 = elem_6;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function show_info (data_0) {
|
|
var v46,v47,v48,v49,v50,data_1,info_0,v51,v52,v53,info_1,v54,v55,v56,v57,v58,v59,data_2,info_2,v60,v61,v62,v63;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v47 = __consts_0.Document;
|
|
v48 = v47.getElementById(__consts_0.const_str__10);
|
|
v49 = v48.style;
|
|
v49.visibility = __consts_0.const_str__11;
|
|
data_1 = data_0;
|
|
info_0 = v48;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v51 = info_0.childNodes;
|
|
v52 = ll_len__List_ExternalType_ ( v51 );
|
|
v53 = !!v52;
|
|
if (v53 == true)
|
|
{
|
|
data_2 = data_1;
|
|
info_2 = info_0;
|
|
block = 4;
|
|
break;
|
|
}
|
|
else{
|
|
info_1 = info_0;
|
|
v54 = data_1;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
v55 = create_text_elem ( v54 );
|
|
v56 = info_1;
|
|
v56.appendChild(v55);
|
|
v58 = info_1.style;
|
|
v58.backgroundColor = __consts_0.const_str__12;
|
|
block = 3;
|
|
break;
|
|
case 3:
|
|
return ( v46 );
|
|
case 4:
|
|
v60 = info_2;
|
|
v61 = info_2.childNodes;
|
|
v62 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v61,0 );
|
|
v60.removeChild(v62);
|
|
data_1 = data_2;
|
|
info_0 = info_2;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_getitem_nonneg__dum_nocheckConst_List_ExternalT (func_0,l_1,index_0) {
|
|
var v226,v227,v228,l_2,index_1,v229,v230,v231,v232,index_2,v233,v234,v235;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v227 = (index_0>=0);
|
|
undefined;
|
|
l_2 = l_1;
|
|
index_1 = index_0;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v229 = l_2;
|
|
v230 = v229.length;
|
|
v231 = (index_1<v230);
|
|
undefined;
|
|
index_2 = index_1;
|
|
v233 = l_2;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
v234 = v233;
|
|
v235 = v234[index_2];
|
|
v226 = v235;
|
|
block = 3;
|
|
break;
|
|
case 3:
|
|
return ( v226 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function show_traceback (item_name_1) {
|
|
var v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v29 = ll_dict_getitem__Dict_String__Record_item2__Str_St ( __consts_0.const_tuple,item_name_1 );
|
|
v30 = v29.item0;
|
|
v31 = v29.item1;
|
|
v32 = v29.item2;
|
|
v33 = new StringBuilder();
|
|
v33.ll_append(__consts_0.const_str__14);
|
|
v35 = ll_str__StringR_StringConst_String ( undefined,v30 );
|
|
v33.ll_append(v35);
|
|
v33.ll_append(__consts_0.const_str__15);
|
|
v38 = ll_str__StringR_StringConst_String ( undefined,v31 );
|
|
v33.ll_append(v38);
|
|
v33.ll_append(__consts_0.const_str__16);
|
|
v41 = ll_str__StringR_StringConst_String ( undefined,v32 );
|
|
v33.ll_append(v41);
|
|
v33.ll_append(__consts_0.const_str__17);
|
|
v44 = v33.ll_build();
|
|
set_msgbox ( item_name_1,v44 );
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v28 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function show_host (host_name_0) {
|
|
var v69,v70,v71,v72,v73,host_name_1,elem_0,v74,v75,v76,v77,host_name_2,tbody_0,elem_1,v78,v79,last_exc_value_0,host_name_3,tbody_1,elem_2,item_0,v80,v81,v82,v83,v84,v85,v86,v87,v88,v89,host_name_4,tbody_2,elem_3,v90,v91,v92,v93,v94,v95,host_name_5,elem_4,v96,v97,v98,v99;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v70 = __consts_0.Document;
|
|
v71 = v70.getElementById(__consts_0.const_str__7);
|
|
v72 = v71.childNodes;
|
|
v73 = ll_list_is_true__List_ExternalType_ ( v72 );
|
|
if (v73 == true)
|
|
{
|
|
host_name_5 = host_name_0;
|
|
elem_4 = v71;
|
|
block = 6;
|
|
break;
|
|
}
|
|
else{
|
|
host_name_1 = host_name_0;
|
|
elem_0 = v71;
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v74 = create_elem ( __consts_0.const_str__18 );
|
|
v75 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending;
|
|
v76 = ll_dict_getitem__Dict_String__List_String___String ( v75,host_name_1 );
|
|
v77 = ll_listiter__Record_index__Signed__iterable_List_S ( undefined,v76 );
|
|
host_name_2 = host_name_1;
|
|
tbody_0 = v74;
|
|
elem_1 = elem_0;
|
|
v78 = v77;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
try {
|
|
v79 = ll_listnext__Record_index__Signed__iterable ( v78 );
|
|
host_name_3 = host_name_2;
|
|
tbody_1 = tbody_0;
|
|
elem_2 = elem_1;
|
|
item_0 = v79;
|
|
v80 = v78;
|
|
block = 3;
|
|
break;
|
|
}
|
|
catch (exc){
|
|
if (isinstanceof(exc, exceptions_StopIteration))
|
|
{
|
|
host_name_4 = host_name_2;
|
|
tbody_2 = tbody_0;
|
|
elem_3 = elem_1;
|
|
block = 4;
|
|
break;
|
|
}
|
|
throw(exc);
|
|
}
|
|
case 3:
|
|
v81 = create_elem ( __consts_0.const_str__19 );
|
|
v82 = create_elem ( __consts_0.const_str__20 );
|
|
v83 = v82;
|
|
v84 = create_text_elem ( item_0 );
|
|
v83.appendChild(v84);
|
|
v86 = v81;
|
|
v86.appendChild(v82);
|
|
v88 = tbody_1;
|
|
v88.appendChild(v81);
|
|
host_name_2 = host_name_3;
|
|
tbody_0 = tbody_1;
|
|
elem_1 = elem_2;
|
|
v78 = v80;
|
|
block = 2;
|
|
break;
|
|
case 4:
|
|
v90 = elem_3;
|
|
v90.appendChild(tbody_2);
|
|
v92 = elem_3.style;
|
|
v92.visibility = __consts_0.const_str__11;
|
|
__consts_0.py____test_rsession_webjs_Globals.ohost = host_name_4;
|
|
setTimeout ( 'reshow_host()',100 );
|
|
block = 5;
|
|
break;
|
|
case 5:
|
|
return ( v69 );
|
|
case 6:
|
|
v96 = elem_4;
|
|
v97 = elem_4.childNodes;
|
|
v98 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v97,0 );
|
|
v96.removeChild(v98);
|
|
host_name_1 = host_name_5;
|
|
elem_0 = elem_4;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_list_is_true__List_ExternalType_ (l_3) {
|
|
var v271,v272,v273,v274,v275,v276,v277;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v272 = !!l_3;
|
|
v273 = v272;
|
|
if (v273 == true)
|
|
{
|
|
v274 = l_3;
|
|
block = 2;
|
|
break;
|
|
}
|
|
else{
|
|
v271 = v272;
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
return ( v271 );
|
|
case 2:
|
|
v275 = v274;
|
|
v276 = v275.length;
|
|
v277 = (v276!=0);
|
|
v271 = v277;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_dict_getitem__Dict_String__Record_item2__Str_St (d_0,key_2) {
|
|
var v239,v240,v241,v242,v243,v244,v245,etype_0,evalue_0,key_3,v246,v247,v248;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v240 = d_0;
|
|
v241 = (v240[key_2]!=undefined);
|
|
v242 = v241;
|
|
if (v242 == true)
|
|
{
|
|
key_3 = key_2;
|
|
v246 = d_0;
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v243 = __consts_0.exceptions_KeyError;
|
|
v244 = v243.meta;
|
|
v245 = v243;
|
|
etype_0 = v244;
|
|
evalue_0 = v245;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
throw(evalue_0);
|
|
case 3:
|
|
v247 = v246;
|
|
v248 = v247[key_3];
|
|
v239 = v248;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
return ( v239 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function create_text_elem (txt_0) {
|
|
var v236,v237,v238;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v237 = __consts_0.Document;
|
|
v238 = v237.createTextNode(txt_0);
|
|
v236 = v238;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v236 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_str__StringR_StringConst_String (self_0,s_0) {
|
|
var v249;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v249 = s_0;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v249 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function reshow_host () {
|
|
var v309,v310,v311,v312,v313,v314;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v310 = __consts_0.py____test_rsession_webjs_Globals.ohost;
|
|
v311 = ll_streq__String_String ( v310,__consts_0.const_str__9 );
|
|
v312 = v311;
|
|
if (v312 == true)
|
|
{
|
|
block = 2;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v313 = __consts_0.py____test_rsession_webjs_Globals.ohost;
|
|
show_host ( v313 );
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
return ( v309 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function hide_info () {
|
|
var v64,v65,v66,v67,v68;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v65 = __consts_0.Document;
|
|
v66 = v65.getElementById(__consts_0.const_str__10);
|
|
v67 = v66.style;
|
|
v67.visibility = __consts_0.const_str__8;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v64 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function opt_scroll () {
|
|
var v123,v124,v125,v126,v127;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v124 = __consts_0.py____test_rsession_webjs_Options.oscroll;
|
|
v125 = v124;
|
|
if (v125 == true)
|
|
{
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
__consts_0.py____test_rsession_webjs_Options.oscroll = true;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
return ( v123 );
|
|
case 3:
|
|
__consts_0.py____test_rsession_webjs_Options.oscroll = false;
|
|
block = 2;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function key_pressed (key_1) {
|
|
var v180,v181,v182,v183,v184,v185,v186,v187,v188,v189,v190,v191,v192,v193,v194,v195;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v181 = key_1.charCode;
|
|
v182 = (v181==115);
|
|
v183 = v182;
|
|
if (v183 == true)
|
|
{
|
|
block = 2;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
return ( v180 );
|
|
case 2:
|
|
v184 = __consts_0.Document;
|
|
v185 = v184.getElementById(__consts_0.const_str__4);
|
|
v186 = __consts_0.py____test_rsession_webjs_Options.oscroll;
|
|
v187 = v186;
|
|
if (v187 == true)
|
|
{
|
|
v192 = v185;
|
|
block = 4;
|
|
break;
|
|
}
|
|
else{
|
|
v188 = v185;
|
|
block = 3;
|
|
break;
|
|
}
|
|
case 3:
|
|
v189 = v188;
|
|
v189.setAttribute(__consts_0.const_str__5,__consts_0.const_str__23);
|
|
__consts_0.py____test_rsession_webjs_Options.oscroll = true;
|
|
block = 1;
|
|
break;
|
|
case 4:
|
|
v193 = v192;
|
|
v193.removeAttribute(__consts_0.const_str__5);
|
|
__consts_0.py____test_rsession_webjs_Options.oscroll = false;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_listiter__Record_index__Signed__iterable_List_S (ITER_0,lst_0) {
|
|
var v291,v292,v293,v294;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v292 = new Object();
|
|
v292.iterable = lst_0;
|
|
v292.index = 0;
|
|
v291 = v292;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v291 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function host_init (host_dict_0) {
|
|
var v128,v129,v130,v131,v132,v133,host_dict_1,tbody_3,v134,v135,last_exc_value_1,host_dict_2,tbody_4,host_0,v136,v137,v138,v139,v140,v141,v142,v143,v144,v145,v146,v147,v148,v149,v150,v151,v152,v153,v154,v155,v156,v157,v158,v159,v160,v161,v162,host_dict_3,v163,v164,v165,v166,v167,v168,v169,v170,last_exc_value_2,key_0,v171,v172,v173,v174,v175;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v129 = __consts_0.Document;
|
|
v130 = v129.getElementById(__consts_0.const_str__24);
|
|
v131 = host_dict_0;
|
|
v132 = ll_dict_kvi__Dict_String__String__List_String_LlT_ ( v131,undefined,undefined );
|
|
v133 = ll_listiter__Record_index__Signed__iterable_List_S ( undefined,v132 );
|
|
host_dict_1 = host_dict_0;
|
|
tbody_3 = v130;
|
|
v134 = v133;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
try {
|
|
v135 = ll_listnext__Record_index__Signed__iterable ( v134 );
|
|
host_dict_2 = host_dict_1;
|
|
tbody_4 = tbody_3;
|
|
host_0 = v135;
|
|
v136 = v134;
|
|
block = 2;
|
|
break;
|
|
}
|
|
catch (exc){
|
|
if (isinstanceof(exc, exceptions_StopIteration))
|
|
{
|
|
host_dict_3 = host_dict_1;
|
|
block = 3;
|
|
break;
|
|
}
|
|
throw(exc);
|
|
}
|
|
case 2:
|
|
v137 = create_elem ( __consts_0.const_str__19 );
|
|
v138 = tbody_4;
|
|
v138.appendChild(v137);
|
|
v140 = create_elem ( __consts_0.const_str__20 );
|
|
v141 = v140.style;
|
|
v141.background = __consts_0.const_str__25;
|
|
v143 = ll_dict_getitem__Dict_String__String__String ( host_dict_2,host_0 );
|
|
v144 = create_text_elem ( v143 );
|
|
v145 = v140;
|
|
v145.appendChild(v144);
|
|
v140.id = host_0;
|
|
v148 = v137;
|
|
v148.appendChild(v140);
|
|
v150 = v140;
|
|
v151 = new StringBuilder();
|
|
v151.ll_append(__consts_0.const_str__26);
|
|
v153 = ll_str__StringR_StringConst_String ( undefined,host_0 );
|
|
v151.ll_append(v153);
|
|
v151.ll_append(__consts_0.const_str__27);
|
|
v156 = v151.ll_build();
|
|
v150.setAttribute(__consts_0.const_str__28,v156);
|
|
v158 = v140;
|
|
v158.setAttribute(__consts_0.const_str__29,__consts_0.const_str__30);
|
|
__consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0;
|
|
__consts_0.py____test_rsession_webjs_Globals.orsync_done = false;
|
|
setTimeout ( 'update_rsync()',1000 );
|
|
host_dict_1 = host_dict_2;
|
|
tbody_3 = tbody_4;
|
|
v134 = v136;
|
|
block = 1;
|
|
break;
|
|
case 3:
|
|
__consts_0.py____test_rsession_webjs_Globals.ohost_dict = host_dict_3;
|
|
v164 = ll_newdict__Dict_String__List_String__LlT ( undefined );
|
|
__consts_0.py____test_rsession_webjs_Globals.ohost_pending = v164;
|
|
v166 = host_dict_3;
|
|
v167 = ll_dict_kvi__Dict_String__String__List_String_LlT_ ( v166,undefined,undefined );
|
|
v168 = ll_listiter__Record_index__Signed__iterable_List_S ( undefined,v167 );
|
|
v169 = v168;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
try {
|
|
v170 = ll_listnext__Record_index__Signed__iterable ( v169 );
|
|
key_0 = v170;
|
|
v171 = v169;
|
|
block = 5;
|
|
break;
|
|
}
|
|
catch (exc){
|
|
if (isinstanceof(exc, exceptions_StopIteration))
|
|
{
|
|
block = 6;
|
|
break;
|
|
}
|
|
throw(exc);
|
|
}
|
|
case 5:
|
|
v172 = new Array();
|
|
v172.length = 0;
|
|
v174 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending;
|
|
v174[key_0]=v172;
|
|
v169 = v171;
|
|
block = 4;
|
|
break;
|
|
case 6:
|
|
return ( v128 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function exceptions_Exception () {
|
|
}
|
|
|
|
exceptions_Exception.prototype.toString = function (){
|
|
return ( '<exceptions_Exception instance>' );
|
|
}
|
|
|
|
inherits(exceptions_Exception,Object);
|
|
function exceptions_StandardError () {
|
|
}
|
|
|
|
exceptions_StandardError.prototype.toString = function (){
|
|
return ( '<exceptions_StandardError instance>' );
|
|
}
|
|
|
|
inherits(exceptions_StandardError,exceptions_Exception);
|
|
function exceptions_LookupError () {
|
|
}
|
|
|
|
exceptions_LookupError.prototype.toString = function (){
|
|
return ( '<exceptions_LookupError instance>' );
|
|
}
|
|
|
|
inherits(exceptions_LookupError,exceptions_StandardError);
|
|
function py____test_rsession_webjs_Globals () {
|
|
this.odata_empty = false;
|
|
this.osessid = __consts_0.const_str__9;
|
|
this.ohost = __consts_0.const_str__9;
|
|
this.orsync_dots = 0;
|
|
this.ofinished = false;
|
|
this.ohost_dict = __consts_0.const_tuple__31;
|
|
this.opending = __consts_0.const_list;
|
|
this.orsync_done = false;
|
|
this.ohost_pending = __consts_0.const_tuple__33;
|
|
}
|
|
|
|
py____test_rsession_webjs_Globals.prototype.toString = function (){
|
|
return ( '<py____test_rsession_webjs_Globals instance>' );
|
|
}
|
|
|
|
inherits(py____test_rsession_webjs_Globals,Object);
|
|
function ll_len__List_ExternalType_ (l_0) {
|
|
var v223,v224,v225;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v224 = l_0;
|
|
v225 = v224.length;
|
|
v223 = v225;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v223 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_dict_getitem__Dict_String__List_String___String (d_1,key_4) {
|
|
var v281,v282,v283,v284,v285,v286,v287,etype_1,evalue_1,key_5,v288,v289,v290;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v282 = d_1;
|
|
v283 = (v282[key_4]!=undefined);
|
|
v284 = v283;
|
|
if (v284 == true)
|
|
{
|
|
key_5 = key_4;
|
|
v288 = d_1;
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v285 = __consts_0.exceptions_KeyError;
|
|
v286 = v285.meta;
|
|
v287 = v285;
|
|
etype_1 = v286;
|
|
evalue_1 = v287;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
throw(evalue_1);
|
|
case 3:
|
|
v289 = v288;
|
|
v290 = v289[key_5];
|
|
v281 = v290;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
return ( v281 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function create_elem (s_1) {
|
|
var v278,v279,v280;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v279 = __consts_0.Document;
|
|
v280 = v279.createElement(s_1);
|
|
v278 = v280;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v278 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_newdict__Dict_String__List_String__LlT (DICT_0) {
|
|
var v384,v385;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v385 = new Object();
|
|
v384 = v385;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v384 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_dict_getitem__Dict_String__String__String (d_3,key_6) {
|
|
var v340,v341,v342,v343,v344,v345,v346,etype_3,evalue_3,key_7,v347,v348,v349;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v341 = d_3;
|
|
v342 = (v341[key_6]!=undefined);
|
|
v343 = v342;
|
|
if (v343 == true)
|
|
{
|
|
key_7 = key_6;
|
|
v347 = d_3;
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v344 = __consts_0.exceptions_KeyError;
|
|
v345 = v344.meta;
|
|
v346 = v344;
|
|
etype_3 = v345;
|
|
evalue_3 = v346;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
throw(evalue_3);
|
|
case 3:
|
|
v348 = v347;
|
|
v349 = v348[key_7];
|
|
v340 = v349;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
return ( v340 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function show_skip (item_name_0) {
|
|
var v25,v26,v27;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v26 = ll_dict_getitem__Dict_String__String__String ( __consts_0.const_tuple__34,item_name_0 );
|
|
set_msgbox ( item_name_0,v26 );
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v25 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function update_rsync () {
|
|
var v350,v351,v352,v353,v354,v355,v356,v357,v358,elem_7,v359,v360,v361,v362,v363,v364,v365,v366,v367,elem_8,v368,v369,v370,v371,v372,v373,v374,v375,v376,v377,v378,text_0,elem_9,v379,v380,v381,v382,v383;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v351 = __consts_0.py____test_rsession_webjs_Globals.ofinished;
|
|
v352 = v351;
|
|
if (v352 == true)
|
|
{
|
|
block = 4;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v353 = __consts_0.Document;
|
|
v354 = v353.getElementById(__consts_0.const_str__35);
|
|
v355 = __consts_0.py____test_rsession_webjs_Globals.orsync_done;
|
|
v356 = v355;
|
|
v357 = (v356==1);
|
|
v358 = v357;
|
|
if (v358 == true)
|
|
{
|
|
v380 = v354;
|
|
block = 6;
|
|
break;
|
|
}
|
|
else{
|
|
elem_7 = v354;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
v359 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots;
|
|
v360 = ll_char_mul__Char_Signed ( '.',v359 );
|
|
v361 = ll_strconcat__String_String ( __consts_0.const_str__36,v360 );
|
|
v362 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots;
|
|
v363 = (v362+1);
|
|
__consts_0.py____test_rsession_webjs_Globals.orsync_dots = v363;
|
|
v365 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots;
|
|
v366 = (v365>5);
|
|
v367 = v366;
|
|
if (v367 == true)
|
|
{
|
|
text_0 = v361;
|
|
elem_9 = elem_7;
|
|
block = 5;
|
|
break;
|
|
}
|
|
else{
|
|
elem_8 = elem_7;
|
|
v368 = v361;
|
|
block = 3;
|
|
break;
|
|
}
|
|
case 3:
|
|
v369 = new StringBuilder();
|
|
v369.ll_append(__consts_0.const_str__37);
|
|
v371 = ll_str__StringR_StringConst_String ( undefined,v368 );
|
|
v369.ll_append(v371);
|
|
v369.ll_append(__consts_0.const_str__38);
|
|
v374 = v369.ll_build();
|
|
v375 = elem_8.childNodes;
|
|
v376 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v375,0 );
|
|
v376.nodeValue = v374;
|
|
setTimeout ( 'update_rsync()',1000 );
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
return ( v350 );
|
|
case 5:
|
|
__consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0;
|
|
elem_8 = elem_9;
|
|
v368 = text_0;
|
|
block = 3;
|
|
break;
|
|
case 6:
|
|
v381 = v380.childNodes;
|
|
v382 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v381,0 );
|
|
v382.nodeValue = __consts_0.const_str__35;
|
|
block = 4;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function set_msgbox (item_name_2,data_3) {
|
|
var v250,v251,item_name_3,data_4,msgbox_0,v252,v253,v254,item_name_4,data_5,msgbox_1,v255,v256,v257,v258,v259,v260,v261,v262,v263,v264,v265,v266,item_name_5,data_6,msgbox_2,v267,v268,v269,v270;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v251 = get_elem ( __consts_0.const_str__39 );
|
|
item_name_3 = item_name_2;
|
|
data_4 = data_3;
|
|
msgbox_0 = v251;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v252 = msgbox_0.childNodes;
|
|
v253 = ll_len__List_ExternalType_ ( v252 );
|
|
v254 = !!v253;
|
|
if (v254 == true)
|
|
{
|
|
item_name_5 = item_name_3;
|
|
data_6 = data_4;
|
|
msgbox_2 = msgbox_0;
|
|
block = 4;
|
|
break;
|
|
}
|
|
else{
|
|
item_name_4 = item_name_3;
|
|
data_5 = data_4;
|
|
msgbox_1 = msgbox_0;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
v255 = create_elem ( __consts_0.const_str__40 );
|
|
v256 = ll_strconcat__String_String ( item_name_4,__consts_0.const_str__17 );
|
|
v257 = ll_strconcat__String_String ( v256,data_5 );
|
|
v258 = create_text_elem ( v257 );
|
|
v259 = v255;
|
|
v259.appendChild(v258);
|
|
v261 = msgbox_1;
|
|
v261.appendChild(v255);
|
|
v263 = __consts_0.Window.location;
|
|
v264 = v263;
|
|
v264.assign(__consts_0.const_str__42);
|
|
__consts_0.py____test_rsession_webjs_Globals.odata_empty = false;
|
|
block = 3;
|
|
break;
|
|
case 3:
|
|
return ( v250 );
|
|
case 4:
|
|
v267 = msgbox_2;
|
|
v268 = msgbox_2.childNodes;
|
|
v269 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v268,0 );
|
|
v267.removeChild(v269);
|
|
item_name_3 = item_name_5;
|
|
data_4 = data_6;
|
|
msgbox_0 = msgbox_2;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_listnext__Record_index__Signed__iterable (iter_0) {
|
|
var v295,v296,v297,v298,v299,v300,v301,iter_1,index_3,l_4,v302,v303,v304,v305,v306,v307,v308,etype_2,evalue_2;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v296 = iter_0.iterable;
|
|
v297 = iter_0.index;
|
|
v298 = v296;
|
|
v299 = v298.length;
|
|
v300 = (v297>=v299);
|
|
v301 = v300;
|
|
if (v301 == true)
|
|
{
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
iter_1 = iter_0;
|
|
index_3 = v297;
|
|
l_4 = v296;
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v302 = (index_3+1);
|
|
iter_1.index = v302;
|
|
v304 = l_4;
|
|
v305 = v304[index_3];
|
|
v295 = v305;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
return ( v295 );
|
|
case 3:
|
|
v306 = __consts_0.exceptions_StopIteration;
|
|
v307 = v306.meta;
|
|
v308 = v306;
|
|
etype_2 = v307;
|
|
evalue_2 = v308;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
throw(evalue_2);
|
|
}
|
|
}
|
|
}
|
|
|
|
function exceptions_StopIteration () {
|
|
}
|
|
|
|
exceptions_StopIteration.prototype.toString = function (){
|
|
return ( '<exceptions_StopIteration instance>' );
|
|
}
|
|
|
|
inherits(exceptions_StopIteration,exceptions_Exception);
|
|
function hide_messagebox () {
|
|
var v114,v115,v116,mbox_0,v117,v118,mbox_1,v119,v120,v121,v122;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v115 = __consts_0.Document;
|
|
v116 = v115.getElementById(__consts_0.const_str__39);
|
|
mbox_0 = v116;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v117 = mbox_0.childNodes;
|
|
v118 = ll_list_is_true__List_ExternalType_ ( v117 );
|
|
if (v118 == true)
|
|
{
|
|
mbox_1 = mbox_0;
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
return ( v114 );
|
|
case 3:
|
|
v119 = mbox_1;
|
|
v120 = mbox_1.childNodes;
|
|
v121 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v120,0 );
|
|
v119.removeChild(v121);
|
|
mbox_0 = mbox_1;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_streq__String_String (s1_0,s2_0) {
|
|
var v315,v316,v317,v318,s2_1,v319,v320,v321,v322,v323,v324;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v316 = !!s1_0;
|
|
v317 = !v316;
|
|
v318 = v317;
|
|
if (v318 == true)
|
|
{
|
|
v322 = s2_0;
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
s2_1 = s2_0;
|
|
v319 = s1_0;
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v320 = v319;
|
|
v321 = (v320==s2_1);
|
|
v315 = v321;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
return ( v315 );
|
|
case 3:
|
|
v323 = !!v322;
|
|
v324 = !v323;
|
|
v315 = v324;
|
|
block = 2;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function comeback (msglist_0) {
|
|
var v196,v197,v198,v199,msglist_1,v200,v201,v202,v203,msglist_2,v204,v205,last_exc_value_3,msglist_3,v206,v207,v208,v209,msglist_4,v210,v211,v212,v213,v214,v215,last_exc_value_4,v216,v217,v218,v219,v220,v221,v222;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v197 = ll_len__List_Dict_String__String__ ( msglist_0 );
|
|
v198 = (v197==0);
|
|
v199 = v198;
|
|
if (v199 == true)
|
|
{
|
|
block = 4;
|
|
break;
|
|
}
|
|
else{
|
|
msglist_1 = msglist_0;
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v200 = __consts_0.py____test_rsession_webjs_Globals.opending;
|
|
v201 = 0;
|
|
v202 = ll_listslice_startonly__List_Dict_String__String__ ( undefined,v200,v201 );
|
|
v203 = ll_listiter__Record_index__Signed__iterable_List_D ( undefined,v202 );
|
|
msglist_2 = msglist_1;
|
|
v204 = v203;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
try {
|
|
v205 = ll_listnext__Record_index__Signed__iterable_0 ( v204 );
|
|
msglist_3 = msglist_2;
|
|
v206 = v204;
|
|
v207 = v205;
|
|
block = 3;
|
|
break;
|
|
}
|
|
catch (exc){
|
|
if (isinstanceof(exc, exceptions_StopIteration))
|
|
{
|
|
msglist_4 = msglist_2;
|
|
block = 5;
|
|
break;
|
|
}
|
|
throw(exc);
|
|
}
|
|
case 3:
|
|
v208 = process ( v207 );
|
|
v209 = v208;
|
|
if (v209 == true)
|
|
{
|
|
msglist_2 = msglist_3;
|
|
v204 = v206;
|
|
block = 2;
|
|
break;
|
|
}
|
|
else{
|
|
block = 4;
|
|
break;
|
|
}
|
|
case 4:
|
|
return ( v196 );
|
|
case 5:
|
|
v210 = new Array();
|
|
v210.length = 0;
|
|
__consts_0.py____test_rsession_webjs_Globals.opending = v210;
|
|
v213 = ll_listiter__Record_index__Signed__iterable_List_D ( undefined,msglist_4 );
|
|
v214 = v213;
|
|
block = 6;
|
|
break;
|
|
case 6:
|
|
try {
|
|
v215 = ll_listnext__Record_index__Signed__iterable_0 ( v214 );
|
|
v216 = v214;
|
|
v217 = v215;
|
|
block = 7;
|
|
break;
|
|
}
|
|
catch (exc){
|
|
if (isinstanceof(exc, exceptions_StopIteration))
|
|
{
|
|
block = 8;
|
|
break;
|
|
}
|
|
throw(exc);
|
|
}
|
|
case 7:
|
|
v218 = process ( v217 );
|
|
v219 = v218;
|
|
if (v219 == true)
|
|
{
|
|
v214 = v216;
|
|
block = 6;
|
|
break;
|
|
}
|
|
else{
|
|
block = 4;
|
|
break;
|
|
}
|
|
case 8:
|
|
v220 = __consts_0.ExportedMethods;
|
|
v221 = __consts_0.py____test_rsession_webjs_Globals.osessid;
|
|
v222 = v220.show_all_statuses(v221,comeback);
|
|
block = 4;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_dict_kvi__Dict_String__String__List_String_LlT_ (d_2,LIST_0,func_1) {
|
|
var v325,v326,v327,v328,v329,v330,i_0,it_0,result_0,v331,v332,v333,i_1,it_1,result_1,v334,v335,v336,v337,it_2,result_2,v338,v339;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v326 = d_2;
|
|
v327 = get_dict_len ( v326 );
|
|
v328 = ll_newlist__List_String_LlT_Signed ( undefined,v327 );
|
|
v329 = d_2;
|
|
v330 = dict_items_iterator ( v329 );
|
|
i_0 = 0;
|
|
it_0 = v330;
|
|
result_0 = v328;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v331 = it_0;
|
|
v332 = v331.ll_go_next();
|
|
v333 = v332;
|
|
if (v333 == true)
|
|
{
|
|
i_1 = i_0;
|
|
it_1 = it_0;
|
|
result_1 = result_0;
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
v325 = result_0;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
return ( v325 );
|
|
case 3:
|
|
v334 = result_1;
|
|
v335 = it_1;
|
|
v336 = v335.ll_current_key();
|
|
v334[i_1]=v336;
|
|
it_2 = it_1;
|
|
result_2 = result_1;
|
|
v338 = i_1;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
v339 = (v338+1);
|
|
i_0 = v339;
|
|
it_0 = it_2;
|
|
result_0 = result_2;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function exceptions_KeyError () {
|
|
}
|
|
|
|
exceptions_KeyError.prototype.toString = function (){
|
|
return ( '<exceptions_KeyError instance>' );
|
|
}
|
|
|
|
inherits(exceptions_KeyError,exceptions_LookupError);
|
|
function py____test_rsession_webjs_Options () {
|
|
this.oscroll = false;
|
|
}
|
|
|
|
py____test_rsession_webjs_Options.prototype.toString = function (){
|
|
return ( '<py____test_rsession_webjs_Options instance>' );
|
|
}
|
|
|
|
inherits(py____test_rsession_webjs_Options,Object);
|
|
function ll_listnext__Record_index__Signed__iterable_0 (iter_2) {
|
|
var v429,v430,v431,v432,v433,v434,v435,iter_3,index_4,l_8,v436,v437,v438,v439,v440,v441,v442,etype_4,evalue_4;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v430 = iter_2.iterable;
|
|
v431 = iter_2.index;
|
|
v432 = v430;
|
|
v433 = v432.length;
|
|
v434 = (v431>=v433);
|
|
v435 = v434;
|
|
if (v435 == true)
|
|
{
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
iter_3 = iter_2;
|
|
index_4 = v431;
|
|
l_8 = v430;
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v436 = (index_4+1);
|
|
iter_3.index = v436;
|
|
v438 = l_8;
|
|
v439 = v438[index_4];
|
|
v429 = v439;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
return ( v429 );
|
|
case 3:
|
|
v440 = __consts_0.exceptions_StopIteration;
|
|
v441 = v440.meta;
|
|
v442 = v440;
|
|
etype_4 = v441;
|
|
evalue_4 = v442;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
throw(evalue_4);
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_strconcat__String_String (obj_0,arg0_0) {
|
|
var v398,v399,v400;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v399 = obj_0;
|
|
v400 = (v399+arg0_0);
|
|
v398 = v400;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v398 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_char_mul__Char_Signed (ch_0,times_0) {
|
|
var v386,v387,v388,v389,ch_1,times_1,i_2,buf_0,v390,v391,v392,v393,v394,ch_2,times_2,i_3,buf_1,v395,v396,v397;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v387 = new StringBuilder();
|
|
v388 = v387;
|
|
v388.ll_allocate(times_0);
|
|
ch_1 = ch_0;
|
|
times_1 = times_0;
|
|
i_2 = 0;
|
|
buf_0 = v387;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v390 = (i_2<times_1);
|
|
v391 = v390;
|
|
if (v391 == true)
|
|
{
|
|
ch_2 = ch_1;
|
|
times_2 = times_1;
|
|
i_3 = i_2;
|
|
buf_1 = buf_0;
|
|
block = 4;
|
|
break;
|
|
}
|
|
else{
|
|
v392 = buf_0;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
v393 = v392;
|
|
v394 = v393.ll_build();
|
|
v386 = v394;
|
|
block = 3;
|
|
break;
|
|
case 3:
|
|
return ( v386 );
|
|
case 4:
|
|
v395 = buf_1;
|
|
v395.ll_append_char(ch_2);
|
|
v397 = (i_3+1);
|
|
ch_1 = ch_2;
|
|
times_1 = times_2;
|
|
i_2 = v397;
|
|
buf_0 = buf_1;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_len__List_Dict_String__String__ (l_5) {
|
|
var v404,v405,v406;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v405 = l_5;
|
|
v406 = v405.length;
|
|
v404 = v406;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v404 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function get_elem (el_0) {
|
|
var v401,v402,v403;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v402 = __consts_0.Document;
|
|
v403 = v402.getElementById(el_0);
|
|
v401 = v403;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v401 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_listiter__Record_index__Signed__iterable_List_D (ITER_1,lst_1) {
|
|
var v425,v426,v427,v428;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v426 = new Object();
|
|
v426.iterable = lst_1;
|
|
v426.index = 0;
|
|
v425 = v426;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v425 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_newlist__List_String_LlT_Signed (LIST_1,length_0) {
|
|
var v634,v635,v636,v637;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v635 = new Array();
|
|
v636 = v635;
|
|
v636.length = length_0;
|
|
v634 = v635;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v634 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function process (msg_0) {
|
|
var v443,v444,v445,v446,msg_1,v447,v448,v449,v450,v451,v452,v453,msg_2,v454,v455,v456,msg_3,v457,v458,v459,msg_4,v460,v461,v462,msg_5,v463,v464,v465,msg_6,v466,v467,v468,msg_7,v469,v470,v471,msg_8,v472,v473,v474,msg_9,v475,v476,v477,v478,v479,v480,v481,v482,v483,v484,v485,v486,v487,v488,v489,msg_10,v490,v491,v492,msg_11,v493,v494,v495,msg_12,module_part_0,v496,v497,v498,v499,v500,v501,v502,v503,v504,v505,v506,v507,v508,v509,v510,v511,v512,v513,v514,msg_13,v515,v516,v517,msg_14,v518,v519,v520,module_part_1,v521,v522,v523,v524,v525,v526,v527,v528,v529,msg_15,v530,v531,v532,v533,v534,v535,v536,v537,v538,v539,v540,v541,v542,v543,v544,v545,v546,v547,v548,v549,v550,v551,v552,v553,v554,v555,v556,v557,v558,v559,v560,v561,v562,v563,v564,v565,v566,v567,v568,v569,msg_16,v570,v571,v572,msg_17,v573,v574,v575,v576,v577,v578,msg_18,v579,v580,v581,v582,v583,v584,v585,v586,v587,v588,v589,v590,v591,v592,v593,v594,v595,v596,v597,msg_19,v598,v599,v600,v601,v602,v603,v604,v605,v606,v607,v608,v609,v610,v611,v612,v613,v614,v615,v616,v617,v618,v619,v620,v621,v622,v623,v624,v625,v626,v627,v628,v629,main_t_0,v630,v631,v632,v633;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v444 = get_dict_len ( msg_0 );
|
|
v445 = (v444==0);
|
|
v446 = v445;
|
|
if (v446 == true)
|
|
{
|
|
v443 = false;
|
|
block = 12;
|
|
break;
|
|
}
|
|
else{
|
|
msg_1 = msg_0;
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v447 = __consts_0.Document;
|
|
v448 = v447.getElementById(__consts_0.const_str__44);
|
|
v449 = __consts_0.Document;
|
|
v450 = v449.getElementById(__consts_0.const_str__45);
|
|
v451 = ll_dict_getitem__Dict_String__String__String ( msg_1,__consts_0.const_str__46 );
|
|
v452 = ll_streq__String_String ( v451,__consts_0.const_str__47 );
|
|
v453 = v452;
|
|
if (v453 == true)
|
|
{
|
|
main_t_0 = v450;
|
|
v630 = msg_1;
|
|
block = 29;
|
|
break;
|
|
}
|
|
else{
|
|
msg_2 = msg_1;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
v454 = ll_dict_getitem__Dict_String__String__String ( msg_2,__consts_0.const_str__46 );
|
|
v455 = ll_streq__String_String ( v454,__consts_0.const_str__48 );
|
|
v456 = v455;
|
|
if (v456 == true)
|
|
{
|
|
msg_19 = msg_2;
|
|
block = 28;
|
|
break;
|
|
}
|
|
else{
|
|
msg_3 = msg_2;
|
|
block = 3;
|
|
break;
|
|
}
|
|
case 3:
|
|
v457 = ll_dict_getitem__Dict_String__String__String ( msg_3,__consts_0.const_str__46 );
|
|
v458 = ll_streq__String_String ( v457,__consts_0.const_str__49 );
|
|
v459 = v458;
|
|
if (v459 == true)
|
|
{
|
|
msg_18 = msg_3;
|
|
block = 27;
|
|
break;
|
|
}
|
|
else{
|
|
msg_4 = msg_3;
|
|
block = 4;
|
|
break;
|
|
}
|
|
case 4:
|
|
v460 = ll_dict_getitem__Dict_String__String__String ( msg_4,__consts_0.const_str__46 );
|
|
v461 = ll_streq__String_String ( v460,__consts_0.const_str__50 );
|
|
v462 = v461;
|
|
if (v462 == true)
|
|
{
|
|
msg_16 = msg_4;
|
|
block = 24;
|
|
break;
|
|
}
|
|
else{
|
|
msg_5 = msg_4;
|
|
block = 5;
|
|
break;
|
|
}
|
|
case 5:
|
|
v463 = ll_dict_getitem__Dict_String__String__String ( msg_5,__consts_0.const_str__46 );
|
|
v464 = ll_streq__String_String ( v463,__consts_0.const_str__51 );
|
|
v465 = v464;
|
|
if (v465 == true)
|
|
{
|
|
msg_15 = msg_5;
|
|
block = 23;
|
|
break;
|
|
}
|
|
else{
|
|
msg_6 = msg_5;
|
|
block = 6;
|
|
break;
|
|
}
|
|
case 6:
|
|
v466 = ll_dict_getitem__Dict_String__String__String ( msg_6,__consts_0.const_str__46 );
|
|
v467 = ll_streq__String_String ( v466,__consts_0.const_str__52 );
|
|
v468 = v467;
|
|
if (v468 == true)
|
|
{
|
|
msg_13 = msg_6;
|
|
block = 20;
|
|
break;
|
|
}
|
|
else{
|
|
msg_7 = msg_6;
|
|
block = 7;
|
|
break;
|
|
}
|
|
case 7:
|
|
v469 = ll_dict_getitem__Dict_String__String__String ( msg_7,__consts_0.const_str__46 );
|
|
v470 = ll_streq__String_String ( v469,__consts_0.const_str__53 );
|
|
v471 = v470;
|
|
if (v471 == true)
|
|
{
|
|
msg_10 = msg_7;
|
|
block = 17;
|
|
break;
|
|
}
|
|
else{
|
|
msg_8 = msg_7;
|
|
block = 8;
|
|
break;
|
|
}
|
|
case 8:
|
|
v472 = ll_dict_getitem__Dict_String__String__String ( msg_8,__consts_0.const_str__46 );
|
|
v473 = ll_streq__String_String ( v472,__consts_0.const_str__54 );
|
|
v474 = v473;
|
|
if (v474 == true)
|
|
{
|
|
block = 16;
|
|
break;
|
|
}
|
|
else{
|
|
msg_9 = msg_8;
|
|
block = 9;
|
|
break;
|
|
}
|
|
case 9:
|
|
v475 = ll_dict_getitem__Dict_String__String__String ( msg_9,__consts_0.const_str__46 );
|
|
v476 = ll_streq__String_String ( v475,__consts_0.const_str__55 );
|
|
v477 = v476;
|
|
if (v477 == true)
|
|
{
|
|
block = 15;
|
|
break;
|
|
}
|
|
else{
|
|
v478 = msg_9;
|
|
block = 10;
|
|
break;
|
|
}
|
|
case 10:
|
|
v479 = ll_dict_getitem__Dict_String__String__String ( v478,__consts_0.const_str__46 );
|
|
v480 = ll_streq__String_String ( v479,__consts_0.const_str__56 );
|
|
v481 = v480;
|
|
if (v481 == true)
|
|
{
|
|
block = 14;
|
|
break;
|
|
}
|
|
else{
|
|
block = 11;
|
|
break;
|
|
}
|
|
case 11:
|
|
v482 = __consts_0.py____test_rsession_webjs_Globals.odata_empty;
|
|
v483 = v482;
|
|
if (v483 == true)
|
|
{
|
|
block = 13;
|
|
break;
|
|
}
|
|
else{
|
|
v443 = true;
|
|
block = 12;
|
|
break;
|
|
}
|
|
case 12:
|
|
return ( v443 );
|
|
case 13:
|
|
v484 = __consts_0.Document;
|
|
v485 = v484.getElementById(__consts_0.const_str__39);
|
|
scroll_down_if_needed ( v485 );
|
|
v443 = true;
|
|
block = 12;
|
|
break;
|
|
case 14:
|
|
show_crash ( );
|
|
block = 11;
|
|
break;
|
|
case 15:
|
|
show_interrupt ( );
|
|
block = 11;
|
|
break;
|
|
case 16:
|
|
__consts_0.py____test_rsession_webjs_Globals.orsync_done = true;
|
|
block = 11;
|
|
break;
|
|
case 17:
|
|
v490 = ll_dict_getitem__Dict_String__String__String ( msg_10,__consts_0.const_str__57 );
|
|
v491 = get_elem ( v490 );
|
|
v492 = !!v491;
|
|
if (v492 == true)
|
|
{
|
|
msg_12 = msg_10;
|
|
module_part_0 = v491;
|
|
block = 19;
|
|
break;
|
|
}
|
|
else{
|
|
msg_11 = msg_10;
|
|
block = 18;
|
|
break;
|
|
}
|
|
case 18:
|
|
v493 = __consts_0.py____test_rsession_webjs_Globals.opending;
|
|
v494 = v493;
|
|
ll_append__List_Dict_String__String___Dict_String_ ( v494,msg_11 );
|
|
v443 = true;
|
|
block = 12;
|
|
break;
|
|
case 19:
|
|
v496 = create_elem ( __consts_0.const_str__19 );
|
|
v497 = create_elem ( __consts_0.const_str__20 );
|
|
v498 = ll_dict_getitem__Dict_String__String__String ( msg_12,__consts_0.const_str__58 );
|
|
v499 = new Object();
|
|
v499.item0 = v498;
|
|
v501 = v499.item0;
|
|
v502 = new StringBuilder();
|
|
v502.ll_append(__consts_0.const_str__59);
|
|
v504 = ll_str__StringR_StringConst_String ( undefined,v501 );
|
|
v502.ll_append(v504);
|
|
v502.ll_append(__consts_0.const_str__60);
|
|
v507 = v502.ll_build();
|
|
v508 = create_text_elem ( v507 );
|
|
v509 = v497;
|
|
v509.appendChild(v508);
|
|
v511 = v496;
|
|
v511.appendChild(v497);
|
|
v513 = module_part_0;
|
|
v513.appendChild(v496);
|
|
block = 11;
|
|
break;
|
|
case 20:
|
|
v515 = ll_dict_getitem__Dict_String__String__String ( msg_13,__consts_0.const_str__57 );
|
|
v516 = get_elem ( v515 );
|
|
v517 = !!v516;
|
|
if (v517 == true)
|
|
{
|
|
module_part_1 = v516;
|
|
block = 22;
|
|
break;
|
|
}
|
|
else{
|
|
msg_14 = msg_13;
|
|
block = 21;
|
|
break;
|
|
}
|
|
case 21:
|
|
v518 = __consts_0.py____test_rsession_webjs_Globals.opending;
|
|
v519 = v518;
|
|
ll_append__List_Dict_String__String___Dict_String_ ( v519,msg_14 );
|
|
v443 = true;
|
|
block = 12;
|
|
break;
|
|
case 22:
|
|
v521 = create_elem ( __consts_0.const_str__19 );
|
|
v522 = create_elem ( __consts_0.const_str__20 );
|
|
v523 = create_text_elem ( __consts_0.const_str__61 );
|
|
v524 = v522;
|
|
v524.appendChild(v523);
|
|
v526 = v521;
|
|
v526.appendChild(v522);
|
|
v528 = module_part_1;
|
|
v528.appendChild(v521);
|
|
block = 11;
|
|
break;
|
|
case 23:
|
|
v530 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__62 );
|
|
v531 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__63 );
|
|
v532 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__64 );
|
|
v533 = new Object();
|
|
v533.item0 = v530;
|
|
v533.item1 = v531;
|
|
v533.item2 = v532;
|
|
v537 = v533.item0;
|
|
v538 = v533.item1;
|
|
v539 = v533.item2;
|
|
v540 = new StringBuilder();
|
|
v540.ll_append(__consts_0.const_str__65);
|
|
v542 = ll_str__StringR_StringConst_String ( undefined,v537 );
|
|
v540.ll_append(v542);
|
|
v540.ll_append(__consts_0.const_str__66);
|
|
v545 = ll_str__StringR_StringConst_String ( undefined,v538 );
|
|
v540.ll_append(v545);
|
|
v540.ll_append(__consts_0.const_str__67);
|
|
v548 = ll_str__StringR_StringConst_String ( undefined,v539 );
|
|
v540.ll_append(v548);
|
|
v540.ll_append(__consts_0.const_str__68);
|
|
v551 = v540.ll_build();
|
|
__consts_0.py____test_rsession_webjs_Globals.ofinished = true;
|
|
v553 = new StringBuilder();
|
|
v553.ll_append(__consts_0.const_str__69);
|
|
v555 = ll_str__StringR_StringConst_String ( undefined,v551 );
|
|
v553.ll_append(v555);
|
|
v557 = v553.ll_build();
|
|
__consts_0.Document.title = v557;
|
|
v559 = new StringBuilder();
|
|
v559.ll_append(__consts_0.const_str__37);
|
|
v561 = ll_str__StringR_StringConst_String ( undefined,v551 );
|
|
v559.ll_append(v561);
|
|
v559.ll_append(__consts_0.const_str__38);
|
|
v564 = v559.ll_build();
|
|
v565 = __consts_0.Document;
|
|
v566 = v565.getElementById(__consts_0.const_str__35);
|
|
v567 = v566.childNodes;
|
|
v568 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v567,0 );
|
|
v568.nodeValue = v564;
|
|
block = 11;
|
|
break;
|
|
case 24:
|
|
v570 = ll_dict_getitem__Dict_String__String__String ( msg_16,__consts_0.const_str__70 );
|
|
v571 = get_elem ( v570 );
|
|
v572 = !!v571;
|
|
if (v572 == true)
|
|
{
|
|
v576 = msg_16;
|
|
v577 = v571;
|
|
block = 26;
|
|
break;
|
|
}
|
|
else{
|
|
msg_17 = msg_16;
|
|
block = 25;
|
|
break;
|
|
}
|
|
case 25:
|
|
v573 = __consts_0.py____test_rsession_webjs_Globals.opending;
|
|
v574 = v573;
|
|
ll_append__List_Dict_String__String___Dict_String_ ( v574,msg_17 );
|
|
v443 = true;
|
|
block = 12;
|
|
break;
|
|
case 26:
|
|
add_received_item_outcome ( v576,v577 );
|
|
block = 11;
|
|
break;
|
|
case 27:
|
|
v579 = __consts_0.Document;
|
|
v580 = ll_dict_getitem__Dict_String__String__String ( msg_18,__consts_0.const_str__71 );
|
|
v581 = v579.getElementById(v580);
|
|
v582 = v581.style;
|
|
v582.background = __consts_0.const_str__72;
|
|
v584 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict;
|
|
v585 = ll_dict_getitem__Dict_String__String__String ( msg_18,__consts_0.const_str__71 );
|
|
v586 = ll_dict_getitem__Dict_String__String__String ( v584,v585 );
|
|
v587 = new Object();
|
|
v587.item0 = v586;
|
|
v589 = v587.item0;
|
|
v590 = new StringBuilder();
|
|
v591 = ll_str__StringR_StringConst_String ( undefined,v589 );
|
|
v590.ll_append(v591);
|
|
v590.ll_append(__consts_0.const_str__73);
|
|
v594 = v590.ll_build();
|
|
v595 = v581.childNodes;
|
|
v596 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v595,0 );
|
|
v596.nodeValue = v594;
|
|
block = 11;
|
|
break;
|
|
case 28:
|
|
v598 = __consts_0.Document;
|
|
v599 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__71 );
|
|
v600 = v598.getElementById(v599);
|
|
v601 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending;
|
|
v602 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__71 );
|
|
v603 = ll_dict_getitem__Dict_String__List_String___String ( v601,v602 );
|
|
v604 = v603;
|
|
v605 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__57 );
|
|
ll_prepend__List_String__String ( v604,v605 );
|
|
v607 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending;
|
|
v608 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__71 );
|
|
v609 = ll_dict_getitem__Dict_String__List_String___String ( v607,v608 );
|
|
v610 = ll_len__List_String_ ( v609 );
|
|
v611 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict;
|
|
v612 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__71 );
|
|
v613 = ll_dict_getitem__Dict_String__String__String ( v611,v612 );
|
|
v614 = new Object();
|
|
v614.item0 = v613;
|
|
v614.item1 = v610;
|
|
v617 = v614.item0;
|
|
v618 = v614.item1;
|
|
v619 = new StringBuilder();
|
|
v620 = ll_str__StringR_StringConst_String ( undefined,v617 );
|
|
v619.ll_append(v620);
|
|
v619.ll_append(__consts_0.const_str__74);
|
|
v623 = ll_int_str__IntegerR_SignedConst_Signed ( undefined,v618 );
|
|
v619.ll_append(v623);
|
|
v619.ll_append(__consts_0.const_str__38);
|
|
v626 = v619.ll_build();
|
|
v627 = v600.childNodes;
|
|
v628 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v627,0 );
|
|
v628.nodeValue = v626;
|
|
block = 11;
|
|
break;
|
|
case 29:
|
|
v631 = make_module_box ( v630 );
|
|
v632 = main_t_0;
|
|
v632.appendChild(v631);
|
|
block = 11;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_int_str__IntegerR_SignedConst_Signed (repr_0,i_6) {
|
|
var v838,v839;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v839 = ll_int2dec__Signed ( i_6 );
|
|
v838 = v839;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v838 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function scroll_down_if_needed (mbox_2) {
|
|
var v638,v639,v640,v641,v642,v643,v644;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v639 = __consts_0.py____test_rsession_webjs_Options.oscroll;
|
|
v640 = v639;
|
|
if (v640 == true)
|
|
{
|
|
v641 = mbox_2;
|
|
block = 2;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
return ( v638 );
|
|
case 2:
|
|
v642 = v641.parentNode;
|
|
v643 = v642;
|
|
v643.scrollIntoView();
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_len__List_String_ (l_13) {
|
|
var v835,v836,v837;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v836 = l_13;
|
|
v837 = v836.length;
|
|
v835 = v837;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v835 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function show_interrupt () {
|
|
var v653,v654,v655,v656,v657,v658,v659,v660;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
__consts_0.py____test_rsession_webjs_Globals.ofinished = true;
|
|
__consts_0.Document.title = __consts_0.const_str__75;
|
|
v656 = __consts_0.Document;
|
|
v657 = v656.getElementById(__consts_0.const_str__35);
|
|
v658 = v657.childNodes;
|
|
v659 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v658,0 );
|
|
v659.nodeValue = __consts_0.const_str__76;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v653 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_prepend__List_String__String (l_10,newitem_1) {
|
|
var v819,v820,v821,v822,v823,v824,l_11,newitem_2,dst_0,v825,v826,newitem_3,v827,v828,v829,l_12,newitem_4,dst_1,v830,v831,v832,v833,v834;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v820 = l_10;
|
|
v821 = v820.length;
|
|
v822 = l_10;
|
|
v823 = (v821+1);
|
|
v822.length = v823;
|
|
l_11 = l_10;
|
|
newitem_2 = newitem_1;
|
|
dst_0 = v821;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v825 = (dst_0>0);
|
|
v826 = v825;
|
|
if (v826 == true)
|
|
{
|
|
l_12 = l_11;
|
|
newitem_4 = newitem_2;
|
|
dst_1 = dst_0;
|
|
block = 4;
|
|
break;
|
|
}
|
|
else{
|
|
newitem_3 = newitem_2;
|
|
v827 = l_11;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
v828 = v827;
|
|
v828[0]=newitem_3;
|
|
block = 3;
|
|
break;
|
|
case 3:
|
|
return ( v819 );
|
|
case 4:
|
|
v830 = (dst_1-1);
|
|
v831 = l_12;
|
|
v832 = l_12;
|
|
v833 = v832[v830];
|
|
v831[dst_1]=v833;
|
|
l_11 = l_12;
|
|
newitem_2 = newitem_4;
|
|
dst_0 = v830;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function make_module_box (msg_30) {
|
|
var v840,v841,v842,v843,v844,v845,v846,v847,v848,v849,v850,v851,v852,v853,v854,v855,v856,v857,v858,v859,v860,v861,v862,v863,v864,v865,v866,v867,v868,v869,v870,v871,v872,v873,v874,v875,v876,v877,v878,v879,v880,v881,v882,v883,v884,v885,v886,v887,v888,v889,v890,v891,v892,v893,v894,v895,v896,v897,v898,v899;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v841 = create_elem ( __consts_0.const_str__19 );
|
|
v842 = create_elem ( __consts_0.const_str__20 );
|
|
v843 = v841;
|
|
v843.appendChild(v842);
|
|
v845 = v842;
|
|
v846 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__77 );
|
|
v847 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__78 );
|
|
v848 = new Object();
|
|
v848.item0 = v846;
|
|
v848.item1 = v847;
|
|
v851 = v848.item0;
|
|
v852 = v848.item1;
|
|
v853 = new StringBuilder();
|
|
v854 = ll_str__StringR_StringConst_String ( undefined,v851 );
|
|
v853.ll_append(v854);
|
|
v853.ll_append(__consts_0.const_str__79);
|
|
v857 = ll_str__StringR_StringConst_String ( undefined,v852 );
|
|
v853.ll_append(v857);
|
|
v853.ll_append(__consts_0.const_str__38);
|
|
v860 = v853.ll_build();
|
|
v861 = create_text_elem ( v860 );
|
|
v845.appendChild(v861);
|
|
v863 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__78 );
|
|
v864 = ll_int__String_Signed ( v863,10 );
|
|
v865 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 );
|
|
__consts_0.const_tuple__80[v865]=v864;
|
|
v867 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__77 );
|
|
v868 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 );
|
|
__consts_0.const_tuple__81[v868]=v867;
|
|
v870 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 );
|
|
v871 = ll_strconcat__String_String ( __consts_0.const_str__82,v870 );
|
|
v842.id = v871;
|
|
v873 = v842;
|
|
v874 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 );
|
|
v875 = new Object();
|
|
v875.item0 = v874;
|
|
v877 = v875.item0;
|
|
v878 = new StringBuilder();
|
|
v878.ll_append(__consts_0.const_str__83);
|
|
v880 = ll_str__StringR_StringConst_String ( undefined,v877 );
|
|
v878.ll_append(v880);
|
|
v878.ll_append(__consts_0.const_str__27);
|
|
v883 = v878.ll_build();
|
|
v873.setAttribute(__consts_0.const_str__28,v883);
|
|
v885 = v842;
|
|
v885.setAttribute(__consts_0.const_str__29,__consts_0.const_str__84);
|
|
v887 = create_elem ( __consts_0.const_str__20 );
|
|
v888 = v841;
|
|
v888.appendChild(v887);
|
|
v890 = create_elem ( __consts_0.const_str__85 );
|
|
v891 = v887;
|
|
v891.appendChild(v890);
|
|
v893 = create_elem ( __consts_0.const_str__18 );
|
|
v894 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 );
|
|
v893.id = v894;
|
|
v896 = v890;
|
|
v896.appendChild(v893);
|
|
v898 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 );
|
|
__consts_0.const_tuple__86[v898]=0;
|
|
v840 = v841;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v840 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function add_received_item_outcome (msg_20,module_part_2) {
|
|
var v669,v670,v671,v672,msg_21,module_part_3,v673,v674,v675,v676,v677,v678,v679,v680,v681,v682,v683,v684,v685,v686,v687,v688,v689,v690,v691,msg_22,module_part_4,item_name_6,td_0,v692,v693,v694,v695,msg_23,module_part_5,item_name_7,td_1,v696,v697,v698,v699,v700,v701,v702,v703,v704,v705,v706,v707,v708,v709,v710,v711,v712,v713,v714,v715,v716,v717,msg_24,module_part_6,td_2,v718,v719,v720,v721,v722,module_part_7,td_3,v723,v724,v725,v726,v727,v728,v729,v730,v731,v732,v733,v734,v735,v736,v737,v738,v739,v740,v741,v742,v743,v744,v745,v746,v747,v748,v749,v750,v751,v752,v753,v754,v755,v756,v757,msg_25,module_part_8,td_4,v758,v759,v760,msg_26,module_part_9,item_name_8,td_5,v761,v762,v763,v764,msg_27,module_part_10,item_name_9,td_6,v765,v766,v767,v768,v769,v770,v771,v772,v773,v774,v775,v776,v777,v778,v779,v780,v781,v782,v783,v784,msg_28,module_part_11,td_7,v785,v786,v787,msg_29,module_part_12,v788,v789,v790,v791,v792,v793,v794,v795,v796,v797,v798,v799,v800,v801,v802,v803,v804,v805,v806,v807,v808,v809,v810,v811,v812,v813,v814,v815,v816,v817,v818;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v670 = ll_dict_getitem__Dict_String__String__String ( msg_20,__consts_0.const_str__71 );
|
|
v671 = ll_strlen__String ( v670 );
|
|
v672 = !!v671;
|
|
if (v672 == true)
|
|
{
|
|
msg_29 = msg_20;
|
|
module_part_12 = module_part_2;
|
|
block = 11;
|
|
break;
|
|
}
|
|
else{
|
|
msg_21 = msg_20;
|
|
module_part_3 = module_part_2;
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v673 = create_elem ( __consts_0.const_str__20 );
|
|
v674 = v673;
|
|
v675 = ll_dict_getitem__Dict_String__String__String ( msg_21,__consts_0.const_str__57 );
|
|
v676 = new Object();
|
|
v676.item0 = v675;
|
|
v678 = v676.item0;
|
|
v679 = new StringBuilder();
|
|
v679.ll_append(__consts_0.const_str__83);
|
|
v681 = ll_str__StringR_StringConst_String ( undefined,v678 );
|
|
v679.ll_append(v681);
|
|
v679.ll_append(__consts_0.const_str__27);
|
|
v684 = v679.ll_build();
|
|
v674.setAttribute(__consts_0.const_str__28,v684);
|
|
v686 = v673;
|
|
v686.setAttribute(__consts_0.const_str__29,__consts_0.const_str__84);
|
|
v688 = ll_dict_getitem__Dict_String__String__String ( msg_21,__consts_0.const_str__57 );
|
|
v689 = ll_dict_getitem__Dict_String__String__String ( msg_21,__consts_0.const_str__87 );
|
|
v690 = ll_streq__String_String ( v689,__consts_0.const_str__6 );
|
|
v691 = v690;
|
|
if (v691 == true)
|
|
{
|
|
msg_28 = msg_21;
|
|
module_part_11 = module_part_3;
|
|
td_7 = v673;
|
|
block = 10;
|
|
break;
|
|
}
|
|
else{
|
|
msg_22 = msg_21;
|
|
module_part_4 = module_part_3;
|
|
item_name_6 = v688;
|
|
td_0 = v673;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
v692 = ll_dict_getitem__Dict_String__String__String ( msg_22,__consts_0.const_str__88 );
|
|
v693 = ll_streq__String_String ( v692,__consts_0.const_str__89 );
|
|
v694 = !v693;
|
|
v695 = v694;
|
|
if (v695 == true)
|
|
{
|
|
msg_26 = msg_22;
|
|
module_part_9 = module_part_4;
|
|
item_name_8 = item_name_6;
|
|
td_5 = td_0;
|
|
block = 8;
|
|
break;
|
|
}
|
|
else{
|
|
msg_23 = msg_22;
|
|
module_part_5 = module_part_4;
|
|
item_name_7 = item_name_6;
|
|
td_1 = td_0;
|
|
block = 3;
|
|
break;
|
|
}
|
|
case 3:
|
|
v696 = create_elem ( __consts_0.const_str__90 );
|
|
v697 = v696;
|
|
v698 = ll_dict_getitem__Dict_String__String__String ( msg_23,__consts_0.const_str__57 );
|
|
v699 = new Object();
|
|
v699.item0 = v698;
|
|
v701 = v699.item0;
|
|
v702 = new StringBuilder();
|
|
v702.ll_append(__consts_0.const_str__91);
|
|
v704 = ll_str__StringR_StringConst_String ( undefined,v701 );
|
|
v702.ll_append(v704);
|
|
v702.ll_append(__consts_0.const_str__27);
|
|
v707 = v702.ll_build();
|
|
v697.setAttribute(__consts_0.const_str__92,v707);
|
|
v709 = create_text_elem ( __consts_0.const_str__93 );
|
|
v710 = v696;
|
|
v710.setAttribute(__consts_0.const_str__94,__consts_0.const_str__95);
|
|
v712 = v696;
|
|
v712.appendChild(v709);
|
|
v714 = td_1;
|
|
v714.appendChild(v696);
|
|
v716 = __consts_0.ExportedMethods;
|
|
v717 = v716.show_fail(item_name_7,fail_come_back);
|
|
msg_24 = msg_23;
|
|
module_part_6 = module_part_5;
|
|
td_2 = td_1;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
v718 = ll_dict_getitem__Dict_String__String__String ( msg_24,__consts_0.const_str__70 );
|
|
v719 = ll_dict_getitem__Dict_String__Signed__String ( __consts_0.const_tuple__86,v718 );
|
|
v720 = (v719%50);
|
|
v721 = (v720==0);
|
|
v722 = v721;
|
|
if (v722 == true)
|
|
{
|
|
msg_25 = msg_24;
|
|
module_part_8 = module_part_6;
|
|
td_4 = td_2;
|
|
block = 7;
|
|
break;
|
|
}
|
|
else{
|
|
module_part_7 = module_part_6;
|
|
td_3 = td_2;
|
|
v723 = msg_24;
|
|
block = 5;
|
|
break;
|
|
}
|
|
case 5:
|
|
v724 = ll_dict_getitem__Dict_String__String__String ( v723,__consts_0.const_str__70 );
|
|
v725 = ll_dict_getitem__Dict_String__Signed__String ( __consts_0.const_tuple__86,v724 );
|
|
v726 = (v725+1);
|
|
__consts_0.const_tuple__86[v724]=v726;
|
|
v728 = ll_strconcat__String_String ( __consts_0.const_str__82,v724 );
|
|
v729 = get_elem ( v728 );
|
|
v730 = ll_dict_getitem__Dict_String__String__String ( __consts_0.const_tuple__81,v724 );
|
|
v731 = ll_dict_getitem__Dict_String__Signed__String ( __consts_0.const_tuple__86,v724 );
|
|
v732 = ll_dict_getitem__Dict_String__Signed__String ( __consts_0.const_tuple__80,v724 );
|
|
v733 = new Object();
|
|
v733.item0 = v730;
|
|
v733.item1 = v731;
|
|
v733.item2 = v732;
|
|
v737 = v733.item0;
|
|
v738 = v733.item1;
|
|
v739 = v733.item2;
|
|
v740 = new StringBuilder();
|
|
v741 = ll_str__StringR_StringConst_String ( undefined,v737 );
|
|
v740.ll_append(v741);
|
|
v740.ll_append(__consts_0.const_str__74);
|
|
v744 = v738.toString();
|
|
v740.ll_append(v744);
|
|
v740.ll_append(__consts_0.const_str__96);
|
|
v747 = v739.toString();
|
|
v740.ll_append(v747);
|
|
v740.ll_append(__consts_0.const_str__38);
|
|
v750 = v740.ll_build();
|
|
v751 = v729.childNodes;
|
|
v752 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v751,0 );
|
|
v752.nodeValue = v750;
|
|
v754 = module_part_7.childNodes;
|
|
v755 = ll_getitem__dum_nocheckConst_List_ExternalType__Si ( undefined,v754,-1 );
|
|
v756 = v755;
|
|
v756.appendChild(td_3);
|
|
block = 6;
|
|
break;
|
|
case 6:
|
|
return ( v669 );
|
|
case 7:
|
|
v758 = create_elem ( __consts_0.const_str__19 );
|
|
v759 = module_part_8;
|
|
v759.appendChild(v758);
|
|
module_part_7 = module_part_8;
|
|
td_3 = td_4;
|
|
v723 = msg_25;
|
|
block = 5;
|
|
break;
|
|
case 8:
|
|
v761 = ll_dict_getitem__Dict_String__String__String ( msg_26,__consts_0.const_str__88 );
|
|
v762 = ll_streq__String_String ( v761,__consts_0.const_str__97 );
|
|
v763 = !v762;
|
|
v764 = v763;
|
|
if (v764 == true)
|
|
{
|
|
msg_27 = msg_26;
|
|
module_part_10 = module_part_9;
|
|
item_name_9 = item_name_8;
|
|
td_6 = td_5;
|
|
block = 9;
|
|
break;
|
|
}
|
|
else{
|
|
msg_23 = msg_26;
|
|
module_part_5 = module_part_9;
|
|
item_name_7 = item_name_8;
|
|
td_1 = td_5;
|
|
block = 3;
|
|
break;
|
|
}
|
|
case 9:
|
|
v765 = __consts_0.ExportedMethods;
|
|
v766 = v765.show_skip(item_name_9,skip_come_back);
|
|
v767 = create_elem ( __consts_0.const_str__90 );
|
|
v768 = v767;
|
|
v769 = ll_dict_getitem__Dict_String__String__String ( msg_27,__consts_0.const_str__57 );
|
|
v770 = new Object();
|
|
v770.item0 = v769;
|
|
v772 = v770.item0;
|
|
v773 = new StringBuilder();
|
|
v773.ll_append(__consts_0.const_str__98);
|
|
v775 = ll_str__StringR_StringConst_String ( undefined,v772 );
|
|
v773.ll_append(v775);
|
|
v773.ll_append(__consts_0.const_str__27);
|
|
v778 = v773.ll_build();
|
|
v768.setAttribute(__consts_0.const_str__92,v778);
|
|
v780 = create_text_elem ( __consts_0.const_str__99 );
|
|
v781 = v767;
|
|
v781.appendChild(v780);
|
|
v783 = td_6;
|
|
v783.appendChild(v767);
|
|
msg_24 = msg_27;
|
|
module_part_6 = module_part_10;
|
|
td_2 = td_6;
|
|
block = 4;
|
|
break;
|
|
case 10:
|
|
v785 = create_text_elem ( __consts_0.const_str__100 );
|
|
v786 = td_7;
|
|
v786.appendChild(v785);
|
|
msg_24 = msg_28;
|
|
module_part_6 = module_part_11;
|
|
td_2 = td_7;
|
|
block = 4;
|
|
break;
|
|
case 11:
|
|
v788 = __consts_0.Document;
|
|
v789 = ll_dict_getitem__Dict_String__String__String ( msg_29,__consts_0.const_str__71 );
|
|
v790 = v788.getElementById(v789);
|
|
v791 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending;
|
|
v792 = ll_dict_getitem__Dict_String__String__String ( msg_29,__consts_0.const_str__71 );
|
|
v793 = ll_dict_getitem__Dict_String__List_String___String ( v791,v792 );
|
|
v794 = v793;
|
|
v795 = ll_pop_default__dum_nocheckConst_List_String_ ( undefined,v794 );
|
|
v796 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending;
|
|
v797 = ll_dict_getitem__Dict_String__String__String ( msg_29,__consts_0.const_str__71 );
|
|
v798 = ll_dict_getitem__Dict_String__List_String___String ( v796,v797 );
|
|
v799 = ll_len__List_String_ ( v798 );
|
|
v800 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict;
|
|
v801 = ll_dict_getitem__Dict_String__String__String ( msg_29,__consts_0.const_str__71 );
|
|
v802 = ll_dict_getitem__Dict_String__String__String ( v800,v801 );
|
|
v803 = new Object();
|
|
v803.item0 = v802;
|
|
v803.item1 = v799;
|
|
v806 = v803.item0;
|
|
v807 = v803.item1;
|
|
v808 = new StringBuilder();
|
|
v809 = ll_str__StringR_StringConst_String ( undefined,v806 );
|
|
v808.ll_append(v809);
|
|
v808.ll_append(__consts_0.const_str__74);
|
|
v812 = ll_int_str__IntegerR_SignedConst_Signed ( undefined,v807 );
|
|
v808.ll_append(v812);
|
|
v808.ll_append(__consts_0.const_str__38);
|
|
v815 = v808.ll_build();
|
|
v816 = v790.childNodes;
|
|
v817 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v816,0 );
|
|
v817.nodeValue = v815;
|
|
msg_21 = msg_29;
|
|
module_part_3 = module_part_12;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_int__String_Signed (s_2,base_0) {
|
|
var v902,v903,v904,v905,v906,v907,etype_5,evalue_5,s_3,base_1,v908,s_4,base_2,v909,v910,s_5,base_3,v911,v912,s_6,base_4,i_8,strlen_0,v913,v914,s_7,base_5,i_9,strlen_1,v915,v916,v917,v918,v919,s_8,base_6,i_10,strlen_2,v920,v921,v922,v923,s_9,base_7,i_11,strlen_3,v924,v925,v926,v927,s_10,base_8,val_0,i_12,sign_0,strlen_4,v928,v929,s_11,val_1,i_13,sign_1,strlen_5,v930,v931,val_2,sign_2,v932,v933,v934,v935,v936,v937,v938,v939,v940,v941,s_12,val_3,i_14,sign_3,strlen_6,v942,v943,v944,v945,s_13,val_4,sign_4,strlen_7,v946,v947,s_14,base_9,val_5,i_15,sign_5,strlen_8,v948,v949,v950,v951,v952,s_15,base_10,c_0,val_6,i_16,sign_6,strlen_9,v953,v954,s_16,base_11,c_1,val_7,i_17,sign_7,strlen_10,v955,v956,s_17,base_12,c_2,val_8,i_18,sign_8,strlen_11,v957,s_18,base_13,c_3,val_9,i_19,sign_9,strlen_12,v958,v959,s_19,base_14,val_10,i_20,sign_10,strlen_13,v960,v961,s_20,base_15,val_11,i_21,digit_0,sign_11,strlen_14,v962,v963,s_21,base_16,i_22,digit_1,sign_12,strlen_15,v964,v965,v966,v967,s_22,base_17,c_4,val_12,i_23,sign_13,strlen_16,v968,s_23,base_18,c_5,val_13,i_24,sign_14,strlen_17,v969,v970,s_24,base_19,val_14,i_25,sign_15,strlen_18,v971,v972,v973,s_25,base_20,c_6,val_15,i_26,sign_16,strlen_19,v974,s_26,base_21,c_7,val_16,i_27,sign_17,strlen_20,v975,v976,s_27,base_22,val_17,i_28,sign_18,strlen_21,v977,v978,v979,s_28,base_23,strlen_22,v980,v981,s_29,base_24,strlen_23,v982,v983,s_30,base_25,i_29,strlen_24,v984,v985,v986,v987,s_31,base_26,strlen_25,v988,v989;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v903 = (2<=base_0);
|
|
v904 = v903;
|
|
if (v904 == true)
|
|
{
|
|
s_3 = s_2;
|
|
base_1 = base_0;
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v905 = __consts_0.exceptions_ValueError;
|
|
v906 = v905.meta;
|
|
v907 = v905;
|
|
etype_5 = v906;
|
|
evalue_5 = v907;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
throw(evalue_5);
|
|
case 3:
|
|
v908 = (base_1<=36);
|
|
s_4 = s_3;
|
|
base_2 = base_1;
|
|
v909 = v908;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
v910 = v909;
|
|
if (v910 == true)
|
|
{
|
|
s_5 = s_4;
|
|
base_3 = base_2;
|
|
block = 5;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 5:
|
|
v911 = s_5;
|
|
v912 = v911.length;
|
|
s_6 = s_5;
|
|
base_4 = base_3;
|
|
i_8 = 0;
|
|
strlen_0 = v912;
|
|
block = 6;
|
|
break;
|
|
case 6:
|
|
v913 = (i_8<strlen_0);
|
|
v914 = v913;
|
|
if (v914 == true)
|
|
{
|
|
s_30 = s_6;
|
|
base_25 = base_4;
|
|
i_29 = i_8;
|
|
strlen_24 = strlen_0;
|
|
block = 35;
|
|
break;
|
|
}
|
|
else{
|
|
s_7 = s_6;
|
|
base_5 = base_4;
|
|
i_9 = i_8;
|
|
strlen_1 = strlen_0;
|
|
block = 7;
|
|
break;
|
|
}
|
|
case 7:
|
|
v915 = (i_9<strlen_1);
|
|
v916 = v915;
|
|
if (v916 == true)
|
|
{
|
|
s_8 = s_7;
|
|
base_6 = base_5;
|
|
i_10 = i_9;
|
|
strlen_2 = strlen_1;
|
|
block = 9;
|
|
break;
|
|
}
|
|
else{
|
|
block = 8;
|
|
break;
|
|
}
|
|
case 8:
|
|
v917 = __consts_0.exceptions_ValueError;
|
|
v918 = v917.meta;
|
|
v919 = v917;
|
|
etype_5 = v918;
|
|
evalue_5 = v919;
|
|
block = 2;
|
|
break;
|
|
case 9:
|
|
v920 = s_8;
|
|
v921 = v920.charAt(i_10);
|
|
v922 = (v921=='-');
|
|
v923 = v922;
|
|
if (v923 == true)
|
|
{
|
|
s_29 = s_8;
|
|
base_24 = base_6;
|
|
strlen_23 = strlen_2;
|
|
v982 = i_10;
|
|
block = 34;
|
|
break;
|
|
}
|
|
else{
|
|
s_9 = s_8;
|
|
base_7 = base_6;
|
|
i_11 = i_10;
|
|
strlen_3 = strlen_2;
|
|
block = 10;
|
|
break;
|
|
}
|
|
case 10:
|
|
v924 = s_9;
|
|
v925 = v924.charAt(i_11);
|
|
v926 = (v925=='+');
|
|
v927 = v926;
|
|
if (v927 == true)
|
|
{
|
|
s_28 = s_9;
|
|
base_23 = base_7;
|
|
strlen_22 = strlen_3;
|
|
v980 = i_11;
|
|
block = 33;
|
|
break;
|
|
}
|
|
else{
|
|
s_10 = s_9;
|
|
base_8 = base_7;
|
|
val_0 = 0;
|
|
i_12 = i_11;
|
|
sign_0 = 1;
|
|
strlen_4 = strlen_3;
|
|
block = 11;
|
|
break;
|
|
}
|
|
case 11:
|
|
v928 = (i_12<strlen_4);
|
|
v929 = v928;
|
|
if (v929 == true)
|
|
{
|
|
s_14 = s_10;
|
|
base_9 = base_8;
|
|
val_5 = val_0;
|
|
i_15 = i_12;
|
|
sign_5 = sign_0;
|
|
strlen_8 = strlen_4;
|
|
block = 19;
|
|
break;
|
|
}
|
|
else{
|
|
s_11 = s_10;
|
|
val_1 = val_0;
|
|
i_13 = i_12;
|
|
sign_1 = sign_0;
|
|
strlen_5 = strlen_4;
|
|
block = 12;
|
|
break;
|
|
}
|
|
case 12:
|
|
v930 = (i_13<strlen_5);
|
|
v931 = v930;
|
|
if (v931 == true)
|
|
{
|
|
s_12 = s_11;
|
|
val_3 = val_1;
|
|
i_14 = i_13;
|
|
sign_3 = sign_1;
|
|
strlen_6 = strlen_5;
|
|
block = 17;
|
|
break;
|
|
}
|
|
else{
|
|
val_2 = val_1;
|
|
sign_2 = sign_1;
|
|
v932 = i_13;
|
|
v933 = strlen_5;
|
|
block = 13;
|
|
break;
|
|
}
|
|
case 13:
|
|
v934 = (v932==v933);
|
|
v935 = v934;
|
|
if (v935 == true)
|
|
{
|
|
v939 = sign_2;
|
|
v940 = val_2;
|
|
block = 15;
|
|
break;
|
|
}
|
|
else{
|
|
block = 14;
|
|
break;
|
|
}
|
|
case 14:
|
|
v936 = __consts_0.exceptions_ValueError;
|
|
v937 = v936.meta;
|
|
v938 = v936;
|
|
etype_5 = v937;
|
|
evalue_5 = v938;
|
|
block = 2;
|
|
break;
|
|
case 15:
|
|
v941 = (v939*v940);
|
|
v902 = v941;
|
|
block = 16;
|
|
break;
|
|
case 16:
|
|
return ( v902 );
|
|
case 17:
|
|
v942 = s_12;
|
|
v943 = v942.charAt(i_14);
|
|
v944 = (v943==' ');
|
|
v945 = v944;
|
|
if (v945 == true)
|
|
{
|
|
s_13 = s_12;
|
|
val_4 = val_3;
|
|
sign_4 = sign_3;
|
|
strlen_7 = strlen_6;
|
|
v946 = i_14;
|
|
block = 18;
|
|
break;
|
|
}
|
|
else{
|
|
val_2 = val_3;
|
|
sign_2 = sign_3;
|
|
v932 = i_14;
|
|
v933 = strlen_6;
|
|
block = 13;
|
|
break;
|
|
}
|
|
case 18:
|
|
v947 = (v946+1);
|
|
s_11 = s_13;
|
|
val_1 = val_4;
|
|
i_13 = v947;
|
|
sign_1 = sign_4;
|
|
strlen_5 = strlen_7;
|
|
block = 12;
|
|
break;
|
|
case 19:
|
|
v948 = s_14;
|
|
v949 = v948.charAt(i_15);
|
|
v950 = v949.charCodeAt(0);
|
|
v951 = (97<=v950);
|
|
v952 = v951;
|
|
if (v952 == true)
|
|
{
|
|
s_25 = s_14;
|
|
base_20 = base_9;
|
|
c_6 = v950;
|
|
val_15 = val_5;
|
|
i_26 = i_15;
|
|
sign_16 = sign_5;
|
|
strlen_19 = strlen_8;
|
|
block = 30;
|
|
break;
|
|
}
|
|
else{
|
|
s_15 = s_14;
|
|
base_10 = base_9;
|
|
c_0 = v950;
|
|
val_6 = val_5;
|
|
i_16 = i_15;
|
|
sign_6 = sign_5;
|
|
strlen_9 = strlen_8;
|
|
block = 20;
|
|
break;
|
|
}
|
|
case 20:
|
|
v953 = (65<=c_0);
|
|
v954 = v953;
|
|
if (v954 == true)
|
|
{
|
|
s_22 = s_15;
|
|
base_17 = base_10;
|
|
c_4 = c_0;
|
|
val_12 = val_6;
|
|
i_23 = i_16;
|
|
sign_13 = sign_6;
|
|
strlen_16 = strlen_9;
|
|
block = 27;
|
|
break;
|
|
}
|
|
else{
|
|
s_16 = s_15;
|
|
base_11 = base_10;
|
|
c_1 = c_0;
|
|
val_7 = val_6;
|
|
i_17 = i_16;
|
|
sign_7 = sign_6;
|
|
strlen_10 = strlen_9;
|
|
block = 21;
|
|
break;
|
|
}
|
|
case 21:
|
|
v955 = (48<=c_1);
|
|
v956 = v955;
|
|
if (v956 == true)
|
|
{
|
|
s_17 = s_16;
|
|
base_12 = base_11;
|
|
c_2 = c_1;
|
|
val_8 = val_7;
|
|
i_18 = i_17;
|
|
sign_8 = sign_7;
|
|
strlen_11 = strlen_10;
|
|
block = 22;
|
|
break;
|
|
}
|
|
else{
|
|
s_11 = s_16;
|
|
val_1 = val_7;
|
|
i_13 = i_17;
|
|
sign_1 = sign_7;
|
|
strlen_5 = strlen_10;
|
|
block = 12;
|
|
break;
|
|
}
|
|
case 22:
|
|
v957 = (c_2<=57);
|
|
s_18 = s_17;
|
|
base_13 = base_12;
|
|
c_3 = c_2;
|
|
val_9 = val_8;
|
|
i_19 = i_18;
|
|
sign_9 = sign_8;
|
|
strlen_12 = strlen_11;
|
|
v958 = v957;
|
|
block = 23;
|
|
break;
|
|
case 23:
|
|
v959 = v958;
|
|
if (v959 == true)
|
|
{
|
|
s_19 = s_18;
|
|
base_14 = base_13;
|
|
val_10 = val_9;
|
|
i_20 = i_19;
|
|
sign_10 = sign_9;
|
|
strlen_13 = strlen_12;
|
|
v960 = c_3;
|
|
block = 24;
|
|
break;
|
|
}
|
|
else{
|
|
s_11 = s_18;
|
|
val_1 = val_9;
|
|
i_13 = i_19;
|
|
sign_1 = sign_9;
|
|
strlen_5 = strlen_12;
|
|
block = 12;
|
|
break;
|
|
}
|
|
case 24:
|
|
v961 = (v960-48);
|
|
s_20 = s_19;
|
|
base_15 = base_14;
|
|
val_11 = val_10;
|
|
i_21 = i_20;
|
|
digit_0 = v961;
|
|
sign_11 = sign_10;
|
|
strlen_14 = strlen_13;
|
|
block = 25;
|
|
break;
|
|
case 25:
|
|
v962 = (digit_0>=base_15);
|
|
v963 = v962;
|
|
if (v963 == true)
|
|
{
|
|
s_11 = s_20;
|
|
val_1 = val_11;
|
|
i_13 = i_21;
|
|
sign_1 = sign_11;
|
|
strlen_5 = strlen_14;
|
|
block = 12;
|
|
break;
|
|
}
|
|
else{
|
|
s_21 = s_20;
|
|
base_16 = base_15;
|
|
i_22 = i_21;
|
|
digit_1 = digit_0;
|
|
sign_12 = sign_11;
|
|
strlen_15 = strlen_14;
|
|
v964 = val_11;
|
|
block = 26;
|
|
break;
|
|
}
|
|
case 26:
|
|
v965 = (v964*base_16);
|
|
v966 = (v965+digit_1);
|
|
v967 = (i_22+1);
|
|
s_10 = s_21;
|
|
base_8 = base_16;
|
|
val_0 = v966;
|
|
i_12 = v967;
|
|
sign_0 = sign_12;
|
|
strlen_4 = strlen_15;
|
|
block = 11;
|
|
break;
|
|
case 27:
|
|
v968 = (c_4<=90);
|
|
s_23 = s_22;
|
|
base_18 = base_17;
|
|
c_5 = c_4;
|
|
val_13 = val_12;
|
|
i_24 = i_23;
|
|
sign_14 = sign_13;
|
|
strlen_17 = strlen_16;
|
|
v969 = v968;
|
|
block = 28;
|
|
break;
|
|
case 28:
|
|
v970 = v969;
|
|
if (v970 == true)
|
|
{
|
|
s_24 = s_23;
|
|
base_19 = base_18;
|
|
val_14 = val_13;
|
|
i_25 = i_24;
|
|
sign_15 = sign_14;
|
|
strlen_18 = strlen_17;
|
|
v971 = c_5;
|
|
block = 29;
|
|
break;
|
|
}
|
|
else{
|
|
s_16 = s_23;
|
|
base_11 = base_18;
|
|
c_1 = c_5;
|
|
val_7 = val_13;
|
|
i_17 = i_24;
|
|
sign_7 = sign_14;
|
|
strlen_10 = strlen_17;
|
|
block = 21;
|
|
break;
|
|
}
|
|
case 29:
|
|
v972 = (v971-65);
|
|
v973 = (v972+10);
|
|
s_20 = s_24;
|
|
base_15 = base_19;
|
|
val_11 = val_14;
|
|
i_21 = i_25;
|
|
digit_0 = v973;
|
|
sign_11 = sign_15;
|
|
strlen_14 = strlen_18;
|
|
block = 25;
|
|
break;
|
|
case 30:
|
|
v974 = (c_6<=122);
|
|
s_26 = s_25;
|
|
base_21 = base_20;
|
|
c_7 = c_6;
|
|
val_16 = val_15;
|
|
i_27 = i_26;
|
|
sign_17 = sign_16;
|
|
strlen_20 = strlen_19;
|
|
v975 = v974;
|
|
block = 31;
|
|
break;
|
|
case 31:
|
|
v976 = v975;
|
|
if (v976 == true)
|
|
{
|
|
s_27 = s_26;
|
|
base_22 = base_21;
|
|
val_17 = val_16;
|
|
i_28 = i_27;
|
|
sign_18 = sign_17;
|
|
strlen_21 = strlen_20;
|
|
v977 = c_7;
|
|
block = 32;
|
|
break;
|
|
}
|
|
else{
|
|
s_15 = s_26;
|
|
base_10 = base_21;
|
|
c_0 = c_7;
|
|
val_6 = val_16;
|
|
i_16 = i_27;
|
|
sign_6 = sign_17;
|
|
strlen_9 = strlen_20;
|
|
block = 20;
|
|
break;
|
|
}
|
|
case 32:
|
|
v978 = (v977-97);
|
|
v979 = (v978+10);
|
|
s_20 = s_27;
|
|
base_15 = base_22;
|
|
val_11 = val_17;
|
|
i_21 = i_28;
|
|
digit_0 = v979;
|
|
sign_11 = sign_18;
|
|
strlen_14 = strlen_21;
|
|
block = 25;
|
|
break;
|
|
case 33:
|
|
v981 = (v980+1);
|
|
s_10 = s_28;
|
|
base_8 = base_23;
|
|
val_0 = 0;
|
|
i_12 = v981;
|
|
sign_0 = 1;
|
|
strlen_4 = strlen_22;
|
|
block = 11;
|
|
break;
|
|
case 34:
|
|
v983 = (v982+1);
|
|
s_10 = s_29;
|
|
base_8 = base_24;
|
|
val_0 = 0;
|
|
i_12 = v983;
|
|
sign_0 = -1;
|
|
strlen_4 = strlen_23;
|
|
block = 11;
|
|
break;
|
|
case 35:
|
|
v984 = s_30;
|
|
v985 = v984.charAt(i_29);
|
|
v986 = (v985==' ');
|
|
v987 = v986;
|
|
if (v987 == true)
|
|
{
|
|
s_31 = s_30;
|
|
base_26 = base_25;
|
|
strlen_25 = strlen_24;
|
|
v988 = i_29;
|
|
block = 36;
|
|
break;
|
|
}
|
|
else{
|
|
s_7 = s_30;
|
|
base_5 = base_25;
|
|
i_9 = i_29;
|
|
strlen_1 = strlen_24;
|
|
block = 7;
|
|
break;
|
|
}
|
|
case 36:
|
|
v989 = (v988+1);
|
|
s_6 = s_31;
|
|
base_4 = base_26;
|
|
i_8 = v989;
|
|
strlen_0 = strlen_25;
|
|
block = 6;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_append__List_Dict_String__String___Dict_String_ (l_9,newitem_0) {
|
|
var v661,v662,v663,v664,v665,v666,v667,v668;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v662 = l_9;
|
|
v663 = v662.length;
|
|
v664 = l_9;
|
|
v665 = (v663+1);
|
|
v664.length = v665;
|
|
v667 = l_9;
|
|
v667[v663]=newitem_0;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v661 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function show_crash () {
|
|
var v645,v646,v647,v648,v649,v650,v651,v652;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
__consts_0.py____test_rsession_webjs_Globals.ofinished = true;
|
|
__consts_0.Document.title = __consts_0.const_str__102;
|
|
v648 = __consts_0.Document;
|
|
v649 = v648.getElementById(__consts_0.const_str__35);
|
|
v650 = v649.childNodes;
|
|
v651 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v650,0 );
|
|
v651.nodeValue = __consts_0.const_str__103;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v645 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_getitem__dum_nocheckConst_List_ExternalType__Si (func_2,l_14,index_5) {
|
|
var v1013,v1014,v1015,v1016,v1017,l_15,index_6,length_1,v1018,v1019,v1020,v1021,index_7,v1022,v1023,v1024,l_16,length_2,v1025,v1026;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v1014 = l_14;
|
|
v1015 = v1014.length;
|
|
v1016 = (index_5<0);
|
|
v1017 = v1016;
|
|
if (v1017 == true)
|
|
{
|
|
l_16 = l_14;
|
|
length_2 = v1015;
|
|
v1025 = index_5;
|
|
block = 4;
|
|
break;
|
|
}
|
|
else{
|
|
l_15 = l_14;
|
|
index_6 = index_5;
|
|
length_1 = v1015;
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v1018 = (index_6>=0);
|
|
undefined;
|
|
v1020 = (index_6<length_1);
|
|
undefined;
|
|
index_7 = index_6;
|
|
v1022 = l_15;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
v1023 = v1022;
|
|
v1024 = v1023[index_7];
|
|
v1013 = v1024;
|
|
block = 3;
|
|
break;
|
|
case 3:
|
|
return ( v1013 );
|
|
case 4:
|
|
v1026 = (v1025+length_2);
|
|
l_15 = l_16;
|
|
index_6 = v1026;
|
|
length_1 = length_2;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_dict_getitem__Dict_String__Signed__String (d_4,key_8) {
|
|
var v1003,v1004,v1005,v1006,v1007,v1008,v1009,etype_6,evalue_6,key_9,v1010,v1011,v1012;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v1004 = d_4;
|
|
v1005 = (v1004[key_8]!=undefined);
|
|
v1006 = v1005;
|
|
if (v1006 == true)
|
|
{
|
|
key_9 = key_8;
|
|
v1010 = d_4;
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
block = 1;
|
|
break;
|
|
}
|
|
case 1:
|
|
v1007 = __consts_0.exceptions_KeyError;
|
|
v1008 = v1007.meta;
|
|
v1009 = v1007;
|
|
etype_6 = v1008;
|
|
evalue_6 = v1009;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
throw(evalue_6);
|
|
case 3:
|
|
v1011 = v1010;
|
|
v1012 = v1011[key_9];
|
|
v1003 = v1012;
|
|
block = 4;
|
|
break;
|
|
case 4:
|
|
return ( v1003 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_listslice_startonly__List_Dict_String__String__ (RESLIST_0,l1_0,start_0) {
|
|
var v407,v408,v409,v410,v411,v412,v413,v414,v415,v416,l1_1,i_4,j_0,l_6,len1_0,v417,v418,l1_2,i_5,j_1,l_7,len1_1,v419,v420,v421,v422,v423,v424;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v408 = l1_0;
|
|
v409 = v408.length;
|
|
v410 = (start_0>=0);
|
|
undefined;
|
|
v412 = (start_0<=v409);
|
|
undefined;
|
|
v414 = (v409-start_0);
|
|
undefined;
|
|
v416 = ll_newlist__List_Dict_String__String__LlT_Signed ( undefined,v414 );
|
|
l1_1 = l1_0;
|
|
i_4 = start_0;
|
|
j_0 = 0;
|
|
l_6 = v416;
|
|
len1_0 = v409;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v417 = (i_4<len1_0);
|
|
v418 = v417;
|
|
if (v418 == true)
|
|
{
|
|
l1_2 = l1_1;
|
|
i_5 = i_4;
|
|
j_1 = j_0;
|
|
l_7 = l_6;
|
|
len1_1 = len1_0;
|
|
block = 3;
|
|
break;
|
|
}
|
|
else{
|
|
v407 = l_6;
|
|
block = 2;
|
|
break;
|
|
}
|
|
case 2:
|
|
return ( v407 );
|
|
case 3:
|
|
v419 = l_7;
|
|
v420 = l1_2;
|
|
v421 = v420[i_5];
|
|
v419[j_1]=v421;
|
|
v423 = (i_5+1);
|
|
v424 = (j_1+1);
|
|
l1_1 = l1_2;
|
|
i_4 = v423;
|
|
j_0 = v424;
|
|
l_6 = l_7;
|
|
len1_0 = len1_1;
|
|
block = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function exceptions_ValueError () {
|
|
}
|
|
|
|
exceptions_ValueError.prototype.toString = function (){
|
|
return ( '<exceptions_ValueError instance>' );
|
|
}
|
|
|
|
inherits(exceptions_ValueError,exceptions_StandardError);
|
|
function skip_come_back (msg_32) {
|
|
var v1027,v1028,v1029,v1030;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v1028 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__58 );
|
|
v1029 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__104 );
|
|
__consts_0.const_tuple__34[v1029]=v1028;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v1027 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_int2dec__Signed (i_7) {
|
|
var v900,v901;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v901 = i_7.toString();
|
|
v900 = v901;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v900 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_pop_default__dum_nocheckConst_List_String_ (func_3,l_17) {
|
|
var v1031,v1032,v1033,l_18,length_3,v1034,v1035,v1036,v1037,v1038,v1039,res_0,newlength_0,v1040,v1041,v1042;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v1032 = l_17;
|
|
v1033 = v1032.length;
|
|
l_18 = l_17;
|
|
length_3 = v1033;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
v1034 = (length_3>0);
|
|
undefined;
|
|
v1036 = (length_3-1);
|
|
v1037 = l_18;
|
|
v1038 = v1037[v1036];
|
|
ll_null_item__List_String_ ( l_18 );
|
|
res_0 = v1038;
|
|
newlength_0 = v1036;
|
|
v1040 = l_18;
|
|
block = 2;
|
|
break;
|
|
case 2:
|
|
v1041 = v1040;
|
|
v1041.length = newlength_0;
|
|
v1031 = res_0;
|
|
block = 3;
|
|
break;
|
|
case 3:
|
|
return ( v1031 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function fail_come_back (msg_31) {
|
|
var v993,v994,v995,v996,v997,v998,v999,v1000,v1001,v1002;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v994 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__105 );
|
|
v995 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__106 );
|
|
v996 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__107 );
|
|
v997 = new Object();
|
|
v997.item0 = v994;
|
|
v997.item1 = v995;
|
|
v997.item2 = v996;
|
|
v1001 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__104 );
|
|
__consts_0.const_tuple[v1001]=v997;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v993 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_strlen__String (obj_1) {
|
|
var v990,v991,v992;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v991 = obj_1;
|
|
v992 = v991.length;
|
|
v990 = v992;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v990 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_null_item__List_String_ (lst_2) {
|
|
var v1045,v1046;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
undefined;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v1045 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_newlist__List_Dict_String__String__LlT_Signed (self_1,length_4) {
|
|
var v1043,v1044;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v1044 = ll_newlist__List_Dict_String__String__LlT_Signed_0 ( undefined,length_4 );
|
|
v1043 = v1044;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v1043 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function ll_newlist__List_Dict_String__String__LlT_Signed_0 (LIST_2,length_5) {
|
|
var v1047,v1048,v1049,v1050;
|
|
var block = 0;
|
|
for(;;){
|
|
switch(block){
|
|
case 0:
|
|
v1048 = new Array();
|
|
v1049 = v1048;
|
|
v1049.length = length_5;
|
|
v1047 = v1048;
|
|
block = 1;
|
|
break;
|
|
case 1:
|
|
return ( v1047 );
|
|
}
|
|
}
|
|
}
|
|
|
|
function Object_meta () {
|
|
this.class_ = __consts_0.None;
|
|
}
|
|
|
|
Object_meta.prototype.toString = function (){
|
|
return ( '<Object_meta instance>' );
|
|
}
|
|
|
|
function exceptions_Exception_meta () {
|
|
}
|
|
|
|
exceptions_Exception_meta.prototype.toString = function (){
|
|
return ( '<exceptions_Exception_meta instance>' );
|
|
}
|
|
|
|
inherits(exceptions_Exception_meta,Object_meta);
|
|
function exceptions_StandardError_meta () {
|
|
}
|
|
|
|
exceptions_StandardError_meta.prototype.toString = function (){
|
|
return ( '<exceptions_StandardError_meta instance>' );
|
|
}
|
|
|
|
inherits(exceptions_StandardError_meta,exceptions_Exception_meta);
|
|
function exceptions_LookupError_meta () {
|
|
}
|
|
|
|
exceptions_LookupError_meta.prototype.toString = function (){
|
|
return ( '<exceptions_LookupError_meta instance>' );
|
|
}
|
|
|
|
inherits(exceptions_LookupError_meta,exceptions_StandardError_meta);
|
|
function exceptions_KeyError_meta () {
|
|
}
|
|
|
|
exceptions_KeyError_meta.prototype.toString = function (){
|
|
return ( '<exceptions_KeyError_meta instance>' );
|
|
}
|
|
|
|
inherits(exceptions_KeyError_meta,exceptions_LookupError_meta);
|
|
function py____test_rsession_webjs_Options_meta () {
|
|
}
|
|
|
|
py____test_rsession_webjs_Options_meta.prototype.toString = function (){
|
|
return ( '<py____test_rsession_webjs_Options_meta instance>' );
|
|
}
|
|
|
|
inherits(py____test_rsession_webjs_Options_meta,Object_meta);
|
|
function exceptions_StopIteration_meta () {
|
|
}
|
|
|
|
exceptions_StopIteration_meta.prototype.toString = function (){
|
|
return ( '<exceptions_StopIteration_meta instance>' );
|
|
}
|
|
|
|
inherits(exceptions_StopIteration_meta,exceptions_Exception_meta);
|
|
function py____test_rsession_webjs_Globals_meta () {
|
|
}
|
|
|
|
py____test_rsession_webjs_Globals_meta.prototype.toString = function (){
|
|
return ( '<py____test_rsession_webjs_Globals_meta instance>' );
|
|
}
|
|
|
|
inherits(py____test_rsession_webjs_Globals_meta,Object_meta);
|
|
function exceptions_ValueError_meta () {
|
|
}
|
|
|
|
exceptions_ValueError_meta.prototype.toString = function (){
|
|
return ( '<exceptions_ValueError_meta instance>' );
|
|
}
|
|
|
|
inherits(exceptions_ValueError_meta,exceptions_StandardError_meta);
|
|
__consts_0 = {};
|
|
__consts_0.const_str__67 = ' failures, ';
|
|
__consts_0.const_str__26 = "show_host('";
|
|
__consts_0.const_str__82 = '_txt_';
|
|
__consts_0.const_tuple__80 = {};
|
|
__consts_0.const_str__90 = 'a';
|
|
__consts_0.const_str__94 = 'class';
|
|
__consts_0.const_str__38 = ']';
|
|
__consts_0.const_tuple__33 = undefined;
|
|
__consts_0.const_list = undefined;
|
|
__consts_0.const_str__50 = 'ReceivedItemOutcome';
|
|
__consts_0.const_str__83 = "show_info('";
|
|
__consts_0.const_str__59 = '- skipped (';
|
|
__consts_0.const_str__30 = 'hide_host()';
|
|
__consts_0.const_str__84 = 'hide_info()';
|
|
__consts_0.const_str__42 = '#message';
|
|
__consts_0.ExportedMethods = new ExportedMethods();
|
|
__consts_0.exceptions_ValueError__109 = exceptions_ValueError;
|
|
__consts_0.exceptions_ValueError_meta = new exceptions_ValueError_meta();
|
|
__consts_0.exceptions_ValueError = new exceptions_ValueError();
|
|
__consts_0.const_str__18 = 'tbody';
|
|
__consts_0.const_str__102 = 'Py.test [crashed]';
|
|
__consts_0.const_str__60 = ')';
|
|
__consts_0.const_str__45 = 'main_table';
|
|
__consts_0.const_str__76 = 'Tests [interrupted]';
|
|
__consts_0.exceptions_KeyError__115 = exceptions_KeyError;
|
|
__consts_0.const_str__27 = "')";
|
|
__consts_0.const_str__54 = 'RsyncFinished';
|
|
__consts_0.const_list__117 = [];
|
|
__consts_0.Window = window;
|
|
__consts_0.py____test_rsession_webjs_Globals__118 = py____test_rsession_webjs_Globals;
|
|
__consts_0.py____test_rsession_webjs_Globals_meta = new py____test_rsession_webjs_Globals_meta();
|
|
__consts_0.const_str__66 = ' run, ';
|
|
__consts_0.py____test_rsession_webjs_Options__113 = py____test_rsession_webjs_Options;
|
|
__consts_0.py____test_rsession_webjs_Options_meta = new py____test_rsession_webjs_Options_meta();
|
|
__consts_0.const_str__106 = 'stdout';
|
|
__consts_0.const_str = 'aa';
|
|
__consts_0.const_str__95 = 'error';
|
|
__consts_0.const_str__68 = ' skipped';
|
|
__consts_0.const_str__65 = 'FINISHED ';
|
|
__consts_0.const_str__36 = 'Rsyncing';
|
|
__consts_0.const_str__10 = 'info';
|
|
__consts_0.const_str__20 = 'td';
|
|
__consts_0.const_str__23 = 'true';
|
|
__consts_0.const_tuple__31 = undefined;
|
|
__consts_0.const_tuple__81 = {};
|
|
__consts_0.exceptions_StopIteration__111 = exceptions_StopIteration;
|
|
__consts_0.exceptions_StopIteration_meta = new exceptions_StopIteration_meta();
|
|
__consts_0.const_str__93 = 'F';
|
|
__consts_0.const_str__29 = 'onmouseout';
|
|
__consts_0.const_str__46 = 'type';
|
|
__consts_0.const_str__87 = 'passed';
|
|
__consts_0.const_str__100 = '.';
|
|
__consts_0.const_str__52 = 'FailedTryiter';
|
|
__consts_0.const_tuple__34 = {};
|
|
__consts_0.const_str__25 = '#ff0000';
|
|
__consts_0.const_str__5 = 'checked';
|
|
__consts_0.const_str__35 = 'Tests';
|
|
__consts_0.const_str__57 = 'fullitemname';
|
|
__consts_0.const_str__85 = 'table';
|
|
__consts_0.const_str__69 = 'Py.test ';
|
|
__consts_0.const_str__64 = 'skips';
|
|
__consts_0.const_str__56 = 'CrashedExecution';
|
|
__consts_0.const_str__17 = '\n';
|
|
__consts_0.const_str__40 = 'pre';
|
|
__consts_0.const_str__75 = 'Py.test [interrupted]';
|
|
__consts_0.const_str__15 = '\n======== Stdout: ========\n';
|
|
__consts_0.const_str__72 = '#00ff00';
|
|
__consts_0.const_str__12 = 'beige';
|
|
__consts_0.const_str__78 = 'length';
|
|
__consts_0.const_tuple = {};
|
|
__consts_0.const_str__105 = 'traceback';
|
|
__consts_0.const_str__44 = 'testmain';
|
|
__consts_0.const_str__98 = "javascript:show_skip('";
|
|
__consts_0.const_str__74 = '[';
|
|
__consts_0.const_str__103 = 'Tests [crashed]';
|
|
__consts_0.const_str__58 = 'reason';
|
|
__consts_0.const_str__91 = "javascript:show_traceback('";
|
|
__consts_0.const_str__39 = 'messagebox';
|
|
__consts_0.exceptions_StopIteration = new exceptions_StopIteration();
|
|
__consts_0.const_str__99 = 's';
|
|
__consts_0.const_str__62 = 'run';
|
|
__consts_0.const_str__53 = 'SkippedTryiter';
|
|
__consts_0.const_str__89 = 'None';
|
|
__consts_0.const_str__6 = 'True';
|
|
__consts_0.const_str__96 = '/';
|
|
__consts_0.const_str__71 = 'hostkey';
|
|
__consts_0.const_str__63 = 'fails';
|
|
__consts_0.const_str__47 = 'ItemStart';
|
|
__consts_0.const_str__77 = 'itemname';
|
|
__consts_0.const_str__51 = 'TestFinished';
|
|
__consts_0.const_str__7 = 'jobs';
|
|
__consts_0.const_str__16 = '\n========== Stderr: ==========\n';
|
|
__consts_0.const_tuple__86 = {};
|
|
__consts_0.const_str__107 = 'stderr';
|
|
__consts_0.const_str__92 = 'href';
|
|
__consts_0.const_str__9 = '';
|
|
__consts_0.py____test_rsession_webjs_Globals = new py____test_rsession_webjs_Globals();
|
|
__consts_0.const_str__11 = 'visible';
|
|
__consts_0.const_str__97 = 'False';
|
|
__consts_0.const_str__49 = 'HostRSyncRootReady';
|
|
__consts_0.const_str__28 = 'onmouseover';
|
|
__consts_0.const_str__61 = '- FAILED TO LOAD MODULE';
|
|
__consts_0.const_str__79 = '[0/';
|
|
__consts_0.py____test_rsession_webjs_Options = new py____test_rsession_webjs_Options();
|
|
__consts_0.const_str__48 = 'SendItem';
|
|
__consts_0.const_str__70 = 'fullmodulename';
|
|
__consts_0.const_str__88 = 'skipped';
|
|
__consts_0.const_str__24 = 'hostsbody';
|
|
__consts_0.const_str__73 = '[0]';
|
|
__consts_0.const_str__8 = 'hidden';
|
|
__consts_0.const_str__14 = '====== Traceback: =========\n';
|
|
__consts_0.const_str__19 = 'tr';
|
|
__consts_0.const_str__104 = 'item_name';
|
|
__consts_0.const_str__37 = 'Tests [';
|
|
__consts_0.Document = document;
|
|
__consts_0.exceptions_KeyError_meta = new exceptions_KeyError_meta();
|
|
__consts_0.exceptions_KeyError = new exceptions_KeyError();
|
|
__consts_0.const_str__55 = 'InterruptedExecution';
|
|
__consts_0.const_str__4 = 'opt_scroll';
|
|
__consts_0.exceptions_ValueError_meta.class_ = __consts_0.exceptions_ValueError__109;
|
|
__consts_0.exceptions_ValueError.meta = __consts_0.exceptions_ValueError_meta;
|
|
__consts_0.py____test_rsession_webjs_Globals_meta.class_ = __consts_0.py____test_rsession_webjs_Globals__118;
|
|
__consts_0.py____test_rsession_webjs_Options_meta.class_ = __consts_0.py____test_rsession_webjs_Options__113;
|
|
__consts_0.exceptions_StopIteration_meta.class_ = __consts_0.exceptions_StopIteration__111;
|
|
__consts_0.exceptions_StopIteration.meta = __consts_0.exceptions_StopIteration_meta;
|
|
__consts_0.py____test_rsession_webjs_Globals.odata_empty = true;
|
|
__consts_0.py____test_rsession_webjs_Globals.osessid = __consts_0.const_str__9;
|
|
__consts_0.py____test_rsession_webjs_Globals.ohost = __consts_0.const_str__9;
|
|
__consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0;
|
|
__consts_0.py____test_rsession_webjs_Globals.ofinished = false;
|
|
__consts_0.py____test_rsession_webjs_Globals.ohost_dict = __consts_0.const_tuple__31;
|
|
__consts_0.py____test_rsession_webjs_Globals.meta = __consts_0.py____test_rsession_webjs_Globals_meta;
|
|
__consts_0.py____test_rsession_webjs_Globals.opending = __consts_0.const_list__117;
|
|
__consts_0.py____test_rsession_webjs_Globals.orsync_done = false;
|
|
__consts_0.py____test_rsession_webjs_Globals.ohost_pending = __consts_0.const_tuple__33;
|
|
__consts_0.py____test_rsession_webjs_Options.meta = __consts_0.py____test_rsession_webjs_Options_meta;
|
|
__consts_0.py____test_rsession_webjs_Options.oscroll = true;
|
|
__consts_0.exceptions_KeyError_meta.class_ = __consts_0.exceptions_KeyError__115;
|
|
__consts_0.exceptions_KeyError.meta = __consts_0.exceptions_KeyError_meta;
|