Snaptube v4.40.0.4401610版本的 MD5 值为:ca2b95dcff63007195db02a6c93091b9

以下内容为反编译后的 SiteInjectCode.java 源代码,内容仅作参考


package com.snaptube.extractor.pluginlib.sites.resources;

import com.avocarrot.androidsdk.DynamicConfiguration;
public enum SiteInjectCode {
    FACEBOOK("facebook", "!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,\"a\",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\"\",t(t.s=14)}([function(e,t,n){\"use strict\";function r(){}e.exports=function(e){var t;t=\"function\"!=typeof e.callback?r:e.callback;var n=e.root||document;if(\"undefined\"==typeof MutationObserver)return n.addEventListener(\"DOMNodeInserted\",function(e){t(e.target)}),null;var o=new MutationObserver(function(e){e.forEach(function(e){\"childList\"==e.type&&t(e)})});return o.observe(n,{childList:!0,subtree:e.subtree}),o}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push(\"@media \"+n[2]+\"{\"+n[1]+\"}\"):e.push(n[1])}return e.join(\"\")},e.i=function(t,n){\"string\"==typeof t&&(t=[[null,t,\"\"]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];\"number\"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];\"number\"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]=\"(\"+a[2]+\") and (\"+n+\")\"),e.push(a))}},e}},function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=A[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(s(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(s(r.parts[i],t));A[r.id]={id:r.id,refs:1,parts:a}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],a=o[1],l=o[2],s=o[3],u={css:a,media:l,sourceMap:s};n[i]?n[i].parts.push(u):t.push(n[i]={id:i,parts:[u]})}return t}function o(e,t){var n=g(),r=m[m.length-1];if(\"top\"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),m.push(t);else{if(\"bottom\"!==e.insertAt)throw new Error(\"Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.\");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=m.indexOf(e);t>=0&&m.splice(t,1)}function a(e){var t=document.createElement(\"style\");return t.type=\"text/css\",o(e,t),t}function l(e){var t=document.createElement(\"link\");return t.rel=\"stylesheet\",o(e,t),t}function s(e,t){var n,r,o;if(t.singleton){var s=v++;n=h||(h=a(t)),r=u.bind(null,n,s,!1),o=u.bind(null,n,s,!0)}else e.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(n=l(t),r=d.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=c.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function u(e,t,n,r){var o=n?\"\":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function c(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute(\"media\",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+\" */\");var o=new Blob([n],{type:\"text/css\"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var A={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\\b/.test(self.navigator.userAgent.toLowerCase())}),g=f(function(){return document.head||document.getElementsByTagName(\"head\")[0]}),h=null,v=0,m=[];e.exports=function(e,t){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");t=t||{},void 0===t.singleton&&(t.singleton=p()),void 0===t.insertAt&&(t.insertAt=\"bottom\");var o=r(e);return n(o,t),function(e){for(var i=[],a=0;a<o.length;a++){var l=o[a],s=A[l.id];s.refs--,i.push(s)}if(e){n(r(e),t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete A[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join(\"\\n\")}}()},function(e,t,n){\"use strict\";function r(e){return e=e||{},e.fill=e.fill||\"#fff\",'<svg class=\"download-icon\" viewBox=\"0 0 433.5 433.5\"><g><path d=\"M395.25,153h-102V0h-153v153h-102l178.5,178.5L395.25,153z M38.25,382.5v51h357v-51H38.25z\" fill=\"'+e.fill+'\"/></g></svg>'}e.exports={download:r}},,function(e,t,n){\"use strict\";var r=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfgBQUIKAkPPInWAAAAuElEQVRIx+3UvRGCQBBA4adDSAEGF2psCTZjA1ZiAxZAO8ZnaGARzqwBInfc7vHnjAYsEcy9L2BYEJSrEm0q7eyambMAC/AVYCUABWd2wdM9G+Xsg2tw5znxhOabduJlzHhxddmuxRjik4fAcCLIY2AYEeVdoJ/o5CmQJ5JcA2xCyXVAJ9TcAlLCyG0gJsw8B7REJs8DNZHN5b1M9jjg3r+Nv/wfzAYKALZcJrRHbg1QcpgAlP/xDl4v+U/kjzupaQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNi0wNS0wNVQwODo0MDowOSswMjowMJkQeFQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTYtMDUtMDVUMDg6NDA6MDkrMDI6MDDoTcDoAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAABJRU5ErkJggg==\",o=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEX////nQTf/QEDnQjbnQzbnQjbkQDfnQjbqQDnnQjbkQDXnQjYAAAClAopKAAAAC3RSTlMAqASTuOcc2yTAMEmNafwAAAABYktHRAyBs1FjAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AUFCCcjUx9czwAAAHFJREFUKM9jYAAB6d1AsJEBAYaGgLKLi0s0SGArkGEEFGCr3g0H2xNAStIRAmVgPQglEAVISsqgxsKUwBTAlZTBnQFRglAAVVKG5FKQEmQFYCXICkBKUBUAlaAqACpBU0Aa6JyJBGYABVbvRgK7iBAAAH9OkJI+BE48AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA1LTA1VDA4OjM5OjM1KzAyOjAwBRErigAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNS0wNVQwODozOTozNSswMjowMHRMkzYAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC\";e.exports={data:r,dataRed:o,img:'<img src=\"'+r+'\"/>',imgRed:'<img src=\"'+o+'\"/>'}},,,,,,,,,function(e,t,n){\"use strict\";function r(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function o(e){e.querySelectorAll&&(U?r(e.querySelectorAll(\"*[data-store*=videoID]\"),c):(r(e.querySelectorAll(\".scrollAreaBody *[data-store*=videoID]\"),d),r(e.querySelectorAll(\"article *[data-store*=videoID]\"),A)))}function i(e){var t=document.createElement(\"DIV\");return t.className=\"st-down-actions\",t.innerHTML='<a class=\"st-down\" href=\"javascript:;\"><span>'+n(5).img+'</span><span class=\"text\">Download<span></a>',e&&t.querySelector(\".st-down\").addEventListener(\"click\",e),t}function a(e){return!e.$snaptubeProcessed&&(e.$snaptubeProcessed=!0,!0)}function l(e){return[\"https://www.facebook.com\",S,\"videos\",e].join(\"/\")}function s(e){var t,n,r=JSON.parse(e.dataset.store);if(r.src)n=r.src;else{var o=/video_redirect\\/\\?src=([^\"]+)/.exec(e.href);o&&(n=decodeURIComponent(o[1]))}var i=e.querySelector(\"i.img\").style.backgroundImage,a=/url\\((.+)\\)/.exec(i);return a&&(t=a[1]),{videoInfo:r,bg:i,urlMatch:a,thumbnail:t,url:n}}function u(e,t){var n=s(e);console.log(t),app.showExtractionResult(D.buildVideoInfoFromSingleUrl(n.url,{title:\"Facebook \"+n.videoInfo.videoID,formatAlias:D.getExt(n.url).toUpperCase(),ext:D.getExt(n.url),thumbnail:n.thumbnail,source:t}))}function c(e){if(a(e)){var t=i(function(){u(e,l(JSON.parse(e.dataset.store).videoID))});t.classList.add(\"mini-fill\"),e.parentElement.appendChild(t)}}function d(e){if(a(e)){var t=i(function(){u(e,l(JSON.parse(e.dataset.store).videoID))});e.parentElement.parentElement.insertBefore(t,e.parentElement.nextSibling)}}function A(e){if(a(e)){for(var t=e.parentElement,n=null,r=null,o=null;!n&&t&&(n=t.querySelector(\"footer\"),!(t.querySelector(\"*[data-store*=videoID]\").length>1));){if(!r&&(r=t.querySelector(\"header\"))){var o=r.querySelector(\"div[data-sigil=m-feed-voice-subtitle] > a[href^=\\\\/groups\\\\/]\");o||(o=r.querySelector(\"div[data-sigil=m-feed-voice-subtitle] > a[href^=\\\\/story\\\\.php]\")),o||(o=t.querySelector(\"a[href^=\\\\/story\\\\.php]\"))||(o=t.querySelector(\"a[href^=\\\\/groups\\\\/]\"))}o||(o=t.querySelector('a[aria-label*=\"Open story\"]')),n||(t=t.parentElement)}if(n){var l=i(function(){o.href||e.parentElement.parentElement.parentElement.parentElement.querySelector(\"a[aria-label]\"),u(e,o.href)});n.insertBefore(l,n.firstChild)}}}function f(){var e=document.getElementById(\"m_story_permalink_view\");if(!e)return M=null,null;var t=e.querySelector(\"a[data-sigil*=ufiCommentLink]\");return t?(M=t.href,e):e.querySelector(\"a[data-sigil*=share-popup]\")?e:void 0}function p(e){var t=window.location.href,n=document.getElementById(\"m_story_permalink_view\"),r=document.querySelector(\"div[data-sigil*=story-popup-metadata] div[data-sigil*=photo-stage]\");if(t.substring(t.indexOf(\"?\")).contains(\"soft=\"))return console.log(\"hidden\"),app.setDownloadButtonState(\"HIDDEN\"),M=null,null;if(!n&&!r)return console.log(\"hidden\"),app.setDownloadButtonState(\"HIDDEN\"),M=null,null;if(r)app.setDownloadButtonState(\"ACTIVE\");else{var o=e.querySelector(\"div.story_body_container\");o&&(o.querySelectorAll(\"*[data-store*=videoID]\").length>0||I.test(o.innerHTML))?app.setDownloadButtonState(\"ACTIVE\"):(app.setDownloadButtonState(\"HIDDEN\"),M=null)}}function g(e){if(!C){var t=/^\\/([\\w\\.-]+)\\//.exec(location.pathname);t&&(S=t[1]);var n=/^(?:#!)?\\/[\\w\\.]+\\/(videos|video_grid)\\//;U=n.test(location.pathname)||n.test(location.hash),C=!0,app.beginPumpMessage(),f()||o(e),p(e),C=!1}}function h(){console.log(\"try init\");var e=document.getElementById(\"viewport\");if(!e)return void window.setTimeout(h,200);n(0)({root:e,subtree:!0,callback:function(){g(e)}});g(e),B.log(\"facebook init\")}function v(){var e=[/(?:.*#!)?\\/permalink\\.php\\?.*story_fbid=(\\d+).*&id=(\\d+).*/,/(?:.*#!)?\\/story\\.php\\?.*story_fbid=(\\d+).*&id=(\\d+).*/,/(?:.*#!)?\\/video\\.php\\?.*v=(\\d+).*/,/(?:.*#!)?\\/[^\\/]+\\/videos\\/(\\d+)(?:\\/.*|\\?.*)?/,/(?:.*#!)?\\/[^\\/]+\\/videos\\/[^\\/]+\\/(\\d+)(?:\\/.*|\\?.*)?/,/(?:.*#!)?\\/groups\\/\\d+\\?.*?&id=(\\d+)/],t=/\\/(?:(?:[^\\/]+\\/photos\\/[^\\/]+\\/(\\d+))|(?:photo.php.*?[?&]fbid=(\\d+)))/.exec(M||window.location.href);if(t&&t.length>0)return null!=t[1]?t[1]:t[2];for(var n=M||window.location.href,r=0;r<e.length;r++){var o=e[r].exec(n);if(o)return o[1]}}function m(e){var t=/((?:https?:\\/\\/)[^\\/]+\\/.*?)#!(.+)/.exec(e);return t&&(e=new URL(t[2],new URL(t[1])).toString()),e}function b(e){var t=document.querySelector(\"#fbPhotoPageHeader .uiHeaderTitle\");return t||(t=\"Facebook\"),t+\" \"+e}function w(e,t){var n,r={},o=JSON.parse(e.dataset.store).src;!o&&e.href&&(n=/video_redirect\\/\\?src=([^\"]+)/.exec(e.href),o=decodeURIComponent(n[1])),(n=/url\\((.+)\\)/.exec(e.querySelector(\"i.img\").style.backgroundImage))&&(r.thumbnail=n[1]);var i=D.getExt(o).toUpperCase(),a=\"\";return t>0&&(i=i+\"-\"+(t+1),a=i),r.urls=[{url:o,alias:i,tag:a}],r}function y(e){var t={},n=JSON.parse(e.dataset.store).imgsrc,r=D.getExt(n).toUpperCase();return t.urls=[{url:n,alias:r}],t.thumbnail=n,t}function x(e){var t,n={},r=[],o=1,i=\"JPG\",a=e.innerHTML;console.log(\"photo reg exec start\");var l=R.exec(a);for(console.log(\"photo reg exec end\");l;)t=l[1].replace(/\\\\3d\\s/g,\"=\").replace(/\\\\26\\s/g,\"&\").replace(/\\\\3a\\s/,\":\"),o>1&&(i=\"JPG-\"+o),r.push({url:t,alias:i,tag:o>1?i:\"\"}),l=R.exec(a),o++;return n.urls=r,n.thumbnail=t,n}function E(e){var t=e.querySelector(\"div.story_body_container\");if(t){var n=t.querySelectorAll(\"*[data-store*=videoID]\");if(n.length>0){for(var r=w(n[0],0),o=1;o<n.length;o++){var i=w(n[o],o).urls;r.urls=r.urls.concat(i)}return r}if(I.test(t.innerHTML))return x(t)}var a=e.querySelector(\"#MPhotoActionbar\");if(a){return y(a.parentElement.querySelector(\"i[data-store*=imgsrc]\"))}}var S,B=(n(3),app.newLogger(\"facebook\")),C=!1,U=!1;n(15);var I=/href=\"[#!]{0,2}\\/[\\w\\.\\/]*?photo[s]?.*?url\\(?'?([^;\\)']+)'?\\)?;/,R=/href=\"[#!]{0,2}\\/[\\w\\.\\/]*?photo[s]?.*?url\\(?'?([^;\\)']+)'?\\)?;/g,D=n(17),M=null;app.listenUI(\"download.click\",!1,function(e){console.log(\"download click\");var t=document.getElementById(\"viewport\");if(t){var n=E(t);if(!n)return void app.extractWithCurrentContext(M||window.location.href);n.title=b(v()),n.source=m(M||window.location.href),app.showExtractionResult(D.buildVideoInfo(n))}}),h()},function(e,t,n){var r=n(16);\"string\"==typeof r&&(r=[[e.i,r,\"\"]]);n(2)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,\".st-down-actions {\\n  text-align: right;\\n  padding: 0.5em 0.5em 0;\\n}\\n.st-down-actions .st-down {\\n  font-size: 14px;\\n  display: inline-block;\\n  border-radius: 3px;\\n  line-height: 28px;\\n  padding: 0 9px;\\n  color: #fff;\\n  text-shadow: 0 1px rgba(0, 0, 0, 0.25);\\n  box-shadow: 0px 0px 4px 0px rgba(96, 105, 153, 0.8);\\n  background-color: #627aad;\\n  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));\\n}\\n.st-down-actions .st-down:hover {\\n  background-color: #536a9f;\\n}\\n.st-down-actions .st-down img {\\n  height: 14px;\\n  vertical-align: sub;\\n  margin-right: 0.5em;\\n  display: inline-block;\\n}\\n.st-down-actions.mini-fill {\\n  padding: 0;\\n}\\n.st-down-actions.mini-fill .st-down {\\n  width: 100%;\\n  padding: 0;\\n  border-top-left-radius: 0;\\n  border-top-right-radius: 0;\\n  text-align: center;\\n}\\n.st-down-actions.mini-fill .st-down img {\\n  margin: 0;\\n}\\n.st-down-actions.mini-fill .text {\\n  display: none;\\n}\\n.scrollAreaBody .st-down-actions {\\n  float: right;\\n}\\n\",\"\"])},function(e,t,n){\"use strict\";e.exports={buildFormat:function(e,t,n){return{alias:t,ext:this.getExt(e),downloadUrl:e,tag:null!=n?n:t}},buildFormats:function(e){if(e){var t=this;return e.map(function(e){return t.buildFormat(e.url,e.alias,null==e.tag?\"\":e.tag)})}return[]},buildVideoInfo:function(e){return{title:e.title,thumbnailUrl:e.thumbnail,durationInSecond:e.duration,source:e.source||window.location.href,formats:this.buildFormats(e.urls)}},buildVideoInfoFromSingleUrl:function(e,t){var n=this.buildVideoInfo(t),r=[this.buildFormat(e,t.formatAlias,\"\")];return n.formats=r,n},getExt:function(e){var t=/\\.([^.?#]+)(?:\\?.*)?(?:#.*)?$/.exec(e);return t?t[1]:\"\"}}}]);"),
    FORBIDDEN("forbidden", "!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"\",e(e.s=18)}({18:function(t,e,n){\"use strict\";app.setDownloadButtonState(\"HIDDEN\")}});"),
    GENERAL(DynamicConfiguration.GENERAL, "!function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"\",e(e.s=19)}({0:function(t,e,n){\"use strict\";function o(){}t.exports=function(t){var e;e=\"function\"!=typeof t.callback?o:t.callback;var n=t.root||document;if(\"undefined\"==typeof MutationObserver)return n.addEventListener(\"DOMNodeInserted\",function(t){e(t.target)}),null;var r=new MutationObserver(function(t){t.forEach(function(t){\"childList\"==t.type&&e(t)})});return r.observe(n,{childList:!0,subtree:t.subtree}),r}},19:function(t,e,n){\"use strict\";n(4)},4:function(t,e,n){\"use strict\";function o(t){for(var e=0;e<m.length;e++)if(m[e].test(t))return!0;return!1}function r(){var t=!1;return p.map(function(e){e instanceof RegExp?e.test(location.pathname)&&(t=!0):location.pathname==e&&(t=!0)}),t}function a(){var t=f.detect();return d.log(\"find \"+t.length+\" youtube players\"),1==t.length?l=t[0]:t.length>1&&o(href)&&f.addDownloadButtons(t),t.length}function c(){setTimeout(function(){app.emit(\"video-watcher-update\")},1)}function i(){if(l=null,r())return c(),app.setDownloadButtonState(\"HIDDEN\");var t=window.location.href;d.log(\"href: \"+t+\", hides: \"+p),app.testUrl(t,function(e){c(),r()||t==window.location.href&&(e.success||1==a()?app.setDownloadButtonState(\"ACTIVE\"):app.setDownloadButtonState(\"INACTIVE\"))})}function u(){1==a()&&i()}var l,d=app.newLogger(\"video-watcher\"),s=n(6),f=n(7),p=[],m=[/.*yovideo\\.in/,/.*yevideo.com/];app.callbacks.seq=(new Date).getTime()+parseInt(1e3*Math.random()),app.on(\"locationChanged\",i),app.setDownloadButtonState(\"HIDDEN\"),app.listenUI(\"download.click\",!1,function(){l?app.extractWithCurrentContext(l.src):app.extractCurrentPage()});var h=window.location.href;setTimeout(function(){i()},1),setInterval(function(){window.location.href!=h&&(app.emit(\"locationChanged\",window.location.href,h),h=window.location.href)},500);var w=s.makeName();n(0)({root:document.body,subtree:!0,callback:function(){s(w,u,10)}}),t.exports={update:i,hideDownloadOn:function(t){if(!Array.isArray(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);t=e}p=p.concat(t),i()}}},6:function(t,e,n){\"use strict\";var o={},r=0;t.exports=function(t,e,n){var r=o[t];r?(r.cb=e,clearTimeout(r.timer)):o[t]=r={name:t,cb:e},r.timer=setTimeout(function(){delete o[r.name],r.cb()},n||0)},t.exports.makeName=function(){return\"defer\"+r++}},7:function(t,e,n){\"use strict\";function o(t,e){app.extractWithCurrentContext(e),a.log(\"download from embed youtube player \"+e)}function r(t,e){if(t.downloadButton)return t.downloadButton;var n=t.src,r=document.createElement(\"DIV\"),c=document.createElement(\"A\");return r.className=\"st-download-holder\",c.className=\"st-download-btn\",c.innerHTML=\"Download\",r.appendChild(c),t.parentElement.insertBefore(r,t.nextSibling),console.log(\"add button\",t,r),c.addEventListener(\"click\",function(){o(t,n)}),a.log(\"download button created for embed player \"+n),c}var a=app.newLogger(\"facebook\");t.exports={detect:function(){for(var t=document.getElementsByTagName(\"iframe\"),e=/.*\\.youtube.com\\/embed\\/.*/,n=[],o=0;o<t.length;o++){var r=t[o].src;e.test(r)&&n.push(t[o])}return n},addDownloadButtons:function(t){return t=t||this.detect(),t.map(r)}}}});"),
    LOCAL_BUNDLE("local-bundle", "!function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var t={};n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p=\"\",n(n.s=20)}([function(e,n,t){\"use strict\";function o(){}e.exports=function(e){var n;n=\"function\"!=typeof e.callback?o:e.callback;var t=e.root||document;if(\"undefined\"==typeof MutationObserver)return t.addEventListener(\"DOMNodeInserted\",function(e){n(e.target)}),null;var r=new MutationObserver(function(e){e.forEach(function(e){\"childList\"==e.type&&n(e)})});return r.observe(t,{childList:!0,subtree:e.subtree}),r}},function(e,n){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],n=0;n<this.length;n++){var t=this[n];t[2]?e.push(\"@media \"+t[2]+\"{\"+t[1]+\"}\"):e.push(t[1])}return e.join(\"\")},e.i=function(n,t){\"string\"==typeof n&&(n=[[null,n,\"\"]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];\"number\"==typeof i&&(o[i]=!0)}for(r=0;r<n.length;r++){var a=n[r];\"number\"==typeof a[0]&&o[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]=\"(\"+a[2]+\") and (\"+t+\")\"),e.push(a))}},e}},function(e,n){function t(e,n){for(var t=0;t<e.length;t++){var o=e[t],r=p[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(s(o.parts[i],n))}else{for(var a=[],i=0;i<o.parts.length;i++)a.push(s(o.parts[i],n));p[o.id]={id:o.id,refs:1,parts:a}}}}function o(e){for(var n=[],t={},o=0;o<e.length;o++){var r=e[o],i=r[0],a=r[1],c=r[2],s=r[3],l={css:a,media:c,sourceMap:s};t[i]?t[i].parts.push(l):n.push(t[i]={id:i,parts:[l]})}return n}function r(e,n){var t=A(),o=v[v.length-1];if(\"top\"===e.insertAt)o?o.nextSibling?t.insertBefore(n,o.nextSibling):t.appendChild(n):t.insertBefore(n,t.firstChild),v.push(n);else{if(\"bottom\"!==e.insertAt)throw new Error(\"Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.\");t.appendChild(n)}}function i(e){e.parentNode.removeChild(e);var n=v.indexOf(e);n>=0&&v.splice(n,1)}function a(e){var n=document.createElement(\"style\");return n.type=\"text/css\",r(e,n),n}function c(e){var n=document.createElement(\"link\");return n.rel=\"stylesheet\",r(e,n),n}function s(e,n){var t,o,r;if(n.singleton){var s=g++;t=h||(h=a(n)),o=l.bind(null,t,s,!1),r=l.bind(null,t,s,!0)}else e.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(t=c(n),o=d.bind(null,t),r=function(){i(t),t.href&&URL.revokeObjectURL(t.href)}):(t=a(n),o=u.bind(null,t),r=function(){i(t)});return o(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;o(e=n)}else r()}}function l(e,n,t,o){var r=t?\"\":o.css;if(e.styleSheet)e.styleSheet.cssText=b(n,r);else{var i=document.createTextNode(r),a=e.childNodes;a[n]&&e.removeChild(a[n]),a.length?e.insertBefore(i,a[n]):e.appendChild(i)}}function u(e,n){var t=n.css,o=n.media;if(o&&e.setAttribute(\"media\",o),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}function d(e,n){var t=n.css,o=n.sourceMap;o&&(t+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+\" */\");var r=new Blob([t],{type:\"text/css\"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var p={},f=function(e){var n;return function(){return void 0===n&&(n=e.apply(this,arguments)),n}},m=f(function(){return/msie [6-9]\\b/.test(self.navigator.userAgent.toLowerCase())}),A=f(function(){return document.head||document.getElementsByTagName(\"head\")[0]}),h=null,g=0,v=[];e.exports=function(e,n){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");n=n||{},void 0===n.singleton&&(n.singleton=m()),void 0===n.insertAt&&(n.insertAt=\"bottom\");var r=o(e);return t(r,n),function(e){for(var i=[],a=0;a<r.length;a++){var c=r[a],s=p[c.id];s.refs--,i.push(s)}if(e){t(o(e),n)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete p[s.id]}}}};var b=function(){var e=[];return function(n,t){return e[n]=t,e.filter(Boolean).join(\"\\n\")}}()},function(e,n,t){\"use strict\";function o(e){return e=e||{},e.fill=e.fill||\"#fff\",'<svg class=\"download-icon\" viewBox=\"0 0 433.5 433.5\"><g><path d=\"M395.25,153h-102V0h-153v153h-102l178.5,178.5L395.25,153z M38.25,382.5v51h357v-51H38.25z\" fill=\"'+e.fill+'\"/></g></svg>'}e.exports={download:o}},function(e,n,t){\"use strict\";function o(e){for(var n=0;n<m.length;n++)if(m[n].test(e))return!0;return!1}function r(){var e=!1;return f.map(function(n){n instanceof RegExp?n.test(location.pathname)&&(e=!0):location.pathname==n&&(e=!0)}),e}function i(){var e=p.detect();return u.log(\"find \"+e.length+\" youtube players\"),1==e.length?l=e[0]:e.length>1&&o(href)&&p.addDownloadButtons(e),e.length}function a(){setTimeout(function(){app.emit(\"video-watcher-update\")},1)}function c(){if(l=null,r())return a(),app.setDownloadButtonState(\"HIDDEN\");var e=window.location.href;u.log(\"href: \"+e+\", hides: \"+f),app.testUrl(e,function(n){a(),r()||e==window.location.href&&(n.success||1==i()?app.setDownloadButtonState(\"ACTIVE\"):app.setDownloadButtonState(\"INACTIVE\"))})}function s(){1==i()&&c()}var l,u=app.newLogger(\"video-watcher\"),d=t(6),p=t(7),f=[],m=[/.*yovideo\\.in/,/.*yevideo.com/];app.callbacks.seq=(new Date).getTime()+parseInt(1e3*Math.random()),app.on(\"locationChanged\",c),app.setDownloadButtonState(\"HIDDEN\"),app.listenUI(\"download.click\",!1,function(){l?app.extractWithCurrentContext(l.src):app.extractCurrentPage()});var A=window.location.href;setTimeout(function(){c()},1),setInterval(function(){window.location.href!=A&&(app.emit(\"locationChanged\",window.location.href,A),A=window.location.href)},500);var h=d.makeName();t(0)({root:document.body,subtree:!0,callback:function(){d(h,s,10)}}),e.exports={update:c,hideDownloadOn:function(e){if(!Array.isArray(e)){for(var n=[],t=0;t<arguments.length;t++)n.push(arguments[t]);e=n}f=f.concat(e),c()}}},function(e,n,t){\"use strict\";var o=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfgBQUIKAkPPInWAAAAuElEQVRIx+3UvRGCQBBA4adDSAEGF2psCTZjA1ZiAxZAO8ZnaGARzqwBInfc7vHnjAYsEcy9L2BYEJSrEm0q7eyambMAC/AVYCUABWd2wdM9G+Xsg2tw5znxhOabduJlzHhxddmuxRjik4fAcCLIY2AYEeVdoJ/o5CmQJ5JcA2xCyXVAJ9TcAlLCyG0gJsw8B7REJs8DNZHN5b1M9jjg3r+Nv/wfzAYKALZcJrRHbg1QcpgAlP/xDl4v+U/kjzupaQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNi0wNS0wNVQwODo0MDowOSswMjowMJkQeFQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTYtMDUtMDVUMDg6NDA6MDkrMDI6MDDoTcDoAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAABJRU5ErkJggg==\",r=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEX////nQTf/QEDnQjbnQzbnQjbkQDfnQjbqQDnnQjbkQDXnQjYAAAClAopKAAAAC3RSTlMAqASTuOcc2yTAMEmNafwAAAABYktHRAyBs1FjAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AUFCCcjUx9czwAAAHFJREFUKM9jYAAB6d1AsJEBAYaGgLKLi0s0SGArkGEEFGCr3g0H2xNAStIRAmVgPQglEAVISsqgxsKUwBTAlZTBnQFRglAAVVKG5FKQEmQFYCXICkBKUBUAlaAqACpBU0Aa6JyJBGYABVbvRgK7iBAAAH9OkJI+BE48AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA1LTA1VDA4OjM5OjM1KzAyOjAwBRErigAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNS0wNVQwODozOTozNSswMjowMHRMkzYAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC\";e.exports={data:o,dataRed:r,img:'<img src=\"'+o+'\"/>',imgRed:'<img src=\"'+r+'\"/>'}},function(e,n,t){\"use strict\";var o={},r=0;e.exports=function(e,n,t){var r=o[e];r?(r.cb=n,clearTimeout(r.timer)):o[e]=r={name:e,cb:n},r.timer=setTimeout(function(){delete o[r.name],r.cb()},t||0)},e.exports.makeName=function(){return\"defer\"+r++}},function(e,n,t){\"use strict\";function o(e,n){app.extractWithCurrentContext(n),i.log(\"download from embed youtube player \"+n)}function r(e,n){if(e.downloadButton)return e.downloadButton;var t=e.src,r=document.createElement(\"DIV\"),a=document.createElement(\"A\");return r.className=\"st-download-holder\",a.className=\"st-download-btn\",a.innerHTML=\"Download\",r.appendChild(a),e.parentElement.insertBefore(r,e.nextSibling),console.log(\"add button\",e,r),a.addEventListener(\"click\",function(){o(e,t)}),i.log(\"download button created for embed player \"+t),a}var i=app.newLogger(\"facebook\");e.exports={detect:function(){for(var e=document.getElementsByTagName(\"iframe\"),n=/.*\\.youtube.com\\/embed\\/.*/,t=[],o=0;o<e.length;o++){var r=e[o].src;n.test(r)&&t.push(e[o])}return t},addDownloadButtons:function(e){return e=e||this.detect(),e.map(r)}}},function(e,n,t){\"use strict\";function o(){var e={method:\"GET\"};r(),i.log(\"document.body : \"+document.body),app.http(\"http://img.snaptube.in/static/images/xxxtube\",e,function(e,n){i.log(\"adult http image : \"+e);var t=document.createElement(\"div\");t.className=\"banner\";var o=document.createElement(\"div\");o.className=\"close\",o.addEventListener(\"click\",function(e){t.style.display=\"none\"});var r=document.createElement(\"a\");r.className=\"xxxtube\",r.id=\"xxxImage\",r.href=\"http://www.xxxtube.in/redirect\";var a=document.createElement(\"img\");a.classList.add(\"icon\"),a.setAttribute(\"src\",n.body),r.appendChild(a),t.appendChild(o),t.appendChild(r),document.body.appendChild(t)})}function r(){document.body||setTimeout(r,500)}var i=app.newLogger(\"local-bundle\");e.exports={init:o,style:\"adultsite/style.less\",matches:function(e){return!1}}},function(e,n,t){\"use strict\";function o(e){var n=e.querySelector(\"header\");if(e.querySelector(\".st-download-btn\"))return!0;if(n){var o=n.querySelector(\"time\");if(o){var r=o.parentNode,i=r.href;if(i){a.log(\"picture \"+i);var c=document.createElement(\"A\");c.innerHTML=\"<span>\"+t(5).imgRed+\"</span>\",c.className=\"st-download-btn\",n.appendChild(c),c.addEventListener(\"click\",function(){app.extractWithCurrentContext(i,function(){a.log(i+\" extracted\")})})}return!0}}return!1}function r(){for(var e=document.querySelectorAll(\"article\"),n=0;n<e.length;n++){var t=e[n];t.st_processed||(t.st_processed=o(t))}}function i(){t(0)({root:document.querySelector(\"main>section>div\"),subtree:!0,callback:r});c.hideDownloadOn(\"/\"),r()}var a=(t(3),app.newLogger(\"instagram\")),c=t(4);e.exports={init:i,style:\"instagram.com/style.less\",matches:function(e){return/(?:.*.)?instagram.com/.test(e.hostname)}}},function(e,n,t){\"use strict\";function o(e){var n=e.querySelector(\"a\");if(e.querySelector(\".st-download-btn\"))return!0;if(n){var o=n.href;if(o){a.log(\"song url \"+o);var r=document.createElement(\"A\");return r.innerHTML=t(5).imgRed,r.className=\"st-download-btn\",e.appendChild(r),r.addEventListener(\"click\",function(){app.extractWithCurrentContext(o,function(e){a.log(o+\" extracted\")})}),!0}}return!1}function r(){a.log(\"begin addDownloadButton\");for(var e=document.querySelectorAll(\"#js-cnt-musicas li\"),n=0;n<e.length;n++){a.log(\"processing item \"+n);var t=e[n];t.st_processed||(t.st_processed=o(t))}}function i(){a.log(\"begin palcomp3 init\");t(0)({root:document.querySelector(\"#js-cnt-musicas\"),subtree:!0,callback:r});c.hideDownloadOn(\"/\"),r()}var a=app.newLogger(\"palcomp3\"),c=t(4);e.exports={init:i,style:\"palcomp3.com/style.less\",matches:function(e){return/m.palcomp3.com/.test(e.hostname)}}},function(e,n,t){\"use strict\";function o(){var e=setInterval(function(){var n=document.getElementById(\"downloadTansoDl\")||document.getElementById(\"downloadTrigger\");if(n){for(var t=n.cloneNode();n.firstChild;)t.appendChild(n.firstChild);r(t,\"addEventListener\"),n.parentNode.replaceChild(t,n),t.onclick=function(){return app.extractCurrentPage(),!1},clearInterval(e)}},500);document.cookie=\"views=1; domain=pornhub.com;\"}var r=t(13);e.exports={init:o,style:\"pornhub.com/style.less\",matches:function(e){return/(?:.*.)?pornhub.com/.test(e.hostname)}}},function(e,n,t){\"use strict\";function o(e){var n=e.querySelector(\".controls\"),o=e.querySelector(\".js-title a\"),r=n.querySelector(\".play\");if(e.querySelector(\".st-download-btn\"))return!0;if(n&&o&&r){var i=document.createElement(\"BUTTON\");i.className=\"st-download-btn rounded-box\",i.innerHTML=t(5).img,n.insertBefore(i,r.nextElementSibling);var a=document.createElement(\"DIV\");return n.insertBefore(a,i),i.addEventListener(\"click\",function(){app.extractWithCurrentContext(o.href)}),!0}return!1}function r(){c.log(\"process clips\"),s&&(clearTimeout(s),s=null),s=setTimeout(function(){var e=document.querySelectorAll(\".clip_wrapper\");c.log(\"clips \"+e.length);for(var n=0;n<e.length;n++){var t=e[n];t.st_processed||(t.st_processed=o(t))}},50)}function i(){c.log(\"init\");t(0)({root:document.getElementById(\"content\"),subtree:!0,callback:r});c.log(\"observe done\"),a.hideDownloadOn(\"/\"),r()}var a=(t(3),t(4)),c=app.newLogger(\"vimeo\"),s=null;e.exports={init:i,style:\"vimeo.com/style.less\",matches:function(e){return/(?:.*.)?vimeo.com/.test(e.hostname)}}},function(e,n,t){\"use strict\";e.exports=function(e,n,t){var o=e[n];e[n]=function(){return t&&t(o,this,arguments)}}},,,,,,,function(e,n,t){\"use strict\";function o(e){i[e]=t(26)(\"./\"+e+\"/index.js\")}var r=(t(4),app.newLogger(\"local-bundle\")),i=(t(21)(window.location.href),{});o(\"vimeo.com\"),o(\"instagram.com\"),o(\"palcomp3.com\"),o(\"pornhub.com\"),function(){for(var e in i){var n=i[e];n.matches(window.location)&&(r.log(\"site is \"+e),n.init(),n.style&&t(27)(\"./\"+n.style))}}()},function(e,n,t){\"use strict\";var o=app.newLogger(\"adblock\"),r={\"animeflv.net\":[\"yuhuads\"]};e.exports=function(e){function n(n){o.log(\"load provider \"+n),t(22)(\"./\"+n+\"/index.js\")(e)}e=e.toLowerCase();for(var i in r)if(-1!=e.indexOf(i)){var a=r[i];a.map(n)}}},function(e,n,t){function o(e){return t(r(e))}function r(e){var n=i[e];if(!(n+1))throw new Error(\"Cannot find module '\"+e+\"'.\");return n}var i={\"./yuhuads/index.js\":23};o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id=22},function(e,n,t){\"use strict\";var o=t(13);e.exports=function(){t(24),o(Element.prototype,\"appendChild\",function(e,n,t){var o=t.length>0&&t[0];if(!(o&&\"SCRIPT\"===o.tagName&&o.src&&o.src.indexOf(\"yuhuads\")))return e.apply(n,t)})}},function(e,n,t){var o=t(25);\"string\"==typeof o&&(o=[[e.i,o,\"\"]]);t(2)(o,{});o.locals&&(e.exports=o.locals)},function(e,n,t){n=e.exports=t(1)(),n.push([e.i,\"html > div:first-child {\\n  display: none;\\n}\\n\",\"\"])},function(e,n,t){function o(e){return t(r(e))}function r(e){var n=i[e];if(!(n+1))throw new Error(\"Cannot find module '\"+e+\"'.\");return n}var i={\"./adultsite/index.js\":8,\"./instagram.com/index.js\":9,\"./palcomp3.com/index.js\":10,\"./pornhub.com/index.js\":11,\"./vimeo.com/index.js\":12};o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id=26},function(e,n,t){function o(e){return t(r(e))}function r(e){var n=i[e];if(!(n+1))throw new Error(\"Cannot find module '\"+e+\"'.\");return n}var i={\"./adultsite\":8,\"./adultsite/\":8,\"./adultsite/index\":8,\"./adultsite/index.js\":8,\"./adultsite/style.less\":28,\"./instagram.com\":9,\"./instagram.com/\":9,\"./instagram.com/index\":9,\"./instagram.com/index.js\":9,\"./instagram.com/style.less\":30,\"./palcomp3.com\":10,\"./palcomp3.com/\":10,\"./palcomp3.com/index\":10,\"./palcomp3.com/index.js\":10,\"./palcomp3.com/style.less\":32,\"./pornhub.com\":11,\"./pornhub.com/\":11,\"./pornhub.com/index\":11,\"./pornhub.com/index.js\":11,\"./pornhub.com/style.less\":34,\"./vimeo.com\":12,\"./vimeo.com/\":12,\"./vimeo.com/index\":12,\"./vimeo.com/index.js\":12,\"./vimeo.com/style.less\":36};o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id=27},function(e,n,t){var o=t(29);\"string\"==typeof o&&(o=[[e.i,o,\"\"]]);t(2)(o,{});o.locals&&(e.exports=o.locals)},function(e,n,t){n=e.exports=t(1)(),n.push([e.i,'.xxxtube {\\n  position: absolute;\\n  bottom: 0px;\\n  left: 0px;\\n  height: 100%;\\n  width: 100%;\\n  z-index: 100;\\n}\\n.banner {\\n  position: fixed;\\n  bottom: 0px;\\n  left: 0px;\\n  height: 20%;\\n  width: 100%;\\n  z-index: 100;\\n}\\n.icon {\\n  height: 100%;\\n  width: 100%;\\n}\\n.close {\\n  /* still bad on picking color */\\n  background: orange;\\n  color: red;\\n  /* center text */\\n  line-height: 28px;\\n  text-align: center;\\n  height: 28px;\\n  width: 28px;\\n  font-size: 20px;\\n}\\n.close::before {\\n  content: \"\\\\2716\";\\n}\\n.close {\\n  left: 0px;\\n  top: 0px;\\n  position: absolute;\\n  z-index: 101;\\n}\\n',\"\"])},function(e,n,t){var o=t(31);\"string\"==typeof o&&(o=[[e.i,o,\"\"]]);t(2)(o,{});o.locals&&(e.exports=o.locals)},function(e,n,t){n=e.exports=t(1)(),n.push([e.i,\".st-download-btn {\\n  margin-left: 0.5em;\\n}\\n.st-download-btn img {\\n  display: inline-block;\\n  height: 26px;\\n}\\n._28zbs {\\n  display: none;\\n}\\n\",\"\"])},function(e,n,t){var o=t(33);\"string\"==typeof o&&(o=[[e.i,o,\"\"]]);t(2)(o,{});o.locals&&(e.exports=o.locals)},function(e,n,t){n=e.exports=t(1)(),n.push([e.i,'a.st-download-btn {\\n  margin-left: 0.5em;\\n  padding: 0!important;\\n  position: absolute;\\n  right: 10px;\\n  top: 5px;\\n  border-top: none;\\n}\\na.st-download-btn img {\\n  display: inline-block;\\n  height: 26px;\\n}\\na.st-download-btn:before {\\n  content: \"\" !important;\\n}\\nol#js-musicas-lista li {\\n  position: relative;\\n}\\nul.list li {\\n  position: relative;\\n}\\n',\"\"])},function(e,n,t){var o=t(35);\"string\"==typeof o&&(o=[[e.i,o,\"\"]]);t(2)(o,{});o.locals&&(e.exports=o.locals)},function(e,n,t){n=e.exports=t(1)(),n.push([e.i,\".adContainer {\\n  display: none;\\n}\\n\",\"\"])},function(e,n,t){var o=t(37);\"string\"==typeof o&&(o=[[e.i,o,\"\"]]);t(2)(o,{});o.locals&&(e.exports=o.locals)},function(e,n,t){n=e.exports=t(1)(),n.push([e.i,\".jumbo {\\n  display: none;\\n}\\n.player .controls.trailer {\\n  z-index: 99;\\n}\\n.player .controls.trailer .st-download-btn {\\n  margin: 0 0.9em;\\n}\\n.player .controls.trailer .play {\\n  margin-bottom: 0.9em;\\n}\\n.player .st-download-btn {\\n  height: 4em;\\n  width: 6.5em;\\n  margin-right: 0.9em;\\n}\\n.player .st-download-btn:active {\\n  background: #00adef;\\n}\\n.player .st-download-btn img {\\n  display: inline-block;\\n  height: 2em;\\n}\\n\",\"\"])}]);"),
    OKRU("okru", "!function(o){function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return o[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var e={};t.m=o,t.c=e,t.d=function(o,e,n){t.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:n})},t.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,\"a\",e),e},t.o=function(o,t){return Object.prototype.hasOwnProperty.call(o,t)},t.p=\"\",t(t.s=38)}({38:function(o,t,e){\"use strict\";function n(){return null!=document.querySelector(\"#comments-list\")}function i(){return document.querySelector(\"#content a[data-video]\")}function r(o){return\"LiveTvApp\"===o.providerName}function a(o){if(0!=o){if(!i())return void setTimeout(function(){a(o-1)},500);if(n()){var t=i();if(!t)return;var e=JSON.parse(t.getAttribute(\"data-video\"));if(console.log(e),r(e))return void app.setDownloadButtonState(\"HIDDEN\");app.setDownloadButtonState(\"ACTIVE\")}}}function u(){console.log(window.location.href),window.location.href!=c&&(app.setDownloadButtonState(\"HIDDEN\"),app.emit(\"okLocationChanged\",window.location.href,c),c=window.location.href),setTimeout(u,500)}app.listenUI(\"download.click\",!1,function(o){console.log(\"download click\");var t=i();if(t){var e=JSON.parse(t.getAttribute(\"data-video\")),n={};n.videoId=e.movieId.split(\"_\")[0],n.videoName=e.videoName,n.videoDuration=e.videoDuration,n.thumbnail=decodeURIComponent(e.videoPosterSrc.split(\"getImage?url=\")[1]);var r=\"https://ok.ru/videoembed/\"+n.videoId,a={url:r,extras:n};console.log(a),app.extract(a)}});var c=window.location.href;setTimeout(function(){u()},100),app.on(\"okLocationChanged\",function(){a(10)}),a(20)}});"),
    SNAPTUBE("snaptube", "!function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"\",e(e.s=39)}({39:function(t,e,n){\"use strict\";window.snaptube=app,\"function\"==typeof CustomEvent&&document.dispatchEvent&&document.dispatchEvent(new CustomEvent(\"bridge-ready\"),app),\"function\"==typeof onBridgeReady&&onBridgeReady(app)}});"),
    VK("vk", "!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,\"a\",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\"\",t(t.s=40)}({0:function(e,t,n){\"use strict\";function r(){}e.exports=function(e){var t;t=\"function\"!=typeof e.callback?r:e.callback;var n=e.root||document;if(\"undefined\"==typeof MutationObserver)return n.addEventListener(\"DOMNodeInserted\",function(e){t(e.target)}),null;var o=new MutationObserver(function(e){e.forEach(function(e){\"childList\"==e.type&&t(e)})});return o.observe(n,{childList:!0,subtree:e.subtree}),o}},1:function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push(\"@media \"+n[2]+\"{\"+n[1]+\"}\"):e.push(n[1])}return e.join(\"\")},e.i=function(t,n){\"string\"==typeof t&&(t=[[null,t,\"\"]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];\"number\"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];\"number\"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]=\"(\"+a[2]+\") and (\"+n+\")\"),e.push(a))}},e}},2:function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=f[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(l(r.parts[i],t));f[r.id]={id:r.id,refs:1,parts:a}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],a=o[1],u=o[2],l=o[3],c={css:a,media:u,sourceMap:l};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function o(e,t){var n=v(),r=b[b.length-1];if(\"top\"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),b.push(t);else{if(\"bottom\"!==e.insertAt)throw new Error(\"Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.\");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function a(e){var t=document.createElement(\"style\");return t.type=\"text/css\",o(e,t),t}function u(e){var t=document.createElement(\"link\");return t.rel=\"stylesheet\",o(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var l=g++;n=m||(m=a(t)),r=c.bind(null,n,l,!1),o=c.bind(null,n,l,!0)}else e.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(n=u(t),r=d.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=s.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?\"\":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function s(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute(\"media\",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+\" */\");var o=new Blob([n],{type:\"text/css\"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var f={},p=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},h=p(function(){return/msie [6-9]\\b/.test(self.navigator.userAgent.toLowerCase())}),v=p(function(){return document.head||document.getElementsByTagName(\"head\")[0]}),m=null,g=0,b=[];e.exports=function(e,t){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");t=t||{},void 0===t.singleton&&(t.singleton=h()),void 0===t.insertAt&&(t.insertAt=\"bottom\");var o=r(e);return n(o,t),function(e){for(var i=[],a=0;a<o.length;a++){var u=o[a],l=f[u.id];l.refs--,i.push(l)}if(e){n(r(e),t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete f[l.id]}}}};var w=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join(\"\\n\")}}()},3:function(e,t,n){\"use strict\";function r(e){return e=e||{},e.fill=e.fill||\"#fff\",'<svg class=\"download-icon\" viewBox=\"0 0 433.5 433.5\"><g><path d=\"M395.25,153h-102V0h-153v153h-102l178.5,178.5L395.25,153z M38.25,382.5v51h357v-51H38.25z\" fill=\"'+e.fill+'\"/></g></svg>'}e.exports={download:r}},4:function(e,t,n){\"use strict\";function r(e){for(var t=0;t<h.length;t++)if(h[t].test(e))return!0;return!1}function o(){var e=!1;return p.map(function(t){t instanceof RegExp?t.test(location.pathname)&&(e=!0):location.pathname==t&&(e=!0)}),e}function i(){var e=f.detect();return s.log(\"find \"+e.length+\" youtube players\"),1==e.length?c=e[0]:e.length>1&&r(href)&&f.addDownloadButtons(e),e.length}function a(){setTimeout(function(){app.emit(\"video-watcher-update\")},1)}function u(){if(c=null,o())return a(),app.setDownloadButtonState(\"HIDDEN\");var e=window.location.href;s.log(\"href: \"+e+\", hides: \"+p),app.testUrl(e,function(t){a(),o()||e==window.location.href&&(t.success||1==i()?app.setDownloadButtonState(\"ACTIVE\"):app.setDownloadButtonState(\"INACTIVE\"))})}function l(){1==i()&&u()}var c,s=app.newLogger(\"video-watcher\"),d=n(6),f=n(7),p=[],h=[/.*yovideo\\.in/,/.*yevideo.com/];app.callbacks.seq=(new Date).getTime()+parseInt(1e3*Math.random()),app.on(\"locationChanged\",u),app.setDownloadButtonState(\"HIDDEN\"),app.listenUI(\"download.click\",!1,function(){c?app.extractWithCurrentContext(c.src):app.extractCurrentPage()});var v=window.location.href;setTimeout(function(){u()},1),setInterval(function(){window.location.href!=v&&(app.emit(\"locationChanged\",window.location.href,v),v=window.location.href)},500);var m=d.makeName();n(0)({root:document.body,subtree:!0,callback:function(){d(m,l,10)}}),e.exports={update:u,hideDownloadOn:function(e){if(!Array.isArray(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);e=t}p=p.concat(e),u()}}},40:function(e,t,n){\"use strict\";function r(e){var t=void 0;if(audio){var n=audio.playlist().find(function(t){return t.id===e});t=n&&n.src}if(!t){var r=document.querySelector(\"#audio\"+e+\" input[type=hidden]\");r&&(t=r.value)}return t||\"\"}function o(e){if(e.querySelector(\".st-download-btn\"))return!0;var t=e.dataset.id,o=r(t),i=s.audioUnmaskSource(o);if(e.querySelector(\".ai_dur\")&&i){var a=document.createElement(\"BUTTON\"),u=document.createElement(\"DIV\");return a.className=\"st-download-btn rounded-box\",u.className=\"download_btn_wrapper\",a.innerHTML=n(3).download({fill:\"#426997\"}),e.parentNode.replaceChild(u,e),u.appendChild(e),u.appendChild(a),a.addEventListener(\"click\",function(){var n=$(e).find(\".ai_title\").text(),r=$(e).find(\".ai_artist\").text(),o=n;r&&r.length&&(o=r+\" - \"+n);var a={title:o,file:i};console.log(t,a);var u=\"http://vk.com/5b2a8728-d737-4f24-a37e-5202d067c7d1?data=\"+encodeURIComponent(JSON.stringify(a));app.extractWithCurrentContext(u)}),!0}return!1}function i(){l.log(\"detectVideoWall\"),c.test(location.pathname)&&(document.querySelector(\".video_view\")||document.querySelector(\".pi_medias a[href^=\\\\/video\"))&&(l.log(\"video wall\"),app.setDownloadButtonState(\"ACTIVE\"))}function a(){d&&(clearTimeout(d),d=null),d=setTimeout(function(){i(),l.log(\"process clips\");var e=document.querySelectorAll(\".audio_item\");l.log(\"clips \"+e.length);for(var t=0;t<e.length;t++){var n=e[t];n.st_processed||(n.st_processed=o(n))}},50)}var u=(n(3),n(4)),l=app.newLogger(\"vk\"),c=/\\/wall-?\\d+_\\d+/;n(41),n(43);var s={};!function(e,t){function n(e){if(~e.indexOf(\"audio_api_unavailable\")){var t=e.split(\"?extra=\")[1].split(\"#\"),n=r(t[1]);if(t=r(t[0]),!n||!t)return e;n=n.split(String.fromCharCode(9));for(var o,a,u=n.length;u--;){if(a=n[u].split(String.fromCharCode(11)),o=a.splice(0,1,t)[0],!i[o])return e;t=i[o].apply(null,a)}if(t&&\"http\"===t.substr(0,4))return t}return e}function r(e){if(!e||e.length%4==1)return!1;for(var t,n,r=0,i=0,a=\"\";n=e.charAt(i++);)~(n=o.indexOf(n))&&(t=r%4?64*t+n:n,r++%4)&&(a+=String.fromCharCode(255&t>>(-2*r&6)));return a}Object.defineProperty(t,\"__esModule\",{value:!0}),t.audioUnmaskSource=n;var o=\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN0PQRSTUVWXYZO123456789+/=\",i={v:function(e){return e.split(\"\").reverse().join(\"\")},r:function(e,t){e=e.split(\"\");for(var n,r=o+o,i=e.length;i--;)~(n=r.indexOf(e[i]))&&(e[i]=r.substr(n-t,1));return e.join(\"\")},x:function(e,t){var n=[];return t=t.charCodeAt(0),each(e.split(\"\"),function(e,r){n.push(String.fromCharCode(r.charCodeAt(0)^t))}),n.join(\"\")}}}(0,s);var d=null;!function(){l.log(\"init\"),n(0)({root:document.getElementById(\"vk_wrap\"),subtree:!0,callback:a}),l.log(\"observe done\"),u.hideDownloadOn(\"/\"),u.hideDownloadOn(c),app.on(\"video-watcher-update\",i),a()}()},41:function(e,t,n){\"use strict\";n(42)},42:function(e,t,n){\"use strict\";Array.prototype.find||Object.defineProperty(Array.prototype,\"find\",{value:function(e){if(null==this)throw new TypeError('\"this\" is null or not defined');var t=Object(this),n=t.length>>>0;if(\"function\"!=typeof e)throw new TypeError(\"predicate must be a function\");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}}})},43:function(e,t,n){var r=n(44);\"string\"==typeof r&&(r=[[e.i,r,\"\"]]);n(2)(r,{});r.locals&&(e.exports=r.locals)},44:function(e,t,n){t=e.exports=n(1)(),t.push([e.i,\".jumbo {\\n  display: none;\\n}\\n.player .controls.trailer {\\n  z-index: 99;\\n}\\n.player .controls.trailer .st-download-btn {\\n  margin: 0 0.9em;\\n}\\n.player .controls.trailer .play {\\n  margin-bottom: 0.9em;\\n}\\n.st-download-btn {\\n  height: 4em;\\n  width: 6.5em;\\n  margin-right: 0.9em;\\n  right: 0px;\\n  position: absolute;\\n  margin-top: -45px;\\n  width: 30px;\\n  height: 30px;\\n  border-width: 1.5px;\\n  border-radius: 50%;\\n  background: none;\\n  border-color: #426997;\\n  vertical-align: sub;\\n  line-height: 30px;\\n}\\n.st-download-btn img {\\n  display: inline-block;\\n  height: 2em;\\n}\\n.audio_item {\\n  position: relative !important;\\n  margin-right: 60px !important;\\n}\\n.download_btn_wrapper {\\n  display: inline-block;\\n}\\n\",\"\"])},6:function(e,t,n){\"use strict\";var r={},o=0;e.exports=function(e,t,n){var o=r[e];o?(o.cb=t,clearTimeout(o.timer)):r[e]=o={name:e,cb:t},o.timer=setTimeout(function(){delete r[o.name],o.cb()},n||0)},e.exports.makeName=function(){return\"defer\"+o++}},7:function(e,t,n){\"use strict\";function r(e,t){app.extractWithCurrentContext(t),i.log(\"download from embed youtube player \"+t)}function o(e,t){if(e.downloadButton)return e.downloadButton;var n=e.src,o=document.createElement(\"DIV\"),a=document.createElement(\"A\");return o.className=\"st-download-holder\",a.className=\"st-download-btn\",a.innerHTML=\"Download\",o.appendChild(a),e.parentElement.insertBefore(o,e.nextSibling),console.log(\"add button\",e,o),a.addEventListener(\"click\",function(){r(e,n)}),i.log(\"download button created for embed player \"+n),a}var i=app.newLogger(\"facebook\");e.exports={detect:function(){for(var e=document.getElementsByTagName(\"iframe\"),t=/.*\\.youtube.com\\/embed\\/.*/,n=[],r=0;r<e.length;r++){var o=e[r].src;t.test(o)&&n.push(e[r])}return n},addDownloadButtons:function(e){return e=e||this.detect(),e.map(o)}}}});"),
    YOUTUBE("youtube", "!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,\"a\",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\"\",t(t.s=45)}({0:function(e,t,n){\"use strict\";function o(){}e.exports=function(e){var t;t=\"function\"!=typeof e.callback?o:e.callback;var n=e.root||document;if(\"undefined\"==typeof MutationObserver)return n.addEventListener(\"DOMNodeInserted\",function(e){t(e.target)}),null;var r=new MutationObserver(function(e){e.forEach(function(e){\"childList\"==e.type&&t(e)})});return r.observe(n,{childList:!0,subtree:e.subtree}),r}},1:function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push(\"@media \"+n[2]+\"{\"+n[1]+\"}\"):e.push(n[1])}return e.join(\"\")},e.i=function(t,n){\"string\"==typeof t&&(t=[[null,t,\"\"]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];\"number\"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var s=t[r];\"number\"==typeof s[0]&&o[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]=\"(\"+s[2]+\") and (\"+n+\")\"),e.push(s))}},e}},2:function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=p[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(a(o.parts[i],t))}else{for(var s=[],i=0;i<o.parts.length;i++)s.push(a(o.parts[i],t));p[o.id]={id:o.id,refs:1,parts:s}}}}function o(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o],i=r[0],s=r[1],l=r[2],a=r[3],u={css:s,media:l,sourceMap:a};n[i]?n[i].parts.push(u):t.push(n[i]={id:i,parts:[u]})}return t}function r(e,t){var n=v(),o=m[m.length-1];if(\"top\"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),m.push(t);else{if(\"bottom\"!==e.insertAt)throw new Error(\"Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.\");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=m.indexOf(e);t>=0&&m.splice(t,1)}function s(e){var t=document.createElement(\"style\");return t.type=\"text/css\",r(e,t),t}function l(e){var t=document.createElement(\"link\");return t.rel=\"stylesheet\",r(e,t),t}function a(e,t){var n,o,r;if(t.singleton){var a=g++;n=y||(y=s(t)),o=u.bind(null,n,a,!1),r=u.bind(null,n,a,!0)}else e.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(n=l(t),o=d.bind(null,n),r=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),o=c.bind(null,n),r=function(){i(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function u(e,t,n,o){var r=n?\"\":o.css;if(e.styleSheet)e.styleSheet.cssText=b(t,r);else{var i=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function c(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute(\"media\",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,o=t.sourceMap;o&&(n+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+\" */\");var r=new Blob([n],{type:\"text/css\"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var p={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},h=f(function(){return/msie [6-9]\\b/.test(self.navigator.userAgent.toLowerCase())}),v=f(function(){return document.head||document.getElementsByTagName(\"head\")[0]}),y=null,g=0,m=[];e.exports=function(e,t){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");t=t||{},void 0===t.singleton&&(t.singleton=h()),void 0===t.insertAt&&(t.insertAt=\"bottom\");var r=o(e);return n(r,t),function(e){for(var i=[],s=0;s<r.length;s++){var l=r[s],a=p[l.id];a.refs--,i.push(a)}if(e){n(o(e),t)}for(var s=0;s<i.length;s++){var a=i[s];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete p[a.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join(\"\\n\")}}()},3:function(e,t,n){\"use strict\";function o(e){return e=e||{},e.fill=e.fill||\"#fff\",'<svg class=\"download-icon\" viewBox=\"0 0 433.5 433.5\"><g><path d=\"M395.25,153h-102V0h-153v153h-102l178.5,178.5L395.25,153z M38.25,382.5v51h357v-51H38.25z\" fill=\"'+e.fill+'\"/></g></svg>'}e.exports={download:o}},45:function(e,t,n){\"use strict\";function o(e){app.testUrl(e,function(t){e==window.location.href&&(u.log(!T(e,O)),T(e,O)||(t.success?app.setDownloadButtonState(\"ACTIVE\"):app.setDownloadButtonState(\"INACTIVE\")))})}function r(e){if(h){var t=window.location.href;if(D.test(t)){var n=e.querySelector(\"ul li > span > span\");if(!n)return k({action:\"findDOM\",list_url:U,list_type:B?\"youtube_webview_watch_later\":\"youtube_webview_playlists\",error:\"[!important] cannot find selector ul li > span > span\"}),app.setDownloadButtonState(\"INACTIVE\"),void(h=!1);var o=e.querySelector(\"ul\").parentNode.querySelector(\"div\");o?o.style.display=\"none\":k({action:\"findDOM\",list_url:U,list_type:B?\"youtube_webview_watch_later\":\"youtube_webview_playlists\",error:\"cannot find selector commonURL list DOM\"});var r=n?n.innerHTML.split(\" \")[0]:0,i=r.replace(/,/g,\"\"),l=e.querySelector(\"[data-index] > [id^=koya] > [id^=koya] button[onclick]\"),a=document.querySelector(\"#guide-overlay\"),y=(e.querySelector(\"[data-index] > [id^=koya] > [id^=koya]\"),e.querySelectorAll(\"[data-index] > [id^=koya] > div > div\"));if(l)var y=e.querySelector(\"[data-index] > [id^=koya] > div\").childNodes;y.length||k({action:\"findDOM\",list_url:U,list_type:B?\"youtube_webview_watch_later\":\"youtube_webview_playlists\",error:\"[!important] cannot find selector [data-index] > [id^=koya] > div > div\"});var g=y.length;L(e,g,i);for(var m=0;m<g;m++)x(y[m])&&A(y[m],m,1);if(a&&window.$scrollTo(a),l&&l.addEventListener(\"click\",V),g<v&&l)l.click();else if(g>v-1||g==i){if(h=!1,u.log(y.length),0==f.length)for(var m=0;m<y.length;m++)m<v?f.push(1):f.push(0);else{var w=y.length-f.length;if(w)for(var m=0;m<w;m++)f[f.length]=0}for(var _=f,m=0,E=0;E<y.length;E++){if(0==_[m]&&x(y[E])){var T=document.querySelector(\"#snaptube-video-\"+E);T.style.display=\"none\"}m++}d=[],p=[],f=[],c=S(y,d,p,f,_,1),L(e,c.length,i),C(e,i,y,s,1),app.setDownloadButtonState(\"ACTIVE\")}}else if(M.test(t)){var y=e.querySelectorAll(\"[data-index] > div div[data-context-item-id]\"),g=y.length;g||k({action:\"findDOM\",list_url:U,list_type:\"youtube_webview_history\",error:\"[!important] cannot find selector [data-index] > div div[data-context-item-id]\"}),L(e,g,g);for(var m=0;m<g;m++)x(y[m])&&A(y[m],m,2);var q=e.querySelector(\"[data-index]\").parentNode.parentNode.lastChild.querySelector(\"button[onclick]\"),I=document.querySelector(\"#guide-overlay\"),O=document.querySelector(\"[data-index]\").parentNode.parentNode.lastChild;if(I&&window.$scrollTo(I),q&&q.addEventListener(\"click\",V),g<v&&q)q.click();else if(g>v-1||g<v&&\"\"==O.innerHTML&&!q){if(h=!1,0==f.length)for(var m=0;m<y.length;m++)m<v?f.push(1):f.push(0);else{var w=y.length-f.length;if(w)for(var m=0;m<w;m++)f[f.length]=0}for(var _=f,m=0,E=0;E<y.length;E++){if(0==_[m]&&x(y[E])){var T=document.querySelector(\"#snaptube-video-\"+E);T.style.display=\"none\"}m++}d=[],p=[],f=[],c=S(y,d,p,f,_,2),L(e,c.length,y.length),C(e,y.length,y,s,1),app.setDownloadButtonState(\"ACTIVE\")}b.removeAllListeners(\"reachend\"),b.once(\"reachend\",function(){if(g<v){if(h=!1,0==f.length)for(var t=0;t<y.length;t++)t<v?f.push(1):f.push(0);else{var n=y.length-f.length;if(n)for(var t=0;t<n;t++)f[f.length]=0}for(var o=f,t=0,r=0;r<y.length;r++){if(0==o[t]&&x(y[r])){document.querySelector(\"#snaptube-video-\"+r).style.display=\"none\"}t++}d=[],p=[],f=[],c=S(y,d,p,f,o,2),L(e,c.length,y.length),C(e,y.length,y,s,1),app.setDownloadButtonState(\"ACTIVE\")}})}else if(N.test(t)){var j=e.querySelectorAll(\"[data-index] > div\"),R=j.length;R||k({action:\"findDOM\",list_url:U,list_type:\"youtube_webview_my_videos\",error:\"[!important] cannot find selector [data-index] > div\"}),L(e,R,R);for(var m=0;m<R;m++)A(j[m],m,2);var H=e.querySelector(\"[data-index]\").parentNode.parentNode.lastChild.querySelector(\"button[onclick]\"),P=document.querySelector(\"#guide-overlay\"),z=document.querySelector(\"[data-index]\").parentNode.parentNode.lastChild.childNodes[0];if(P&&window.$scrollTo(P),H&&H.addEventListener(\"click\",V),R<v&&H)H.click();else if(R>v-1||R<v&&\"\"==z.innerHTML&&!H){if(h=!1,0==f.length)for(var m=0;m<j.length;m++)m<v?f.push(1):f.push(0);else{var w=j.length-f.length;if(w)for(var m=0;m<w;m++)f[f.length]=0}for(var _=f,m=0,E=0;E<j.length;E++){if(0==_[m]&&x(j[E])){var T=document.querySelector(\"#snaptube-video-\"+E);T.style.display=\"none\"}m++}d=[],p=[],f=[],c=S(j,d,p,f,_,3),L(e,c.length,j.length),C(e,j.length,j,s,3),app.setDownloadButtonState(\"ACTIVE\")}b.removeAllListeners(\"reachend\"),b.once(\"reachend\",function(){if(R<v){if(h=!1,0==f.length)for(var t=0;t<j.length;t++)t<v?f.push(1):f.push(0);else{var n=j.length-f.length;if(n)for(var t=0;t<n;t++)f[f.length]=0}for(var o=f,t=0,r=0;r<j.length;r++){if(0==o[t]&&x(j[r])){document.querySelector(\"#snaptube-video-\"+r).style.display=\"none\"}t++}d=[],p=[],f=[],c=S(j,d,p,f,o,3),L(e,c.length,j.length),C(e,j.length,j,s,3),app.setDownloadButtonState(\"ACTIVE\")}})}}}function i(e){o(e),T(e,O)?(u.log(\"Batchdownload Support!\"),l(10)):u.log(\"Download Do not Support!\")}function s(e,t,n,o){return function(r){r.preventDefault(),\"block\"==e.style.display?(e.style.display=\"none\",c=_(app,c,d,p,t,0,f),L(n,c.length,o)):(e.style.display=\"block\",c=_(app,c,d,p,t,1,f),L(n,c.length,o))}}function l(e){var t=\"\";t=D.test(n)?B?\"youtube_webview_watch_later\":\"youtube_webview_playlists\":M.test(n)?\"youtube_webview_history\":\"youtube_webview_my_videos\",k({action:\"playlist_detect_start\",list_url:U,list_type:t});var n=window.location.href.replace(/\\/#/g,\"\");if(!T(n,O))return void u.log(\"Batchdownload Do not Support!\");var o=\"\";D.test(n)?o=\"#content ul li > span > span\":(M.test(n)||N.test(n))&&(o=\"[data-index]\",setTimeout(function(){document.querySelector(o)||k({action:\"findDOM\",list_url:U,list_type:t,error:\"[!important] cannot find selector\"+o})},3e3)),M.test(n)&&(e=30),function(e){function r(){i++;var r=document.querySelectorAll(o),l=!1;return(D.test(n)&&r.length>0||M.test(n)&&r.length>1||N.test(n)&&r.length>0)&&(l=!0),l&&T(window.location.href.replace(/\\/#/g,\"\"),O)?(u.log(\"has videos\"),k({action:\"playlist_detect_success\",list_url:U,list_type:t}),clearInterval(s),void app.getFeatureList(function(e){if(E(e.features)){v=200;for(var t=!1,n=e.features,o=0;o<n.length;o++)\"youtube-webview-playlist\"==n[o].name&&(v=n[o].config&&n[o].config.batch_size?n[o].config.batch_size:200,t=!(!n[o].config||!n[o].config.auto_multi_select)&&n[o].config.auto_multi_select);t?(app.setDownloadButtonState(\"LOADING\"),a()):app.setDownloadButtonState(\"MULTI_SELECT\")}else u.log(\"Your APP version do not support BatchDownLoad!\"),app.setDownloadButtonState(\"HIDDEN\")})):i<e?void u.log(\"check if has videos\"):(u.log(\"has no videos\"),void clearInterval(s))}var i=0,s=null;s=setInterval(r,500)}(e)}function a(){var e=document.querySelector(\"#content\");if(!e)return void window.setTimeout(a,200);p=[],c=[],d=[],h=!0,f=[],y=!1;var t=/\\_\\w+(?:\\s\\_\\w+){2,3}/;n(0)({root:e,subtree:!0,callback:function(n){t.test(n.target.className)||r(e)}});r(e)}var u=app.newLogger(\"youtube\"),c=[],d=[],p=[],f=[],h=!0,v=1,y=!1,g=!1;n(46);var m=(n(3),n(48)),b=new m,w=n(49),_=w.dealWithVideos,S=w.extractVideoData,L=w.createProgress,x=w.detectVideo,A=w.createMask,E=w.checkNativeBatchedDownloadSupport,T=w.ifBatchdownloadSupport,q=w.patchScrollTo,C=w.bindingEvent,k=w.trackEvent,D=/https:\\/\\/m\\.youtube\\.com\\/playlist\\?list=.+/,N=/https:\\/\\/m\\.youtube\\.com\\/my_videos$/,M=/https:\\/\\/m\\.youtube\\.com\\/feed\\/history$/,I=window.location.href,U=-1!==I.indexOf(\"?\")?I.split(\"?\")[0]:I,B=\"https://m.youtube.com/playlist?list=WL\"===I,O=[D,M,N];({getScrollTop:function(){var e=0,t=0;return document.body&&(e=document.body.scrollTop),document.documentElement&&(t=document.documentElement.scrollTop),e-t>0?e:t},getScrollHeight:function(){var e=0,t=0;return document.body&&(e=document.body.scrollHeight),document.documentElement&&(t=document.documentElement.scrollHeight),e-t>0?e:t},getClientHeight:function(){return\"CSS1Compat\"==document.compatMode?document.documentElement.clientHeight:document.body.clientHeight},onScrollEvent:function(){var e=this;window.onscroll=function(){e.getScrollTop()+e.getClientHeight()>=e.getScrollHeight()&&(console.log(\"reach end\"),y=!0,b.emit(\"reachend\"))}}}).onScrollEvent();var V=function(){h=!0};!function(){u.log(\"youtube init\"),function(e){var t=e.pushState;e.pushState=function(n){t.apply(e,arguments),\"function\"==typeof e.onpushstate&&e.onpushstate({state:n})}}(window.history),q(),history.onpushstate=function(e){e.state,i(window.location.href)},window.onpopstate=function(e){i(\"https://m.youtube.com\"+e.state.o)},l(10),o(window.location.href)}(),app.listenUI(\"download.click\",!1,function(e){if(e.success&&\"multi\"==JSON.parse(e.data).button&&(app.setDownloadButtonState(\"LOADING\"),a()),e.success&&\"single\"==JSON.parse(e.data).button){var t=window.location.href;if(T(t,O)){var n=window.location.href,o=\"\",r=\"\";D.test(n)?(o=document.querySelector(\"#content\").querySelectorAll(\"h2\")[0].innerText||\"no title\",r=\"https://m.youtube.com/playlist?list=WL\"==n?\"youtube_webview_watch_later\":\"youtube_webview_playlists\"):M.test(n)?(o=\"Watch History\",r=\"youtube_webview_history\"):N.test(n)&&(o=\"My Videos\",r=\"youtube_webview_my_videos\");var i={};i.title=o,i.url=n,i.pos=r,i.playlistItems=c,app.getFeatureList(function(e){if(E(e.features)){v=200;for(var t=e.features,n=0;n<t.length;n++)\"youtube-webview-playlist\"==t[n].name&&(g=!(!t[n].config||!t[n].config.request_list_info));u.log(\"version big than 423 = \",g),g?app.sendYouTubePlaylist(i):app.sendYouTubePlaylist(c)}})}else app.extractCurrentPage(t)}})},46:function(e,t,n){var o=n(47);\"string\"==typeof o&&(o=[[e.i,o,\"\"]]);n(2)(o,{});o.locals&&(e.exports=o.locals)},47:function(e,t,n){t=e.exports=n(1)(),t.push([e.i,\"body {\\n  scroll-behavior: smooth;\\n}\\n.snaptube_progress {\\n  text-align: center;\\n  position: fixed;\\n  bottom: 84px;\\n  right: 16px;\\n  font-size: 12px;\\n  background: #e8473c;\\n  color: #ffffff;\\n  padding: 2px 2px;\\n  border-radius: 11px;\\n  min-width: 56px;\\n  height: 20px;\\n  line-height: 20px;\\n}\\n.mask {\\n  position: absolute;\\n  width: 100%;\\n  height: 100%;\\n  top: 0;\\n  left: 0;\\n  background: rgba(197, 224, 239, 0.5);\\n}\\n.selectedIcon {\\n  background-size: cover;\\n  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAZlBMVEUAAADpTj7pTz7wVUbpTj7pTz3oTz7oTz3pTj7pTz7pTj/pUT7pUELzUUboTj3////+/PzoVET50c3wi4Dugnb62dXpWEj++PfscWP4zMf86+n86Ob3w731uLL1t7DxlIrqYVLpWUlDo/xjAAAADnRSTlMAgPML6NnTv6qlclIjFjy9diYAAAEOSURBVEjH3ZXbcsMgDESLfCHYsErbNHZ67///ZF8YM0bIxOO37BvM2WEZhPT0mPKDsx1RZ93g63QwPZDUm7CJN4aQiUyj82OLgtpR4w0UmXKcE1SdSrEirzhqeeqpRlQ0ZhdoUVHbyEA7QgXSwd85vmC474DXib/kEb3On5mnWFeJ95s8f8ZFqt1hk395jqthMbi7eLjFYOPOfPu+6jzsYujizgfz21Xl0S0GijvvnBySBwnD5ZwckgeJSMmx4mUki8yx5uWlHTLHT4mHyx8uOXjNi4fzkA7Jw4viS44S36vlfZn4JnkY/QP9zZCisPeL7m4Cx9pMvZEdb5X1Zry/3R8fKPrIOj4U9bH7kPoH20VFngZ8ByYAAAAASUVORK5CYII=);\\n}\\n\",\"\"])},48:function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return\"function\"==typeof e}function r(e){return\"number\"==typeof e}function i(e){return\"object\"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError(\"n must be a positive number\");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,l,a,u;if(this._events||(this._events={}),\"error\"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified \"error\" event. ('+t+\")\");throw c.context=t,c}if(n=this._events[e],s(n))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:l=Array.prototype.slice.call(arguments,1),n.apply(this,l)}else if(i(n))for(l=Array.prototype.slice.call(arguments,1),u=n.slice(),r=u.length,a=0;a<r;a++)u[a].apply(this,l);return!0},n.prototype.addListener=function(e,t){var r;if(!o(t))throw TypeError(\"listener must be a function\");return this._events||(this._events={}),this._events.newListener&&this.emit(\"newListener\",e,o(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(r=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[e].length),\"function\"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError(\"listener must be a function\");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,s,l;if(!o(t))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[e])return this;if(n=this._events[e],s=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit(\"removeListener\",e,t);else if(i(n)){for(l=s;l-- >0;)if(n[l]===t||n[l].listener&&n[l].listener===t){r=l;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit(\"removeListener\",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)\"removeListener\"!==t&&this.removeAllListeners(t);return this.removeAllListeners(\"removeListener\"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},49:function(e,t,n){\"use strict\";function o(e){return e.innerText||g(e)}function r(e,t){for(var n=0,o=0;o<e;o++)t[o].invaliate||n++;return n}function i(e,t,n,o,i,s,l){var a=r(i,o);l[a]=s?l[a]+1:l[a]-1;for(var u=[],i=0;i<l.length;i++)l[i]&&u.push(n[i]);return 0==u.length?e.setDownloadButtonState(\"INACTIVE\"):1==u.length&&0==t.length&&e.setDownloadButtonState(\"ACTIVE\"),u}function s(e,t,n,o,r){for(var i=0;i<n.length;i++)3==r||d(n[i])?function(r){var i=n[r],s=\"snaptube-video-\"+r,l=i.querySelector(\"#\"+s),a=o(l,r,e,t),u=function(e){this.addEventListener(\"touchend\",a)},c=function(e){this.removeEventListener(\"touchend\",a)};n[r].eventList||(n[r].eventList={touchstart:!1,touchmove:!1}),n[r].eventList.touchstart||(n[r].addEventListener(\"touchstart\",u,!1),n[r].eventList.touchstart=!0),n[r].eventList.touchmove||(n[r].addEventListener(\"touchmove\",c,!1),n[r].eventList.touchmove=!0)}(i):n[i].addEventListener(\"touchend\",function(e){e.preventDefault()})}function l(e,t,n,r,i,s){for(var l=[],u=0,c=0;c<e.length;c++){if(3==s||d(e[c])){1==i[u]?r.push(i[u]):0==i[u]?r.push(i[u]):r.push(1);var p={},f=e[c];p.source=f.querySelector(\"a\").href,p.thumbnailUrl=f.querySelector(\"img\").src;var h=\"\";3==s?(h=f.querySelector(\"a > div > div\").lastChild?o(f.querySelector(\"a > div > div\").lastChild):\"\",p.durationInSecond=a(h)):(h=f.querySelector(\"span[aria-label] span\")?o(f.querySelector(\"span[aria-label] span\")):\"\",p.durationInSecond=a(h)),1==s?p.title=o(f.querySelector(\"h4 div span span\")):2==s?p.title=o(f.querySelector(\"a > div\").lastChild.querySelectorAll(\"span > span\")[0]):3==s&&(p.title=o(f.querySelector(\"h4\"))),0!=i[u]&&l.push(p),t.push(p),n.push(p)}else n.push({invaliate:!0});u++}return l}function a(e){var t=0;if(e)for(var n=e.split(\":\").reverse(),o=0;o<n.length;o++)t+=n[o]*Math.pow(60,o);return t}function u(e){for(var t=0;t<e.length;t++)d(e[t])&&fileterVideos.push(e[t]);return fileterVideos}function c(e,t,n){var r=e.querySelector(\"#snaptube-progress\");if(r){var i=o(r).split(\"/\");t==i[0]&&n==i[1]||(r.innerText=t+\"/\"+n)}else{var s=document.createElement(\"DIV\");s.className=\"snaptube_progress\",s.setAttribute(\"id\",\"snaptube-progress\"),s.innerText=t+\"/\"+n,e.appendChild(s)}}function d(e){if(!e.querySelector(\"img\"))return!1;var t=\"https://s.ytimg.com/yts/img/no_thumbnail-vfl4t3-4R.jpg\"==e.querySelector(\"img\").src,n=e.querySelector(\"span[aria-label] span\"),r=n?o(n):\"0\",i=!1;a(r)<1&&(i=!0);var s=e.querySelector(\"h4\")?e.querySelector(\"h4\"):e.querySelector(\"a > div\").lastChild.querySelectorAll(\"span > span\")[0],l=s?o(s).replace(/\\s+/g,\"\"):\"\",u=!1;(!l||\"[\"==l[0]&&\"]\"==l[l.length-1])&&(u=!0);var c=e.querySelector(\"button[aria-label]\"),d=!1;return c||(d=!0),!(t||u||i||d)}function p(e){for(var t=0;t<e.length;t++)if(\"youtube-webview-playlist\"==e[t].name)return!0;return!1}function f(e,t,n){var o=\"snaptube-video-\"+t,r=e.querySelector(\"#\"+o),i=null;1==n?i=e.parentNode.parentNode.parentNode.parentNode:2==n?i=e.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode:3==n&&(i=e.parentNode.parentNode);var s=window.getComputedStyle(i),l=e.querySelector(\"img\").offsetWidth,a=e.querySelector(\"div > div\").firstChild||e;if(!r){if(1===n)var u=a.offsetHeight,c=a.offsetWidth;else var u=e.offsetHeight,c=e.offsetWidth;var d=s.width,p=document.createElement(\"DIV\");p.className=\"mask\",p.style.height=u,p.style.width=s.width,1==n?p.style.left=\"-\"+s.paddingLeft:2==n&&(p.style.left=\"-\"+(parseInt(d.replace(/[A-Za-z]/g,\"\"))-c)/2+\"px\"),p.style.display=\"block\",p.setAttribute(\"id\",\"snaptube-video-\"+t);var f=document.createElement(\"DIV\");f.style.width=f.style.height=\"20px\",f.style.position=\"absolute\",f.style.borderRadius=\"50%\";var h=\"\";1==n?h=s.paddingLeft.replace(/[^\\d]/g,\"\"):2==n&&(h=(parseInt(d.replace(/[A-Za-z]/g,\"\"))-c)/2),f.style.left=l/2+parseInt(h)-10+\"px\",f.style.top=u/2-10+\"px\",f.style.color=\"#ffffff\",f.style.textAlign=\"center\",f.style.lineHeight=\"20px\",f.className=\"selectedIcon\",p.appendChild(f),1===n?a.appendChild(p):e.appendChild(p)}}function h(e,t){return t.some(function(t,n,o){return t.test(e.replace(/\\/#/g,\"\"))})}function v(){!function(e){var t,n=null,o=0;e.onscroll=function(){o=document.documentElement.scrollTop||document.body.scrollTop};var r=function(){var e=0,t=0;return document.body&&(e=document.body.scrollTop),document.documentElement&&(t=document.documentElement.scrollTop),e-t>0?e:t},i=function(){var e=0,t=0;return document.body&&(e=document.body.scrollHeight),document.documentElement&&(t=document.documentElement.scrollHeight),e-t>0?e:t},s=function(){return\"CSS1Compat\"==document.compatMode?document.documentElement.clientHeight:document.body.clientHeight};t=function(e){clearInterval(n),n=setInterval(function(){var t=o,l=(e.offsetTop-t)/20;if(l=l>0?Math.ceil(l):Math.floor(l),r()+s()>=i())return clearInterval(n),!0;document.body.scrollTop=o+l},30)},e.$scrollTo=t}(window)}function y(e){var t=e||{};t.event=\"YouTubeWebviewPlaylist\",app.trackEvent&&app.trackEvent(t)}var g=n(50);e.exports={dealWithVideos:i,extractVideoData:l,getTimeInSeconds:a,filter:u,createProgress:c,detectVideo:d,createMask:f,checkNativeBatchedDownloadSupport:p,ifBatchdownloadSupport:h,patchScrollTo:v,bindingEvent:s,trackEvent:y}},50:function(e,t){e.exports=function(e){if(e.innerText)return e.innerText;if(!window.getSelection)return\"ERROR: UUPS `window.getSelection` is not available.\";for(var t,n=window.getSelection(),o=[],r=0;r<n.rangeCount;r++)o[r]=n.getRangeAt(r);n.removeAllRanges(),n.selectAllChildren(e),t=n.toString(),n.removeAllRanges();for(var r=0;r<o.length;r++)n.addRange(o[r]);return t}}});");
    
    private final String mCode;
    private final String mName;

    SiteInjectCode(String str, String str2) {
        this.mName = str;
        this.mCode = str2;
    }

    public String getName() {
        return this.mName;
    }

    public String getCode() {
        return this.mCode;
    }
}