xiaomianao666

小程序:剪贴板

May 1st, 2024
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@剪贴板@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5Ymq6LS05p2/IiwiYXV0aG9yIjoiQCIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2Z5Y2xhc3MjI2Z5cGFnZSIsInZlcnNpb24iOjAsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiLlsI/nqIvluo8m572R6aG1IiwidHlwZSI6Im90aGVyIiwiY2xhc3NfdXJsIjoiYXBwJndlYiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxuLy9sb2coTVlfVVJMKVxudmFyIHg1cGFnZSA9IGdldFZhcihNWV9SVUxFLnRpdGxlICsgXCJjbGlwYm9hcmRcIiwgXCJcIik7XG5pZiAoeDVwYWdlICE9IFwiXCIgJiYgeDVwYWdlICE9IFwiMVwiKSB7XG4gICAgcHV0TXlWYXIoXCJwYWdlXCIsIHg1cGFnZSk7XG59O1xuTVlfVVJMID0gTVlfVVJMLnNwbGl0KFwiIyNcIilbMV07XG52YXIgZCA9IFtdO1xudmFyIHVybCA9ICdodHRwczovL3Bhc3RlYmluLmNvbS91L3hpYW9taWFuYW82NjYvJyArIGdldE15VmFyKFwicGFnZVwiLCBcIjFcIik7XG5cbmlmIChNWV9VUkwgPT0gXCJ3ZWJcIikge1xuICAgIGQucHVzaCh7XG4gICAgICAgIGRlc2M6ICdmbG9hdCYmdG9wJyxcbiAgICAgICAgdXJsOiB1cmwsXG4gICAgICAgIGNvbF90eXBlOiAneDVfd2Vidmlld19zaW5nbGUnLFxuICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgdXJsSW50ZXJjZXB0b3I6ICQudG9TdHJpbmcoKE1ZX1JVTEUpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoaW5wdXQuaW5jbHVkZXMoJyNpbXBvcnQnKSkge1xuICAgICAgICAgICAgICAgICAgICBpbnB1dCA9IGlucHV0LnJlcGxhY2UoXCJodHRwczovL3Bhc3RlYmluLmNvbS9cIiwgXCJodHRwczovL3Bhc3RlYmluLmNvbS9yYXcvXCIpLnJlcGxhY2UoXCIjaW1wb3J0XCIsIFwiXCIpO1xuICAgICAgICAgICAgICAgICAgICBsb2coaW5wdXQpO1xuICAgICAgICAgICAgICAgICAgICBsZXQgdXJsID0gaW5wdXQuc3BsaXQoXCImXCIpWzBdO1xuICAgICAgICAgICAgICAgICAgICBsZXQgcGFnZSA9IGlucHV0LnNwbGl0KFwiJlwiKVsxXTtcbiAgICAgICAgICAgICAgICAgICAgbG9nKHBhZ2UpO1xuICAgICAgICAgICAgICAgICAgICBsZXQgaHRtbCA9IHJlcXVlc3QodXJsKTtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGFyciA9IHBkZmEoaHRtbCwgXCJib2R5XCIpO1xuICAgICAgICAgICAgICAgICAgICB2YXIgdGV4dCA9IGFyci5tYXAoaXQgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBkZmgoaXQsIFwiYm9keSYmVGV4dFwiKTtcbiAgICAgICAgICAgICAgICAgICAgfSkuam9pbihcIiYmXCIpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJC50b1N0cmluZygodGV4dCwgTVlfUlVMRSwgcGFnZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgZmJhLnB1dFZhcihNWV9SVUxFLnRpdGxlICsgXCJjbGlwYm9hcmRcIiwgcGFnZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZnlfYnJpZGdlX2FwcC5pbXBvcnRSdWxlKHRleHQpO1xuICAgICAgICAgICAgICAgICAgICB9LCB0ZXh0LCBNWV9SVUxFLCBwYWdlKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sIE1ZX1JVTEUpLFxuICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKHRpdGxlKSA9PiB7XG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gaW1ncygpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IGRvY3VtZW50LmxvY2F0aW9uLmhyZWY7XG4gICAgICAgICAgICAgICAgICAgIGxldCBwYWdlID0gMTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKC9cXC9cXGQrJC8udGVzdCh1cmwpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBwYWdlID0gdXJsLnNwbGl0KFwiL1wiKS5zbGljZSgtMSlbMF07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgaWYgKHBhZ2UgPiAxKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBmYmEubG9nKHBhZ2UpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZmJhLnB1dFZhcih0aXRsZSArIFwiY2xpcGJvYXJkXCIsIHBhZ2UpO1xuICAgICAgICAgICAgICAgICAgICB2YXIgYXJyID0gQXJyYXkuZnJvbShkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKFwidGFibGUgYVwiKSk7XG4gICAgICAgICAgICAgICAgICAgIHZhciBsaXN0cyA9IGFyci5maWx0ZXIoeCA9PiAheC5ocmVmLmluY2x1ZGVzKCcvYXJjaGl2ZS9qYXZhc2NyaXB0JykpO1xuICAgICAgICAgICAgICAgICAgICBsaXN0cy5mb3JFYWNoKHggPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHguaHJlZi5pbmNsdWRlcyhcIiNpbXBvcnRcIikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB4LmhyZWYgPSB4LmhyZWYgKyBcIiNpbXBvcnQmXCIgKyBwYWdlO1xuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGltZ3MoKTtcbiAgICAgICAgICAgICAgICAvLyDorrDlvZXliY3kuIDkuKrmu5rliqjkvY3nva5cbiAgICAgICAgICAgICAgICBsZXQgYmVmb3JlU2Nyb2xsVG9wID0gMDtcblxuICAgICAgICAgICAgICAgIGZ1bmN0aW9uIGhhbmRsZVNjcm9sbCgpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8g6Led6aG26YOoXG4gICAgICAgICAgICAgICAgICAgIHZhciBzY3JvbGxUb3AgPVxuICAgICAgICAgICAgICAgICAgICAgICAgZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50LnNjcm9sbFRvcCB8fCBkb2N1bWVudC5ib2R5LnNjcm9sbFRvcDtcbiAgICAgICAgICAgICAgICAgICAgLy8g5Y+v6KeG5Yy66auY5bqmXG4gICAgICAgICAgICAgICAgICAgIHZhciBjbGllbnRIZWlnaHQgPVxuICAgICAgICAgICAgICAgICAgICAgICAgZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50LmNsaWVudEhlaWdodCB8fCBkb2N1bWVudC5ib2R5LmNsaWVudEhlaWdodDtcbiAgICAgICAgICAgICAgICAgICAgLy8g5rua5Yqo5p2h5oC76auY5bqmXG4gICAgICAgICAgICAgICAgICAgIHZhciBzY3JvbGxIZWlnaHQgPVxuICAgICAgICAgICAgICAgICAgICAgICAgZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50LnNjcm9sbEhlaWdodCB8fCBkb2N1bWVudC5ib2R5LnNjcm9sbEhlaWdodDtcbiAgICAgICAgICAgICAgICAgICAgLy8g56Gu5a6a5rua5Yqo5pa55ZCRXG4gICAgICAgICAgICAgICAgICAgIGlmIChzY3JvbGxUb3AgPj0gYmVmb3JlU2Nyb2xsVG9wKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyDmu5rliqjop6blupVcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzY3JvbGxUb3AgKyBjbGllbnRIZWlnaHQgPj0gc2Nyb2xsSGVpZ2h0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9mYmEubG9nKFwi5rua5Yqo6Kem5bqVXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBjb3VudGVyID0gMDsgLy8g6K6h5pWw5Zmo77yM55So5LqO6K6w5b2V5bey57uP5omn6KGM55qE5qyh5pWwXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGludGVydmFsSWQgPSBzZXRJbnRlcnZhbChmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9mYmEubG9nKCfmiafooYzmk43kvZwnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1ncygpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb3VudGVyKys7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNvdW50ZXIgPj0gMTUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vZmJhLmxvZygn5YGc5q2i5omn6KGMJyk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGVhckludGVydmFsKGludGVydmFsSWQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSwgNTAwKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBiZWZvcmVTY3JvbGxUb3AgPSBzY3JvbGxUb3A7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLy8g6IqC5rWBXG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gdGhyb3R0bGUoZiwgdykge1xuICAgICAgICAgICAgICAgICAgICBsZXQgdCA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgdCA9IHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8v5omn6KGM5pON5L2cKOS9v+eUqGFwcGx56YeN5paw57uR5a6adGhpc+eahOaMh+WQkSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdCA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgICAgICB9LCB3KTtcbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgLy8g55uR5ZCs5rua5YqoXG4gICAgICAgICAgICAgICAgZG9jdW1lbnQub25zY3JvbGwgPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhyb3R0bGUoaGFuZGxlU2Nyb2xsKCksIDEwMDAwKTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfSwgTVlfUlVMRS50aXRsZSlcbiAgICAgICAgfVxuICAgIH0pO1xufVxuXG5cbmZ1bmN0aW9uIGZvcm1hdERhdGUoZGF0ZVN0cmluZykge1xuICAgIHZhciBkYXRlUmVnZXggPSAvKFxcd3szfSlcXHMoXFxkezEsMn0pKHN0fG5kfHJkfHRoKSxcXHMoXFxkezR9KS87XG4gICAgdmFyIG1hdGNoID0gZGF0ZVN0cmluZy5tYXRjaChkYXRlUmVnZXgpO1xuXG4gICAgaWYgKG1hdGNoKSB7XG4gICAgICAgIHZhciBtb250aCA9IG1hdGNoWzFdO1xuICAgICAgICB2YXIgZGF5ID0gbWF0Y2hbMl07XG4gICAgICAgIHZhciB5ZWFyID0gbWF0Y2hbNF07XG5cbiAgICAgICAgLy8g5bCG5pyI5Lu96L2s5o2i5Li65pWw5a2X6KGo56S6XG4gICAgICAgIHZhciBtb250aE1hcCA9IHtcbiAgICAgICAgICAgIEphbjogJzAxJyxcbiAgICAgICAgICAgIEZlYjogJzAyJyxcbiAgICAgICAgICAgIE1hcjogJzAzJyxcbiAgICAgICAgICAgIEFwcjogJzA0JyxcbiAgICAgICAgICAgIE1heTogJzA1JyxcbiAgICAgICAgICAgIEp1bjogJzA2JyxcbiAgICAgICAgICAgIEp1bDogJzA3JyxcbiAgICAgICAgICAgIEF1ZzogJzA4JyxcbiAgICAgICAgICAgIFNlcDogJzA5JyxcbiAgICAgICAgICAgIE9jdDogJzEwJyxcbiAgICAgICAgICAgIE5vdjogJzExJyxcbiAgICAgICAgICAgIERlYzogJzEyJ1xuICAgICAgICB9O1xuICAgICAgICBtb250aCA9IG1vbnRoTWFwW21vbnRoXTtcblxuICAgICAgICB2YXIgZm9ybWF0dGVkRGF0ZSA9IHllYXIgKyAnLScgKyBtb250aCArICctJyArIGRheS50b1N0cmluZygpLnBhZFN0YXJ0KDIsICcwJyk7XG4gICAgICAgIHJldHVybiBmb3JtYXR0ZWREYXRlO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiAn5peg5rOV6Kej5p6Q5pel5pyfJztcbiAgICB9XG59XG5cbmxldCBzaW5kZXggPSBnZXRNeVZhcihcInNpXCIsIFwiMFwiKTtcbmxldCB0aXRsZXMgPSBbe1xuICAgIHRpdGxlOiBcIuWwj+eoi+W6j1wiLFxuICAgIGx0aXRsZTogXCLlsI/nqIvluo/vvJpcIlxufSwge1xuICAgIHRpdGxlOiBcIuS4gOi1t+eci1wiLFxuICAgIGx0aXRsZTogXCLpgoDmgqjkuIDotbfnnIvvvJpcIlxufSwge1xuICAgIHRpdGxlOiBcIuaPkuS7tlwiLFxuICAgIGx0aXRsZTogXCLmj5Lku7blkI3vvJpcIlxufV1cblxuaWYgKE1ZX1VSTC5pbmNsdWRlcyhcImFwcFwiKSkge1xuICAgIGxldCB0bCA9IGdldE15VmFyKFwicGFnZVwiLCBcIjFcIik7XG4gICAgdmFyIHBhZ2UgPSBNWV9QQUdFO1xuICAgIGlmICh0bCAhPSBcIjFcIikge1xuICAgICAgICBwYWdlID0gdGw7XG4gICAgfVxuICAgIGlmICh0bCAhPSAxICYmIE1ZX1BBR0UgPiAxKSB7XG4gICAgICAgIHBhZ2UgPSBOdW1iZXIocGFnZSkgKyBNWV9QQUdFO1xuICAgIH1cbiAgICAvL2xvZyhwYWdlKVxuICAgIE1ZX1VSTCA9IHVybDtcbiAgICB2YXIgaHRtbCA9IGZldGNoKE1ZX1VSTCk7XG4gICAgcmVmcmVzaFg1RGVzYygnMCcpO1xuICAgIHJlZnJlc2hYNVdlYlZpZXcoXCJoaWtlcjovL2VtcHR5XCIpO1xuICAgIHZhciBkID0gW107XG4gICAgaWYgKE1ZX1BBR0UgPT0gMSkge1xuICAgICAgICBsZXQgU1kgPSBwZGZhKGh0bWwsIFwiLmRldGFpbHMmJi5pbmZvLWJhclwiKTtcbiAgICAgICAgZm9yIChsZXQgaXQgb2YgU1kpIHtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6ICfigJjigJjigJnigJk8Yj48YmlnPjxmb250IGNvbG9yPVwiIzM0MmEyYlwiPicgKyBwZGZoKGl0LCBcImgxJiZUZXh0XCIpICsgJzwvZm9udD48L2JpZz48L2I+JyxcbiAgICAgICAgICAgICAgICBkZXNjOiAn4oCY4oCY4oCZ4oCZPHNtYWxsPjxmb250IGNvbG9yPVwiI2JiYmRiNVwiPnZpZXdz77yaJyArIHBkZmgoaXQsIFwic3BhbiYmVGV4dFwiKSArICc8L2ZvbnQ+PC9zbWFsbD4nLFxuICAgICAgICAgICAgICAgIHVybDogJ2h0dHBzOi8vcGFzdGViaW4uY29tL3UveGlhb21pYW5hbzY2NicsXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6IFwidGV4dF8xXCIsXG4gICAgICAgICAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgICAgICAgICAgbGluZVZpc2libGU6IGZhbHNlXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSwge1xuICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcImxpbmVfYmxhbmtcIlxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGdldE15VmFyKCdwYWdlJywgJycpICE9ICcnKSB7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiAn4oCc4oCc4oCd4oCdPHNtYWxsPicgKyAn5riF6Zmk57+76aG15pWw5o2uJy5mb250Y29sb3IoXCJncmF5XCIpICsgJzwvc21hbGw+JyxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnLFxuICAgICAgICAgICAgICAgIHVybDogJChcIiNub0xvYWRpbmcjXCIpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY2xlYXJNeVZhcigncGFnZScpO1xuICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ3RvYXN0Oi8v5riF6Zmk5a6M5oiQJztcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgICAgICBsaW5lVmlzaWJsZTogZmFsc2VcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG5cbiAgICAgICAgdGl0bGVzLmZvckVhY2goKHgsIGkpID0+IHtcbiAgICAgICAgICAgIGxldCB0aXRsZSA9IHgudGl0bGU7XG4gICAgICAgICAgICBpZiAoc2luZGV4ID09IGkpIHtcbiAgICAgICAgICAgICAgICB0aXRsZSA9IHRpdGxlLmZvbnRjb2xvcihcImdyZWVuXCIpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogJ+KAnOKAnOKAneKAnScgKyB0aXRsZSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxuICAgICAgICAgICAgICAgIHVybDogJChcIiNub0xvYWRpbmcjXCIpLmxhenlSdWxlKChpKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKFwic2lcIixpKTtcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwiaGlrZXI6Ly9lbXB0eVwiO1xuICAgICAgICAgICAgICAgIH0saSlcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH0pXG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICBjb2xfdHlwZTonbGluZScsXG4gICAgICAgIH0pXG4gICAgfVxuICAgIGxldCBhcnIgPSBwZGZhKGh0bWwsIFwidGJvZHkmJnRyXCIpO1xuICAgIGZvciAobGV0IGl0IG9mIGFycikge1xuICAgICAgICBpZighaXQuaW5jbHVkZXModGl0bGVzW3NpbmRleF0ubHRpdGxlKSl7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgfVxuICAgICAgICBsZXQgZGUgPSBmb3JtYXREYXRlKHBkZmgoJzx0YWJsZT4nICsgaXQgKyAnPC90YWJsZT4nLCBcIi5oXzY0MCYmVGV4dFwiKSlcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiAnPGI+PHNtYWxsPjxmb250IGNvbG9yPVwiIzUzNWMzMFwiPicgKyBwZGZoKGl0LCBcImEmJlRleHRcIikgKyAnPC9mb250Pjwvc21hbGs+PC9iPicsXG4gICAgICAgICAgICBkZXNjOiAnPHNtYWxsPicgKyBkZSArICc8L3NtYWxsPicsXG4gICAgICAgICAgICB1cmw6ICQocGQoaXQsIFwiYSYmaHJlZlwiKS5yZXBsYWNlKFwiaHR0cHM6Ly9wYXN0ZWJpbi5jb20vXCIsIFwiaHR0cHM6Ly9wYXN0ZWJpbi5jb20vcmF3L1wiKSkubGF6eVJ1bGUoKHBhZ2UpID0+IHtcbiAgICAgICAgICAgICAgICBsZXQgaHRtbCA9IHJlcXVlc3QoaW5wdXQpO1xuICAgICAgICAgICAgICAgIGxldCBhcnIgPSBwZGZhKGh0bWwsIFwiYm9keVwiKTtcbiAgICAgICAgICAgICAgICBwdXRNeVZhcihcInBhZ2VcIiwgcGFnZSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGFyci5tYXAoaXQgPT4ge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gcGRmaChpdCwgXCJib2R5JiZUZXh0XCIpO1xuICAgICAgICAgICAgICAgIH0pLmpvaW4oXCImJlwiKVxuICAgICAgICAgICAgfSwgcGFnZSksXG4gICAgICAgICAgICBjb2xfdHlwZTogXCJhdmF0YXJcIixcbiAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgbGluZVZpc2libGU6IGZhbHNlLFxuICAgICAgICAgICAgfVxuXG4gICAgICAgIH0pO1xuICAgIH1cbiAgICB2YXIgdG90YWxjb3VudCA9IGdldE15VmFyKFwidGNcIiwgXCJcIik7XG4gICAgaWYgKHRvdGFsY291bnQgPT0gXCJcIikge1xuICAgICAgICB0b3RhbGNvdW50ID0gcGRmaChodG1sLCBcImE6bWF0Y2hlcyhPbGRlc3QpJiZocmVmXCIpLnNwbGl0KFwiL1wiKS5zbGljZSgtMSlbMF07XG4gICAgICAgIHB1dE15VmFyKFwidGNcIiwgdG90YWxjb3VudCk7XG4gICAgfVxuXG4gICAgZm9yIChsZXQgaSA9IE51bWJlcihwYWdlKTsgaSA8IE51bWJlcih0b3RhbGNvdW50KSArIDE7IGkrKykge1xuICAgICAgICBsZXQgcCA9IE51bWJlcihwYWdlKTtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiAn4oCc4oCc4oCd4oCdJyArIChwID09IGkgPyBpLnRvU3RyaW5nKCkuZm9udGNvbG9yKFwicmVkXCIpIDogaS50b1N0cmluZygpKSxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbicsXG4gICAgICAgICAgICB1cmw6ICQoXCIjbm9Mb2FkaW5nI1wiKS5sYXp5UnVsZSgoaSkgPT4ge1xuICAgICAgICAgICAgICAgIHB1dE15VmFyKFwicGFnZVwiLCBpICsgXCJcIik7XG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gXCJoaWtlcjovL2VtcHR5XCJcbiAgICAgICAgICAgIH0sIGkpXG4gICAgICAgIH0pXG4gICAgfVxuICAgIGQucHVzaCh7XG4gICAgICAgIHRpdGxlOiAn5LiK5LiA6aG1JyxcbiAgICAgICAgY29sX3R5cGU6ICd0ZXh0XzMnLFxuICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKHBhZ2UsIHRjKSA9PiB7XG4gICAgICAgICAgICBwYWdlID0gTnVtYmVyKGdldE15VmFyKFwicGFnZVwiLCBwYWdlKSk7XG4gICAgICAgICAgICBwdXRNeVZhcihcInBhZ2VcIiwgcGFnZSAtIDEgPiAxID8gKHBhZ2UgLSAxKS50b1N0cmluZygpIDogXCIxXCIpO1xuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgIHJldHVybiBcImhpa2VyOi8vZW1wdHlcIjtcbiAgICAgICAgfSwgTnVtYmVyKHBhZ2UpLCBOdW1iZXIodG90YWxjb3VudCkpLFxuICAgIH0sIHtcbiAgICAgICAgdGl0bGU6ICfot7PpobUnLFxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfMycsXG4gICAgICAgIHVybDogJChcIjFcIiwgXCLor7fovpPlhaXpobXmlbAs5oC76aG15pWwOiBcIiArIGdldE15VmFyKFwidGNcIiwgXCIxXCIpKS5pbnB1dCgoKSA9PiB7XG4gICAgICAgICAgICB2YXIgcCA9IHBhcnNlSW50KGlucHV0KTtcbiAgICAgICAgICAgIHZhciBjID0gZ2V0TXlWYXIoXCJ0Y1wiLCBcIjFcIik7XG4gICAgICAgICAgICBpZiAocCA9PSAwKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/kuI3og73kuLowXCI7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAocCA+IHBhcnNlSW50KGMpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/otoXlh7rojIPlm7RcIjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHB1dE15VmFyKFwicGFnZVwiLCBwKTtcbiAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XG4gICAgICAgIH0pXG4gICAgfSwge1xuICAgICAgICB0aXRsZTogJ+S4i+S4gOmhtScsXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF8zJyxcbiAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChwYWdlLCB0YykgPT4ge1xuICAgICAgICAgICAgcGFnZSA9IE51bWJlcihnZXRNeVZhcihcInBhZ2VcIiwgcGFnZSkpO1xuICAgICAgICAgICAgcHV0TXlWYXIoXCJwYWdlXCIsIHBhZ2UgKyAxIDwgdGMgPyAocGFnZSArIDEpLnRvU3RyaW5nKCkgOiB0Yy50b1N0cmluZygpKTtcbiAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XG4gICAgICAgICAgICByZXR1cm4gXCJoaWtlcjovL2VtcHR5XCI7XG4gICAgICAgIH0sIE51bWJlcihwYWdlKSwgTnVtYmVyKHRvdGFsY291bnQpKSxcbiAgICB9KVxuXG59XG5cbnNldFJlc3VsdChkKSIsInNlYXJjaF91cmwiOiIiLCJncm91cCI6Ijfig6PotYTmupAiLCJzZWFyY2hGaW5kIjoiIiwiZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsImRldGFpbF9maW5kX3J1bGUiOiIiLCJzZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsInNkZXRhaWxfZmluZF9ydWxlIjoiIiwidWEiOiJtb2JpbGUiLCJwcmVSdWxlIjoiIiwicGFnZXMiOiJbXSIsImljb24iOiIiLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment