xiaomianao666

小程序:视界|世界

Jul 4th, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@视界|世界@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6KeG55WMfOS4lueVjCIsImF1dGhvciI6IumVh+W8nyIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2h0dHBzOi8vd3d3Lnl1cXVlLmNvbS9kb2NzL3NoYXJlL2Q3YTQ4ZWE5LTQ4ZWQtNDJkOC1hNmU0LTMyYjVkNDMwYzIwMj8jZnlBbGwiLCJ2ZXJzaW9uIjoyLCJjb2xfdHlwZSI6Imljb25fMiIsImNsYXNzX25hbWUiOiLmuK/mvrPlj7AmQ0NUVuiTneWFiSZDQ1RW56eS5pKtJuiTneWFieWNq+inhibljavop4bnp5Lmkq0m5YWo6YOoIiwidHlwZSI6ImxpdmUiLCJjbGFzc191cmwiOiLmuK/lj7Am5Lit5aSuJua1gemAmibok53lhYkm56eS5pKtJuWFqOmDqCIsImFyZWFfbmFtZSI6IjRLJuaWsOmXuyblub/kuJwm5YyX5LqsJuS4iua1tybmuZbljZcm5rWZ5rGfJuemj+W7uibmsZ/oi48m5rGf6KW/JueUmOiCgybkupHljZcm5Zub5bedJua5luWMlyblsbHkuJwm5a6J5b69Jui0teW3niblub/opb8m6YeN5bqGJuays+WNlybpmZXopb8m6buR6b6Z5rGfJui+veWugSblsbHopb8m5YaF6JKZ5Y+kJuaWsOeWhibpnZLmtbcm5a6B5aSPJua1t+WNlyblkInmnpcm5rKz5YyXJuWkqea0pSbopb/ol48iLCJhcmVhX3VybCI6IjRrJuaWsOmXuyblub/kuJwm5YyX5LqsJuS4iua1tybmuZbljZcm5rWZ5rGfJuemj+W7uibmsZ/oi48m5rGf6KW/JueUmOiCgybkupHljZcm5Zub5bedJua5luWMlyblsbHkuJwm5a6J5b69Jui0teW3niblub/opb8m6YeN5bqGJuays+WNl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aXRva290by5jbi8/Yz1pJywge30pKTtcbiAgICBsZXQgc291cmNlID0ganNvbi5mcm9tX3dobztcbiAgICBpZiAoc291cmNlID09IG51bGwpIHNvdXJjZSA9ICfmnKrnn6UnO1xuICAgIGhpdG9rb3RvLnB1c2goanNvbi5oaXRva290byk7XG4gICAgcmV0dXJuIGhpdG9rb3RvO1xufVxubGV0IGhpdG9rb3RvID0gZ2V0VGl0bGVBbmREZXNjKCk7Ki9cbmZ1bmN0aW9uIHplcm8ocykge1xuICAgIHJldHVybiBzIDwgMTAgPyAnMCcgKyBzIDogcztcbn07XG52YXIgbXlkYXRlID0gbmV3IERhdGUoKTtcbnllYXIgPSBteWRhdGUuZ2V0RnVsbFllYXIoKTtcbm1vbnRoID0gbXlkYXRlLmdldE1vbnRoKCkgKyAxO1xuZGF0ZSA9IG15ZGF0ZS5nZXREYXRlKCk7XG5ob3VyID0gbXlkYXRlLmdldEhvdXJzKCk7XG5taW51dGUgPSBteWRhdGUuZ2V0TWludXRlcygpO1xuc2Vjb25kID0gbXlkYXRlLmdldFNlY29uZHMoKTtcbmRheSA9IG5ldyBBcnJheShcIiDmmJ/mnJ/ml6UgXCIsIFwi5pif5pyf5LiAICDlkagx77iP4oOjXCIsIFwi5pif5pyf5LiJICDlkagy77iP4oOjXCIsIFwi5pif5pyf5LiJICDlkagz77iP4oOjXCIsIFwi5pif5pyf5ZubICDlkag077iP4oOjXCIsIFwi5pif5pyf5LqUICDlkag177iP4oOjXCIsIFwi5pif5pyf5YWtICDlkag277iP4oOjXCIpW215ZGF0ZS5nZXREYXkoKV07XG5uZXdUaW1lID0geWVhciArICcg5bm0ICcgKyB6ZXJvKG1vbnRoKSArICcg8J+It++4jyAnICsgemVybyhkYXRlKSArICcg5pelICAgICDml7bpl7Q6ICcgKyAnIFxcdFxcdFxcdCAnICsgemVybyhob3VyKSArICcgOiAnICsgemVybyhtaW51dGUpICsgJyA6ICcgKyB6ZXJvKHNlY29uZCkgKyAnXFx0XFx0XFx0Jy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AgfVxuICAgIHJldHVybiAkKHUpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHJldHVybiBKU09OLnBhcnNlKGZldGNoKGlucHV0LCB7XG4gICAgICAgICAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6ICdNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wOyBXaW42NDsgeDY0KSdcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHJlZGlyZWN0OiBmYWxzZSxcbiAgICAgICAgICAgICAgICB3aXRoSGVhZGVyczogdHJ1ZVxuICAgICAgICAgICAgfSkpLmhlYWRlcnMubG9jYXRpb25bMF0gKyAnJ1xuICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICBsb2coZS50b1N0cmluZygpKVxuICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/popHpgZPmupDku6XlpLHmlYhcIlxuICAgICAgICB9XG4gICAgfSlcbn1cbmxldCB0eHRzID0gZmV0Y2goJ2hpa2VyOi8vZmlsZXMv5Yig6Zmk5pu05paw6KeG55WM5LiW55WML+inhueVjHzkuJbnlYwubTN1Jywge30pLnNwbGl0KCdcXG4nKTtcbmxldCB0cyA9IFtdO1xuZm9yIChsZXQgaXQgb2YgdHh0cykge1xuICAgIGlmIChpdCAmJiBpdC5pbmNsdWRlcygnJykgJiYgaXQuaW5jbHVkZXMoJywnKSkge1xuICAgICAgICBpZiAoZmxhZyA9PSAn5YWo6YOoJyB8fCBpdC5pbmNsdWRlcyhmbGFnKSkge1xuICAgICAgICAgICAgbGV0IGxpbmUgPSBpdC5zcGxpdCgnfCcpWzFdLnNwbGl0KCcsJylbMF0gKyBcIixcIiArIGl0LnN1YnN0cmluZyhpdC5pbmRleE9mKCcsJykgKyAxKTtcbiAgICAgICAgICAgIHRzLnB1c2gobGluZSk7XG4gICAgICAgIH1cbiAgICB9XG59XG5s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cm4gdSArICcjaXNWaWRlbz10cnVlIydcbiAgICB9IGVsc2UgaWYgKC8oaHV5YS5jb20pLy50ZXN0KHUpKSB7XG4gICAgICAgIHJldHVybiB1XG4gICAgfVxuICAgIHJldHVybiAkKHUpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHJldHVybiBKU09OLnBhcnNlKGZldGNoKGlucHV0LCB7XG4gICAgICAgICAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6ICdNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wOyBXaW42NDsgeDY0KSdcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHJlZGlyZWN0OiBmYWxzZSxcbiAgICAgICAgICAgICAgICB3aXRoSGVhZGVyczogdHJ1ZVxuICAgICAgICAgICAgfSkpLmhlYWRlcnMubG9jYXRpb25bMF0gKyAnJ1xuICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICBsb2coZS50b1N0cmluZygpKVxuICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/popHpgZPmupDku6XlpLHmlYhcIlxuICAgICAgICB9XG4gICAgfSlcbn1cbmxldCB0eHRzID0gZmV0Y2goJ2hpa2VyOi8vZmlsZXMv5Yig6Zmk5pu05paw6KeG55WM5LiW55WML+inhueVjHzkuJbnlYwubTN1Jywge30pLnNwbGl0KCdcXG4nKTtcbnZhciBrZXl3b3JkID0gTVlfVVJMLnNwbGl0KCcjIycpWzFdLnRvTG93ZXJDYXNlKCk7XG52YXIgdHMgPSB0eHRzLmZpbHRlcihkYXRhID0+IGRhdGEgJiYgZGF0YS50b0xvd2VyQ2FzZSgpLmluZGV4T2Yoa2V5d29yZCkgPj0gMClcbiAgICAubWFwKGl0ID0+ICFpdC5pbmNsdWRlcyhcInxcIikgPyBpdCA6IGl0LnNwbGl0KCd8JylbMV0uc3BsaXQoJywnKVswXSAr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gICAgICAgfVxcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIGlmIChuZXQuaW5jbHVkZXMoXFxcIjxodG1sPlxcXCIpKSB7XFxuICAgICAgICAgICAgICAgIHRocm93IFxcXCJub3QgeHh4XFxcIjtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgaWYgKGlzVGV4dCkge1xcbiAgICAgICAgICAgICAgICB2YXIgdHh0cyA9IG5ldC5zcGxpdChcXFwiXFxcXG5cXFwiKTtcXG4gICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICB2YXIgdHh0cyA9IG5ldC5yZXBsYWNlKC8jRVhUSU5GOi0xICwvZywgJycpXFxuICAgICAgICAgICAgICAgICAgICAucmVwbGFjZSgvI0VYVElORjotMSwvZywgJycpXFxuICAgICAgICAgICAgICAgICAgICAucmVwbGFjZSgvXFxcXG4jZ2VucmUjL2csICcsI2dlbnJlIycpXFxuICAgICAgICAgICAgICAgICAgICAucmVwbGFjZSgvI0VYVElORjotMS9nLCAnJylcXG4gICAgICAgICAgICAgICAgICAgIC5yZXBsYWNlKC9ncm91cC10aXRsZT1cXFwiL2csICcnKVxcbiAgICAgICAgICAgICAgICAgICAgLnJlcGxhY2UoL1xcXFxuaHR0cC9nLCAnLGh0dHAnKVxcbiAgICAgICAgICAgICAgICAgICAgLnJlcGxhY2UoLz0vZywgJycpXFxuICAgICAgICAgICAgICAgICAgICAucmVwbGFjZSgv77yMIy9nLCAnLCMnKVxcbiAgICAgICAgICAgICAgICAgICAgLnJlcGxhY2UoL1xcXCIsL2csICcvJylcXG4gICAgICAgICAgICAgICAgICAgIC5yZXBsYWNlKC8gL2csICcnKVxcbiAgICAgICAgICAgICAgICAgICAgLnNwbGl0KCdcXFxcbicpO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICBjb25zdCBkMSA9IFtdXFxuICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCB0eHRzLmxlbmd0aDsgaSsrKSB7XFxuICAgICAgICAgICAgICAgIHZhciByID0ge307XFxuICAgICAgICAgICAgICAgIHZhciBqID0gdHh0c1tpXS5zcGxpdCgnLCcpO1xcbiAgICAgICAgICAgICAgICBpZiAodHh0c1tpXS5pbmNsdWRlcyhcXFwiQGxhenlSdWxlXFxcIikpIHtcXG4gICAgICAgICAgICAgICAgICAgIGxldCBfaiA9IGo7XFxuICAgICAgICAgICAgICAgICAgICBqID0gW107XFxuICAgICAgICAgICAgICAgICAgICBqLnB1c2goX2pbMF0pO1xcbiAgICAgICAgICAgICAgICAgICAgai5wdXNoKF9qLnNsaWNlKDEpLmpvaW4oXFxcIixcXFwiKSk7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgaWYgKHR4dHNbaV0uaW5kZXhPZihcXFwiI0VYVElORlxcXCIpID09IDAgJiZcXG4gICAgICAgICAgICAgICAgICAgIGoubGVuZ3RoID09IDMgJiYgalsyXS5pbmRleE9mKFxcXCJodHRwXFxcIikgPT0gMCkge1xcbiAgICAgICAgICAgICAgICAgICAgci50aXRsZSA9IGpbMV0uc3BsaXQoJy8nKVtqWzBdLnNwbGl0KCcvJykubGVuZ3RoIC0gMV07XFxuICAgICAgICAgICAgICAgICAgICByLnVybCA9IGpbMl0ucmVwbGFjZShgXFxcXG5gLCAnJykucmVwbGFjZSgnXFxcXHInLCAnJyk7XFxuICAgICAgICAgICAgICAgICAgICBpZiAoci51cmwuaW5kZXhPZihcXFwiaHR0cFxcXCIpID09IDApIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICByLnVybCA9IHIudXJsICsgXFxcIiNpc1ZpZGVvPXRydWUjXFxcIjtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIGQxLnB1c2gocik7XFxuICAgICAgICAgICAgICAgICAgICBjb250aW51ZTtcXG4gICAgICAgICAgICAgICAgfVxcblxcbiAgICAgICAgICAgICAgICBpZiAoai5sZW5ndGggPCAyKSB7XFxuICAgICAgICAgICAgICAgICAgICBjb250aW51ZTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICByLnRpdGxlID0galswXS5zcGxpdCgnLycpW2pbMF0uc3BsaXQoJy8nKS5sZW5ndGggLSAxXTtcXG4gICAgICAgICAgICAgICAgaWYgKGZpbHRlciAhPSBudWxsICYmICFyLnRpdGxlLmluY2x1ZGVzKGZpbHRlcikpIHtcXG4gICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIHIudXJsID0galsxXS5yZXBsYWNlKGBcXFxcbmAsICcnKS5yZXBsYWNlKCdcXFxccicsICcnKTtcXG4gICAgICAgICAgICAgICAgaWYgKHIudXJsLmluZGV4T2YoXFxcImh0dHBcXFwiKSA9PSAwKSB7XFxuICAgICAgICAgICAgICAgICAgICByLnVybCA9IHIudXJsICsgXFxcIiNpc1ZpZGVvPXRydWUjXFxcIjtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBkMS5wdXNoKHIpO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAvL+Wkmue6v+i3r1xcbiAgICAgICAgICAgIGNvbnN0IGQyID0ge31cXG4gICAgICAgICAgICBmb3IgKGxldCBpdCBvZiBkMSkge1xcbiAgICAgICAgICAgICAgICBpZiAoZDJbaXQudGl0bGVdID09IG51bGwpIHtcXG4gICAgICAgICAgICAgICAgICAgIGQyW2l0LnRpdGxlXSA9IFtdXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgZDJbaXQudGl0bGVdLnB1c2goaXQudXJsKVxcbiAgICAgICAgICAgIH1cXG5cXG4gICAgICAgICAgICBmb3IgKGxldCBpdCBvZiBPYmplY3Qua2V5cyhkMikpIHtcXG4gICAgICAgICAgICAgICAgX2QucHVzaCh7XFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogaXQsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6IGQyW2l0XS5sZW5ndGggPT0gMSA/IGQyW2l0XVswXSA6IEpTT04uc3RyaW5naWZ5KHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB1cmxzOiBkMltpdF1cXG4gICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSBjYXRjaCAoZSkge31cXG4gICAgICAgIGlmIChfZCAmJiBfZC5sZW5ndGgpIHtcXG4gICAgICAgICAgICBkYXRhID0gZGF0YS5jb25jYXQoX2QpXFxuICAgICAgICAgICAgc2F2ZUZpbGUoXFxcImRhdGEuanNvblxcXCIsIEpTT04uc3RyaW5naWZ5KF9kKSk7XFxuICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgIGxldCBfdGQgPSByZWFkRmlsZShcXFwiZGF0YS5qc29uXFxcIik7XFxuICAgICAgICAgICAgaWYgKF90ZCkge1xcbiAgICAgICAgICAgICAgICBkYXRhID0gZGF0YS5jb25jYXQoSlNPTi5wYXJzZShfdGQpKVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH1cXG4gICAgfSBjYXRjaCAoZSkge1xcbiAgICAgICAgZGF0YS5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogXFxcIuaVsOaNruWKoOi9veWksei0pVxcXCIsXFxuICAgICAgICAgICAgZGVzYzogSlNPTi5zdHJpbmdpZnkoZSksXFxuICAgICAgICAgICAgY29sX3R5cGU6IFxcXCJ0ZXh0XzFcXFwiXFxuICAgICAgICB9KVxcbiAgICB9XFxufVxcbiQuZXhwb3J0cyA9IHtcXG4gICAgcmVuZGVyTGl2ZURhdGE6IHJlbmRlckxpdmVEYXRhLFxcbn1cIn1dIiwiaWNvbiI6Imh0dHBzOi8vZ2ltZzIuYmFpZHUuY29tL2ltYWdlX3NlYXJjaC9zcmM9aHR0cCUzQSUyRiUyRmNidTAxLmFsaWNkbi5jb20lMkZpbWclMkZpYmFuayUyRjIwMTklMkY5ODclMkY5MjclMkYxMjcxNDcyOTc4OV8yNDg5OTk1NTUuanBnIn0=
Add Comment
Please, Sign In to add comment