mirror of
https://github.com/alantang1977/hipy.git
synced 2024-11-25 07:53:09 +02:00
1 line
1.7 KiB
JavaScript
1 line
1.7 KiB
JavaScript
|
dmFyIHJ1bGUgPSB7CiAgICB0aXRsZTogJ+W9seaQnCcsCiAgICBob3N0OiAnaHR0cHM6Ly95aW5nc28uZnVuJywKICAgIHNlYXJjaFVybDogJ2h0dHBzOi8veXMuYXBpLnlpbmdzby5mdW4vdjMvYWxpL3NlYXJjaCcsCiAgICBzZWFyY2hhYmxlOiAyLAogICAgcXVpY2tTZWFyY2g6IDAsCiAgICBoZWFkZXJzOiB7CiAgICAgICAgJ1VzZXItQWdlbnQnOiAnUENfVUEnLAogICAgfSwKICAgIHRpbWVvdXQ6IDUwMDAsCiAgICBwbGF5X3BhcnNlOiB0cnVlLAogICAgbGF6eTogJGpzLnRvU3RyaW5nKCgpID0+IHsKICAgICAgICBsZXQgdXJsID0gaW5wdXQuc3RhcnRzV2l0aCgncHVzaDovLycpID8gaW5wdXQgOiAncHVzaDovLycgKyBpbnB1dDsKICAgICAgICBpbnB1dCA9IHtwYXJzZTogMCwgdXJsOiB1cmx9OwogICAgfSksCiAgICDkuIDnuqc6ICcnLAogICAg5LqM57qnOiAnKicsCiAgICDmkJzntKI6ICRqcy50b1N0cmluZygoKSA9PiB7CiAgICAgICAgbGV0IGQgPSBbXTsKICAgICAgICAvL2xvZyhLRVkpOwogICAgICAgIGxldCBodG1sID0gcG9zdChNWV9VUkwsIHsKICAgICAgICAgICAgYm9keTogewogICAgICAgICAgICAgICAgInBhZ2VOdW0iOiAxLAogICAgICAgICAgICAgICAgInBhZ2VTaXplIjogMzAsCiAgICAgICAgICAgICAgICAidGl0bGUiOiBLRVksCiAgICAgICAgICAgICAgICAicm9vdCI6IDAsCiAgICAgICAgICAgICAgICAiY2F0IjogImFsbCIKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIC8vbG9nKGh0bWwpOwogICAgICAgIHZhciBsaXN0ID0gSlNPTi5wYXJzZShodG1sKS5kYXRhOwogICAgICAgIC8vbG9nKGxpc3QpOwogICAgICAgIGxpc3QubWFwKGl0ID0+IHsKICAgICAgICAgICAgbGV0IHVybCA9IGl0LmtleQogICAgICAgICAgICBpZiAodXJsLmxlbmd0aCA9PT0gMTEpIHsKICAgICAgICAgICAgICAgIGxldCBfaW1nID0gJ2h0dHBzOi8vMzg0OC5rc3RvcmUuc3BhY2UvVFZCb3gvdHAvJUU5JTk4JUJGJUU5JTg3JThDJUU0JUJBJTkxJUU3JTlCJTk4LnBuZyc7CiAgICAgICAgICAgICAgICBkLnB1c2goewogICAgICAgICAgICAgICAgICAgIHRpdGxlOiBpdC50aXRsZSwKICAgICAgICAgICAgICAgICAgICBpbWc6IF9pbWcsCiAgICAgICAgICAgICAgICAgICAgdXJsOiAiaHR0cHM6Ly93d3cuYWxpeXVuZHJpdmUuY29tL3MvIiArIHVybCArIGBAQCR7aXQudGl0bGV9QEAke19pbWd9YCwKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgc2V0UmVzdWx0KGQpOwogICAgfSksCn0=
|