Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@一起看@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5LiA6LW355yLIiwiYXV0aG9yIjoiemV0YWxwaGEiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNmeXBhZ2UiLCJ2ZXJzaW9uIjowLCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoiIiwidHlwZSI6InZpZGVvIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG52YXIgZCA9IFtdO1xuXG52YXIgZ2V0UmFuZ2VDb2xvcnMgPSBmdW5jdGlvbigpIHvCoMKgwqDCoMKgwqDCoFxuICAgIHJldHVybiAnIycgKyAoJzAwMDAwJyArIChNYXRoLnJhbmRvbSgpICogMHgxMDAwMDAwIDw8IDApLnRvU3RyaW5nKDE2KSkuc3Vic3RyKC02KTvCoMKgwqDCoMKgXG59XG5ldmFsKEpTT04ucGFyc2UocmVxdWVzdCgnaGlrZXI6Ly9wYWdlL3lpP3J1bGU9zrEnKSkucnVsZSlcblxuZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS9qc29uJykpLnJ1bGUpXG5cbnZhciBwYWdlID0gTVlfUEFHRTtcblxudmFyIGh0bWwgPSBcIlwiO1xudmFyIGNsaXN0ID0gW107XG5cbmZ1bmN0aW9uIGZpbGxDYXRlKGxpc3QpIHtcbiAgICByZXR1cm4gW1wiPGRpdiBjbGFzcz0nY2MnPlwiXS5jb25jYXQobGlzdCwgWyc8L2Rpdj4nXSk7XG59XG5cbmpzb24uZGF0YS5maWx0ZXJMaXN0LmZvckVhY2goKHgsI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XG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCIyXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi55S15b2xXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjhcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLliqjmvKtcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMTBcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLnu7zoibpcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiNVxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIuS9k+iCslxcXCJcXG4gICAgICAgICAgICB9XVxcbiAgICAgICAgfSwge1xcbiAgICAgICAgICAgIFxcXCJmaWx0ZXJOYW1lXFxcIjogXFxcImFyZWFJZFxcXCIsXFxuICAgICAgICAgICAgXFxcImZpbHRlclZhbHVlTGlzdFxcXCI6IFt7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCIxXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi5aSn6ZmGXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjNcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLnvo7lm71cXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiOFxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIumfqeWbvVxcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCI3XFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi6aaZ5rivXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjRcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLml6XmnKxcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMTJcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLlj7Dmub5cXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMlxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIuiLseWbvVxcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCI1XFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi5Yqg5ou/5aSnXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjlcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLmlrDliqDlnaFcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMTBcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLms5Xlm71cXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMTFcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLms7Dlm71cXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMTNcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLljbDluqZcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMTRcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLopb/nj63niZlcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMTVcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLkv4TnvZfmlq9cXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMTZcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLpqazmnaXopb/kuppcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiNlxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIuWFtuS7llxcXCJcXG4gICAgICAgICAgICB9XVxcbiAgICAgICAgfSwge1xcbiAgICAgICAgICAgIFxcXCJmaWx0ZXJOYW1lXFxcIjogXFxcInllYXJcXFwiLFxcbiAgICAgICAgICAgIFxcXCJmaWx0ZXJWYWx1ZUxpc3RcXFwiOiBbe1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMjAyMy0yMDIzXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwiMjAyM1xcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCIyMDIyLTIwMjJcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCIyMDIyXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjIwMjEtMjAyMVxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIjIwMjFcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiMjAyMC0yMDIwXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwiMjAyMFxcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCIxOTAwLTIwMTlcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCIyMDIw5Lul5YmNXFxcIlxcbiAgICAgICAgICAgIH1dXFxuICAgICAgICB9LCB7XFxuICAgICAgICAgICAgXFxcImZpbHRlck5hbWVcXFwiOiBcXFwiY2hhbm5lbENoaWxkVHlwZUlkXFxcIixcXG4gICAgICAgICAgICBcXFwiZmlsdGVyVmFsdWVMaXN0XFxcIjogW3tcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjQ2MlxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIuefreWJp1xcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCI0NjVcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLliafmg4VcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiNDY0XFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi6YO95biCXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjQ2M1xcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIueIseaDhVxcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCI0NzFcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLlj6Too4VcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiNDg2XFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi5Zac5YmnXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjQ4N1xcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIuWKqOS9nFxcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCI0NzRcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLlhbbku5ZcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiNDcwXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi5aWH5bm7XFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjQ4NVxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIuWutuW6rVxcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCI0NzNcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLmg4rmgppcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiNDg4XFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi5oKs55aRXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjQ5NFxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIuaBkOaAllxcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCI0OTNcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLlhpvml4VcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiNDkwXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi572R5YmnXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjQ5NlxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIuaImOS6iVxcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCI0OTFcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLniq/nvapcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiNDg5XFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi5YaS6ZmpXFxcIlxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjQ5OFxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIui/kOWKqFxcXCJcXG4gICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgIFxcXCJpZFxcXCI6IFxcXCI0OTVcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLlhL/nq6VcXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiNDkyXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm5hbWVcXFwiOiBcXFwi56eR5bm7XFxcIlxcbiAgICAgICAgICAgIH1dXFxuICAgICAgICB9LCB7XFxuICAgICAgICAgICAgXFxcImZpbHRlck5hbWVcXFwiOiBcXFwicGxheVBvd2VyXFxcIixcXG4gICAgICAgICAgICBcXFwiZmlsdGVyVmFsdWVMaXN0XFxcIjogW3tcXG4gICAgICAgICAgICAgICAgXFxcImlkXFxcIjogXFxcIjJcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwibmFtZVxcXCI6IFxcXCLnmbvlvZXngrnmkq1cXFwiXFxuICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiM1xcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJuYW1lXFxcIjogXFxcIlZJUOeCueaSrVxcXCJcXG4gICAgICAgICAgICB9XVxcbiAgICAgICAgfV0sXFxuICAgICAgICBcXFwic29ydExpc3RcXFwiOiBbe1xcbiAgICAgICAgICAgIFxcXCJzb3J0VHlwZVxcXCI6IDEsXFxuICAgICAgICAgICAgXFxcInNvcnROYW1lXFxcIjogXFxcIuacgOaWsFxcXCIsXFxuICAgICAgICAgICAgXFxcImhhc0RlZmF1bHRcXFwiOiBmYWxzZVxcbiAgICAgICAgfSwge1xcbiAgICAgICAgICAgIFxcXCJzb3J0VHlwZVxcXCI6IDIsXFxuICAgICAgICAgICAgXFxcInNvcnROYW1lXFxcIjogXFxcIuS6uuawlFxcXCIsXFxuICAgICAgICAgICAgXFxcImhhc0RlZmF1bHRcXFwiOiB0cnVlXFxuICAgICAgICB9LCB7XFxuICAgICAgICAgICAgXFxcInNvcnRUeXBlXFxcIj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c2dpbjogZnVuY3Rpb24oZSkge1xcbiAgICAgICAgbGV0IGMgPSBcXFwiXFxcIjtcXG4gICAgICAgIGxldCBuID0gXFxcIlxcXCI7XFxuICAgICAgICBmb3IgKHZhciBpIGluIGUpIGVbaV0gIT09IFxcXCJcXFwiICYmIChjICs9IGkgKyBcXFwiPVxcXCIgKyBlW2ldICsgXFxcIiZcXFwiKTtcXG4gICAgICAgIGMgIT09IFxcXCJcXFwiICYmIChjID0gYyArIFxcXCJhcHBLZXk9XFxcIiArIHRoaXMuYXBwS2V5LCBuID0gbWQ1KGMpKSwgZS5zaWduID0gblxcbiAgICAgICAgcmV0dXJuIGVcXG4gICAgfSxcXG4gICAgZ2V0Qm9keTogZnVuY3Rpb24oYm9keSkge1xcbiAgICAgICAgYm9keSA9IGJvZHkgfHwge307XFxuICAgICAgICB2YXIgZG9tYWluID0gbmV3IGphdmEubmV0LlVSTCh0aGlzLmhvc3QpLmdldEhvc3QoKTtcXG4gICAgICAgIHZhciBkZWZvYmogPSB7XFxuICAgICAgICAgICAgYXBwSWQ6IGFwaXMuYXBwSWQsXFxuICAgICAgICAgICAgdWRpZDogYXBpcy5nZXRVVUlEKCksXFxuICAgICAgICAgICAgcmVxdWVzdElkOiBhcGlzLmdldHJhbmRvbSgpLFxcbiAgICAgICAgICAgIHJlcURvbWFpbjogZG9tYWluLFxcbiAgICAgICAgfVxcbiAgICAgICAgdmFyIG5ld2JvZHkgPSBPYmplY3QuYXNzaWduKHt9LCBkZWZvYmosIGJvZHkpO1xcbiAgICAgICAgdmFyIHNpZ25vYmogPSB0aGlzLnNnaW4odGhpcy5vYmpLZXlTb3J0KG5ld2JvZHkpKTtcXG4gICAgICAgIHJldHVybiBzaWdub2JqO1xcbiAgICB9XFxufVxcblxcbiQuZXhwb3J0cyA9IHtcXG4gICAgYXBpczogYXBpcyxcXG59XCJ9XSIsImljb24iOiIiLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment