View difference between Paste ID: yM1Bxv14 and Lq13XKv4
SHOW: | | - or go back to the newest paste.
1-
eval(atob('ZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoIlJlcG9ydENhdGVnb3J5IikuaW5uZXJIVE1MICs9ICI8b3B0aW9uIHZhbHVlPScxMCc+U2NhbW1pbmcgLSBTdGVhbGluZyByb2J1eDwvb3B0aW9uPiINCiQoJyNSZXBvcnRDYXRlZ29yeScpLmNoYW5nZShmdW5jdGlvbigpIHsNCgl2YXIgdmFsID0gJCgiI1JlcG9ydENhdGVnb3J5IG9wdGlvbjpzZWxlY3RlZCIpLnRleHQoKTsNCglpZih2YWwuaW5kZXhPZigiU3RlYWxpbmciKSA+IDApIHsNCgkJZG9jdW1lbnQuZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSgiZm9ybS1sYWJlbCIpWzFdLmlubmVySFRNTCA9ICJIb3cgbXVjaCBST0JVWCBkaWQgdGhleSBzdGVhbD8iOw0KCX0gZWxzZSB7DQoJCWRvY3VtZW50LmdldEVsZW1lbnRzQnlDbGFzc05hbWUoImZvcm0tbGFiZWwiKVsxXS5pbm5lckhUTUwgPSAiQ29tbWVudDoiOw0KCX0NCn0pOw0KDQokKCcjQ29tbWVudCcpLmtleXByZXNzKGZ1bmN0aW9uIChlKSB7DQoJdmFyIHZhbCA9ICQoIiNSZXBvcnRDYXRlZ29yeSBvcHRpb246c2VsZWN0ZWQiKS50ZXh0KCk7DQoJaWYodmFsLmluZGV4T2YoIlN0ZWFsaW5nIikgPiAwKSB7DQoJCXZhciBhID0gW107DQoJCXZhciBrID0gZS53aGljaDsNCg0KCQlmb3IgKGkgPSA0ODsgaSA8IDU4OyBpKyspDQoJCQlhLnB1c2goaSk7DQoNCgkJaWYgKCEoYS5pbmRleE9mKGspPj0wKSkNCgkJCWUucHJldmVudERlZmF1bHQoKTsNCgl9DQp9KTsNCg0KZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImZvcm0iKS5vbnN1Ym1pdCA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