xiaomianao666

小程序:夸克网盘

Jul 10th, 2023
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@夸克网盘@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5aS45YWL572R55uYIiwiYXV0aG9yIjoiXG4iLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNmeXBhZ2UiLCJ2ZXJzaW9uIjowLCJjb2xfdHlwZSI6InRleHRfMSIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG5hZGRMaXN0ZW5lcihcbiAgICAnb25SZWZyZXNoJywgJC50b1N0cmluZygoKSA9PiB7XG4gICAgICAgIGNsZWFyTXlWYXIoJ3MnKVxuICAgIH0pXG4pXG4vL+aQnOe0ouebuOWFs+S7o+eggSDlj5boh6rkupHnm5jlkJss5LqR55uY5ZCbKOaOqOmAgSlcbmV2YWwoSlNPTi5wYXJzZShmZXRjaChcImhpa2VyOi8vcGFnZS9zb3VcIikpLnJ1bGUpO1xubGV0IHMgPSBnZXRNeVZhcigncycsICcnKTtcbmlmIChzID09IFwiXCIpIHtcbiAgICB0cnkge1xuICAgICAgICBpZiAoTVlfUEFHRSA9PSAxKSB7XG4gICAgICAgICAgICBoZWFkZXIgPSB7XG4gICAgICAgICAgICAgICAgJ1VzZXItQWdlbnQnOiAnTW96aWxsYS81LjAgKExpbnV4OyBBbmRyb2lkIDYuMDsgTmV4dXMgNSBCdWlsZC9NUkE1OE4pIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZS85OS4wLjQ4NDQuNTEgTW9iaWxlIFNhZmFyaS81MzcuMzYnLFxuICAgICAgICAgICAgICAgICdIb3N0JzogJ3RvcC5iYWlkdS5jb20nLFxuICAgICAgICAgICAgICAgICdBY2NlcHQnOiAnYXBwbGljYXRpb24vanNvbiwgdGV4dC9wbGFpbiwgKi8qJyxcbiAgICAgICAgICAgICAgICAnQWNjZXB0LUxhbmd1YWdlJzogJ3poLUNOLHpoO3E9MC45LGVuLVVTO3E9MC44LGVuO3E9MC43JyxcbiAgICAgICAgICAgICAgICAnQWNjZXB0LUVuY29kaW5nJzogJ2d6aXAsIGRlZmxhdGUsIGJyJyxcbiAgICAgICAgICAgICAgICAnUmVmZXJlcic6ICdodHRwczovL3RvcC5iYWlkdS5jb20vYm9hcmQ/dGFiPW5vdmVsJyxcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGxldCBqc29uO1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogKGdldE15VmFyKCd0b3BiYWlkdScsICcwJykgPT0gJzAnID8gJ+KYkeeUteW9seeDreaQnOamnCcgOiAn55S15b2x54Ot5pCc5qacJyksXG4gICAgICAgICAgICAgICAgdXJsOiBgaGlrZXI6Ly9lbXB0eSNub0xvYWRpbmcjQGxhenlSdWxlPS5qczpwdXRNeVZhcigndG9wYmFpZHUnLCcwJyk7cmVmcmVzaFBhZ2UoKTsnaGlrZXI6Ly9lbXB0eSdgLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnZmxleF9idXR0b24nXG4gICAgICAgICAgICB9LCB7XG4gICAgICAgICAgICAgICAgdGl0bGU6IChnZXRNeVZhcigndG9wYmFpZHUnLCAnMCcpID09ICcxJyA/ICfimJHnlLXop4bliafng63mkJzmppwnIDogJ+eUteinhuWJp+eDreaQnOamnCcpLFxuICAgICAgICAgICAgICAgIHVybDogYGhpa2VyOi8vZW1wdHkjbm9Mb2FkaW5nI0BsYXp5UnVsZT0uanM6cHV0TXlWYXIoJ3RvcGJhaWR1JywnMScpO3JlZnJlc2hQYWdlKCk7J2hpa2VyOi8vZW1wdHknYCxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2ZsZXhfYnV0dG9uJ1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIGlmIChnZXRNeVZhcigndG9wYmFpZHUnLCAnMCcpID09IFwiMVwiKSB7XG4gICAgICAgICAgICAgICAgaWYgKGdldE15VmFyKCdkc2pqc29uJywgXCJcIikgPT0gXCJcIikge1xuICAgICAgICAgICAgICAgICAgICBqc29uID0gcmVxdWVzdCgnaHR0cHM6Ly90b3AuYmFpZHUuY29tL2FwaS9ib2FyZD9wbGF0Zm9ybT13aXNlJnRhYj10ZWxlcGxheSZ0YWc9JTdCJTdEJywge1xuICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyczogaGVhZGVyXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcignZHNqanNvbicsIGpzb24pO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGpzb24gPSBnZXRNeVZhcignZHNqanNvbicpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgaWYgKGdldE15VmFyKCdkeWpzb24nLCAnJykgPT0gXCJcIikge1xuICAgICAgICAgICAgICAgICAgICBqc29uID0gcmVxdWVzdCgnaHR0cHM6Ly90b3AuYmFpZHUuY29tL2FwaS9ib2FyZD9wbGF0Zm9ybT13aXNlJnRhYj1tb3ZpZSZ0YWc9JTdCJTdEJywge1xuICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyczogaGVhZGVyXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcignZHlqc29uJywganNvbik7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAganNvbiA9IGdldE15VmFyKCdkeWpzb24nKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBsZXQgbGlzdCA9IEpTT04ucGFyc2UoanNvbikuZGF0YS5jYXJkc1swXS5jb250ZW50O1xuXG4gICAgICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICBsZXQgbmFtZSA9IGxpc3RbaV0ud29yZCArICcgICAgKCcgKyBsaXN0W2ldLnNob3dbMl0gKyAnKSc7XG4gICAgICAgICAgICAgICAgbGV0IGRlcyA9IGxpc3RbaV0uZGVzYztcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICB0aXRsZTogaSA9PSBcIjBcIiA/ICfigJzigJzigJ3igJ08c3BhbiBzdHlsZT1cImNvbG9yOiNmZjMzMDBcIj4nICsgKHBhcnNlSW50KGkpICsgMSkudG9TdHJpbmcoKSArICc8L3NwYW4+JyArIFwiXFx0XFx0XFx0XCIgKyBuYW1lIDogaSA9PSBcIjFcIiA/ICfigJzigJzigJ3igJ08c3BhbiBzdHlsZT1cImNvbG9yOiNmZjY2MDBcIj4nICsgKHBhcnNlSW50KGkpICsgMSkudG9TdHJpbmcoKSArICc8L3NwYW4+JyArIFwiXFx0XFx0XFx0XCIgKyBuYW1lIDogaSA9PSBcIjJcIiA/ICfigJzigJzigJ3igJ08c3BhbiBzdHlsZT1cImNvbG9yOiNmZjk5MDBcIj4nICsgKHBhcnNlSW50KGkpICsgMSkudG9TdHJpbmcoKSArICc8L3NwYW4+JyArIFwiXFx0XFx0XFx0XCIgKyBuYW1lIDogJ+KAnOKAnOKAneKAnTxzcGFuPicgKyAocGFyc2VJbnQoaSkgKyAxKS50b1N0cmluZygpICsgJzwvc3Bhbj4nICsgXCJcXHRcXHRcXHRcIiArIG5hbWUsXG4gICAgICAgICAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgobmFtZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgbmFtZSA9IG5hbWUuc3BsaXQoJyAgICAoJylbMF07XG4gICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcigncycsIG5hbWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSdcbiAgICAgICAgICAgICAgICAgICAgfSwgbmFtZSksXG4gICAgICAgICAgICAgICAgICAgIGRlc2M6IGRlcyxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6IFwidGV4dF8xXCJcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0gY2F0Y2ggKGUpIHt9XG4gICAgc2V0UmVzdWx0KGQpO1xufSIsInNlYXJjaF91cmwiOiJoaWtlcjovL2VtcHR5IyMqKiIsImdyb3VwIjoi4pGi5LqR55uYIiwic2VhcmNoRmluZCI6ImpzOlxudmFyIGQgPSBbXTtcbmxldCBrZXkgPSBNWV9VUkwuc3BsaXQoXCIjI1wiKVsxXTtcbmQucHVzaCh7XG4gICAgdGl0bGU6IFwi54K55oiR5byA5aeL6IGa5ZCI5pCc57SiXCIgKyBrZXksXG4gICAgdXJsOiBcImhpa2VyOi8vcGFnZS9zb3VwP3A9ZnlwYWdlXCIsXG4gICAgZXh0cmE6IHtcbiAgICAgICAgcGFnZVRpdGxlOiBcIuaQnOe0olwiICsga2V5LFxuICAgICAgICBrZXk6IGtleVxuICAgIH1cbn0pO1xuXG5zZXRSZXN1bHQoZCk7IiwiZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsImRldGFpbF9maW5kX3J1bGUiOiIiLCJzZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsInNkZXRhaWxfZmluZF9ydWxlIjoiIiwidWEiOiJtb2JpbGUiLCJwcmVSdWxlIjoiIiwicGFnZXMiOiJbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuiwg+eUqFwiLFwicGF0aFwiOlwic2hhcmVcIixcInJ1bGVcIjpcImpzOlxcbnZhciByZXMgPSB7fTtcXG52YXIgZCA9IFtdXFxuaWYgKE1ZX1BBR0UgPT0gMSkge1xcbiAgICB2YXIg5o6S5bqPID0gW1xcXCLih4XlkI3np7DmraPluo9cXFwiLCBcXFwi4oeF5ZCN56ew5YCS5bqPXFxcIiwgXFxcIuKHheaXtumXtOato+W6j1xcXCIsIFxcXCLih4Xml7bpl7TlgJLluo9cXFwiLCBdO1xcbiAgICBkLnB1c2goe1xcbiAgICAgICAgdGl0bGU6IGdldEl0ZW0oJ+aOkuW6j+WQjeensCcsIOaOkuW6j1swXSksXFxuICAgICAgICB1cmw6ICQo5o6S5bqPLCAxLCAn6K+36YCJ5oupJykuc2VsZWN0KCgpID0+IHtcXG4gICAgICAgICAgICBzZXRJdGVtKCfmjpLluo/lkI3np7AnLCBpbnB1dCk7XFxuICAgICAgICAgICAgc3dpdGNoIChpbnB1dCkge1xcbiAgICAgICAgICAgICAgICBjYXNlICflkI3np7DmraPluo8nOlxcbiAgICAgICAgICAgICAgICAgICAgc2V0SXRlbSgn5o6S5bqPJywgJ2ZpbGVfbmFtZTphc2MnKTtcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICBjYXNlICflkI3np7DlgJLluo8nOlxcbiAgICAgICAgICAgICAgICAgICAgc2V0SXRlbSgn5o6S5bqPJywgJ2ZpbGVfbmFtZTpkZXNjJylcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICBjYXNlICfml7bpl7TmraPluo8nOlxcbiAgICAgICAgICAgICAgICAgICAgc2V0SXRlbSgn5o6S5bqPJywgJ3VwZGF0ZWRfYXQ6YXNjJylcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICBjYXNlICfml7bpl7TlgJLluo8nOlxcbiAgICAgICAgICAgICAgICAgICAgc2V0SXRlbSgn5o6S5bqPJywgJ3VwZGF0ZWRfYXQ6ZGVzYycpXFxuICAgICAgICAgICAgICAgICAgICBicmVhaztcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgIH0pLFxcbiAgICAgICAgY29sX3R5cGU6ICd0ZXh0XzInXFxuICAgIH0pXFxuICAgIHZhciDmoLflvI8gPSBbXFxcIuWIl+ihqOaooeW8j1xcXCIsIFxcXCLmlofku7blkI3mqKHlvI9cXFwiXTtcXG4gICAgZC5wdXNoKHtcXG4gICAgICAgIHRpdGxlOiBnZXRJdGVtKCfmoLflvI/lkI3np7AnLCDmoLflvI9bMF0pLFxcbiAgICAgICAgdXJsOiAkKOagt+W8jywgMSwgJ+ivt+mAieaLqScpLnNlbGVjdCgoKSA9PiB7XFxuICAgICAgICAgICAgc2V0SXRlbSgn5qC35byP5ZCN56ewJywgaW5wdXQpO1xcbiAgICAgICAgICAgIHN3aXRjaCAoaW5wdXQpIHtcXG4gICAgICAgICAgICAgICAgY2FzZSAn5YiX6KGo5qih5byPJzpcXG4gICAgICAgICAgICAgICAgICAgIHNldEl0ZW0oJ+agt+W8jycsICdhdmF0YXInKVxcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XFxuICAgICAgICAgICAgICAgIGNhc2UgJ+aWh+S7tuWQjeaooeW8jyc6XFxuICAgICAgICAgICAgICAgICAgICBzZXRJdGVtKCfmoLflvI8nLCAndGV4dF8xJylcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgfSksXFxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfMidcXG4gICAgfSlcXG4gICAgZC5wdXNoKHtcXG4gICAgICAgIGNvbF90eXBl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iAgICAvL+iuvue9ruagh+mimFxcbiAgICBpZiAoZ2V0UGFnZVRpdGxlKCkgPT0gJ/CflI4nKSB7XFxuICAgICAgICBzZXRQYWdlVGl0bGUoY29kZS5kYXRhLnNoYXJlLnRpdGxlKVxcbiAgICB9XFxuICAgIHZhciBsaXN0ID0gY29kZS5kYXRhLmxpc3Q7XFxuICAgIGxpc3QuZm9yRWFjaChpdGVtID0+IHtcXG4gICAgICAgIC8v5Yik5pat5piv5ZCm5paH5Lu25aS5XFxuICAgICAgICBpZiAoaXRlbS5kaXIpIHtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICB0aXRsZTogaXRlbS5maWxlX25hbWUsXFxuICAgICAgICAgICAgICAgIGRlc2M6ICQuZGF0ZUZvcm1hdChpdGVtLnVwZGF0ZWRfYXQsICd5eXl5LU1NLWRkJykgKyAnICAnICsgaXRlbS5pbmNsdWRlX2l0ZW1zICsgJ+mhuSAgJyxcXG4gICAgICAgICAgICAgICAgaW1nOiAnaHR0cHM6Ly9oaWtlcmZhbnMuY29tL3R1Ymlhby9tZXNzeS8yNy5zdmcnLFxcbiAgICAgICAgICAgICAgICB1cmw6ICQoKS5sYXp5UnVsZSgoZmlkKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcignZmlkJywgZmlkKVxcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL3BhZ2Uvc2hhcmU/PycgKyBmaWQgKyAnPz9meXBhZ2UnXFxuICAgICAgICAgICAgICAgIH0sIGl0ZW0uZmlkKSxcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6IGdldEl0ZW0oJ+agt+W8jycsICdhdmF0YXInKSxcXG4gICAgICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgICAgIGluaGVyaXRUaXRsZTogZmFsc2VcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiBpdGVtLmZpbGVfbmFtZSxcXG4gICAgICAgICAgICAgICAgZGVzYzogJC5kYXRlRm9ybWF0KGl0ZW0udXBkYXRlZF9hdCwgJ3l5eXktTU0tZGQnKSArICcgICcgKyBzaXplKGl0ZW0uc2l6ZSksXFxuICAgICAgICAgICAgICAgIGltZzogaXRlbS50aHVtYm5haWwsXFxuICAgICAgICAgICAgICAgIHVybDogJCgpLmxhenlSdWxlKChmaWQsIHRva2VuLCBwd2RfaWQsIGNhdGUpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIGV2YWwoSlNPTi5wYXJzZShmZXRjaCgnaGlrZXI6Ly9wYWdlL3Rvb2xzJykpLnJ1bGUpO1xcbiAgICAgICAgICAgICAgICAgICAgbGV0IHVybCA9ICdodHRwczovL3Bhbi5xdWFyay5jbi8xL2Nsb3VkZHJpdmUvZmlsZS9zaGFyZS9kb3dubG9hZCc7XFxuICAgICAgICAgICAgICAgICAgICB2YXIgcXogPSAnJztcXG4gICAgICAgICAgICAgICAgICAgIGlmIChjYXRlLm1hdGNoKC9kb2N8aW1hZ2UvKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHVybCA9IHVybCArICc/cHI9dWNwcm8mZnI9aDUnO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHF6ID0gJ2Rvd25sb2FkOi8vJztcXG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZVxcbiAgICAgICAgICAgICAgICAgICAgaWYgKGNhdGUubWF0Y2goL3ZpZGVvLykpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgYnMgPSAnI2lzVmlkZW89dHJ1ZSMnXFxuICAgICAgICAgICAgICAgICAgICB9IGVsc2VcXG4gICAgICAgICAgICAgICAgICAgIGlmIChjYXRlLm1hdGNoKC9tdXNpYy8pKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGJzID0gJyNpc011c2ljPXRydWUjJ1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgbGV0IGJvZHkgPSBKU09OLnN0cmluZ2lmeSh7XFxuICAgICAgICAgICAgICAgICAgICAgICAgZmlkczogW2ZpZF0sXFxuICAgICAgICAgICAgICAgICAgICAgICAgcHdkX2lkOiBwd2RfaWQsXFxuICAgICAgICAgICAgICAgICAgICAgICAgc3Rva2VuOiBkZWNvZGVVUklDb21wb25lbnQoZ2V0TXlWYXIoJ3N0b2tlbicpKSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBmaWRzX3Rva2VuOiBbdG9rZW5dXFxuICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICAgICAgICAgIHZhciBkYXRhID0gSlNPTi5wYXJzZShwb3N0KHVybCwge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGJvZHk6IGJvZHlcXG4gICAgICAgICAgICAgICAgICAgIH0pKS5kYXRhWzBdLmRvd25sb2FkX3VybDtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBxeiArIGRhdGEgKyBic1xcbiAgICAgICAgICAgICAgICB9LCBpdGVtLmZpZCwgaXRlbS5zaGFyZV9maWRfdG9rZW4sIGdldE15VmFyKCdwd2RfaWQnKSwgaXRlbS5vYmpfY2F0ZWdvcnkpLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogZ2V0SXRlbSgn5qC35byPJywgJ2F2YXRhcicpLFxcbiAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICAgaWQ6IGl0ZW0uZmlkLFxcbiAgICAgICAgICAgICAgICAgICAgaW5oZXJpdFRpdGxlOiBmYWxzZSxcXG4gICAgICAgICAgICAgICAgICAgIGNsczogJ3BsYXlsaXN0ICcgKyBpdGVtLm9ial9jYXRlZ29yeVxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfSlcXG4gICAgICAgIH1cXG4gICAgICAgIGQucHVz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iAgICBuYW1lOiBcXFwi6Laj55uY5pCcXFxcIixcXG4gICAgcGFnZTogdHJ1ZSxcXG4gICAgZmluZDogZnVuY3Rpb24ocywgcGFnZSkge1xcbiAgICAgICAgdmFyIGQgPSBbXTtcXG4gICAgICAgIHZhciBib2R5ID0gSlNPTi5zdHJpbmdpZnkoe1xcbiAgICAgICAgICAgIFxcXCJzdHlsZVxcXCI6IFxcXCJnZXRcXFwiLFxcbiAgICAgICAgICAgIFxcXCJkYXRhc3JjXFxcIjogXFxcInNlYXJjaFxcXCIsXFxuICAgICAgICAgICAgXFxcInF1ZXJ5XFxcIjoge1xcbiAgICAgICAgICAgICAgICBcXFwiaWRcXFwiOiBcXFwiXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcImRhdGV0aW1lXFxcIjogXFxcIlxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJjb21tb25pZFxcXCI6IDEsXFxuICAgICAgICAgICAgICAgIFxcXCJwYXJtaWRcXFwiOiBcXFwiXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcImZpbGVpZFxcXCI6IFxcXCJcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwicmVwb3J0aWRcXFwiOiBcXFwiXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcInZhbGlkaWRcXFwiOiBcXFwiXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcInNlYXJjaHRleHRcXFwiOiBzXFxuICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICBcXFwicGFnZVxcXCI6IHtcXG4gICAgICAgICAgICAgICAgXFxcInBhZ2VTaXplXFxcIjogMTAsXFxuICAgICAgICAgICAgICAgIFxcXCJwYWdlSW5kZXhcXFwiOiBwYWdlXFxuICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICBcXFwib3JkZXJcXFwiOiB7XFxuICAgICAgICAgICAgICAgIFxcXCJwcm9wXFxcIjogXFxcImlkXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcIm9yZGVyXFxcIjogXFxcImRlc2NcXFwiXFxuICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICBcXFwibWVzc2FnZVxcXCI6IFxcXCLor7fmsYLotYTmupDliJfooajmlbDmja5cXFwiXFxuICAgICAgICB9KTtcXG4gICAgICAgIEpTT04ucGFyc2UocG9zdCgnaHR0cHM6Ly92LmZ1bmxldHUuY29tL3NlYXJjaCcsIHtcXG4gICAgICAgICAgICBib2R5OiBib2R5XFxuICAgICAgICB9KSkuZGF0YS5mb3JFYWNoKGl0ZW0gPT4ge1xcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiBpdGVtLnRpdGxlLFxcbiAgICAgICAgICAgICAgICBkZXNjOiBcXFwi4oCc4oCc4oCd4oCdPGZvbnQgY29sb3I9I2YxM2I2NmE+6Laj55uY5pCcPC9mb250PiZuYnNwO1xcXCIgKyBpdGVtLmNhdGVnb3J5ICsgJyAnICsgaXRlbS5maWxldHlwZSArICcgJyArIGl0ZW0udXBkYXRldGltZSxcXG4gICAgICAgICAgICAgICAgdXJsOiBpdGVtLnVybCArICc/P2Z5cGFnZUBydWxlPWpzOiQucmVxdWlyZShcXFwiaGlrZXI6Ly9wYWdlL3NoYXJlXFxcIiknLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMSdcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfSlcXG4gICAgICAgIHJldHVybiBkO1xcbiAgICB9XFxufSwge1xcbiAgICBuYW1lOiBcXFwi54ix55uY5pCcXFxcIixcXG4gICAgcGFnZTogdHJ1ZSxcXG4gICAgZmluZDogZnVuY3Rpb24ocywgcGFnZSkge1xcbiAgICAgICAgdmFyIGQgPSBbXTtcXG4gICAgICAgIHZhciBodG1sID0gZmV0Y2goYGh0dHBzOi8vYWlwYW5zby5jb20vc2VhcmNoP3BhZ2U9JHtwYWdlfSZrPSR7c30mcz0wJnQ9LTFgKTtcXG4gICAgICAgIHZhciBsaXN0ID0gcGRmYShodG1sLCAnI2FwcCYmYTpoYXModmFuLWNhcmQpJyk7XFxuICAgICAgICBsaXN0LmZvckVhY2goaXRlbSA9PiB7wqBcXG4gICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICB2YXIgdXJsID0gJ2h0dHBzOi8vYWlwYW5zby5jb20nICsgcGRmaChpdGVtLCAnYSYmaHJlZicpO1xcbiAgICAgICAgICAgICAgICB1cmwgPSBKU09OLnBhcnNlKGZldGNoKHVybC5yZXBsYWNlKCcvcy8nLCAnL2N2LycpLCB7XFxuICAgICAgICAgICAgICAgICAgICBoZWFkZXJzOiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgUmVmZXJlcjogdXJsXFxuICAgICAgICAgICAgICAgICAgICB9LFxcbiAgICAgICAgICAgICAgICAgICAgcmVkaXJlY3Q6IGZhbHNlLFxcbiAgICAgICAgICAgICAgICAgICAgd2l0aEhlYWRlcnM6IHRydWVcXG4gICAgICAgICAgICAgICAgfSkpLmhlYWRlcnMubG9jYXRpb25bMF07XFxuICAgICAgICAgICAgICAgIGQucHVzaCh7wqDCoMKgXFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogcGRmaChpdGVtLCAndGVtcGxhdGUmJlRleHQnKSxcXG4gICAgICAgICAgICAgICAgICAgIGRlc2M6IFxcXCLigJzigJzigJ3igJ08Zm9udCBjb2xvcj0jZjEzYjY2YT7niLHnm5jmkJw8L2ZvbnQ+Jm5ic3A7XFxcIiArIHBkZmgoaXRlbSwgJ3RlbXBsYXRlLDEmJlRleHQnKSxcXG4gICAgICAgICAgICAgICAgICAgIHVybDogdXJsICsgJz8/ZnlwYWdlQHJ1bGU9anM6JC5yZXF1aXJlKFxcXCJoaWtlcjovL3BhZ2Uvc2hhcmVcXFwiKScsXFxuICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHt9XFxuICAgICAgICB9KVxcbiAgICAgICAgcmV0dXJuIGRcXG4gICAgfVxcbn0sIHtcXG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4gICAgaWYgKGRhdGEubGVuZ3RoID4gMCkge1xcbiAgICAgICAgLy/lpJrnur/nqIvliqDovb0gICAgICAgIFxcbiAgICAgICAgbGV0IHJlYWxQYWdlID0gXFxcIlxcXCIgPT0gciA/IDEgOiBwO1xcbiAgICAgICAgbGV0IHRhc2tzID0gZGF0YS5tYXAoaXQgPT4ge1xcbiAgICAgICAgICAgIHJldHVybiB7XFxuICAgICAgICAgICAgICAgIGZ1bmM6IGZ1bmN0aW9uKHJ1bGUpIHtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBydWxlLmZpbmQocywgcmVhbFBhZ2UpO1xcbiAgICAgICAgICAgICAgICB9LFxcbiAgICAgICAgICAgICAgICBwYXJhbTogaXQsXFxuICAgICAgICAgICAgICAgIGlkOiBcXFwicnVsZUBcXFwiICsgaXQubmFtZVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pO1xcblxcbiAgICAgICAgYmF0Y2hFeGVjdXRlKHRhc2tzLCB7XFxuICAgICAgICAgICAgZnVuYzogZnVuY3Rpb24ocGFyYW0sIGlkLCBlcnJvciwgcmVzdWx0KSB7XFxuICAgICAgICAgICAgICAgIC8vbG9nKFxcXCJsaXN0ZW5lcjogXFxcIiArIChyZXN1bHQgfHwgW10pLmxlbmd0aClcXG4gICAgICAgICAgICAgICAgcGFyYW0uaSA9IHBhcmFtLmkgKyAxO1xcbiAgICAgICAgICAgICAgICBpZiAocmVzdWx0KSB7XFxuICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAobGV0IGl0IG9mIHJlc3VsdCkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXJhbS5qID0gcGFyYW0uaiArIDE7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFkZEl0ZW1CZWZvcmUocGFnZWlkLCB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogaXQudGl0bGUuaW5jbHVkZXMoXFxcIuKAnOKAnOKAneKAnVxcXCIpID8gaXQudGl0bGUgOiBcXFwi4oCc4oCc4oCd4oCdXFxcIiArIGl0LnRpdGxlLnJlcGxhY2UobmV3IFJlZ0V4cChcXFwiPGVtPnw8L2VtPlxcXCIsIFxcXCJnXFxcIiksIFxcXCJcXFwiKS5yZXBsYWNlKG5ldyBSZWdFeHAocywgXFxcImdcXFwiKSwgXFxcIjxzdHJvbmc+PHNwYW4gc3R5bGU9XFxcXFxcXCJjb2xvcjogIzFFOTBGRlxcXFxcXFwiPlxcXCIgKyBzICsgXFxcIjwvc3Bhbj48L3N0cm9uZz5cXFwiKSxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlc2M6IGl0LmRlc2MsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6IGl0LnVybCxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpY191cmw6IGl0LnBpY191cmwsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogaXQucGljX3VybCA/ICdtb3ZpZV8xX3ZlcnRpY2FsX3BpYycgOiBcXFwidGV4dF8xXFxcIixcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ6IFxcXCJfX2FwcFxcXCIgKyBNWV9QQUdFICsgXFxcIkBcXFwiICsgcGFyYW0uaixcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmhlcml0VGl0bGU6IGZhbHNlXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkge31cXG5cXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBpZiAocGFyYW0uaSA+PSBwYXJhbS5hbGwpIHtcXG4gICAgICAgICAgICAgICAgICAgIGRlbGV0ZUl0ZW0ocGFnZWlkKVxcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgdXBkYXRlSXRlbSh7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFxcXCLliqDovb3nrKxcXFwiICsgTVlfUEFHRSArIFxcXCLpobXkuK3vvIzov5vluqbvvJpcXFwiICsgKHBhcmFtLmkgKyAxKSArIFxcXCIvXFxcIiArIHBhcmFtLmFsbCxcXG4gICAgICAgICAgICAgICAgICAgICAgICB1cmw6IFxcXCJcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcXFwidGV4dF9jZW50ZXJfMVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICAgICAgZGVzYzogXFxcIlxcXCIsXFxuICAgICAgICAgICAgICAgICAgICAgICAgcGljX3VybDogXFxcIlxcXCIsXFxuICAgICAgICAgICAgICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ6IHBhZ2VpZFxcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9LFxcbiAgICAgICAgICAgIHBhcmFtOiB7XFxuICAgICAgICAgICAgICAgIGFsbDogZGF0YS5sZW5ndGgsXFxuICAgICAgICAgICAgICAgIGk6IDAsXFxuICAgICAgICAgICAgICAgIGo6IC0xXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSlcXG4gICAgfVxcbn1cIn0se1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuaQnOe0oumhtemdolwiLFwicGF0aFwiOlwic291cFwiLFwicnVsZVwiOlwianM6XFxudmFyIGQgPSBbXTtcXG5pZiAoTVlfUEFSQU1TLmtleSkge1xcbiAgICBwdXRNeVZhcihcXFwic1xcXCIsIE1ZX1BBUkFNUy5rZXkpO1xcbn1cXG5ldmFsKEpTT04ucGFyc2UoZmV0Y2goXFxcImhpa2VyOi8vcGFnZS9zb3VcXFwiKSkucnVsZSk7XCJ9XSIsImljb24iOiJodHRwOi8vZmM1dG4uYmFpZHUuY29tL2l0L3U9NDUzMDg1NzY2LDg3OTc0NDE3MCZmbT0yMDMmc3JjPTc4NyZmY19tPWN2aWNhbiIsInByb3h5IjoiIn0=
Add Comment
Please, Sign In to add comment