Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:网页插件¥js_url¥global_蓝奏云自动点击下载@base64://Ly8gPT1Vc2VyU2NyaXB0PT0KLy8gQG5hbWUgICAgICAgICDok53lpY/kupHoh6rliqjngrnlh7vkuIvovb3vvIznm7TmjqXkuIvovb1hcGvmlofku7bvvIzorrDkvY/liIbkuqvlr4bnoIHoh6rliqjloavlhpkKLy8gQHZlcnNpb24gICAgICAzLjAKLy8gQGRlc2NyaXB0aW9uICDoh6rliqjngrnlh7vkuIvovb3vvIzkuIvovb3ok53lpY/kupFhcGvmlofku7bvvIzorrDkvY/ok53lpY/kupHliIbkuqvlr4bnoIHoh6rliqjloavlhpkKLy8gQGF1dGhvciAgICAgICBDaGF0R1BUCi8vIEBpbmNsdWRlICAgICAgKi5sYW5vc3NvLmNvbS8qCi8vIEBpbmNsdWRlICAgICAgKi5sYW56bi5jb20vKgovLyBAaW5jbHVkZSAgICAgICoubGFuem9nLmNvbS8qCi8vIEBpbmNsdWRlICAgICAgKi5sYW5wdy5jb20vKgovLyBAaW5jbHVkZSAgICAgICoubGFucHYuY29tLyoKLy8gQGluY2x1ZGUgICAgICAqLmxhbnp2LmNvbS8qCi8vIEBpbmNsdWRlICAgICAgKjovLyoubGFueiouY29tLyoKLy8gQGluY2x1ZGUgICAgICAqOi8vbGFueiouY29tLyoKLy8gQHJ1bi1hdCAgICAgIGRvY3VtZW50LWVuZAovLyBAZ3JhbnQgICAgICAgIG5vbmUKLy8gQG5hbWVzcGFjZSBodHRwczovL2dyZWFzeWZvcmsub3JnL3VzZXJzLzQ1MjkxMQovLyBAZG93bmxvYWRVUkwgaHR0cHM6Ly91cGRhdGUuZ3JlYXN5Zm9yay5vcmcvc2NyaXB0cy80ODkyODEvJUU4JTkzJTlEJUU1JUE1JThGJUU0JUJBJTkxJUU4JTg3JUFBJUU1JThBJUE4JUU3JTgyJUI5JUU1JTg3JUJCJUU0JUI4JThCJUU4JUJEJUJE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dldE5vZGUgPSBkb2N1bWVudC5ib2R5OwoKLy8g6YWN572u6KeC5a+f5Zmo55qE6YCJ6aG577yI55uR6KeG5a2Q6IqC54K55Y+Y5Yqo77yJCmNvbnN0IGNvbmZpZyA9IHsgY2hpbGRMaXN0OiB0cnVlLCBzdWJ0cmVlOiB0cnVlIH07CgovLyDliJvlu7rkuIDkuKrop4Llr5/lmajlrp7kvovlubbmjIflrprlm57osIPlh73mlbAKY29uc3Qgb2JzZXJ2ZXIgPSBuZXcgTXV0YXRpb25PYnNlcnZlcihmdW5jdGlvbihtdXRhdGlvbnNMaXN0KSB7CiAgICBmb3IoY29uc3QgbXV0YXRpb24gb2YgbXV0YXRpb25zTGlzdCkgewogICAgICAgIGlmIChtdXRhdGlvbi50eXBlID09PSAnY2hpbGRMaXN0JykgewogICAgICAgICAgICBtdXRhdGlvbi5hZGRlZE5vZGVzLmZvckVhY2gobm9kZSA9PiB7CiAgICAgICAgICAgICAgICBpZiAobm9kZS50YWdOYW1lICYmIG5vZGUudGFnTmFtZS50b0xvd2VyQ2FzZSgpID09PSAnYScpIHsKICAgICAgICAgICAgICAgICAgICAvLyDmn6Xmib7lhbfmnIkgb25jbGljaz0nbV9sb2FkKCk7JyDlsZ7mgKfnmoTniLblhYPntKDvvIzlubblnKjor6XniLblhYPntKDkuK3mn6Xmib7lrZDlhYPntKAgPGE+IOi/m+ihjOeCueWHuwpkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCJbb25jbGljaz0nbV9sb2FkKCk7J10gPiBhIikuY2xpY2soKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfQp9KTsKCi8vIOmAmui/h+inguWvn+WZqOWunuS+i+S4juebruagh+iKgueCuee7keWumgpvYnNlcnZlci5vYnNlcnZlKHRhcmdldE5vZGUsIGNvbmZpZyk7CgpmdW5jdGlvbiBleHRyYWN0QW5kTmF2aWdhdGVVUkwoKSB7CiAgLy8g6I635Y+W5pW05Liq6aG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WVudElkZW50aWZpZXIoZWxlbWVudCkgewogICAgICAgIC8vIOS9v+eUqOmhtemdolVSTOOAgeWFg+e0oOeahG5hbWXjgIFpZOaIluexu+WQjeeahOe7hOWQiOS9nOS4uuWUr+S4gOagh+ivhuespgogICAgICAgIGxldCBpZGVudGlmaWVyID0gd2luZG93LmxvY2F0aW9uLmhvc3RuYW1lICsgd2luZG93LmxvY2F0aW9uLnBhdGhuYW1lOwogICAgICAgIGlkZW50aWZpZXIgKz0gJzonICsgKGVsZW1lbnQubmFtZSB8fCBlbGVtZW50LmlkIHx8IGVsZW1lbnQuY2xhc3NMaXN0WzBdIHx8IGdldFhQYXRoRm9yRWxlbWVudChlbGVtZW50KSk7CiAgICAgICAgcmV0dXJuIGlkZW50aWZpZXI7CiAgICB9CgogICAgZnVuY3Rpb24gZ2V0WFBhdGhGb3JFbGVtZW50KGVsZW1lbnQpIHsKICAgICAgICBjb25zdCBwYXRocyA9IFtdOwogICAgICAgIGZvciAoOyBlbGVtZW50ICYmIGVsZW1lbnQubm9kZVR5cGUgPT09IE5vZGUuRUxFTUVOVF9OT0RFOyBlbGVtZW50ID0gZWxlbWVudC5wYXJlbnROb2RlKSB7CiAgICAgICAgICAgIGxldCBpbmRleCA9IDA7CiAgICAgICAgICAgIGxldCBoYXNGb2xsb3dpbmdTaWJsaW5ncyA9IGZhbHNlOwogICAgICAgICAgICBmb3IgKGxldCBzaWJsaW5nID0gZWxlbWVudC5wcmV2aW91c1NpYmxpbmc7IHNpYmxpbmc7IHNpYmxpbmcgPSBzaWJsaW5nLnByZXZpb3VzU2libGluZykgewogICAgICAgICAgICAgICAgaWYgKHNpYmxpbmcubm9kZVR5cGUgPT09IE5vZGUuRE9DVU1FTlRfVFlQRV9OT0RFKSBjb250aW51ZTsKICAgICAgICAgICAgICAgIGlmIChzaWJsaW5nLm5vZGVOYW1lID09PSBlbGVtZW50Lm5vZGVOYW1lKSArK2luZGV4OwogICAgICAgICAgICB9CiAgICAgICAgICAgIGZvciA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VudC5ib2R5LCB7IGNoaWxkTGlzdDogdHJ1ZSwgc3VidHJlZTogdHJ1ZSB9KTsKCiAgICBpbml0KCk7IC8vIOWIneWni+aJp+ihjAp9KSgpOwo=
Add Comment
Please, Sign In to add comment