From a9460c8c694c1988459365e3ad6ad88f2bfcace9 Mon Sep 17 00:00:00 2001 From: Ian Gray Date: Thu, 13 Jan 2022 17:26:00 +0000 Subject: [PATCH] Allow runtime updates to button controls. --- data/js/controls.js | 6 ++++++ data/js/controls.min.js | 3 ++- src/dataControlsJS.h | 5 +++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/data/js/controls.js b/data/js/controls.js index 34e522d..1cdc764 100644 --- a/data/js/controls.js +++ b/data/js/controls.js @@ -529,6 +529,12 @@ function start() { break; case UPDATE_BUTTON: + $("#btn" + data.id).val(data.value); + if(data.hasOwnProperty('elementStyle')) { + $("#btn" + data.id).attr("style", data.elementStyle); + } + break; + case UPDATE_PAD: case UPDATE_CPAD: break; diff --git a/data/js/controls.min.js b/data/js/controls.min.js index 24a4a13..caba3d4 100644 --- a/data/js/controls.min.js +++ b/data/js/controls.min.js @@ -37,7 +37,8 @@ slider_move($("#id"+data.id),data.value,"100",false);if(data.hasOwnProperty('ele break;case UPDATE_NUMBER:$("#num"+data.id).val(data.value);if(data.hasOwnProperty('elementStyle')){$("#num"+data.id).attr("style",data.elementStyle);} break;case UPDATE_TEXT_INPUT:$("#text"+data.id).val(data.value);if(data.hasOwnProperty('elementStyle')){$("#text"+data.id).attr("style",data.elementStyle);} break;case UPDATE_SELECT:$("#select"+data.id).val(data.value);if(data.hasOwnProperty('elementStyle')){$("#select"+data.id).attr("style",data.elementStyle);} -break;case UPDATE_BUTTON:case UPDATE_PAD:case UPDATE_CPAD:break;case UPDATE_GAUGE:$("#gauge"+data.id).val(data.value);if(data.hasOwnProperty('elementStyle')){$("#gauge"+data.id).attr("style",data.elementStyle);} +break;case UPDATE_BUTTON:$("#btn"+data.id).val(data.value);if(data.hasOwnProperty('elementStyle')){$("#btn"+data.id).attr("style",data.elementStyle);} +break;case UPDATE_PAD:case UPDATE_CPAD:break;case UPDATE_GAUGE:$("#gauge"+data.id).val(data.value);if(data.hasOwnProperty('elementStyle')){$("#gauge"+data.id).attr("style",data.elementStyle);} break;case UPDATE_ACCEL:break;default:console.error("Unknown type or event");break;} if(data.type>=UPDATE_OFFSET&&data.type=UPDATE_OFFSET&&data.type";case UI_NUMBER:return"
";default:return"";}}
 )=====";
 
-const uint8_t JS_CONTROLS_GZIP[3819] PROGMEM = { 31,139,8,0,27,104,223,97,2,255,197,91,91,119,218,72,18,126,247,175,144,149,57,65,44,152,75,110,147,1,203,57,4,147,132,29,98,123,109,60,153,179,153,172,143,16,141,209,177,144,52,146,48,246,56,252,247,173,174,190,168,91,8,204,224,217,217,151,24,149,170,171,191,174,170,238,174,139,226,134,65,146,26,151,253,171,254,73,127,216,239,12,174,62,94,246,237,23,141,70,219,21,47,206,123,131,211,206,49,208,154,130,118,118,220,25,246,174,78,63,124,184,232,13,237,166,202,219,251,117,216,59,57,102,50,154,10,125,216,31,246,6,182,66,56,3,137,57,121,72,202,38,233,95,117,41,229,133,206,212,101,92,47,50,174,247,151,195,225,233,137,253,82,231,227,212,102,227,101,198,57,232,188,7,16,175,116,70,70,108,54,94,101,124,23,95,250,195,238,167,222,185,253,90,103,149,244,102,227,181,194,61,232,31,3,237,77,142,151,81,155,141,55,25,231,201,229,231,247,64,251,81,231,228,212,102,227,71,69,93,160,71,48,200,217,229,208,126,171,115,43,111,154,141,183,217,136,143,231,157,179,79,246,79,156,208,57,62,102,148,171,179,211,254,9,101,229,47,186,131,94,231,156,51,55,27,63,41,51,118,222,219,205,156,65,24,77,49,200,69,111,208,235,130,180,156,77,4,185,169,88,229,244,108,216,167,250,207,153,69,144,155,138,89,62,247,129,144,179,10,210,154,138,77,62,119,126,181,155,57,123,32,173,169,154,98,216,59,179,155,121,75,32,177,169,216,225,99,231,242,99,207,110,230,236,192,169,77,197,12,157,110,151,250,70,206,4,156,218,124,171,42,230,172,115,222,25,158,130,25,127,202,235,70,190,81,94,201,157,112,124,250,229,68,238,131,65,239,195,80,250,251,121,255,227,167,161,244,234,110,239,100,8,78,34,20,210,189,26,94,158,255,235,242,180,127,209,147,162,186,87,189,207,189,243,206,32,219,87,221,171,179,30,140,58,239,255,2,67,95,72,226,151,222,176,115,113,246,169,51,80,196,95,93,92,158,124,24,156,126,209,230,232,118,206,207,79,135,114,23,116,175,58,131,254,191,59,231,96,154,55,146,116,220,57,255,89,122,116,247,234,228,244,164,103,191,120,253,186,125,235,196,198,117,236,68,211,99,39,117,236,128,44,140,78,28,59,247,86,25,223,76,157,164,227,186,196,183,39,142,159,16,36,37,190,55,38,113,55,12,82,47,152,135,243,132,191,154,204,3,55,245,194,192,112,67,63,140,187,190,147,36,22,254,236,143,203,15,252,135,125,50,159,141,72,44,233,237,100,225,165,238,84,225,115,18,162,234,172,21,147,116,30,7,38,252,243,251,60,244,18,98,182,57,11,87,161,96,32,51,18,59,254,88,190,206,244,41,56,34,146,146,56,246,110,73,44,153,50,253,10,166,5,73,157,36,154,58,126,42,153,164,190,5,79,50,15,38,126,184,80,228,48,245,139,247,174,19,199,97,54,94,152,66,188,118,124,239,15,39,246,2,201,64,45,33,94,142,157,248,198,108,143,201,196,153,251,169,32,154,237,229,114,143,106,126,65,70,73,232,222,180,149,223,96,134,128,184,41,25,231,173,16,147,223,231,36,73,79,99,143,4,169,67,73,103,36,158,121,73,2,191,172,242,195,114,79,114,38,206,45,249,40,28,0,94,249,161,235,248,23,105,24,59,215,164,150,144,180,159,146,153,101,146,36,154,123,232,39,137,89,253,231,197,233,73,45,73,97,21,215,222,228,222,146,238,83,46,183,21,193,49,204,31,198,138,108,15,44,140,30,4,51,142,209,221,180,185,174,11,231,202,132,183,189,137,37,135,238,219,193,220,247,203,15,153,44,4,21,57,113,66,50,174,114,155,233,48,155,242,171,55,254,6,32,25,249,235,183,60,94,39,78,65,5,63,88,227,208,157,207,64,115,229,154,51,30,91,230,63,204,114,45,156,76,96,83,252,96,153,207,226,112,1,207,211,116,230,91,166,89,110,115,83,212,92,63,132,185,193,169,153,20,85,52,236,186,11,176,194,60,233,129,111,196,48,195,26,243,81,233,146,23,230,136,201,44,188,37,108,51,153,184,75,14,174,99,66,2,179,188,194,10,56,53,190,152,140,11,184,24,104,68,97,212,141,147,208,224,8,40,200,231,207,222,190,121,249,186,93,48,42,91,186,70,13,172,7,215,247,220,155,22,215,92,117,169,45,122,234,4,99,159,252,226,37,222,200,243,189,244,190,11,132,107,80,208,3,216,113,63,175,128,231,207,247,133,206,107,83,111,60,38,65,249,65,26,132,110,128,204,95,185,145,36,59,172,188,119,11,63,6,94,146,146,0,142,23,243,86,206,233,226,156,102,181,24,75,21,181,142,142,181,240,130,113,184,168,81,135,164,179,212,162,48,78,247,109,211,252,254,189,248,205,219,198,186,55,175,94,189,148,246,197,243,244,11,25,93,192,111,146,90,230,34,105,213,235,102,37,63,112,26,38,105,224,204,72,197,108,173,190,164,82,43,102,125,1,42,111,47,9,224,221,89,56,151,177,39,28,54,12,194,136,4,182,208,172,69,110,83,122,84,7,73,232,19,24,127,13,34,25,167,65,249,182,240,185,117,190,153,146,59,192,39,109,157,237,153,204,255,211,120,78,218,203,118,6,13,119,211,54,216,144,17,68,230,247,152,38,141,80,218,6,105,148,80,36,129,221,129,212,119,208,197,30,147,64,217,199,185,195,8,94,212,198,120,22,209,183,196,150,126,59,10,199,247,72,115,225,137,196,224,108,226,62,164,236,181,244,62,34,252,70,212,131,254,86,193,25,68,73,169,51,74,2,231,182,136,12,64,97,107,164,234,43,240,121,156,38,127,157,195,145,154,191,224,11,249,192,143,144,78,69,199,161,159,212,38,97,220,115,0,60,241,9,93,158,125,132,103,61,220,100,119,76,117,15,148,189,149,187,58,56,115,185,186,108,43,106,182,228,40,176,65,6,53,13,83,199,23,243,29,89,250,244,62,9,174,211,233,65,179,44,55,31,92,94,1,156,221,115,47,188,129,109,181,150,29,22,50,138,137,115,211,22,170,206,82,163,214,255,119,133,76,239,244,184,131,45,77,238,42,59,173,120,155,241,171,58,96,169,100,43,127,150,196,196,15,157,49,236,12,157,27,147,198,150,116,236,212,75,125,194,188,198,119,70,196,71,55,156,57,94,240,137,56,224,67,194,11,51,134,188,60,76,245,90,226,137,229,93,242,49,75,172,36,137,229,53,242,17,19,4,229,37,15,236,91,66,203,120,61,248,164,12,199,215,48,252,52,252,60,176,216,254,212,65,176,196,116,101,208,67,126,20,93,220,40,13,204,10,178,65,140,131,23,99,26,206,221,41,234,190,149,157,25,229,7,82,139,98,66,205,126,204,98,60,170,202,121,154,210,227,14,46,82,139,139,168,210,211,16,140,82,69,41,96,211,93,100,240,187,109,201,110,101,125,109,34,65,126,124,117,236,68,130,75,85,136,101,236,142,143,0,115,98,105,206,47,245,78,127,111,165,188,104,178,179,238,34,103,204,22,125,121,86,221,85,119,69,50,84,221,33,68,255,233,16,105,210,248,116,144,154,148,21,152,241,211,97,98,58,251,116,156,186,152,21,160,163,167,3,165,25,249,211,113,106,82,86,96,186,79,135,201,10,2,79,7,154,147,179,113,119,99,73,235,241,205,23,211,24,248,2,239,117,107,127,37,14,88,17,59,236,188,95,149,169,7,30,78,20,225,13,116,232,123,71,135,142,17,6,51,144,68,230,145,93,2,30,182,14,169,209,138,89,46,25,211,152,76,236,18,149,160,208,75,71,252,1,143,153,138,121,88,119,142,14,235,32,178,48,162,145,115,142,189,91,195,27,227,84,154,176,195,58,188,161,99,233,56,27,4,212,116,1,240,52,34,227,46,123,182,32,255,13,163,22,53,211,178,140,113,155,101,58,145,199,102,118,128,123,226,249,16,172,89,210,108,52,77,193,20,243,7,43,157,122,9,224,73,83,72,65,232,194,204,178,109,219,16,9,211,117,31,164,225,1,59,75,33,157,71,103,50,145,110,86,85,7,160,241,4,192,177,163,56,156,69,16,50,15,157,145,145,134,6,27,72,127,89,1,86,80,12,72,223,192,39,223,177,56,110,159,174,167,198,152,96,132,5,143,16,19,56,62,137,169,136,169,147,82,153,198,56,36,137,17,132,169,65,238,32,81,50,90,191,253,134,201,64,129,207,21,184,20,43,7,74,243,67,100,11,35,186,44,146,96,176,25,137,170,247,89,2,49,143,155,114,27,232,172,109,246,152,25,45,140,48,169,163,118,99,63,205,202,158,176,221,158,89,50,208,5,236,146,160,50,143,160,47,4,133,77,70,40,247,145,160,97,80,1,132,195,58,147,121,100,174,174,232,115,127,219,229,120,227,162,165,84,76,195,11,162,121,202,76,192,151,149,120,127,64,130,91,126,16,171,68,87,152,121,129,169,95,155,43,88,58,191,254,93,88,156,187,71,176,208,42,236,223,4,6,210,245,232,17,52,88,0,127,252,36,147,69,162,175,220,119,190,217,43,213,39,113,144,183,1,1,156,116,248,226,226,246,218,90,29,91,53,145,150,157,253,186,243,228,106,246,45,220,180,137,253,217,73,167,181,56,156,131,91,211,196,28,36,194,138,105,81,107,232,205,224,87,189,217,104,52,138,144,214,162,121,50,181,30,238,90,105,82,189,111,101,218,128,93,152,43,205,237,130,92,193,173,180,20,90,5,10,251,250,237,47,158,79,212,229,169,249,68,29,185,204,222,203,178,50,166,253,143,95,84,27,139,153,185,173,173,116,139,48,83,86,67,183,44,239,224,14,39,166,6,64,167,139,224,44,14,35,56,52,239,173,18,207,218,46,210,123,159,148,202,236,154,83,5,9,7,134,215,220,131,213,17,197,144,100,208,189,33,166,134,251,162,97,190,107,180,154,127,14,90,242,100,108,44,100,88,35,11,161,105,59,117,143,133,11,87,180,60,105,105,103,1,140,82,24,171,38,184,189,169,212,217,254,190,37,241,180,145,202,130,75,83,17,6,192,118,246,1,93,210,46,176,148,244,21,99,25,114,151,254,69,216,114,162,118,114,3,150,72,175,92,226,79,133,182,34,108,23,112,60,33,87,73,89,190,153,53,157,91,171,35,89,65,128,2,185,118,230,215,228,47,90,84,94,214,46,107,98,7,36,163,139,182,143,168,42,98,205,210,50,47,131,155,32,92,4,6,173,7,210,184,15,131,53,83,156,180,203,61,89,59,130,247,71,182,214,242,127,254,92,190,57,212,107,136,236,46,23,133,172,252,6,94,171,134,200,9,136,175,41,65,29,86,160,129,108,64,57,7,213,182,181,163,7,146,31,6,70,239,121,176,99,230,64,246,255,120,247,241,128,247,251,196,99,214,220,19,148,172,147,39,40,178,111,39,8,172,81,39,158,100,95,174,220,22,72,178,242,54,231,49,43,74,115,147,23,211,224,185,44,10,243,133,75,200,176,11,208,10,90,21,166,196,199,129,109,66,180,22,199,114,143,38,56,152,217,29,240,51,250,10,159,32,117,33,180,120,169,36,46,60,99,249,218,248,198,47,31,61,133,97,167,62,77,124,24,53,160,85,124,126,135,22,114,178,204,65,169,186,207,72,146,56,215,196,86,10,159,106,131,136,225,99,45,26,158,216,48,191,4,121,182,184,3,56,29,119,106,214,107,99,133,206,196,199,153,91,102,5,254,98,243,132,115,171,179,48,210,134,89,240,76,223,52,77,176,197,44,244,240,221,48,7,59,155,55,77,146,110,51,137,72,162,11,167,160,105,239,198,25,156,209,22,115,176,163,122,147,81,248,89,190,209,48,91,76,164,214,44,217,235,170,151,140,225,164,195,6,33,255,169,139,29,81,154,34,141,110,58,35,199,50,143,138,167,147,133,20,122,248,84,115,19,242,190,139,210,114,97,229,150,214,58,36,145,251,56,148,200,213,176,104,135,255,122,193,147,45,4,79,214,9,166,213,172,245,162,183,80,95,52,90,39,154,22,30,215,139,246,183,16,237,175,19,141,181,194,245,178,227,45,100,199,5,178,181,166,177,8,185,185,225,19,72,35,8,58,26,254,178,249,215,4,180,152,146,63,120,224,14,20,77,206,41,113,111,104,251,50,223,112,73,28,152,229,150,40,8,242,66,148,78,169,16,162,55,115,133,36,47,120,84,150,254,81,64,38,14,229,25,217,146,154,89,32,189,9,70,158,39,130,219,62,123,47,10,150,57,217,141,85,217,107,96,61,34,94,212,49,217,23,46,74,69,50,107,181,122,201,177,151,184,49,73,121,129,12,153,236,181,215,156,242,145,146,59,178,149,235,78,187,110,244,11,12,162,24,186,128,200,119,92,98,213,255,243,219,113,165,126,93,53,241,70,99,85,82,172,254,98,89,163,181,122,129,106,55,35,165,240,104,114,185,228,53,214,117,55,239,186,129,52,254,210,1,186,142,239,143,28,247,230,130,64,232,183,111,155,212,42,38,243,87,85,61,98,80,134,86,40,98,41,252,77,101,97,186,208,120,246,214,207,91,229,179,182,151,75,209,26,151,137,122,166,103,204,216,31,178,184,207,126,52,144,124,103,26,24,50,210,42,95,46,104,172,208,66,95,203,52,219,106,36,109,111,17,161,175,200,84,95,75,169,56,209,2,22,95,44,146,190,161,162,232,95,228,167,234,94,179,28,165,0,86,42,127,255,46,47,228,130,50,26,111,188,30,53,180,130,218,54,114,223,109,18,155,125,22,192,190,90,0,159,218,252,73,129,222,101,213,178,43,165,67,184,182,183,151,235,54,236,222,173,197,130,84,113,239,150,165,71,108,41,178,190,175,164,28,104,201,138,234,47,134,75,15,32,187,148,46,66,250,37,226,124,22,36,130,131,154,145,50,56,241,216,72,217,55,23,180,138,92,28,74,99,227,96,250,90,116,34,88,69,217,60,172,3,233,112,26,215,105,169,153,187,148,172,83,161,122,171,171,53,157,170,150,6,98,89,26,27,18,185,90,89,214,167,222,101,189,9,251,136,11,69,138,133,211,62,10,204,182,97,21,58,146,229,158,94,157,167,56,196,177,177,85,233,55,95,222,223,77,67,242,54,80,134,103,231,11,138,128,209,5,3,11,194,56,233,230,252,91,202,195,4,148,135,90,133,43,73,232,83,59,27,246,164,74,81,91,6,254,123,176,136,157,136,170,83,118,164,168,156,35,51,255,177,128,152,133,197,182,56,15,126,26,176,110,38,222,32,163,1,14,112,42,1,49,27,82,53,240,246,165,221,15,83,109,166,21,113,178,139,20,77,46,65,50,62,5,166,220,213,2,40,91,35,197,153,60,174,16,222,134,50,43,150,168,85,54,205,119,242,42,135,3,178,204,122,119,123,204,119,249,40,47,224,52,188,144,176,140,97,151,112,208,40,188,43,177,185,197,212,97,208,165,139,18,83,209,111,249,216,242,48,60,195,166,207,134,185,133,63,31,214,113,89,202,186,87,14,47,177,254,192,145,56,249,119,49,176,237,231,62,3,172,53,49,153,141,212,143,5,12,221,72,20,156,169,24,169,144,149,91,9,87,77,191,123,96,29,202,231,207,126,122,243,186,209,206,250,156,143,205,206,186,235,219,2,200,113,107,24,226,157,49,224,151,8,219,66,208,153,53,4,254,206,8,176,119,191,45,2,157,89,67,48,218,136,160,206,220,193,226,69,43,230,76,239,76,64,149,57,206,196,139,103,165,53,40,121,227,126,75,152,156,187,24,168,43,128,158,254,76,49,50,183,167,16,193,141,213,93,206,110,100,225,227,202,94,84,3,102,109,87,234,39,0,219,163,200,92,50,102,30,172,166,1,127,157,59,187,212,108,52,148,158,44,63,104,112,53,122,128,85,52,33,143,208,97,131,225,33,92,200,129,18,245,67,12,79,90,113,81,229,162,12,177,68,182,8,30,241,225,5,222,26,65,44,127,211,94,57,205,76,92,42,150,124,120,135,153,45,150,165,39,69,107,131,131,22,195,100,193,195,19,8,166,43,176,76,93,129,165,68,59,187,66,99,149,162,124,247,187,0,141,82,113,42,196,194,195,44,121,241,97,217,230,79,0,17,117,30,14,37,155,88,171,16,21,78,205,66,58,49,243,196,187,158,199,4,101,242,110,33,255,46,3,94,184,14,111,208,87,100,108,162,80,241,1,198,170,162,49,62,228,162,191,244,7,3,227,125,207,232,24,72,54,54,41,27,167,103,21,251,255,129,225,89,160,202,97,225,131,81,167,223,215,195,206,154,69,76,183,100,108,76,224,22,187,223,87,55,164,67,187,160,36,14,103,180,36,204,64,34,73,130,60,82,185,71,144,141,73,237,177,171,46,2,205,22,201,10,231,41,237,193,75,230,8,181,88,240,63,75,254,11,213,162,242,140,87,56,0,0 };
+const uint8_t JS_CONTROLS_GZIP[3827] PROGMEM = { 31,139,8,0,188,95,224,97,2,255,197,27,107,115,218,72,242,187,127,133,172,108,5,113,96,30,121,109,22,44,167,8,38,9,183,196,246,217,120,179,117,217,156,75,136,193,168,44,36,173,36,140,189,14,255,253,122,122,30,154,17,2,179,120,111,239,75,140,122,122,186,123,186,123,102,250,49,113,195,32,73,141,203,254,85,255,164,63,236,119,6,87,31,47,251,246,139,70,163,237,138,129,243,222,224,180,115,12,176,166,128,157,29,119,134,189,171,211,15,31,46,122,67,187,169,226,246,126,29,246,78,142,25,141,166,2,31,246,135,189,129,173,0,206,128,98,142,30,130,50,38,253,171,46,133,188,208,145,186,12,235,69,134,245,254,114,56,60,61,177,95,234,120,28,218,108,188,204,48,7,157,247,32,196,43,29,145,1,155,141,87,25,222,197,151,254,176,251,169,119,110,191,214,81,37,188,217,120,173,96,15,250,199,0,123,147,195,101,208,102,227,77,134,121,114,249,249,61,192,126,212,49,57,180,217,248,81,81,23,232,17,12,114,118,57,180,223,234,216,202,72,179,241,54,155,241,241,188,115,246,201,254,137,3,58,199,199,12,114,117,118,218,63,161,168,124,160,59,232,117,206,57,114,179,241,147,194,177,243,222,110,230,12,194,96,138,65,46,122,131,94,23,168,229,108,34,192,77,197,42,167,103,195,62,213,127,206,44,2,220,84,204,242,185,15,128,156,85,16,214,84,108,242,185,243,171,221,204,217,3,97,77,213,20,195,222,153,221,204,91,2,129,77,197,14,31,59,151,31,123,118,51,103,7,14,109,42,102,232,116,187,212,55,114,38,224,208,230,91,85,49,103,157,243,206,240,20,204,248,83,94,55,114,68,25,146,59,225,248,244,203,137,220,7,131,222,135,161,244,247,243,254,199,79,67,233,213,221,222,201,16,156,68,40,164,123,53,188,60,255,215,229,105,255,162,39,73,117,175,122,159,123,231,157,65,182,175,186,87,103,61,152,117,222,255,5,166,190,144,192,47,189,97,231,226,236,83,103,160,144,191,186,184,60,249,48,56,253,162,241,232,118,206,207,79,135,114,23,116,175,58,131,254,191,59,231,96,154,55,18,116,220,57,255,89,122,116,247,234,228,244,164,103,191,120,253,186,125,235,196,198,117,236,68,211,99,39,117,236,128,44,140,78,28,59,247,86,25,71,166,78,210,113,93,226,219,19,199,79,8,130,18,223,27,147,184,27,6,169,23,204,195,121,194,135,38,243,192,77,189,48,48,220,208,15,227,174,239,36,137,133,63,251,227,242,3,255,97,159,204,103,35,18,75,120,59,89,120,169,59,85,240,156,132,168,58,107,197,36,157,199,129,9,255,252,62,15,189,132,152,109,142,194,85,40,16,200,140,196,142,63,150,195,153,62,5,70,68,82,18,199,222,45,137,37,82,166,95,129,180,32,169,147,68,83,199,79,37,146,212,183,192,73,230,193,196,15,23,10,29,166,126,49,238,58,113,28,102,243,133,41,196,176,227,123,127,56,177,23,72,4,106,9,49,56,118,226,27,179,61,38,19,103,238,167,2,104,182,151,203,61,170,249,5,25,37,161,123,211,86,126,131,25,2,226,166,100,156,183,66,76,126,159,147,36,61,141,61,18,164,14,5,157,145,120,230,37,9,252,178,202,15,203,61,137,153,56,183,228,163,112,0,24,242,67,215,241,47,210,48,118,174,73,45,33,105,63,37,51,203,36,73,52,247,208,79,18,179,250,207,139,211,147,90,146,194,42,174,189,201,189,37,221,167,92,110,43,132,99,224,31,198,10,109,15,44,140,30,4,28,199,232,110,26,175,235,66,94,25,241,182,55,177,228,212,125,59,152,251,126,249,33,163,133,66,69,78,156,144,12,171,220,102,58,204,88,126,245,198,223,64,72,6,254,250,45,47,175,19,167,160,130,31,172,113,232,206,103,160,185,114,205,25,143,45,243,31,102,185,22,78,38,176,41,126,176,204,103,113,184,128,239,105,58,243,45,211,44,183,185,41,106,174,31,2,111,112,106,70,69,37,13,187,238,2,172,48,79,122,224,27,49,112,88,99,62,74,93,226,2,143,152,204,194,91,194,54,147,137,187,228,224,58,38,36,48,203,43,168,32,167,134,23,147,113,1,22,19,26,165,48,234,198,73,104,112,9,168,144,207,159,189,125,243,242,117,187,96,86,182,116,13,26,88,15,174,239,185,55,45,174,185,234,82,91,244,212,9,198,62,249,197,75,188,145,231,123,233,125,23,0,215,160,160,7,176,227,126,94,1,207,159,239,11,157,215,166,222,120,76,130,242,131,52,8,221,0,153,191,114,35,73,116,88,121,239,22,126,12,188,36,37,1,28,47,230,173,228,233,34,79,179,90,44,75,21,181,142,142,181,240,130,113,184,168,81,135,164,92,106,81,24,167,251,182,105,126,255,94,60,242,182,177,110,228,213,171,151,210,190,120,158,126,33,163,11,248,77,82,203,92,36,173,122,221,172,228,39,78,195,36,13,156,25,169,152,173,213,65,74,181,98,214,23,160,242,246,146,128,188,59,19,231,52,246,132,195,134,65,24,145,192,22,154,181,200,109,74,143,234,32,9,125,2,243,175,129,36,195,52,40,222,22,62,183,206,55,83,114,7,242,73,91,103,123,38,243,255,52,158,147,246,178,157,137,134,187,105,27,217,16,17,72,230,247,152,70,141,80,216,6,106,20,80,68,129,221,129,212,119,208,197,30,163,64,209,199,185,195,8,6,106,99,60,139,232,40,177,165,223,142,194,241,61,194,92,248,34,49,56,155,184,15,41,122,45,189,143,8,191,17,245,160,191,85,112,6,81,80,234,140,146,192,185,45,2,131,160,176,53,82,117,8,124,30,217,228,175,115,56,82,243,23,124,33,30,248,17,194,41,233,56,244,147,218,36,140,123,14,8,79,124,66,151,103,31,225,89,15,55,217,29,83,221,3,69,111,229,174,14,142,92,174,46,219,138,154,45,57,11,108,144,137,154,134,169,227,11,126,71,150,206,222,39,193,117,58,61,104,150,229,230,131,203,43,128,179,123,238,133,55,176,173,214,162,195,66,70,49,113,110,218,66,213,89,106,212,250,255,174,144,233,157,30,119,176,165,201,93,101,167,21,111,51,127,85,7,44,149,108,229,207,146,152,248,161,51,134,157,161,99,99,210,216,146,142,157,122,169,79,152,215,248,206,136,248,232,134,51,199,11,62,17,7,124,72,120,97,134,144,167,135,169,94,75,124,177,188,75,126,102,137,149,4,177,188,70,126,98,130,160,12,242,192,190,37,180,140,215,131,79,202,112,124,13,195,79,195,207,3,139,237,79,93,8,150,152,174,76,122,200,207,162,139,27,165,129,89,65,52,136,113,240,98,76,195,185,59,69,221,183,178,51,163,252,64,106,81,76,168,217,143,89,140,71,85,57,79,83,122,220,193,69,106,113,18,85,122,26,130,81,170,72,5,108,186,11,13,126,183,45,217,173,172,175,77,36,200,143,175,142,157,72,112,169,10,178,12,221,241,81,192,28,89,154,243,75,189,211,223,91,41,47,154,236,172,187,200,25,179,69,95,158,85,119,213,93,17,13,85,119,40,162,255,116,17,105,210,248,116,33,53,42,43,98,198,79,23,19,211,217,167,203,169,147,89,17,116,244,116,65,105,70,254,116,57,53,42,43,98,186,79,23,147,21,4,158,46,104,142,206,198,221,141,37,173,199,55,95,76,99,224,11,188,215,173,253,149,56,96,133,236,176,243,126,149,166,30,120,56,81,132,55,208,161,239,29,29,58,70,24,204,128,18,153,71,118,9,112,216,58,164,70,43,102,185,100,76,99,50,177,75,148,130,2,47,29,241,15,60,102,42,230,97,221,57,58,172,3,201,194,136,70,242,28,123,183,134,55,70,86,26,177,195,58,140,208,185,116,158,13,4,106,58,1,248,26,145,113,151,125,91,144,255,134,81,139,154,105,89,198,184,205,50,157,200,99,156,29,192,158,120,62,4,107,150,52,27,77,83,48,197,252,193,74,167,94,2,242,164,41,164,32,116,97,102,217,182,109,136,132,233,186,15,210,240,128,157,165,144,206,163,51,153,8,55,171,170,3,208,120,2,196,177,163,56,156,69,16,50,15,157,145,145,134,6,155,72,127,89,1,86,80,12,72,223,192,39,223,177,56,110,159,174,167,198,144,96,134,5,159,16,19,56,62,137,41,137,169,147,82,154,198,56,36,137,17,132,169,65,238,32,81,50,90,191,253,134,201,64,129,207,21,184,20,43,7,74,243,67,100,11,51,186,44,146,96,98,51,16,85,239,179,4,98,30,55,229,54,208,81,219,236,51,51,90,24,97,82,71,237,198,126,154,149,61,97,187,61,179,100,160,11,216,37,1,101,30,65,7,4,132,49,35,20,251,72,192,48,168,0,192,97,157,209,60,50,87,87,244,185,191,237,114,188,113,209,82,42,166,225,5,209,60,101,38,224,203,74,188,63,32,193,45,63,136,85,162,43,204,188,192,212,175,205,21,89,58,191,254,93,178,56,119,143,200,66,171,176,127,147,48,144,174,71,143,72,131,5,240,199,79,50,89,36,250,202,125,231,155,189,82,125,18,7,121,27,36,128,147,14,7,46,110,175,173,213,185,85,19,97,217,217,175,59,79,174,102,223,194,77,155,216,159,157,116,90,139,195,57,184,53,77,204,129,34,172,152,22,181,134,222,12,126,213,155,141,70,163,72,210,90,52,79,166,214,195,93,43,77,170,247,173,76,27,176,11,115,165,185,93,36,87,228,86,90,10,173,2,133,125,253,246,23,243,19,117,121,106,62,81,71,46,179,113,89,86,198,180,255,241,139,106,99,49,51,183,181,149,110,17,102,202,106,232,150,229,29,220,225,4,107,16,232,116,17,156,197,97,4,135,230,189,85,226,89,219,69,122,239,147,82,153,93,115,42,33,225,192,48,204,61,88,157,81,44,146,12,186,55,196,212,112,95,52,204,119,141,86,243,207,137,150,60,89,54,22,50,172,161,133,162,105,59,117,143,133,11,87,180,60,105,105,103,1,204,82,16,171,38,184,189,169,212,217,254,190,37,241,180,145,210,130,75,83,33,6,130,237,236,3,58,165,93,196,82,210,87,140,101,200,93,250,23,201,150,35,181,147,27,176,68,122,229,18,127,170,104,43,196,118,17,142,39,228,171,249,246,83,36,211,41,237,34,86,150,243,102,141,239,214,42,26,43,74,80,150,215,206,252,154,252,69,226,231,105,237,178,0,118,72,51,184,104,61,137,202,38,214,77,45,243,50,184,9,194,69,96,208,154,36,141,61,49,96,52,197,105,191,220,147,245,43,24,63,178,181,103,7,207,159,203,145,67,189,142,201,226,9,81,76,203,31,34,107,213,16,57,1,241,53,37,168,211,10,52,144,77,40,231,68,181,109,237,248,131,4,140,9,163,247,93,216,81,119,32,123,144,188,3,122,192,123,142,226,51,107,48,10,72,214,77,20,16,217,59,20,0,214,44,20,95,178,55,88,110,11,73,178,18,59,199,49,43,74,131,149,23,244,224,187,44,154,3,133,75,200,100,23,66,43,210,170,98,74,249,184,96,155,36,90,43,199,114,143,38,89,152,93,30,240,123,226,10,191,32,125,34,180,128,170,36,79,60,107,250,218,248,198,47,64,61,141,98,55,15,77,190,24,52,160,157,4,126,143,23,98,178,236,69,169,252,207,72,146,56,215,196,86,138,175,106,147,138,201,199,218,68,60,185,98,126,9,244,108,113,15,113,56,238,212,172,223,199,138,173,137,143,156,91,102,5,254,98,3,135,99,171,92,24,104,3,23,188,87,54,177,9,182,224,66,47,128,13,60,216,253,176,137,73,186,13,19,145,200,23,178,160,169,247,70,14,206,104,11,30,236,186,216,100,20,126,159,108,52,204,22,140,212,186,41,27,174,122,201,24,78,58,108,82,242,159,58,217,17,133,41,212,232,166,51,114,40,243,168,152,157,44,230,208,195,167,154,99,200,123,63,74,219,135,149,124,90,235,36,137,220,199,69,137,92,77,22,237,240,95,79,120,178,5,225,201,58,194,180,162,182,158,244,22,234,139,70,235,72,211,226,231,122,210,254,22,164,253,117,164,177,94,185,158,118,188,5,237,184,128,182,214,184,22,97,63,55,124,2,169,12,65,71,195,95,54,127,209,64,11,58,249,131,7,238,64,209,104,157,18,247,134,182,80,243,77,159,196,1,46,183,68,145,32,79,68,233,214,10,34,122,67,89,80,242,130,71,105,233,15,19,50,114,72,207,200,150,212,204,130,249,77,98,228,113,34,184,237,179,113,81,52,205,209,110,172,210,94,35,214,35,228,69,45,149,189,178,81,170,162,89,187,215,75,142,189,196,141,73,202,139,116,136,100,175,189,230,148,135,82,238,200,86,174,59,237,186,209,47,48,136,98,232,2,34,223,113,137,85,255,207,111,199,149,250,117,213,196,27,141,85,106,177,2,141,165,149,214,234,5,170,221,140,20,194,163,201,229,146,215,121,215,221,188,235,38,210,248,75,23,208,117,124,127,228,184,55,23,4,66,191,125,219,164,86,49,153,191,170,234,17,147,50,105,133,34,150,194,223,84,20,166,11,13,103,111,61,223,42,231,218,94,46,69,123,94,22,11,50,61,99,213,224,33,139,251,236,71,3,201,119,166,129,33,35,173,52,230,130,198,10,45,54,182,76,179,173,70,210,246,22,17,250,10,77,117,88,82,69,70,11,88,124,49,73,58,66,73,209,191,136,79,213,189,102,57,74,17,174,84,254,254,93,94,200,5,165,60,222,252,61,106,104,69,189,109,232,190,219,68,54,123,154,192,94,78,128,79,109,126,214,160,119,122,121,134,183,210,165,92,219,95,204,117,60,118,239,24,99,81,172,184,127,204,210,35,182,20,217,99,80,82,14,180,100,69,245,23,195,165,7,144,93,74,23,33,125,13,57,159,5,137,192,160,102,164,8,78,60,54,82,246,238,131,86,178,139,67,105,108,94,76,95,139,110,8,171,106,155,135,117,0,29,78,227,58,45,119,115,151,146,181,50,84,111,117,181,174,84,213,210,64,44,141,99,83,36,87,175,203,122,229,187,172,55,97,15,201,144,164,88,56,237,229,0,183,13,171,208,37,89,238,233,29,2,42,135,56,54,182,42,63,231,91,12,187,105,72,222,6,202,244,236,124,65,18,48,187,96,98,65,24,39,221,156,191,231,60,76,64,121,168,85,184,146,132,62,181,179,97,79,170,20,181,101,224,191,7,139,216,137,168,58,101,87,140,210,57,50,243,15,22,4,23,22,219,34,31,44,114,172,227,196,155,116,52,192,1,76,37,32,102,83,170,6,222,190,180,3,99,170,13,189,34,76,118,145,162,201,165,144,12,79,17,83,238,106,33,40,91,35,149,51,121,92,33,188,21,102,86,44,81,47,109,154,239,228,85,14,7,100,153,245,15,247,152,239,242,89,94,192,97,120,33,97,25,195,46,225,164,81,120,87,98,188,5,235,48,232,210,69,9,86,244,61,33,91,30,134,103,216,120,218,192,91,248,243,97,29,151,165,172,123,229,240,18,235,15,28,41,39,127,155,3,219,126,238,51,129,181,70,42,179,145,250,96,193,208,141,68,133,51,21,35,21,162,114,43,225,170,233,219,11,214,37,125,254,236,167,55,175,27,237,172,215,250,24,119,214,225,223,86,128,28,182,38,67,188,179,12,248,26,98,91,17,116,100,77,2,127,103,9,240,253,192,182,18,232,200,154,4,163,141,18,212,153,59,88,188,104,197,156,233,157,9,82,101,142,51,241,226,89,105,141,148,252,241,192,150,98,114,236,98,65,93,33,232,233,207,84,70,230,246,84,68,112,99,117,151,179,27,89,248,184,178,23,213,128,89,219,149,250,9,192,246,40,34,151,140,153,7,171,105,192,95,231,206,46,53,27,13,165,47,204,15,26,92,141,30,96,21,49,228,17,58,108,48,60,132,11,49,144,162,126,136,225,73,43,46,170,92,148,33,150,200,22,193,35,62,188,192,91,35,136,229,111,218,43,167,153,137,75,197,146,15,239,114,179,197,178,244,164,104,109,112,208,98,152,44,112,120,2,193,116,5,150,169,43,98,41,209,206,174,162,177,74,81,190,3,95,32,141,82,113,42,148,133,135,89,242,226,195,178,205,159,16,68,212,121,184,40,25,99,173,66,84,200,154,133,116,130,243,196,187,158,199,4,105,242,142,37,127,27,2,3,174,195,31,9,84,100,108,162,64,241,3,230,170,164,49,62,228,164,191,244,7,3,227,125,207,232,24,8,54,54,41,27,217,179,138,253,255,192,240,44,80,229,98,225,135,81,167,111,252,97,103,205,34,166,91,50,54,38,112,139,221,239,171,27,210,161,157,88,18,135,51,90,18,102,66,34,72,10,121,164,98,143,32,27,147,218,99,87,93,4,154,45,162,21,206,83,250,14,64,34,71,168,197,130,255,221,242,95,254,182,162,176,219,56,0,0 };