Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@聚搜君@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6IuiBmuaQnOWQmyIsImF1dGhvciI6IkxveURnSWsm6YGT6ZW/IiwidXJsIjoiaGlrZXI6Ly9lbXB0eSRmeXBhZ2UiLCJ2ZXJzaW9uIjo5LCJjb2xfdHlwZSI6Im1vdmllXzFfdmVydGljYWxfcGljIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJvdGhlciIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIGQ9W107XG52YXIgc2VhcmNoUGFnZT1wYXJzZUludChNWV9VUkwuc3BsaXQoXCIkXCIpWzFdKTtcbnZhciBzZWFyY2hLZXl3b3JkID0gZ2V0VmFyKFwic2VhcmNoS2V5d29yZFwiLFwiXCIpO1xudmFyIHJlc3BvbnNlVGltZSA9NDAwMDtcbnZhciB0aHJlYWRDbnQgPSA2O1xudmFyIG15c2V0ID0gZ2V0VmFyKCdqc3Ffc2V0dGluZ3MnLCcnKTtcbnB1dFZhcjIoXCJleHRlcmlvclVybFwiLG15c2V0KTtcbmlmKG15c2V0Lmxlbmd0aD4wKXtcbiAgdmFyIGNvc3RvbT1KU09OLnBhcnNlKG15c2V0KTtcbiAgdHJ5e1xuICB2YXIgc2V0dGluZ3MgPSBmZXRjaChjb3N0b20ucGF0aCkgfHwgJ3t9JztcbiAgc2V0dGluZ3MgPSBKU09OLnBhcnNlKHNldHRpbmdzKTtcblx0cmVzcG9uc2VUaW1lID0gc2V0dGluZ3MudGltZW91dCB8fCA0MDAwO1xuXHR0aHJlY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XNoKHtcbiAgICAgICAgY29sX3R5cGU6ICdsaW5lX2JsYW5rJ1xuICAgIH0pO1xuICAgIGlmKHNlYXJjaEtleXdvcmQ9PVwiXCIpe1xuICAgIHZhciB3b3JrPWZldGNoKFwiaGlrZXI6Ly9maWxlcy9zZWFyY2h3b3JrLmpzb25cIik7XG4gICAgaWYod29yayE9XCJcIil7XG4gICAgICAgIHdvcms9SlNPTi5wYXJzZSh3b3JrKTtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOlwiPHN0cm9uZz48YmlnPuaQnOe0ouiusOW9lTwvYmlnPjwvc3Ryb25nPjxicj48YSBocmVmPSdoaWtlcjovL2VtcHR5QGxhenlSdWxlPS5qczpsZXQgd29yaz1mZXRjaChcXFwiaGlrZXI6Ly9maWxlcy9zZWFyY2h3b3JrLmpzb25cXFwiKXx8XFxcIltdXFxcIjt3b3JrPUpTT04ucGFyc2Uod29yayk7d29yay5sZW5ndGg9MDt3cml0ZUZpbGUoXFxcImhpa2VyOi8vZmlsZXMvc2VhcmNod29yay5qc29uXFxcIixKU09OLnN0cmluZ2lmeSh3b3JrKSk7cmVmcmVzaFBhZ2UodHJ1ZSk7XFxcInRvYXN0Oi8v5bey5riF56m6XFxcIic+5riF6Zmk5pCc57Si6K6w5b2VPC9hPlwiLFxuICAgICAgICAgICAgY29sX3R5cGU6XCJyaWNoX3RleHRcIlxuICAgICAgICB9KTtcbiAgICAgICAgZm9yKHZhciBrZXkgb2Ygd29yayl7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOmtleSxcbiAgICAgICAgICAgICAgICB1cmw6JCgpLmxhenlSdWxlKChrKT0+e1xuICAgICAgICAgICAgICAgICAgICBwdXRWYXIyKFwic2VhcmNoS2V5d29yZFwiLGspO1xuICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSh0cnVlKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly9cIitrXG4gICAgICAgICAgICAgICAgfSxrZXkpLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOlwidGV4dF8zXCJcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cbiAgICB9XG4gICAgfVxufVxudmFyIGVycj1bXTtcbmZ1bmN0aW9uIGxvYWQoKXtcbiAgICB2YXIgX3Jlc189W107XG4gICAgaWYoc2VhcmNoS2V5d29yZD09XCJcIil7XG4gICAgICAgIHJldHVybiBcIuS4jeiDveS4uuepulwiO1xuICAgIH1cbiAgICB2YXIgaG9tZUxpc3RKc29uID0gSlNPTi5wYXJzZShmZXRjaChcImhpa2VyOi8vaG9tZVwiLHt9KSk7XG4gICAgdmFyIGhvbWVMaXN0ZmlsdGVyID0gaG9tZUxpc3RKc29uLmZpbHRlcigoZGF0YSk9PntcbiAgICAgICAgaWYoZGF0YS5zZWFyY2hGaW5kPT1cIlwiKXtcbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuICAgICAgICAvL2lmKGRhdGEudGl0bGU9PVwibmlldGHov73liadcIilyZXR1cm4gdHJ1ZVxuICAgICAgICBmb3Ioa2V5IG9mIGZpbHRlcldvcmQpe1xuICAgICAgICAgICAgaWYoZGF0YS5ncm91cD09a2V5KXtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfSk7XG4gICAgLy92YXIgcmVzdWx0PVtdO1xuICAgIHZhciByZXN1bHRKc29uPVtdO1xuICAgIHZhciByZXN1bHRVcmw9W107XG4gICAgZm9yKHZhciBpPShzZWFyY2hQYWdlLTEpKnRocmVhZENudDtpPGhvbWVMaXN0ZmlsdGVyLmxlbmd0aCYmaTxzZWFyY2hQYWdlKnRocmVhZENudDtpKyspe1xuICAgICAgICB2YXIgaXRlbT1ob21lTGlzdGZpbHRlcltpXTtcbiAgICAgICAgaXRlbS5zZWFy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swXSk7XG4gICAgICAgICAgICAgICAgLy9zZXRFcnJvcihodG1sKVxuICAgICAgICAgICAgICAgIGZvcih2YXIgZGF0YSBvZiBsaXN0KXtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGl0ZW09e307XG4gICAgICAgICAgICAgICAgICAgIHZhciB1cmw9cnVuKHBlKGRhdGEsZmluZFsyXSkpO1xuICAgICAgICAgICAgICAgICAgICB2YXIgaW1nPXJ1bihwZShkYXRhLGZpbmRbNV0pKTtcbiAgICAgICAgICAgICAgICAgICAgaWYoIS9odHRwcz86XFwvXFwvLi8udGVzdCh1cmwpKXtcbiAgICAgICAgICAgICAgICAgICAgICAgIHVybD1kb21haW5OYW1lK3VybFxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGlmKCEvaHR0cHM/OlxcL1xcLy4vLnRlc3QoaW1nKSl7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbWc9ZG9tYWluTmFtZStpbWdcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBpdGVtLnRpdGxlPXJ1bihwZShkYXRhLGZpbmRbMV0pKStcIlxcblwiK3J1bGVJdGVtLnRpdGxlO1xuICAgICAgICAgICAgICAgICAgICBpdGVtLnVybD11cmwrdXJsUnVsZTtcbiAgICAgICAgICAgICAgICAgICAgaXRlbS5kZXNjPXJ1bihwZShkYXRhLGZpbmRbM10pKStcIlxcblwiK3J1bihwZShkYXRhLGZpbmRbNF0pKTtcbiAgICAgICAgICAgICAgICAgICAgaXRlbS5pbWc9aW1nO1xuICAgICAgICAgICAgICAgICAgICAvL3NldEVycm9yKGl0ZW0pXG4gICAgICAgICAgICAgICAgICAgIGlmKGl0ZW0udGl0bGUuaW5kZXhPZihzZWFyY2hLZXl3b3JkKT4tMXx8aXRlbS5kZXNjLmluZGV4T2Yoc2VhcmNoS2V5d29yZCk+LTEpe1xuICAgICAgICAgICAgICAgICAgICAgICAgX3Jlc18ucHVzaChpdGVtKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfWNhdGNoKGUpe1xuICAgICAgICAgICAgZXJyLnB1c2goZS5uYW1lICsgXCI6IFwiICsgZS5tZXNzYWdlKTtcbiAgICAgICAgICAgIF9yZXNfLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOlwi5LiN5pSv5oyBIFwiK3J1bGVJdGVtLnRpdGxlK1wiIOaIluiAheinhOWImeW3suWkseaViFwiLFxuICAgICAgICAgICAgICAgIHVybDokKCkubGF6eVJ1bGUoKGVycik9PntzZXRFcnJvcihlcnIpO3JldHVyblwidG9hc3Q6Ly/mn6XnnIvplJnor6/kv6Hmga9cIn0sZS5uYW1lICsgXCI6IFwiICsgZS5tZXNzYWdlKSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTpcInRleHRfY2VudGVyXzFcIlxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgLy9zZXRFcnJvcihfcmVzXy5jb25jYXQuYXBwbHkoW10sX3Jlc18pKVxuICAgICAgICByZXR1cm4gX3Jlc19cbn1cbmZ1bmN0aW9uIHJ1bih0ZXh0KXtcbiAgICAgaWYodGV4dC5pbmNsdWRlcyhcIi5qczpcIikpe1xuICAgICAgICAgdHJ5e1xuICAgICAgICAgICAgIHZhciBpbnB1dCA9IHRleHQuc3BsaXQoXCIuanM6XCIpWzBdO1xuICAgICAgICAgICAgIHZhciBjb2RlID0gdGV4dC5zcGxpdChcIi5qczpcIilbMV07XG4gICAgICAgICAgICAgcmV0dXJuIGV2YWwoY29kZSk7XG4gICAgICAgICB9Y2F0Y2goZSl7XG4gICAgICAgICAgICAgcmV0dXJuIHRleHRcbiAgICAgICAgIH1cbiAgICAgfWVsc2V7XG4gICAgICAgICByZXR1cm4gdGV4dDtcbiAgICAgfVxufVxudmFyIHBlPShodG1sLHJ1bGUpPT5wYXJzZURvbUZvckh0bWwoaH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CIpKXtcbiAgICAgICAgICAgICAgICAgICAgICAgIGl0ZW0udXJsPWl0ZW0udXJsK3VybFJ1cmw7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgLyppZighaXRlbS5pbWcmJiFJdGVtLnBpY191cmwpe1xuICAgICAgICAgICAgICAgICAgICAgICAgaXRlbS5jb2xfdHlwZT1cInRleHRfMVwiXG4gICAgICAgICAgICAgICAgICAgIH0qL1xuICAgICAgICAgICAgICAgICAgICBpdGVtLnRpdGxlPWl0ZW0udGl0bGUrXCJcXG5cIitydWxlSXRlbS50aXRsZTtcbiAgICAgICAgICAgICAgICAgICAgX3Jlc3VsdF8ucHVzaChpdGVtKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgZXZhbChydWxlSXRlbS5wcmVSdWxlKTtcbiAgICAgICAgICAgIGV2YWwocnVsZUl0ZW0uc2VhcmNoRmluZC5yZXBsYWNlKFwianM6XCIsXCJcIikpO1xuICAgICAgICAgICAgcmV0dXJuIF9yZXN1bHRfO1xufVxuXG5kPWQuY29uY2F0KGxvYWQoKSk7XG5cbnNldFJlc3VsdChkKTtcbi8vc2V0RXJyb3IoZCIsInNlYXJjaF91cmwiOiIiLCJncm91cCI6IjDvuI/ig6PmtYvor5UiLCJzZWFyY2hGaW5kIjoiIiwiZGV0YWlsX2NvbF90eXBlIjoidGV4dF8xIiwiZGV0YWlsX2ZpbmRfcnVsZSI6IiIsInNkZXRhaWxfY29sX3R5cGUiOiJ0ZXh0XzEiLCJzZGV0YWlsX2ZpbmRfcnVsZSI6IiIsInVhIjoibW9iaWxlIiwicHJlUnVsZSI6InRyeSB7XG4gICAgICAgIGxldCBjcGF0aCA9ICdoaWtlcjovL2ZpbGVzL3J1bGVzL2R6SG91c2UvaHRtbC/ogZrmkJzlkJsuaHRtbCc7XG4gICAgICAgIGxldCBpc19vayA9IGZldGNoKGNwYXRoKTtcbiAgICAgICAgaWYoIWlz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ZW91dDo0MDAwLHRocmVhZENudDo2fTtcblx0IHdyaXRlRmlsZShjb3N0b20ucGF0aCxKU09OLnN0cmluZ2lmeShkZWZhdWx0X3NldCkpO1xuICAgfVxufWNhdGNoIChlKSB7fVxucHV0VmFyMihcImV4dGVyaW9yVXJsXCIsSlNPTi5zdHJpbmdpZnkoY29zdG9tKSk7IC8v5Zu65a6a5YaZ5rOVXG5wdXRWYXIyKFwianNxX3NldHRpbmdzXCIsSlNPTi5zdHJpbmdpZnkoY29zdG9tKSk7IC8v6Ieq5a6a5LmJ5YaZ5rOVIiwicGFnZXMiOiJbXSIsImljb24iOiIiLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment