xiaomianao666

小程序:Top测试

Apr 9th, 2023
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@Top测试@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoiVG9w5rWL6K+VIiwiYXV0aG9yIjoiQExveURnSWsiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNmeWNsYXNzIiwidmVyc2lvbiI6NSwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJ2aWRlbyIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIGQgPSBbXTtcbmxldCB7XG4gICAgbG9hZFxufSA9ICQucmVxdWlyZShcImhpa2VyOi8vcGFnZS9kYXRhXCIpO1xubGV0IGFyciA9IGxvYWQoKTtcbmFyci5wdXNoKHtcbiAgICBuYW1lOiBcIua3u+WKoOWvvOWFpVwiLFxuICAgIHVybDogXCJoaWtlcjovL3BhZ2UvYWRkI25vSGlzdG9yeSNcIlxufSk7XG5hcnIucHVzaCh7XG4gICAgbmFtZTogXCLliIbkuqvmlbDmja5cIixcbiAgICB1cmw6ICQoKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgIGxldCB7XG4gICAgICAgICAgICBsb2FkXG4gICAgICAgIH0gPSAkLnJlcXVpcmUoXCJoaWtlcjovL3BhZ2UvZGF0YVwiKTtcbiAgICAgICAgbGV0IGFyciA9IGxvYWQoKTtcbiAgICAgICAgaWYgKGFyci5sZW5ndGggPT0gMCkge1xuICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/ov5jmsqHmnInmlrDlop7ov4flvJXmk47lk6ZcIlxuICAgICAgICB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cIlwiLFxuICAgICAgICBwaWNfdXJsOiBcIlwiLFxuICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgbG9uZ0NsaWNrOiBbe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBcIue9rumhtlwiICsgaXQubmFtZSxcbiAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygobmFtZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBsZXQge1xuICAgICAgICAgICAgICAgICAgICAgICAgdG9wXG4gICAgICAgICAgICAgICAgICAgIH0gPSAkLnJlcXVpcmUoXCJoaWtlcjovL3BhZ2UvZGF0YVwiKTtcbiAgICAgICAgICAgICAgICAgICAgdG9wKG5hbWUpO1xuICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgICAgIH0sIGl0Lm5hbWUpXG4gICAgICAgICAgICB9LCB7XG4gICAgICAgICAgICAgICAgdGl0bGU6IFwi5Yig6ZmkXCIgKyBpdC5uYW1lLFxuICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKChuYW1lKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGxldCB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZW1vdmVcbiAgICAgICAgICAgICAgICAgICAgfSA9ICQucmVxdWlyZShcImhpa2VyOi8vcGFnZS9kYXRhXCIpO1xuICAgICAgICAgICAgICAgICAgICByZW1vdmUobmFtZSk7XG4gICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XG4gICAgICAgICAgICAgICAgfSwgaXQubmFtZSlcbiAgICAgICAgICAgIH1dXG4gICAgICAgIH1cbiAgICB9KTtcbn1cbmxldCBpc1hqID0gKHR5cGVvZihNWV9OQU1FKSAhPSAndW5kZWZpbmVkJyAmJiBNWV9OQU1FID09ICfll4Xop4nmtY/op4jlmagnKTtcbmxldCBpdGUgPSAkLnJlcXVpcmUoXCJoaWtlcjovL3BhZ2UvdVwiKShNWV9SVUxFLnRpdGxlLCBnZXRI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HtcXG4gICAgICAgIC8vZmJhLmxvZyhcXFwiZGVidWc6XFxcIiArIFJlZ0V4cC4kMSArIHRleHQpXFxuICAgICAgICByZXR1cm4gdHJ1ZTtcXG4gICAgfVxcblxcbiAgICBsZXQgbnVtMSA9IE51bWJlcih0ZXh0KTtcXG4gICAgaWYgKCF0ZXh0IHx8IE51bWJlci5pc05hTihudW0xKSkge1xcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xcbiAgICB9XFxuICAgIGlmIChudW0xID09PSAxKSB7XFxuICAgICAgICAvL2ZiYS5sb2coXFxcImRlYnVnOlxcXCIgKyBudW0xICsgdGV4dClcXG4gICAgICAgIHJldHVybiB0cnVlO1xcbiAgICB9XFxuICAgIGlmIChuZXh0VGV4dCA9PT0gbnVsbCkge1xcbiAgICAgICAgLy9mYmEubG9nKFxcXCJkZWJ1ZzpcXFwiICsgbnVtMSArIG5leHRUZXh0KVxcbiAgICAgICAgcmV0dXJuIHRydWU7XFxuICAgIH1cXG4gICAgbGV0IG51bTIgPSBOdW1iZXIobmV4dFRleHQpO1xcbiAgICBpZiAoTnVtYmVyLmlzTmFOKG51bTIpKSB7XFxuICAgICAgICBpZiAobGFzdCAmJiAobGFzdCAtIG51bTEgPCAyICYmIGxhc3QgLSBudW0xID4gLTIpKSB7XFxuICAgICAgICAgICAgLy9mYmEubG9nKFxcXCJkZWJ1ZzpcXFwiICsgbGFzdClcXG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcXG4gICAgICAgIH1cXG4gICAgICAgIHJldHVybiBmYWxzZTtcXG4gICAgfVxcbiAgICBpZiAobnVtMSAtIG51bTIgPCAyICYmIG51bTEgLSBudW0yID4gLTIgLyomJm51bTEgLSBudW0yIT09MCovICkge1xcbiAgICAgICAgZmJhLmxvZyhcXFwiZGVidWc6XFxcIiArIG51bTEgKyB0ZXh0ICsgbnVtMiArIG5leHRUZXh0KVxcbiAgICAgICAgbGFzdCA9IG51bTE7XFxuICAgICAgICByZXR1cm4gdHJ1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b3Bfal0ubGVuZ3RoOyBqKyspIHtcXG4gICAgICAgICAgICBpZiAobGlzdF9saW5rW3RvcF9qXVtqXS5ocmVmID09IGhyZWYpIHtcXG4gICAgICAgICAgICAgICAgaXNfcmVwZWF0ID0gdHJ1ZTtcXG4gICAgICAgICAgICAgICAgYnJlYWs7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIGlmIChsaXN0X2xpbmtbdG9wX2pdW2pdLnRleHQgPT0gdGV4dCkge1xcbiAgICAgICAgICAgICAgICB0b3BfaiArPSAxO1xcbiAgICAgICAgICAgICAgICBsaXN0X2xpbmtbdG9wX2pdID0gW107XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfVxcbiAgICAgICAgaWYgKGlzX3JlcGVhdCkge1xcbiAgICAgICAgICAgIGNvbnRpbnVlO1xcbiAgICAgICAgfVxcbiAgICAgICAgdmFyIHN0ZCA9IHt9O1xcbiAgICAgICAgc3RkLnVybCA9IGhyZWY7XFxuICAgICAgICBzdGQudGV4dCA9IHRleHQ7XFxuICAgICAgICAvL+aOkumZpOW5tOS7o1xcbiAgICAgICAgbGV0IHJlZyA9IC8xfDJbMC05XSsvO1xcbiAgICAgICAgaWYgKHRleHQubGVuZ3RoID09IDQgJiYgcmVnLnRlc3QodGV4dCkpIHtcXG4gICAgICAgICAgICBjb250aW51ZTtcXG4gICAgICAgIH1cXG4gICAgICAgIGxpc3RfbGlua1t0b3Bfal0ucHVzaChzdGQpO1xcbiAgICB9XFxufVxcbi8vaHRtbEludGVyZmFjZS5nZXRWaWRlb0NhdGFsb2d1ZShKU09OLnN0cmluZ2lmeShsaXN0X2xpbmspKTtcXG4vL3RvcOa1j+iniOWZqOKGkVxcbi8vZmJhLmxvZyhKU09OLnN0cmluZ2lmeShsaXN0X2xpbmspKVxcbmlmIChsaXN0X2xpbmsubGVuZ3RoID09IDEgJiYgbGlzdF9saW5rWzBdLmxlbmd0aCA8PSAwKSB7XFxuICAgIC8vZW1wdHlcXG59IGVsc2Uge1xcbiAgICBpZiAobGlzdF9saW5rLmxlbmd0aCA+IDApIHtcXG4gICAgICAgIHdpbmRvdy5fX2Z5U3VjY2VzcyA9IHRydWU7XFxuICAgICAgICBmYmEub3BlbihKU09OLnN0cmluZ2lmeSh7XFxuICAgICAgICAgICAgcnVsZTogZnlfdGl0bGUsXFxuICAgICAgICAgICAgdGl0bGU6IGRvY3VtZW50LnRpdGxlLFxcbiAgICAgICAgICAgIHVybDogXFxcImhpa2VyOi8vcGFnZS92aWRlb19jYXRhbG9ndWVfdmlldy5qcz9ydWxlPVxcXCIgKyBmeV90aXRsZSxcXG4gICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICBsaXN0X2xpbms6IGxpc3RfbGluayxcXG4gICAgICAgICAgICAgICAgaHJlZjogbG9jYXRpb24uaHJlZixcXG4gICAgICAgICAgICAgICAgdGl0bGU6IGRvY3VtZW50LnRpdGxlXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSkpO1xcbiAgICAgICAgd2luZG93Lmhpc3RvcnkuYmFjaygtMSk7XFxuICAgIH1cXG59XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLop4bpopHnm67lvZVcIixcInBhdGhcIjpcInZpZGVvX2NhdGFsb2d1ZV92aWV3LmpzXCIsXCJydWxlXCI6XCJqczpcXG5sZXQgZCA9IFtdO1xcbmxldCBpID0gMTtcXG5mb3IgKGxldCBwbGF5TGlzdCBvZiBNWV9QQVJBTVMubGlzdF9saW5rKSB7XFxuICAgIGQucHVzaCh7XFxuICAgICAgICB0aXRsZTogXFxcIue6v+i3r1xcXCIgKyBpKyssXFxuICAgICAgICBjb2xfdHlwZTogXFxcInRleHRfMVxcXCIsXFxuICAgICAgICB1cmw6IFxcXCJoaWtlcjovL2VtcHR5XFxcIlxcbiAgICB9KTtcXG4gICAgZm9yIChsZXQgbGkgb2YgcGxheUxpc3QpIHtcXG4gICAgICAgIGQucHVzaCh7XFxuICAg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FxuICAgICAgICBkLnB1c2goaXQpO1xcbiAgICAgICAgZm9yIChsZXQgaWkgb2YgZGF0YSkge1xcbiAgICAgICAgICAgIGlmIChpaS5uYW1lICE9IG5hbWUpIHtcXG4gICAgICAgICAgICAgICAgZC5wdXNoKGlpKTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9XFxuICAgICAgICBzdG9yYWdlMC5zZXRJdGVtKFxcXCJkYXRhMVxcXCIsIGQpO1xcbiAgICB9XFxufVwifSx7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwidVwiLFwicGF0aFwiOlwidVwiLFwicnVsZVwiOlwiJC5leHBvcnRzID0gZnVuY3Rpb24ocnVsZSwgb3JpZ2luKSB7XFxuICAgIHJldHVybiAkLnRvU3RyaW5nKChydWxlLCBvcmlnaW4pID0+IHtcXG4gICAgICAgIGlmIChpbnB1dC5zdGFydHNXaXRoKFxcXCJtYWduZXRcXFwiKSkge1xcbiAgICAgICAgICAgIGNvbmZpcm0oe1xcbiAgICAgICAgICAgICAgICB0aXRsZTogXFxcIua4qemmqOaPkOekulxcXCIsXFxuICAgICAgICAgICAgICAgIGNvbnRlbnQ6IFxcXCLmo4DmtYvliLDmlrDnmoTno4Hpk77lnLDlnYDvvIzngrnlh7vnoa7lrprmjInpkq7ljbPlj6/mkq3mlL7vvIzngrnlh7vlj5bmtojmjInpkq7lj6/ku6XlpI3liLbpk77mjqVcXFwiLFxcbiAgICAgICAgICAgICAgICBjb25maXJtOiAkLnRvU3RyaW5nKChtYWcpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBtYWc7XFxuICAgICAgICAgICAgICAgIH0sIGlucHV0KSxcXG4gICAgICAgICAgICAgICAgY2FuY2VsOiAkLnRvU3RyaW5nKChtYWcpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwiY29weTovL1xcXCIgKyBtYWdcXG4gICAgICAgICAgICAgICAgfSwgaW5wdXQpXFxuICAgICAg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