Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@蓝奏云盘🐑@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6JOd5aWP5LqR55uY8J+QkSIsImF1dGhvciI6IvCfkJEiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNmeXBhZ2UiLCJ2ZXJzaW9uIjo4LCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoiIiwidHlwZSI6Im90aGVyIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG5cbmV2YWwoSlNPTi5wYXJzZShyZXF1ZXN0KCdoaWtlcjovL3BhZ2UvY2xhc3NpY0hlYWRlcicpKS5ydWxlKVxuZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS95ZW1pYW4nKSkucnVsZSkiLCJzZWFyY2hfdXJsIjoiaHR0cHM6Ly93d3cuNnlpdC5jb20vZGlzay1zZWFyY2g/a2V5d29yZD0qKiIsImdyb3VwIjoi5YW25a6DIiwic2VhcmNoRmluZCI6ImpzOlxudmFyIGQgPSBbXTtcbnZhciBodG1sID0gZ2V0UmVzQ29kZSgpO1xudmFyIGxpc3QgPSBwZGZhKGh0bWwsICdib2R5JiYucmVzdWx0JiYubGFuem91LWl0ZW0nKTtcbmZvciAodmFyIGogaW4gbGlzdCkge1xuICAgIGQucHVzaCh7XG4gICAgICAgIHRpdGxlOiBwZGZoKGxpc3Rbal0sICcubGFuem91LWl0ZW0tcmlnaHQtdGl0bGUmJlRleHQnKSxcbiAgICAgICAgZGVzYzogcGRmaChsaXN0W2pdLCAnLnRleHQtbXV0ZWQmJlRleHQnKSxcbiAgICAgICAgY29udGVudDogcGRmaChsaXN0W2pdLCAnLnRleHQtbXV0ZWQsMSYmVGV4dCcpLFxuICAgICAgICB1cmw6ICQocGQobGlzdFtqXSwgJ2EmJmhyZWYnKSkucnVsZSgoKSA9PiB7XG4gICAgICAgICAgICB2YXIgZCA9IFtdO1xuICAgICAgICAgICAgZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS9sYXp5JykpLnJ1bGUpXG4gICAgICAgICAgICB2YXIgaHRtbCA9IGdldFJlc0NvZGUoKTtcbiAgICAgICAgICAgIHZhciBsaXN0ID0gcGRmYShodG1sLCAnYm9keSYmLnVybF9hZHJlZXNzJyk7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBcIjxzbWFsbD7mkJzntKLlhoXlrrnmnaXoh6rok53lu4vnvZHpobXniYjjgIJcXG7oi6XmiZPkuI3lvIDpk77mjqXmiJbogIXmj5DnpLrliIbkuqvlt7Llj5bmtojvvIzor7flsJ3or5Xlhbbku5bnmoTlnLDlnYA8L3NtYWxsPlwiXG4gICAgICAgICAgICB9KVxuXG4gICAgICAgICAgICBmb3IgKHZhciBqID0gMTsgaiA8IGxpc3QubGVuZ3RoOyBqKyspIHtcbiAgICAgICAgICAgICAgICB2YXIgVVJMID0gcGQobGlzdFtqXSwgJ2EmJmhyZWYnKVxuICAgICAgICAgICAgICAgIGlmIChVUkwuaW5kZXhPZihcImNvbS90cC9cIikgPT0gLTEpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIFVSTCA9IFVSTC5yZXBsYWNlKFwiY29tL1wiLCBcImNvbS90cC9cIilcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICB0aXRsZTogXCLwn5SXICDlnLDlnYBcIiArIGosICAgICAgICAgIFxuICAgICAgICAgICAgICAgICAgICB1cmw6IFVSTCArIGxhenksXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcInRleHRfMVwiLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBzZXRSZXN1bHQoZClcbiAgICAgICAgfSlcbiAgICB9KTtcbn1cbnNldFJlc3VsdChkKSIsImRldGFpbF9jb2xfdHlwZSI6Im1vdmllXzEiLCJkZXRhaWxfZmluZF9ydWxlIjoiIiwic2RldGFpbF9jb2xfdHlwZSI6InJpY2hfdGV4dCIsInNkZXRhaWxfZmluZF9ydWxlIjoiIiwidWEiOiJtb2JpbGUiLCJwcmVSdWxlIjoiIiwicGFnZXMiOiJbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuaVsOaNrlwiLFwicGF0aFwiOlwic2h1anVcIixcInJ1bGVcIjpcInZhciB0YWJzID0ge1xcbiAgICBcXFwiZGF0YVxcXCI6IFtcXG4vLy8vLy8vLy/ova/ku7YvLy8vLy8vXFxuICAgICAgICB7XFxuICAgICAgICAgICAgXFxcImdyb3VwXFxcIjogXFxcIui9r+S7tlxcXCIsXFxuICAgICAgICAgICAgXFxcIm9wdGlvbnNcXFwiOiBbe1xcbiAgICAgICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi5rW36ZiU6KeG55WMXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJ1cmxcXFwiOiBcXFwiaHR0cHM6Ly9oYWlrdW8ubGFuem91eC5jb20vdS9Hb2xkUml2ZXJcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgXFxcInB3ZFxcXCI6IFxcXCJcXFwiLy/opoHmnInlr4bnoIHloatwd2Tov5lcXG4gICAgICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICAgICAge1xcbiAgICAgICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwieW95b2RhZGFkYVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICBcXFwidXJsXFxcIjogXFxcImh0dHBzOi8vd3d3LmxhbnpvdXguY29tL3UveW95b2RhZGFkYVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICBcXFwicHdkXFxcIjogXFxcIlxcXCJcXG4gICAgICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICAgICAge1xcbiAgICAgICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi5peg5L2c5Li65YiG5LqrXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJ1cmxcXFwiOiBcXFwiaHR0cHM6Ly93d3cubGFuem91eC5jb20vdS93dXp1b3dlaVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICBcXFwicHdkXFxcIjogXFxcIlxcXCJcXG4gICAgICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICAgICAge1xcbiAgICAgICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi5b63546b6KW/5Lqa57uf6aKGXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJ1cmxcXFwiOiBcXFwiaHR0cHM6Ly9kZW1hNjY2LmxhbnpvdWkuY29tL2IwZTd5NnA1YyBcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgXFxcInB3ZFxcXCI6IFxcXCI2NjY2XFxcIlxcbiAgICAgICAgICAgICAgICB9LHtcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIkFER1VBUkRcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgXFxcInVybFxcXCI6IFxcXCJodHRwczovLzQyM2Rvd24ubGFuem91by5jb20vYjBmMTk0MjBoXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJwd2RcXFwiOiBcXFwiXFxcIlxcbiAgICAgICAgICAgICAgICB9LFxcbiAgICAgICAgICAgICAgICB7XFxuICAgICAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCJNWCBwbGF5ZXJcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgXFxcInVybFxcXCI6IFxcXCJodHRwczovLzQyM2Rvd24ubGFuem91cS5jb20vYjBmMTllbzNjXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJwd2RcXFwiOiBcXFwiXFxcIlxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgXVxcbiAgICAgICAgfSxcXG4vLy8vLy8vLy/muLjmiI8vLy8vLy8vXFxuICAgICAgICB7XFxuICAgICAgICAgICAgXFxcImdyb3VwXFxcIjogXFxcIua4uOaIj1xcXCIsXFxuICAgICAgICAgICAgXFxcIm9wdGlvbnNcXFwiOiBbXFxuICAgICAgICAgICAgICAgIHtcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIlBK5a6J5Y2T5ri45oiPXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJ1cmxcXFwiOiBcXFwiaHR0cHM6Ly9wYW4ubGFuem91LmNvbS9iODg4ODg3XFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJwd2RcXFwiOiBcXFwiXFxcIlxcbiAgICAgICAgICAgICAgICB9XFxuXFxuICAgICAgICAgICAgXVxcbiAgICAgICAgfSxcXG4vLy8vLy8vLy/pmIXor7svLy8vLy8vXFxuICAgICAgICB7XFxuICAgICAgICAgICAgXFxcImdyb3VwXFxcIjogXFxcIumYheivu1xcXCIsXFxuICAgICAgICAgICAgXFxcIm9wdGlvbnNcXFwiOiBbe1xcbiAgICAgICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi6ZiF6K+7My4w5rWL6K+V54mIXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJ1cmxcXFwiOiBcXFwiaHR0cHM6Ly9rdW5mZWkubGFuem91cS5jb20vYjBmODEwaDRiXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJwd2RcXFwiOiBcXFwiXFxcIlxcbiAgICAgICAgICAgICAgICB9LFxcbiAgICAgICAgICAgICAgICB7XFxuICAgICAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLpmIXor7szLjDkuYzkupHmm7/mjaLlh4DljJZcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgXFxcInVybFxcXCI6IFxcXCJodHRwczovL3d3aS5sYW56b3VxLmNvbS9iMGJ3OGp3b2hcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgXFxcInB3ZFxcXCI6IFxcXCJcXFwiXFxuICAgICAgICAgICAgICAgIH0sXFxuICAgICAgICAgICAgICAge1xcbiAgICAgICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi6ZiF6K+7My4w56C05Yaw5Lmm5rqQ5ZCI6ZuGXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJ1cmxcXFwiOiBcXFwiaHR0cHM6Ly9wb2JpbmcubGFuem91cS5jb20vYjBjeGswdzhiXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJwd2RcXFwiOiBcXFwiNTliVlxcXCJcXG4gICAgICAgICAgICAgICAgIH0sXFxuICAgICAgICAgICAgXVxcbiAgICAgICAgfSxcXG4gLy8vLy8vLy8va2l3aS8vLy8vLy9cXG4gICAgICAgIHtcXG4gICAgICAgICAgICBcXFwiZ3JvdXBcXFwiOiBcXFwia2l3aVxcXCIsXFxuICAgICAgICAgICAgXFxcIm9wdGlvbnNcXFwiOiBbXFxuICAgICAgICAgICAgICAgIHtcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcImtpd2nikaBcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgXFxcInVybFxcXCI6IFxcXCJodHRwczovL2Nhbm55LmxhbnpvdWkuY29tL2IwMTVrNWhhalxcXCIsXFxuICAgICAgICAgICAgICAgICAgICBcXFwicHdkXFxcIjogXFxcIjEyMzRcXFwiXFxuICAgICAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcImtpd2lcXFwiLFxcbiAgICAgICAgICAg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AgICBwdXRNeVZhcignc2hzb3J0JywgJzEnKVxcbiAgICAgICAgICAgICAgICBwdXRNeVZhcignc2gnLCBpKVxcbiAgICAgICAgICAgICAgICBwdXRNeVZhcihcXFwidmFyaWxcXFwiLCBcXFwiMFxcXCIpO1xcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgIHJldHVybiBcXFwiaGlrZXI6Ly9lbXB0eVxcXCJcXG4gICAgICAgICAgICB9LCB2YXJpLCBpKSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxcbiAgICAgICAgfSlcXG4gICAgfVxcbn1cXG5cXG5mdW5jdGlvbiBzZXRMaXN0cyhsaXN0cywgaW5kZXgpIHtcXG4gICAgaWYgKGxpc3RzLmxlbmd0aCAhPSAnJykge1xcbiAgICAgICAgdmFyIGxpc3QgPSBsaXN0c1tpbmRleF0ub3B0aW9ucztcXG4gICAgICAgIGZvciAodmFyIGogPSAwOyBqIDwgbGlzdC5sZW5ndGg7IGorKykge1xcbiAgICAgICAgICAgIHZhciB0aXRpbGUgPSBsaXN0W2pdLm5hbWVcXG4gICAgICAgICAgICB2YXIgbGlzdHN1cmwgPSBsaXN0W2pdLnVybFxcbiAgICAgICAgICAgIHZhciBsaXN0c3B3ZCA9IGxpc3Rbal0ucHdkXFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IGdldE15VmFyKFxcXCJ2YXJpbFxcXCIsICcwJykgPT0gaiA/ICfigJzigJwnICsgJ+KPsyAnICsgdGl0aWxlICsgJ+KAneKAnScgOiB0aXRpbGUsXFxuICAgICAgICAgICAgICAgIHVybDogJChcXFwiI25vTG9hZGluZyNcXFwiKS5sYXp5UnVsZSgobGlzdHN1cmwsIGxpc3RzcHdkLCBqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcignc2hzb3J0JywgJzAnKVxcbiAgICAgIC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RjaCgvJyhcXFxcPy4qPyknLylbMV1cXG4gICAgICAgICAgICAgICAgICAgICAgIC8vIGxvZyh1cmwpXFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzdXJsID0gcmVxdWVzdCh1cmwsIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVkaXJlY3Q6IGZhbHNlLFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aXRoSGVhZGVyczogdHJ1ZVxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzdXJsID0ganN1cmwubWF0Y2goL2hyZWY9LlxcXCIoLio/KVxcXCIvKVsxXVxcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwiZG93bmxvYWQ6Ly9cXFwiICsganN1cmwgLy8x44CB5bu66K6u5L2/55So56ys5LiJ5pa55LiL6L295ZmoXFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gcmV0dXJuIGpzdXJsICAgLy8y44CB5bu66K6u5YaF572u5LiL6L295Zmo5L2/55SoXFxuICAgICAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgbG9nKFxcXCLovazot7Pljp/nq5lcXFwiKVxcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZyhpbnB1dClcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gaW5wdXRcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfSlcIn0se1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIue9keebmFwiLFwicGF0aFwiOlwieWVtaWFuXCIsXCJydWxlXCI6XCJzZXRQYWdlVGl0bGUoJ+e9keebmCcpXFxuZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS9sYXp5JykpLnJ1bGUpXFxuXFxuXFxuXFxudHJ5IHtcXG4gICAg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cLV9dKykrKFtcXFxcd1xcXFwtXFxcXC4sQD9ePSUmOi9+XFxcXCsjXSpbXFxcXHdcXFxcLVxcXFxAP149JSYvflxcXFwrI10pPy8pWzBdXFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHNzcHdkID0gTVlfVVJMLnNwbGl0KFxcXCLlr4bnoIE6XFxcIilbMV1cXG4gICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihcXFwibGlzdHN1cmxcXFwiLCBzc3VybCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoXFxcImxpc3RzcHdkXFxcIiwgc3Nwd2QpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBVUkwgPSBnZXRNeVZhcihcXFwibGlzdHN1cmxcXFwiLCBcXFwiXFxcIik7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHB3ZCA9IGdldE15VmFyKFxcXCJsaXN0c3B3ZFxcXCIsIFxcXCJcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBldmFsKEpTT04ucGFyc2UocmVxdWVzdCgnaGlrZXI6Ly9wYWdlL3llbWlhbicpKS5ydWxlKVxcbiAgICAgICAgICAgICAgICAgICAgfSksXFxuICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgIGNvbF90eXBlOiAnbGluZSdcXG4gICAgfSlcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9IGNhdGNoIChlKSB7fVxcbiAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAvL2lmIChVUkwgPT0gbGlzdHNbMF0ub3B0aW9uc1swXS51cmwpIHtcXG4gICAgICAgICAgICBpZiAoL2hhaWt1by8udGVzdChVUkwpKSB7XFxuICAgICAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogXFxcIjxjZW50ZXI+XFxcIiArICc8c3BhbiBzdHlsZT1cXFwiY29sb3I6ICNGRjQ1MDBcXFwiPuWFrOS8l+WPt++8muaWsOaWueWchuWwj+ajieiihO+8gTxzbWFsbD4o54K55Ye75aSN5Yi2KTwvc21hbGw+PC9zcGFuPjwvY2VudGVyPicsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6ICdjb3B5Oi8v5paw5pa55ZyG5bCP5qOJ6KKELmpzOlxcXCJ0b2FzdDovL+W3suWkjeWItu+8jOivt+WIsOW+ruS/oeWFs+azqOWwj+ajieiihOWFrOS8l+WPt1xcXCInLFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6IFxcXCJhdmF0YXJcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgaW1nOiBcXFwiaHR0cDovL3BpYy5kb3duY2MuY29tL3VwbG9hZC8yMDIxLTQvMjAyMTQ4MTQxNTMwMTM2OS5wbmdcXFwiXFxuICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogXFxcIuKAnOKAnOKAneKAnTxjZW50ZXI+PHNtYWxsPlxcXCIgKyAnPHNwYW4gc3R5bGU9XFxcImNvbG9yOiAjRkY0NTAwXFxcIj7ph43opoHmm7TmlrDlhoXlrrnop4HlhazkvJflj7fvvJrmlrDmlrnlnIblsI/mo4noooTvvIFcXFxcbuWIq+W/mOS6hueCuei1nuOAgeWcqOeci+OAgeaKleW4geS4iei/nu+8gTwvc3Bhbj48L3NtYWxsPjwvY2VudGVyPicsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6ICdodHRwczovL21wLndlaXhpbi5xcS5jb20vcy91a01aNEQ2ZVJtLU9DQVIxRzhQYW9RJyxcXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMSdcXG4gICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgICAgIGZvciAodmFyIGogPSAwOyBqIDwgNTsgaisrKSB7XFxuICAgICAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnbGluZSdcXG4gICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9XFxuICAgICAgICB9IGNhdGNoIChlKSB7fVxcbiAgICB9XFxuXFxuICAgXFxuICAgIGZvciAodmFyIGkgaW4gbGlzdCkge1xcbiAgICAgICAgaWYgKGxpc3RbaV0uaWQgIT0gdW5kZWZpbmVkKSB7XFxuICAgICAgICBcXHR2YXIgdXJsID10cnVybCArICcvdHAvJyArIGxpc3RbaV0uaWRcXG4gICAgICAgICAgICBpZiAobGlzdFtpXS5pY28gIT0gdW5kZWZpbmVkKSB7XFxuICAgICAgICAgICAgICAgIHZhciBpY28gPSBnZXRNeVZhcihcXFwiaWNvXFxcIikgKyBsaXN0W2ldLmljb1xcbiAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgIHZhciBpY28gPSBcXFwiaHR0cHM6Ly9sYW5tZWlndW9qaWFuZy5jb20vdHViaWFvL21lc3N5LzcxLnN2Z1xcXCJcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IGxpc3RbaV0ubmFtZV9hbGwsXFxuICAgICAgICAgICAgICAgIGltZzogaWNvLCAgICAgICAgICAgICAgICBcXG4gICAgICAgICAgICAgICAgdXJsOnVybCtsYXp5LCBcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6IFxcXCJhdmF0YXJcXFwiLFxcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IGxpc3RbaV0udGltZSxcXG4gICAgICAgICAgICAvL3VybDpcXFwidG9hc3Q6Ly/lj5HluIPkuo5cXFwiK2xpc3RbaV0udGltZSwgXFxuICAgICAgICAgICAgdXJsOnVybCtsYXp5LCAgXFxuICAgICAgICAgICA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