four-d/movie/js/MMDM.js
潇洒 f96825bffb
0
Signed-off-by: 潇洒 <14147370+PizazzXS@user.noreply.gitee.com>
2025-01-02 14:20:32 +00:00

1 line
7.6 KiB
JavaScript

Z2xvYmFsVGhpcy5oX29zdCA9ICdodHRwOi8vb3AueXNkcWpzLmNuLyc7CgpnbG9iYWxUaGlzLnZvZGxpc3QgPSBmdW5jdGlvbigkdCwgJHBnKSB7CiAgICBjb25zdCBjdXJyZW50VGltZXN0YW1wID0gcGFyc2VJbnQoRGF0ZS5ub3coKSAvIDEwMDAsIDEwKTsKICAgIGNvbnN0IHVybCA9IGhfb3N0ICsgJy92Mi9ob21lL3R5cGVfc2VhcmNoJzsKICAgIGNvbnN0IGh4ID0gQ3J5cHRvSlMuTUQ1KCdrajU2NDllcnRqODRrczg5cjRqaDhzNDVoZjg0aGpmZHMwNGsnICsgY3VycmVudFRpbWVzdGFtcCkudG9TdHJpbmcoKTsKICAgIGxldCBodG1sID0gcmVxdWVzdCh1cmwsIHsKICAgICAgICBib2R5OiB7CiAgICAgICAgICAgIHNpZ246IGh4LAogICAgICAgICAgICB0eXBlX2lkOiAkdCwKICAgICAgICAgICAgcGFnZTogJHBnLAogICAgICAgIH0sCiAgICAgICAgaGVhZGVyczogewogICAgICAgICAgICAnVXNlci1BZ2VudCc6ICdva2h0dHAtb2tnby9qZWFzb25senknLAogICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCcKICAgICAgICB9LAogICAgICAgICdtZXRob2QnOiAnUE9TVCcKICAgIH0sIHRydWUpOwogICAgcmV0dXJuIEpTT04ucGFyc2UoaHRtbCkuZGF0YS5saXN0Owp9CgpnbG9iYWxUaGlzLnNlYWNoID0gZnVuY3Rpb24od2QpIHsKICAgIGNvbnN0IGN1cnJlbnRUaW1lc3RhbXAgPSBwYXJzZUludChEYXRlLm5vdygpIC8gMTAwMCwgMTApOwogICAgY29uc3QgdXJsID0gaF9vc3QgKyAnL3YyL2hvbWUvc2VhcmNoJzsKICAgIGNvbnN0IGh4ID0gQ3J5cHRvSlMuTUQ1KCdrajU2NDllcnRqODRrczg5cjRqaDhzNDVoZjg0aGpmZHMwNGsnICsgY3VycmVudFRpbWVzdGFtcCkudG9TdHJpbmcoKTsKICAgIGxldCBodG1sID0gcmVxdWVzdCh1cmwsIHsKICAgICAgICBib2R5OiB7CiAgICAgICAgICAgIHNpZ246IGh4LAogICAgICAgICAgICBrZXl3b3JkOiB3ZCwKICAgICAgICAgICAgdGltZXN0YW1wOiBjdXJyZW50VGltZXN0YW1wLAogICAgICAgIH0sCiAgICAgICAgaGVhZGVyczogewogICAgICAgICAgICAnVXNlci1BZ2VudCc6ICdva2h0dHAtb2tnby9qZWFzb25senknLAogICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCcKICAgICAgICB9LAogICAgICAgICdtZXRob2QnOiAnUE9TVCcKICAgIH0sIHRydWUpOwogICAgcmV0dXJuIEpTT04ucGFyc2UoaHRtbCkuZGF0YS5saXN0Owp9Cmdsb2JhbFRoaXMudm9kaWRzID0gZnVuY3Rpb24oaWRzKSB7CiAgICBjb25zdCBjdXJyZW50VGltZXN0YW1wID0gcGFyc2VJbnQoRGF0ZS5ub3coKSAvIDEwMDAsIDEwKTsKICAgIGNvbnN0IHVybCA9IGhfb3N0ICsgJy92Mi9ob21lL3ZvZF9kZXRhaWxzJzsKICAgIGNvbnN0IGh4ID0gQ3J5cHRvSlMuTUQ1KCdrajU2NDllcnRqODRrczg5cjRqaDhzNDVoZjg0aGpmZHMwNGsnICsgY3VycmVudFRpbWVzdGFtcCkudG9TdHJpbmcoKTsKICAgIGxldCBodG1sID0gcmVxdWVzdCh1cmwsIHsKICAgICAgICBib2R5OiB7CiAgICAgICAgICAgIHNpZ246IGh4LAogICAgICAgICAgICB2b2RfaWQ6IGlkcywKICAgICAgICAgICAgdGltZXN0YW1wOiBjdXJyZW50VGltZXN0YW1wLAogICAgICAgIH0sCiAgICAgICAgaGVhZGVyczogewogICAgICAgICAgICAnVXNlci1BZ2VudCc6ICdva2h0dHAtb2tnby9qZWFzb25senknLAogICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCcKICAgICAgICB9LAogICAgICAgICdtZXRob2QnOiAnUE9TVCcKICAgIH0sIHRydWUpOwogICAgY29uc3QgcmVkYXRhID0gSlNPTi5wYXJzZShodG1sKTsKICAgIGxldCB2b2RQbGF5RnJvbSA9ICcnOwogICAgbGV0IHZvZFBsYXlVcmwgPSAnJzsKICAgIHJlZGF0YS5kYXRhLnZvZF9wbGF5X2xpc3QuZm9yRWFjaCgodmFsdWUsIGtleSkgPT4gewogICAgICAgIGlmICh2YWx1ZS5mbGFnLmluY2x1ZGVzKCJuYnkiKSB8fCB2YWx1ZS5mbGFnLmluY2x1ZGVzKCJtZ3R2IikgfHwgdmFsdWUuZmxhZy5pbmNsdWRlcygicXEiKSB8fCB2YWx1ZS5mbGFnLmluY2x1ZGVzKCJxaXlpIikgfHwgdmFsdWUuZmxhZy5pbmNsdWRlcygibWd0diIpIHx8IDEpIHsKICAgICAgICAgICAgdm9kUGxheUZyb20gKz0gYCR7dmFsdWUuZmxhZ30kJCRgOwogICAgICAgICAgICB2YWx1ZS51cmxzLmZvckVhY2godXJsID0+IHsKICAgICAgICAgICAgICAgIHZvZFBsYXlVcmwgKz0gYCR7dXJsLm5hbWV9JCR7dmFsdWUucGFyc2VfdXJsc1swXX0ke3VybC51cmx9fiR7dXJsLm5hbWV9I2A7CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICB2b2RQbGF5VXJsICs9ICckJCQnOwogICAgICAgIH0KICAgIH0pOwogICAgY29uc3QgcmVnZXNoaSA9IHsKICAgICAgICB2b2RfaWQ6IHJlZGF0YS5kYXRhLnZvZF9pZCwKICAgICAgICB2b2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LzMuMTQuOScsCiAgICAgICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCcKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBpZiAocmVzcG9uc2UuaW5jbHVkZXMoIuaIkOWKnyIpIHx8IHJlc3BvbnNlLmluY2x1ZGVzKCJzdWNjZXNzIikgfHwgcmVzcG9uc2UuaW5jbHVkZXMoIm5ieSIpKSB7CiAgICAgICAgICAgIGxldCBiYXRhID0gSlNPTi5wYXJzZShyZXNwb25zZSk7CiAgICAgICAgICAgIGlucHV0ID0gewogICAgICAgICAgICAgICAgcGFyc2U6IDAsCiAgICAgICAgICAgICAgICB1cmw6IGJhdGEudXJsLAogICAgICAgICAgICAgICAgang6IDAsCiAgICAgICAgICAgICAgICBkYW5tYWt1OiAnaHR0cDovLzEwMy4zNi4yMjAuMTY2OjkxL2Rta3UxL3R2Ym94L3poLnBocD91cmw9JyArICcmam09JyArIFZPRC52b2RfbmFtZSArICcmanM9JyArIHBhcnRzWzFdICsgJyZrZXk9NzQxODUyOTYzJwogICAgICAgICAgICB9CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgaW5wdXQgPSB7CiAgICAgICAgICAgICAgICBwYXJzZTogMCwKICAgICAgICAgICAgICAgIHVybDogcGFydHNbMF0uaW5jbHVkZXMoJ3VybD0nKSA/IHBhcnRzWzBdLnNsaWNlKHBhcnRzWzBdLmluZGV4T2YoJ3VybD0nKSArIDQpIDogbnVsbCwKICAgICAgICAgICAgICAgIGp4OiAxLAogICAgICAgICAgICAgICAgZGFubWFrdTogJ2h0dHA6Ly8xMDMuMzYuMjIwLjE2Njo5MS9kbWt1MS90dmJveC96aC5waHA/dXJsPScgKyAnJmptPScgKyBWT0Qudm9kX25hbWUgKyAnJmpzPScgKyBwYXJ0c1sxXSArICcma2V5PTc0MTg1Mjk2MycKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0gY2F0Y2ggewogICAgICAgIGlucHV0ID0gewogICAgICAgICAgICBwYXJzZTogMCwKICAgICAgICAgICAgdXJsOiAn6Kej5p6Q5aSx6LSlJywKICAgICAgICAgICAgang6IDAsCiAgICAgICAgfQogICAgfQogICAgcmV0dXJuIGlucHV0Owp9Cgp2YXIgcnVsZSA9IHsKICAgIHRpdGxlOiAn5aSp5aSpJywKICAgIGhvc3Q6ICcnLAogICAgZGV0YWlsVXJsOiAnZnlpZCcsCiAgICBzZWFyY2hVcmw6ICcqKicsCiAgICB1cmw6ICdmeWNsYXNzJywKICAgIHNlYXJjaGFibGU6IDIsCiAgICBxdWlja1NlYXJjaDogMSwKICAgIGZpbHRlcmFibGU6IDAsCiAgICBjbGFzc19uYW1lOiAn55S15b2xJueUteinhuWJpybnu7zoibom5Yqo5ryrJywKICAgIGNsYXNzX3VybDogJzEmMiY0JjMnLAogICAgcGxheV9wYXJzZTogdHJ1ZSwKICAgIGxhenk6ICRqcy50b1N0cmluZygoKSA9PiB7CiAgICAgICAgaW5wdXQgPSBqeHgoaW5wdXQpOwogICAgfSksCiAgICDmjqjojZA6ICRqcy50b1N0cmluZygoKSA9PiB7CiAgICAgICAgbGV0IGJkYXRhID0gdm9kbGlzdCgxLCAxKTsKICAgICAgICBjb25zb2xlLmxvZyhiZGF0YSk7CiAgICAgICAgYmRhdGEuZm9yRWFjaChpdCA9PiB7CiAgICAgICAgICAgIGQucHVzaCh7CiAgICAgICAgICAgICAgICB1cmw6IGl0LnZvZF9pZCwKICAgICAgICAgICAgICAgIHRpdGxlOiBpdC52b2RfbmFtZSwKICAgICAgICAgICAgICAgIGltZzogaXQudm9kX3BpYywKICAgICAgICAgICAgICAgIGRlc2M6IGl0LnZvZF9yZW1hcmtzCiAgICAgICAgICAgIH0pOwogICAgICAgIH0pOwogICAgICAgIHNldFJlc3VsdChkKTsKICAgIH0pLAogICAg5LiA57qnOiAkanMudG9TdHJpbmcoKCkgPT4gewogICAgICAgIGxldCBiZGF0YSA9IHZvZGxpc3QoaW5wdXQsIE1ZX1BBR0UpOwogICAgICAgIGNvbnNvbGUubG9nKGJkYXRhKTsKICAgICAgICBiZGF0YS5mb3JFYWNoKGl0ID0+IHsKICAgICAgICAgICAgZC5wdXNoKHsKICAgICAgICAgICAgICAgIHVybDogaXQudm9kX2lkLAogICAgICAgICAgICAgICAgdGl0bGU6IGl0LnZvZF9uYW1lLAogICAgICAgICAgICAgICAgaW1nOiBpdC52b2RfcGljLAogICAgICAgICAgICAgICAgZGVzYzogaXQudm9kX3JlbWFya3MKICAgICAgICAgICAgfSk7CiAgICAgICAgfSk7CiAgICAgICAgc2V0UmVzdWx0KGQpOwogICAgfSksCiAgICDkuoznuqc6ICRqcy50b1N0cmluZygoKSA9PiB7CiAgICAgICAgY29uc29sZS5sb2coIuiwg+ivleS/oeaBrzIiICsgaW5wdXQpOwogICAgICAgIGxldCBkYXRhID0gdm9kaWRzKGlucHV0KTsKICAgICAgICAvL2NvbnNvbGUubG9nKGRhdGEpOwogICAgICAgIFZPRCA9IChkYXRhKTsKICAgIH0pLAogICAg5pCc57SiOiAkanMudG9TdHJpbmcoKCkgPT4gewogICAgICAgIGxldCBkZGF0YSA9IHNlYWNoKGlucHV0KTsKICAgICAgICBkZGF0YS5mb3JFYWNoKGl0ID0+IHsKICAgICAgICAgICAgZC5wdXNoKHsKICAgICAgICAgICAgICAgIHVybDogaXQudm9kX2lkLAogICAgICAgICAgICAgICAgdGl0bGU6IGl0LnZvZF9uYW1lLAogICAgICAgICAgICAgICAgaW1nOiBpdC52b2RfcGljLAogICAgICAgICAgICAgICAgZGVzYzogaXQudm9kX3JlbWFya3MKICAgICAgICAgICAgfSk7CiAgICAgICAgfSk7CiAgICAgICAgc2V0UmVzdWx0KGQpOwogICAgfSksCn0=