Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@好听轻音乐.dy@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5aW95ZCs6L276Z+z5LmQLmR5IiwiYXV0aG9yIjoiZHkyMDIwIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjaHR0cDovL3d3dy5odHF5eS5jb20vZnljbGFzcyMjZnlwYWdlIiwidmVyc2lvbiI6MjAyMzAyMDYsImNvbF90eXBlIjoibW92aWVfMV9sZWZ0X3BpYyIsImNsYXNzX25hbWUiOiLnsr7pgIkm5o6S6KGM5qacJuS4k+i+kSbpn7PkuZDliIbnsbsm5q2M5Y2VJuajgOa1i+eJiOacrCIsInR5cGUiOiJtdXNpYyIsImNsYXNzX3VybCI6ImNob2ljZS9tdXNpY0xpc3Q/cGFnZUluZGV4PWZ5cGFnZe+8hu+8hnBhZ2VTaXplPTEw77yG77yGb3JkZXI9Y2hvaWNlJnRvcCZhbGJ1bSYvZ2VucmUvbXVzaWNMaXN0LzE/cGFnZUluZGV4PWZ5cGFnZe+8hu+8hnBhZ2VTaXplPTIw77yG77yGb3JkZXI9aG90JmdlZGFuJm5ld1ZlcnNpb24iLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbk1ZX1VSTCA9IE1ZX1VSTC5zcGxpdCgnIyMnKVsxXTtcbmlmICgvZnlwYWdlLy50ZXN0KE1ZX1VSTCkpIHtcbiAgICBNWV9VUkwgPSBNWV9VUkwucmVwbGFjZSgnZnlwYWdlJywgTVlfUEFHRSAtIDEpXG59XG5sZXQgZCA9IFtdO1xudmFyIGMgPSBNWV9VUkwuc3BsaXQoJy8nKVszXTtcbmlmIChnZXRWYXIoJ2Z5Y2xhc3N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gICAgIGZvciAodmFyIGsgaW4gYzEpIHtcbiAgICAgICAgICAgICAgICB2YXIgdXJsID0gcGQoYzFba10sICdhJiZocmVmJyk7XG4gICAgICAgICAgICAgICAgaWYgKC90b3AvLnRlc3QodHJ1ZV91cmwpICYmIGsgPiAwKSB7XG4gICAgICAgICAgICAgICAgICAgIHVybCA9ICdodHRwOi8vd3d3Lmh0cXl5LmNvbS90b3AvbXVzaWNMaXN0LycgKyB1cmwuc3BsaXQoJ3RvcC8nKVsxXSArICc/cGFnZUluZGV4PWZ5cGFnZSZwYWdlU2l6ZT0yMCc7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmICgvZ2VucmUvLnRlc3QodHJ1ZV91cmwpICYmIGsgPiAwKSB7XG4gICAgICAgICAgICAgICAgICAgIHVybCA9ICdodHRwOi8vd3d3Lmh0cXl5LmNvbS9nZW5yZS9tdXNpY0xpc3QvJyArIHVybC5zcGxpdCgnZ2VucmUvJylbMV0gKyAnP3BhZ2VJbmRleD1meXBhZ2UmcGFnZVNpemU9MjAmb3JkZXI9aG90JztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGdldFZhcignYzFfaycsICcwJykgPT0gayA/ICfigJjigJjigJnigJk8c3Ryb25nPjxmb250IGNvbG9yPSBcIiNGRjAwNjZcIj4nICsgcGRmaChjMVtrXSwgJ2EmJlRleHQnKSArICc8L2ZvbnQ+PC9zdHJvbmc+JyA6IHBkZmgoYzFba10sICdhJiZUZXh0JyksXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnZmxleF9idXR0b24nLFxuICAgICAgICAgICAgICAgICAgICB1cmw6IHVybCArICcjJyArIGsgKyBgQGxhenlSdWxlPS5qczpcbiAgICAgICAgICAgICAgICAgICAgcHV0VmFyKCdjMV9rJyxpbnB1dC5zcGxpdCgnIycpWzFdKTtcbiAgICAgICAgICAgICAgICAgICAgcHV0VmFyKCd0cnVlX3VybCcsaW5wdXQuc3BsaXQoJyMnKVswXSk7XG4gICAgICAgICAgICAgICAgICAgIHJlZnJlc2goKTtcbiAgICAgICAgICAgICAgICAgICAgJ2hpa2VyOi8vZW1wdHknYFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIGlmIChNWV9QQUdFID09IDEpIHtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIGRlc2M6IFwi5pCc5L2g5oOz6KaB55qELi4uXCIsXG4gICAgICAgICAgICB0aXRsZTogXCLwn5SNXCIsXG4gICAgICAgICAgICB1cmw6IFwiJ2hpa2VyOi8vc2VhcmNoP3J1bGU9XCIgKyBNWV9SVUxFLnRpdGxlICsgXCImcz0nK2lucHV0XCIsXG4gICAgICAgICAgICBjb2xfdHlwZTogXCJpbnB1dFwiXG4gICAgICAgIH0pO1xuICAgIH1cbiAgICBpZiAoaHRtbFRtcCkge1xuICAgICAgICBodG1sID0gaHRtbFRtcDtcbiAgICB9XG4gICAgaWYgKC9jaG9pY2UvLnRlc3QodHJ1ZV91cmwpKSB7XG4gICAgICAgIHZhciBsaXN0ID0gcGRmYShodG1sLCAnLm1hc29ucnkmJi5tYXNvbnJ5LWJyaWNrJyk7XG4gICAgICAgIGZvciAodmFyIGxpc3Qgb2YgbGlzdCkge1xuICAgICAgICAgICAgbGV0IHRpdGxlID0gcGRmaChsaXN0LCAnYSYmdGl0bGUnKTtcbiAgICAgICAgICAgIGxldCBkZXNjID0gcGRmaChsaXN0LCAnLmVudHJ5X3Bvc3QmJlRleHQnKTtcbiAgICAgICAgICAgIGxldCBpbWcgPSBwZChsaXN0LCAnaW1nJiZzcmN8fGRhdGEtb3JpZ2luYWwnKTtcbiAgICAgICAgICAgIGxldCB1cmwgPSBwZChsaXN0LCAnYSYmaHJlZicpICsgJyMjZ2FtZVRoZW1lIyMnO1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogdGl0bGUsXG4gICAgICAgICAgICAgICAgZGVzYzogZGVzYyxcbiAgICAgICAgICAgICAgICBpbWc6IGltZyxcbiAgICAgICAgICAgICAgICB1cmw6IHVybCxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzFfbGVmdF9waWMnLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9IGVsc2UgaWYgKC90b3AvLnRlc3QodHJ1ZV91cmwpKSB7XG4gICAgICAgIHZhciB0aXRsZSA9ICghL2NsYXNzPVwibXVzaWNMaXN0Ly50ZXN0KGh0bWwpID8gcGRmaChodG1sLCAnI211c2ljTGlzdCYmSHRtbCcpIDogcGRmaChodG1sLCAnLm11c2ljTGlzdCYmSHRtbCcpKS5yZXBsYWNlKC/mkq3mlL585Yqg5YWl5YiX6KGoL2csICcnKTtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiAn4oCY4oCY4oCZ4oCZPHN0cm9uZz48Zm9udCBjb2xvcj0gXCIjRkYwMDY2XCI+JyArICfngrnlh7vmraTlpITmkq3mlL7liJfooajpn7PkuZAnICsgJzwvZm9udD48L3N0cm9uZz4nLFxuICAgICAgICAgICAgdXJsOiB0cnVlX3VybCArICcjI2dhbWVUaGVtZSMjJyxcbiAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMScsXG4gICAgICAgIH0pO1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IHRpdGxlLFxuICAgICAgICAgICAgdXJsOiAnaGlrZXI6Ly9lbXB0eScsXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3JpY2hfdGV4dCcsXG4gICAgICAgIH0pO1xuXG4gICAgfSBlbHNlIGlmICgvZ2VucmUvLnRlc3QodHJ1ZV91cmwpKSB7XG4gICAgICAgIHZhciB0aXRsZSA9ICghL2NsYXNzPVwibXVzaWNMaXN0Ly50ZXN0KGh0bWwpID8gcGRmaChodG1sLCAnI211c2ljTGlzdCYmSHRtbCcpIDogcGRmaChodG1sLCAnLm11c2ljTGlzdCYmSHRtbCcpKS5yZXBsYWNlKC/mkq3mlL585Yqg5YWl5YiX6KGoL2csICcnKTtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiAn4oCY4oCY4oCZ4oCZPHN0cm9uZz48Zm9udCBjb2xvcj0gXCIjRkYwMDY2XCI+JyArICfngrnlh7vmraTlpITmkq3mlL7liJfooajpn7PkuZAnICsgJzwvZm9udD48L3N0cm9uZz4nLFxuICAgICAgICAgICAgdXJsOiB0cnVlX3VybCArICcjI2dhbWVUaGVtZSMjJyxcbiAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMScsXG4gICAgICAgIH0pO1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IHRpdGxlLFxuICAgICAgICAgICAgY29sX3R5cGU6ICdyaWNoX3RleHQnLFxuICAgICAgICB9KTtcblxuICAgIH0gZWxzZSBpZiAoL2FsYnVtfGdlZGFuLy50ZXN0KHRydWVfdXJsKSkge1xuICAgICAgICB2YXIgbGlzdCA9IC9hbGJ1bS8udGVzdCh0cnVlX3VybCkgPyBwZGZhKGh0bWwsICdib2R5JiYjYWxidW1MaXN0JiZsaScpIDogcGRmYShodG1sLCAnYm9keSYmLmdkTGlzdCYmbGknKTtcbiAgICAgICAgZm9yICh2YXIgbGlzdCBvZiBsaXN0KSB7XG4gICAgICAgICAgICBsZXQgdGl0bGUgPSBwZGZoKGxpc3QsICdoNHx8aDMmJlRleHQnKTtcbiAgICAgICAgICAgIGxldCBpbWcgPSBwZChsaXN0LCAnaW1nJiZzcmMnKTtcbiAgICAgICAgICAgIGxldCBkZXNjID0gJyc7XG4gICAgICAgICAgICBsZXQgdXJsID0gcGQobGlzdCwgJ2EmJmhyZWYnKSArICcjI2dhbWVUaGVtZSMjJztcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IHRpdGxlLFxuICAgICAgICAgICAgICAgIGRlc2M6IGRlc2MsXG4gICAgICAgICAgICAgICAgaW1nOiBpbWcsXG4gICAgICAgICAgICAgICAgdXJsOiB1cmwsXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdtb3ZpZV8zJyxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgICAgdmFyIGxpc3QgPSBwZGZhKGh0bWwsICcucG9zdHplcm8mJi5wb3N0b25lJyk7XG4gICAgICAgIGZvciAodmFyIGxpc3Qgb2YgbGlzdCkge1xuICAgICAgICAgICAgbGV0IHRpdGxlID0gcGRmaChsaXN0LCAnYSYmdGl0bGUnKTtcbiAgICAgICAgICAgIGxldCBkZXNjID0gcGRmaChsaXN0LCAnLmVudHJ5LWNvbnRlbnQmJlRleHQnKTtcbiAgICAgICAgICAgIGxldCBpbWcgPSBwZChsaXN0LCAnaW1nJiZzcmMnKTtcbiAgICAgICAgICAgIGxldCB1cmwgPSBwZChsaXN0LCAnYSYmaHJlZicpICsgJyMjcmVhZFRoZW1lIyMnO1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogdGl0bGUsXG4gICAgICAgICAgICAgICAgZGVzYzogZGVzYyxcbiAgICAgICAgICAgICAgICBpbWc6IGltZyxcbiAgICAgICAgICAgICAgICB1cmw6IHVybFxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG59XG5wdXRWYXIoJ2Z5Y2xhc3NfaHRxeXknLCBjKTtcbnNldFJlc3VsdChkKTsiLCJzZWFyY2hfdXJsIjoiaHR0cDovL3d3dy5odHF5eS5jb20vaG9tZS9zZWFyY2g/d2Q9KioiLCJncm91cCI6Iumfs+mikSIsInNlYXJjaEZpbmQiOiJqczpcbnZhciBkID0gW107XG52YXIgdHJ1ZV91cmwgPSBNWV9VUkw7XG52YXIgaHRtbCA9IHJlc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ZCArICcvbTRhLzcnO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgfSBlbHNlIGlmICgvZ2VkYW58bXVzaWNMaXN0fHNlYXJjaC8udGVzdChNWV9VUkwpKSB7XG4gICAgICAgICAgICAgICAgdmFyIGFhID0gcmVxdWVzdChwZChsaXN0W2tdLCAnYSYmaHJlZicpKTtcbiAgICAgICAgICAgICAgICB2YXIgaWQgPSBwZGZoKGxpc3Rba10sICdhJiZocmVmJykubWF0Y2goL1xcZCsvKVswXTtcbiAgICAgICAgICAgICAgICB2YXIgZmlyc3QgPSBwZGZoKGxpc3RbMF0sICdhJiZUZXh0Jyk7XG4gICAgICAgICAgICAgICAgdmFyIHRpdGxlID0gcGRmaChsaXN0W2tdLCAnYSYmVGV4dCcpO1xuICAgICAgICAgICAgICAgIHZhciBkZXNjID0gcGRmaChsaXN0W2tdLCAnLmFydGlzdCYmVGV4dCcpO1xuICAgICAgICAgICAgICAgIGlmICghZGVzYykge1xuICAgICAgICAgICAgICAgICAgICBkZXNjID0gcGRmaChsaXN0W2tdLCAnLmFydGlzdE5hbWUmJlRleHQnKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgdmFyIGltZyA9IHBkZmgoYWEsICcuc2hhZG93JiZzcmMnKSB8fCAnJztcbiAgICAgICAgICAgICAgICBpZiAoL2dlZGFuLy50ZXN0KE1ZX1VSTCkpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9ICdodHRwOi8vZjUuaHRxeXkuY29tL2dlZGFuL3BsYXk5LycgKyBpZCArICcvbXAzLzcnO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSAnaHR0cDovL2Y1Lmh0cXl5LmNvbS9wbGF5OS8nICsgaWQgKyAnL21wMy83JztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKC9cIm00YVwiLy50ZXN0KGFhKSkge1xuICAgICAgICAgICAgICAgICAgICB1cmwgPSB1cmwucmVwbGFjZSgnbXAzJywgJ200YScpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8qIOW/q+mAn+WRiuiviXg15YiX6KGo5qC35byP77yM5b6I6YeN6KaBICovXG4gICAgICAgICAgICBsZXQgY29sX3R5cGUgPSAndGV4dF8xJ1xuICAgICAgICAgICAgcHV0VmFyKCfmoLflvI8nLCBjb2xfdHlwZSlcbiAgICAgICAgICAgIHB1dFZhcign6YCJ5Lit6aKc6ImyJywgJyMzQ0U2OEUnKTtcbiAgICAgICAgICAgIGlmIChjb2xfdHlwZSA9PSAndGV4dF8xJylcbiAgICAgICAgICAgICAgICB4eSA9ICfigJzigJzigJ3igJ08Yj48Zm9udCBjb2xvcj0nICsgZ2V0VmFyKCfpgInkuK3popzoibInKSArICc+JyArIHRpdGxlICsgJzwvZm9udD48L2I+JztcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICB4eSA9ICc8Yj48Zm9udCBjb2xvcj0nICsgZ2V0VmFyKCfpgInkuK3popzoibInKSArICc+JyArIHRpdGxlICsgJzwvZm9udD48L2I+JztcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IHRpdGxlID09IGdldFZhcign57Si5byVJywgZmlyc3QpICYmIE1ZX1BBR0UgPT0gMSA/IHh5IDogdGl0bGUsXG4gICAgICAgICAgICAgICAgZGVzYzogZGVzYyxcbiAgICAgICAgICAgICAgICBpbWc6IGltZyxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogY29sX3R5cGUsXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcjbm9IaXN0b3J5IyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKHRpdGxlLCBmaXJzdCwgeHkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGdldFZhcign57Si5byVJykgIT0gdGl0bGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hYNVdlYlZpZXcoZ2V0UGF0aCgnaGlrZXI6Ly9maWxlcy9ydWxlcy9kekhvdXNlL2h0bWwvaDXpn7PkuZDmkq3mlL7lmaguaHRtbCcpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHVwZGF0ZUl0ZW0oZ2V0VmFyKCfntKLlvJUnLCBmaXJzdCksIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogZ2V0VmFyKCfntKLlvJUnLCBmaXJzdClcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgdXBkYXRlSXRlbSh0aXRsZSwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiB4eVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBwdXRWYXIoJ+e0ouW8lScsIHRpdGxlKTtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnZG93bmxvYWQ6Ly8nICsgZ2V0VmFyKCfmkq3mlL7pk77mjqUnKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xuICAgICAgICAgICAgICAgIH0sIHRpdGxlLCBmaXJzdCwgeHkpLFxuICAgICAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgICAgIGlkOiB0aXRsZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICDkvKDovpPliJfooagucHVzaCh7XG4gICAgICAgICAgICAgICAg5bCB6Z2iOiBpbWcsXG4gICAgICAgICAgICAgICAg5puy5ZCNOiB0aXRsZSxcbiAgICAgICAgICAgICAgICDmrYzmiYs6IGRlc2MsXG4gICAgICAgICAgICAgICAg5Zyw5Z2AOiB1cmwsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgICDkvKDovpPliJfooaggPSBzdG9yYWdlMC5nZXRWYXIoJ+e8k+WtmOaVsOaNricsIFtdKS5jb25jYXQo5Lyg6L6T5YiX6KGoKTtcbiAgICAgICAgc3RvcmFnZTAucHV0VmFyKCfnvJPlrZjmlbDmja4nLCDkvKDovpPliJfooagpO1xuICAgICAgICBzdG9yYWdlMC5wdXRWYXIoJ+aVsOaNruagoeWvuScsIGxpc3QpO1xuICAgIH1cbiAgICBhZGRMaXN0ZW5lcignb25DbG9zZScsICQudG9TdHJpbmcoKCkgPT4ge1xuICAgICAgICBjbGVhclZhcign5qC35byPJyk7XG4gICAgICAgIGNsZWFyVmFyKCfntKLlvJUnKTtcbiAgICAgICAgY2xlYXJWYXIoJ+aSreaUvumTvuaOpScpO1xuICAgICAgICBjbGVhclZhcign5pWw5o2u5qCh5a+5Jyk7XG4gICAgICAgIGNsZWFyVmFyKCfnvJPlrZjmlbDmja4nKTtcbiAgICB9KSk7XG4gICAg5Lyg6L6T5YiX6KGoID0gc3RvcmFnZTAuZ2V0VmFyKCfnvJPlrZjmlbDmja4nKTtcbiAgICBwdXRWYXIoJ+mfs+S5kOaVsOaNricsIEpTT04uc3RyaW5naWZ5KOS8oOi+k+WIl+ihqCkpO1xuICAgIGlmIChNWV9QQUdFID09IDEpIHtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIGNvbF90eXBlOiAneDVfd2Vidmlld19zaW5nbGUnLFxuICAgICAgICAgICAgZGVzYzogJzMwMCYmZmxvYXQnLFxuICAgICAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgICAgICB1YTogTU9CSUxFX1VBLFxuICAgICAgICAgICAgICAgIGF1dG9QbGF5OiB0cnVlXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgdXJsOiBnZXRQYXRoKCdoaWtlcjovL2ZpbGVzL3J1bGVzL2R6SG91c2UvaHRtbC9oNemfs+S5kOaSreaUvuW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mAieS4reminOiJsicpICsgJz4nICsgdGl0bGUgKyAnPC9mb250PjwvYj4nO1xuICAgIGQucHVzaCh7XG4gICAgICAgIHRpdGxlOiB0aXRsZSA9PSBnZXRWYXIoJ+e0ouW8lScsIGZpcnN0KSAmJiBNWV9QQUdFID09IDEgPyB4eSA6IHRpdGxlLFxuICAgICAgICBkZXNjOiAnJyxcbiAgICAgICAgaW1nOiBpbWcsXG4gICAgICAgIGNvbF90eXBlOiBjb2xfdHlwZSxcbiAgICAgICAgdXJsOiAkKCcjbm9IaXN0b3J5IyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKHRpdGxlLCBmaXJzdCwgeHkpID0+IHtcbiAgICAgICAgICAgIGlmIChnZXRWYXIoJ+e0ouW8lScpICE9IHRpdGxlKSB7XG4gICAgICAgICAgICAgICAgcmVmcmVzaFg1V2ViVmlldyhnZXRQYXRoKCdoaWtlcjovL2ZpbGVzL3J1bGVzL2R6SG91c2UvaHRtbC9oNemfs+S5kOaSreaUvuWZqC5odG1sJykpO1xuICAgICAgICAgICAgICAgIHVwZGF0ZUl0ZW0oZ2V0VmFyKCfntKLlvJUnLCBmaXJzdCksIHtcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGdldFZhcign57Si5byVJywgZmlyc3QpXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgdXBkYXRlSXRlbSh0aXRsZSwge1xuICAgICAgICAgICAgICAgICAgICB0aXRsZTogeHlcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICBwdXRWYXIoJ+e0ouW8lScsIHRpdGxlKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuICdkb3dubG9hZDovLycgKyBnZXRWYXIoJ+aSreaUvumTvuaOpScpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcbiAgICAgICAgfSwgdGl0bGUsIGZpcnN0LCB4eS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CcpICsgJzwvc21hbGw+JztcbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTogdGl0bGUsXG4gICAgICAgIHVybDogJycsXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMScsXG4gICAgfSk7XG4gICAgdGl0bGUgPSBwZGZoKGh0bWwsICcuY29udGV4dCYmSHRtbCcpLnJlcGxhY2UoLzxkaXYgY2xhc3M9XCJleGNlcnB0Lis/W1xcc1xcU10qLis/ZGl2Pi9nLCAnJykucmVwbGFjZSgvPHA+L2csICc8cD7jgIDjgIAnKTtcbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTogdGl0bGUsXG4gICAgICAgIHVybDogJycsXG4gICAgICAgIGNvbF90eXBlOiAncmljaF90ZXh0JyxcbiAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgIHRleHRTaXplOiAxOCxcbiAgICAgICAgICAgIGNsaWNrOiB0cnVlXG4gICAgICAgIH1cbiAgICB9KTtcbn1cbnNldFJlc3VsdChkKTsiLCJzZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsInNkZXRhaWxfZmluZF9ydWxlIjoiKiIsInVhIjoibW9iaWxlIiwicHJlUnVsZSI6IiIsInBhZ2VzIjoiW10iLCJpY29uIjoiaHR0cDovL3d3dy5odHF5eS5jb20vZmF2aWNvbi5pY28iLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment