Advertisement
xiaomianao666

邀您一起看:喜欢听音乐的梦

Sep 18th, 2024
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥喜欢听音乐的梦@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbXSxcInBhcmFtc1wiOlwie1xcXCJjbHNcXFwiOlxcXCJlbGVsaXN0IOaXpeW4uOS5puetvue7hCDlvIDlhbNcXFwiLFxcXCJpZFxcXCI6XFxcIuaIkeeahOS4u+mhtSPpn7PkuZDmrYzljZVcXFwiLFxcXCJsb25nQ2xpY2tcXFwiOlt7XFxcImpzXFxcIjpcXFwiKFxcXFxuKGtleSwgalVybCwgaW5kZXgsIGlzR3JvdXApID0+IHtcXFxcbiAgICBldmFsKGZldGNoKGpVcmwpKTtcXFxcbiAgICBjb25zdCBMb2NhbGZpbGUgPSBIaWtlckhvbWUuZ2V0TG9jYWxmaWxlKCk7XFxcXG4gICAgY29uc3QgYm9va01hcmsgPSBIaWtlckhvbWUuZ2V0Qm9va21hcmtzTGlzdChMb2NhbGZpbGUuZ2V0SXRlbShcXFxcXFxcIkJvb2ttYXJrc0xpc3RcXFxcXFxcIikpO1xcXFxuICAgIGlmIChpc0dyb3VwKSB7XFxcXG4gICAgICAgIHZhciB0ZW0gPSBib29rTWFyay5nZXRfZ3JvdXAoa2V5LCBpbmRleCk7XFxcXG4gICAgICAgIHRlbS5zdG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TYyNGJcXFwiKS5pbnB1dCgoanNvbikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uIHNlYXJjaChhcnJheSwgbmFtZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gYXJyYXkuZmlsdGVyKGl0ZW0gPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGl0ZW0udGl0bGUudG9Mb3dlckNhc2UoKS5pbmNsdWRlcyhuYW1lLnRvTG93ZXJDYXNlKCkpIHx8IGl0ZW0uc2luZ2VyLnRvTG93ZXJDYXNlKCkuaW5jbHVkZXMobmFtZS50b0xvd2VyQ2FzZSgpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgcmVzdWx0cyA9IHNlYXJjaChqc29uLCBpbnB1dCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlc3VsdHMubGVuZ3RoID4gMCkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJChcXFwiaGlrZXI6Ly9lbXB0eVxcXCIpLnJ1bGUoKHJlc3VsdHMpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldFBhZ2VUaXRsZShcXFwiXFxcXHU2NDFjXFxcXHU3ZDIyXFxcXHU3ZWQzXFxcXHU2NzljXFxcIik7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZCA9IFtdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzdWx0cy5mb3JFYWNoKGogPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQucHVzaCh7dGl0bGU6IGoudGl0bGUsIGNvbF90eXBlOiBcXFwidGV4dF8xXFxcIiwgZGVzYzogai5hbGJ1bSA/IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai5hbGJ1bSA6IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai50aXRsZSwgcGljOiBqLnBpYywgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nI1xcXCIpLmxhenlSdWxlKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganMgPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL2FwaS54aW5nemhpZ2UuY29tL0FQSS9RUW11c2ljVklQLz9icj0xMSZtaWQ9XFxcIiArIGouaWQpKS5kYXRhLnNyYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbanMgKyBcXFwiI2lzTXVzaWM9dHJ1ZSNcXFwiXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL3hpYW9hcGkuY24vQVBJL212X3NxLnBocD9uPTEmbXNnPVxcXCIgKyBqLnRpdGxlLCB7dGltZW91dDogMjAwMH0pKS51cmw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gW2pzb25bM10gfHwganNvblsyXSB8fCBqc29uWzFdIHx8IGpzb25bMF1dO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbHJjID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueWFvaHVkLmNuL2FwaS9tdXNpYy9scmM/a2V5PWFVbHlrQTM1S2dtd1BVcGVoSktOYkZqbzZ2JnR5cGU9cXEmbWlkPVxcXCIgKyBqLmlkKSkuZGF0YTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHt1cmxzOiB1cmwsIGx5cmljOiBscmN9KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCBqKSwgZXh0cmE6IHtpbmhlcml0VGl0bGU6IGZhbHNlfX0pO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldFJlc3VsdChkKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAsIHJlc3VsdHMpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly9cXFxcdTZjYTFcXFxcdTY3MDlcXFxcdTYyN2VcXFxcdTUyMzBcXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICwganNvbiksIGV4dHJhOiB7bG9uZ0NsaWNrOiBbe3RpdGxlOiBcXFwiXFxcXHVkODNkXFxcXHVkY2UwXFxcXHU1OTBkXFxcXHU1MjM2XFxcXHU1NmZlXFxcXHU3MjQ3XFxcXHU5NGZlXFxcXHU2M2E1XFxcIiwganM6ICQudG9TdHJpbmcoKGh0bWwpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcImNvcHk6Ly9cXFwiICsgaHRtbC5pbmZvLnBpY3VybDtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICwgaHRtbCl9XX19KTtcXG4gICAgICAgICAgICAgICAgICAgIGpzb24ubWFwKGogPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGQucHVzaCh7dGl0bGU6IGoudGl0bGUsIGNvbF90eXBlOiBcXFwidGV4dF8xXFxcIiwgZGVzYzogai5hbGJ1bSA/IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai5hbGJ1bSA6IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai50aXRsZSwgcGljX3VybDogai5waWMgKyBcXFwiQFJlZmVyZXI9XFxcIiwgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nIyNub0hpc3RvcnkjI25vUmVjb3JkSGlzdG9yeSNcXFwiKS5sYXp5UnVsZSgoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueGluZ3poaWdlLmNvbS9BUEkvUVFtdXNpY1ZJUC8/YnI9MTEmbWlkPVxcXCIgKyBqLmlkKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gW2pzICsgXFxcIiNpc011c2ljPXRydWUjXFxcIl07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly94aWFvYXBpLmNuL0FQSS9tdl9zcS5waHA/bj0xJm1zZz1cXFwiICsgai50aXRsZSwge3RpbWVvdXQ6IDIwMDB9KSkudXJsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IFtqc29uWzNdIHx8IGpzb25bMl0gfHwganNvblsxXSB8fCBqc29uWzBdXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGxyYyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnlhb2h1ZC5jbi9hcGkvbXVzaWMvbHJjP2tleT1hVWx5a0EzNUtnbXdQVXBlaEpLTmJGam82diZ0eXBlPXFxJm1pZD1cXFwiICsgai5pZCkpLmRhdGE7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7dXJsczogdXJsLCBseXJpYzogbHJjfSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICwgaiksIGV4dHJhOiB7aW5oZXJpdFRpdGxlOiBmYWxzZSwgbG9uZ0NsaWNrOiBbe3RpdGxlOiBcXFwiXFxcXHU0ZTBiXFxcXHU4ZjdkXFxcXHU2YjRjXFxcXHU2NmYyXFxcIiwganM6ICQudG9TdHJpbmcoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL2FwaS54aW5nemhpZ2UuY29tL0FQSS9RUW11c2ljVklQLz9icj0xMSZtaWQ9XFxcIiArIGouaWQpKS5kYXRhLnNyYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJkb3dubG9hZDovL1xcXCIgKyBqc29uO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAsIGopfSwge3RpdGxlOiBcXFwiXFxcXHU4OWMyXFxcXHU3NzBiTVZcXFwiLCBqczogJC50b1N0cmluZygoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL3hpYW9hcGkuY24vQVBJL212X3NxLnBocD9uPTEmbXNnPVxcXCIgKyBqLnRpdGxlLCB7dGltZW91dDogMjAwMH0pKS51cmw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gW2pzb25bM10gfHwganNvblsyXSB8fCBqc29uWzFdIHx8IGpzb25bMF1dO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gW0pTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLmNlbmd1aWd1aS5jbi9hcGkvanVoZS9hcGkucGhwP3R5cGU9a2dtdiZuPTEmbXNnPVxcXCIgKyBqLnRpdGxlLCB7dGltZW91dDogMjAwMH0pKS5kYXRhLnVybF07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICA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JoaWtlcjovL2ZpbGVzL0ptL2dlZGFuLmpzb25cXFwiLCBKU09OLnN0cmluZ2lmeShnZWRhbikpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJ0b2FzdDovL1xcXFx1NjZmNFxcXFx1NjUzOVxcXFx1NjIxMFxcXFx1NTI5Zn5cXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgaW5kZXgpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpbnB1dCA9PSBcXFwiXFxcXHU3OWZiXFxcXHU0ZjRkXFxcIikge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICQoXFxcIlxcXCIsIFxcXCJcXFxcdTg5ODFcXFxcdTc5ZmJcXFxcdTUyYThcXFxcdTUyMzBcXFxcdTU0ZWFcXFxcdTRlMmFcXFxcdTVlOGZcXFxcdTUzZjdcXFxcdTUyNGRcXFxcdTk3NjIvXFxcXHU1NDBlXFxcXHU5NzYyXFxcIikuaW5wdXQoKGluZGV4KSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGdlZGFuID0gSlNPTi5wYXJzZShyZXF1ZXN0KFxcXCJoaWtlcjovL2ZpbGVzL0ptL2dlZGFuLmpzb25cXFwiKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHRlbXAgPSBnZWRhbltpbmRleF07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VkYW4uc3BsaWNlKGlucHV0LCAwLCB0ZW1wKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaW5wdXQgPCBpbmRleCkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnZWRhbi5zcGxpY2UoaW5kZXggKyAxLCAxKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnZWRhbi5zcGxpY2UoaW5kZXgsIDEpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzYXZlRmlsZShcXFwiaGlrZXI6Ly9maWxlcy9KbS9nZWRhbi5qc29uXFxcIiwgSlNPTi5zdHJpbmdpZnkoZ2VkYW4pKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJ0b2FzdDovL1xcXFx1NzlmYlxcXFx1NGY0ZFxcXFx1NjIxMFxcXFx1NTI5Zn5cXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCBpbmRleCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZ2VkYW4gPSBKU09OLnBhcnNlKHJlcXVlc3QoXFxcImhpa2VyOi8vZmlsZXMvSm0vZ2VkYW4uanNvblxcXCIpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdlZGFuLnNwbGljZShpbmRleCwgMSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzYXZlRmlsZShcXFwiaGlrZXI6Ly9maWxlcy9KbS9nZWRhbi5qc29uXFxcIiwgSlNPTi5zdHJpbmdpZnkoZ2VkYW4pKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly9cXFxcdTUyMjBcXFxcdTk2NjRcXFxcdTYyMTBcXFxcdTUyOWZ+XFxcIjtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICwgaW5kZXgsIGl0ZW0pfSk7XFxuICAgICAgICAgICAgICAgICAgICBpbmRleCsrO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICk7XFxuICAgICAgICAgICAgICAgIHNldFJlc3VsdChkKTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgKTtcXG4gICAgICAgIH1cXG4gICAgICAgICl9LCB7dGl0bGU6IFxcXCJcXFxcdTI2N2JcXFxcdWZlMGYgXFxcXHU2MDYyXFxcXHU1OTBkXFxcXHU5ZWQ4XFxcXHU4YmE0XFxcIiwganM6ICQudG9TdHJpbmcoKCkgPT4ge1xcbiAgICAgICAgICAgIGRlbGV0ZUZpbGUoXFxcImhpa2VyOi8vZmlsZXMvSm0vZ2VkYW4uanNvblxcXCIpO1xcbiAgICAgICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKTtcXG4gICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8vXFxcXHU1ZGYyXFxcXHU2MDYyXFxcXHU1OTBkXFxcXHU5ZWQ4XFxcXHU4YmE0XFxcIjtcXG4gICAgICAgIH1cXG4gICAgICAgICl9XX19KTtcXG4gICAgICAgIGQucHVzaCh7dGl0bGU6IFxcXCJcXFxcdTVjMGZcXFxcdTgyYjhcXFxcdTY5OWNcXFxcdTUzNTVcXFwiLCBjb2xfdHlwZTogXFxcImljb25fM19yb3VuZF9maWxsXF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2xfdHlwZTogXFxcInRleHRfMVxcXCIsIGRlc2M6IGouYWxidW0gPyBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGouYWxidW0gOiBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGoudGl0bGUsIHBpY191cmw6IGoucGljICsgXFxcIkBSZWZlcmVyPVxcXCIsIHVybDogJChcXFwiI25vTG9hZGluZyMjbm9IaXN0b3J5IyNub1JlY29yZEhpc3RvcnkjXFxcIikubGF6eVJ1bGUoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL05ldEVhc2VfQ2xvdWRNdXNpY19uZXcvP2JyPTUmc29uZ2lkPVxcXCIgKyBqLmlkKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IChcXFwiaHR0cHM6Ly9tdXNpYy4xNjMuY29tL3NvbmcvbWVkaWEvb3V0ZXIvdXJsP2lkPVxcXCIgKyBqLmlkKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgdXJsID0gW2pzICsgXFxcIiNpc011c2ljPXRydWUjXFxcIl07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbHJjID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cDovL211c2ljLjE2My5jb20vYXBpL3NvbmcvbHlyaWM/b3M9cGMmbHY9LTEma3Y9LTEmdHY9LTEmaWQ9XFxcIiArIGouaWQpKS5scmMubHlyaWM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7dXJsczogdXJsLCBseXJpYzogbHJjfSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICwgaiksIGV4dHJhOiB7aW5oZXJpdFRpdGxlOiBmYWxzZSwgbG9uZ0NsaWNrOiBbe3RpdGxlOiBcXFwiXFxcXHU0ZTBiXFxcXHU4ZjdkXFxcXHU2YjRjXFxcXHU2NmYyXFxcIiwganM6ICQudG9TdHJpbmcoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueGluZ3poaWdlLmNvbS9BUEkvTmV0RWFzZV9DbG91ZE11c2ljX25ldy8/YnI9NSZzb25naWQ9XFxcIiArIGouaWQpKS5kYXRhLnNyYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSAoXFxcImh0dHBzOi8vbXVzaWMuMTYzLmNvbS9zb25nL21lZGlhL291dGVyL3VybD9pZD1cXFwiICsgai5pZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJkb3dubG9hZDovL1xcXCIgKyBqc29uO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAsIGopfSwge3RpdGxlOiBcXFwiXFxcXHU4OWMyXFxcXHU3NzBiTVZcXFwiLCBqczogJC50b1N0cmluZygoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnZwczAyLnRvcC9BUEkva2dfbXVzaWNfbXYucGhwP249MSZ0eXBlPWpzb24mbXNnPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS51cmw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidmlkZW86Ly9cXFwiICsganNvbjtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgLCBqKX1dfX0pO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICAgICAgICAgIHNldFJlc3VsdChkKTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAsIGlkKTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgLCBnZWRhbik7XFxuICAgICAgICB9XFxuICAgICAgICApfSk7XFxuICAgICAgICBkLnB1c2goe3RpdGxlOiBnZXRJdGVtKFxcXCJrd2dkXFxcIiwgXFxcIm5ld1xcXCIpID09IFxcXCJuZXdcXFwiID8gXFxcIlxcXFx1NjcwMFxcXFx1NjViMFxcXFx1NmI0Y1xcXFx1NTM1NVxcXCIgOiBcXFwiXFxcXHU2NzAwXFxcXHU3MGVkXFxcXHU2YjRjXFxcXHU1MzU1XFxcIiwgY29sX3R5cGU6IFxcXCJpY29uXzNfcm91bmRfZmlsbFxcXCIsIHBpYzogXFxcImhpa2VyOi8vZmlsZXMvSm0vbG0vbXVzaWMvODIuc3ZnXFxcIiwgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nI1xcXCIpLmxhenlSdWxlKCgpID0+IHtcXG4gICAg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AgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAganNvbi5mb3JFYWNoKGogPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe3RpdGxlOiBqLnRpdGxlLCBjb2xfdHlwZTogXFxcInRleHRfMVxcXCIsIGRlc2M6IGouYWxidW0gPyBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGouYWxidW0gOiBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGoudGl0bGUsIHBpY191cmw6IGoucGljICsgXFxcIkBSZWZlcmVyPVxcXCIsIHVybDogJChcXFwiI25vTG9hZGluZyMjbm9IaXN0b3J5IyNub1JlY29yZEhpc3RvcnkjXFxcIikubGF6eVJ1bGUoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueGluZ3poaWdlLmNvbS9BUEkvUVFtdXNpY1ZJUC8/YnI9MTEmbWlkPVxcXCIgKyBqLmlkKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IFtqcyArIFxcXCIjaXNNdXNpYz10cnVlI1xcXCJdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly94aWFvYXBpLmNuL0FQSS9tdl9zcS5waHA/bj0xJm1zZz1cXFwiICsgai50aXRsZSwge3RpbWVvdXQ6IDIwMDB9KSkudXJsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbanNvblszXSB8fCBqc29uWzJdIHx8IGpzb25bMV0gfHwganNvblswXV07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBscmMgPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL2FwaS55YW9odWQuY24vYXBpL211c2ljL2xyYz9rZXk9YVVseWtBMzVLZ213UFVwZWhKS05iRmpvNnYmdHlwZT1xcSZtaWQ9XFxcIiArIGouaWQpKS5kYXRhO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHt1cmxzOiB1cmwsIGx5cmljOiBscmN9KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAsIGopLCBleHRyYToge2luaGVyaXRUaXRsZTogZmFsc2UsIGxvbmdDbGljazogW3t0aXRsZTogXFxcIlxcXFx1NGUwYlxcXFx1OGY3ZFxcXFx1NmI0Y1xcXFx1NjZmMlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL1FRbXVzaWNWSVAvP2JyPTExJm1pZD1cXFwiICsgai5pZCkpLmRhdGEuc3JjO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJkb3dubG9hZDovL1xcXCIgKyBqc29uO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgail9LCB7dGl0bGU6IFxcXCJcXFxcdTg5YzJcXFxcdTc3MGJNVlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly94aWFvYXBpLmNuL0FQSS9tdl9zcS5waHA/bj0xJm1zZz1cXFwiICsgai50aXRsZSwge3RpbWVvdXQ6IDIwMDB9KSkudXJsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbanNvblszXSB8fCBqc29uWzJdIHx8IGpzb25bMV0gfHwganNvblswXV07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkuY2VuZ3VpZ3VpLmNuL2FwaS9qdWhlL2FwaS5waHA/dHlwZT1rZ212Jm49MSZtc2c9XFxcIiArIGoudGl0bGUsIHt0aW1lb3V0OiAyMDAwfSkpLmRhdGEudXJsXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7dXJsczogdXJsfSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLCBqKX1dfX0pO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldFJlc3VsdChkKTtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICwgdHh0KTtcXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgIGlmIChpbnB1dCA9PSBcXFwiXFxcXHU1YzBmXFxcXHU4MmI4XFxcIikge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAkKFxcXCJoaWtlcjovL2VtcHR5I2ltbWVyc2l2ZVRoZW1lIyNub0hpc3RvcnkjI25vUmVjb3JkSGlzdG9yeSNcXFwiKS5ydWxlKCh0eHQpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0UGFnZVRpdGxlKFxcXCJcXFxcdTVjMGZcXFxcdTgyYjhcXFxcdTY0MWNcXFxcdTdkMjJcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGQgPSBbXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHlpeWFuID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaGlrZXI6Ly9maWxlcy9KbS95aXlhbi5qc29uXFxcIikpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgbWF4ID0geWl5YW4ubGVuZ3RoIC0gMTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IG1pbiA9IDA7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBudW0gPSBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiAobWF4IC0gbWluICsgMSkpICsgbWluO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgRGlzcGxheSA9IHlpeWFuW251bV07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cDovL211c2ljLjE2My5jb20vYXBpL3NlYXJjaC9nZXQvd2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c29uLm1hcChqID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQucHVzaCh7dGl0bGU6IGoudGl0bGUsIGNvbF90eXBlOiBcXFwidGV4dF8xXFxcIiwgcGljX3VybDogai5waWMgKyBcXFwiQFJlZmVyZXI9XFxcIiwgZGVzYzogai5hbGJ1bSA/IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai5hbGJ1bSA6IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai50aXRsZSwgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nIyNub0hpc3RvcnkjI25vUmVjb3JkSGlzdG9yeSNcXFwiKS5sYXp5UnVsZSgoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL05ldEVhc2VfQ2xvdWRNdXNpY19uZXcvP2JyPTUmc29uZ2lkPVxcXCIgKyBqLmlkKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IChcXFwiaHR0cHM6Ly9tdXNpYy4xNjMuY29tL3NvbmcvbWVkaWEvb3V0ZXIvdXJsP2lkPVxcXCIgKyBqLmlkKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IFtqcyArIFxcXCIjaXNNdXNpYz10cnVlI1xcXCJdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBscmMgPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwOi8vbXVzaWMuMTYzLmNvbS9hcGkvc29uZy9seXJpYz9vcz1wYyZsdj0tMSZrdj0tMSZ0dj0tMSZpZD1cXFwiICsgai5pZCkpLmxyYy5seXJpYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoe3VybHM6IHVybCwgbHlyaWM6IGxyY30pO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCBqKSwgZXh0cmE6IHtpbmhlcml0VGl0bGU6IGZhbHNlLCBsb25nQ2xpY2s6IFt7dGl0bGU6IFxcXCJcXFxcdTRlMGJcXFxcdThmN2RcXFxcdTZiNGNcXFxcdTY2ZjJcXFwiLCBqczogJC50b1N0cmluZygoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueGluZ3poaWdlLmNvbS9BUEkvTmV0RWFzZV9DbG91ZE11c2ljX25ldy8/YnI9NSZzb25naWQ9XFxcIiArIGouaWQpKS5kYXRhLnNyYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSAoXFxcImh0dHBzOi8vbXVzaWMuMTYzLmNvbS9zb25nL21lZGlhL291dGVyL3VybD9pZD1cXFwiICsgai5pZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwiZG93bmxvYWQ6Ly9cXFwiICsganNvbjtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgail9LCB7dGl0bGU6IFxcXCJcXFxcdTg5YzJcXFxcdTc3MGJNVlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIG5hbWUgPSB0LnNwbGl0KFxcXCIgXFxcIilbMF07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL2FwaS52cHMwMi50b3AvQVBJL2tnX211c2ljX212LnBocD9uPTEmdHlwZT1qc29uJm1zZz1cXFwiICsgai50aXRsZSkpLmRhdGEudXJsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidmlkZW86Ly9cXFwiICsganNvbjtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgail9XX19KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRSZXN1bHQoZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICwgdHh0KTtcXG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICQoXFxcImhpa2VyOi8vZW1wdHkjZnlwYWdlI2ltbWVyc2l2ZVRoZW1lIyNub0hpc3RvcnkjI25vUmVjb3JkSGlzdG9yeSNcXFwiKS5ydWxlKCh0eHQpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0UGFnZVRpdGxlKFxcXCJcXFxcdTVjMGZcXFxcdTgzYjRcXFxcdTY0MWNcXFxcdTdkMjJcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGQgPSBbXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHlpeWFuID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaGlrZXI6Ly9maWxlcy9KbS95aXlhbi5qc29uXFxcIikpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgbWF4ID0geWl5YW4ubGVuZ3RoIC0gMTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IG1pbiA9IDA7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBudW0gPSBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiAobWF4IC0gbWluICsgMSkpICsgbWluO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgRGlzcGxheSA9IHlpeWFuW251bV07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9zZWFyY2gua3V3by5jbi9yLnM/Y2xpZW50PWt0JnBuPVxcXCIgKyAoTVlfUEFHRSAtIDEpICsgXFxcIiZybj0zMCZ2aXB2ZXI9MSZmdD1tdXNpYyZlbmNvZGluZz11dGY4JnJmb3JtYXQ9anNvbiZtb2JpPTEmYWxsPVxcXCIgKyB0eHQpKS5hYnNsaXN0Lm1hcChqID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBpbWcgPSAoXFxcImh0dHA6Ly9pbWcxLmt3Y2RuLmt1d28uY24vc3Rhci9hbGJ1bWNvdmVyLzUwMFxcXCIgKyBqLndlYl9hbGJ1bXBpY19zaG9ydC5zcGxpdChcXFwiMTIwXFxcIilbMV0pO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHt0aXRsZTogai5TT05HTkFNRSwgc2luZ2VyOiBqLkFSVElTVCwgcGljOiBpbWcsIGFsYnVtOiBqLkFMQlVNLCByaWQ6IGouRENfVEFSR0VUSUQsIHZpZDogai5tdnBheWluZm8udmlkfTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoTVlfUEFHRSA9PSAxKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe3RpdGxlOiBcXFwiXFxcXHVkODNkXFxcXHVkZDBlXFxcXHRcXFwiICsgdHh0LCBwaWM6IGpzb25bMF0ucGljLCBjb2xfdHlwZTogXFxcIm1vdmllXzFfdmVydGljYWxfcGljX2JsdXJcXFwiLCBkZXNjOiBcXFwiXFxcXHVkODNlXFxcXHVkZGY4XFxcXHRcXFxcdTVjMGZcXFxcdTgzYjRcXFxcdTk3ZjNcXFxcdTRlNTBcXFxcblxcXFxuXFxcXHVkODNjXFxcXHVkZmE4XFxcXHRcXFwiICsgRGlzcGxheS5yZXBsYWNlKC/vvIx844CCL2csIFxcXCIgXFxcIiksIHVybDogXFxcImhpa2VyOi8vZW1wdHlcXFwifSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAganNvbi5tYXAoaiA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe3RpdGxlOiBqLnRpdGxlLCBjb2xfdHlwZTogXFxcInRleHRfMVxcXCIsIHBpYzogai5waWMgKyBcXFwiQFJlZmVyZXI9XFxcIiwgZGVzYzogai5hbGJ1bSA/IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai5hbGJ1bSA6IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai50aXRsZSwgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nIyNub0hpc3RvcnkjI25vUmVjb3JkSGlzdG9yeSNcXFwiKS5sYXp5UnVsZSgoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL0t1d29fQkRfbmV3Lz9uPTEmYnI9NSZuYW1lPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IGZldGNoKFxcXCJodHRwczovL2FudGlzZXJ2ZXIua3V3by5jbi9hbnRpLnM/dHlwZT1jb252ZXJ0X3VybCZmb3JtYXQ9bXAzJnJpZD1cXFwiICsgai5yaWQpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgdXJsID0gW2pzICsgXFxcIiNpc011c2ljPXRydWUjXFxcIl07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGxyYyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vbS5rdXdvLmNuL25ld2g1L3NpbmdsZXMvc29uZ2luZm9hbmRscmM/bXVzaWNJZD1cXFwiICsgai5yaWQpKS5kYXRhLmxyY2xpc3QubWFwKGQgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHMgPSAoZC50aW1lICUgNjApLnRvRml4ZWQoMikucGFkU3RhcnQoNSwgXFxcIjBcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBtID0gKChkLnRpbWUgLSBzKSAvIDYwKS50b0ZpeGVkKDApLnBhZFN0YXJ0KDIsIFxcXCIwXFxcIik7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcIltcXFwiICsgbSArIFxcXCI6XFxcIiArIHMgKyBcXFwiXVxcXCIgKyBkLmxpbmVMeXJpYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLmpvaW4oXFxcIlxcXFxuXFxcIik7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHt1cmxzOiB1cmwsIGx5cmljOiBscmN9KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgaiksIGV4dHJhOiB7aW5oZXJpdFRpdGxlOiBmYWxzZSwgbG9uZ0NsaWNrOiBbe3RpdGxlOiBcXFwiXFxcXHU0ZTBiXFxcXHU4ZjdkXFxcXHU2YjRjXFxcXHU2NmYyXFxcIiwganM6ICQudG9TdHJpbmcoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL0t1d29fQkRfbmV3Lz9uPTEmYnI9NSZuYW1lPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gZmV0Y2goXFxcImh0dHBzOi8vYW50aXNlcnZlci5rdXdvLmNuL2FudGkucz90eXBlPWNvbnZlcnRfdXJsJmZvcm1hdD1tcDMmcmlkPVxcXCIgKyBqLnJpZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwiZG93bmxvYWQ6Ly9cXFwiICsganNvbjtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgail9LCB7dGl0bGU6IFxcXCJcXFxcdTg5YzJcXFxcdTc3MGJNVlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHZpZCA9PSBcXFwiMFxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnZwczAyLnRvcC9BUEkva2dfbXVzaWNfbXYucGhwP249MSZ0eXBlPWpzb24mbXNnPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS51cmw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGh0bWwgPSBmZXRjaChcXFwiaHR0cHM6Ly9hbnltYXRjaC5rdXdvLmNuL21vYmkucz9mPXdlYiZ1c2VyPTZmMTczY2Y5YTJhOWRhNGMmc291cmNlPWt3cGxheWVyX2FyXzEwLjguMi4yXzEzOC5hcGsmdHlwZT1nZXRfdXJsX2J5X3ZpZCZxdWFsaXR5PU1QNEhWJnAycGlkPTEmdmlkPVxcXCIgKyBqLnZpZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBhID0gaHRtbC5zcGxpdChcXFwiPVxcXCIpWzNdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgYiA9IGEuc3BsaXQoXFxcIj9cXFwiKVswXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHVybCA9IGI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidmlkZW86Ly9cXFwiICsgdXJsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgail9XX19KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRSZXN1bHQoZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICwgdHh0KTt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2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai50aXRsZSwgcGljOiBqLnBpYyArIFxcXCJAUmVmZXJlcj1cXFwiLCB1cmw6ICQoXFxcIiNub0xvYWRpbmcjI25vSGlzdG9yeSMjbm9SZWNvcmRIaXN0b3J5I1xcXCIpLmxhenlSdWxlKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL0t1d29fQkRfbmV3Lz9uPTEmYnI9NSZuYW1lPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IGZldGNoKFxcXCJodHRwczovL2FudGlzZXJ2ZXIua3V3by5jbi9hbnRpLnM/dHlwZT1jb252ZXJ0X3VybCZmb3JtYXQ9bXAzJnJpZD1cXFwiICsgai5pZCk7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICBsZXQgdXJsID0gW2pzICsgXFxcIiNpc011c2ljPXRydWUjXFxcIl07XFxuICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBscmMgPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL20ua3V3by5jbi9uZXdoNS9zaW5nbGVzL3NvbmdpbmZvYW5kbHJjP211c2ljSWQ9XFxcIiArIGouaWQpKS5kYXRhLmxyY2xpc3QubWFwKGQgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgcyA9IChkLnRpbWUgJSA2MCkudG9GaXhlZCgyKS5wYWRTdGFydCg1LCBcXFwiMFxcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgbSA9ICgoZC50aW1lIC0gcykgLyA2MCkudG9GaXhlZCgwKS5wYWRTdGFydCgyLCBcXFwiMFxcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcIltcXFwiICsgbSArIFxcXCI6XFxcIiArIHMgKyBcXFwiXVxcXCIgKyBkLmxpbmVMeXJpYztcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgKS5qb2luKFxcXCJcXFxcblxcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHt1cmxzOiB1cmwsIGx5cmljOiBscmN9KTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAsIGopLCBleHRyYToge2luaGVyaXRUaXRsZTogZmFsc2UsIGxvbmdDbGljazogW3t0aXRsZTogXFxcIlxcXFx1NGUwYlxcXFx1OGY3ZFxcXFx1NmI0Y1xcXFx1NjZmMlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueGluZ3poaWdlLmNvbS9BUEkvS3V3b19CRF9uZXcvP249MSZicj01Jm5hbWU9XFxcIiArIGoudGl0bGUpKS5kYXRhLnNyYztcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBmZXRjaChcXFwiaHR0cHM6Ly9hbnRpc2VydmVyLmt1d28uY24vYW50aS5zP3R5cGU9Y29udmVydF91cmwmZm9ybWF0PW1wMyZyaWQ9XFxcIiArIGouaWQpO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJkb3dubG9hZDovL1xcXCIgKyBqc29uO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICwgail9LCB7dGl0bGU6IFxcXCJcXFxcdTg5YzJcXFxcdTc3MGJNVlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICBpZiAoai52aWQgPT0gXFxcIjBcXFwiKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIG5hbWUgPSB0LnNwbGl0KFxcXCIgXFxcIilbMF07XFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnZwczAyLnRvcC9BUEkva2dfbXVzaWNfbXYucGhwP249MSZ0eXBlPWpzb24mbXNnPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS51cmw7XFxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBodG1sID0gZmV0Y2goXFxcImh0dHBzOi8vYW55bWF0Y2gua3V3by5jbi9tb2JpLnM/Zj13ZWImdXNlcj02ZjE3M2NmOWEyYTlkYTRjJnNvdXJjZT1rd3BsYXllcl9hcl8xMC44LjIuMl8xMzguYXBrJnR5cGU9Z2V0X3VybF9ieV92aWQmcXVhbGl0eT1NUDRIViZwMnBpZD0xJnZpZD1cXFwiICsgai5pZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGEgPSBodG1sLnNwbGl0KFxcXCI9XFxcIilbM107XFxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGIgPSBhLnNwbGl0KFxcXCI/XFxcIilbMF07XFxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHVybCA9IGI7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcInZpZGVvOi8vXFxcIiArIHVybDtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAsIGopfV19fSk7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICk7XFxuICAgICAgICAgICAgc2V0UmVzdWx0KGQpO1xcbiAgICAgICAgfVxcbiAgICAgICAgLCBkYXRhKX0pO1xcbiAgICB9XFxuICAgICk7XFxuICAgIHNldFJlc3VsdChkKTtcXG59XFxuKSgpXCIsXCJncm91cFwiOlwi4pGg5o6o6I2QXCIsXCJ1YVwiOlwibW9iaWxlXCIsXCJwcmVSdWxlXCI6XCJcIn0iLCJwaWNVcmwiOiJoaWtlcjovL2ZpbGVzL0ptL2xtL21vcmUvMTgucG5nIiwidGl0bGUiOiLllpzmrKLlkKzpn7PkuZDnmoTmoqYifQ==
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement