Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@YYDS电影@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoiWVlEU+eUteW9sSIsImF1dGhvciI6IummmembheaDhSIsInVybCI6Imh0dHBzOi8vY21uLnl5ZHMuZmFucy9hcGkvcG9zdHM/SnNvbkJvZHk9e1wiY2F0ZWdvcnlfaWRcIjpcImZ5Y2xhc3NcIixcInNraXBcIjogXCJmeXBhZ2VALTFAKjMwQFwiLFwibGltaXRcIjogXCIzMFwiLFwia2V5d29yZFwiOiBcIlwifTtwb3N0IiwidmVyc2lvbiI6MSwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IummlumhtSbng63pl6jnsr7pgIkm55S15b2xJuWJp+mbhibliqjnlLsm57u86Im6Jue6quW9leeJhybml6Xpn6nliacm5qyn576O5YmnJuaBkOaAlibmvKvlqIEmREMiLCJjbGFzc191cmwiOiItMSYwJjMmMTImNCYxMCYxJjEzJjUmNyY4JjkiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBpdGVtcyA9IFtdO3ZhciBodG1sPUpTT04ucGFyc2UoZ2V0UmVzQ29kZSgpKTtcbi8vbG9nKGh0bWwpO1xudmFyIGxpc3QgPSBodG1sLmRhdGE7XG5cclxuICAgIGZvciAodmFyIGkgPSAwOyBpIDwgbGlzdC5sZW5ndGg7IGkrKykge1xyXG4gICAgICAgIHZhciB0aXRsZSA9IGxpc3RbaV0udGl0bGU7XG4gICAgICAgIHZhciBpbWcgPSBsaXN0W2ldLmNvdmVyO1xyXG4gICAgICAgIC8vbG9nKGltZyk7XG4gICAgICAgIHZhciB1cmwgPSBsaXN0W2ldLmlkO1xu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4gICAgICAgICAgICBtZXRob2Q6ICdQT1NUJ1xuICAgICAgICB9KSkuc2hhcmVfdG9rZW47XG4gICAgICAgIC8vbG9nKHNoYXJldG9rZW4pO1xuICAgICAgICB2YXIgcmVzY29kID0gZmV0Y2goJ2h0dHBzOi8vYXBpLmFsaXl1bmRyaXZlLmNvbS9hZHJpdmUvdjMvZmlsZS9saXN0Jywge1xuICAgICAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgICAgICdDb250ZW50LVR5cGUnOiAnYXBwbGljYXRpb24vanNvbicsXG4gICAgICAgICAgICAgICAgJ1gtU2hhcmUtVG9rZW4nOiBzaGFyZXRva2VuXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYm9keTogJ3tcInNoYXJlX2lkXCI6XCInICsgc2hhcmVJZCArICdcIixcInBhcmVudF9maWxlX2lkXCI6XCJyb290XCIsXCJsaW1pdFwiOjEwMCxcImltYWdlX3RodW1ibmFpbF9wcm9jZXNzXCI6XCJpbWFnZS9yZXNpemUsd18xNjAvZm9ybWF0LGpwZWdcIixcImltYWdlX3VybF9wcm9jZXNzXCI6XCJpbWFnZS9yZXNpemUsd18xOTIwL2Zvcm1hdCxqcGVnXCIsXCJ2aWRlb190aHVtYm5haWxfcHJvY2Vzc1wiOlwidmlkZW8vc25hcHNob3QsdF8xMDAwLGZfanBnLGFyX2F1dG8sd18zMDBcIixcIm9yZGVyX2J5XCI6XCJuYW1lXCIsXCJvcmRlcl9kaXJlY3Rpb25cIjpcIkFTQ1wifScsXG4gICAgICAgICAgICBtZXRob2Q6ICdQT1NUJ1xuICAgICAgICB9KTtcbiAgICAgICAgLy9sb2cocmVzY29kKTtcbiAgICAgICAgdmFyIHR5cCA9IEpTT04ucGFyc2UocmVzY29kKS5pdGVtc1swXS50eXBlO1xuICAgICAgICB2YXIgcGZpbGVpZCA9IEpTT04ucGFyc2UocmVzY29kKS5pdGVtc1swXS5maWxlX2lkO1xuICAgICAgICAvL2xvZyhodG1sKTtcbiAg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t9KSkucnVsZS50b1N0cmluZygpO1xuICAgICAgICBmb3IgKHZhciBpIGluIGNvbnRzKSB7XG4gICAgICAgICAgICB2YXIgbGlzdHlwID0gY29udHNbaV0udHlwZTtcbiAgICAgICAgICAgIGlmIChsaXN0eXAgIT0gJ2ZvbGRlcicpIHtcbiAgICAgICAgICAgICAgICBpdGVtcy5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGNvbnRzW2ldLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgIHVybDogJChjb250c1tpXS5maWxlX2lkKS5sYXp5UnVsZSgoc2hhcmVJZCwgc2hhcmV0b2tlbiwgZG9uZ3RhaSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgZXZhbChkb25ndGFpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBwbGF5XG4gICAgICAgICAgICAgICAgICAgIH0sIHNoYXJlSWQsIHNoYXJldG9rZW4sIGRvbmd0YWkpLFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2ZsZXhfYnV0dG9uJ1xuXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGl0ZW1zLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICB0aXRsZTogY29udHNbaV0ubmFtZSxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAkKCdoaWtlcjovL2VtcHR5JyArIGNvbnRzW2ldLmZpbGVfaWQpLnJ1bGUoKHNoYXJlSWQsIHNoYXJldG9rZW4pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBkID0gW107XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgcmVzY29kID0gZmV0Y2goJ2h0dHBzOi8vYXBpLmFsaXl1bmRyaXZlLmNvbS9hZHJpdmUvdjMvZmlsZS9saXN0Jywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ0NvbnRlbnQtVHlwZSc6ICdhcHBsaWNhdGlvbi9qc29uJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1gtU2hhcmUtVG9rZW4nOiBzaGFyZXRva2VuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBib2R5OiAne1wic2hhcmVfaWRcIjpcIicgKyBzaGFyZUlkICsgJ1wiLFwicGFyZW50X2ZpbGVfaWRcIjpcIicgKyBnZXRSZXNDb2RlKCkgKyAnXCIsXCJsaW1pdFwiOjEwMCxcImltYWdlX3RodW1ibmFpbF9wcm9jZXNzXCI6XCJpbWFnZS9yZXNpemUsd18xNjAvZm9ybWF0LGpwZWdcIixcImltYWdlX3VybF9wcm9jZXNzXCI6XCJpbWFnZVxcL3Jlc2l6ZSx3XzE5MjAvZm9ybWF0LGpwZWdcIixcInZpZGVvX3RodW1ibmFpbF9wcm9jZXNzXCI6XCJ2aWRlby9zbmFwc2hvdCx0XzEwMDAsZl9qcGcsYXJfYXV0byx3XzMwMFwiLFwib3JkZXJfYnlcIjpcIm5hbWVcIixcIm9yZGVyX2RpcmVjdGlvblwiOlwiQVNDXCJ9JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJ1xuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgY29udHMgPSBKU09OLnBhcnNlKHJlc2NvZCkuaXRlbXM7XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgZG9uZ3RhaSA9IEpTT04ucGFyc2UoZmV0Y2goJ2hpa2VyOi8vcGFnZS9sYXp5dXJsJywge30pKS5ydWxlLnRvU3RyaW5nKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBpIGluIGNvbnRzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGNvbnRzW2ldLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybDogJChjb250c1tpXS5maWxlX2lkKS5sYXp5UnVsZSgoc2hhcmVJZCwgc2hhcmV0b2tlbiwgZG9uZ3RhaSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXZhbChkb25ndGFpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBwbGF5XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sIHNoYXJlSWQsIHNoYXJldG9rZW4sIGRvbmd0YWkpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2ZsZXhfYnV0dG9uJ1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIHNldEhvbWVSZXN1bHQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE6IGRcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICB9LCBzaGFyZUlkLCBzaGFyZXRva2VuKSxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICd0ZXh0XzEnXG5cbiAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgfSAvL2VuZCBpZlxuICAgICAgICB9IC8vZW5kIGZvciBpXG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgICBpdGVtcy5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiAn5qyn5qyn77yM5oql6ZSZ5LqG44CCJyxcbiAgICAgICAgICAgIHVybDogZ2V0UmVzQ29kZSgpLFxuICAgICAgICAgICAgY29sX3R5cGU6ICd0ZXh0X2NlbnRlcl8xJ1xuICAgICAgICB9KTtcbiA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50ZXN0KHRhYnQpKSB7XG4gICAgICAgICAgICAgICAgdmFyIGxvYyA9IEpTT04ucGFyc2UoZmV0Y2godGFidCwge1xuICAgICAgICAgICAgICAgICAgICBoZWFkZXJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6IE1PQklMRV9VQSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgcmVkaXJlY3Q6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICB3aXRoSGVhZGVyczogdHJ1ZVxuICAgICAgICAgICAgICAgIH0pKS5oZWFkZXJzLmxvY2F0aW9uWzBdO1xuICAgICAgICAgICAgICAgIC8vbG9nKGxvYyk7XG4gICAgICAgICAgICAgICAgdGFibGluID0gJ2hpa2VyOi8vZW1wdHknICsgbG9jICsgbHpydWxlO1xuICAgICAgICAgICAgfSBlbHNlIGlmICgvMTE1XFwuY29tLy50ZXN0KHRhYnQpKSB7XG4gICAgICAgICAgICAgICAgdGFibGluID0gJ2NvcHk6Ly8nICsgdGFidDtcbiAgICAgICAgICAgIH1lbHNle3RhYmxpbj10YWJ0fVxuICAgICAgICB9XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogdGFidCxcbiAgICAgICAgICAgIHVybDogdGFibGluLFxuICAgICAgICAgICAgY29sX3R5cGU6ICd0ZXh0XzEnXG5cbiAgICAgICAgfSlcbiAgICB9XG59XG5mb3IgKHZhciBpIGluIGxpc3QpIHtcbiAgICB2YXIgdGl0bGUgPSBsaXN0W2ldLm5hbWU7XG4gICAgdmFyIGxpbmsgPSBsaXN0W2ldLmxpbms7XG4gICAgLy9pZihsaXN0W2ldLmNvZGUpe3ZhciBjb2RlID0gbGlzdFtpXS5jb2RlO30gICAgXG4gICAgaWYgKC9hbGl5dW5kcml2ZS8udGVzdChsaW5rKSkge1xuICAgICAgICBsaW5rID0gJ2hpa2VyOi8vZW1wdHknICsgbGluayArIGx6cnVsZTtcbi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lYWRlcnM6IGJyZWZcXG59KTtcIn1dIiwiaWNvbiI6IiJ9
Add Comment
Please, Sign In to add comment