id
stringlengths
42
42
src_hexsha
stringlengths
40
40
example
stringlengths
80
1.37M
b1e8912da81d3b15b67fbec0cdf89ba24b8327df-2
b1e8912da81d3b15b67fbec0cdf89ba24b8327df
PHxmaW1fcHJlZml4fD4KaW1wb3J0IHRvcmNoCmltcG9ydCB0b3JjaC5ubiBhcyBubgppbXBvcnQgdG9yY2gub3B0aW0gYXMgb3B0aW0KaW1wb3J0IHRvcmNoLm5uLmZ1bmN0aW9uYWwgYXMgRgpmcm9tIHRxZG0gaW1wb3J0IHRxZG0KaW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCBzY2lweS5zdGF0cwo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CmltcG9ydCBwYXRobGliCmltcG9ydCBjb3B5CmltcG9ydCB0aW1lCgo8fGZpbV9lbmR8Pg==
b1e8912da81d3b15b67fbec0cdf89ba24b8327df-3
b1e8912da81d3b15b67fbec0cdf89ba24b8327df
PHxmaW1fcHJlZml4fD4KaW1wb3J0IHRvcmNoCmltcG9ydCB0b3JjaC5ubiBhcyBubgppbXBvcnQgdG9yY2gub3B0aW0gYXMgb3B0aW0KaW1wb3J0IHRvcmNoLm5uLmZ1bmN0aW9uYWwgYXMgRgpmcm9tIHRxZG0gaW1wb3J0IHRxZG0KaW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCBzY2lweS5zdGF0cwppbXBvcnQgcGF0aGxpYgppbXBvcnQgY29weQppbXBvcnQgdGltZQoKZnJvbSBlY25ldCBpbXBvcnQgdm9jYWIKZnJvbSBlY25ldC5tb2RlbCBpbXBvcnQgTFNUTVByZWRpY3Rvcgpmcm9tIGVjbmV0LmRhdGEgaW1wb3J0IERhdGFzZXQKZnJvbSBlY25ldC51dGlscyBpbXBvcnQgU2F2ZXIsIEVhcmx5U3RvcHBpbmcsIExvZ2dlcgoKCgpjbGFzcyBFQ05ldChvYmplY3QpOgogICAgZGVmIF9faW5pdF9fKHNlbGYsCiAgICAgICAgICAgIG91dHB1d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3Njb3JlID0gbG9nX2luZm9bJ2Jlc3Rfe30nLmZvcm1hdChtb25pdG9yaW5nX3Njb3JlKV0KICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgIHN0YXJ0X2Vwb2NoID0gMQogICAgICAgICAgICAgICAgYmVzdF9zY29yZSA9IE5vbmUKCiAgICAgICAgICAgIGJlc3RfbW9kZWxfc3RhdGVfZGljdCA9IE5vbmUKICAgICAgICAgICAgc3RvcHBlciA9IEVhcmx5U3RvcHBpbmcocGF0aWVuY2U9cGF0aWVuY2UsIGV2YWxfZnJlcT1ldmFsX2ZyZXEsIGJlc3Rfc2NvcmU9YmVzdF9zY29yZSkKICAgICAgICAgICAgbW9kZWwudHJhaW4oKQogICAgICAgICAgICB0cnk6CiAgICAgICAgICAgICAgICBmb3IgZXBvY2ggaW4gcmFuZ2Uoc3RhcnRfZXBvY2gsIGVwb2NocyArIDEpOgogICAgICAgICAgICAgICAgICAgIHRpbWVfc3RhcnQgPSB0aW1lLnRpbWUoKQogICAgICAgICAgICAgICAgICAgIHRvdF9sb3NzID0gMAogICAgICAgICAgICAgICAgICAgIGZvciBzdGVwLCBiYXRjaCBpbiB0cWRtKGVudW1lcmF0ZSh0cmFpbl9sb2FkZXIsIDEpLAogICAgICAgICAgICAgICAgICAgICAgICBsZWF2ZT1GYWxzZSwgZGVzYz1mJ00te21pZHh9IEUte2Vwb2NofScsIHRvdGFsPWxlbih0cmFpbl9sb2FkZXIpKToKICAgICAgICAgICAgICAgICAgICAgICAgeSA9IGJhdGNoWydsYWJlbCddLnRvKHNlbGYuZGV2aWNlKQogICAgICAgICAgICAgICAgICAgICAgICBYID0gYmF0Y2hbJ3NlcV9lbmMnXS50byhzZWxmLmRldmljZSkKICAgICAgICAgICAgICAgICAgICAgICAgaWYgc2VsZi51c2VfbG9jX2ZlYXQ6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2NfZmVhdCA9IGJhdGNoWydsb2NfZmVhdCddLnRvKHNlbGYuZGV2aWNlKQogICAgICAgICAgICAgICAgICAgICAgICBlbHNlOgogICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9jX2ZlYXQgPSBOb25lCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIHNlbGYudXNlX2dsb2JfZmVhdDoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdsb2JfZmVhdCA9IGJhdGNoWydnbG9iX2ZlYXQnXS50byhzZWxmLmRldmljZSkKICAgICAgICAgICAgICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdsb2JfZmVhdCA9IE5vbmUKCiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGltaXplci56ZXJvX2dyYWQoKQogICAgICAgICAgICAgICAgICAgICAgICBvdXRwdXQgPSBtb2RlbChYLCBnbG9iX2ZlYXQ9Z2xvYl9mZWF0LCBsb2NfZmVhdD1sb2NfZmVhdCkKICAgICAgICAgICAgICAgICAgICAgICAgb3V0cHV0ID0gb3V0cHV0LnZpZXcoLTEpCiAgICAgICAgICAgICAgICAgICAgICAgIGxvc3MgPSBzZWxmLmNyaXRlcmlvbihvdXRwdXQsIHkpCgogICAgICAgICAgICAgICAgICAgICAgICBsb3NzLmJhY2t3YXJkKCkKICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW1pemVyLnN0ZXAoKQogICAgICAgICAgICAgICAgICAgICAgICB0b3RfbG9zcyArPSBsb3NzLml0ZW0oKQoKICAgICAgICAgICAgICAgICAgICBpZiBlcG9jaCAlIGV2YWxfZnJlcSA9PSAwOgogICAgICAgICAgICAgICAgICAgICAgICB2YWxfcmVzdWx0cyA9IHNlbGYudGVzdCh0ZXN0X21vZGVsPW1vZGVsLCB0ZXN0X2xvYWRlcj12YWxpZF9sb2FkZXIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXN0X2RmPXZhbGlkX2RmLCBtb2RlPSd2YWwnKQogICAgICAgICAgICAgICAgICAgICAgICBtb2RlbC50cmFpbigpCiAgICAgICAgICAgICAgICAgICAgICAgIGlzX2Jlc3QgPSBzdG9wcGVyLnVwZGF0ZSh2YWxfcmVzdWx0c1snbWV0cmljJ11bbW9uaXRvcmluZ19zY29yZV0pCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIGlzX2Jlc3Q6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBiZXN0X21vZGVsX3N0YXRlX2RpY3QgPSBjb3B5LmRlZXBjb3B5KG1vZGVsLnN0YXRlX2RpY3QoKSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIHNhdmVfY2hlY2twb2ludDoKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLnNhdmVfY2hlY2twb2ludChja3BfbmFtZT0nbW9kZWxfe30ucHQnLmZvcm1hdChtaWR4KSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWxfZGljdD1tb2RlbC5zdGF0ZV9kaWN0KCksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wdF9kaWN0PW9wdGltaXplci5zdGF0ZV9kaWN0KCksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvZ19pbmZvPXsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdlcG9jaCc6IGVwb2NoLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2Jlc3Rfe30nLmZvcm1hdChtb25pdG9yaW5nX3Njb3JlKTogc3RvcHBlci5iZXN0X3Njb3JlLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3ZhbF9sb3NzJzp2YWxfcmVzdWx0c1snbG9zcyddLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3ZhbF9yZXN1bHRzJzp2YWxfcmVzdWx0c1snbWV0cmljJ10KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSkKCiAgICAgICAgICAgICAgICAgICAgaWYgZXBvY2ggJSBsb2dfZnJlcSA9PSAwOgogICAgICAgICAgICAgICAgICAgICAgICB0cmFpbl9yZXN1bHRzID0gc2VsZi50ZXN0KHRlc3RfbW9kZWw9bW9kZWwsIHRlc3RfbG9hZGVyPXRyYWluX2xvYWRlciwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXN0X2RmPXRyYWluX2RmLCBtb2RlPSd2YWwnKQogICAgICAgICAgICAgICAgICAgICAgICBpZiAobG9nX2ZyZXEgPD0gZXZhbF9mcmVxKSBvciAobG9nX2ZyZXEgJSBldmFsX2ZyZXEgIT0gMCk6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWxfcmVzdWx0cyA9IHNlbGYudGVzdCh0ZXN0X21vZGVsPW1vZGVsLCB0ZXN0X2xvYWRlcj12YWxpZF9sb2FkZXIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVzdF9kZj12YWxpZF9kZiwgbW9kZT0ndmFsJykKICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWwudHJhaW4oKQogICAgICAgICAgICAgICAgICAgICAgICBzZWxmLmxvZ2dlci5pbmZvKAogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ01vZGVsOiB7fS97fScuZm9ybWF0KG1pZHgsIGxlbihzZWxmLm1vZGVscykpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICArICdcdEVwb2NoOiB7fS97fScuZm9ybWF0KGVwb2NoLCBlcG9jaHMpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICArICdcdFRyYWluIGxvc3M6IHs6LjRmfScuZm9ybWF0KHRvdF9sb3NzIC8gc3RlcCkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICsgJ1x0VmFsIGxvc3M6IHs6LjRmfScuZm9ybWF0KHZhbF9yZXN1bHRzWydsb3NzJ10pICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgKyAnXHQnICsgJ1x0Jy5qb2luKFsnVmFsIHt9OiB7Oi40Zn0nLmZvcm1hdChrLCB2KSBcCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoaywgdikgaW4gdmFsX3Jlc3VsdHNbJ21ldHJpYyddLml0ZW1zKCldKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgKyAnXHRCZXN0IHtufToge2I6LjRmfVx0Jy5mb3JtYXQobj1tb25pdG9yaW5nX3Njb3JlLCBiPXN0b3BwZXIuYmVzdF9zY29yZSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICsgJ1x0ezouMWZ9IHMvZXBvY2gnLmZvcm1hdCh0aW1lLnRpbWUoKSAtIHRpbWVfc3RhcnQpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICApCiAgICAgICAgICAgICAgICAgICAgICAgIHRpbWVfc3RhcnQgPSB0aW1lLnRpbWUoKQoKICAgICAgICAgICAgICAgICAgICBpZiBzdG9wcGVyLmVhcmx5X3N0b3A6CiAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYubG9nZ2VyLmluZm8oJ0VlYXJseSBzdG9wIGF0IGVwb2NoIHt9Jy5mb3JtYXQoZXBvY2gpKQogICAgICAgICAgICAgICAgICAgICAgICBicmVhawogICAgICAgICAgICBleGNlcHQgS2V5Ym9hcmRJbnRlcnJ1cHQ6CiAgICAgICAgICAgICAgICBzZWxmLmxvZ2dlci5pbmZvKCdFeGl0aW5nIG1vZGVsIHRyYWluaW5nIGZyb20ga2V5Ym9hcmQgaW50ZXJydXB0JykKICAgICAgICAgICAgaWYgYmVzdF9tb2RlbF9zdGF0ZV9kaWN0IGlzIG5vdCBOb25lOgogICAgICAgICAgICAgICAgbW9kZWwubG9hZF9zdGF0ZV9kaWN0KGJlc3RfbW9kZWxfc3RhdGVfZGljdCkKCiAgICAgICAgICAgIHRlc3RfcmVzdWx0cyA9IHNlbGYudGVzdCh0ZXN0X21vZGVsPW1vZGVsLCBtb2RlbF9sYWJlbD0nbW9kZWxfe30nLmZvcm1hdChtaWR4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LCBlc2JfeXByb2IgPSBOb25lLCBOb25lCiAgICAgICAgZXNiX2xvc3MgPSAwCiAgICAgICAgZm9yIG1vZGVsIGluIHRlc3RfbW9kZWxzOgogICAgICAgICAgICBtb2RlbC5ldmFsKCkKICAgICAgICAgICAgeV90cnVlLCB5X3ByZWQsIHlfcHJvYiA9IE5vbmUsIE5vbmUsIE5vbmUKICAgICAgICAgICAgdG90X2xvc3MgPSAwCiAgICAgICAgICAgIHdpdGggdG9yY2gubm9fZ3JhZCgpOgogICAgICAgICAgICAgICAgZm9yIHN0ZXAsIGJhdGNoIGluIHRxZG0oZW51bWVyYXRlKHRlc3RfbG9hZGVyLCAxKSwKICAgICAgICAgICAgICAgICAgICAgICAgZGVzYz1tb2RlLCBsZWF2ZT1GYWxzZSwgdG90YWw9bGVuKHRlc3RfbG9hZGVyKSk6CiAgICAgICAgICAgICAgICAgICAgWCA9IGJhdGNoWydzZXFfZW5jJ10udG8oc2VsZi5kZXZpY2UpCiAgICAgICAgICAgICAgICAgICAgaWYgc2VsZi51c2VfbG9jX2ZlYXQ6CiAgICAgICAgICAgICAgICAgICAgICAgIGxvY19mZWF0ID0gYmF0Y2hbJ2xvY19mZWF0J10udG8oc2VsZi5kZXZpY2UpCiAgICAgICAgICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgICAgICAgICAgbG9jX2ZlYXQgPSBOb25lCiAgICAgICAgICAgICAgICAgICAgaWYgc2VsZi51c2VfZ2xvYl9mZWF0OgogICAgICAgICAgICAgICAgICAgICAgICBnbG9iX2ZlYXQgPSBiYXRjaFsnZ2xvYl9mZWF0J10udG8oc2VsZi5kZXZpY2UpCiAgICAgICAgICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgICAgICAgICAgZ2xvYl9mZWF0ID0gTm9uZQoKICAgICAgICAgICAgICAgICAgICBvdXRwdXQgPSBtb2RlbChYLCBnbG9iX2ZlYXQ9Z2xvYl9mZWF0LCBsb2NfZmVhdD1sb2NfZmVhdCkKICAgICAgICAgICAgICAgICAgICBvdXRwdXQgPSBvdXRwdXQudmlldygtMSkKICAgICAgICAgICAgICAgICAgICBpZiBjYWxjX2xvc3M6CiAgICAgICAgICAgICAgICAgICAgICAgIHkgPSBiYXRjaFsnbGFiZWwnXS50byhzZWxmLmRldmljZSkKICAgICAgICAgICAgICAgICAgICAgICAgbG9zcyA9IHNlbGYuY3JpdGVyaW9uKG91dHB1dCwgeSkKICAgICAgICAgICAgICAgICAgICAgICAgdG90X2xvc3MgKz0gbG9zcy5pdGVtKCkKICAgICAgICAgICAgICAgICAgICB5X3ByZWQgPSBvdXRwdXQgaWYgeV9wcmVkIGlzIE5vbmUgZWxzZSB0b3JjaC5jYXQoKHlfcHJlZCwgb3V0cHV0KSwgZGltPTApCgogICAgICAgICAgICB5X3ByZWQgPSB5X3ByZWQuZGV0YWNoKCkuY3B1KCkgaWYgc2VsZi5kZXZpY2UgPT0gdG9yY2guZGV2aWNlKCdjdWRhJykgZWxzZSB5X3ByZWQuZGV0YWNoKCkKICAgICAgICAgICAgZXNiX3lwcmVkID0geV9wcmVkLnZpZXcoLTEsIDEpIGlmIGVzYl95cHJlZCBpcyBOb25lIGVsc2UgdG9yY2guY2F0KChlc2JfeXByZWQsIHlfcHJlZC52aWV3KC0xLCAxKSksIGRpbT0xKQogICAgICAgICAgICBlc2JfbG9zcyArPSB0b3RfbG9zcyAvIHN0ZXAKCiAgICAgICAgZXNiX3lwcmVkID0gZXNiX3lwcmVkLm1lYW4oYXhpcz0xKS5udW1weSgpCiAgICAgICAgZXNiX2xvc3MgLz0gbGVuKHRlc3RfbW9kZWxzKQoKICAgICAgICBpZiBjYWxjX21ldHJpYzoKICAgICAgICAgICAgeV9maXRuZXNzID0gdGVzdF9kZlsnc2NvcmUnXS52YWx1ZXMKICAgICAgICAgICAgZXZhbF9yZXN1bHRzID0gc2NpcHkuc3RhdHMuc3BlYXJtYW5yKHlfZml0bmVzcywgZXNiX3lwcmVkKVswXQoKICAgICAgICB0ZXN0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dGFzZXQuZ2V0X2RhdGFsb2FkZXIoCiAgICAgICAgICAgICAgICAgICAgJ3RyYWluX3ZhbGlkJywgc2VsZi5iYXRjaF9zaXplLAogICAgICAgICAgICAgICAgICAgIHJldHVybl9kZj1UcnVlLCByZXNhbXBsZV90cmFpbl92YWxpZD1UcnVlKQogICAgICAgICAgICBpZiByZXN1bWVfcGF0aCBpcyBub3QgTm9uZToKICAgICAgICAgICAgICAgIG1vZGVsLCBvcHRpbWl6ZXIsIGxvZ19pbmZvID0gc2VsZi5sb2FkX3NpbmdsZV9wcmV0cmFpbmVkX21vZGVsKAogICAgICAgICAgICAgICAgICAgICd7fS9tb2RlbF97fS5wdCcuZm9ybWF0KHJlc3VtZV9wYXRoLCBtaWR4KSwKICAgICAgICAgICAgICAgICAgICBtb2RlbD1tb2RlbCwgb3B0aW1pemVyPW9wdGltaXplciwgaXNfcmVzdW1lPVRydWUpCiAgICAgICAgICAgICAgICBzdGFydF9lcG9jaCA9IGxvZ19pbmZvWydlcG9jaCddICsgMQogICAgICAgICAgICAgICAgYmVzdF9zY29yZSA9IGxvZ19pbmZvWydiZXN0X3t9Jy5mb3JtYXQobW9uaXRvcmluZ19zY29yZSldCiAgICAgICAgICAgIGVsc2U6CiAgICAgICAgICAgICAgICBzdGFydF9lcG9jaCA9IDEKICAgICAgICAgICAgICAgIGJlc3Rfc2NvcmUgPSBOb25lCgogICAgICAgICAgICBiZXN0X21vZGVsX3N0YXRlX2RpY3QgPSBOb25lCiAgICAgICAgICAgIHN0b3BwZXIgPSBFYXJseVN0b3BwaW5nKHBhdGllbmNlPXBhdGllbmNlLCBldmFsX2ZyZXE9ZXZhbF9mcmVxLCBiZXN0X3Njb3JlPWJlc3Rfc2NvcmUpCiAgICAgICAgICAgIG1vZGVsLnRyYWluKCkKICAgICAgICAgICAgdHJ5OgogICAgICAgICAgICAgICAgZm9yIGVwb2NoIGluIHJhbmdlKHN0YXJ0X2Vwb2NoLCBlcG9jaHMgKyAxKToKICAgICAgICAgICAgICAgICAgICB0aW1lX3N0YXJ0ID0gdGltZS50aW1lKCkKICAgICAgICAgICAgICAgICAgICB0b3RfbG9zcyA9IDAKICAgICAgICAgICAgICAgICAgICBmb3Igc3RlcCwgYmF0Y2ggaW4gdHFkbShlbnVtZXJhdGUodHJhaW5fbG9hZGVyLCAxKSwKICAgICAgICAgICAgICAgICAgICAgICAgbGVhdmU9RmFsc2UsIGRlc2M9ZidNLXttaWR4fSBFLXtlcG9jaH0nLCB0b3RhbD1sZW4odHJhaW5fbG9hZGVyKSk6CiAgICAgICAgICAgICAgICAgICAgICAgIHkgPSBiYXRjaFsnbGFiZWwnXS50byhzZWxmLmRldmljZSkKICAgICAgICAgICAgICAgICAgICAgICAgWCA9IGJhdGNoWydzZXFfZW5jJ10udG8oc2VsZi5kZXZpY2UpCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIHNlbGYudXNlX2xvY19mZWF0OgogICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9jX2ZlYXQgPSBiYXRjaFsnbG9jX2ZlYXQnXS50byhzZWxmLmRldmljZSkKICAgICAgICAgICAgICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvY19mZWF0ID0gTm9uZQogICAgICAgICAgICAgICAgICAgICAgICBpZiBzZWxmLnVzZV9nbG9iX2ZlYXQ6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBnbG9iX2ZlYXQgPSBiYXRjaFsnZ2xvYl9mZWF0J10udG8oc2VsZi5kZXZpY2UpCiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2U6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBnbG9iX2ZlYXQgPSBOb25lCgogICAgICAgICAgICAgICAgICAgICAgICBvcHRpbWl6ZXIuemVyb19ncmFkKCkKICAgICAgICAgICAgICAgICAgICAgICAgb3V0cHV0ID0gbW9kZWwoWCwgZ2xvYl9mZWF0PWdsb2JfZmVhdCwgbG9jX2ZlYXQ9bG9jX2ZlYXQpCiAgICAgICAgICAgICAgICAgICAgICAgIG91dHB1dCA9IG91dHB1dC52aWV3KC0xKQogICAgICAgICAgICAgICAgICAgICAgICBsb3NzID0gc2VsZi5jcml0ZXJpb24ob3V0cHV0LCB5KQoKICAgICAgICAgICAgICAgICAgICAgICAgbG9zcy5iYWNrd2FyZCgpCiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGltaXplci5zdGVwKCkKICAgICAgICAgICAgICAgICAgICAgICAgdG90X2xvc3MgKz0gbG9zcy5pdGVtKCkKCiAgICAgICAgICAgICAgICAgICAgaWYgZXBvY2ggJSBldmFsX2ZyZXEgPT0gMDoKICAgICAgICAgICAgICAgICAgICAgICAgdmFsX3Jlc3VsdHMgPSBzZWxmLnRlc3QodGVzdF9tb2RlbD1tb2RlbCwgdGVzdF9sb2FkZXI9dmFsaWRfbG9hZGVyLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVzdF9kZj12YWxpZF9kZiwgbW9kZT0ndmFsJykKICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWwudHJhaW4oKQogICAgICAgICAgICAgICAgICAgICAgICBpc19iZXN0ID0gc3RvcHBlci51cGRhdGUodmFsX3Jlc3VsdHNbJ21ldHJpYyddW21vbml0b3Jpbmdfc2NvcmVdKQogICAgICAgICAgICAgICAgICAgICAgICBpZiBpc19iZXN0OgogICAgICAgICAgICAgICAgICAgICAgICAgICAgYmVzdF9tb2RlbF9zdGF0ZV9kaWN0ID0gY29weS5kZWVwY29weShtb2RlbC5zdGF0ZV9kaWN0KCkpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiBzYXZlX2NoZWNrcG9pbnQ6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5zYXZlX2NoZWNrcG9pbnQoY2twX25hbWU9J21vZGVsX3t9LnB0Jy5mb3JtYXQobWlkeCksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsX2RpY3Q9bW9kZWwuc3RhdGVfZGljdCgpLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvcHRfZGljdD1vcHRpbWl6ZXIuc3RhdGVfZGljdCgpLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2dfaW5mbz17CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnZXBvY2gnOiBlcG9jaCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdiZXN0X3t9Jy5mb3JtYXQobW9uaXRvcmluZ19zY29yZSk6IHN0b3BwZXIuYmVzdF9zY29yZSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICd2YWxfbG9zcyc6dmFsX3Jlc3VsdHNbJ2xvc3MnXSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICd2YWxfcmVzdWx0cyc6dmFsX3Jlc3VsdHNbJ21ldHJpYyddCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pCgogICAgICAgICAgICAgICAgICAgIGlmIGVwb2NoICUgbG9nX2ZyZXEgPT0gMDoKICAgICAgICAgICAgICAgICAgICAgICAgdHJhaW5fcmVzdWx0cyA9IHNlbGYudGVzdCh0ZXN0X21vZGVsPW1vZGVsLCB0ZXN0X2xvYWRlcj10cmFpbl9sb2FkZXIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVzdF9kZj10cmFpbl9kZiwgbW9kZT0ndmFsJykKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGxvZ19mcmVxIDw9IGV2YWxfZnJlcSkgb3IgKGxvZ19mcmVxICUgZXZhbF9mcmVxICE9IDApOgogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsX3Jlc3VsdHMgPSBzZWxmLnRlc3QodGVzdF9tb2RlbD1tb2RlbCwgdGVzdF9sb2FkZXI9dmFsaWRfbG9hZGVyLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRlc3RfZGY9dmFsaWRfZGYsIG1vZGU9J3ZhbCcpCiAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsLnRyYWluKCkKICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5sb2dnZXIuaW5mbygKICAgICAgICAgICAgICAgICAgICAgICAgICAgICdNb2RlbDoge30ve30nLmZvcm1hdChtaWR4LCBsZW4oc2VsZi5tb2RlbHMpKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgKyAnXHRFcG9jaDoge30ve30nLmZvcm1hdChlcG9jaCwgZXBvY2hzKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgKyAnXHRUcmFpbiBsb3NzOiB7Oi40Zn0nLmZvcm1hdCh0b3RfbG9zcyAvIHN0ZXApCiAgICAgICAgICAgICAgICAgICAgICAgICAgICArICdcdFZhbCBsb3NzOiB7Oi40Zn0nLmZvcm1hdCh2YWxfcmVzdWx0c1snbG9zcyddKSAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICsgJ1x0JyArICdcdCcuam9pbihbJ1ZhbCB7fTogezouNGZ9Jy5mb3JtYXQoaywgdikgXAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGssIHYpIGluIHZhbF9yZXN1bHRzWydtZXRyaWMnXS5pdGVtcygpXSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICsgJ1x0QmVzdCB7bn06IHtiOi40Zn1cdCcuZm9ybWF0KG49bW9uaXRvcmluZ19zY29yZSwgYj1zdG9wcGVyLmJlc3Rfc2NvcmUpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICArICdcdHs6LjFmfSBzL2Vwb2NoJy5mb3JtYXQodGltZS50aW1lKCkgLSB0aW1lX3N0YXJ0KQogICAgICAgICAgICAgICAgICAgICAgICAgICAgKQogICAgICAgICAgICAgICAgICAgICAgICB0aW1lX3N0YXJ0ID0gdGltZS50aW1lKCkKCiAgICAgICAgICAgICAgICAgICAgaWYgc3RvcHBlci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LnRvKHNlbGYuZGV2aWNlKQogICAgICAgICAgICAgICAgICAgIGlmIHNlbGYudXNlX2xvY19mZWF0OgogICAgICAgICAgICAgICAgICAgICAgICBsb2NfZmVhdCA9IGJhdGNoWydsb2NfZmVhdCddLnRvKHNlbGYuZGV2aWNlKQogICAgICAgICAgICAgICAgICAgIGVsc2U6CiAgICAgICAgICAgICAgICAgICAgICAgIGxvY19mZWF0ID0gTm9uZQogICAgICAgICAgICAgICAgICAgIGlmIHNlbGYudXNlX2dsb2JfZmVhdDoKICAgICAgICAgICAgICAgICAgICAgICAgZ2xvYl9mZWF0ID0gYmF0Y2hbJ2dsb2JfZmVhdCddLnRvKHNlbGYuZGV2aWNlKQogICAgICAgICAgICAgICAgICAgIGVsc2U6CiAgICAgICAgICAgICAgICAgICAgICAgIGdsb2JfZmVhdCA9IE5vbmUKCiAgICAgICAgICAgICAgICAgICAgb3V0cHV0ID0gbW9kZWwoWCwgZ2xvYl9mZWF0PWdsb2JfZmVhdCwgbG9jX2ZlYXQ9bG9jX2ZlYXQpCiAgICAgICAgICAgICAgICAgICAgb3V0cHV0ID0gb3V0cHV0LnZpZXcoLTEpCiAgICAgICAgICAgICAgICAgICAgaWYgY2FsY19sb3NzOgogICAgICAgICAgICAgICAgICAgICAgICB5ID0gYmF0Y2hbJ2xhYmVsJ10udG8oc2VsZi5kZXZpY2UpCjx8ZmltX2hvbGV8PgogICAgICAgICAgICAgICAgICAgIHlfcHJlZCA9IG91dHB1dCBpZiB5X3ByZWQgaXMgTm9uZSBlbHNlIHRvcmNoLmNhdCgoeV9wcmVkLCBvdXRwdXQpLCBkaW09MCkKCiAgICAgICAgICAgIHlfcHJlZCA9IHlfcHJlZC5kZXRhY2goKS5jcHUoKSBpZiBzZWxmLmRldmljZSA9PSB0b3JjaC5kZXZpY2UoJ2N1ZGEnKSBlbHNlIHlfcHJlZC5kZXRhY2goKQogICAgICAgICAgICBlc2JfeXByZWQgPSB5X3ByZWQudmlldygtMSwgMSkgaWYgZ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ICAgICAgIHNlbGYuX3BhcnNlX3BlYWtfdXNlcnMoZXZlbnRbImNoYW5uZWwiXSkKICAgICAgICByZXR1cm4gVHJ1ZQoKICAgIEB1dGlscy5ob29rKCJyZWNlaXZlZC5qb2luIikKICAgIGRlZiBvbl9qb2luKHNlbGYsIGV2ZW50KToKICAgICAgICBjaGFubmVsID0gZXZlbnRbImNoYW5uZWwiXQogICAgICAgIHVzZXIgPSBldmVudFsidXNlciJdCiAgICAgICAgbmV3X3BlYWsgPSBzZWxmLl9wYXJzZV9wZWFrX3VzZXJzKGNoYW5uZWwpCiAgICAgICAgaWYgKAogICAgICAgICAgICBjaGFubmVsLmdldF9zZXR0aW5nKCJhbm5vdW5jZS1uZXctcGVhay11c2VycyIsIEZhbHNlKQogICAgICAgICAgICBhbmQgbmV3X3BlYWtbMF0gIT0gRmFsc2UKICAgICAgICApOgogICAgICAgICAgICBjaGFubmVsLnNlbmRfbWVzc2FnZSgKICAgICAgICAgICAgICAgICJBIG5ldyB1c2VyIHBlYWsgaGFzIGJlZW4gcmVhY2hlZCEgTmV3IHBlYWs6ICVzIgogICAgICAgICAgICAgICAgJSB1dGlscy5pcmMuYm9sZChzdHIobmV3X3BlYWtbMV0pKQogICAgICAgICAgICApCgogICAgQHV0aWxzLmhvb2soInJlY2VpdmVkLmNvbW1hbmQuY2hhbnN0YXRzIiwgY2hhbm5lbF9vbmx5PVRydWUpCiAgICBAdXRpbHMua3dhcmcoImhlbHAiLCAiU2VlIHRoZSBjdXJyZW50IGNoYW5uZWwgc3RhdHMiKQogICAgZGVmIGNoYW5uZWxfc3RhdHMoc2VsZiwgZXZlbnQpOgogICAgICAgIGNoYW5uZWwgPSBldmVudFsidGFyZ2V0Il0KICAgICAgICBzZXJ2ZXIgPSBldmVudFsic2VydmVyIl0KICAgICAgICBzZXJ2ZXJfaWQgPSBzZXJ2ZXIuaWQKCiAgICAgICAgc2VsZi5fcGFyc2VfcGVha191c2VycyhjaGFubmVsKQoKICAgICAgICBjdXJyZW50X3VzZXJzID0gY2hhbm5lbC51c2VyX2NvdW50KCkKICAgICAgICBwZWFrX3VzZXJzID0gY2hhbm5lbC5nZXRfc2V0dGluZygicGVhay11c2VycyIsIDApCgogICAgICAgIHdvcmRjb3VudCA9IHNlbGYuX2dldF93b3JkY291bnQoY2hhbm5lbCkKICAgICAgICBwcmludCh3b3JkY291bnQpCiAgICAgICAgd29yZGllc3RfaWQsIHdvcmRpZXN0X2NvdW50ID0gd29yZGNvdW50WzBdCiAgICAgICAgcnVubmVydXBfaWQsIHJ1bm5lcnVwX2NvdW50ID0gd29yZGNvdW50WzFdCgogICAgICAgIHdvcmRpZXN0X2NvdW50ID0gdXRpbHMucGFyc2UuY29tbWFfZm9ybWF0KHdvcmRpZXN0X2NvdW50KQogICAgICAgIHJ1bm5lcnVwX2NvdW50ID0gdXRpbHMucGFyc2UuY29tbWFfZm9ybWF0KHJ1bm5lcnVwX2NvdW50KQoKPHxmaW1faG9sZXw+CiAgICAgICAgICAgICJTdGF0cyBmb3IgJXM6IFVzZXJzIChDdXJyZW50OiAlcywgUGVhazogJXMpIOKAlCBXb3JkaWVzdCBVc2VyICglcyB3aXRoICVzIHdvcmRzKSDigJQgU2Vjb25kIFBsYWNlICglcyB3aXRoICVzIHdvcmRzKSIKICAgICAgICAgICAgJSAoCiAgICAgICAgICAgICAgICB1dGlscy5pcmMuYm9sZChjaGFubmVsLm5hbWUpLAogICAgICAgICAgICAgICAgdXRpbHMuaXJjLmJvbGQoY3VycmVudF91c2VycyksCiAgICAgICAgICAgICAgICB1dGlscy5pcmMuYm9sZChwZWFrX3VzZXJzKSwKICAgICAgICAgICAgICAgIHV0aWxzLmlyYy5ib2xkKHV0aWxzLnByZXZlbnRfaGlnaGxpZ2h0KHdvcmRpZXN0X25pY2spKSwKICAgICAgICAgICAgICAgIHV0aWxzLmlyYy5ib2xkKHdvcmRpZXN0X2NvdW50KSwKICAgICAgICAgICAgICAgIHV0aWxzLmlyYy5ib2xkKHV0aWxzLnBy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lbmR8Pg==
af502d19af034c425a8b276836f4a2faecf74a7d-2
af502d19af034c425a8b276836f4a2faecf74a7d
PHxmaW1fcHJlZml4fD4KI0VtIE1hdGVtw6F0aWNhLCBvIG7Dum1lcm8gaGFybcO0bmljbyBkZXNpZ25hZG8gcG9yIEggKG4pIAojZGVmaW5lLXNlIGNvbW8gc2VuZG8gYSBzb21hIGRhIHPDqXJpZSBoYXJtw7NuaWNhOgojSChuKT0xKzEvMisxLzMrMS80Ky4uKzEvbgojRmHDp2EgdW0gcHJvZ3JhbWEgcXVlIGxlaWEgdW0gdmFsb3IgbiBpbnRlaXJvIGUgcG9zaXRpdm8KI2UgYXByZXNlbnRlIG8gdmFsb3IgZGUgSChuKS4KdmFsb3Jlcz1bXQp2YWxvcmVzLmFwcGVuZCgxKQpuPWludChpbnB1dCgiSW5mb3JtZSB1bSBudW1lcm86ICIpKQppZihuPjApOgogICAgZm9yIGMgaW4gcmFuZ2UoMixuKzEpOgogICAgICAgIHZhbG9yZXMuYXBwZW5kKDEvYykKCiAgICBwcmludCh2YWxvcmVzKQo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CiAgICBwcmludChmIkEgSCh7bn0pID0ge3N1bSh2YWxvcmVzKX0iKQo8fGZpbV9lbmR8Pg==
af502d19af034c425a8b276836f4a2faecf74a7d-3
af502d19af034c425a8b276836f4a2faecf74a7d
PHxmaW1fcHJlZml4fD4KI0VtIE1hdGVtw6F0aWNhLCBvIG7Dum1lcm8gaGFybcO0bmljbyBkZXNpZ25hZG8gcG9yIEggKG4pIAojZGVmaW5lLXNlIGNvbW8gc2VuZG8gYSBzb21hIGRhIHPDqXJpZSBoYXJtw7NuaWNhOgojSChuKT0xKzEvMisxLzMrMS80Ky4uKzEvbgojRmHDp2EgdW0gcHJvZ3JhbWEgcXVlIGxlaWEgdW0gdmFsb3IgbiBpbnRlaXJvIGUgcG9zaXRpdm8KI2UgYXByZXNlbnRlIG8gdmFsb3IgZGUgSChuKS4KdmF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kbGV3YXJlQ29va2llcyhzZWxmLmNvZGUpLm1pZGQoKQogICAgICAgIGV4Y2VwdDoKICAgICAgICAgICAgc2VsZi5sb2cuZXJyb3IoJ215c3Fs5pWw5o2u5bqT6L+e5o6l6ZSZ6K+v77yBJykKICAgICAgICAgICAgcmV0dXJuIEZhbHNlCiAgICAgICAgdHJ5OgogICAgICAgICAgICBpZiBtaWRkOgogICAgICAgICAgICAgICAgdXJsID0gbWlkZFsndXJsJ10KICAgICAgICAgICAgICAgIHVuID0gbWlkZFsnY29uZmlnJ11bMF1bJ3ZhbHVlJ10KICAgICAgICAgICAgICAgIHVfeHBhdGggPSBtaWRkWydjb25maWcnXVswXVsneHBhdGgnXQogICAgICAgICAgICAgICAgcHdkID0gbWlkZFsnY29uZmlnJ11bMV1bJ3ZhbHVlJ10KICAgICAgICAgICAgICAgIHBfeHBhdGggPSBtaWRkWydjb25maWcnXVsxXVsneHBhdGgnXQogICAgICAgICAgICAgICAgbG9naW5feHBhdGggPSBtaWRkWydjb25maWcnXVsyXVsneHBhdGgnXQo8fGZpbV9ob2xlfD4KICAgICAgICBleGNlcHQ6CiAgICAgICAgICAgIHNlbGYubG9nLmVycm9yKCfkuK3pl7Tku7bop6PmnpDplJnor6/vvIEnKQogICAgICAgICAgICByZXR1cm4gRmFsc2UKICAgICAgICBzZWxmLmJyb3dzZXIuZGVsZXRlX2FsbF9jb29raWVzKCkKICAgICAgICBzZWxmLmJyb3dzZXIuZ2V0KHVybCkKICAgICAgICAjIHVzZXJuYW1lID0gc2VsZi53YWl0LnVudGlsKEVDLnByZXNlbmNlX29mX2VsZW1lbnRfbG9jYXRlZCgoQnkuSUQsICdsb2dpbk5hbWUnKSkpCiAgICAgICAgdXNlcm5hbWUgPSBzZWxmLndhaXQudW50aWwoRUMucHJlc2VuY2Vfb2ZfZWxlbWVudF9sb2NhdGVkKChCeS5YUEFUSCwgdV94cGF0aCkpKQogICAgICAgICMgcGFzc3dvcmQgPSBzZWxmLndhaXQudW50aWwoRUMucHJlc2VuY2Vfb2ZfZWxlbWVudF9sb2NhdGVkKChCeS5JRCwgJ2xvZ2luUGFzc3dvcmQnKSkpCiAgICAgICAgcGFzc3dvcmQgPSBzZWxmLndhaXQudW50aWwoRUMucHJlc2VuY2Vfb2ZfZWxlbWVudF9sb2NhdGVkKChCeS5YUEFUSCwgcF94cGF0aCkpKQogICAgICAgICMgc3VibWl0ID0gc2VsZi53YWl0LnVudGlsKEVDLmVsZW1lbnRfdG9fYmVfY2xpY2thYmxlKChCeS5JRCwgJ2xvZ2luQWN0aW9uJykpKQogICAgICAgIHN1Ym1pdCA9IHNlbGYud2FpdC51bnRpbChFQy5lbGVtZW50X3RvX2JlX2NsaWNrYWJsZSgoQnkuWFBBVEgsIGxvZ2luX3hwYXRoKSkpCgogICAgICAgIHVzZXJuYW1lLnNlbmRfa2V5cyh1bikKICAgICAgICBwYXNzd29yZC5zZW5kX2tleXMocHdkKQogICAgICAgIHRpbWUuc2xlZXAoMSkKICAgICAgICBzdWJtaXQuY2xpY2soKQogICAgICAgIHJldHVybiB1bgoKICAgIGRlZiBwYXNzd29yZF9lcnJvcihzZWxmKToKICAgICAgICAiIiIKICAgICAgICDliKTmlq3mmK/lkKblr4bnoIHplJnor68KICAgICAgICA6cmV0dXJuOgogICAgICAgICIiIgogICAgICAgIHRyeToKICAgICAgICAgICAgcmV0dXJuIFdlYkRyaXZlcldhaXQoc2VsZi5icm93c2VyLCA1KS51bnRpbCgKICAgICAgICAgICAgICAgIEVDLnRleHRfdG9fYmVfcHJlc2VudF9pbl9lbGVtZW50KChCeS5JRCwgJ2Vycm9yTXNnJyksICfnlKjmiLflkI3miJblr4bnoIHplJnor68nKSkKICAgICAgICBleGNlcHQgVGltZW91dEV4Y2VwdGlvbjoKICAgICAgICAgICAgcmV0dXJuIEZhbHNlCiAgICAKICAgIGRlZiBsb2dpbl9zdWNjZXNzZnVsbHkoc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg5Yik5pat5piv5ZCm55m75b2V5oiQ5YqfCiAgICAgICAgOnJldHVybjoKICAgICAgICAiIiIKICAgICAgICB0cnk6CiAgICAgICAgICAgIHJldHVybiBib29sKAogICAgICAgICAgICAgICAgV2ViRHJpdmVyV2FpdChzZWxmLmJyb3dzZXIsIDUpLnVudGlsKEVDLnByZXNlbmNlX29mX2VsZW1lbnRfbG9jYXRlZCgoQnkuQ0xBU1NfTkFNRSwgJ2xpdGUtaWNvbmYtcHJvZmlsZScpKSkpCiAgICAgICAgZXhjZXB0IFRpbWVvdXRFeGNlcHRpb246CiAgICAgICAgICAgIHJldHVybiBGYWxzZQogICAgCiAgICBkZWYgZ2V0X2Nvb2tpZXMoc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg6I635Y+WQ29va2llcwogICAgICAgIDpyZXR1cm46CiAgICAgICAgIiIiCiAgICAgICAgcmV0dXJuIHNlbGYuYnJvd3Nlci5nZXRfY29va2llcygpCgogICAgZGVmIGNsb3NlX3dpbmRvd3Moc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg5YWz6ZetCiAgICAgICAgOnJldHVybjoKICAgICAgICAiIiIKICAgICAgICB0cnk6CiAgICAgICAgICAgIHNlbGYubG9nLmluZm8oJ+WFs+mXreeql+WPo+W8guW4uO+8gScpCiAgICAgICAgICAgIHNlbGYuYnJvd3Nlci5xdWl0KCkKICAgICAgICAgICAgZGVsIHNlbGYuYnJvd3NlcgogICAgICAgIGV4Y2VwdCBUeXBlRXJyb3I6CiAgICAgICAgICAgIHNlbGYubG9nLmluZm8oJ+WFs+mXreeql+WPo+W8guW4uO+8gScpCiAgICAgICAgICAgICMgcHJpbnQoJ+WFs+mXreeql+WPo+W8guW4uO+8gScpCgogICAgZGVmIG1haW4oc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg56C06Kej5YWl5Y+jCiAgICAgICAgOnJldHVybjoKICAgICAgICAiIiIKICAgICAgICB1c2VyID0gc2VsZi5vcGVuKCkKICAgICAgICBpZiBzZWxmLnBhc3N3b3JkX2Vycm9yKCk6CiAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICAnc3RhdHVzJzogMiwKICAgICAgICAgICAgICAgICdjb250ZW50JzogJ+eUqOaIt+WQjeaIluWvhueggemUmeivrycKICAgICAgICAgICAgfQogICAgICAgICMg5aaC5p6c5LiN6ZyA6KaB6aqM6K+B56CB55u05o6l55m75b2V5oiQ5YqfCiAgICAgICAgaWYgc2VsZi5sb2dpbl9zdWNjZXNzZnVsbHkoKToKICAgICAgICAgICAgY29va2llcyA9IHNlbGYuZ2V0X2Nvb2tpZXMoKQogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgJ3N0YXR1cyc6IDEsCiAgICAgICAgICAgICAgICAnY29udGVudCc6IGNvb2tpZXMsCiAgICAgICAgICAgICAgICAndXNlcm5hbWUnOiB1c2VyCiAgICAgICAgICAgIH0KICAgICAgICBlbHNlOgogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgJ3N0YXR1cyc6IDMsCiAgICAgICAgICAgICAgICAnY29udGVudCc6ICfnmbvlvZXlpLHotKUnLAogICAgICAgICAgICAgICAgJ3VzZXJuYW1lJzogdXNlcgogICAgICAgICAgICB9CgoKaWYgX19uYW1lX18gPT0gJ19fbWFpbl9fJzoKICAgICMgYnJvd3NlciA9IHdlYmRyaXZlci5DaHJvbWUoKQogICAgYnJvd3NlciA9IHdlYmRyaXZlci5QaGFudG9tSlMoKQoKICAgICMgYnJvd3NlciA9IFdlYkRyaXZlcihleGVjdXRhYmxlX3BhdGg9cidDOlxVc2Vyc1xseWlhbFxEZXNrdG9wXGNvZmZlZVx2ZW52XFNwaWRlclZlbnZccGhhbnRvbWpzLTIuMS4xLXdpbmRvd3NcYmluXHBoYW50b21qcycsCiAgICAjICAgICAgICAgICBwb3J0PTUwMDEpCiAgICByZXN1bHQgPSBXZWlib0Nvb2tpZXMoJ3NpbmEnLCBicm93c2VyKS5tYWluKCkKICAgIHByaW50KHJlc3VsdCkKC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AgICAgcmV0dXJuIEZhbHNlCiAgICAgICAgdHJ5OgogICAgICAgICAgICBpZiBtaWRkOgogICAgICAgICAgICAgICAgdXJsID0gbWlkZFsndXJsJ10KICAgICAgICAgICAgICAgIHVuID0gbWlkZFsnY29uZmlnJ11bMF1bJ3ZhbHVlJ10KICAgICAgICAgICAgICAgIHVfeHBhdGggPSBtaWRkWydjb25maWcnXVswXVsneHBhdGgnXQogICAgICAgICAgICAgICAgcHdkID0gbWlkZFsnY29uZmlnJ11bMV1bJ3ZhbHVlJ10KICAgICAgICAgICAgICAgIHBfeHBhdGggPSBtaWRkWydjb25maWcnXVsxXVsneHBhdGgnXQogICAgICAgICAgICAgICAgbG9naW5feHBhdGggPSBtaWRkWydjb25maWcnXVsyXVsneHBhdGgnXQogICAgICAgICAgICBlbHNlOgogICAgICAgICAgICAgICAgc2VsZi5sb2cuZXJyb3IoJ+S4remXtOS7tuivu+WPlumFjee9ruS/oeaBr+mUmeivr++8gScpCiAgICAgICAgICAgICAgICByZXR1cm4gRmFsc2UKICAgICAgICBleGNlcHQ6CiAgICAgICAgICAgIHNlbGYubG9nLmVycm9yKCfkuK3pl7Tku7bop6PmnpDplJnor6/vvIEnKQogICAgICAgICAgICByZXR1cm4gRmFsc2UKICAgICAgICBzZWxmLmJyb3dzZXIuZGVsZXRlX2FsbF9jb29raWVzKCkKICAgICAgICBzZWxmLmJyb3dzZXIuZ2V0KHVybCkKICAgICAgICAjIHVzZXJuYW1lID0gc2VsZi53YWl0LnVudGlsKEVDLnByZXNlbmNlX29mX2VsZW1lbnRfbG9jYXRlZCgoQnkuSUQsICdsb2dpbk5hbWUnKSkpCiAgICAgICAgdXNlcm5hbWUgPSBzZWxmLndhaXQudW50aWwoRUMucHJlc2VuY2Vfb2ZfZWxlbWVudF9sb2NhdGVkKChCeS5YUEFUSCwgdV94cGF0aCkpKQogICAgICAgICMgcGFzc3dvcmQgPSBzZWxmLndhaXQudW50aWwoRUMucHJlc2VuY2Vfb2ZfZWxlbWVudF9sb2NhdGVkKChCeS5JRCwgJ2xvZ2luUGFzc3dvcmQnKSkpCiAgICAgICAgcGFzc3dvcmQgPSBzZWxmLndhaXQudW50aWwoRUMucHJlc2VuY2Vfb2ZfZWxlbWVudF9sb2NhdGVkKChCeS5YUEFUSCwgcF94cGF0aCkpKQogICAgICAgICMgc3VibWl0ID0gc2VsZi53YWl0LnVudGlsKEVDLmVsZW1lbnRfdG9fYmVfY2xpY2thYmxlKChCeS5JRCwgJ2xvZ2luQWN0aW9uJykpKQogICAgICAgIHN1Ym1pdCA9IHNlbGYud2FpdC51bnRpbChFQy5lbGVtZW50X3RvX2JlX2NsaWNrYWJsZSgoQnkuWFBBVEgsIGxvZ2luX3hwYXRoKSkpCgogICAgICAgIHVzZXJuYW1lLnNlbmRfa2V5cyh1bikKICAgICAgICBwYXNzd29yZC5zZW5kX2tleXMocHdkKQogICAgICAgIHRpbWUuc2xlZXAoMSkKICAgICAgICBzdWJtaXQuY2xpY2soKQogICAgICAgIHJldHVybiB1bgoKICAgIGRlZiBwYXNzd29yZF9lcnJvcihzZWxmKToKICAgICAgICAiIiIKICAgICAgICDliKTmlq3mmK/lkKblr4bnoIHplJnor68KICAgICAgICA6cmV0dXJuOgogICAgICAgICIiIgogICAgICAgIHRyeToKICAgICAgICAgICAgcmV0dXJuIFdlYkRyaXZlcldhaXQoc2VsZi5icm93c2VyLCA1KS51bnRpbCgKICAgICAgICAgICAgICAgIEVDLnRleHRfdG9fYmVfcHJlc2VudF9pbl9lbGVtZW50KChCeS5JRCwgJ2Vycm9yTXNnJyksICfnlKjmiLflkI3miJblr4bnoIHplJnor68nKSkKICAgICAgICBleGNlcHQgVGltZW91dEV4Y2VwdGlvbjoKICAgICAgICAgICAgcmV0dXJuIEZhbHNlCiAgICAKICAgIGRlZiBsb2dpbl9zdWNjZXNzZnVsbHkoc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg5Yik5pat5piv5ZCm55m75b2V5oiQ5YqfCiAgICAgICAgOnJldHVybjoKICAgICAgICAiIiIKICAgICAgICB0cnk6CiAgICAgICAgICAgIHJldHVybiBib29sKAogICAgICAgICAgICAgICAgV2ViRHJpdmVyV2FpdChzZWxmLmJyb3dzZXIsIDUpLnVudGlsKEVDLnByZXNlbmNlX29mX2VsZW1lbnRfbG9jYXRlZCgoQnkuQ0xBU1NfTkFNRSwgJ2xpdGUtaWNvbmYtcHJvZmlsZScpKSkpCiAgICAgICAgZXhjZXB0IFRpbWVvdXRFeGNlcHRpb246CiAgICAgICAgICAgIHJldHVybiBGYWxzZQogICAgCiAgICBkZWYgZ2V0X2Nvb2tpZXMoc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg6I635Y+WQ29va2llcwogICAgICAgIDpyZXR1cm46CiAgICAgICAgIiIiCiAgICAgICAgcmV0dXJuIHNlbGYuYnJvd3Nlci5nZXRfY29va2llcygpCgogICAgZGVmIGNsb3NlX3dpbmRvd3Moc2VsZik6Cjx8ZmltX2hvbGV8PgogICAgICAgIHRyeToKICAgICAgICAgICAgc2VsZi5sb2cuaW5mbygn5YWz6Zet56qX5Y+j5byC5bi477yBJykKICAgICAgICAgICAgc2VsZi5icm93c2VyLnF1aXQoKQogICAgICAgICAgICBkZWwgc2VsZi5icm93c2VyCiAgICAgICAgZXhjZXB0IFR5cGVFcnJvcjoKICAgICAgICAgICAgc2VsZi5sb2cuaW5mbygn5YWz6Zet56qX5Y+j5byC5bi477yBJykKICAgICAgICAgICAgIyBwcmludCgn5YWz6Zet56qX5Y+j5byC5bi477yBJykKCiAgICBkZWYgbWFpbihzZWxmKToKICAgICAgICAiIiIKICAgICAgICDnoLTop6PlhaXlj6MKICAgICAgICA6cmV0dXJuOgogICAgICAgICIiIgogICAgICAgIHVzZXIgPSBzZWxmLm9wZW4oKQogICAgICAgIGlmIHNlbGYucGFzc3dvcmRfZXJyb3IoKToKICAgICAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgICAgICdzdGF0dXMnOiAyLAogICAgICAgICAgICAgICAgJ2NvbnRlbnQnOiAn55So5oi35ZCN5oiW5a+G56CB6ZSZ6K+vJwogICAgICAgICAgICB9CiAgICAgICAgIyDlpoLmnpzkuI3pnIDopoHpqozor4HnoIHnm7TmjqXnmbvlvZXmiJDlip8KICAgICAgICBpZiBzZWxmLmxvZ2luX3N1Y2Nlc3NmdWxseSgpOgogICAgICAgICAgICBjb29raWVzID0gc2VsZi5nZXRfY29va2llcygpCiAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICAnc3RhdHVzJzogMSwKICAgICAgICAgICAgICAgICdjb250ZW50JzogY29va2llcywKICAgICAgICAgICAgICAgICd1c2VybmFtZSc6IHVzZXIKICAgICAgICAgICAgfQogICAgICAgIGVsc2U6CiAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICAnc3RhdHVzJzogMywKICAgICAgICAgICAgICAgICdjb250ZW50JzogJ+eZu+W9leWksei0pScsCiAgICAgICAgICAgICAgICAndXNlcm5hbWUnOiB1c2VyCiAgICAgICAgICAgIH0KCgppZiBfX25hbWVfXyA9PSAnX19tYWluX18nOgogICAgIyBicm93c2VyID0gd2ViZHJpdmVyLkNocm9tZSgpCiAgICBicm93c2VyID0gd2ViZHJpdmVyLlBoYW50b21KUygpCgogICAgIyBicm93c2VyID0gV2ViRHJpdmVyKGV4ZWN1dGFibGVfcGF0aD1yJ0M6XFVzZXJzXGx5aWFsXERlc2t0b3BcY29mZmVlXHZlbnZcU3BpZGVyVmVudlxwaGFudG9tanMtMi4xLjEtd2luZG93c1xiaW5ccGhhbnRvbWpzJywKICAgICMgICAgICAgICAgIHBvcnQ9NTAwMSkKICAgIHJlc3VsdCA9IFdlaWJvQ29va2llcygnc2luYScsIGJyb3dzZXIpLm1haW4oKQogICAgcHJpbnQocmVzdWx0KQoKCgoKPHxmaW1fc3VmZml4fD4KICAgICAgICAiIiIKICAgICAgICDlhbPpl60KICAgICAgICA6cmV0dXJuOgogICAgICAgICIiIgo8fGZpbV9lbmR8Pg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F9fKHNlbGYsIGNvZGUsIGJyb3dzZXIpOgogICAgICAgICMgc2VsZi51cmwgPSAnaHR0cHM6Ly9wYXNzcG9ydC53ZWliby5jbi9zaWduaW4vbG9naW4/ZW50cnk9bXdlaWJvJnI9aHR0cHM6Ly9tLndlaWJvLmNuLycKICAgICAgICAjIHNlbGYudXJsID0gJ2h0dHBzOi8vcGFzc3BvcnQud2VpYm8uY24vc2lnbmluL2xvZ2luP2VudHJ5PW13ZWlibyZyPWh0dHBzOi8vbS53ZWliby5jbi8nCiAgICAgICAgc2VsZi5icm93c2VyID0gYnJvd3NlcgogICAgICAgIHNlbGYud2FpdCA9IFdlYkRyaXZlcldhaXQoc2VsZi5icm93c2VyLCAyMCkKICAgICAgICBzZWxmLmNvZGUgPSBjb2RlCiAgICAgICAgc2VsZi5sb2cgPSBQcm94eUxvZ2dlcigpLmxvZ2dlcgoKICAgIGRlZiBfX2RlbF9fKHNlbGYpOgogICAgICAgIHNlbGYuY2xvc2Vfd2luZG93cygpCiAgICAKICAgIGRlZiBvcGVuKHNlbGYpOgogICAgICAgICIiIgogICAgICAgIOaJk+W8gOe9kemhtei+k+WFpeeUqOaIt+WQjeWvhueggeW5tueCueWHuwogICAgICAgIDpyZXR1cm46IE5vbmUKICAgICAgICAiIiIKICAgICAgICB0cnk6CiAgICAgICAgICAgIG1pZGQgPSBNaWRkbGV3YXJlQ29va2llcyhzZWxmLmNvZGUpLm1pZGQoKQogICAgICAgIGV4Y2VwdDoKICAgICAgICAgICAgc2VsZi5sb2cuZXJyb3IoJ215c3Fs5pWw5o2u5bqT6L+e5o6l6ZSZ6K+v77yBJykKICAgICAgICAgICAgcmV0dXJuIEZhbHNlCiAgICAgICAgdHJ5OgogICAgICAgICAgICBpZiBtaWRkOgogICAgICAgICAgICAgICAgdXJsID0gbWlkZFsndXJsJ10KICAgICAgICAgICAgICAgIHVuID0gbWlkZFsnY29uZmlnJ11bMF1bJ3ZhbHVlJ10KICAgICAgICAgICAgICAgIHVfeHBhdGggPSBtaWRkWydjb25maWcnXVswXVsneHBhdGgnXQogICAgICAgICAgICAgICAgcHdkID0gbWlkZFsnY29uZmlnJ11bMV1bJ3ZhbHVlJ10KICAgICAgICAgICAgICAgIHBfeHBhdGggPSBtaWRkWydjb25maWcnXVsxXVsneHBhdGgnXQogICAgICAgICAgICAgICAgbG9naW5feHBhdGggPSBtaWRkWydjb25maWcnXVsyXVsneHBhdGgnXQogICAgICAgICAgICBlbHNlOgogICAgICAgICAgICAgICAgc2VsZi5sb2cuZXJyb3IoJ+S4remXtOS7tuivu+WPlumFjee9ruS/oeaBr+mUmeivr++8gScpCiAgICAgICAgICAgICAgICByZXR1cm4gRmFsc2UKICAgICAgICBleGNlcHQ6CiAgICAgICAgICAgIHNlbGYubG9nLmVycm9yKCfkuK3pl7Tku7bop6PmnpDplJnor6/vvIEnKQogICAgICAgICAgICByZXR1cm4gRmFsc2UKICAgICAgICBzZWxmLmJyb3dzZXIuZGVsZXRlX2FsbF9jb29raWVzKCkKICAgICAgICBzZWxmLmJyb3dzZXIuZ2V0KHVybCkKICAgICAgICAjIHVzZXJuYW1lID0gc2VsZi53YWl0LnVudGlsKEVDLnByZXNlbmNlX29mX2VsZW1lbnRfbG9jYXRlZCgoQnkuSUQsICdsb2dpbk5hbWUnKSkpCiAgICAgICAgdXNlcm5hbWUgPSBzZWxmLndhaXQudW50aWwoRUMucHJlc2VuY2Vfb2ZfZWxlbWVudF9sb2NhdGVkKChCeS5YUEFUSCwgdV94cGF0aCkpKQogICAgICAgICMgcGFzc3dvcmQgPSBzZWxmLndhaXQudW50aWwoRUMucHJlc2VuY2Vfb2ZfZWxlbWVudF9sb2NhdGVkKChCeS5JRCwgJ2xvZ2luUGFzc3dvcmQnKSkpCiAgICAgICAgcGFzc3dvcmQgPSBzZWxmLndhaXQudW50aWwoRUMucHJlc2VuY2Vfb2ZfZWxlbWVudF9sb2NhdGVkKChCeS5YUEFUSCwgcF94cGF0aCkpKQogICAgICAgICMgc3VibWl0ID0gc2VsZi53YWl0LnVudGlsKEVDLmVsZW1lbnRfdG9fYmVfY2xpY2thYmxlKChCeS5JRCwgJ2xvZ2luQWN0aW9uJykpKQogICAgICAgIHN1Ym1pdCA9IHNlbGYud2FpdC51bnRpbChFQy5lbGVtZW50X3RvX2JlX2NsaWNrYWJsZSgoQnkuWFBBVEgsIGxvZ2luX3hwYXRoKSkpCgogICAgICAgIHVzZXJuYW1lLnNlbmRfa2V5cyh1bikKICAgICAgICBwYXNzd29yZC5zZW5kX2tleXMocHdkKQogICAgICAgIHRpbWUuc2xlZXAoMSkKICAgICAgICBzdWJtaXQuY2xpY2soKQogICAgICAgIHJldHVybiB1bgoKICAgIGRlZiBwYXNzd29yZF9lcnJvcihzZWxmKToKICAgICAgICAiIiIKICAgICAgICDliKTmlq3mmK/lkKblr4bnoIHplJnor68KICAgICAgICA6cmV0dXJuOgogICAgICAgICIiIgogICAgICAgIHRyeToKICAgICAgICAgICAgcmV0dXJuIFdlYkRyaXZlcldhaXQoc2VsZi5icm93c2VyLCA1KS51bnRpbCgKICAgICAgICAgICAgICAgIEVDLnRleHRfdG9fYmVfcHJlc2VudF9pbl9lbGVtZW50KChCeS5JRCwgJ2Vycm9yTXNnJyksICfnlKjmiLflkI3miJblr4bnoIHplJnor68nKSkKICAgICAgICBleGNlcHQgVGltZW91dEV4Y2VwdGlvbjoKICAgICAgICAgICAgcmV0dXJuIEZhbHNlCiAgICAKICAgIGRlZiBsb2dpbl9zdWNjZXNzZnVsbHkoc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg5Yik5pat5piv5ZCm55m75b2V5oiQ5YqfCiAgICAgICAgOnJldHVybjoKICAgICAgICAiIiIKICAgICAgICB0cnk6CiAgICAgICAgICAgIHJldHVybiBib29sKAogICAgICAgICAgICAgICAgV2ViRHJpdmVyV2FpdChzZWxmLmJyb3dzZXIsIDUpLnVudGlsKEVDLnByZXNlbmNlX29mX2VsZW1lbnRfbG9jYXRlZCgoQnkuQ0xBU1NfTkFNRSwgJ2xpdGUtaWNvbmYtcHJvZmlsZScpKSkpCiAgICAgICAgZXhjZXB0IFRpbWVvdXRFeGNlcHRpb246CiAgICAgICAgICAgIHJldHVybiBGYWxzZQogICAgCiAgICBkZWYgZ2V0X2Nvb2tpZXMoc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg6I635Y+WQ29va2llcwogICAgICAgIDpyZXR1cm46CiAgICAgICAgIiIiCiAgICAgICAgcmV0dXJuIHNlbGYuYnJvd3Nlci5nZXRfY29va2llcygpCgogICAgZGVmIGNsb3NlX3dpbmRvd3Moc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg5YWz6ZetCiAgICAgICAgOnJldHVybjoKICAgICAgICAiIiIKICAgICAgICB0cnk6CiAgICAgICAgICAgIHNlbGYubG9nLmluZm8oJ+WFs+mXreeql+WPo+W8guW4uO+8gScpCiAgICAgICAgICAgIHNlbGYuYnJvd3Nlci5xdWl0KCkKICAgICAgICAgICAgZGVsIHNlbGYuYnJvd3NlcgogICAgICAgIGV4Y2VwdCBUeXBlRXJyb3I6CiAgICAgICAgICAgIHNlbGYubG9nLmluZm8oJ+WFs+mXreeql+WPo+W8guW4uO+8gScpCiAgICAgICAgICAgICMgcHJpbnQoJ+WFs+mXreeql+WPo+W8guW4uO+8gScpCgogICAgZGVmIG1haW4oc2VsZik6CiAgICAgICAgIiIiCiAgICAgICAg56C06Kej5YWl5Y+jCiAgICAgICAgOnJldHVybjoKICAgICAgICAiIiIKICAgICAgICB1c2VyID0gc2VsZi5vcGVuKCkKICAgICAgICBpZiBzZWxmLnBhc3N3b3JkX2Vycm9yKCk6CiAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICAnc3RhdHVzJzogMiwKICAgICAgICAgICAgICAgICdjb250ZW50JzogJ+eUqOaIt+WQjeaIluWvhueggemUmeivrycKICAgICAgICAgICAgfQogICAgICAgICMg5aaC5p6c5LiN6ZyA6KaB6aqM6K+B56CB55u05o6l55m75b2V5oiQ5YqfCiAgICAgICAgaWYgc2VsZi5sb2dpbl9zdWNjZXNzZnVsbHkoKToKICAgICAgICAgICAgY29va2llcyA9IHNlbGYuZ2V0X2Nvb2tpZXMoKQogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgJ3N0YXR1cyc6IDEsCiAgICAgICAgICAgICAgICAnY29udGVudCc6IGNvb2tpZXMsCiAgICAgICAgICAgICAgICAndXNlcm5hbWUnOiB1c2VyCiAgICAgICAgICAgIH0KPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgogICAgICAgIGVsc2U6CiAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICAnc3RhdHVzJzogMywKICAgICAgICAgICAgICAgICdjb250ZW50JzogJ+eZu+W9leWksei0pScsCjx8ZmltX2VuZHw+
e65af4217866b1337d7105f186cc4324f42f89b3-1
e65af4217866b1337d7105f186cc4324f42f89b3
PHxmaW1fcHJlZml4fD4KaW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCBwYW5kYXMgYXMgcGQgCmZyb20gc2tsZWFybi5saW5lYXJfbW9kZWwgaW1wb3J0IExpbmVhclJlZ3Jlc3Npb24KaW1wb3J0IG9zCgoKZGVmIGdldF9hcHBhcmVudF90cmFuc2Zlcl9jb2VmZmljaWVudChDVixzdGFydD0wLjEsZW5kPTAuMyk6CiAgICBkZiA9IHBkLnJlYWRfY3N2KENWLGhlYWRlcj1Ob25lKQogICAgY3ZfZm9yd2FyZCA9IGRmWzppbnQobGVuKGRmKS8yKV0KICAgIG1pbl9jdXJyZW50ID0gY3ZfZm9yd2FyZFsxXS5taW4oKQo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CiAgICBtaW5fY3VycmVudF9pbmRleCA9IGN2X2ZvcndhcmRbMV0uaWR4bWluKCkKCiAgICBjdl9iZWZvcmVfcGVhayA9IGN2X2ZvcndhcmQuaWxvY1s6bWluX2N1cnJlbnRfaW5kZXhdCgo8fGZpbV9lbmR8Pg==
e65af4217866b1337d7105f186cc4324f42f89b3-2
e65af4217866b1337d7105f186cc4324f42f89b3
PHxmaW1fcHJlZml4fD4KaW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCBwYW5kYXMgYXMgcGQgCmZyb20gc2tsZWFybi5saW5lYXJfbW9kZWwgaW1wb3J0IExpbmVhclJlZ3Jlc3Npb24KaW1wb3J0IG9zCgoKZGVmIGdldF9hcHBhcmVudF90cmFuc2Zlcl9jb2VmZmljaWVudChDVixzdGFydD0wLjEsZW5kPTAuMyk6CiAgICBkZiA9IHBkLnJlYWRfY3N2KENWLGhlYWRlcj1Ob25lKQogICAgY3ZfZm9yd2FyZCA9IGRmWzppbnQobGVuKGRmKS8yKV0KICAgIG1pbl9jdXJyZW50ID0gY3ZfZm9yd2FyZFsxXS5taW4oKQogICAgbWluX2N1cnJlbnRfaW5kZXggPSBjdl9mb3J3YXJkWzFdLmlkeG1pbigpCgogICAgY3ZfYmVmb3JlX3BlYWsgPSBjdl9mb3J3YXJkLmlsb2NbOm1pbl9jdXJyZW50X2luZGV4XQoKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgogICAgY3ZfdGFmZWwgPSBjdl9iZWZvcmVfcGVha1soY3ZfYmVmb3JlX3BlYWtbMV08c3RhcnQqbWluX2N1cnJlbnQpJihjdl9iZWZvcmVfcGVha1sxXT5lbmQqbWluX2N1cnJlbnQpXQoKICAgIGN2X3RhZmVsWzFdID0gbnAubG9nKC1jdl90YWZlbFsxXSkKCjx8ZmltX2VuZHw+
e65af4217866b1337d7105f186cc4324f42f89b3-3
e65af4217866b1337d7105f186cc4324f42f89b3
PHxmaW1fcHJlZml4fD4KaW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCBwYW5kYXMgYXMgcGQgCmZyb20gc2tsZWFybi5saW5lYXJfbW9kZWwgaW1wb3J0IExpbmVhclJlZ3Jlc3Npb24KaW1wb3J0IG9zCgoKZGVmIGdldF9hcHBhcmVudF90cmFuc2Zlcl9j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mZy5zZWN0aW9ucygpOgogICAgICAgIGRpY3RfbGlzdFtzZWN0aW9uXSA9IHt9CiAgICAgICAgZm9yIGkgaW4gY2ZnLm9wdGlvbnMoc2VjdGlvbik6CiAgICAgICAgICAgIGRpY3RfbGlzdFtzZWN0aW9uXVtpXSA9IGNmZy5nZXQoc2VjdGlvbiwgaSkKICAgIHJldHVybiBkaWN0X2xpc3QKCgpkZWYgdG9fanNvbihsaXN0KToKICAgICIiIgogICAganNvbiDluo/liJfljJYKICAgIDpwYXJhbSBsaXN0OiBpbmkg6L2s5o2i5ZCO55qEIOWtl+WFuOaVsOaNrgogICAgOnJldHVybjoKICAgICIiIgogICAgd2l0aCBvcGVuKGRfZmlsZSwgJ3cnLCBlbmNvZGluZz0ndXRmLTgnKSBhcyBmOgogICAgICAgIGpzb24uZHVtcChsaXN0LCBmKQoKCmlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6CiAgICB0b19qc29uKGdldF9zZWN0aW9uKCkpCjx8ZmltX3N1ZmZpeHw+CiAgICAiIiIKICAgIOWwhuaJgOaciXNlY3Rpb24g6L2s5o2i5Li65a2X5YW4CiAgICA6cmV0dXJuOiBkaWN0X2xpc3QsIHNlY3Rpb24g5LiOIG9wdGlvbiB2YWx1ZeeahOW1jOWll+e7k+aehAogICAgIiIiCjx8ZmltX2VuZHw+
59c459bd281e6a418058e1d6f00c6f919a579b66-3
59c459bd281e6a418058e1d6f00c6f919a579b66
PHxmaW1fcHJlZml4fD4KIyBlbmNvZGluZyA9IHV0Zi04Cl9fYXV0aG9yX18gPSAiQW5nIExpIgoKaW1wb3J0IGpzb24KZnJvbSBjb25maWdwYXJzZXIgaW1wb3J0IENvbmZpZ1BhcnNlcgoKIyDlsIZteS5pbmkg6L2s5o2i5oiQanNvbuagvOW8jwoKc19maWxlID0gIm15LmluaSIKZF9maWxlID0gIm15Lmpzb24iCgpjZmcgPSBDb25maWdQYXJzZXIoKQpjZmcucmVhZChzX2ZpbGUpCgoKZGVmIGdldF9zZWN0aW9uKCk6CiAgICAiIiIKICAgIOWwhuaJgOaciXNlY3Rpb24g6L2s5o2i5Li65a2X5YW4CiAgICA6cmV0dXJuOiBkaWN0X2xpc3QsIHNlY3Rpb24g5LiOIG9wdGlvbiB2YWx1ZeeahOW1jOWll+e7k+aehAogICAgIiIiCiAgICBkaWN0X2xpc3QgPSB7fQogICAgZm9yIHNlY3Rpb24gaW4gY2ZnLnNlY3Rpb25zKCk6CiAgICAgICAgZGljdF9saXN0W3NlY3Rpb25dID0ge30KICAgICAgICBmb3IgaSBpbiBjZmcub3B0aW9ucyhzZWN0aW9uKToKICAgICAgICAgICAgZGljdF9saXN0W3NlY3Rpb25dW2ldID0gY2ZnLmdldChzZWN0aW9uLCBpKQogICAgcmV0dXJuIGRpY3RfbGlzdAoKCmRlZiB0b19qc29uKGxpc3QpOgogICAgIiIiCiAgICBqc29uIOW6j+WIl+WMlgogICAgOnBhcmFtIGxpc3Q6IGluaSDovazmjaLlkI7nmoQg5a2X5YW45pWw5o2uCiAgICA6cmV0dXJuOgo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CiAgICAiIiIKICAgIHdpdGggb3BlbihkX2ZpbGUsICd3JywgZW5jb2Rpbmc9J3V0Zi04JykgYXMgZjoKICAgICAgICBqc29uLmR1bXAobGlzdCwgZikKCjx8ZmltX2VuZHw+
59c459bd281e6a418058e1d6f00c6f919a579b66-4
59c459bd281e6a418058e1d6f00c6f919a579b66
PHxmaW1fcHJlZml4fD4KIyBlbmNvZGluZyA9IHV0Zi04Cl9fYXV0aG9yX18gPSAiQW5nIExpIgoKaW1wb3J0IGpzb24KZnJvbSBjb25maWdwYXJzZXIgaW1wb3J0IENvbmZpZ1BhcnNlcgoKIyDlsIZteS5pbmkg6L2s5o2i5oiQanNvbuagvOW8jwoKc19maWxlID0gIm15LmluaSIKZF9maWxlID0gIm15Lmpzb24iCgpjZmcgPSBDb25maWdQYXJzZXIoKQpjZmcucmVhZChzX2ZpbGUpCg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vbnMgPSBbCiAgICAgICAgbWlncmF0aW9ucy5DcmVhdGVNb2RlbCgKICAgICAgICAgICAgbmFtZT0nSW1hZ2UnLAogICAgICAgICAgICBmaWVsZHM9WwogICAgICAgICAgICAgICAgKCdpZCcsIG1vZGVscy5BdXRvRmllbGQocHJpbWFyeV9rZXk9VHJ1ZSwgc2VyaWFsaXplPUZhbHNlKSksCiAgICAgICAgICAgICAgICAoJ2FydGljYWxfaWQnLCBtb2RlbHMuSW50ZWdlckZpZWxkKCkpLAogICAgICAgICAgICAgICAgKCd1cmwnLCBtb2RlbHMuQ2hhckZpZWxkKG1heF9sZW5ndGg9MTAyNCkpLAogICAgICAgICAgICAgICAgKCdpc19kZWxldGUnLCBtb2RlbHMuSW50ZWdlckZpZWxkKGRlZmF1bHQ9MCkpLAogICAgICAgICAgICAgICAgKCdjcmVhdGVfdGltZScsIG1vZGVscy5EYXRlVGltZUZpZWxkKGF1dG9fbm93X2FkZD1UcnVlKSksCiAgICAgICAgICAgICAgICAoJ3VwZGF0ZV90aW1lJywgbW9kZWxzLkRhdGVUaW1lRmllbGQoYXV0b19ub3c9VHJ1ZSkpLAogICAgICAgICAgICBdLAogICAgICAgICksCiAgICAgICAgbWlncmF0aW9ucy5DcmVhdGVNb2RlbCgKICAgICAgICAgICAgbmFtZT0nU2NoZWR1bGUnLAogICAgICAgICAgICBmaWVsZHM9WwogICAgICAgICAgICAgICAgKCdpZCcsIG1vZGVscy5BdXRvRmllbGQocHJpbWFyeV9rZXk9VHJ1ZSwgc2VyaWFsaXplPUZhbHNlKSksCiAgICAgICAgICAgICAgICAoJ3RpdGxlJywgbW9kZWxzLkNoYXJGaWVsZChtYXhfbGVuZ3RoPTI1NSkpLAogICAgICAgICAgICAgICAgKCd1cmwnLCBtb2RlbHMuQ2hhckZpZWxkKG1heF9sZW5ndGg9MTAyNCkpLAogICAgICAgICAgICAgICAgKCdzdGF0dXMnLCBtb2RlbHMuSW50ZWdlckZpZWxkKGRlZmF1bHQ9MCkpLAogICAgICAgICAgICAgICAgKCdpc19kZWxldGUnLCBtb2RlbHMuSW50ZWdlckZpZWxkKGRlZmF1bHQ9MCkpLAogICAgICAgICAgICAgICAgKCdjcmVhdGVfdGltZScsIG1vZGVscy5EYXRlVGltZUZpZWxkKGF1dG9fbm93X2FkZD1UcnVlKSksCiAgICAgICAgICAgICAgICAoJ3VwZGF0ZV90aW1lJywgbW9kZWxzLkRhdGVUaW1lRmllbGQoYXV0b19ub3c9VHJ1ZSkpLAo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CiAgICAgICAgICAgIF0sCjx8ZmltX2VuZHw+
e629e73071fa9cde663c0e3a54ebfbdfac0fd6ed-2
e629e73071fa9cde663c0e3a54ebfbdfac0fd6ed
PHxmaW1fcHJlZml4fD4KIyBHZW5lcmF0ZWQgYnkgRGphbmdvIDIuMi43IG9uIDIwMTktMTEtMjMgMTg6NDkKCmZyb20gZGphbmdvLmRiIGltcG9ydCBtaWdyYXRpb25zLCBtb2RlbHMKCgpjbGFzcyBNaWdyYXRpb24obWlncmF0aW9ucy5NaWdyYXRpb24pOgoKICAgIGluaXRpYWwgPSBUcnVlCgogICAgZGVwZW5kZW5jaWVzID0gWwogICAgXQoKICAgIG9wZXJhdGlvbnMgPSBbCiAgICAgICAgbWlncmF0aW9ucy5DcmVhdGVNb2RlbCgKICAgICAgICAgICAgbmFtZT0nSW1hZ2UnLAogICAgICAgICAgICBmaWVsZHM9WwogICAgICAgICAgICAgICAgKCdpZCcsIG1vZGVscy5BdXRvRmllbGQocHJpbWFyeV9rZXk9VHJ1ZSwgc2VyaWFsaXplPUZhbHNlKSksCiAgICAgICAgICAgICAgICAoJ2FydGljYWxfaWQnLCBtb2RlbHMuSW50ZWdlckZpZWxkKCkpLAogICAgICAgICAgICAgICAgKCd1cmwnLCBtb2RlbHMuQ2hhckZpZWxkKG1heF9sZW5ndGg9MTAyNCkpLAogICAgICAgICAgICAgICAgKCdpc19kZWxldGUnLCBtb2RlbHMuSW50ZWdlckZpZWxkKGRlZmF1bHQ9MCkpLAogICAgICAgICAgICAgICAgKCdjcmVhdGVfdGltZScsIG1vZGVscy5EYXRlVGltZUZpZWxkKGF1dG9fbm93X2FkZD1UcnVlKSksCiAgICAgICAgICAgICAgICAoJ3VwZGF0ZV90aW1lJywgbW9kZWxzLkRhdGVUaW1lRmllbGQoYXV0b19ub3c9VHJ1ZSkpLAogICAgICAgICAgICBdLAogICAgICAgICksCiAgICAgICAgbWlncmF0aW9ucy5DcmVhdGVNb2RlbCgKICAgICAgICAgICAgbmFtZT0nU2NoZWR1bGUnLAogICAgICAgICAgICBmaWVsZHM9WwogICAgICAgICAgICAgICAgKCdpZCcsIG1vZGVscy5BdXRvRmllbGQocHJpbWFyeV9rZXk9VHJ1ZSwgc2VyaWFsaXplPUZhbHNlKSksCiAgICAgICAgICAgICAgICAoJ3RpdGxlJywgbW9kZWxzLkNoYXJGaWVsZChtYXhfbGVuZ3RoPTI1NSkpLAo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CiAgICAgICAgICAgICAgICAoJ3VybCcsIG1vZGVscy5DaGFyRmllbGQobWF4X2xlbmd0aD0xMDI0KSksCiAgICAgICAgICAgICAgICAoJ3N0YXR1cycsIG1vZGVscy5JbnRlZ2VyRmllbGQoZGVmYXVsdD0wKSksCiAgICAgICAgICAgICAgICAoJ2lzX2RlbGV0ZScsIG1vZGVscy5JbnRlZ2VyRmllbGQoZGVmYXVsdD0wKSksCiAgICAgICAgICAgICAgICAoJ2NyZWF0ZV90aW1lJywgbW9kZWxzLkRhdGVUaW1lRmllbGQoYXV0b19ub3dfYWRkPVRydWUpKSwKPHxmaW1fZW5kfD4=
e629e73071fa9cde663c0e3a54ebfbdfac0fd6ed-3
e629e73071fa9cde663c0e3a54ebfbdfac0fd6ed
PHxmaW1fcHJlZml4fD4KIyBHZW5lcmF0ZWQgYnkgRGphbmdvIDIuMi43IG9uIDIwMTktMTEtMjMgMTg6NDkKCmZyb20gZGphbmdvLmRiIGltcG9ydCBtaWdyYXRpb25zLCBtb2RlbHMKCgpjbGFzcyBNaWdyYXRpb24obWlncmF0aW9ucy5NaWdyYXRpb24pOgoKICAgIGluaXRpYWwgPSBUcnVlCgogICAgZGVwZW5kZW5jaWVzID0gWwogICAgXQoKICAgIG9wZXJhdGlvbnMgPSBbCiAgICAgICAgbWlncmF0aW9ucy5DcmVhdGVNb2RlbCgKICAgICAgICAgICAgbmFtZT0nSW1hZ2UnLAogICAgICAgICAgICBmaWVsZHM9WwogICAgICAgICAgICAgICAgKCdpZCcsIG1vZGVscy5BdXRvRmllbGQocHJpbWFyeV9rZXk9VHJ1ZSwgc2VyaWFsaXplPUZhbHNlKSksCiAgICAgICAgICAgICAgICAoJ2FydGljYWxfaWQnLCBtb2RlbHMuSW50ZWdlckZpZWxkKCkpLAogICAgICAgICAgICAgICAgKCd1cmwnLCBtb2RlbHMuQ2hhckZpZWxkKG1heF9sZW5ndGg9MTAyNCkpLAogICAgICAgICAgICAgICAgKCdpc19kZWxldGUnLCBtb2RlbHMuSW50ZWdlckZpZWxkKGRlZmF1bHQ9MCkpLAogICAgICAgICAgICAgICAgKCdjcmVhdGVfdGltZScsIG1vZGVscy5EYXRlVGltZUZpZWxkKGF1dG9fbm93X2FkZD1UcnVlKSksCiAgICAgICAgICAgICAgICAoJ3VwZGF0ZV90aW1lJywgbW9kZWxzLkRhdGVUaW1lRmllbGQoYXV0b19ub3c9VHJ1ZSkpLAogICAgICAgICAgICBdLAogICAgICAgICksCiAgICAgICAgbWlncmF0aW9ucy5DcmVhdGVNb2RlbCgKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgogICAgICAgICAgICBuYW1lPSdTY2hlZHVsZScsCiAgICAgICAgICAgIGZpZWxkcz1bCiAgICAgICAgICAgICAgICAoJ2lkJywgbW9kZWxzLkF1dG9GaWVsZChwcmltYXJ5X2tleT1UcnVlLCBzZXJpYWxpemU9RmFsc2UpKSwKICAgICAgICAgICAgICAgICgndGl0bGUnLCBtb2RlbHMuQ2hhckZpZWxkKG1heF9sZW5ndGg9MjU1KSksCjx8ZmltX2VuZHw+
3c44b015bf162d58663dc1fc36db0fc2779219cc-1
3c44b015bf162d58663dc1fc36db0fc2779219cc
PHxmaW1fcHJlZml4fD4KCjx8ZmltX2hvbGV8PgogICAgcmV0dXJuIFt0ZXh0W2k6IGkrYmxvY2tfc2l6ZV0gZm9yIGkgaW4gcmFuZ2UoMCwgbGVuKHRleHQpLCBibG9ja19zaXplKV0KCmRlZiBibG9ja3NfdG9fdGV4dChibG9ja3MpOgogICAgcmV0dXJuIGInJy5qb2luKGJsb2NrcykKCmRlZiBwYWQodGV4dCwgYmxvY2tfc2l6ZSk6CiAgICBiID0gKC1sZW4odGV4dCkpICUgYmxvY2tfc2l6ZQogICAgYiA9IGIgaWYgYiBlbHNlIGJsb2NrX3NpemUKICAgIHJldHVybiB0ZXh0ICsgYnl0ZXMoW2JdKmIpCgpkZWYgdW5wYWQodGV4dCk6CiAgICByZXR1cm4gdGV4dFs6LXRleHRbLTFdXQo8fGZpbV9zdWZmaXh8PgpkZWYgeG9yX2J5dGVzKGEsIGIpOgogICAgcmV0dXJuIGJ5dGVzKFt4XnkgZm9yIHgseSBpbiB6aXAoYSwgYildKQoKZGVmIHRleHRfdG9fYmxvY2tzKHRleHQsIGJsb2NrX3NpemUpOgo8fGZpbV9lbmR8Pg==
3c44b015bf162d58663dc1fc36db0fc2779219cc-2
3c44b015bf162d58663dc1fc36db0fc2779219cc
PHxmaW1fcHJlZml4fD4KZGVmIHhvcl9ieXRlcyhhLCBiKToKICAgIHJldHVybiBieXRlcyhbeF55IGZvciB4LHkgaW4gemlwKGEsIGIpXSkKCmRlZiB0ZXh0X3RvX2Jsb2Nrcyh0ZXh0LCBibG9ja19zaXplKToKPHxmaW1faG9sZXw+CmRlZiBibG9ja3NfdG9fdGV4dChibG9ja3MpOgogICAgcmV0dXJuIGInJy5qb2luKGJsb2NrcykKCmRlZiBwYWQodGV4dCwgYmxvY2tfc2l6ZSk6CiAgICBiID0gKC1sZW4odGV4dCkpICUgYmxvY2tfc2l6ZQogICAgYiA9IGIgaWYgYiBlbHNlIGJsb2NrX3NpemUKICAgIHJldHVybiB0ZXh0ICsgYnl0ZXMoW2JdKmIpCgpkZWYgdW5wYWQodGV4dCk6CiAgICByZXR1cm4gdGV4dFs6LXRleHRbLTFdXQo8fGZpbV9zdWZmaXh8PgogICAgcmV0dXJuIFt0ZXh0W2k6IGkrYmxvY2tfc2l6ZV0gZm9yIGkgaW4gcmFuZ2UoMCwgbGVuKHRleHQpLCBibG9ja19zaXplKV0KCjx8ZmltX2VuZHw+
3c44b015bf162d58663dc1fc36db0fc2779219cc-3
3c44b015bf162d58663dc1fc36db0fc2779219cc
PHxmaW1fcHJlZml4fD4KZGVmIHhvcl9ieXRlcyhhLCBiKToKICAgIHJldHVybiBieXRlcyhbeF55IGZvciB4LHkgaW4gemlwKGEsIGIpXSkKCmRlZiB0ZXh0X3RvX2Jsb2Nrcyh0ZXh0LCBibG9ja19zaXplKToKICAgIHJldHVybiBbdGV4dFtpOiBpK2Jsb2NrX3NpemVdIGZvciBpIGluIHJhbmdlKDAsIGxlbih0ZXh0KSwgYmxvY2tfc2l6ZSldCgpkZWYgYmxvY2tzX3RvX3RleHQoYmxvY2tzKToKPHxmaW1faG9sZXw+CmRlZiBwYWQodGV4dCwgYmxvY2tfc2l6ZSk6CiAgICBiID0gKC1sZW4odGV4dCkpICUgYmxvY2tfc2l6ZQogICAgYiA9IGIgaWYgYiBlbHNlIGJsb2NrX3NpemUKICAgIHJldHVybiB0ZXh0ICsgYnl0ZXMoW2JdKmIpCgpkZWYgdW5wYWQodGV4dCk6CiAgICByZXR1cm4gdGV4dFs6LXRleHRbLTFdXQo8fGZpbV9zdWZmaXh8PgogICAgcmV0dXJuIGInJy5qb2luKGJsb2NrcykKCjx8ZmltX2VuZHw+
a5861856227441708869ddd261f26b0222339125-1
a5861856227441708869ddd261f26b0222339125
P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ZGl0aW9uX2xpc3QgPSBbCiAgICAgICAgICAgICAgICBfCiAgICAgICAgICAgICAgICBmb3IgXyBpbiBvcy5saXN0ZGlyKHNlbGYuX3ZhcmlhYmxlc1sicG9vbF9mb2xkZXIiXSArICIvYWRkaXRpb24iKQogICAgICAgICAgICAgICAgaWYgbGVuKF8pID4gNCBhbmQgX1stMzpdID09ICJjc3YiCiAgICAgICAgICAgIF0KICAgICAgICAgICAgaWYgbGVuKGFkZGl0aW9uX2xpc3QpID4gMDoKICAgICAgICAgICAgICAgIHBvb2xfYWRkaXRpb24gPSBwZC5jb25jYXQoCiAgICAgICAgICAgICAgICAgICAgWwogICAgICAgICAgICAgICAgICAgICAgICBwZC5yZWFkX2NzdigKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX3ZhcmlhYmxlc1sicG9vbF9mb2xkZXIiXSArICIvYWRkaXRpb24vIiArIGFkZGl0aW9uLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgZHR5cGU9eyJtYXBfeCI6IGludCwgIm1hcF95IjogaW50LCAiZ2VuZXJhdGlvbiI6IGludH0sCiAgICAgICAgICAgICAgICAgICAgICAgICkKICAgICAgICAgICAgICAgICAgICAgICAgZm9yIGFkZGl0aW9uIGluIGFkZGl0aW9uX2xpc3QKICAgICAgICAgICAgICAgICAgICBdLAogICAgICAgICAgICAgICAgICAgIGlnbm9yZV9pbmRleD1UcnVlLAogICAgICAgICAgICAgICAgKQogICAgICAgICAgICAgICAgcG9vbF9hZGRpdGlvbiA9IHBvb2xfYWRkaXRpb25bCiAgICAgICAgICAgICAgICAgICAgfnBvb2xfYWRkaXRpb24uU01JTEVTLmlzaW4oc2VsZi5fcG9vbFsiU01JTEVTIl0pCiAgICAgICAgICAgICAgICBdCiAgICAgICAgICAgICAgICBwb29sX2FkZGl0aW9uWyJwYXJlbnRzIl0gPSBbCiAgICAgICAgICAgICAgICAgICAgdHVwbGUoW2ludChfKSBmb3IgXyBpbiByaWRbMTotMV0uc3BsaXQoIiwiKV0pCiAgICAgICAgICAgICAgICAgICAgZm9yIHJpZCBpbiBwb29sX2FkZGl0aW9uWyJwYXJlbnRzIl0KICAgICAgICAgICAgICAgIF0KICAgICAgICAgICAgICAgIHNlbGYuX3Bvb2wgPSBwZC5jb25jYXQoW3NlbGYuX3Bvb2wsIHBvb2xfYWRkaXRpb25dLCBpZ25vcmVfaW5kZXg9VHJ1ZSkKICAgICAgICAgICAgICAgIHNlbGYuX3Bvb2wudG9fY3N2KHNlbGYuX3ZhcmlhYmxlc1sicG9vbF91cGRhdGVkX3BhdGgiXSwgaW5kZXg9RmFsc2UpCiAgICAgICAgICAgICAgICBwcmludCgiU01DOiBwb29sIHVwZGF0ZWQ6IHt9Ii5mb3JtYXQoc2VsZi5fcG9vbC5zaGFwZVswXSkpCiAgICAgICAgICAgIGVsc2U6CiAgICAgICAgICAgICAgICBwcmludCgiU01DOiBwb29sIGlzIHVwIHRvIGRhdGUuIikKCiAgICBkZWYgcmFuZG9tX2luaXRpYWxpemUoc2VsZik6CiAgICAgICAgcmFuZG9tX2luZGV4X2xpc3QgPSByYW5kb20uY2hvaWNlcygKICAgICAgICAgICAgc2VsZi5fcG9vbC5sb2NbCiAgICAgICAgICAgICAgICBzZWxmLl9wb29sWyJnZW5lcmF0aW9uIl0gPD0gc2VsZi5fdmFyaWFibGVzWyJnZW5lcmF0aW9uX3RocmVzaG9sZCJdCiAgICAgICAgICAgIF0uaW5kZXgudG9fbGlzdCgpLAogICAgICAgICAgICBrPXNlbGYuX3ZhcmlhYmxlc1sibiJdICogc2VsZi5fdmFyaWFibGVzWyJuX3IiXSwKICAgICAgICApCiAgICAgICAgcmFuZG9tX2luZGV4X3NldHMgPSBucC5hcnJheShyYW5kb21faW5kZXhfbGlzdCkucmVzaGFwZSgKICAgICAgICAgICAgKHNlbGYuX3ZhcmlhYmxlc1sibiJdLCBzZWxmLl92YXJpYWJsZXNbIm5fciJdKQogICAgICAgICkKICAgICAgICBYID0gcGQuRGF0YUZyYW1lKGNvbHVtbnM9c2VsZi5fdmFyaWFibGVzWyJzYW1wbGVfY29sdW1uIl0pCiAgICAgICAgWFsicmVhY3RhbnRfaW5kZXgiXSA9IFt0dXBsZShfKSBmb3IgXyBpbiByYW5kb21faW5kZXhfc2V0c10KICAgICAgICByZXR1cm4gWAoKICAgIGRlZiBpbl9ibGFjayhzZWxmLCBYKToKICAgICAgICBkZWYgaWZfbmV3KFJfaW5kZXgpOgogICAgICAgICAgICBpZiBSX2luZGV4IGluIHNlbGYuX2JsYWNrX2xpc3Q6CiAgICAgICAgICAgICAgICByZXR1cm4gRmFsc2UKICAgICAgICAgICAgcmV0dXJuIFRydWUKCiAgICAgICAgWFsiaXNfbmV3Il0gPSBYWyJyZWFjdGFudF9pbmRleCJdLmFwcGx5KGlmX25ldykKICAgICAgICBzZWxmLl9ibGFja19saXN0ID0gc2VsZi5fYmxhY2tfbGlzdC51bmlvbihzZXQoWFsicmVhY3RhbnRfaW5kZXgiXSkpCiAgICAgICAgcmV0dXJuIFgKCiAgICBkZWYgbG9hZF9zbWlsZXMoc2VsZiwgWCk6CiAgICAgICAgX3JlYWN0YW50X2luZGV4ID0gbnAuYXJyYXkoW2xpc3QoXykgZm9yIF8gaW4gWFsicmVhY3RhbnRfaW5kZXgiXV0pCiAgICAgICAgZm9yIGkgaW4gcmFuZ2Uoc2VsZi5fdmFyaWFibGVzWyJuX3IiXSk6CiAgICAgICAgICAgIFhbInIiICsgc3RyKGkgKyAxKSArICJfaWQiXSA9IF9yZWFjdGFudF9pbmRleFs6LCBpXQogICAgICAgICAgICBYWyJyIiArIHN0cihpICsgMSldID0gWwogICAgICAgICAgICAgICAgc2VsZi5fcG9vbC5sb2NbcmlkXVsiU01JTEVTIl0gZm9yIHJpZCBpbiBYWyJyIiArIHN0cihpICsgMSkgKyAiX2lkIl0KICAgICAgICAgICAgXQogICAgICAgICAgICBYWyJyIiArIHN0cihpICsgMSkgKyAiX2dlbiJdID0gWwogICAgICAgICAgICAgICAgc2VsZi5fcG9vbC5sb2NbcmlkXVsiZ2VuZXJhdGlvbiJdIGZvciByaWQgaW4gWFsiciIgKyBzdHIoaSArIDEpICsgIl9pZCJdCiAgICAgICAgICAgIF0KICAgICAgICByZXR1cm4gWAoKICAgIGRlZiB1bmlxdWUoc2VsZiwgeCk6CiAgICAgICAgZGVmIGNvdW50X2ZyZXEoayk6CiAgICAgICAgICAgIHJldHVybiB4LmxvY1t4W3NlbGYuX3ZhcmlhYmxlc1sidW5pcXVlX2NvbCJdXSA9PSBrXS5zaGFwZVswXQoKICAgICAgICB4X3VuaSA9IHguZHJvcF9kdXBsaWNhdGVzKHN1YnNldD1zZWxmLl92YXJpYWJsZXNbInVuaXF1ZV9jb2wiXSkucmVzZXRfaW5kZXgoCiAgICAgICAgICAgIGRyb3A9VHJ1ZQogICAgICAgICkKICAgICAgICB4X3VuaVsiZnJlcSJdID0gWyptYXAoY291bnRfZnJlcSwgeF91bmlbc2VsZi5fdmFyaWFibGVzWyJ1bmlxdWVfY29sIl1dKV0KICAgICAgICByZXR1cm4geF91bmkKCiAgICBkZWYgcmVhY3Qoc2VsZiwgWCk6CiAgICAgICAgaWYgc2VsZi5fdmFyaWFibGVzWyJTTUNfcmVhY3RvciJdOgogICAgICAgICAgICBYID0gc2VsZi5fcmVhY3Rvci5yZWFjdChYKQogICAgICAgIHJldHVybiBYCgogICAgZGVmIGNvbXB1dGVfbGlrZWxpaG9vZChzZWxmLCBYKToKICAgICAgICBYW3NlbGYuX3ByZWZpeCArICJ0YXJnZXQiXSA9IDEKICAgICAgICBxdWVyeV9jb25kaXRpb24gPSAiIGFuZCAiLmpvaW4oCiAgICAgICAgICAgIFsKICAgICAgICAgICAgICAgIHN0cihzZWxmLl92YXJpYWJsZXNbInRhcmdldF9yZWdpb24iXVt5XVswXSkKICAgICAgICAgICAgICAgICsgIiA8ICIKICAgICAgICAgICAgICAgICsgc2VsZi5fcHJlZml4CiAgICAgICAgICAgICAgICArIHkKICAgICAgICAgICAgICAgICsgIiA8ICIKICAgICAgICAgICAgICAgICsgc3RyKHNlbGYuX3ZhcmlhYmxlc1sidGFyZ2V0X3JlZ2lvbiJdW3ldWzFdKQogICAgICAgICAgICAgICAgZm9yIHkgaW4gc2VsZi5fdmFyaWFibGVzWyJ5X2xpc3QiXQogICAgICAgICAgICBdCiAgICAgICAgKQogICAgICAgIFguYXRbWC5xdWVyeShxdWVyeV9jb25kaXRpb24pLmluZGV4LCBzZWxmLl9wcmVmaXggKyAidGFyZ2V0Il0gPSAwCiAgICAgICAgbGwgPSBYLmFwcGx5KAogICAgICAgICAgICBsYW1iZGEgcm93OiBtYXRoLmV4cCgKICAgICAgICAgICAgICAgIHNlbGYuX3ZhcmlhYmxlc1sidGFyZ2V0X3RlbXBlcmF0dXJlIl0gKiByb3dbc2VsZi5fcHJlZml4ICsgInRhcmdldCJdCiAgICAgICAgICAgICAgICArIHNlbGYuX3ZhcmlhYmxlc1siZ2VuZXJhdGlvbl90ZW1wZXJhdHVyZSJdCiAgICAgICAgICAgICAgICAqIHN1bSgKICAgICAgICAgICAgICAgICAgICBbCiAgICAgICAgICAgICAgICAgICAgICAgIHJvd1siciIgKyBzdHIoaSArIDEpICsgIl9nZW4iXQogICAgICAgICAgICAgICAgICAgICAgICBmb3IgaSBpbiByYW5nZShzZWxmLl92YXJpYWJsZXNbIm5fciJdKQogICAgICAgICAgICAgICAgICAgIF0KICAgICAgICAgICAgICAgICkKICAgICAgICAgICAgKSwKICAgICAgICAgICAgYXhpcz0xLAogICAgICAgICkKICAgICAgICBsbF9zdW0gPSBzdW0obGwpCiAgICAgICAgWFtzZWxmLl9wcmVmaXggKyAibGwiXSA9IFtsIC8gbGxfc3VtIGZvciBsIGluIGxsXQogICAgICAgIHJldHVybiBYCgogICAgZGVmIHNhdmVfbmV3X251bWJlcihzZWxmLCB0LCBuX25ldyk6CiAgICAgICAgaWYgbm90IHNlbGYuX3ZhcmlhYmxlc1sic3Vycm9nYXRlIl06CiAgICAgICAgICAgIGRmX3BhdGggPSBzZWxmLl92YXJpYWJsZXNbIm1vZGVsX2RmX3BhdGgiXSArIHN0cih0KQogICAgICAgICAgICBwYXRobGliLlBhdGgoZGZfcGF0aCkubWtkaXIocGFyZW50cz1UcnVlLCBleGlzdF9vaz1UcnVlKQogICAgICAgICAgICB3aXRoIG9wZW4oZGZfcGF0aCArICIvbl9uZXcudHh0IiwgInciKSBhcyBmOgogICAgICAgICAgICAgICAgZi53cml0ZShzdHIobl9uZXcpKQoKICAgIGRlZiBzYXZlX2RmKHNlbGYsIFgsIHQpOgogICAgICAgIGlmIG5vdCBzZWxmLl92YXJpYWJsZXNbInN1cnJvZ2F0ZSJdOgogICAgICAgICAgICBkZl9wYXRoID0gc2VsZi5fdmFyaWFibGVzWyJtb2RlbF9kZl9wYXRoIl0gKyBzdHIodCkKICAgICAgICAgICAgcGF0aGxpYi5QYXRoKGRmX3BhdGgpLm1rZGlyKHBhcmVudHM9VHJ1ZSwgZXhpc3Rfb2s9VHJ1ZSkKICAgICAgICAgICAgWC50b19jc3YoZGZfcGF0aCArICIvZGYuY3N2IiwgaW5kZXg9RmFsc2UpCgogICAgZGVmIHNhdmVfdGltZShzZWxmLCB0LCB0aW1lX2Nvc3QpOgogICAgICAgIGRmX3BhdGggPSBzZWxmLl92YXJpYWJsZXNbIm1vZGVsX2RmX3BhdGgiXSArIHN0cih0KQogICAgICAgIHBhdGhsaWIuUGF0aChkZl9wYXRoKS5ta2RpcihwYXJlbnRzPVRydWUsIGV4aXN0X29rPVRydWUpCiAgICAgICAgd2l0aCBvcGVuKGRmX3BhdGggKyAiL3RpbWUudHh0IiwgInciKSBhcyBmOgogICAgICAgICAgICBmLndyaXRlKHN0cih0aW1lX2Nvc3QpKQoKICAgIGRlZiByZXNhbXBsZShzZWxmLCBYKToKICAgICAgICBpZiBzZWxmLl92YXJpYWJsZXNbIm9wdGltaXphdGlvbiJdOgogICAgICAgICAgICBYX3Jlc2FtcGxlID0gWC5zYW1wbGUoCiAgICAgICAgICAgICAgICBuPXNlbGYuX3ZhcmlhYmxlc1sibiJdLCByZXBsYWNlPVRydWUsIHdlaWdodHM9WFtzZWxmLl9wcmVmaXggKyAibGwiXQogICAgICAgICAgICApLnJlc2V0X2luZGV4KGRyb3A9VHJ1ZSkKICAgICAgICAgICAgcmV0dXJuIFhfcmVzYW1wbGUKICAgICAgICByZXR1cm4gWAoKICAgIGRlZiBwcm9wb3NhbChzZWxmLCBYX3Jlc2FtcGxlKToKICAgICAgICBkZWYgc2luZ2xlX3Byb3Bvc2FsKHJvdyk6CiAgICAgICAgICAgIGlmIHJvd1siaXNfbmV3Il0gYW5kIHJvd1tzZWxmLl9wcmVmaXggKyAidGFyZ2V0Il0gPT0gMDoKICAgICAgICAgICAgICAgIGV4cGxvaXQgPSBUcnVlCiAgICAgICAgICAgIGVsc2U6CiAgICAgICAgICAgICAgICBleHBsb2l0ID0gRmFsc2UKICAgICAgICAgICAgaWYgZXhwbG9pdDoKICAgICAgICAgICAgICAgIFJfaW5kZXggPSBsaXN0KHJvd1sicmVhY3RhbnRfaW5kZXgiXSkKICAgICAgICAgICAgICAgIHJfaSA9IHJhbmRvbS5jaG9pY2UobGlzdChyYW5nZShzZWxmLl92YXJpYWJsZXNbIm5fciJdKSkpCiAgICAgICAgICAgICAgICByX2luZGV4ID0gUl9pbmRleFtyX2ldCiAgICAgICAgICAgICAgICBhc3NlcnQgKAogICAgICAgICAgICAgICAgICAgIHJfaW5kZXggaW4gc2VsZi5fcG9vbC5pbmRleAogICAgICAgICAgICAgICAgKSwgInByb3Bvc2FsOiByZWFjdGFudCBwb29sIGRvZXMgbm90IGNvbnRhaW5zIHRhcmdldCByZWFjdGFudDoge30gaW4ge30iLmZvcm1hdCgKICAgICAgICAgICAgICAgICAgICByX2luZGV4LCBzZWxmLl9wb29sLnNoYXBlWzBdCiAgICAgICAgICAgICAgICApCiAgICAgICAgICAgICAgICByX21hcF94ID0gc2VsZi5fcG9vbC5sb2Nbcl9pbmRleF1bIm1hcF94Il0KICAgICAgICAgICAgICAgIHJfbWFwX3kgPSBzZWxmLl9wb29sLmxvY1tyX2luZGV4XVsibWFwX3kiXQogICAgICAgICAgICAgICAgZ2VuZXJhdGlvbl90aHJlc2hvbGQgPSBzZWxmLl92YXJpYWJsZXNbImdlbmVyYXRpb25fdGhyZXNob2xkIl0KICAgICAgICAgICAgICAgIHNpbV9jb2wgPSBzZWxmLl9wb29sLnF1ZXJ5KAogICAgICAgICAgICAgICAgICAgICJtYXBfeCA9PSBAcl9tYXBfeCAmIG1hcF95ID09IEByX21hcF95ICYgZ2VuZXJhdGlvbiA8PSBAZ2VuZXJhdGlvbl90aHJlc2hvbGQiCiAgICAgICAgICAgICAgICApCiAgICAgICAgICAgICAgICBpZiBzaW1fY29sLnNoYXBlWzBdID4gMToKICAgICAgICAgICAgICAgICAgICBzaW1faW5kZXggPSBzaW1fY29sLmluZGV4LnRvX2xpc3QoKQogICAgICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgICAgICBzaW1faW5kZXggPSBzZWxmLl9wb29sLmxvY1sKICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5fcG9vbFsiZ2VuZXJhdGlvbiJdCiAgICAgICAgICAgICAgICAgICAgICAgIDw9IHNlbGYuX3ZhcmlhYmxlc1siZ2VuZXJhdGlvbl90aHJlc2hvbGQiXQogICAgICAgICAgICAgICAgICAgIF0uaW5kZXgudG9fbGlzdCgpCiAgICAgICAgICAgICAgICByX25ldyA9IHJhbmRvbS5jaG9pY2Uoc2ltX2luZGV4KQogICAgICAgICAgICAgICAgUl9pbmRleFtyX2ldID0gcl9uZXcKICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgIFJfaW5kZXggPSByYW5kb20uY2hvaWNlcygKICAgICAgICAgICAgICAgICAgICBzZWxmLl9wb29sLmxvY1sKICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5fcG9vbFsiZ2VuZXJhdGlvbiJdCiAgICAgICAgICAgICAgICAgICAgICAgIDw9IHNlbGYuX3ZhcmlhYmxlc1siZ2VuZXJhdGlvbl90aHJlc2hvbGQiXQogICAgICAgICAgICAgICAgICAgIF0uaW5kZXgsCiAgICAgICAgICAgICAgICAgICAgaz1zZWxmLl92YXJpYWJsZXNbIm5fciJdLAogICAgICAgICAgICAgICAgKQogICAgICAgICAgICByZXR1cm4gdHVwbGUoUl9pbmRleCkKCiAgICAgICAgaWYgc2VsZi5fdmFyaWFibGVzWyJvcHRpbWl6YXRpb24iXToKICAgICAgICAgICAgWF9uZXcgPSBwZC5EYXRhRnJhbWUoY29sdW1ucz1zZWxmLl92YXJpYWJsZXNbInNhbXBsZV9jb2x1bW4iXSkKICAgICAgICAgICAgWF9uZXdbInJlYWN0YW50X2luZGV4Il0gPSBYX3Jlc2FtcGxlLmFwcGx5KHNpbmdsZV9wcm9wb3NhbCwgYXhpcz0xKQogICAgICAgIGVsc2U6CiAgICAgICAgICAgIFhfbmV3ID0gc2VsZi5yYW5kb21faW5pdGlhbGl6ZSgpCiAgICAgICAgcmV0dXJuIFhfbmV3CgogICAgZGVmIHBvb2xfZW5yaWNobWVudChzZWxmLCBYLCBYX2ZwKToKICAgICAgICBpZiBzZWxmLl92YXJpYWJsZXNbIlNNQ19lbnJpY2giXToKICAgICAgICAgICAgcG9vbF9hZGRpdGlvbiA9IHBkLkRhdGFGcmFtZSgpCiAgICAgICAgICAgIHBvb2xfYWRkaXRpb25bIlNNSUxFUyJdID0gWFsicHJvZHVjdCJdCiAgICAgICAgICAgIHBvb2xfYWRkaXRpb24gPSBwb29sX2FkZGl0aW9uWwogICAgICAgICAgICAgICAgfnBvb2xfYWRkaXRpb24uU01JTEVTLmlzaW4oc2VsZi5fcG9vbFsiU01JTEVTIl0pCiAgICAgICAgICAgIF0KICAgICAgICAgICAgcG9vbF9hZGRpdGlvbl9mcCA9IFhfZnAubG9jW3Bvb2xfYWRkaXRpb24uaW5kZXhdCiAgICAgICAgICAgIHBvb2xfYWRkaXRpb25bInBhcmVudHMiXSA9IFgubG9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FyZCJdCiAgICAgICAgICAgIGdwdV9wYXRoID0gc2VsZi5fdmFyaWFibGVzWyJ3YXJlaG91c2UiXSArICIvIiArIHN0cihncHVfaSkKICAgICAgICAgICAgcGF0aGxpYi5QYXRoKGdwdV9wYXRoKS5ta2RpcihwYXJlbnRzPVRydWUsIGV4aXN0X29rPVRydWUpCiAgICAgICAgICAgIGRvbmUgPSBGYWxzZQogICAgICAgICAgICB3aGlsZSBub3QgZG9uZToKICAgICAgICAgICAgICAgIHRyeToKICAgICAgICAgICAgICAgICAgICBYLnRvX2NzdihncHVfcGF0aCArICIvIiArIHN0cih0KSArICIuY3N2IiwgaW5kZXg9RmFsc2UpCiAgICAgICAgICAgICAgICAgICAgcHJpbnQoIlNNQzogcHV0IHt9IGludG8gc3RvcmFnZS4iLmZvcm1hdCh0KSkKICAgICAgICAgICAgICAgICAgICBkb25lID0gVHJ1ZQogICAgICAgICAgICAgICAgZXhjZXB0OgogICAgICAgICAgICAgICAgICAgIHByaW50KCJTTUMgaW4gc3RvcmFnZSBlcnJvci4iKQoKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgogICAgZGVmIHNpbmdsZV9zdGVwKHNlbGYsIFgsIHQpOgogICAgICAgIHNlbGYudXBkYXRlX3Bvb2woKQogICAgICAgIFhfcmVzYW1wbGUgPSBzZWxmLnJlc2FtcGxlKFgpCiAgICAgICAgWCA9IHNlbGYucHJvcG9zYWwoWF9yZXNhbXBsZSkKPHxmaW1fZW5kfD4=
3ca3164a8c51bfcd153de7e5ff48ec231a00cb3b-1
3ca3164a8c51bfcd153de7e5ff48ec231a00cb3b
PHxmaW1fcHJlZml4fD4KaW1wb3J0IEZXQ29yZS5QYXJhbWV0ZXJTZXQuQ29uZmlnIGFzIGNtcwoKdGF1VG8zTXVGaWx0ZXIgPSBjbXMuRURGaWx0ZXIoIlRhdTNNdVNraW0iLAogICAgUmVjb0FuYWx5c2lzTXVvbk1hc3MgPSBjbXMuZG91YmxlKDAuMTA1N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pcz0xKQogICAgcmV0dXJuIGRmCjx8ZmltX3N1ZmZpeHw+CgogICAgQHByb3BlcnR5CiAgICBkZWYgZmVhdHVyZV9pbmRpY2VzKHNlbGYpOgogICAgICAgIHJldHVybiBzZWxmLl9mZWF0dXJlc19pbmRleF9saXN0Cjx8ZmltX2VuZHw+
a51f98213bf5a719f1b0c16c455d7cc003ee924e-2
a51f98213bf5a719f1b0c16c455d7cc003ee924e
PHxmaW1fcHJlZml4fD4KIiIiRGF0YWxvYWRlcnMgZm9yIHRoZSBoaXQgc29uZyBwcmVkaWN0aW9uLiIiIgppbXBvcnQganNvbgoKZnJvbSBkYmlzcGlwZWxpbmUuYmFzZSBpbXBvcnQgTG9hZGVyCgppbXBvcnQgbnVtcHkgYXMgbnAKCmltcG9ydCBwYW5kYXMgYXMgcGQKCmZyb20gY29tbW9uIGltcG9ydCBmZWF0dXJlX2NvbHVtbnMKCgpjbGFzcyBNc2RCYkxvYWRlcihMb2FkZXIpOgogICAgIiIiTWlsbGlvbiBzb25nIGRhdGFzZXQgLyBiaWxsYm9hcmQgY2hhcnRzIGxvYWVyLiIiIgoKICAgIGRlZiBfX2luaXRfXyhzZWxmLAogICAgICAgICAgICAgICAgIGhpdHNfZmlsZV9wYXRoLAogICAgICAgICAgICAgICAgIG5vbl9oaXRzX2ZpbGVfcGF0aCwKICAgICAgICAgICAgICAgICBmZWF0dXJlc19wYXRoLAogICAgICAgICAgICAgICAgIG5vbl9oaXRzX3Blcl9oaXQ9Tm9uZSwKICAgICAgICAgICAgICAgICBmZWF0dXJlcz1Ob25lLAogICAgICAgICAgICAgICAgIGxhYmVsPU5vbmUsCiAgICAgICAgICAgICAgICAgbmFuX3ZhbHVlPTAsCiAgICAgICAgICAgICAgICAgcmFuZG9tX3N0YXRlPU5vbmUpOgogICAgICAgIHNlbGYuX2NvbmZpZyA9IHsKICAgICAgICAgICAgJ2hpdHNfZmlsZV9wYXRoJzogaGl0c19maWxlX3BhdGgsCiAgICAgICAgICAgICdub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W1lKQogICAgICAgICNpZiBpID09IDIwOgogICAgICAgICMgICAgd2l0aCB0b3JjaC5hdXRvZ3JhZC5wcm9maWxlci5wcm9maWxlKHJlY29yZF9zaGFwZXM9VHJ1ZSwgdXNlX25wdT1UcnVlKSBhcyBwcm9mOgogICAgICAgICMgICAgICAgIHRhcmdldHMgPSB0YXJnZXRzLnRvKG9wdC5kZXZpY2UsIG5vbl9ibG9ja2luZz1UcnVlKQogICAgICAgICMgICAgICAgIG91dHB1dHMgPSBtb2RlbChpbnB1dHMubnB1KCkpCiAgICAgICAgIyAgICAgICAgbG9zcyA9IGNyaXRlcmlvbihvdXRwdXRzLCB0YXJnZXRzLmludCgpKQogICAgICAgICMgICAgICAgIGFjYyA9IGNhbGN1bGF0ZV9hY2N1cmFjeShvdXRwdXRzLCB0YXJnZXRzKQogICAgICAgICMgICAgICAgIGxvc3Nlcy51cGRhdGUobG9zcy5pdGVtKCksIGlucHV0cy5zaXplKDApKQogICAgICAgICMgICAgICAgIGFjY3VyYWNpZXMudXBkYXRlKGFjYywgaW5wdXRzLnNpemUoMCkpCiAgICAgICAgIyAgICAgICAgb3B0aW1pemVyLnplcm9fZ3JhZCgpCiAgICAgICAgIyAgICAgICAgaWYgb3B0LmFtcF9jZmc6CiAgICAgICAgIyAgICAgICAgICAgIHdpdGggYW1wLnNjYWxlX2xvc3MobG9zcywgb3B0aW1pemVyKSBhcyBzY2FsZWRfbG9zczoKICAgICAgICAjICAgICAgICAgICAgICAgIHNjYWxlZF9sb3NzLmJhY2t3YXJkKCkKICAgICAgICAjICAgICAgICBlbHNlOgogICAgICAgICMgICAgICAgICAgICBsb3NzLmJhY2t3YXJkKCkKICAgICAgICAjICAgICAgICBvcHRpbWl6ZXIuc3RlcCgpCiAgICAgICAgIyAgICBwcm9mLmV4cG9ydF9jaHJvbWUoIlJlc25ldDNkX28yLnByb2YiKQogICAgICAgICMgICAgaW1wb3J0IHN5cwogICAgICAgICMgICAgc3lzLmV4aXQoKQogICAgICAgIHRhcmdldHMgPSB0YXJnZXRzLnRvKG9wdC5kZXZpY2UsIG5vbl9ibG9ja2luZz1UcnVlKQogICAgICAgIG91dHB1dHMgPSBtb2RlbChpbnB1dHMubnB1KCkpCiAgICAgICAgbG9zcyA9IGNyaXRlcmlvbihvdXRwdXRzLCB0YXJnZXRzLmludCgpKQogICAgICAgIGFjYyA9IGNhbGN1bGF0ZV9hY2N1cmFjeShvdXRwdXRzLCB0YXJnZXRzKQoKICAgICAgICBsb3NzZXMudXBkYXRlKGxvc3MuaXRlbSgpLCBpbnB1dHMuc2l6ZSgwKSkKICAgICAgICBhY2N1cmFjaWVzLnVwZGF0ZShhY2MsIGlucHV0cy5zaXplKDApKQoKICAgICAgICBvcHRpbWl6ZXIuemVyb19ncmFkKCkKICAgICAgICBpZiBvcHQuYW1wX2NmZzoKICAgICAgICAgICAgd2l0aCBhbXAuc2NhbGVfbG9zcyhsb3NzLCBvcHRpbWl6ZXIpIGFzIHNjYWxlZF9sb3NzOgogICAgICAgICAgICAgICAgc2NhbGVkX2xvc3MuYmFja3dhcmQoKQogICAgICAgIGVsc2U6CiAgICAgICAgICAgIGxvc3MuYmFja3dhcmQoKQogICAgICAgIG9wdGltaXplci5zdGVwKCkKCiAgICAgICAgYmF0Y2hfdGltZS51cGRhdGUodGltZS50aW1lKCkgLSBlbmRfdGltZSkKICAgICAgICBmcHMudXBkYXRlKG9wdC53b3JsZF9zaXplICogb3B0LmJhdGNoX3NpemUgLyBiYXRjaF90aW1lLnZhbCkKICAgICAgICBlbmRfdGltZSA9IHRpbWUudGltZSgpCgogICAgICAgIGlmIGVwb2NoID09IDEgYW5kIGkgPT0gMDoKICAgICAgICAgICAgYmF0Y2hfdGltZS5yZXNldCgpCiAgICAgICAgICAgIGRhdGFfdGltZS5yZXNldCgpCgogICAgICAgIGlmIGJhdGNoX2xvZ2dlciBpcyBub3QgTm9uZToKICAgICAgICAgICAgYmF0Y2hfbG9nZ2VyLmxvZyh7CiAgICAgICAgICAgICAgICAnZXBvY2gnOiBlcG9jaCwKICAgICAgICAgICAgICAgICdiYXRjaCc6IGkgKyAxLAogICAgICAgICAgICAgICAgJ2l0ZXInOiAoZXBvY2ggLSAxKSAqIGxlbihkYXRhX2xvYWRlcikgKyAoaSArIDEpLAogICAgICAgICAgICAgICAgJ2xvc3MnOiBsb3NzZXMudmFsLAogICAgICAgICAgICAgICAgJ2FjYyc6IGFjY3VyYWNpZXMudmFsLAogICAgICAgICAgICAgICAgJ2xyJzogY3VycmVudF9scgogICAgICAgICAgICB9KQoKICAgICAgICBpZiBvcHQuaXNfbWFzdGVyX25vZGU6CiAgICAgICAgICAgIHByaW50KCdFcG9jaDogW3swfV1bezF9L3syfV1cdCcKICAgICAgICAgICAgICAgICdUaW1lIHtiYXRjaF90aW1lLnZhbDouM2Z9ICh7YmF0Y2hfdGltZS5hdmc6LjNmfSlcdCcKICAgICAgICAgICAgICAgICdGcHMge2Zwcy52YWw6LjNmfSAoe2Zwcy5hdmc6LjNmfSlcdCcKICAgICAgICAgICAgICAgICdEYXRhIHtkYXRhX3RpbWUudmFsOi4zZn0gKHtkYXRhX3RpbWUuYXZnOi4zZn0pXHQnCiAgICAgICAgICAgICAgICAnTG9zcyB7bG9zcy52YWw6LjRmfSAoe2xvc3MuYXZnOi40Zn0pXHQnCiAgICAgICAgICAgICAgICAnQWNjIHthY2MudmFsOi4zZn0gKHthY2MuYXZnOi4zZn0pJy5mb3JtYXQoZXBvY2gsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGkgKyAxLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZW4oZGF0YV9sb2FkZXIpLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYXRjaF90aW1lPWJhdGNoX3RpbWUsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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IGksIChpbnB1dHMsIHRhcmdldHMpIGluIGVudW1lcmF0ZShkYXRhX2xvYWRlcik6CiAgICAgICAgZGF0YV90aW1lLnVwZGF0ZSh0aW1lLnRpbWUoKSAtIGVuZF90aW1lKQogICAgICAgICNpZiBpID09IDIwOgogICAgICAgICMgICAgd2l0aCB0b3JjaC5hdXRvZ3JhZC5wcm9maWxlci5wcm9maWxlKHJlY29yZF9zaGFwZXM9VHJ1ZSwgdXNlX25wdT1UcnVlKSBhcyBwcm9mOgogICAgICAgICMgICAgICAgIHRhcmdldHMgPSB0YXJnZXRzLnRvKG9wdC5kZXZpY2UsIG5vbl9ibG9ja2luZz1UcnVlKQogICAgICAgICMgICAgICAgIG91dHB1dHMgPSBtb2RlbChpbnB1dHMubnB1KCkpCiAgICAgICAgIyAgICAgICAgbG9zcyA9IGNyaXRlcmlvbihvdXRwdXRzLCB0YXJnZXRzLmludCgpKQogICAgICAgICMgICAgICAgIGFjYyA9IGNhbGN1bGF0ZV9hY2N1cmFjeShvdXRwdXRzLCB0YXJnZXRzKQogICAgICAgICMgICAgICAgIGxvc3Nlcy51cGRhdGUobG9zcy5pdGVtKCksIGlucHV0cy5zaXplKDApKQogICAgICAgICMgICAgICAgIGFjY3VyYWNpZXMudXBkYXRlKGFjYywgaW5wdXRzLnNpemUoMCkpCiAgICAgICAgIyAgICAgICAgb3B0aW1pemVyLnplcm9fZ3JhZCgpCiAgICAgICAgIyAgICAgICAgaWYgb3B0LmFtcF9jZmc6CiAgICAgICAgIyAgICAgICAgICAgIHdpdGggYW1wLnNjYWxlX2xvc3MobG9zcywgb3B0aW1pemVyKSBhcyBzY2FsZWRfbG9zczoKICAgICAgICAjICAgICAgICAgICAgICAgIHNjYWxlZF9sb3NzLmJhY2t3YXJkKCkKICAgICAgICAjICAgICAgICBlbHNlOgogICAgICAgICMgICAgICAgICAgICBsb3NzLmJhY2t3YXJkKCkKICAgICAgICAjICAgICAgICBvcHRpbWl6ZXIuc3RlcCgpCiAgICAgICAgIyAgICBwcm9mLmV4cG9ydF9jaHJvbWUoIlJlc25ldDNkX28yLnByb2YiKQogICAgICAgICMgICAgaW1wb3J0IHN5cwogICAgICAgICMgICAgc3lzLmV4aXQoKQogICAgICAgIHRhcmdldHMgPSB0YXJnZXRzLnRvKG9wdC5kZXZpY2UsIG5vbl9ibG9ja2luZz1UcnVlKQogICAgICAgIG91dHB1dHMgPSBtb2RlbChpbnB1dHMubnB1KCkpCiAgICAgICAgbG9zcyA9IGNyaXRlcmlvbihvdXRwdXRzLCB0YXJnZXRzLmludCgpKQogICAgICAgIGFjYyA9IGNhbGN1bGF0ZV9hY2N1cmFjeShvdXRwdXRzLCB0YXJnZXRzKQoKICAgICAgICBsb3NzZXMudXBkYXRlKGxvc3MuaXRlbSgpLCBpbnB1dHMuc2l6ZSgwKSkKICAgICAgICBhY2N1cmFjaWVzLnVwZGF0ZShhY2MsIGlucHV0cy5zaXplKDApKQoKICAgICAgICBvcHRpbWl6ZXIuemVyb19ncmFkKCkKICAgICAgICBpZiBvcHQuYW1wX2NmZzoKICAgICAgICAgICAgd2l0aCBhbXAuc2NhbGVfbG9zcyhsb3NzLCBvcHRpbWl6ZXIpIGFzIHNjYWxlZF9sb3NzOgogICAgICAgICAgICAgICAgc2NhbGVkX2xvc3MuYmFja3dhcmQoKQogICAgICAgIGVsc2U6CiAgICAgICAgICAgIGxvc3MuYmFja3dhcmQoKQogICAgICAgIG9wdGltaXplci5zdGVwKCkKCiAgICAgICAgYmF0Y2hfdGltZS51cGRhdGUodGltZS50aW1lKCkgLSBlbmRfdGltZSkKICAgICAgICBmcHMudXBkYXRlKG9wdC53b3JsZF9zaXplICogb3B0LmJhdGNoX3NpemUgLyBiYXRjaF90aW1lLnZhbCkKICAgICAgICBlbmRfdGltZSA9IHRpbWUudGltZSgpCgogICAgICAgIGlmIGVwb2NoID09IDEgYW5kIGkgPT0gMDoKICAgICAgICAgICAgYmF0Y2hfdGltZS5yZXNldCgpCiAgICAgICAgICAgIGRhdGFfdGltZS5yZXNldCgpCgogICAgICAgIGlmIGJhdGNoX2xvZ2dlciBpcyBub3QgTm9uZToKICAgICAgICAgICAgYmF0Y2hfbG9nZ2VyLmxvZyh7CiAgICAgICAgICAgICAgICAnZXBvY2gnOiBlcG9jaCwKICAgICAgICAgICAgICAgICdiYXRjaCc6IGkgKyAxLAogICAgICAgICAgICAgICAgJ2l0ZXInOiAoZXBvY2ggLSAxKSAqIGxlbihkYXRhX2xvYWRlcikgKyAoaSArIDEpLAogICAgICAgICAgICAgICAgJ2xvc3MnOiBsb3NzZXMudmFsLAogICAgICAgICAgICAgICAgJ2FjYyc6IGFjY3VyYWNpZXMudmFsLAogICAgICAgICAgICAgICAgJ2xyJzogY3VycmVudF9scgogICAgICAgICAgICB9KQoKICAgICAgICBpZiBvcHQuaXNfbWFzdGVyX25vZGU6CiAgICAgICAgICAgIHByaW50KCdFcG9jaDogW3swfV1bezF9L3syfV1cdCcKICAgICAgICAgICAgICAgICdUaW1lIHtiYXRjaF90aW1lLnZhbDouM2Z9ICh7YmF0Y2hfdGltZS5hdmc6LjNmfSlcdCcKICAgICAgICAgICAgICAgICdGcHMge2Zwcy52YWw6LjNmfSAoe2Zwcy5hdmc6LjNmfSlcdCcKICAgICAgICAgICAgICAgICdEYXRhIHtkYXRhX3RpbWUudmFsOi4zZn0gKHtkYXRhX3RpbWUuYXZnOi4zZn0pXHQnCiAgICAgICAgICAgICAgICAnTG9zcyB7bG9zcy52YWw6LjRmfSAoe2xvc3MuYXZnOi40Zn0pXHQnCiAgICAgICAgICAgICAgICAnQWNjIHthY2MudmFsOi4zZn0gKHthY2MuYXZnOi4zZn0pJy5mb3JtYXQoZXBvY2gsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGkgKyAxLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZW4oZGF0YV9sb2FkZXIpLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYXRjaF90aW1lPWJhdGNoX3RpbWUsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZwcz1mcHMsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGFfdGltZT1kYXRhX3RpbWUsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvc3M9bG9zc2VzLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhY2M9YWNjdXJhY2llcykpCgogICAgaWYgb3B0LmRpc3RyaWJ1dGVkOgogICAgICAgIGxvc3Nfc3VtID0gdG9yY2gudGVuc29yKFtsb3NzZXMuc3VtXSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkdHlwZT10b3JjaC5mbG9hdDMyLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldmljZT1vcHQuZGV2aWNlKQogICAgICAgIGxvc3NfY291bnQgPSB0b3JjaC50ZW5zb3IoW2xvc3Nlcy5jb3VudF0sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkdHlwZT10b3JjaC5mbG9hdDMyLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGV2aWNlPW9wdC5kZXZpY2UpCiAgICAgICAgYWNjX3N1bSA9IHRvcmNoLnRlbnNvcihbYWNjdXJhY2llcy5zdW1dLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZHR5cGU9dG9yY2guZmxvYXQzMiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldmljZT1vcHQuZGV2aWNlKQogICAgICAgIGFjY19jb3VudCA9IHRvcmNoLnRlbnNvcihbYWNjdXJhY2llcy5jb3VudF0sCiAgICAgICAgICAgICAgICAgICAgICAg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luZGV4fScpCiAgICBwcmludChmJ21hdGNoLmxhc3Rncm91cD17bWF0Y2gubGFzdGdyb3VwfScpCiAgICBwcmludChmJ21hdGNoLnJlPXttYXRjaC5yZX0nKQogICAgcHJpbnQoZidtYXRjaC5zdHJpbmc9e21hdGNoLnN0cmluZ30nKQpwcmludCgpCgpsaV90YWcgPSAnJydhPTEKYj0yCmM9MwonJycKcmVnZXggPSByZS5jb21waWxlKHInKD9QPGtleT4uKz8pPSg/UDx2YWx1ZT4uKz8pJywgcmUuSUdOT1JFQ0FTRSkKbWF0Y2hlcyA9IHJlZ2V4LmZpbmRpdGVyKGxpX3RhZykKZm9yIG1hdGNoIGluIG1hdGNoZXM6CiAgICBwcmludChtYXRjaCkKICAgIHByaW50KG1hdGNoLmxhc3RpbmRleCwgbWF0Y2guZ3JvdXBzKCkpCiAgICBwcmludChmJ21hdGNoLnBvcz17bWF0Y2gucG9zfScpCiAgICBwcmludChmJ21hdGNoLmVuZHBvcz17bWF0Y2guZW5kcG9zfScpCiAgICBwcmludChmJ21hdGNoLmxhc3RpbmRleD17bWF0Y2gubGFzdGluZGV4fScpCiAgICBwcmludChmJ21hdGNoLmxhc3Rncm91cD17bWF0Y2gubGFzdGdyb3VwfScpCiAgICBwcmludChmJ21hdGNoLnJlPXttYXRjaC5yZX0nKQogICAgcHJpbnQoZidtYXRjaC5zdHJpbmc9e21hdGNoLnN0cmluZ30nKQpwcmludCgpCgo8fGZpbV9zdWZmaXh8PgpiPTIKYz0zCicnJwpyZWdleCA9IHJlLmNvbXBpbGUocicoLis/KT0oLis/KScsIHJlLklHTk9SRUNBU0UpCjx8ZmltX2VuZHw+
59eab6d7b25b67e5b410948a13f13780b6ffba07-3
59eab6d7b25b67e5b410948a13f13780b6ffba07
PHxmaW1fcHJlZml4fD4KaW1wb3J0IHJlCgpsaV90YWcgPSAnJyc8bGk+QXBwbGU8L2xpPgo8bGk+T3JhbmdlPC9saT4KPGxpPk1lcm9uPC9saT4KPGxpPkdyYXBlPC9saT4KPGxpPkNoZXJyeTwvbGk+CicnJwo8fGZpbV9ob2xlfD4KICAgIHByaW50KG1hdGNoLmxhc3RpbmRleCwgbWF0Y2guZ3JvdXBzKCkpCiAgICBwcmludChmJ21hdGNoLnBvcz17bWF0Y2gucG9zfScpCiAgICBwcmludChmJ21hdGNoLmVuZHBvcz17bWF0Y2guZW5kcG9zfScpCiAgICBwcmludChmJ21hdGNoLmxhc3RpbmRleD17bWF0Y2gubGFzdGluZGV4fScpCiAgICBwcmludChmJ21hdGNoLmxhc3Rncm91cD17bWF0Y2gubGFzdGdyb3VwfScpCiAgICBwcmludChmJ21hdGNoLnJlPXttYXRjaC5yZX0nKQogICAgcHJpbnQoZidtYXRjaC5zdHJpbmc9e21hdGNoLnN0cmluZ30nKQpwcmludCgpCgpsaV90YWcgPSAnJydhPTEKYj0yCmM9MwonJycKcmVnZXggPSByZS5jb21waWxlKHInKC4rPyk9KC4rPyknLCByZS5JR05PUkVDQVNFKQptYXRjaGVzID0gcmVnZXguZmluZGl0ZXIobGlfdGFnKQpmb3IgbWF0Y2ggaW4gbWF0Y2hlczoKICAgIHByaW50KG1hdGNoKQogICAgcHJpbnQobWF0Y2gubGFzdGluZGV4LCBtYXRjaC5ncm91cHMoKSkKICAgIHByaW50KGYnbWF0Y2gucG9zPXttYXRjaC5wb3N9JykKICAgIHByaW50KGYnbWF0Y2guZW5kcG9zPXttYXRjaC5lbmRwb3N9JykKICAgIHByaW50KGYnbWF0Y2gubGFzdGluZGV4PXttYXRjaC5sYXN0aW5kZXh9JykKICAgIHByaW50KGYnbWF0Y2gubGFzdGdyb3VwPXttYXRjaC5sYXN0Z3JvdXB9JykKICAgIHByaW50KGYnbWF0Y2gucmU9e21hdGNoLnJlfScpCiAgICBwcmludChmJ21hdGNoLnN0cmluZz17bWF0Y2guc3RyaW5nfScpCnByaW50KCkKCmxpX3RhZyA9ICcnJ2E9MQpiPTIKYz0zCicnJwpyZWdleCA9IHJlLmNvbXBpbGUocicoP1A8a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2ggaW4gbWF0Y2hlczoKICAgIHByaW50KG1hdGNoKQogICAgcHJpbnQobWF0Y2gubGFzdGluZGV4LCBtYXRjaC5ncm91cHMoKSkKICAgIHByaW50KGYnbWF0Y2gucG9zPXttYXRjaC5wb3N9JykKICAgIHByaW50KGYnbWF0Y2guZW5kcG9zPXttYXRjaC5lbmRwb3N9JykKICAgIHByaW50KGYnbWF0Y2gubGFzdGluZGV4PXttYXRjaC5sYXN0aW5kZXh9JykKICAgIHByaW50KGYnbWF0Y2gubGFzdGdyb3VwPXttYXRjaC5sYXN0Z3JvdXB9JykKICAgIHByaW50KGYnbWF0Y2gucmU9e21hdGNoLnJlfScpCiAgICBwcmludChmJ21hdGNoLnN0cmluZz17bWF0Y2guc3RyaW5nfScpCnByaW50KCkKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgoKbGlfdGFnID0gJycnYT0xCmI9MgpjPTMKPHxmaW1fZW5kfD4=
05f37390710ea5428e2c32d146528ab38b7b028c-1
05f37390710ea5428e2c32d146528ab38b7b028c
PHxmaW1fcHJlZml4fD4KIiIiUmVuZGVyIGl0ZW1zIHVzaW5nIEppbmphMiB0ZW1wbGF0ZSBlbmdpbmUuIiIiCgppbXBvcnQgcGF0aGxpYgoKaW1wb3J0IGppbmphMgppbXBvcnQganNvbnBvaW50ZXIKCmZyb20gLi4gaW1wb3J0IHNvdXJjZQo8fGZpbV9ob2xlfD4KICAgIGpzb25zY2hlbWE9ewogICAgICAgICJ0eXBlIjogIm9iamVjdCIsCiAgICAgICAgInByb3BlcnRpZXMiOiB7CiAgICAgICAgICAgICJ0ZW1wbGF0ZSI6IHsidHlwZSI6ICJzdHJpbmcifSwKICAgICAgICAgICAgImNvbnRleHQiOiB7InR5cGUiOiAib2JqZWN0In0sCiAgICAgICAgICAgICJ0aGVtZXMiOiB7InR5cGUiOiAiYXJyYXkiLCAiaXRlbXMiOiB7InR5cGUiOiAic3RyaW5nIn19LAogICAgICAgIH0sCiAgICB9CikKZG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FkZXIoc3RyKHBhdGhsaWIuUGF0aCh0aGVtZSwgInRlbXBsYXRlcyIpKSkKICAgICAgICAgICAgICAgIGZvciB0aGVtZSBpbiB0aGVtZXMKICAgICAgICAgICAgXQo8fGZpbV9lbmR8Pg==
05f37390710ea5428e2c32d146528ab38b7b028c-5
05f37390710ea5428e2c32d146528ab38b7b028c
PHxmaW1fcHJlZml4fD4KIiIiUmVuZGVyIGl0ZW1zIHVzaW5nIEppbmphMiB0ZW1wbGF0ZSBlbmdpbmUuIiIiCgppbXBvcnQgcGF0aGxpYgoKPHxmaW1faG9sZXw+CmZyb20gLi5fbWlzYyBpbXBvcnQgcGFyYW1ldGVycwoKCkBwYXJhbWV0ZXJzKAogICAganNvbnNjaGVtYT17CiAgICAgICAgInR5cGUiOiAib2JqZWN0IiwKICAgICAgICAicHJvcGVydGllcyI6IHsKICAgICAgICAgICAgInRlbXBsYXRlIjogeyJ0eXBlIjogInN0cmluZyJ9LAogICAgICAgICAgICAiY29udGV4dCI6IHsidHlwZSI6ICJvYmplY3QifSwKICAgICAgICAgICAgInRoZW1lcyI6IHsidHlwZSI6ICJhcnJheSIsICJpdGVtcyI6IHsidHlwZSI6ICJzdHJpbmcifX0sCiAgICAgICAgfSwKICAgIH0KKQpkZWYgcHJvY2VzcyhhcHAsIHN0cmVhbSwgKiwgdGVtcGxhdGU9Iml0ZW0uajIiLCBjb250ZXh0PU5vbmUsIHRoZW1lcz1Ob25lKToKICAgICMgQmVjYXVzZSBpdCBpcyBlYXNpZXIgdG8gd3JpdGUgdGhlbWVzIGlmIHdlIGFzc3VtZSB0aGF0ICd0aGVtZScgdmFyaWFibGUKICAgICMgaXMgYWx3YXlzIGRlZmluZWQgaW4gY29udGV4dCBvZiB0ZW1wbGF0ZSwgbGV0J3MgZW5zdXJlIGl0IGlzIGFsd2F5cwogICAgIyBkZWZpbmVkIGluZGVlZC4gRnJhbmtseSwgSSdtIG5vdCBleGFjdGx5IHN1cmUgYWJvdXQgdGhpcyBsaW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RvX2NzdihmaWxlX25hbWUpCgoKCmlmIF9fbmFtZV9fID09ICdfX21haW5fXyc6CiAgICBzZXRfc2VlZF9udW1iZXIoNDIpCgogICAgZm9yIG51bSBpbiBbMTAsIDE1LCAxMDBdOgogICAgICAgICcnJwogICAgICAgIOagueaNruWIl+ihqOS4reeahOaVsOWtl++8jOeUn+aIkOaMh+WumuaVsOmHj+eahOagt+acrOaVsOaNrgogICAgICAgICcnJwogICAgICAgIGdlbmVyYXRlX2RhdGEoKDAuMCwgMS4wKSwgbnVtKQoKICAgIAo8fGZpbV9zdWZmaXh8PgoKZGVmIGdlbmVyYXRlX2RhdGEoCiAgICB4X3JhbmdlOiBUdXBsZVtmbG9hdCwgZmxvYXRdLAogICAgc2FtcGxlX251bWJlcjogaW50KSAtPiBOb25lOgo8fGZpbV9lbmR8Pg==
afacb89de3646a5a182b64112d9b4cfcb0cb7163-3
afacb89de3646a5a182b64112d9b4cfcb0cb7163
PHxmaW1fcHJlZml4fD4KJycnCkF1dGhvcjogSHVhY2h1YW4gUWl1ClN0dWRlbnQgSUQ6IDEyMTYzMTkzCkRhdGU6IDIwMjItMy0xMAonJycKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgoKaW1wb3J0IHJhbmRvbQpmcm9tIHR5cGluZyBpbXBvcnQgVHVwbGUKCjx8ZmltX2VuZHw+
afacb89de3646a5a182b64112d9b4cfcb0cb7163-4
afacb89de3646a5a182b64112d9b4cfcb0cb7163
PHxmaW1fcHJlZml4fD4KJycnCkF1dGhvcjogSHVhY2h1YW4gUWl1ClN0dWRlbnQgSUQ6IDEyMTYzMTkzCkRhdGU6IDIwMjItMy0xMAonJycKCmltcG9ydCByYW5kb20KZnJvbSB0eXBpbmcgaW1wb3J0IFR1cGxlCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KCmltcG9ydCBudW1weSBhcyBucAppbXBvcnQgcGFuZGFzIGFzIHBkCgo8fGZpbV9lbmR8Pg==
afacb89de3646a5a182b64112d9b4cfcb0cb7163-5
afacb89de3646a5a182b64112d9b4cfcb0cb7163
PHxmaW1fcHJlZml4fD4KCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KJycnCkF1dGhvcjogSHVhY2h1YW4gUWl1ClN0dWRlbnQgSUQ6IDEyMTYzMTkzCkRhdGU6IDIwMjItMy0xMAo8fGZpbV9lbmR8Pg==
ab7e2bd2d046e4d3e326646de6142d993928cc77-1
ab7e2bd2d046e4d3e326646de6142d993928cc77
PHxmaW1fcHJlZml4fD4KIyBiYXNlIHBhdGggdG8gWU9MTyBkaXJlY3RvcnkKTU9ERUxfUEFUSCA9ICJ5b2xvLWNvY28iCgojIGluaXRpYWxpemUgbWluaW11bSBwcm9iYWJpbGl0eSB0byBmaWx0ZXIgd2VhayBkZXRlY3Rpb25zIGFsb25nIHdpdGggdGhlCiMgdGhyZXNob2xkIHdoZW4gYXBwbHlpbmcgbm9uLW1heGltIHN1cHByZXNzaW9uCk1JTl9DT05GID0gMC4zCk5NU19USFJFU0ggPSAwLjMKCiMgc2hvdWxkIE5WSURJQSBDVURBIEdQVSBiZSB1c2VkPwpVU0VfR1BVID0gVHJ1ZQo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+CgojIGRlZmluZSB0aGUgbWluaW11bSBzYWZlIGRpc3RhbmNlIChpbiBwaXhlbHMpIHRoYXQgdHdvIHBlb3BsZSBjYW4gYmUgZnJvbSBlYWNoIG90aGVyCk1JTl9ESVNUQU5DRSA9IDUwCjx8ZmltX2VuZHw+
e609f17eca09b3084b7f409e8628d53e696abc46-1
e609f17eca09b3084b7f409e8628d53e696abc46
PHxmaW1fcHJlZml4fD4KIiIiCkZhY3RvcmlhbCBhbmFseXNpcyB1c2luZyBNRFMgYW5kIGFnZ2xvbWVyYXRpdmUgY2x1c3RlcmluZyAvIERhdGEKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09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ltcG9ydCBBZ2dsb21lcmF0aXZlQ2x1c3RlcmluZwo8fGZpbV9lbmR8Pg==
e609f17eca09b3084b7f409e8628d53e696abc46-2
e609f17eca09b3084b7f409e8628d53e696abc46
PHxmaW1fcHJlZml4fD4KIiIiCkZhY3RvcmlhbCBhbmFseXNpcyB1c2luZyBNRFMgYW5kIGFnZ2xvbWVyYXRpdmUgY2x1c3RlcmluZyAvIERhdGEKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQoKCj4+PiBmcm9tIHRlY2htaW5lcjIgaW1wb3J0ICoKPj4+IGRpcmVjdG9yeSA9ICIvd29ya3NwYWNlcy90ZWNobWluZXIyL2RhdGEvIgo+Pj4gZmlsZV9uYW1lID0gIi93b3Jrc3BhY2VzL3RlY2htaW5lcjIvc3BoaW54L2ltYWdlcy9mYWN0b3JpYWxfYW5hbHlzaXNfbWRzX21hcC5wbmciCj4+PiBmYWN0b3JpYWxfYW5hbHlzaXNfbWRzX2RhdGEoCi4uLiAgICAgJ2F1dGhvcl9rZXl3b3JkcycsIAouLi4gICAgIG1pbl9vY2M9MiwgCi4uLiAgICAgbl9jbHVzdGVycz00LCAKLi4uICAgICBkaXJlY3Rvcnk9ZGlyZWN0b3J5LAouLi4gKS5oZWFkKCkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIERpbS0xICAgICAgIERpbS0yICBDbHVzdGVyCmF1dGhvcl9rZXl3b3JkcyAgICAgICAgI2QgICNjICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIApmaW50ZWNoICAgICAgICAgICAgICAgIDEzOSAxMjg1ICAxOC43MjA4MzggIDEzOS45MTUxMjAgICAgICAgIDMKZmluYW5jaWFsIHRlY2hub2xvZ2llcyAyOCAgMjI1ICAgMjIuNjY2MTg3ICAgMjAuMzM3NjE2ICAgICAgICAxCmZpbmFuY2lhbCBpbmNsdXNpb24gICAgMTc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B0cnk6CiAgICAgICAgICAgIHlpZWxkCiAgICAgICAgZmluYWxseToKICAgICAgICAgICAgc2VsZi5pbl9sb29wID0gRmFsc2UKCiAgICBAY29udGV4dGxpYi5jb250ZXh0bWFuYWdlcgogICAgZGVmIHNjb3BlKHNlbGYpIC0+IHRwLkl0ZXJhdG9yW3RwLkRpY3Rbc3RyLCBib29sXV06CiAgICAgICAgbmV3X3Njb3BlOiB0cC5EaWN0W3N0ciwgYm9vbF0gPSB7fQogICAgICAgIHNlbGYuc3RhY2suYXBwZW5kKG5ld19zY29wZSkKICAgICAgICB0cnk6CiAgICAgICAgICAgIHlpZWxkIG5ld19zY29wZQogICAgICAgIGZpbmFsbHk6CiAgICAgICAgICAgIHNlbGYuc3RhY2sucG9wKCkKCiAgICBAY29udGV4dGxpYi5jb250ZXh0bWFuYWdlcgogICAgZGVmIG5ld19jbGFzcyhzZWxmLCBuYW1lOiB0cC5PcHRpb25hbFtzdG10LkNsYXNzU3RtdF0pIC0+IHRwLkl0ZXJhdG9yW05vbmVdOgogICAgICAgIHNlbGYubG94X2NsYXNzLCBuYW1lID0gbmFtZSwgc2VsZi5sb3hfY2xhc3MKICAgICAgICB0cnk6CiAgICAgICAgICAgIHlpZWxkCiAgICAgICAgZmluYWxseToKPHxmaW1faG9sZXw+CiAgICBkZWYgZGVmaW5lKHNlbGYsIHRva2VuOiBlbnYuRW52S2V5KSAtPiBOb25lOgogICAgICAgICIiIgogICAgICAgIERlY2xhcmVzIGFuZCBkZWZpbmVzIHRoZSB0b2tlbi4gRXF1aXZhbGVudCB0byBydW5uaW5nOgoKICAgICAgICB3aXRoIHNlbGYuZGVjbGFyZSh0b2tlbik6CiAgICAgICAgICAgIHBhc3MKICAgICAgICAiIiIKICAgICAgICB3aXRoIHNlbGYuZGVjbGFyZSh0b2tlbik6CiAgICAgICAgICAgIHBhc3MKCiAgICBkZWYgZXJyb3IoCiAgICAgICAgc2VsZiwgdG9rZW46IHRwLlVuaW9uW2Vudi5FbnZLZXksIGludF0sIG1lc3NhZ2U6IHN0ciwgKiwgcmF3X2xpbmU9RmFsc2UKICAgICkgLT4gTm9uZToKICAgICAgICBsZS5lcnJvcigKICAgICAgICAgICAgZW52LmdldF9saW5lKHRva2VuKSwKICAgICAgICAgICAgbWVzc2FnZSwKICAgICAgICAgICAgbGUuRXJyb3JSZXR1cm5zLlJFU09MVkVSX0VSUk9SLAogICAgICAgICAgICByYXdfbGluZT1yYXdfbGluZSwKICAgICAgICApCiAgICAgICAgc2VsZi5lcnJvcmVkID0gVHJ1ZQo8fGZpbV9zdWZmaXh8PgogICAgICAgICAgICBzZWxmLmxveF9jbGFzcyA9IG5hbWUKCjx8ZmltX2VuZHw+
a7111910773042151c22655641070e942e9722c2-3
a7111910773042151c22655641070e942e9722c2
PHxmaW1fcHJlZml4fD4KZnJvbSBfX2Z1dHVyZV9fIGltcG9ydCBhbm5vdGF0aW9ucwoKaW1wb3J0IGNvbnRleHRsaWIKaW1wb3J0IGRhdGFjbGFzc2VzCmltcG9ydCB0eXBpbmcgYXMgdHAKCmltcG9ydCBweWxveC5lbnZpcm9tZW50IGFzIGVudgppbXBvcnQgcHlsb3guZXJyb3JfZGVjIGFzIGVkCmltcG9ydCBweWxveC5mdW5jdGlvbnMgYXMgZm4KaW1wb3J0IHB5bG94LmxveF9lcnJvcnMgYXMgbGUKaW1wb3J0IHB5bG94Lm1pc2NfdXRpbHMgYXMgbXUKCmlmIHRwLlRZUEVfQ0hFQ0tJTkc6CiAgICBmcm9tIHB5bG94IGltcG9ydCBzdG10CiAgICBpbXBvcnQgcHlsb3gubG94X2NsYXNzIGFzIGxjCiAgICBpbXBvcnQgcHlsb3guYWJzdHJhY3RfZXhlY3MgYXMgYWUKCiAgICBUQUUgPSB0cC5UeXBlVmFyKCJUQUUiLCBib3VuZD1hZS5BYnN0cmFjdEV4ZWMpCgoKQGVkLmxveF9lcnJvcl9oYW5kbGluZyhsZS5FcnJvclJldHVybnMuUkVTT0xWRVJfRVJST1IpCmRl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cCA9IEZhbHNlCgogICAgQGNvbnRleHRsaWIuY29udGV4dG1hbmFnZXIKICAgIGRlZiBzY29wZShzZWxmKSAtPiB0cC5JdGVyYXRvclt0cC5EaWN0W3N0ciwgYm9vbF1dOgogICAgICAgIG5ld19zY29wZTogdHAuRGljdFtzdHIsIGJvb2xdID0ge30KICAgICAgICBzZWxmLnN0YWNrLmFwcGVuZChuZXdfc2NvcGUpCiAgICAgICAgdHJ5OgogICAgICAgICAgICB5aWVsZCBuZXdfc2NvcGUKICAgICAgICBmaW5hbGx5OgogICAgICAgICAgICBzZWxmLnN0YWNrLnBvcCgpCgogICAgQGNvbnRleHRsaWIuY29udGV4dG1hbmFnZXIKICAgIGRlZiBuZXdfY2xhc3Moc2VsZiwgbmFtZTogdHAuT3B0aW9uYWxbc3RtdC5DbGFzc1N0bXRdKSAtPiB0cC5JdGVyYXRvcltOb25lXToKICAgICAgICBzZWxmLmxveF9jbGFzcywgbmFtZSA9IG5hbWUsIHNlbGYubG94X2NsYXNzCiAgICAgICAgdHJ5OgogICAgICAgICAgICB5aWVsZAogICAgICAgIGZpbmFsbHk6CiAgICAgICAgICAgIHNlbGYubG94X2NsYXNzID0gbmFtZQoKICAgIGRlZiBkZWZpbmUoc2VsZiwgdG9rZW46IGVudi5FbnZLZXkpIC0+IE5vbmU6CiAgICAgICAgIiIiCiAgICAgICAgRGVjbGFyZXMgYW5kIGRlZmluZXMgdGhlIHRva2VuLiBFcXVpdmFsZW50IHRvIHJ1bm5pbmc6CgogICAgICAgIHdpdGggc2VsZi5kZWNsYXJlKHRva2VuKToKICAgICAgICAgICAgcGFzcwogICAgICAgICIiIgogICAgICAgIHdpdGggc2VsZi5kZWNsYXJlKHRva2VuKToKICAgICAgICAgICAgcGFzcwoKICAgIGRlZiBlcnJvcigKICAgICAgICBzZWxmLCB0b2tlbjogdHAuVW5pb25bZW52LkVudktleSwgaW50XSwgbWVzc2FnZTogc3RyLCAqLCByYXdfbGluZT1GYWxzZQogICAgKSAtPiBOb25lOgogICAgICAgIGxlLmVycm9yKAogICAgICAgICAgICBlbnYuZ2V0X2xpbmUodG9rZW4pLAogICAgICAgICAgICBtZXNzYWdlLAogICAgICAgICAgICBsZS5FcnJvclJldHVybnMuUkVTT0xWRVJfRVJST1IsCiAgICAgICAgICAgIHJhd19saW5lPXJhd19saW5lLAogICAgICAgICkKICAgICAgICBzZWxmLmVycm9yZWQgPSBUcnVlCjx8ZmltX3N1ZmZpeHw+CiAgICAgICAgdHJ5OgogICAgICAgICAgICB5aWVsZAogICAgICAgIGZpbmFsbHk6CiAgICAgICAgICAgIHNlbGYuY3VycmVudF9mdW5jdGlvbiA9IHNlbGYuZW5jbG9zaW5nX2Z1bmN0aW9uCjx8ZmltX2VuZHw+
a7111910773042151c22655641070e942e9722c2-5
a7111910773042151c22655641070e942e9722c2
PHxmaW1fcHJlZml4fD4KZnJvbSBfX2Z1dHVyZV9fIGltcG9ydCBhbm5vdGF0aW9ucwoKaW1wb3J0IGNvbnRleHRsaWIKaW1wb3J0IGRhdGFjbGFzc2VzCmltcG9ydCB0eXBpbmcgYXMgdHAKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgoKaW1wb3J0IHB5bG94LmVudmlyb21lbnQgYXMgZW52CmltcG9ydCBweWxveC5lcnJvcl9kZWMgYXMgZWQKaW1wb3J0IHB5bG94LmZ1bmN0aW9ucyBhcyBmbgo8fGZpbV9lbmR8Pg==
597f0f7bb0ed36e6643ff64d00e4a94ffe58749e-1
597f0f7bb0ed36e6643ff64d00e4a94ffe58749e
PHxmaW1fcHJlZml4fD4KIyAtKi0gY29kaW5nOiB1dGYtOCAtKi0KaW1wb3J0IHB5dHoKZnJvbSBpc284NjAxIGltcG9ydCBwYXJzZV9kYXRlCmZyb20gZGF0ZXRpbWUgaW1wb3J0IGRhdGV0aW1lLCB0aW1lZGVsdGEKaW1wb3J0IG9zCmltcG9ydCB1cmxsaWIKaW1wb3J0IHN5cwoKZGVmIGdldF9zY2VuYXJp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KICAgICAgICB1J9Cy0LjQutC+0L3QsNC90L3RjyDRgNC+0LHRltGCJzogdSdleGVjdXRpb25PZldvcmtzJywKICAgICAgICB1J9C90LDQtNCw0L3QvdGPINC/0L7RgdC70YPQsyc6IHUnc3VibWl0dGluZ1NlcnZpY2VzJywKICAgICAgICB1J9GW0L3RiNCwINC/0L7QtNGW0Y8nOiB1J2Fub3RoZXJFdmVudCcsCiAgICB9LmdldChzdHJpbmcsIHN0cmluZykKCmRlZiBnZXRfbWlsZXN0b25lc19jb2RlKHN0cmluZyk6CiAgICBzdHJpbmcgPSBzdHJpbmcuc3RyaXAoKQogICAgcmV0dXJuIHsKICAgICAgICB1J9CQ0LLQsNC90YEnOiB1J3ByZXBheW1lbnQnLAogICAgICAgIHUn0J9p0YHQu9GP0L7Qv9C70LDRgtCwJzogdSdwb3N0cGF5bWVudCcsCiAgICB9LmdldChzdHJpbmcsIHN0cmluZykKCmRlZiBnZXRfbWlsZXN0b25lc19kdXJhdGlvbl90eXBlKHN0cmluZyk6CiAgICBzdHJpbmcgPSBzdHJpbmcuc3RyaXAoKQogICAgcmV0dXJuIHsKICAgICAgICB1J9GA0L7QsdC+0YfRlic6IHUnd29ya2luZycsCiAgICAgICAgdSfQsdCw0L3QutGW0LLRgdGM0LrRlic6IHUnYmFua2luZycsCiAgICAgICAgdSfQutCw0LvQtdC90LTQsNGA0L3Rlic6IHUnY2FsZW5kYXInLAogICAgICAgIHUn0YDQvtCx0L7Rh9C40YUnOiB1J3dvcmtpbmcnLAogICAgICAgIHUn0LHQsNC90LrRltCy0YHRjNC60LjRhSc6IHUnYmFua2luZycsCiAgICAgICAgdSfQutCw0LvQtdC90LTQsNGA0L3QuNGFJzogdSdjYWxlbmRhcicsCiAgICB9LmdldChzdHJpbmcsIHN0cmluZykKCmRlZiBnZXRfbWFpblByb2N1cmVtZW50Q2F0ZWdvcnkoc3RyaW5nKToKICAgIHN0cmluZyA9IHN0cmluZy5zdHJpcCgpCiAgICByZXR1cm4gewog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h8PgoKICAgIGNsYXNzIE1ldGE6CiAgICAgICAgbW9kZWwgPSAnemVyb3B1c2guUHVzaERldmljZScKICAgICAgICBzdHJhdGVneSA9IGZhY3RvcnkuQ1JFQVRFX1NUUkFURUdZCjx8ZmltX2VuZHw+
af23d5cd67119b03bfc563e864ebd8604db6905e-1
af23d5cd67119b03bfc563e864ebd8604db6905e
PHxmaW1fcHJlZml4fD4KZGVmIG1haW4oKSAtPiBOb25lOgogICAgeCA9IGludChpbnB1dCgpKQogICAgcSwgciA9IGRpdm1vZCh4LCAxMSkKICAgIHByaW50KHEgKiAyICsgKHIgPiAwKSArIChyID4gNikpCgoKaWYgX19uYW1lX18gPT0gIl9fbWFpbl9fIjoKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgogICAgbWFpbigpCjx8ZmltX2VuZHw+
af23d5cd67119b03bfc563e864ebd8604db6905e-2
af23d5cd67119b03bfc563e864ebd8604db6905e
PHxmaW1fcHJlZml4fD4KZGVmIG1haW4oKSAtPiBOb25lOgogICAgeCA9IGludChpbnB1dCgpKQogICAgcSwgciA9IGRpdm1vZCh4LCAxMSkKICAgIHByaW50KHEgKiAyICsgKHIgPiAwKSArIChyID4gNikpCgoKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgppZiBfX25hbWVfXyA9PSAiX19tYWluX18iOgogICAgbWFpbigpCjx8ZmltX2VuZHw+
af23d5cd67119b03bfc563e864ebd8604db6905e-3
af23d5cd67119b03bfc563e864ebd8604db6905e
PHxmaW1fcHJlZml4fD4KCjx8ZmltX2hvbGV8PgoKCmlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6CiAgICBtYWluKCkKPHxmaW1fc3VmZml4fD4KZGVmIG1haW4oKSAtPiBOb25lOgogICAgeCA9IGludChpbnB1dCgpKQogICAgcSwgciA9IGRpdm1vZCh4LCAxMSkKICAgIHByaW50KHEgKiAyICsgKHIgPiAwKSArIChyID4gNikpCjx8ZmltX2VuZHw+
af23d5cd67119b03bfc563e864ebd8604db6905e-4
af23d5cd67119b03bfc563e864ebd8604db6905e
PHxmaW1fcHJlZml4fD4KCjx8ZmltX2hvbGV8PgoKCmlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6CiAgICBtYWluKCkKPHxmaW1fc3VmZml4fD4KZGVmIG1haW4oKSAtPiBOb25lOgogICAgeCA9IGludChpbnB1dCgpKQogICAgcSwgciA9IGRpdm1vZCh4LCAxMSkKICAgIHByaW50KHEgKiAyICsgKHIgPiAwKSArIChyID4gNikpCjx8ZmltX2VuZHw+
af23d5cd67119b03bfc563e864ebd8604db6905e-5
af23d5cd67119b03bfc563e864ebd8604db6905e
PHxmaW1fcHJlZml4fD4KZGVmIG1haW4oKSAtPiBOb25lOgogICAgeCA9IGludChpbnB1dCgpKQogICAgcSwgciA9IGRpdm1vZCh4LCAxMSkKICAgIHByaW50KHEgKiAyICsgKHIgPiAwKSArIChyID4gNikpCgoKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgppZiBfX25hbWVfXyA9PSAiX19tYWluX18iOgogICAgbWFpbigpCjx8ZmltX2VuZHw+
af65c2623e0492072ff0705b4cef798c2dee4ee9-1
af65c2623e0492072ff0705b4cef798c2dee4ee9
PHxmaW1fcHJlZml4fD4KIyAtKi0gY29kaW5nOiB1dGYtOCAtKi0KCmltcG9ydCBtYXRoCmltcG9ydCBjb2xsZWN0aW9ucwppbXBvcnQgYmlzZWN0CmltcG9ydCBoZWFwcQppbXBvcnQgdGltZQppbXBvcnQgcmFuZG9tCgoiIiIKPHxmaW1faG9sZXw+Cgo8fGZpbV9zdWZmaXh8PgpjcmVhdGVkIGJ5IHNoaHVhbiBhdCAyMDE3LzEwLzQgMTE6NTUKCkMuIEdvdHRhIEdvIEZhc3QKdGltZSBsaW1pdCBwZXIgdGVzdDIgc2Vjb25kcwo8fGZpbV9lbmR8Pg==
e6537a193dea6fcedfc5337a0283b52df55ba498-1
e6537a193dea6fcedfc5337a0283b52df55ba498
PHxmaW1fcHJlZml4fD4KIyAtKi0gY29kaW5nOiB1dGYtOCAtKi0KCmZyb20gLnRyYWluIGltcG9ydCBtYWluIGFzIGNvbnYyZF90cmFpbgpmcm9tIC5wcmVkaWN0IGltcG9ydCBwcmVkaWN0IGFzIGNvbnYyZF9wcmVkaWN0Cjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KCl9fYWxsX18gPSBbJ2NvbnYyZF90cmFpbicsICdjb252MmRfcHJlZGljdCddCjx8ZmltX2VuZHw+
e6537a193dea6fcedfc5337a0283b52df55ba498-2
e6537a193dea6fcedfc5337a0283b52df55ba498
PHxmaW1fcHJlZml4fD4KIyAtKi0gY29kaW5nOiB1dGYtOCAtKi0KCmZyb20gLnRyYWluIGltcG9ydCBtYWluIGFzIGNvbnYyZF90cmFpbgpmcm9tIC5wcmVkaWN0IGltcG9ydCBwcmVkaWN0IGFzIGNvbnYyZF9wcmVkaWN0Cgo8fGZpbV9ob2xlfD4KCjx8ZmltX3N1ZmZpeHw+Cl9fYWxsX18gPSBbJ2NvbnYyZF90cmFpbicsICdjb252MmRfcHJlZGljdCddCjx8ZmltX2VuZHw+
e6537a193dea6fcedfc5337a0283b52df55ba498-3
e6537a193dea6fcedfc5337a0283b52df55ba498
PHxmaW1fcHJlZml4fD4KIyAtKi0gY29kaW5nOiB1dGYtOCAtKi0KCjx8ZmltX2hvbGV8PgoKPHxmaW1fc3VmZml4fD4KZnJvbSAudHJhaW4gaW1wb3J0IG1haW4gYXMgY29udjJkX3RyYWluCmZyb20gLnByZWRpY3QgaW1wb3J0IHByZWRpY3QgYXMgY29udjJkX3ByZWRpY3QKCl9fYWxsX18gPSBbJ2NvbnYyZF90cmFpbicsICdjb252MmRfcHJlZGljdCddCjx8ZmltX2VuZHw+
05f74472609127b8744c548b88817abc80a68c4a-1
05f74472609127b8744c548b88817abc80a68c4a
PHxmaW1fcHJlZml4fD4KaW1wb3J0IHRpbWUKaW1wb3J0IG51bXB5IGFzIG5wCmltcG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