1 line
2.4 KiB
JavaScript
1 line
2.4 KiB
JavaScript
bXViYW4ubXhwcm8u5LqM57qnLnRpdGxlID0gJ2gxJiZUZXh0Oy5tb2R1bGUtaW5mby10YWcmJlRleHQnOwptdWJhbi5teHByby7kuoznuqcuZGVzYyA9ICcubW9kdWxlLWluZm8taXRlbTplcSg0KSYmVGV4dDs7Oy5tb2R1bGUtaW5mby1pdGVtLWNvbnRlbnQ6ZXEoMSkmJlRleHQ7Lm1vZHVsZS1pbmZvLWl0ZW0tY29udGVudDplcSgwKSYmVGV4dCc7Cm11YmFuLm14cHJvLuS6jOe6py50YWJzID0gJyN5LXBsYXlMaXN0JiZzcGFuJzsKbXViYW4ubXhwcm8u5LqM57qnLmxpc3RzID0gJy5tb2R1bGUtcGxheS1saXN0OmVxKCNpZCkmJmEnOwp2YXIgcnVsZSA9IHsKICAgIHRpdGxlOifmoYPlrZDlvbHop4YnLCAvL+WOnzkxZnJlZQogICAg5qih5p2/OidteHBybycsCiAgICBob3N0OidodHRwczovL3d3dy50YW96aTAwNy5jb20nLAogICAgdXJsOicvc2hvdy9meWNsYXNzLS0tLS0tLS1meXBhZ2UtLS0uaHRtbCcsCiAgICBjbGFzc19wYXJzZTogJy5uYXZiYXItaXRlbXMmJmFbaHJlZio9dHlwZV07YSYmdGl0bGU7YSYmaHJlZjsoXFxkKykuaHRtbCcsCiAgICBsYXp5OiRqcy50b1N0cmluZygoKT0+ewogICAgICB2YXIgaHRtbCA9IEpTT04ucGFyc2UocmVxdWVzdChpbnB1dCkubWF0Y2goL3IgcGxheWVyXy4qPz0oLio/KTwvKVsxXSk7CiAgICAgICAgdmFyIHVybCA9IGh0bWwudXJsOwogICAgICAgIGlmKGh0bWwuZnJvbSE9J3R5Jyl7CiAgICAgICAgaWYgKC9cXC5tM3U4fFxcLm1wNC8udGVzdCh1cmwpKSB7CiAgICAgICAgICAgIGlucHV0ID0gewogICAgICAgICAgICAgICAgang6IDAsCiAgICAgICAgICAgICAgICB1cmw6IHVybCwKICAgICAgICAgICAgICAgIHBhcnNlOiAwCiAgICAgICAgICAgIH0KICAgICAgICB9IGVsc2UgewogICAgICAgICAgICB1cmwgPSB1bmVzY2FwZShiYXNlNjREZWNvZGUodXJsKSkKICAgICAgICAgICAgaW5wdXQgPSB7CiAgICAgICAgICAgICAgICBqeDogMCwKICAgICAgICAgICAgICAgIHVybDogdXJsLAogICAgICAgICAgICAgICAgcGFyc2U6IDAKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICB9ZWxzZXsKICAgICAgICBjb25zdCBrZXkgPSB7CiAgICAgICAgIndvcmRzIjogWwogICAgICAgICAgICAxNDQ3NDQ1MDc2LAogICAgICAgICAgICAyMDUzNDA0MDEwLAogICAgICAgICAgICAxODg0NDM2ODA2LAogICAgICAgICAgICAxNDYzOTY5ODkzCiAgICAgICAgXSwKICAgICAgICAic2lnQnl0ZXMiOiAxNgogICAgICAgIH0KICAgICAgICBjb25zdCBpdiA9IHsKICAgICAgICAgICAgIndvcmRzIjogWwogICAgICAgICAgICAgICAgOTQyOTQ1ODQ3LAogICAgICAgICAgICAgICAgOTU5OTE4NjQyLAogICAgICAgICAgICAgICAgODc1OTY3NTQxLAogICAgICAgICAgICAgICAgODQyNjEwMjMzCiAgICAgICAgICAgIF0sCiAgICAgICAgICAgICJzaWdCeXRlcyI6IDE2CiAgICAgICAgfQogICAgICAgIGV2YWwoZ2V0Q3J5cHRvSlMpCiAgICBsZXQgZGF0YSA9IENyeXB0b0pTLkFFUy5kZWNyeXB0KHRleHQsIGtleSwgewogICAgICAgICdpdic6IGl2CiAgICAgICAgfSkudG9TdHJpbmcoQ3J5cHRvSlMuZW5jLlV0ZjgpOwogICAgbGV0IGRhdGFfanNvbiA9IEpTT04ucGFyc2UoZGF0YSk7CiAgICBsZXQgdXJsID0gZGF0YV9qc29uLnVybDsKICAgIGlucHV0ID0gewogICAgICAgICAgICAgICAgang6IDAsCiAgICAgICAgICAgICAgICB1cmw6IHVybCwKICAgICAgICAgICAgICAgIHBhcnNlOiAwCiAgICAgICAgICAgIH0KICAgIH0KfSksCiAgICDmjqjojZA6ICcqJywKICAgIGRvdWJsZTogZmFsc2UsIC8vIOaOqOiNkOWGheWuueaYr+WQpuWPjOWxguWumgogICAgc2VhcmNoVXJsOicvc2VhcmNoLyoqLS0tLS0tLS0tLWZ5cGFnZS0tLS5odG1sJywKfQ== |