Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@期刊杂志demo@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5pyf5YiK5p2C5b+XZGVtbyIsImF1dGhvciI6Ikpva2VyIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlIiwidmVyc2lvbiI6NSwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJyZWFkIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG5sZXQgZCA9IFtdO1xubGV0IG5vdyA9IGdldEl0ZW0oJ25vdycsICfmjqjojZDmnJ/liIonKTtcbmlmIChNWV9QQUdFID09IDEpIHtcbiAgICBsZXQgYXJyID0gWyfmjqjojZDmnJ/liIonLCAn54Ot6Zeo5pyf5YiKJywgJ+aUtuiXjyddO1xuICAgIGZvciAobGV0IGl0IG9mIGFycikge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IG5vdyA9PSBpdCA/ICfigJzigJzigJ3igJ0nICsgaXQuZm9udGNvbG9yKCdyZWQnKSA6IGl0LFxuICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcbiAgICAgICAgICAgIHVybDogJCgnJykubGF6eVJ1bGUoKGl0KSA9PiB7XG4gICAgICAgICAgICAgICAgc2V0SXRlbShcIm5vd1wiLCBpdCk7XG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xuICAgICAgICAgICAgfSwgaXQpXG4gICAgICAgIH0pXG4g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nX2lkPScgKyBpdC5tYWdfaWQgKyAnJnFpc2h1PScgKyBpdC5xaXNodSxcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxufSBlbHNlIGlmIChub3cgPT0gJ+aUtuiXjycpIHtcbiAgICBpZiAoTVlfUEFHRSA9PSAxKSB7XG4gICAgICAgIGxldCBjb2xsZWN0aW9uID0gSlNPTi5wYXJzZShyZWFkRmlsZSgnY29sbGVjdGlvbicpIHx8ICd7fScpO1xuICAgICAgICBmb3IgKGxldCBpIGluIGNvbGxlY3Rpb24pIHtcbiAgICAgICAgICAgIGxldCBpdCA9IGNvbGxlY3Rpb25baV07XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBpLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMycsXG4gICAgICAgICAgICAgICAgaW1nOiBpdC5pbWcsXG4gICAgICAgICAgICAgICAgdXJsOiAnaGlrZXI6Ly9wYWdlL2hpc3RvcnknLFxuICAgICAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgICAgIGhyZWY6IGl0LnVybCxcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGksXG4gICAgICAgICAgICAgICAgICAgIGltZzogaXQuaW1nXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSlcbiAgICAgICAgfVxuICAgIH1cbn1cbnNldFJlc3VsdChkKTsiLCJzZWFyY2hfdXJsIjoiaGlrZXI6Ly9lbXB0eSMjKioiLCJncm91cCI6IuKRoOaOqOiNkCIsInNlYXJjaEZpbmQiOiJqczpcbmxldCBkID0gW107XG5ldmFsKEpTT04ucGFyc2UoZmV0Y2goXCJoaWtlcjovL3BhZ2UvZ2V0SGVhZGVyc1wiKSkucnVsZSk7XG5sZXQgcWtfbGlzdCA9IEpTT04ucGFyc2UocmVxdWVzdChcImh0dHBzOi8vYXBpLmxpZnZlcy5jb20vbWFnYXppbmUvc2VhcmN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cmVhZFRoZW1lLFxcbiAgICAgICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgICAgIGxpbmVWaXNpYmxlOiBmYWxzZSxcXG4gICAgICAgICAgICAgICAgaHJlZjogXFxcImh0dHBzOi8vYXBpLmxpZnZlcy5jb20vbWFnYXppbmUvcmVhZD9yZWFkX2lkPVxcXCIgKyBlLnJlYWRfaWQsXFxuICAgICAgICAgICAgICAgIGluZGV4OiBpbmRleFxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pXFxuICAgIH0pXFxufVxcblxcbnNldFJlc3VsdChkKTtcIn0se1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuiOt+WPluivt+axguWktFwiLFwicGF0aFwiOlwiZ2V0SGVhZGVyc1wiLFwicnVsZVwiOlwiIGZ1bmN0aW9uIHJhbmRvbV9jaGFyKHQpIHtcXG4gICAgIGZvciAodmFyIG4gPSBbJzAnLCAnMScsICcyJywgJzMnLCAnNCcsICc1JywgJzYnLCAnNycsICc4JywgJzknLCAnYScsICdiJywgJ2MnLCAnZCcsICdlJywgJ2YnLCAnZycsICdoJywgJ2knLCAnaicsICdrJywgJ2wnLCAnbScsICduJywgJ28nLCAncCcsICdxJywgJ3InLCAncycsICd0JywgJ3UnLCAndicsICd3JywgJ3gnLCAneScsICd6J10sIGkgPSAnJywgZSA9IDA7IGUgPCB0OyBlKyspIHtcXG4gICAgICAgICB2YXIgbyA9IE1hdGguY2VpbCgzNSAqIE1hdGgucmFuZG9tKCkpXFxuICAgICAgICAgaSArPSBuW29dXFxuICAgICB9XFxuICAgICByZXR1cm4gaVxcbiB9XFxuXFxuIGZ1bmN0aW9uIGdldFNlY3JldGRhdGUoKSB7XFxuICAgICB2YXIgdCA9IHBhcnNlSW50KChuZXcgRGF0ZSgpKS5nZXRUaW1lKCkgLyAxZTMpXFxuICAgICB2YXIgbiA9IHJhbmRvbV9jaGFyKDMyKVxcbiAgICAgdmFyIGkgPSAndGltZXN0YW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W50JywgU3RyaW5nKHMgLSAxKSk7XFxuICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICByZXR1cm4gXFxcImhpa2VyOi8vZW1wdHlcXFwiXFxuICAgIH0sIGluZGVudClcXG59KVxcblxcbmQucHVzaCh7XFxuICAgIGNvbF90eXBlOiAnbGluZSdcXG59KVxcblxcbmQucHVzaCh7XFxuICAgIHRpdGxlOiAn6aKE6KeIJy5iaWcoKSArICco5a2X5Y+3OicgKyBmb250c2l6ZSArICcs57yp6L+bOicgKyBpbmRlbnQgKyAnKScsXFxuICAgIGNvbF90eXBlOiAncmljaF90ZXh0J1xcbn0sIHtcXG4gICAgdGl0bGU6ICc8cD7lsI/mo4noooTluIXlkJc/PC9wPjxwPuWwj+ajieiihOaAjuS5iOi/meS5iOW4he+8nzwvcD48cD7lsI/mo4noooTnnJ/mmK/otoXotoXotoXotoXotoXotoXotoXotoXnuqfluIUhISEh5biF54K45LqG5aW95LiN5aW977yf5Li+5LiW6aKc5peg5Y+MISEhITwvcD4nLnJlcGxhY2UoL1xcXFw8cFxcXFw+L2csICc8cD4nICsgaW5kZW50cyksXFxuICAgIGNvbF90eXBlOiAncmljaF90ZXh0JyxcXG4gICAgZXh0cmE6IHtcXG4gICAgICAgIHRleHRTaXplOiBmb250c2l6ZVxcbiAgICB9XFxufSlcXG5zZXRSZXN1bHQoZCk7XCJ9XSIsImljb24iOiJodHRwOi8vcWsuZGVtby5saWZ2ZXMuY29tL2Zhdmljb24uaWNvIn0=
Add Comment
Please, Sign In to add comment