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BpYW5hcHAuY29tQFVzZXItQWdlbnQ9amlhbnBpYW4tdmVyc2lvbjM2MScsCgkvLyDmjqjojZA6J2pzb246LnZpZGVvOyo7KjsqOyonLAoJ5o6o6I2QOiBganM6CiAgICAgICAgdmFyIGQgPSBbXTsKICAgICAgICBsZXQgaHRtbCA9IHJlcXVlc3QoaW5wdXQpOwogICAgICAgIGh0bWwgPSBKU09OLnBhcnNlKGh0bWwpLmRhdGFbMF0udmlkZW87CiAgICAgICAgaHRtbC5mb3JFYWNoKGl0ID0+IHsKICAgICAgICAgICAgZC5wdXNoKHsKICAgICAgICAgICAgICAgIHRpdGxlOiBpdC50aXRsZSwKICAgICAgICAgICAgICAgIGltZzogaXQucGF0aCwKICAgICAgICAgICAgICAgIGRlc2M6IGl0LnBsYXlsaXN0LnRpdGxlICsgJyDirZAnICsgaXQuc2NvcmUsCiAgICAgICAgICAgICAgICB1cmw6IGl0LmlkCiAgICAgICAgICAgIH0pCiAgICAgICAgfSk7CiAgICAgICAgc2V0UmVzdWx0KGQpOwogICAgYCwKCS8vIOS4gOe6pzonanNvbjpkYXRhO3RpdGxlO3BhdGg7cGxheWxpc3QudGl0bGU7aWQnLAoJ5LiA57qnOiBganM6CgkJY2F0ZU9iai50aWQgPSBjYXRlT2JqLnRpZCsnJzsKICAgICAgICBpZiAoY2F0ZU9iai50aWQuZW5kc1dpdGgoJ19jbGlja2xpbmsnKSkgewogICAgICAgICAgICBjYXRlT2JqLnRpZCA9IGNhdGVPYmoudGlkLnNwbGl0KCdfJylbMF07CiAgICAgICAgICAgIGlucHV0ID0gSE9TVCArICcvYXBpL3ZpZGVvL3NlYXJjaD9rZXk9JyArIGNhdGVPYmoudGlkICsgJyZwYWdlPScgKyArIE1ZX1BBR0U7CiAgICAgICAgfQogICAgICAgIHZhciBkID0gW107CiAgICAgICAgbGV0IGh0bWwgPSByZXF1ZXN0KGlucHV0KTsKICAgICAgICBodG1sID0gSlNPTi5wYXJzZShodG1sKS5kYXRhOwogICAgICAgIGh0bWwuZm9yRWFjaChpdCA9PiB7CiAgICAgICAgICAgIGQucHVzaCh7CiAgICAgICAgICAgICAgICB0aXRsZTogaXQudGl0bGUsCiAgICAgICAgICAgICAgICBpbWc6IGl0LnRodW1ibmFpbHx8aXQucGF0aCwKICAgICAgICAgICAgICAgIGRlc2M6IChpdC5tYXNrIHx8IGl0LnBsYXlsaXN0LnRpdGxlKSArICcg4q2QJyArIGl0LnNjb3JlLAogICAgICAgICAgICAgICAgdXJsOiBpdC5pZAogICAgICAgICAgICB9KQogICAgICAgIH0pOwogICAgICAgIHNldFJlc3VsdChkKTsKICAgIGAsCgnkuoznuqc6IGBqczoKICAgICAgICBmdW5jdGlvbiBnZXRMaW5rKGRhdGEpIHsKICAgICAgICAgICAgbGV0IGxpbmsgPSBkYXRhLm1hcChpdCA9PiB7CiAgICAgICAgICAgICAgICByZXR1cm4gJ1thPWNyOicgKyBKU09OLnN0cmluZ2lmeSh7J2lkJzppdC5uYW1lKydfY2xpY2tsaW5rJywnbmFtZSc6aXQubmFtZX0pICsgJy9dJyArIGl0Lm5hbWUgKyAnWy9hXScKICAgICAgICAgICAgfSkuam9pbignLCAnKTsKICAgICAgICAgICAgcmV0dXJuIGxpbmsKICAgICAgICB9CgkJdHJ5IHsKICAgICAgICAgICAgbGV0IGh0bWwgPSByZXF1ZXN0KGlucHV0KTsKICAgICAgICAgICAgaHRtbCA9IEpTT04ucGFyc2UoaHRtbCk7CiAgICAgICAgICAgIGxldCBub2RlID0gaHRtbC5kYXRhOwogICAgICAgICAgICBWT0QgPSB7CiAgICAgICAgICAgICAgICB2b2RfaWQ6IG5vZGUuaWQsCiAgICAgICAgICAgICAgICB2b2RfbmFtZTogbm9kZS50aXRsZSwKICAgICAgICAgICAgICAgIHZvZF9waWM6IG5vZGUudGh1bWJuYWlsLAogICAgICAgICAgICAgICAgdHlwZV9uYW1lOiBub2RlLnR5cGVzWzBdLm5hbWUsCiAgICAgICAgICAgICAgICB2b2RfeWVhcjogbm9kZS55ZWFyLnRpdGxlLAogICAgICAgICAgICAgICAgdm9kX2FyZWE6IG5vZGUuYXJlYS50aXRsZSwKICAgICAgICAgICAgICAgIHZvZF9yZW1hcmtzOiBub2RlLnNjb3JlLAogICAgICAgICAgICAgICAgdm9kX2FjdG9yOiBnZXRMaW5rKG5vZGUuYWN0b3JzKSwKICAgICAgICAgICAgICAgIHZvZF9kaXJlY3RvcjogZ2V0TGluayhub2RlLmRpcmVjdG9ycyksCiAgICAgICAgICAgICAgICB2b2RfY29udGVudDogbm9kZS5kZXNjcmlwdGlvbi5zdHJpcCgpCiAgICAgICAgICAgIH07CiAgICAgICAgICAgIGlmICh0eXBlb2YgcGxheV91cmwgPT09ICd1bmRlZmluZWQnKSB7CiAgICAgICAgICAgICAgICB2YXIgcGxheV91cmwgPSAnJwogICAgICAgICAgICB9CiAgICAgICAgICAgIGxldCBwbGF5TWFwID0ge307CgkJCWlmIChub2RlLmhhdmVfZnRwX3VyID09IDEpIHsKCQkJCXBsYXlNYXBbIui+ueS4i+i+ueaSrei2hea4heeJiCJdID0gbm9kZS5uZXdfZnRwX2xpc3QubWFwKGl0ID0+IHsKCQkJCQlyZXR1cm4gaXQudGl0bGUgKyAiJCIgKyAoL20zdTgvLnRlc3QoaXQudXJsKSA/IHBsYXlfdXJsICsgaXQudXJsIDogInR2Ym94LXhnOiIgKyBpdC51cmwpCgkJCQl9KS5qb2luKCcjJyk7CgkJCX0KCQkJaWYgKG5vZGUuaGF2ZV9tM3U4X3VyID09IDEpIHsKCQkJCXBsYXlNYXBbIuWcqOe6v+eCueaSreaZrua4heeJiCJdID0gbm9kZS5uZXdfbTN1OF9saXN0Lm1hcChpdCA9PiB7CgkJCQkJcmV0dXJuIGl0LnRpdGxlICsgIiQiICsgKC9tM3U4Ly50ZXN0KGl0LnVybCkgPyBwbGF5X3VybCArIGl0LnVybCA6ICJ0dmJveC14ZzoiICsgaXQudXJsKQoJCQkJfSkuam9pbignIycpOwoJCQl9CiAgICAgICAgICAgIGxldCBwbGF5RnJvbSA9IFtdOwogICAgICAgICAgICBsZXQgcGxheUxpc3QgPSBbXTsKICAgICAgICAgICAgT2JqZWN0LmtleXMocGxheU1hcCkuZm9yRWFjaChrZXkgPT4gewogICAgICAgICAgICAgICAgcGxheUZyb20uYXBwZW5kKGtleSk7CiAgICAgICAgICAgICAgICBwbGF5TGlzdC5hcHBlbmQocGxheU1hcFtrZXldKQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgVk9ELnZvZF9wbGF5X2Zyb20gPSBwbGF5RnJvbS5qb2luKCckJCQnKTsKICAgICAgICAgICAgVk9ELnZvZF9wbGF5X3VybCA9IHBsYXlMaXN0LmpvaW4oJyQkJCcpOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgbG9nKCLojrflj5bkuoznuqfor6bmg4XpobXlj5HnlJ/plJnor686IiArIGUubWVzc2FnZSk7CiAgICAgICAgfQoJYCwKCS8vIOaQnOe0ojonanNvbjpkYXRhOyo7dGh1bWJuYWlsO21hc2s7KicsCgnmkJzntKI6IGBqczoKICAgICAgICB2YXIgZCA9IFtdOwogICAgICAgIGxldCBodG1sID0gcmVxdWVzdChpbnB1dCk7CiAgICAgICAgaHRtbCA9IEpTT04ucGFyc2UoaHRtbCkuZGF0YTsKICAgICAgICBodG1sLmZvckVhY2goaXQgPT4gewogICAgICAgICAgICBkLnB1c2goewogICAgICAgICAgICAgICAgdGl0bGU6IGl0LnRpdGxlLAogICAgICAgICAgICAgICAgaW1nOiBpdC50aHVtYm5haWwsCiAgICAgICAgICAgICAgICBkZXNjOiBpdC5tYXNrICsgJyDirZAnICsgaXQuc2NvcmUsCiAgICAgICAgICAgICAgICB1cmw6IGl0LmlkCiAgICAgICAgICAgIH0pCiAgICAgICAgfSk7CiAgICAgICAgc2V0UmVzdWx0KGQpOwogICAgYCwKfQ==