Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@𝐀𝐕男优@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi8J2QgPCdkJXnlLfkvJgiLCJhdXRob3IiOiJBcmlzZSIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2h0dHBzOi8vYXZkYW55dXdpa2kuY29tLyMjZnlwYWdlIiwidmVyc2lvbiI6MjAyNDA2MTUsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbiQucmVxdWlyZShcInlpXCIpIiwic2VhcmNoX3VybCI6IiIsImdyb3VwIjoi4pGh55SfIiwic2VhcmNoRmluZCI6IiIsImRldGFpbF9jb2xfdHlwZSI6Im1vdmllXzEiLCJkZXRhaWxfZmluZF9ydWxlIjoiIiwic2RldGFpbF9jb2xfdHlwZSI6Im1vdmllXzEiLCJzZGV0YWlsX2ZpbmRfcnVsZSI6IiIsInVhIjoibW9iaWxlIiwicHJlUnVsZSI6IiIsInBhZ2VzIjoiW3tcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLkuIDnuqdcIixcInBhdGhcIjpcInlpXCIsXCJydWxlXCI6XCJqczpcXG5cXG5hZGRMaXN0ZW5lcihcXFwib25DbG9zZVxcXCIsICgpID0+IHtcXG4gICAgY2xlYXJNeVZhcihcXFwibmV4dFBhZ2VcXFwiKTtcXG4gICAgY2xlYXJNeVZhcihcXFwidXJsXFxcIik7XFxufSk7XFxuLypcXG5hZGRMaXN0ZW5lcihcXFwib25SZWZyZXNoXFxcIiwgKCkgP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gLy8gbG9nKFxcXCLlj6/og73kuI3lrZjlnKjkuIvkuIDpobXmiJbogIXkuIvkuIDpobXlrprkvY3mnInpl67pophcXFwiKTtcXG4gICAgICAgIH1cXG5cXG4gICAgZnVuY3Rpb24gaW1nc3JjKGltZykge1xcbiAgICAgICAgbGV0IGNvZGUgPSBpbWcubWF0Y2goL3A9KC4qPykmLykgPyBpbWcubWF0Y2goL3A9KC4qPykmLylbMV0gOiBcXFwiMFxcXCJcXG4gICAgICAgIGlmIChjb2RlICE9IFxcXCIwXFxcIikge1xcbiAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgIGxldCB1cmwgPSBcXFwiaHR0cHM6Ly93d3cubWdzdGFnZS5jb20vcGhwL2FwaS93aWRnZXRfYWZmaWxpYXRlLnBocD9jYWxsYmFjaz1fbWdzd2pzcC5fOTUyNyZmcm9tPXBwdiZhZmZjb2RlPUhUNllXN1VIOFQ0WURMWDRRTVpBNEVQSlIzJnNrdT1cXFwiICsgY29kZSArIFxcXCImaT10JnQ9dFxcXCJcXG4gICAgICAgICAgICAgICAgbGV0IGh0bWwgPSBKU09OLnBhcnNlKGZldGNoKHVybClcXG4gICAgICAgICAgICAgICAgICAgIC5yZXBsYWNlKC8uKj9cXFxcKCguKj8pXFxcXCkvLCBcXFwiJDFcXFwiKSlcXG4gICAgICAgICAgICAgICAgdmFyIHBpYyA9IGh0bWwuaW1hZ2VzLmxhcmdlID8gaHRtbC5pbWFnZXMubGFyZ2UgOiBodG1sLmltYWdlcy50aHVtYm5haWxcXG4gICAgICAgICAgICAgICAgcmV0dXJuIHBpY1xcbiAgICAgICAgICAgIH0gY2F0Y2gge1xcbiAgICAgICAgICAgICAgICByZXR1cm4gXFxcIkpTT07kuLrnqbrmsqHmnInlm77niYdcXFwiXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICByZXR1cm4gXFxcIueVquWPt+WMuemFjemUmeivr1xcXCJcXG4gICAgICAg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iAkKCcnLCAnMeWIsCcgKyBsYXN0cGFnZW51bSArICfkuYvpl7TnmoTpobXnoIEnKVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmlucHV0KCh1cmwsIGxhc3RwYWdlbnVtKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAocGFyc2VJbnQoaW5wdXQpID49IDEgJiYgcGFyc2VJbnQoaW5wdXQpIDw9IHBhcnNlSW50KGxhc3RwYWdlbnVtKSAmJiBwYXJzZUludChpbnB1dCkgJSAxID09IDApIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodXJsLmluY2x1ZGVzKFxcXCImcGFnZWRcXFwiKSl7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAganVtcHUgPSB1cmwucmVwbGFjZSgvcGFnZWQ9XFxcXGQrLywgXFxcInBhZ2VkPVxcXCIgKyBpbnB1dClcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihcXFwidXJsXFxcIiwganVtcHUpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICd0b2FzdDovL+S9oOW3sue7j+epv+i2iuWIsOS6hicgKyBpbnB1dCArICfpobUnXFxufWVsc2V7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAganVtcHUgPSB1cmwucmVwbGFjZSgvcGFnZVxcXFwvXFxcXGQrLywgXFxcInBhZ2UvXFxcIiArIGlucHV0KVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKFxcXCJ1cmxcXFwiLCBqdW1wdSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ3RvYXN0Oi8v5L2g5bey57uP56m/6LaK5Yiw5LqGJyArIGlucHV0ICsgJ+mhtSdcXG59XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly/or7fovpPlhaXmraPnoa7nmoTpobXnoIFcXFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sIHVybCwgbGFzdHBhZ2VudW0pXFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICAgICAgICAgICAgICB1cmwsIGxhc3RwYWdlbnVtKVxcbiAgICAgICAgICAgICAgICAgICAgfV1cXG59XFxuICAgIH0pXFxuXFxuICAgIHZhciBhY3RvcnMgPSBwZGZhKGl0ZW0sIFxcXCIucG9zdC10YWdzJiZhXFxcIilcXG4gICAgYWN0b3JzLmZvckVhY2goYWMgPT4ge1xcbiAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogJ+KAnOKAnOKAneKAnScgKyBwZGZoKGFjLCBcXFwiYSYmVGV4dFxcXCIpXFxuICAgICAgICAgICAgICAgIC5mb250Y29sb3IoXFxcIiNGRjAwRkZcXFwiKSxcXG4gICAgICAgICAgIC8vIHVybDogXFxcImhpa2VyOi8vZW1wdHkjI1xcXCIgKyBwZGZoKGFjLCBcXFwiYSYmaHJlZlxcXCIpICsgXFxcInBhZ2UvZnlwYWdlL1xcXCIgKyAnQHJ1bGU9anM6Y2xlYXJNeVZhcihcXFwidXJsXFxcIik7JC5yZXF1aXJlKFxcXCJ5aVxcXCIpJyxcXG4gICAgICAgICAgICB1cmw6IHBkZmgoYWMsIFxcXCJhJiZocmVmXFxcIikgKyBcXFwicGFnZS8xL1xcXCIgKyAkKCcnKS5sYXp5UnVsZSgoKSA9PiB7XFxuIC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ICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoaG9zdCArIGMgKyAnaW5kZXgnICsgbiwgJy0xJyk7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgY2xlYXJNeVZhcihcXFwidXJsXFxcIik7XFxuICAgICAgICAgICAgICAgIGNsZWFyTXlWYXIoaG9zdCArICdwYWdlJyk7XFxuICAgICAgICAgICAgICAgIGNsZWFyTXlWYXIoaG9zdCArICd1cmwnKTtcXG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoaG9zdCArIGMgKyAnaW5kZXgnICsgaW5kZXgsIGluZGV4X2MpO1xcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xcbiAgICAgICAgICAgIH0sIGluZGV4LCBjX2lkW2luZGV4X2NdLCBpbmRleF9jLCBob3N0LCBtb2RlLCB0aXRsZSwgdiwgYyksXFxuICAgICAgICB9KTtcXG4gICAgfSk7XFxuICAgIGQucHVzaCh7XFxuICAgICAgICBjb2xfdHlwZTogJ2JsYW5rX2Jsb2NrJyxcXG4gICAgfSk7XFxuICAgIHJldHVybiBkO1xcbn19XCJ9XSIsImljb24iOiJodHRwczovL2ltZy52aW51YS5jbi9pbWFnZXMvSXhIMTQucG5nIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment