mirror of
https://github.com/alantang1977/hipy.git
synced 2024-11-22 03:33:07 +02:00
1 line
No EOL
8 KiB
JavaScript
1 line
No EOL
8 KiB
JavaScript
Ly8g5Zyw5Z2A5Y+R5biD6aG1IGh0dHBzOi8vd3d3LmRhbmRhbmp1LnZpcAovLyDmkJzntKLlronlhajpqozor4EgPiDpgJrov4dkcnB5X29jcumqjOivgeeggeaOpeWPo+i/h+mqjOivgU9LCgpmdW5jdGlvbiB2ZXJpZnlMb2dpbih1cmwpIHsKICAgIGxldCBjbnQgPSAwOwogICAgbGV0IGNvb2tpZSA9ICcnOwogICAgbGV0IHIgPSBNYXRoLnJhbmRvbSgpOwogICAgbGV0IHl6bV91cmwgPSBnZXRIb21lKHVybCkgKyAnL2luZGV4LnBocC92ZXJpZnkvaW5kZXguaHRtbCc7CiAgICBsb2coYOmqjOivgeeggemTvuaOpToke3l6bV91cmx9YCk7CiAgICBsZXQgc3VibWl0X3VybCA9IGdldEhvbWUodXJsKSArICcvaW5kZXgucGhwL2FqYXgvdmVyaWZ5X2NoZWNrJzsKICAgIGxvZyhgcG9zdOeZu+W9lemTvuaOpToke3N1Ym1pdF91cmx9YCk7CiAgICB3aGlsZSAoY250IDwgT0NSX1JFVFJZKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgbGV0IHtjb29raWUsIGh0bWx9ID0gcmVxQ29va2llKHl6bV91cmwgKyAnP3I9JyArIHIsIHt0b0Jhc2U2NDogdHJ1ZX0pOwogICAgICAgICAgICBsZXQgY29kZSA9IE9jckFwaS5jbGFzc2lmaWNhdGlvbihodG1sKTsKICAgICAgICAgICAgbG9nKGDnrKwke2NudCArIDF95qyh6aqM6K+B56CB6K+G5Yir57uT5p6cOiR7Y29kZX1gKTsKICAgICAgICAgICAgaHRtbCA9IHBvc3Qoc3VibWl0X3VybCwgewogICAgICAgICAgICAgICAgaGVhZGVyczoge0Nvb2tpZTogY29va2llfSwKICAgICAgICAgICAgICAgIGJvZHk6ICd0eXBlPXNob3cmdmVyaWZ5PScgKyBjb2RlLAogICAgICAgICAgICB9KTsKICAgICAgICAgICAgaHRtbCA9IEpTT04ucGFyc2UoaHRtbCk7CiAgICAgICAgICAgIAogICAgICAgICAgICBpZiAoaHRtbC5jb2RlID09PSAxKSB7CiAgICAgICAgICAgICAgICBsb2coYOesrCR7Y250ICsgMX3mrKHpqozor4HnoIHmj5DkuqTmiJDlip9gKTsKICAgICAgICAgICAgICAgIGxvZyhjb29raWUpOwogICAgICAgICAgICAgICAgcmV0dXJuIGNvb2tpZSAvLyDpnIDopoHov5Tlm55jb29raWUKICAgICAgICAgICAgfSBlbHNlIGlmIChodG1sLmNvZGUgIT09IDEgJiYgY250ICsgMSA+PSBPQ1JfUkVUUlkpIHsKICAgICAgICAgICAgICAgIGNvb2tpZSA9ICcnOyAvLyDpnIDopoHmuIXnqbrov5Tlm55jb29raWUKICAgICAgICAgICAgfQogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgbG9nKGDnrKwke2NudCArIDF95qyh6aqM6K+B56CB5o+Q5Lqk5aSx6LSlOiR7ZS5tZXNzYWdlfWApOwogICAgICAgICAgICBpZiAoY250ICsgMSA+PSBPQ1JfUkVUUlkpIHsKICAgICAgICAgICAgICAgIGNvb2tpZSA9ICcnOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGNudCArPSAxCiAgICB9CiAgICByZXR1cm4gY29va2llCn0KCmdsb2JhbFRoaXMudmVyaWZ5TG9naW4gPSB2ZXJpZnlMb2dpbjsKCnZhciBydWxlID0gewogICAgdGl0bGU6J+ibi+ibi+WJpycsCiAgICAvLyBob3N0OidodHRwczovL3d3dy5kYW5kYW5qdS5jYycsCiAgICBob3N0OidodHRwczovL3d3dy5kYW5kYW5qdS52aXAnLAogICAgaG9zdEpzOidwcmludChIT1NUKTtsZXQgaHRtbD1yZXF1ZXN0KEhPU1Qse2hlYWRlcnM6eyJVc2VyLUFnZW50IjpQQ19VQX19KTtsZXQgc3JjPWpzcC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2goZSl7fWxvY2F0aW9uLmhyZWY9ZG9jdW1lbnQucXVlcnlTZWxlY3RvcihcIiNwbGF5bGVmdCBpZnJhbWVcIikuc3JjOyc7CiAgICAgICAgaW5wdXQgPSB7CiAgICAgICAgICAgIHBhcnNlOiAxLAogICAgICAgICAgICB1cmw6IGlucHV0LAogICAgICAgICAgICBjbGljazoganMsCiAgICAgICAgICAgIGpzOiBqcwogICAgICAgIH07CiAgICB9KSwKICAgIGxpbWl0OjYsCiAgICDmjqjojZA6Jy50YWItY29udGVudCYmbGk7Lmxhenlsb2FkJiZ0aXRsZTsubGF6eWxvYWQmJmRhdGEtb3JpZ2luYWw7LnBpYy10ZXh0JiZUZXh0O2EmJmhyZWYnLAogICAg5LiA57qn5LqMOicuZXdhdmUtdm9kbGlzdCYmbGk7Lmxhenlsb2FkJiZ0aXRsZTsubGF6eWxvYWQmJmRhdGEtb3JpZ2luYWw7LnBpYy10ZXh0JiZUZXh0O2EmJmhyZWYnLAoJ5LiA57qnOiAkanMudG9TdHJpbmcoKCkgPT4gewogICAgICAgICBsZXQgY29va2llID0gZ2V0SXRlbShSVUxFX0NLLCAnJyk7CiAgICAgICAgLy9sb2coJ+WCqOWtmOeahGNvb2tpZTonICsgY29va2llKTsKICAgICAgICAKICAgICAgICBsZXQgcmV0ID0gcmVxdWVzdChNWV9VUkwsIHsKICAgICAgICAgICAgaGVhZGVyczogewogICAgICAgICAgICAgICAgUmVmZXJlcjogZW5jb2RlVXJsKE1ZX1VSTCksCiAgICAgICAgICAgICAgICBDb29raWU6IGNvb2tpZSwKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGlmICgv57O757uf5a6J5YWo6aqM6K+BLy50ZXN0KHJldCkpIHsKICAgICAgICAgICAgLy9sb2cocmV0KTsKICAgICAgICAgICAgY29va2llID0gdmVyaWZ5TG9naW4oTVlfVVJMKTsKICAgICAgICAgICAgaWYgKGNvb2tpZSkgewogICAgICAgICAgICAgICAgbG9nKGDmnKzmrKHmiJDlip/ov4fpqozor4EsY29va2llOiR7Y29va2llfWApOwogICAgICAgICAgICAgICAgc2V0SXRlbShSVUxFX0NLLCBjb29raWUpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgbG9nKGDmnKzmrKHpqozor4HlpLHotKUsY29va2llOiR7Y29va2llfWApOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldCA9IHJlcXVlc3QoTVlfVVJMLCB7CiAgICAgICAgICAgICAgICBoZWFkZXJzOiB7CiAgICAgICAgICAgICAgICAgICAgUmVmZXJlcjogZW5jb2RlVXJsKE1ZX1VSTCksCiAgICAgICAgICAgICAgICAgICAgQ29va2llOiBjb29raWUsCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgIH0KLy9sb2cocmV0KTsKICAgICAgICBsZXQgZCA9IFtdOwogICAgICAgIGxldCBwID0gcnVsZS7kuIDnuqfkuowuc3BsaXQoJzsnKTsKICAgICAgICBsZXQgYXJyID0gcGRmYShyZXQsIHBbMF0pOy8v5YiX6KGoCiAgICAgICAgYXJyLmZvckVhY2goaXQgPT4gewogICAgICAgICAgICBkLnB1c2goewogICAgICAgICAgICAgICAgdGl0bGU6IHBkZmgoaXQsIHBbMV0pLC8v5qCH6aKYCiAgICAgICAgICAgICAgICBwaWNfdXJsOiBwZGZoKGl0LCBwWzJdKSwvL+WbvueJhwogICAgICAgICAgICAgICAgZGVzYzogcGRmaChpdCwgcFszXSksLy/mj4/ov7AKICAgICAgICAgICAgICAgIHVybDogcGRmaChpdCwgcFs0XSksLy/pk77mjqUKICAgICAgICAgICAgICAgIAogICAgICAgICAgICB9KTsKCiAgICAgICAgfSk7CiAgICAgICAgc2V0UmVzdWx0KGQpOwogICAgfSksCiAgICDkuoznuqc6ewogICAgICAgICJ0aXRsZSI6Ii5waWN0dXJlJiZ0aXRsZTsuZGF0YS0tc3BhbjplcSgwKSYmVGV4dCIsCiAgICAgICAgImltZyI6Ii5waWN0dXJlJiZpbWcmJmRhdGEtb3JpZ2luYWwiLAogICAgICAgICJkZXNjIjoiLnBpYy10ZXh0OmVxKDApJiZUZXh0Ozs7LmRhdGEtLXNwYW46ZXEoMSkmJlRleHQ7LmRhdGEtLXNwYW46ZXEoMikmJlRleHQiLAogICAgICAgICJjb250ZW50IjoiLmRlc2MtLWEmJlRleHQiLAogICAgICAgICJ0YWJzIjoiLm5hdi10YWJzJiZsaSIsCiAgICAgICAgImxpc3RzIjoiLnRhYi1wYW5lOmVxKCNpZCkmJmxpIgogICAgfSwKICAgIOaQnOe0ojogJy5ld2F2ZS12b2RsaXN0X19tZWRpYSYmbGk7YSYmdGl0bGU7YSYmZGF0YS1vcmlnaW5hbDsuaGlkZGVuLXhzLS1zcGFuJiZUZXh0O2EmJmhyZWYnLAp9 |