-
Notifications
You must be signed in to change notification settings - Fork 211
/
cocomanhua.js
12 lines (12 loc) · 86.8 KB
/
cocomanhua.js
1
2
3
4
5
6
7
8
9
10
11
12
/** content-script - v1.1.23 - 12/14/2020 */
(function(){function d(a){"undefined"!==typeof console&&console.error&&(console.error("Error in AdGuard script"),console.error(a))}var h,l=document.currentScript;if(!l){var m=document.getElementsByTagName("script");l=m[m.length-1]}h=l;
var n=h.parentNode,p=window.MutationObserver||window.WebKitMutationObserver,q=navigator.userAgent,r=-1!==q.indexOf("MSIE")||-1<q.indexOf("Trident/"),u=function(){var a={createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}};return function(){try{return!eval(window.trustedTypes.emptyScript)}catch(b){return!1}}()?window.trustedTypes.createPolicy("AGPolicy",a):a}();var v="2e5d9052884a4799911fe4332ba",w={"isSubscriptionIntercept":true,"isUserscriptIntercept":true},x={b:null,h:null,c:null,g:"var AG_onLoad=function(func){if(document.readyState===\"complete\"||document.readyState===\"interactive\")func();else if(document.addEventListener)document.addEventListener(\"DOMContentLoaded\",func);else if(document.attachEvent)document.attachEvent(\"DOMContentLoaded\",func)};\nvar AG_removeElementById = function(id) { var element = document.getElementById(id); if (element && element.parentNode) { element.parentNode.removeChild(element); }};\nvar AG_removeElementBySelector = function(selector) { if (!document.querySelectorAll) { return; } var nodes = document.querySelectorAll(selector); if (nodes) { for (var i = 0; i < nodes.length; i++) { if (nodes[i] && nodes[i].parentNode) { nodes[i].parentNode.removeChild(nodes[i]); } } } };\nvar AG_each = function(selector, fn) { if (!document.querySelectorAll) return; var elements = document.querySelectorAll(selector); for (var i = 0; i < elements.length; i++) { fn(elements[i]); }; };\nvar AG_removeParent = function(el, fn) { while (el && el.parentNode) { if (fn(el)) { el.parentNode.removeChild(el); return; } el = el.parentNode; } };\nvar AG_removeCookie=function(a){var e=\/.\/;\/^\\\/.+\\\/$\/.test(a)?e=new RegExp(a.slice(1,-1)):\"\"!==a&&(e=new RegExp(a.replace(\/[.*+?^${}()|[\\]\\\\]\/g,\"\\\\$&\")));a=function(){for(var a=document.cookie.split(\";\"),g=a.length;g--;){cookieStr=a[g];var d=cookieStr.indexOf(\"=\");if(-1!==d&&(d=cookieStr.slice(0,d).trim(),e.test(d)))for(var h=document.location.hostname.split(\".\"),f=0;f<h.length-1;f++){var b=h.slice(f).join(\".\");if(b){var c=d+\"=\",k=\"; domain=\"+b;b=\"; domain=.\"+b;document.cookie=c+\"; expires=Thu, 01 Jan 1970 00:00:00 GMT\";document.cookie=c+k+\"; expires=Thu, 01 Jan 1970 00:00:00 GMT\";document.cookie=c+b+\"; expires=Thu, 01 Jan 1970 00:00:00 GMT\";document.cookie=c+\"; path=\/; expires=Thu, 01 Jan 1970 00:00:00 GMT\";document.cookie=c+k+\"; path=\/; expires=Thu, 01 Jan 1970 00:00:00 GMT\";document.cookie=c+b+\"; path=\/; expires=Thu, 01 Jan 1970 00:00:00 GMT\"}}}};a();window.addEventListener(\"beforeunload\",a)};\nvar AG_defineProperty=function(){var p,q=Object.defineProperty;if(\"function\"==typeof WeakMap)p=WeakMap;else{var r=0,t=function(){this.a=(r+=Math.random()).toString()};t.prototype.set=function(a,b){var d=a[this.a];d&&d[0]===a?d[1]=b:q(a,this.a,{value:[a,b],writable:!0});return this};t.prototype.get=function(a){var b;return(b=a[this.a])&&b[0]===a?b[1]:void 0};t.prototype.has=function(a){var b=a[this.a];return b?b[0]===a:!1};p=t}function u(a){this.b=a;this.h=Object.create(null)}function v(a,b,d,e){this.a=a;this.i=b;this.c=d;this.f=e}function w(){this.g=\/^([^\\\\\\.]|\\\\.)*?\\.\/;this.j=\/\\\\(.)\/g;this.a=new p}function x(a,b){var d=b.f;if(d&&!(\"beforeGet\"in d||\"beforeSet\"in d))return z(d);var e={get:function(){var c=b.f;c&&c.beforeGet&&c.beforeGet.call(this,b.a.b);a:if(c=b.g)c=A(c)?c.value:c.get?c.get.call(this):void 0;else{c=b.a.b;if(b.i in c&&(c=B(c),null!==c)){var d=C.call(c,b.i);c=d?d.call(this):c[b.i];break a}c=void 0}(this===b.a.b||D.call(b.a.b,this))&&E(a,c,b.c);return c},set:function(c){if(this===b.a.b||D.call(b.a.b,this)){b.f&&b.f.beforeSet&&(c=b.f.beforeSet.call(this,c,this));var d=b.g;d&&A(d)&&d.value===c?c=!0:(d=F(b,c,this),G(c)&&(c=H(a,c),I(a,c,b.c)),c=d)}else c=F(b,c,this);return c}};d&&J(d,e,K);return e}function I(a,b,d){for(var e in d.h){var c=d.h[e];if(b.h[e]){var h=a,g=b.h[e],k=c;!k.f||g.f||\"undefined\"===typeof g.a.b||g.g||(g.g=z(k.f));g.c&&k.c&&g.c!==k.c&&I(h,g.c,k.c)}else{g=h=void 0;k=a;var f=b,l=c.i,m=\"undefined\"!==typeof f.b,y=!1;m&&(g=L(f.b,l))&&!g.configurable&&(y=!0,h=f.b[l]);var n=y?H(k,h):new u(c.c.b);I(k,n,c.c);n=new v(f,l,n,c.f);f.h[l]=n;m&&(n.g=g,m=x(k,n),y?E(k,h,c.c):(q(f.b,l,m),g&&A(g)&&(M(m,g.value,f.b),E(k,g.value,c.c))))}}}function E(a,b,d){G(b)&&(b=H(a,b),I(a,b,d))}function F(a,b,d){var e=a.g;if(!e){e=B(a.a.b);if(null!==e&&(e=N.call(e,a.i)))return e.call(d,b);if(!O(a.a.b))return!1;a.g={value:b,configurable:!0,writable:!0,enumerable:!0};return!0}return M(e,b,d)}function H(a,b){var d=a.a.get(b);d||(d=new u(b),a.a.set(b,d));return d}function A(a){return\"undefined\"!==typeof a.writable}function J(a,b,d){for(var e=0,c=d.length;e<c;e++){var h=d[e];h in a&&(b[h]=a[h])}}function z(a){if(a){var b={};J(a,b,P);return b}}function M(a,b,d){if(A(a))return a.writable?(a.value=b,!0):!1;if(!a.set)return!1;a.set.call(d,b);return!0}var P=\"configurable enumerable value get set writable\".split(\" \"),K=P.slice(0,2),L=Object.getOwnPropertyDescriptor,O=Object.isExtensible,B=Object.getPrototypeOf,D=Object.prototype.isPrototypeOf,C=Object.prototype.__lookupGetter__||function(a){return(a=Q(this,a))&&a.get?a.get:void 0},N=Object.prototype.__lookupSetter__||function(a){return(a=Q(this,a))&&a.set?a.set:void 0};function Q(a,b){if(b in a){for(;!w.hasOwnProperty.call(a,b);)a=B(a);return L(a,b)}}function G(a){var b=typeof a;return\"function\"===b||\"object\"===b&&null!==a?!0:!1}var R;return function(a,b,d){R||(R=new w);var e=R;d=d||window;var c=new u;a+=\".\";var h=c||new u;for(var g=e.g,k=e.j,f,l,m;a;){f=g.exec(a);if(null===f)throw 1;f=f[0].length;l=a.slice(0,f-1).replace(k,\"$1\");a=a.slice(f);(f=h.h[l])?m=f.c:(m=new u,f=new v(h,l,m),h.h[l]=f);h=m}if(!f)throw 1;a=f;a.f=b;E(e,d,c)};}();\nvar AG_abortOnPropertyWrite=function(a,b){var c=Math.random().toString(36).substr(2,8);AG_defineProperty(a,{beforeSet:function(){b&&console.warn(\"AdGuard aborted property write: \"+a);throw new ReferenceError(c);}});var d=window.onerror;window.onerror=function(e){if(\"string\"===typeof e&&-1!==e.indexOf(c))return b&&console.warn(\"AdGuard has caught window.onerror: \"+a),!0;if(d instanceof Function)return d.apply(this,arguments)}};\nvar AG_abortOnPropertyRead=function(a,b){var c=Math.random().toString(36).substr(2,8);AG_defineProperty(a,{beforeGet:function(){b&&console.warn(\"AdGuard aborted property read: \"+a);throw new ReferenceError(c);}});var d=window.onerror;window.onerror=function(e){if(\"string\"===typeof e&&-1!==e.indexOf(c))return b&&console.warn(\"AdGuard has caught window.onerror: \"+a),!0;if(d instanceof Function)return d.apply(this,arguments)}};\nvar AG_abortInlineScript=function(g,b,c){var d=function(){if(\"currentScript\"in document)return document.currentScript;var a=document.getElementsByTagName(\"script\");return a[a.length-1]},e=Math.random().toString(36).substr(2,8),h=d();AG_defineProperty(b,{beforeGet:function(){var a=d();if(a instanceof HTMLScriptElement&&a!==h&&\"\"===a.src&&g.test(a.textContent))throw c&&console.warn(\"AdGuard aborted execution of an inline script\"),new ReferenceError(e);}});var f=window.onerror;window.onerror=function(a){if(\"string\"===typeof a&&-1!==a.indexOf(e))return c&&console.warn(\"AdGuard has caught window.onerror: \"+b),!0;if(f instanceof Function)return f.apply(this,arguments)}};\nvar AG_setConstant=function(e,a){if(\"undefined\"===a)a=void 0;else if(\"false\"===a)a=!1;else if(\"true\"===a)a=!0;else if(\"noopFunc\"===a)a=function(){};else if(\"trueFunc\"===a)a=function(){return!0};else if(\"falseFunc\"===a)a=function(){return!1};else if(\/^\\d+$\/.test(a)){if(a=parseFloat(a),isNaN(a)||32767<Math.abs(a))return}else return;var b=!1;AG_defineProperty(e,{get:function(){return a},set:function(c){if(b)var d=!0;else void 0!==c&&void 0!==a&&typeof c!==typeof a&&(b=!0),d=b;d&&(a=c)}})};\n(function(source, args){function preventAddEventListener(source, eventSearch, funcSearch) {var eventSearchRegexp = eventSearch ? toRegExp(eventSearch) : toRegExp('\/.?\/');var funcSearchRegexp = funcSearch ? toRegExp(funcSearch) : toRegExp('\/.?\/');var nativeAddEventListener = window.EventTarget.prototype.addEventListener;function addEventListenerWrapper(eventName, callback) {var funcToCheck = callback;if (callback && typeof callback === 'function') {funcToCheck = callback.toString();}if (eventSearchRegexp.test(eventName.toString()) && funcSearchRegexp.test(funcToCheck)) {hit(source);return undefined;}for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {args[_key - 2] = arguments[_key];}return nativeAddEventListener.apply(this, [eventName, callback].concat(args));}window.EventTarget.prototype.addEventListener = addEventListenerWrapper;}function toRegExp(str) {if (str[0] === '\/' && str[str.length - 1] === '\/') {return new RegExp(str.slice(1, -1));}var escaped = str.replace(\/[.*+?^${}()|[\\]\\\\]\/g, '\\\\$&');return new RegExp(escaped);}function hit(source, message) {if (source.verbose !== true) {return;}try {var log = console.log.bind(console);var trace = console.trace.bind(console);var prefix = source.ruleText || '';if (source.domainName) {var AG_SCRIPTLET_MARKER = '#%#\/\/';var UBO_SCRIPTLET_MARKER = '##+js';var ruleStartIndex;if (source.ruleText.indexOf(AG_SCRIPTLET_MARKER) > -1) {ruleStartIndex = source.ruleText.indexOf(AG_SCRIPTLET_MARKER);} else if (source.ruleText.indexOf(UBO_SCRIPTLET_MARKER) > -1) {ruleStartIndex = source.ruleText.indexOf(UBO_SCRIPTLET_MARKER);}var rulePart = source.ruleText.slice(ruleStartIndex);prefix = \"\".concat(source.domainName).concat(rulePart);}var LOG_MARKER = 'log: ';if (message) {if (message.indexOf(LOG_MARKER) === -1) {log(\"\".concat(prefix, \" message:\\n\").concat(message));} else {log(message.slice(LOG_MARKER.length));}}log(\"\".concat(prefix, \" trace start\"));if (trace) {trace();}log(\"\".concat(prefix, \" trace end\"));} catch (e) {}if (typeof window.__debug === 'function') {window.__debug(source);}};const updatedArgs = args ? [].concat(source).concat(args) : [source];preventAddEventListener.apply(this, updatedArgs);})({name:\"prevent-addEventListener\",engine:\"corelibs\",version:\"1.7.189\",verbose:false},[\"click\",\"popMagic\",]);\nnavigator.getBattery = undefined;\nvar _gaq = []; var _gat = { _getTracker: function() { return { _initData: function(){}, _trackPageview: function(){}, _trackEvent: function(){}, _setAllowLinker: function() {}, _setCustomVar: function() {} } }, _createTracker: function() { return this._getTracker(); }, _anonymizeIp: function() {} };\nfunction urchinTracker() {};\n(function(source, args){function setConstant(source, property, value, stack) {var stackRegexp = stack ? toRegExp(stack) : toRegExp('\/.?\/');if (!property || !matchStackTrace(stackRegexp, new Error().stack)) {return;}var nativeIsNaN = Number.isNaN || window.isNaN;var emptyArr = noopArray();var emptyObj = noopObject();var constantValue;if (value === 'undefined') {constantValue = undefined;} else if (value === 'false') {constantValue = false;} else if (value === 'true') {constantValue = true;} else if (value === 'null') {constantValue = null;} else if (value === 'emptyArr') {constantValue = emptyArr;} else if (value === 'emptyObj') {constantValue = emptyObj;} else if (value === 'noopFunc') {constantValue = noopFunc;} else if (value === 'trueFunc') {constantValue = trueFunc;} else if (value === 'falseFunc') {constantValue = falseFunc;} else if (\/^\\d+$\/.test(value)) {constantValue = parseFloat(value);if (nativeIsNaN(constantValue)) {return;}if (Math.abs(constantValue) > 0x7FFF) {return;}} else if (value === '-1') {constantValue = -1;} else if (value === '') {constantValue = '';} else {return;}var canceled = false;var mustCancel = function mustCancel(value) {if (canceled) {return canceled;}canceled = value !== undefined && constantValue !== undefined && typeof value !== typeof constantValue;return canceled;};var setChainPropAccess = function setChainPropAccess(owner, property) {var chainInfo = getPropertyInChain(owner, property);var base = chainInfo.base;var prop = chainInfo.prop,chain = chainInfo.chain;if (base instanceof Object === false && base === null) {if (source.verbose) {var props = property.split('.');var propIndex = props.indexOf(prop);var baseName = props[propIndex - 1];console.log(\"set-constant failed because the property '\".concat(baseName, \"' does not exist\"));}return;}if (chain) {var setter = function setter(a) {base = a;if (a instanceof Object) {setChainPropAccess(a, chain);}};Object.defineProperty(owner, prop, {get: function get() {return base;},set: setter});return;}if (mustCancel(base[prop])) {return;}hit(source);setPropertyAccess(base, prop, {get: function get() {return constantValue;},set: function set(a) {if (mustCancel(a)) {constantValue = a;}}});};setChainPropAccess(window, property);}function getPropertyInChain(base, chain) {var pos = chain.indexOf('.');if (pos === -1) {return {base: base,prop: chain};}var prop = chain.slice(0, pos);var nextBase = base[prop];chain = chain.slice(pos + 1);if (nextBase !== undefined) {return getPropertyInChain(nextBase, chain);}Object.defineProperty(base, prop, {configurable: true});return {base: nextBase,prop: prop,chain: chain};}function setPropertyAccess(object, property, descriptor) {var currentDescriptor = Object.getOwnPropertyDescriptor(object, property);if (currentDescriptor && !currentDescriptor.configurable) {return false;}Object.defineProperty(object, property, descriptor);return true;}function toRegExp(str) {if (str[0] === '\/' && str[str.length - 1] === '\/') {return new RegExp(str.slice(1, -1));}var escaped = str.replace(\/[.*+?^${}()|[\\]\\\\]\/g, '\\\\$&');return new RegExp(escaped);}function matchStackTrace(stackRegexp, stackTrace) {var refinedStackTrace = stackTrace.split('\\n').slice(2).map(function (line) {return line.trim();}).join('\\n');return stackRegexp.test(refinedStackTrace);}function hit(source, message) {if (source.verbose !== true) {return;}try {var log = console.log.bind(console);var trace = console.trace.bind(console);var prefix = source.ruleText || '';if (source.domainName) {var AG_SCRIPTLET_MARKER = '#%#\/\/';var UBO_SCRIPTLET_MARKER = '##+js';var ruleStartIndex;if (source.ruleText.indexOf(AG_SCRIPTLET_MARKER) > -1) {ruleStartIndex = source.ruleText.indexOf(AG_SCRIPTLET_MARKER);} else if (source.ruleText.indexOf(UBO_SCRIPTLET_MARKER) > -1) {ruleStartIndex = source.ruleText.indexOf(UBO_SCRIPTLET_MARKER);}var rulePart = source.ruleText.slice(ruleStartIndex);prefix = \"\".concat(source.domainName).concat(rulePart);}var LOG_MARKER = 'log: ';if (message) {if (message.indexOf(LOG_MARKER) === -1) {log(\"\".concat(prefix, \" message:\\n\").concat(message));} else {log(message.slice(LOG_MARKER.length));}}log(\"\".concat(prefix, \" trace start\"));if (trace) {trace();}log(\"\".concat(prefix, \" trace end\"));} catch (e) {}if (typeof window.__debug === 'function') {window.__debug(source);}}function noopArray() {return [];}function noopObject() {return {};}function noopFunc() {}function trueFunc() {return true;}function falseFunc() {return false;};const updatedArgs = args ? [].concat(source).concat(args) : [source];setConstant.apply(this, updatedArgs);})({name:\"set-constant\",engine:\"corelibs\",version:\"1.7.189\",verbose:false},[\"NativeAd\",\"noopFunc\",]);\n(function(source, args){function setConstant(source, property, value, stack) {var stackRegexp = stack ? toRegExp(stack) : toRegExp('\/.?\/');if (!property || !matchStackTrace(stackRegexp, new Error().stack)) {return;}var nativeIsNaN = Number.isNaN || window.isNaN;var emptyArr = noopArray();var emptyObj = noopObject();var constantValue;if (value === 'undefined') {constantValue = undefined;} else if (value === 'false') {constantValue = false;} else if (value === 'true') {constantValue = true;} else if (value === 'null') {constantValue = null;} else if (value === 'emptyArr') {constantValue = emptyArr;} else if (value === 'emptyObj') {constantValue = emptyObj;} else if (value === 'noopFunc') {constantValue = noopFunc;} else if (value === 'trueFunc') {constantValue = trueFunc;} else if (value === 'falseFunc') {constantValue = falseFunc;} else if (\/^\\d+$\/.test(value)) {constantValue = parseFloat(value);if (nativeIsNaN(constantValue)) {return;}if (Math.abs(constantValue) > 0x7FFF) {return;}} else if (value === '-1') {constantValue = -1;} else if (value === '') {constantValue = '';} else {return;}var canceled = false;var mustCancel = function mustCancel(value) {if (canceled) {return canceled;}canceled = value !== undefined && constantValue !== undefined && typeof value !== typeof constantValue;return canceled;};var setChainPropAccess = function setChainPropAccess(owner, property) {var chainInfo = getPropertyInChain(owner, property);var base = chainInfo.base;var prop = chainInfo.prop,chain = chainInfo.chain;if (base instanceof Object === false && base === null) {if (source.verbose) {var props = property.split('.');var propIndex = props.indexOf(prop);var baseName = props[propIndex - 1];console.log(\"set-constant failed because the property '\".concat(baseName, \"' does not exist\"));}return;}if (chain) {var setter = function setter(a) {base = a;if (a instanceof Object) {setChainPropAccess(a, chain);}};Object.defineProperty(owner, prop, {get: function get() {return base;},set: setter});return;}if (mustCancel(base[prop])) {return;}hit(source);setPropertyAccess(base, prop, {get: function get() {return constantValue;},set: function set(a) {if (mustCancel(a)) {constantValue = a;}}});};setChainPropAccess(window, property);}function getPropertyInChain(base, chain) {var pos = chain.indexOf('.');if (pos === -1) {return {base: base,prop: chain};}var prop = chain.slice(0, pos);var nextBase = base[prop];chain = chain.slice(pos + 1);if (nextBase !== undefined) {return getPropertyInChain(nextBase, chain);}Object.defineProperty(base, prop, {configurable: true});return {base: nextBase,prop: prop,chain: chain};}function setPropertyAccess(object, property, descriptor) {var currentDescriptor = Object.getOwnPropertyDescriptor(object, property);if (currentDescriptor && !currentDescriptor.configurable) {return false;}Object.defineProperty(object, property, descriptor);return true;}function toRegExp(str) {if (str[0] === '\/' && str[str.length - 1] === '\/') {return new RegExp(str.slice(1, -1));}var escaped = str.replace(\/[.*+?^${}()|[\\]\\\\]\/g, '\\\\$&');return new RegExp(escaped);}function matchStackTrace(stackRegexp, stackTrace) {var refinedStackTrace = stackTrace.split('\\n').slice(2).map(function (line) {return line.trim();}).join('\\n');return stackRegexp.test(refinedStackTrace);}function hit(source, message) {if (source.verbose !== true) {return;}try {var log = console.log.bind(console);var trace = console.trace.bind(console);var prefix = source.ruleText || '';if (source.domainName) {var AG_SCRIPTLET_MARKER = '#%#\/\/';var UBO_SCRIPTLET_MARKER = '##+js';var ruleStartIndex;if (source.ruleText.indexOf(AG_SCRIPTLET_MARKER) > -1) {ruleStartIndex = source.ruleText.indexOf(AG_SCRIPTLET_MARKER);} else if (source.ruleText.indexOf(UBO_SCRIPTLET_MARKER) > -1) {ruleStartIndex = source.ruleText.indexOf(UBO_SCRIPTLET_MARKER);}var rulePart = source.ruleText.slice(ruleStartIndex);prefix = \"\".concat(source.domainName).concat(rulePart);}var LOG_MARKER = 'log: ';if (message) {if (message.indexOf(LOG_MARKER) === -1) {log(\"\".concat(prefix, \" message:\\n\").concat(message));} else {log(message.slice(LOG_MARKER.length));}}log(\"\".concat(prefix, \" trace start\"));if (trace) {trace();}log(\"\".concat(prefix, \" trace end\"));} catch (e) {}if (typeof window.__debug === 'function') {window.__debug(source);}}function noopArray() {return [];}function noopObject() {return {};}function noopFunc() {}function trueFunc() {return true;}function falseFunc() {return false;};const updatedArgs = args ? [].concat(source).concat(args) : [source];setConstant.apply(this, updatedArgs);})({name:\"set-constant\",engine:\"corelibs\",version:\"1.7.189\",verbose:false},[\"__jsadsuccess\",\"true\",]);\n(function(source, args){function preventSetTimeout(source, match, delay) {var nativeTimeout = window.setTimeout;var nativeIsNaN = Number.isNaN || window.isNaN;var log = console.log.bind(console);var shouldLog = typeof match === 'undefined' && typeof delay === 'undefined';var INVERT_MARKER = '!';var isNotMatch = startsWith(match, INVERT_MARKER);if (isNotMatch) {match = match.slice(1);}var isNotDelay = startsWith(delay, INVERT_MARKER);if (isNotDelay) {delay = delay.slice(1);}delay = parseInt(delay, 10);delay = nativeIsNaN(delay) ? null : delay;match = match ? toRegExp(match) : toRegExp('\/.?\/');var timeoutWrapper = function timeoutWrapper(callback, timeout) {var shouldPrevent = false;var cbString = String(callback);if (shouldLog) {hit(source);log(\"setTimeout(\".concat(cbString, \", \").concat(timeout, \")\"));} else if (!delay) {shouldPrevent = match.test(cbString) !== isNotMatch;} else if (match === '\/.?\/') {shouldPrevent = timeout === delay !== isNotDelay;} else {shouldPrevent = match.test(cbString) !== isNotMatch && timeout === delay !== isNotDelay;}if (shouldPrevent) {hit(source);return nativeTimeout(noopFunc, timeout);}for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {args[_key - 2] = arguments[_key];}return nativeTimeout.apply(window, [callback, timeout].concat(args));};window.setTimeout = timeoutWrapper;}function toRegExp(str) {if (str[0] === '\/' && str[str.length - 1] === '\/') {return new RegExp(str.slice(1, -1));}var escaped = str.replace(\/[.*+?^${}()|[\\]\\\\]\/g, '\\\\$&');return new RegExp(escaped);}function startsWith(str, prefix) {return !!str && str.indexOf(prefix) === 0;}function hit(source, message) {if (source.verbose !== true) {return;}try {var log = console.log.bind(console);var trace = console.trace.bind(console);var prefix = source.ruleText || '';if (source.domainName) {var AG_SCRIPTLET_MARKER = '#%#\/\/';var UBO_SCRIPTLET_MARKER = '##+js';var ruleStartIndex;if (source.ruleText.indexOf(AG_SCRIPTLET_MARKER) > -1) {ruleStartIndex = source.ruleText.indexOf(AG_SCRIPTLET_MARKER);} else if (source.ruleText.indexOf(UBO_SCRIPTLET_MARKER) > -1) {ruleStartIndex = source.ruleText.indexOf(UBO_SCRIPTLET_MARKER);}var rulePart = source.ruleText.slice(ruleStartIndex);prefix = \"\".concat(source.domainName).concat(rulePart);}var LOG_MARKER = 'log: ';if (message) {if (message.indexOf(LOG_MARKER) === -1) {log(\"\".concat(prefix, \" message:\\n\").concat(message));} else {log(message.slice(LOG_MARKER.length));}}log(\"\".concat(prefix, \" trace start\"));if (trace) {trace();}log(\"\".concat(prefix, \" trace end\"));} catch (e) {}if (typeof window.__debug === 'function') {window.__debug(source);}}function noopFunc() {};const updatedArgs = args ? [].concat(source).concat(args) : [source];preventSetTimeout.apply(this, updatedArgs);})({name:\"prevent-setTimeout\",engine:\"corelibs\",version:\"1.7.189\",verbose:false},[\"checkSiteNormalLoad\",]);\n\/** stealth-script - v1.1.2 - 3\/17\/2020 *\/\n(function(){try{var e,aa=\"Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/88.0.4324.182 Safari\\\/537.36\",ba=false,ca=true,da=true,l=false,ea=true,fa=\"\",ha=\"2e5d9052884a4799911fe4332ba\",m=null,ia=true,q=ha.substring(16)+ha.substring(0,16)||\"adgStRunId\";var r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,w=Object.create,x=Object.getOwnPropertyNames,ja=Object.prototype.toString,y=Object.prototype.hasOwnProperty,z=Function.prototype.apply,ka=Function.prototype.call,A=Function.prototype.bind,B=window.Proxy,C=window.Reflect;if(B)var la=C.preventExtensions,D=C.defineProperty,E=C.get,ma=C.set,na=C.deleteProperty,F=C.ownKeys,oa=C.apply;\nvar G=window.MutationObserver||window.WebKitMutationObserver,pa=u(HTMLIFrameElement.prototype,\"contentWindow\").get,qa=u(HTMLIFrameElement.prototype,\"contentDocument\").get,H=Error.captureStackTrace;function I(){};if(\"function\"==typeof WeakMap)var J=WeakMap;else{var ra=0,K=function(){this.a=(ra+=Math.random()).toString()};K.prototype.set=function(a,b){var c=a[this.a];c&&c[0]===a?c[1]=b:r(a,this.a,{value:[a,b],writable:!0});return this};K.prototype.get=function(a){var b;return(b=a[this.a])&&b[0]===a?b[1]:void 0};K.prototype.delete=function(a){var b=a[this.a];if(!b)return!1;a=b[0]===a;b[0]=b[1]=void 0;return a};K.prototype.has=function(a){var b=a[this.a];return b?b[0]===a:!1};J=K};var L={},sa=B?oa:function(){do var a=Math.random();while(a in z);r(z,a,{value:ka});return function(b,c,d){return z[a](b,c,d)}}();function ta(a){this.C=a}function ua(a,b,c){this.f=a;this.c=b;this.g=c;this.a=!1;this.b=sa(A,this.b,[this])}ua.prototype.b=function(a,b){b=void 0===b?this.c:b;if(this.a)throw 1;this.a=!0;try{return sa(this.f,b,a)}catch(c){throw H&&H(c,this.g),new ta(c);}};var va=new J;function wa(a,b,c){var d=u(a,c);d&&d.configurable&&(d.value=a[c],r(b,c,d))}\nfunction xa(a,b){var c=a.c,d=va.get(c);\"undefined\"==typeof d&&(d=c);return a.b(b,d)}L.s=function(a,b){function c(){var d=new ua(a,this,c);try{return b(d,arguments)}catch(f){if(!d.a)try{return d.b(arguments)}catch(k){f=k}if(f instanceof ta)throw f.C;}}(0,L.v)(a,c);return c};L.v=function(a,b){wa(a,b,\"name\");wa(a,b,\"length\");va.set(b,a)};L.i=function(a,b,c){a.hasOwnProperty(b)&&(a[b]=(0,L.s)(a[b],c))};\nL.h=function(a,b,c,d){var f=u(a,b);if(f&&f.get&&f.configurable){c=(0,L.s)(f.get,c);var k;f.set&&(k=(0,L.s)(f.set,d));r(a,b,{get:c,set:k,configurable:!0,enumerable:f.enumerable})}};L.A=function(a){a=a.Function.prototype;(0,L.i)(a,\"toString\",xa);(0,L.i)(a,\"toSource\",xa)};function M(a){return\"[object Navigator]\"===ja.call(a)};var ya=\"function\"===typeof URL?function(a){return new URL(a)}:function(a){var b=document.createElement(\"a\");b.href=a;\"\"==b.host&&(b.href=b.href);return b};function N(a){this.u=a;this.o=q;this.j=[];this.g=A.call(this.g,this);this.f=A.call(this.f,this);var b=a.HTMLIFrameElement.prototype;this.a=new J;L.h(b,\"contentWindow\",this.f);L.h(b,\"contentDocument\",this.f);za(this,a)}\nfunction za(a,b){G&&(a.m||(a.m=new G(function(b){for(var c=0,f=b.length;c<f;c++)for(var k=b[c].addedNodes,p=0,g=k.length;p<g;p++){var h=k[p];if(\"IFRAME\"===h.nodeName)O(a,h);else if(\"id\"in h){h=h.getElementsByTagName(\"IFRAME\");for(var n=0,t=h.length;n<t;n++)O(a,h[n])}}})),a.m.observe(b.document.documentElement,{childList:!0,subtree:!0}))}\nfunction O(a,b){if(\"undefined\"===typeof a.a.get(b)){b.addEventListener(\"load\",a.g);try{var c=pa.call(b);if(\"about:\"===c.location.protocol){a.a.set(b,c.document);Aa(a,c);var d=b.src,f;if(f=d&&a.o){var k=a.u.location,p=a.u.document.domain,g=ya(d);f=\"javascript:\"===g.protocol||\"about:blank\"===g.href?!0:\"data:\"===g.protocol?!1:g.hostname===p&&g.port===k.port&&g.protocol===k.protocol}f&&r(c,a.o,{value:void 0,configurable:!0})}}catch(h){a.a.set(b,null)}}}N.prototype.f=function(a,b){O(this,a.c);return a.b(b)};\nfunction Aa(a,b){a=a.j;for(var c=0,d=a.length;c<d;c++)a[c](b)}N.prototype.g=function(a){a=a.target;try{var b=qa.call(a);\"about:\"===b.location.protocol&&this.a.get(a)!==b&&(this.a.set(a,b),Aa(this,b.defaultView))}catch(c){this.a.set(a,null)}};function Ba(a,b){return M(a.c)?aa:a.b(b)}var Ca=aa?function(a){var b=a.Navigator.prototype;L.h(a.Navigator.prototype,\"userAgent\",Ba);a=a.navigator;(b=u(b,\"userAgent\"))&&b.get&&!b.configurable&&(b.get=L.s(b.get,Ba),r(a,\"userAgent\",b))}:I;var Da=\/^RTC\/,Ea=ba?function(a){x(a).filter(function(a){return Da.test(a)}).forEach(function(b){var c=a[b];\"function\"===typeof c&&-1!==c.toString().indexOf(\"[native code]\")&&delete a[b]});delete a.webkitRTCPeerConnection;delete a.mozRTCPeerConnection;var b=a.Navigator.prototype;delete b.getUserMedia;delete b.webkitGetUserMedia;delete b.mozGetUserMedia}:I;var Fa=u(Document.prototype,\"referrer\").get;function Ga(a,b){a:{try{Fa.call(a.c)}catch(d){if(\"TypeError\"===d.name){var c=!1;break a}}c=!0}return c?fa:a.b(b)}var Ha=fa?function(a){var b=a.Document.prototype;L.h(b,\"referrer\",Ga);if((b=u(b,\"referrer\"))&&b.get&&!b.configurable){var c=a.HTMLDocument;a=c?c.prototype:a.document;b.get=L.s(b.get,Ga);r(a,\"referrer\",b)}}:I;function Ia(a){var b=this;this.a=a;this.f=this.a.Promise;this.m=this.a.DOMException;this.g=function(a,d){var c=d[0];a=b.f.resolve(\"denied\");\"function\"===typeof c&&a.then(function(a){c(a)});return a};this.o=function(){return\"denied\"};this.j=function(a,d){return\"[object PushManager]\"===ja.call(a.c)?b.f.reject(new b.m(\"\",\"NotAllowedError\")):a.b(d)}}\nvar Ja=ca?function(a){a=new Ia(a);var b=a.a;b.Notification&&(L.i(b.Notification,\"requestPermission\",a.g),L.h(b.Notification,\"permission\",a.o));b.PushManager&&L.i(b.PushManager.prototype,\"subscribe\",a.j)}:I;var P=new J;function Ka(a,b){return P.has(a.c)?1:a.b(b)}function La(a,b){return P.has(a.c)?\"User denied geolocation\":a.b(b)}function Ma(a){function b(){try{a.call(this,arguments)}catch(c){throw\"TypeError\"===c.name&&(c.message=c.message.replace(\"MediaError\",\"PositionError\"),H&&H(c,b)),c;}}L.v(a,b);return b}\nfunction Na(a){if(a.PositionError)return a.PositionError.prototype;var b=w(a.Object.prototype);b.PERMISSION_DENIED=1;b.POSITION_UNAVAILABLE=2;b.TIMEOUT=3;if(a=a.MediaError){var c=function(a){return(a=u(d,a))&&a.get?(a.get=Ma(a.get),a):f||(f={get:function(){throw new TypeError;},enumerable:!0,configurable:!0})},d=a.prototype,f;r(b,\"code\",c(\"code\"));r(b,\"message\",c(\"message\"))}return b}\nfunction Oa(a){var b=this;this.a=a;this.g=function(a,d){if(!Pa(b,a.c))return a.b(d);a=d[1];\"function\"===typeof a&&setTimeout(a,0,Qa(b))};this.o=0;this.j=function(a,d){if(!Pa(b,a.c))return a.b(d);a=d[1];\"function\"===typeof a&&setTimeout(a,0,Qa(b));return b.o++}}function Qa(a){a=w(a.m);P.set(a,void 0);return a}function Pa(a,b){try{a.f.call(b,0)}catch(c){if(\"TypeError\"===c.name)return!1}return!0}\nvar Ra=da?function(a){a=new Oa(a);var b=a.a.navigator.geolocation;if(b){a.f=b.clearWatch;var c=Na(a.a);L.h(c,\"code\",Ka);L.h(c,\"message\",La);a.m=c;b=v(b);L.i(b,\"getCurrentPosition\",a.g);L.i(b,\"watchPosition\",a.j)}}:I;function Sa(a){return l&&-1!==a.indexOf(\"Shockwave Flash\")||ea&&-1!==a.indexOf(\"Java\")?!0:!1}function Ta(a){return Sa(a.name)}function Ua(a){return Sa(a.enabledPlugin.name)}var Va=\"function\"===typeof B,Wa={writable:!0,enumerable:!0,configurable:!0},Q=!1,R=!1,Xa=!0,Ya=!0,S=navigator.plugins,Za={};Wa.value=Za;try{r(S,1E9,Wa)}catch(a){\"TypeError\"===a.name&&(R=!0)}S[1E9]===Za&&(Q=!0);delete S[1E9];\nif(0<S.length){var $a=u(S,0);if($a){var ab=$a.value;Q=$a.writable;var bb=ab.name;Xa=S.propertyIsEnumerable(bb);Ya=-1!==x(S).indexOf(bb)}}function T(a,b,c){this.j=a;this.u=b;this.o=c;cb(this)}function cb(a){for(var b=a.j,c=w(v(a.j)),d=a.f=B?w(null):c,f=a.a=B?w(null):c,k=0,p=0,g=b.length;p<g;p++){var h=b[p];if(!a.o(h)){var n=k++;db.value=h;r(d,n,db);n=a.u(h);eb.value=h;r(f,n,eb)}}a.m=k;a.g=B?new B(c,a):c}e=T.prototype;e.preventExtensions=function(a){return R?!1:la(a)};\ne.getOwnPropertyDescriptor=function(a,b){if(y.call(a,b))return u(a,b);if(null!==U(b))return u(this.f,b);if(y.call(this.a,b))return u(this.a,b)};e.defineProperty=function(a,b,c){if(null!==U(b)){if(!Q)return!R;D(a,b,c);return!0}return D(a,b,c)};e.has=function(a,b){return b in a||b in this.f||b in this.a};e.get=function(a,b,c){if(y.call(a,b))return E(a,b,c);if(null!==U(b))return E(this.f,b,c);if(y.call(this.a,b))return E(this.a,b,c);a=v(a);if(null!==a)return E(a,b,c)};\ne.set=function(a,b,c,d){if(d=this.g)d=a;if(y.call(a,b))return ma(a,b,c,d);if(a===d&&null!=U(b)){if(!Q)return!R;if(\"object\"!==typeof d||null===d)return!1;a=u(d,b);if(\"undefined\"===typeof a)a=Wa,a.value=c;else{if(\"get\"in a||\"set\"in a||!1===a.writable)return!1;a={value:c}}return D(d,b,a)}return ma(a,b,c,d)};e.deleteProperty=function(a,b){return y.call(a,b)?na(a,b):null!==U(b)?!0:na(a,b)};\ne.ownKeys=function(a){var b=F(this.f);Ya&&Array.prototype.push.apply(b,F(this.a));a=F(a);for(var c=0,d=a.length;c<d;c++){var f=a[c];-1===b.indexOf(f)&&b.push(f)}return b};var db={writable:Q,enumerable:!0,configurable:Va},eb={writable:Q,enumerable:Xa,configurable:Va};if(Va&&H){var V=T.prototype;x(C).forEach(function(a){if(V.hasOwnProperty(a)){var b=V[a];V[a]=function(){try{return oa(b,this,arguments)}catch(c){throw H(c,V[a]),c;}}}})}\nfunction U(a){if(\"string\"!==typeof a)return null;a=Number(a);return(a|0)===a&&0<1\/a?a:null}function fb(a){return a.name}function gb(a){return a.type}var W=new J,X=new J;function hb(a,b){b=a.b(b);if(!M(a.c))return b;a=W.get(b);a||(a=new T(b,fb,Ta),W.set(b,a),X.set(a.g,a));return a.g}function ib(a,b){b=a.b(b);if(!M(a.c))return b;a=W.get(b);a||(a=new T(b,gb,Ua),W.set(b,a),X.set(a.g,a));return a.g}function jb(a,b){var c=X.get(a.c);return c?c.f[b[0]]||null:a.b(b)}\nfunction kb(a,b){var c=X.get(a.c);return c?c.a[b[0]]||null:a.b(b)}function Y(a,b){var c=X.get(a.c);return c?c.m:a.b(b)}function lb(a,b){var c=X.get(a.c);c?(c.j.refresh(),cb(c),a=void 0):a=a.b(b);return a}\nvar mb=l||ea?function(a){var b=a.Navigator.prototype;L.h(b,\"plugins\",hb);L.h(b,\"mimeTypes\",ib);if(b=a.PluginArray)b=b.prototype,L.i(b,\"item\",jb),L.i(b,\"namedItem\",kb),L.h(b,\"length\",Y),L.i(b,\"refresh\",lb);(b=a.MSPluginsCollection)&&L.h(b.prototype,\"length\",Y);if(b=a.MimeTypeArray)b=b.prototype,L.i(b,\"item\",jb),L.i(b,\"namedItem\",kb),L.h(b,\"length\",Y);(a=a.MSMimeTypesCollection)&&L.h(a.prototype,\"length\",Y)}:I;var nb=l?function(a){var b=a.ActiveXObject,c=!1;try{new b(\" \")}catch(f){-2146827859===f.number&&(c=!0)}if(c){var d=function(a,c){if(this instanceof d){\"string\"===typeof a&&0===a.indexOf(\"ShockwaveFlash.ShockwaveFlash\")&&(a=\" \");for(var f=[void 0],g=0,h=arguments.length;g<h;g++)f.push(arguments[g]);return new (A.apply(b,f))}return b.apply(this,arguments)};d.prototype=b.prototype;d.prototype.constructor=d;L.v(b,d);a.ActiveXObject=d}}:I;function ob(a){return a?\"\"===a.trim():!0}var Z=\/^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$\/;function pb(a){if(ob(a))return null;a=a.split(\";\").filter(function(a){return!ob(a)});var b=a.shift().split(\"=\"),c={name:b.shift(),value:b.join(\"=\")};a.forEach(function(a){var b=a.split(\"=\");a=b.shift().trim().toLowerCase();b=b.join(\"=\");\"expires\"===a?c.expires=new Date(b):\"max-age\"===a?c.l=parseInt(b,10):\"secure\"===a?c.D=!0:\"httponly\"===a?c.B=!0:\"samesite\"===a?c.w=b:c[a]=b});return c}\nfunction qb(a){if(!a)throw new TypeError(\"empty cookie data\");if(!Z.test(a.name))throw new TypeError(\"Cookie name is invalid: \"+a.name);if(a.value&&!Z.test(a.value))throw new TypeError(\"Cookie value is invalid: \"+a.value);if(a.domain&&!Z.test(a.domain))throw new TypeError(\"Cookie domain is invalid: \"+a.domain);if(a.path&&!Z.test(a.path))throw new TypeError(\"Cookie path is invalid: \"+a.path);if(a.expires&&\"function\"!==typeof a.expires.toUTCString)throw new TypeError(\"Cookie expires is invalid: \"+a.expires);\nvar b=a.name+\"=\"+a.value;\"number\"!==typeof a.l||isNaN(a.l)||(b+=\"; Max-Age=\"+Math.floor(a.l));a.domain&&(b+=\"; Domain=\"+a.domain);a.path&&(b+=\"; Path=\"+a.path);a.expires&&(b+=\"; Expires=\"+a.expires.toUTCString());a.B&&(b+=\"; HttpOnly\");a.D&&(b+=\"; Secure\");if(!ob(a.w))switch(a.w.toLowerCase()){case \"lax\":b+=\"; SameSite=Lax\";break;case \"strict\":b+=\"; SameSite=Strict\";break;default:throw new TypeError(\"Cookie sameSite is invalid: \"+a.w);}return b};function rb(a){var b;if(\"undefined\"===typeof m||null===m)return a;var c=pb(a);if(0===m)return c.expires=new Date,c.l&&delete c.l,qb(c);var d=Date.now();c.l?b=d+1E3*c.l:c.expires&&(b=c.expires.getTime());d+=6E4*m;if(b<=d)return a;c.expires=new Date(d);c.l&&delete c.l;return qb(c)};function sb(a,b){return a.b(b)}function tb(a,b){a:{try{ub.call(a.c)}catch(d){if(\"TypeError\"===d.name){var c=!1;break a}}c=!0}if(!c)return a.b(b);b[0]=rb(b[0]);return a.b(b)}function vb(){if(u(window.Document.prototype,\"cookie\"))return window.Document.prototype;if(u(window.HTMLDocument.prototype,\"cookie\"))return window.HTMLDocument.prototype}var ub=u(vb(),\"cookie\").get,wb=\"undefined\"!==typeof m?function(){var a=vb();a&&L.h(a,\"cookie\",sb,tb)}:I;var xb,yb={childList:!0,subtree:!0};function zb(a){for(var b=a.attributes,c=0;c<b.length;c++)try{4<b[c].value.length&&b[c].value.indexOf(\".swf\")===b[c].value.length-4&&a.setAttribute(b[c].name,\" \")}catch(d){}}\nvar Ab=l?function(a){if(!xb){if(!G)return;xb=new G(function(a){for(var b=0,d=a.length;b<d;b++){var f=a[b].addedNodes;if(f)for(var k=0,p=f.length;k<p;k++){var g=f[k];if(\"id\"in g){var h=g.nodeName;if(\"EMBED\"!==h&&\"OBJECT\"!==h||!g.hasAttributes()){h=g.getElementsByTagName(\"EMBED\");g=g.getElementsByTagName(\"OBJECT\");var n;var t=0;for(n=h.length;t<n;t++)zb(h[t]);t=0;for(n=g.length;t<n;t++)zb(g[t])}else zb(g)}}}})}xb.observe(a.document.documentElement,yb)}:I;function Bb(a,b){return M(a.c)?\"1\":a.b(b)}var Cb=ia?function(a){a=a.Navigator.prototype;y.call(a,\"doNotTrack\")&&L.h(a,\"doNotTrack\",Bb)}:I;if(window.hasOwnProperty(q))delete window[q];else{var Db=function(a){L.A(a);var b=new N(a);Ca(a);Ea(a);Ha(a);Ja(a);Ra(a);mb(a);nb(a);wb(a);Cb(a);Ab(a);b.j.push(Db)};Db(window)};}catch(e){console&&console.error&&console.error('AdGuard Stealth mode error: '+e)}})();\n\n",a:{"isReferrerRuleJsInject":true,"isReferrerRuleElemhide":true},f:"\/\/injections.adguard.org?type=sfbr-script<t=850cc9c6807647ba8612b72f920"};function y(){var a=x.f;if(a){a=-1!=a.indexOf("?")?a+"&":a+"?";a=a+"u="+encodeURIComponent(window.location.href);a=a+"&r="+Math.random();var b=document.createElement("script");b.setAttribute("defer","");b.setAttribute("src",u.createScriptURL(a));b.setAttribute("type","text/javascript");b.onload=b.onerror=function(){b.parentNode&&b.parentNode.removeChild(b)};n.appendChild(b)}};function z(a){if(p){var b=a.parentElement,c=new p(function(k){for(var g=0;g<k.length;g++)for(var f=k[g].removedNodes,t=0;t<f.length;t++)if(f[t]===a){c.disconnect();b.appendChild(a);c.observe(b,e);return}}),e={childList:!0};c.observe(b,e)}}function A(a,b){if(p){var c=new p(function(){c.disconnect();a.innerHTML="";a.appendChild(b);c.observe(a,e)}),e={childList:!0};c.observe(a,e)}}
function B(a){if(p){var b=new p(function(e){e=e[0].oldValue;b.disconnect();a.nodeValue=e;b.observe(a,c)}),c={characterData:!0,characterDataOldValue:!0};b.observe(a,c)}};var C=[];function D(a){if(a instanceof Array)for(var b=a.length;b--;)E(a[b]);else E(a)}function F(){return!1}var G={get:F,set:F};function E(a){if(a){var b=document.createElement("style");b.setAttribute("type","text/css");v&&b.setAttribute("nonce",v);a=document.createTextNode(a);b.appendChild(a);var c=h;h.parentNode!=n&&(c=null);n.insertBefore(b,c);C.push(b);Object.defineProperty(b,"disabled",G);Object.defineProperty(b.sheet,"disabled",G);z(b);A(b,a);B(a)}}/*! extended-css - v1.3.8 - Fri Dec 11 2020
* https://github.com/AdguardTeam/ExtendedCss
* Copyright (c) 2020 AdGuard. Licensed LGPL-3.0
*/
var ExtendedCss=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var i,s,a,u,c,l,f,h,d,p,g,v,m={};function y(e){return"number"==typeof e}m.MutationObserver=window.MutationObserver||window.WebKitMutationObserver,m.isSafariBrowser=(i=navigator.userAgent.indexOf("Chrome")>-1,!!(navigator.userAgent.indexOf("Safari")>-1)&&!i),m.pseudoArgToRegex=function(e,t){return t=t||"i",e=e.trim().replace(/\\(["\\])/g,"$1"),new RegExp(e,t)},m.toRegExp=function(e){if("/"===e[0]&&"/"===e[e.length-1])return new RegExp(e.slice(1,-1));var t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t)},m.startsWith=function(e,t){return!!e&&0===e.indexOf(t)},m.endsWith=function(e,t){if(!e||!t)return!1;if(e.endsWith)return e.endsWith(t);var r=String(t),n=e.lastIndexOf(r);return n>=0&&n===e.length-r.length},m.createURLRegex=(s="||",a="|",u="^",c="*",l=".*",f="([^ a-zA-Z0-9.%_-]|$)",h="^(http|https|ws|wss)://([a-z0-9-_.]+\\.)?",d="^",p="$",g=new RegExp("[".concat([".","+","?","$","{","}","(",")","[","]","\\","/"].join("\\"),"]"),"g"),v=function(e,t,r){return e?e.split(t).join(r):e},function(e){var t=function(e){return e.replace(g,"\\$&")}(e);return t=m.startsWith(t,s)?t.substring(0,s.length)+v(t.substring(s.length,t.length-1),"|","\\|")+t.substring(t.length-1):m.startsWith(t,a)?t.substring(0,a.length)+v(t.substring(a.length,t.length-1),"|","\\|")+t.substring(t.length-1):v(t.substring(0,t.length-1),"|","\\|")+t.substring(t.length-1),t=v(t,c,l),t=v(t,u,f),m.startsWith(t,s)?t=h+t.substring(s.length):m.startsWith(t,a)&&(t=d+t.substring(a.length)),m.endsWith(t,a)&&(t=t.substring(0,t.length-1)+p),new RegExp(t,"i")}),m.createLocation=function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t},m.isSameOrigin=function(e,t,r){var n=m.createLocation(e);return"javascript:"===n.protocol||"about:blank"===n.href||"data:"!==n.protocol&&"file:"!==n.protocol&&(n.hostname===r&&n.port===t.port&&n.protocol===t.protocol)},m.AsyncWrapper=function(){var e=void 0!==window.requestAnimationFrame&&!/phantom/i.test(navigator.userAgent),t=e?requestAnimationFrame:setTimeout,r=e?cancelAnimationFrame:clearTimeout,n=e?performance:Date;function o(e,t){this.callback=e,this.throttle=t,this.wrappedCallback=this.wrappedCallback.bind(this),this.wrappedAsapCallback&&(this.wrappedAsapCallback=this.wrappedAsapCallback.bind(this))}return o.prototype.wrappedCallback=function(e){this.lastRun=y(e)?e:n.now(),delete this.rAFid,delete this.timerId,delete this.asapScheduled,this.callback()},o.prototype.hasPendingCallback=function(){return y(this.rAFid)||y(this.timerId)},o.prototype.run=function(){if(!this.hasPendingCallback()){if(void 0!==this.lastRun){var e=n.now()-this.lastRun;if(e<this.throttle)return void(this.timerId=setTimeout(this.wrappedCallback,this.throttle-e))}this.rAFid=t(this.wrappedCallback)}},o.prototype.runAsap=function(){this.asapScheduled||(this.asapScheduled=!0,r(this.rAFid),clearTimeout(this.timerId),m.MutationObserver?(this.mo||(this.mo=new m.MutationObserver(this.wrappedCallback),this.node=document.createTextNode(1),this.mo.observe(this.node,{characterData:!0})),this.node.nodeValue=-this.node.nodeValue):setTimeout(this.wrappedCallback))},o.prototype.runImmediately=function(){this.hasPendingCallback()&&(r(this.rAFid),clearTimeout(this.timerId),delete this.rAFid,delete this.timerId,this.wrappedCallback())},o.now=function(){return n.now()},o}(),m.defineProperty=Object.defineProperty,m.WeakMap="undefined"!=typeof WeakMap?WeakMap:function(){var e=Date.now()%1e9,t=function(){this.name="__st".concat(1e9*Math.random()>>>0).concat(e++,"__")};return t.prototype={set:function(e,t){var r=e[this.name];return r&&r[0]===e?r[1]=t:m.defineProperty(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t=e[this.name];return t&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];if(!t)return!1;var r=t[0]===e;return delete t[0],delete t[1],r},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},t}(),m.Set="undefined"!=typeof Set?Set:function(){var e=Date.now()%1e9,t=function(t){if(this.name="__st".concat(1e9*Math.random()>>>0).concat(e++,"__"),this.keys=[],t&&t.length)for(var r=t.length;r--;)this.add(t[r])};return t.prototype={add:function(e){if(!y(e[this.name])){var t=this.keys.push(e)-1;m.defineProperty(e,this.name,{value:t,writable:!0})}},delete:function(e){if(y(e[this.name])){var t=e[this.name];delete this.keys[t],e[this.name]=void 0}},has:function(e){return y(e[this.name])},clear:function(){this.keys.forEach((function(e){e[this.name]=void 0})),this.keys.length=0},forEach:function(e){var t=this;this.keys.forEach((function(r){e(r,r,t)}))}},m.defineProperty(t.prototype,"size",{get:function(){return this.keys.reduce((function(e){return e+1}),0)}}),t}(),m.matchesPropertyName=function(){for(var e=["matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector"],t=0;t<6;t++)if(Element.prototype.hasOwnProperty(e[t]))return e[t]}(),m.Stats=function(){this.array=[],this.length=0;var e={value:0,writable:!0};Object.defineProperty(this,"sum",e),Object.defineProperty(this,"squaredSum",e)},m.Stats.prototype.push=function(e){this.array.push(e),this.length++,this.sum+=e,this.squaredSum+=e*e,this.mean=this.sum/this.length,this.stddev=Math.sqrt(this.squaredSum/this.length-Math.pow(this.mean,2))},m.logError="undefined"!=typeof console&&console.error&&Function.prototype.bind&&console.error.bind?console.error.bind(window.console):console.error,m.logInfo="undefined"!=typeof console&&console.info&&Function.prototype.bind&&console.info.bind?console.info.bind(window.console):console.info,m.getNodeSelector=function(e){if(!(e instanceof Element))throw new Error("Function received argument with wrong type");for(var t=e,r=[];t&&t.nodeType===Node.ELEMENT_NODE;){var n=t.nodeName.toLowerCase();if(t.id&&"string"==typeof t.id){n+="#".concat(t.id),r.unshift(n);break}for(var o=t,i=1;o.previousSibling;)(o=o.previousSibling).nodeType===Node.ELEMENT_NODE&&o.nodeName.toLowerCase()===n&&i++;1!==i&&(n+=":nth-of-type(".concat(i,")")),r.unshift(n),t=t.parentNode}return r.join(" > ")};var b,w,x,E,S,N,T,A=(b=/\[-(?:ext|abp)-([a-z-_]+)=(["'])((?:(?=(\\?))\4.)*?)\2\]/g,w=function(e,t,r,n){var o=new RegExp("([^\\\\]|^)\\\\".concat(r),"g");return n=n.replace(o,"$1".concat(r)),":".concat(t,"(").concat(n,")")},x=/\:(matches-css(?:-after|-before)?)\(([a-z-\s]*\:\s*\/(?:\\.|[^\/])*?\/\s*)\)/g,E=/:(?:-abp-)?(contains|has-text)\((\s*\/(?:\\.|[^\/])*?\/\s*)\)/g,S=/\(\:scope >/g,N=function(e,t,r){return":".concat(t,'("').concat(r.replace(/["\\]/g,"\\$&"),'")')},{normalize:function(e){return e=(e=(e=(e=e.replace(b,w)).replace(x,N)).replace(E,N)).replace(S,"(>")},isSimpleSelectorValid:function(e){try{document.querySelectorAll(e)}catch(e){return!1}return!0}}),C=function(){return T||(T=function(e){var t,r,n,o,i,s,a,u,c,l,f,h,d,p,g,v,m,y,b="sizzle"+1*new Date,w=e.document,x=0,E=0,S=ne(),N=ne(),T=ne(),A=ne(),C=function(e,t){return e===t&&(l=!0),0},O={}.hasOwnProperty,I=[],D=I.pop,R=I.push,k=I.push,P=I.slice,L=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",q="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",$="\\["+q+"*("+B+")(?:"+q+"*([*^$|!~]?=)"+q+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+q+"*\\]",z=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+$+")*)|.*)\\)|)",F=new RegExp(q+"+","g"),j=new RegExp("^"+q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+q+"+$","g"),W=new RegExp("^"+q+"*,"+q+"*"),V=new RegExp("^"+q+"*([>+~]|"+q+")"+q+"*"),U=new RegExp(z),H=new RegExp("^"+B+"$"),_={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+$),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},G=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Y=new RegExp("\\\\([\\da-f]{1,6}"+q+"?|("+q+")|.)","ig"),Z=function(e,t,r){var n="0x"+t-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},J=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Q=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ee=function(){f()},te=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{k.apply(I=P.call(w.childNodes),w.childNodes),I[w.childNodes.length].nodeType}catch(e){k={apply:I.length?function(e,t){R.apply(e,P.call(t))}:function(e,t){for(var r=e.length,n=0;e[r++]=t[n++];);e.length=r-1}}}function re(e,r,n,o){var s,u,c,l,d,v,m,x=r&&r.ownerDocument,E=r?r.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==E&&9!==E&&11!==E)return n;if(!o&&((r?r.ownerDocument||r:w)!==h&&f(r),r=r||h,p)){if(11!==E&&(d=X.exec(e)))if(s=d[1]){if(9===E){if(!(c=r.getElementById(s)))return n;if(c.id===s)return n.push(c),n}else if(x&&(c=x.getElementById(s))&&y(r,c)&&c.id===s)return n.push(c),n}else{if(d[2])return k.apply(n,r.getElementsByTagName(e)),n;if((s=d[3])&&t.getElementsByClassName&&r.getElementsByClassName)return k.apply(n,r.getElementsByClassName(s)),n}if(t.qsa&&!A[e+" "]&&(!g||!g.test(e))){if(1!==E)x=r,m=e;else if("object"!==r.nodeName.toLowerCase()){for((l=r.getAttribute("id"))?l=l.replace(J,Q):r.setAttribute("id",l=b),u=(v=i(e)).length;u--;)v[u]="#"+l+" "+be(v[u]);m=v.join(","),x=K.test(e)&&ce(r.parentNode)||r}if(m)try{return k.apply(n,x.querySelectorAll(m)),n}catch(t){A(e,!0)}finally{l===b&&r.removeAttribute("id")}}}return a(e.replace(j,"$1"),r,n,o)}function ne(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function oe(e){return e[b]=!0,e}function ie(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function ae(e,t){var r=t&&e,n=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(r)for(;r=r.nextSibling;)if(r===t)return-1;return e?1:-1}function ue(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ce(e){return e&&void 0!==e.getElementsByTagName&&e}function le(){}t=re.support={},o=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=re.setDocument=function(e){var n,i,s=e?e.ownerDocument||e:w;return s!==h&&9===s.nodeType&&s.documentElement?(d=(h=s).documentElement,p=!o(h),w!==h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ee,!1):i.attachEvent&&i.attachEvent("onunload",ee)),t.attributes=ie((function(e){return e.className="i",!e.getAttribute("className")})),t.getElementsByTagName=ie((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),t.getElementsByClassName=G.test(h.getElementsByClassName),t.getById=ie((function(e){return d.appendChild(e).id=b,!h.getElementsByName||!h.getElementsByName(b).length})),t.getById?(r.filter.ID=function(e){var t=e.replace(Y,Z);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var r=t.getElementById(e);return r?[r]:[]}}):(r.filter.ID=function(e){var t=e.replace(Y,Z);return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var r,n,o,i=t.getElementById(e);if(i){if((r=i.getAttributeNode("id"))&&r.value===e)return[i];for(o=t.getElementsByName(e),n=0;i=o[n++];)if((r=i.getAttributeNode("id"))&&r.value===e)return[i]}return[]}}),r.find.TAG=t.getElementsByTagName?function(e,r){return void 0!==r.getElementsByTagName?r.getElementsByTagName(e):t.qsa?r.querySelectorAll(e):void 0}:function(e,t){var r,n=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;r=i[o++];)1===r.nodeType&&n.push(r);return n}return i},r.find.CLASS=t.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},v=[],g=[],(t.qsa=G.test(h.querySelectorAll))&&(ie((function(e){d.appendChild(e).innerHTML=ye.createHTML("<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+q+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+q+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+b+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]")})),ie((function(e){e.innerHTML=ye.createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+q+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(t.matchesSelector=G.test(m=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ie((function(e){t.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),v.push("!=",z)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),n=G.test(d.compareDocumentPosition),y=n||G.test(d.contains)?function(e,t){var r=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=n?function(e,r){if(e===r)return l=!0,0;var n=!e.compareDocumentPosition-!r.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(r.ownerDocument||r)?e.compareDocumentPosition(r):1)||!t.sortDetached&&r.compareDocumentPosition(e)===n?e===h||e.ownerDocument===w&&y(w,e)?-1:r===h||r.ownerDocument===w&&y(w,r)?1:c?L(c,e)-L(c,r):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var r,n=0,o=e.parentNode,i=t.parentNode,s=[e],a=[t];if(!o||!i)return e===h?-1:t===h?1:o?-1:i?1:c?L(c,e)-L(c,t):0;if(o===i)return ae(e,t);for(r=e;r=r.parentNode;)s.unshift(r);for(r=t;r=r.parentNode;)a.unshift(r);for(;s[n]===a[n];)n++;return n?ae(s[n],a[n]):s[n]===w?-1:a[n]===w?1:0},h):h},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,r){if((e.ownerDocument||e)!==h&&f(e),t.matchesSelector&&p&&!A[r+" "]&&(!v||!v.test(r))&&(!g||!g.test(r)))try{var n=m.call(e,r);if(n||t.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(r,!0)}return re(r,h,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==h&&f(e),y(e,t)},re.attr=function(e,n){(e.ownerDocument||e)!==h&&f(e);var o=r.attrHandle[n.toLowerCase()],i=o&&O.call(r.attrHandle,n.toLowerCase())?o(e,n,!p):void 0;return void 0!==i?i:t.attributes||!p?e.getAttribute(n):(i=e.getAttributeNode(n))&&i.specified?i.value:null},re.escape=function(e){return(e+"").replace(J,Q)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var r,n=[],o=0,i=0;if(l=!t.detectDuplicates,c=!t.sortStable&&e.slice(0),e.sort(C),l){for(;r=e[i++];)r===e[i]&&(o=n.push(i));for(;o--;)e.splice(n[o],1)}return c=null,e},n=re.getText=function(e){var t,r="",o=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=n(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[o++];)r+=n(t);return r},r=re.selectors={cacheLength:50,createPseudo:oe,match:_,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,Z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,r=!e[6]&&e[2];return _.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&U.test(r)&&(t=i(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Y,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+q+")"+e+"("+q+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,r){return function(n){var o=re.attr(n,e);return null==o?"!="===t:!t||(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o.replace(F," ")+" ").indexOf(r)>-1:"|="===t&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,r,n,o){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===o?function(e){return!!e.parentNode}:function(t,r,u){var c,l,f,h,d,p,g=i!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,w=!1;if(v){if(i){for(;g;){for(h=t;h=h[g];)if(a?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?v.firstChild:v.lastChild],s&&y){for(w=(d=(c=(l=(f=(h=v)[b]||(h[b]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],h=d&&v.childNodes[d];h=++d&&h&&h[g]||(w=d=0)||p.pop();)if(1===h.nodeType&&++w&&h===t){l[e]=[x,d,w];break}}else if(y&&(w=d=(c=(l=(f=(h=t)[b]||(h[b]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===w)for(;(h=++d&&h&&h[g]||(w=d=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++w||(y&&((l=(f=h[b]||(h[b]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]=[x,w]),h!==t)););return(w-=o)===n||w%n==0&&w/n>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return o[b]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?oe((function(e,r){for(var n,i=o(e,t),s=i.length;s--;)e[n=L(e,i[s])]=!(r[n]=i[s])})):function(e){return o(e,0,n)}):o}},pseudos:{not:oe((function(e){var t=[],r=[],n=s(e.replace(j,"$1"));return n[b]?oe((function(e,t,r,o){for(var i,s=n(e,null,o,[]),a=e.length;a--;)(i=s[a])&&(e[a]=!(t[a]=i))})):function(e,o,i){return t[0]=e,n(t,null,i,r),t[0]=null,!r.pop()}})),has:oe((function(e){return"string"==typeof e&&re.compile(e),function(t){return re(e,t).length>0}})),lang:oe((function(e){return H.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(Y,Z).toLowerCase(),function(t){var r;do{if(r=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var r=e.location&&e.location.hash;return r&&r.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ue(!1),disabled:ue(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0}}},le.prototype=r.filters=r.pseudos,r.setFilters=new le;var fe,he,de,pe,ge,ve,me=(fe={CHILD:100,ID:90,CLASS:80,TAG:70,ATTR:70,PSEUDO:60},he=["nth","first","last","eq","even","odd","lt","gt","not"],de=function(e,t){return fe[e.type]-fe[t.type]},pe=function(e){for(var t=e.length;t--;){var r=e[t];if("PSEUDO"===r.type&&-1!==he.indexOf(r.matches[0]))return!1;if("CHILD"===r.type)return!1}return!0},ge=function(e){if(!e||1===e.length)return e;for(var t=[],r=function(e){for(var t=[],r=[],n=e.length-1,o=0;o<=n;o++){var i=e[o];re.selectors.relative[i.type]?(t.push(r),t.push(i),r=[]):r.push(i),o===n&&t.push(r)}return t}(e),n=0;n<r.length;n++){var o=r[n];o instanceof Array?(pe(o)&&o.sort(de),t=t.concat(o)):t.push(o)}return t},function(e){for(var t=[],r=e.length,n=0;n<r;n++)t.push(ge(e[n]));return t}),ye=(ve={createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}},e.trustedTypes&&e.trustedTypes.createPolicy?e.trustedTypes.createPolicy("AGPolicy",ve):ve);function be(e){for(var t=0,r=e.length,n="";t<r;t++)n+=e[t].value;return n}function we(e,t,r){var n=t.dir,o=t.next,i=o||n,s=r&&"parentNode"===i,a=E++;return t.first?function(t,r,o){for(;t=t[n];)if(1===t.nodeType||s)return e(t,r,o);return!1}:function(t,r,u){var c,l,f,h=[x,a];if(u){for(;t=t[n];)if((1===t.nodeType||s)&&e(t,r,u))return!0}else for(;t=t[n];)if(1===t.nodeType||s)if(l=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[n]||t;else{if((c=l[i])&&c[0]===x&&c[1]===a)return h[2]=c[2];if(l[i]=h,h[2]=e(t,r,u))return!0}return!1}}function xe(e){return e.length>1?function(t,r,n){for(var o=e.length;o--;)if(!e[o](t,r,n))return!1;return!0}:e[0]}function Ee(e,t,r,n,o){for(var i,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(i=e[a])&&(r&&!r(i,n,o)||(s.push(i),c&&t.push(a)));return s}function Se(e,t,r,n,o,i){return n&&!n[b]&&(n=Se(n)),o&&!o[b]&&(o=Se(o,i)),oe((function(i,s,a,u){var c,l,f,h=[],d=[],p=s.length,g=i||function(e,t,r){for(var n=0,o=t.length;n<o;n++)re(e,t[n],r);return r}(t||"*",a.nodeType?[a]:a,[]),v=!e||!i&&t?g:Ee(g,h,e,a,u),m=r?o||(i?e:p||n)?[]:s:v;if(r&&r(v,m,a,u),n)for(c=Ee(m,d),n(c,[],a,u),l=c.length;l--;)(f=c[l])&&(m[d[l]]=!(v[d[l]]=f));if(i){if(o||e){if(o){for(c=[],l=m.length;l--;)(f=m[l])&&c.push(v[l]=f);o(null,m=[],c,u)}for(l=m.length;l--;)(f=m[l])&&(c=o?L(i,f):h[l])>-1&&(i[c]=!(s[c]=f))}}else m=Ee(m===s?m.splice(p,m.length):m),o?o(null,s,m,u):k.apply(s,m)}))}function Ne(e){for(var t,n,o,i=e.length,s=r.relative[e[0].type],a=s||r.relative[" "],c=s?1:0,l=we((function(e){return e===t}),a,!0),f=we((function(e){return L(t,e)>-1}),a,!0),h=[function(e,r,n){var o=!s&&(n||r!==u)||((t=r).nodeType?l(e,r,n):f(e,r,n));return t=null,o}];c<i;c++)if(n=r.relative[e[c].type])h=[we(xe(h),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[b]){for(o=++c;o<i&&!r.relative[e[o].type];o++);return Se(c>1&&xe(h),c>1&&be(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(j,"$1"),n,c<o&&Ne(e.slice(c,o)),o<i&&Ne(e=e.slice(o)),o<i&&be(e))}h.push(n)}return xe(h)}return i=re.tokenize=function(e,t,n){var o,i,s,a,u,c,l,f=N[e+" "],h=n&&n.tolerant,d=n&&n.returnUnsorted,p=n&&n.cacheOnly;if(f)return t?0:(d?f.groups:f.sortedGroups).slice(0);if(p)return null;for(u=e,c=[],l=r.preFilter;u;){for(a in o&&!(i=W.exec(u))||(i&&(u=u.slice(i[0].length)||u),c.push(s=[])),o=!1,(i=V.exec(u))&&(o=i.shift(),s.push({value:o,type:i[0].replace(j," ")}),u=u.slice(o.length)),r.filter)!(i=_[a].exec(u))||l[a]&&!(i=l[a](i))||(o=i.shift(),s.push({value:o,type:a,matches:i}),u=u.slice(o.length));if(!o)break}var g=u.length;if(t)return g;if(0===g||h||re.error(e),h){var v=e.length-g;return{selectors:function(e){!function(e){for(var t=e.length;t--&&" "===e[t].type;)e.length=t}(e[e.length-1]);for(var t=me(e),r=[],n=0;n<e.length;n++){var o=e[n],i=be(o);r.push({groups:[o],selectorText:i});var s={groups:o,sortedGroups:[t[n]]};N(i,s)}return r}(c),nextIndex:v}}var m={groups:c,sortedGroups:me(c)};return m=N(e,m),(d?m.groups:m.sortedGroups).slice(0)},s=re.compile=function(e,t){var n,o=[],s=[],a=T[e+" "];if(!a){for(t||(t=i(e)),n=t.length;n--;)(a=Ne(t[n]))[b]?o.push(a):s.push(a);(a=T(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,s,a,c,l){var d,g,v,m=0,y="0",b=i&&[],w=[],E=u,S=i||o&&r.find.TAG("*",l),N=x+=null==E?1:Math.random()||.1,T=S.length;for(l&&(u=s===h||s||l);y!==T&&null!=(d=S[y]);y++){if(o&&d){for(g=0,s||d.ownerDocument===h||(f(d),a=!p);v=e[g++];)if(v(d,s||h,a)){c.push(d);break}l&&(x=N)}n&&((d=!v&&d)&&m--,i&&b.push(d))}if(m+=y,n&&y!==m){for(g=0;v=t[g++];)v(b,w,s,a);if(i){if(m>0)for(;y--;)b[y]||w[y]||(w[y]=D.call(c));w=Ee(w)}k.apply(c,w),l&&!i&&w.length>0&&m+t.length>1&&re.uniqueSort(c)}return l&&(x=N,u=E),b};return n?oe(i):i}(s,o))).selector=e}return a},a=re.select=function(e,t,n,o){var a,u,c,l,f,h="function"==typeof e&&e,d=!o&&i(e=h.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&9===t.nodeType&&p&&r.relative[u[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(Y,Z),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(a=_.needsContext.test(e)?0:u.length;a--&&(c=u[a],!r.relative[l=c.type]);)if((f=r.find[l])&&(o=f(c.matches[0].replace(Y,Z),K.test(u[0].type)&&ce(t.parentNode)||t))){if(u.splice(a,1),!(e=o.length&&be(u)))return k.apply(n,o),n;break}}return(h||s(e,d))(o,t,!p,n,!t||K.test(e)&&ce(t.parentNode)||t),n},t.sortStable=b.split("").sort(C).join("")===b,t.detectDuplicates=!!l,f(),t.sortDetached=ie((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ie((function(e){return e.innerHTML=ye.createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")}))||se("type|href|height|width",(function(e,t,r){if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),t.attributes&&ie((function(e){return e.innerHTML=ye.createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||se("value",(function(e,t,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ie((function(e){return null==e.getAttribute("disabled")}))||se(M,(function(e,t,r){var n;if(!r)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),re}(window)),T},O=function(e){var t=!!e._phantom&&!!e.getMatchedCSSRules,r=e.getComputedStyle.bind(e),n=t?e.getMatchedCSSRules.bind(e):null,o=function(e,t){this.pseudoElement=t;try{var r=e.indexOf(":");this.propertyName=e.substring(0,r).trim();var n=e.substring(r+1).trim();n=function(e){if("/"===e[0]&&"/"===e[e.length-1]&&e.indexOf('\\"')<10)return e.replace(/(\^)?url(\\)?\\\((\w|\[\w)/g,'$1url$2\\(\\"?$3');if(-1===e.indexOf('url("'))return e.replace(/url\((.*?)\)/g,'url("$1")');return e}(n),/^\/.*\/$/.test(n)?(n=n.slice(1,-1),this.regex=m.pseudoArgToRegex(n)):(n=n.replace(/\\([\\()[\]"])/g,"$1"),this.regex=m.createURLRegex(n))}catch(t){m.logError("StylePropertyMatcher: invalid match string ".concat(e))}};o.prototype.matches=function(e){if(!this.regex||!this.propertyName)return!1;var o=function(e,o,i){var s="";if(t&&o)for(var a=n(e,o)||[],u=a.length;u-- >0&&!s;)s=a[u].style.getPropertyValue(i);else{var c=r(e,o);c&&(s=c.getPropertyValue(i),"opacity"===i&&m.isSafariBrowser&&(s=(Math.round(100*parseFloat(s))/100).toString()))}return"content"===i&&(s=function(e){return"string"==typeof e?e.replace(/^(["'])([\s\S]*)\1$/,"$2"):e}(s)),s}(e,this.pseudoElement,this.propertyName);return o&&this.regex.test(o)};return{extendSizzle:function(e){e.selectors.pseudos["matches-css"]=e.selectors.createPseudo((function(e){var t=new o(e);return function(e){return t.matches(e)}})),e.selectors.pseudos["matches-css-before"]=e.selectors.createPseudo((function(e){var t=new o(e,":before");return function(e){return t.matches(e)}})),e.selectors.pseudos["matches-css-after"]=e.selectors.createPseudo((function(e){var t=new o(e,":after");return function(e){return t.matches(e)}}))}}}(window),I={};I.MutationObserver=window.MutationObserver||window.WebKitMutationObserver,I.parseMatcherFilter=function(e){var t=[];return-1===e.indexOf('"="')?t.push(e):e.split("=").forEach((function(e){'"'===e[0]&&'"'===e[e.length-1]&&t.push(e.slice(1,-1))})),t},I.parseRawMatcherArg=function(e){var t=e,r=!!e&&"/"===e[0]&&"/"===e[e.length-1];if(r){if(!(e.length>2))throw new Error("Invalid regexp: ".concat(e));t=m.toRegExp(e)}return{arg:t,isRegexp:r}},I.filterRootsByRegexpChain=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=t[0];if(1===t.length){for(var o in e)n.isRegexp?n.arg.test(o)&&r.push({base:e,prop:o,value:e[o]}):n.arg===o&&r.push({base:e,prop:n.arg,value:e[o]});return r}if(n.isRegexp){var i=t.slice(1),s=[];for(var a in e)n.arg.test(a)&&s.push(a);s.forEach((function(t){var n=e[t];I.filterRootsByRegexpChain(n,i,r)}))}if(null!==e){var u=e[n.arg];return t=t.slice(1),void 0!==u&&I.filterRootsByRegexpChain(u,t,r),r}},I.validatePropMatcherArgs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=0;n<t.length;n+=1)if(t[n].isRegexp){if(!m.startsWith(t[n].arg.toString(),"/")||!m.endsWith(t[n].arg.toString(),"/"))return!1}else if(!/^[\w-]+$/.test(t[n].arg))return!1;return!0};var D=function(){var e=function(e,t,r){this.pseudoElement=r,this.attrName=e.arg,this.isRegexpName=e.isRegexp,this.attrValue=t.arg,this.isRegexpValue=t.isRegexp};e.prototype.matches=function(e){var t=e.attributes;if(0===t.length||!this.attrName)return!1;for(var r=0;r<t.length;){var n=t[r],o=!1,i=this.isRegexpName?this.attrName.test(n.name):this.attrName===n.name;if(this.attrValue){var s=this.isRegexpValue?this.attrValue.test(n.value):this.attrValue===n.value;o=i&&s}else o=i;if(o)return!0;r+=1}};return{extendSizzle:function(r){r.selectors.pseudos["matches-attr"]=r.selectors.createPseudo((function(r){var n=t(I.parseMatcherFilter(r),2),o=n[0],i=n[1],s=I.parseRawMatcherArg(o),a=I.parseRawMatcherArg(i);if(!r||!I.validatePropMatcherArgs(s,a))throw new Error("Invalid argument of :matches-attr pseudo class: ".concat(r));var u=new e(s,a);return function(e){return u.matches(e)}}))}}}(),R=function(e){var t,r=Number(e);if(Number.isNaN(r))switch(e){case"undefined":t=void 0;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:t=e}else t=r;return t},k=function(e){var t;switch(e){case void 0:t="undefined";break;case null:t="null";break;default:t=e.toString()}return t},P=function(){var e=function(e,t,r){this.pseudoElement=r,this.chainedProps=e,this.propValue=t.arg,this.isRegexpValue=t.isRegexp};e.prototype.matches=function(e){var t=I.filterRootsByRegexpChain(e,this.chainedProps);if(0===t.length)return!1;var r=!0;if(this.propValue)for(var n=0;n<t.length;n+=1){var o=t[n].value;if(this.isRegexpValue)r=this.propValue.test(k(o));else{if("null"===o||"undefined"===o){r=this.propValue===o;break}r=R(this.propValue)===o}if(r)break}return r};return{extendSizzle:function(n){n.selectors.pseudos["matches-property"]=n.selectors.createPseudo((function(n){if(!n)throw new Error("No argument is given for :matches-property pseudo class");var o=t(I.parseMatcherFilter(n),2),i=o[0],s=o[1];if(i.indexOf("\\/")>-1||i.indexOf("\\.")>-1)throw new Error("Invalid property name: ".concat(i));var a=function(e){for(var t=[],r=e;r.length>0;){if(m.startsWith(r,"."))throw new Error("Invalid chain property: ".concat(e));if(m.startsWith(r,"/")){var n=[];n.push(r.slice(0,1));var o=(r=r.slice(1)).indexOf("/");if(o<1)throw new Error("Invalid regexp: ".concat("/").concat(r));n.push(r.slice(0,o+1));var i=m.toRegExp(n.join(""));t.push({arg:i,isRegexp:!0}),r=r.slice(o+1)}else{var s=r.indexOf(".");if(-1===r.indexOf("."))return t.push({arg:r,isRegexp:!1}),t;var a=r.slice(0,s);if(a.indexOf("/")>-1)throw new Error("Invalid chain property: ".concat(a));t.push({arg:a,isRegexp:!1}),r=r.slice(s)}if(!r)return t;if(!m.startsWith(r,".")||m.startsWith(r,".")&&1===r.length)throw new Error("Invalid chain property: ".concat(e));r=r.slice(1)}}(i),u=I.parseRawMatcherArg(s),c=[].concat(r(a),[u]);if(!I.validatePropMatcherArgs(c))throw new Error("Invalid argument of :matches-property pseudo class: ".concat(n));var l=new e(a,u);return function(e){return l.matches(e)}}))}}}(),L=function(){var e=function(e,t){this.selectors=e,this.pseudoElement=t};e.prototype.matches=function(e){return!!this.selectors.find((function(t){var r=document.querySelectorAll(t);return Array.from(r).find((function(t){return t===e}))}))};return{extendSizzle:function(t){t.selectors.pseudos.is=t.selectors.createPseudo((function(t){if(""===t)throw new Error("Invalid argument of :is pseudo-class: ".concat(t));var r=t.split(",").map((function(e){return e.trim()})).reduce((function(e,t){return A.isSimpleSelectorValid(t)?e.push(t):m.logInfo("Invalid selector passed to :is() pseudo-class: '".concat(t,"'")),e}),[]),n=new e(r);return function(e){return n.matches(e)}}))}}}(),M=function(){var e,t=[":has",":contains",":has-text",":matches-css",":-abp-has",":-abp-has-text",":if",":if-not",":xpath",":nth-ancestor",":upward",":remove",":matches-attr",":matches-property",":-abp-contains",":is"],r=!1;function n(){if(!r){r=!0,e=C(),O.extendSizzle(e),D.extendSizzle(e),P.extendSizzle(e),L.extendSizzle(e);var t=e.selectors.createPseudo((function(e){if(/^\s*\/.*\/[gmisuy]*\s*$/.test(e)){var t,r=(e=e.trim()).lastIndexOf("/"),n=e.substring(r+1);e=e.substr(0,r+1).slice(1,-1).replace(/\\([\\"])/g,"$1");try{t=new RegExp(e,n)}catch(t){throw new Error("Invalid argument of :contains pseudo class: ".concat(e))}return function(e){return t.test(e.textContent)}}return e=e.replace(/\\([\\()[\]"])/g,"$1"),function(t){return t.textContent.indexOf(e)>-1}}));e.selectors.pseudos.contains=t,e.selectors.pseudos["has-text"]=t,e.selectors.pseudos["-abp-contains"]=t,e.selectors.pseudos.if=e.selectors.pseudos.has,e.selectors.pseudos["-abp-has"]=e.selectors.pseudos.has,e.selectors.pseudos["if-not"]=e.selectors.createPseudo((function(t){return"string"==typeof t&&e.compile(t),function(r){return 0===e(t,r).length}})),e.selectors.pseudos.xpath=e.selectors.createPseudo((function(e){try{document.createExpression(e,null)}catch(t){throw new Error("Invalid argument of :xpath pseudo class: ".concat(e))}return function(){return!0}})),e.selectors.pseudos["nth-ancestor"]=e.selectors.createPseudo((function(e){var t=Number(e);if(Number.isNaN(t)||t<1||t>=256)throw new Error("Invalid argument of :nth-ancestor pseudo class: ".concat(e));return function(){return!0}})),e.selectors.pseudos.upward=e.selectors.createPseudo((function(e){if(""===e)throw new Error("Invalid argument of :upward pseudo class: ".concat(e));if(Number.isInteger(+e)&&(+e<1||+e>=256))throw new Error("Invalid argument of :upward pseudo class: ".concat(e));return function(){return!0}})),e.selectors.pseudos.remove=e.selectors.createPseudo((function(e){if(""!==e)throw new Error("Invalid argument of :remove pseudo class: ".concat(e));return function(){return!0}}))}}function o(e){var r=e.type;if("ID"===r||"CLASS"===r||"ATTR"===r||"TAG"===r||"CHILD"===r)return!0;if("PSEUDO"===r){for(var n=t.length;n--;)if(e.value.indexOf(t[n])>=0)return!1;return!0}return!1}function i(e){var t=e.type;return" "===t||">"===t||"+"===t||"~"===t}function s(t,r,o){n(),void 0===r?(this.selectorText=A.normalize(t),this.tokens=e.tokenize(this.selectorText,!1,{returnUnsorted:!0})):(this.selectorText=t,this.tokens=r),!0===o&&(this.debug=!0)}s.prototype={createSelector:function(){var e=this.debug,t=this.tokens,r=this.selectorText;if(1!==t.length)return new l(r,e);var n=this.getXpathPart();if(void 0!==n)return new h(r,n,e);var o=this.getUpwardPart();if(void 0!==o){var i,s=parseInt(o,10);if(Number.isNaN(s))i=new d(r,o,e);else i=new h(r,this.convertNthAncestorToken(s),e);return i}var a=this.getRemovePart();if(void 0!==a)return new p(r,""===a,e);var u=(t=t[0]).length,f=this.getSplitPoint();if(void 0===f){try{document.querySelector(r)}catch(t){return new l(r,e)}return new c(r,e)}for(var v="",m=null,y="",b=0;b<f;b++)v+=t[b].value;for(b>0&&(m=t[b++].type);b<u;b++)y+=t[b].value;return-1===f?new l(r,e):new g(r,v,m,y,e)},getSplitPoint:function(){for(var e=this.tokens[0],t=-1,r=!1,n=0,s=e.length;n<s;n++){var a=e[n];if(i(a)){if(r)return;t=n}else o(a)||(r=!0)}if(r)return t},getXpathPart:function(){for(var e=this.tokens[0],t=0,r=e.length;t<r;t++){var n=e[t];if("PSEUDO"===n.type){var o=n.matches;if(o&&o.length>1){if("xpath"===o[0]){if(this.isLastToken(e,t))throw new Error("Invalid pseudo: ':xpath' should be at the end of the selector");return o[1]}if("nth-ancestor"===o[0]){if(this.isLastToken(e,t))throw new Error("Invalid pseudo: ':nth-ancestor' should be at the end of the selector");var i=o[1];if(i>0&&i<256)return this.convertNthAncestorToken(i)}}}}},convertNthAncestorToken:function(e){for(var t="..";e>1;)t+="/..",e--;return t},isLastToken:function(e,t){var r=e[t+1]&&"PSEUDO"===e[t+1].type&&e[t+1].matches&&"remove"===e[t+1].matches[0];return t+1!==e.length&&!r},getUpwardPart:function(){for(var e=this.tokens[0],t=0,r=e.length;t<r;t++){var n=e[t];if("PSEUDO"===n.type){var o=n.matches;if(o&&o.length>1&&"upward"===o[0]){if(this.isLastToken(e,t))throw new Error("Invalid pseudo: ':upward' should be at the end of the selector");return o[1]}}}},getRemovePart:function(){for(var e=this.tokens[0],t=0,r=e.length;t<r;t++){var n=e[t];if("PSEUDO"===n.type){var o=n.matches;if(o&&o.length>1&&"remove"===o[0]){if(t+1!==r)throw new Error("Invalid pseudo: ':remove' should be at the end of the selector");return o[1]}}}}};var a=!1;function u(){return a||this.debug}function c(e,t){this.selectorText=e,this.debug=t}function l(t,r){this.selectorText=t,this.debug=r,e.compile(t)}function f(t,r,n){this.selectorText=t,this.pseudoClassArg=r,this.debug=n,e.compile(this.selectorText)}function h(e,t,r){var n=e;m.startsWith(e,":xpath(//")&&(n=e.replace(":xpath(//","body:xpath(//")),f.call(this,n,t,r)}function d(e,t,r){f.call(this,e,t,r)}function p(e,t,r){var n=e.indexOf(":remove()"),o=e.slice(0,n);f.call(this,o,t,r),this.isRemoveSelector=!0}function g(t,r,n,o,i){l.call(this,t,i),this.simple=r,this.relation=n,this.complex=o,e.compile(o)}return c.prototype={querySelectorAll:function(){return document.querySelectorAll(this.selectorText)},matches:function(e){return e[m.matchesPropertyName](this.selectorText)},isDebugging:u},l.prototype={querySelectorAll:function(){return e(this.selectorText)},matches:function(t){return e.matchesSelector(t,this.selectorText)},isDebugging:u},f.prototype={querySelectorAll:function(){var t,r=this,n=[];if(this.selectorText){if(!(t=e(this.selectorText))||!t.length)return n}else t=[document];return t.forEach((function(e){r.searchResultNodes(e,r.pseudoClassArg,n)})),e.uniqueSort(n)},matches:function(e){return this.querySelectorAll().indexOf(e)>-1},isDebugging:u,searchResultNodes:function(e,t,r){t&&r.push(e)}},h.prototype=Object.create(f.prototype),h.prototype.constructor=h,h.prototype.searchResultNodes=function(e,t,r){for(var n,o=document.evaluate(t,e,null,XPathResult.UNORDERED_NODE_ITERATOR_TYPE,null);n=o.iterateNext();)r.push(n)},d.prototype=Object.create(f.prototype),d.prototype.constructor=d,d.prototype.searchResultNodes=function(e,t,r){if(""!==t){var n=e.parentElement;if(null===n)return;if(null===(e=n.closest(t)))return}r.push(e)},p.prototype=Object.create(f.prototype),p.prototype.constructor=p,g.prototype=Object.create(l.prototype),g.prototype.constructor=g,g.prototype.querySelectorAll=function(){var t,r,n=this,o=[],i=this.simple;if(i){if(!(t=document.querySelectorAll(i))||!t.length)return o;r=this.relation}else t=[document],r=" ";switch(r){case" ":t.forEach((function(e){n.relativeSearch(e,o)}));break;case">":t.forEach((function(e){Object.values(e.children).forEach((function(e){n.matches(e)&&o.push(e)}))}));break;case"+":t.forEach((function(e){var t=e.parentNode;Object.values(t.children).forEach((function(t){n.matches(t)&&t.previousElementSibling===e&&o.push(t)}))}));break;case"~":t.forEach((function(e){var t=e.parentNode;Object.values(t.children).forEach((function(t){n.matches(t)&&4===e.compareDocumentPosition(t)&&o.push(t)}))}))}return e.uniqueSort(o)},g.prototype.relativeSearch=function(t,r){e(this.complex,t,r)},{createSelector:function(e,t,r){return new s(e,t,r).createSelector()},enableGlobalDebugging:function(){a=!0}}}(),q=function(){var e,t=/[;}]/g,r=/[;:}]/g,n=/\S/g;function o(e){this.cssText=e}return o.prototype={error:function(e){throw new Error("CssParser: parse error at position ".concat(this.posOffset+e))},validateSelectors:function(t){for(var r=t.length;r--;)for(var n=t[r].groups,o=n.length;o--;){var i=n[o],s=i[i.length-1];if(e.selectors.relative[s.type])return!1}return!0},parseCss:function(){this.posOffset=0,this.cssText||this.error(0);for(var t=[];this.cssText;){var r=e.tokenize(this.cssText,!1,{tolerant:!0,returnUnsorted:!0}),n=r.selectors;this.nextIndex=r.nextIndex,123===this.cssText.charCodeAt(this.nextIndex)&&this.validateSelectors(n)||this.error(this.nextIndex),this.nextIndex++;var o=this.parseNextStyle(),i=!1,s=o.debug;void 0!==s&&("global"===s&&M.enableGlobalDebugging(),i=!0,delete o.debug);for(var a=0,u=n.length;a<u;a++){var c=n[a];try{var l=M.createSelector(c.selectorText,c.groups,i);l.pseudoClassArg&&l.isRemoveSelector&&(o.remove="true"),t.push({selector:l,style:o})}catch(e){m.logError("ExtendedCssParser: ignoring invalid selector ".concat(c.selectorText))}}}return t},parseNextStyle:function(){var e=Object.create(null),t=this.parseUntilClosingBracket(e);n.lastIndex=t+1;var r=n.exec(this.cssText);if(null===r)return this.cssText="",e;var o=r.index;return this.cssText=this.cssText.slice(o),this.posOffset+=o,e},parseUntilClosingBracket:function(e){r.lastIndex=this.nextIndex;var n=r.exec(this.cssText);null===n&&this.error(this.nextIndex);var o=n.index,i=n[0];if("}"===i)return o;if(":"===i){var s=o;t.lastIndex=s,null===(n=t.exec(this.cssText))&&this.error(s),o=n.index,i=n[0];var a=this.cssText.slice(this.nextIndex,s).trim(),u=this.cssText.slice(s+1,o).trim();if(e[a]=u,"}"===i)return o}return this.nextIndex=o+1,this.parseUntilClosingBracket(e)}},{parseCss:function(t){return e=C(),new o(A.normalize(t)).parseCss()}}}();function B(t){if(!t)throw new Error("Configuration is not provided.");var r=t.styleSheet,n=t.beforeStyleApplied;if(n&&"function"!=typeof n)throw new Error("Wrong configuration. Type of 'beforeStyleApplied' field should be a function, received: ".concat(e(n)));var o,i,s=function(){var e,t,r=["mouseover","mouseleave","mouseenter","mouseout"],n=["keydown","keypress","keyup","auxclick","click","contextmenu","dblclick","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseout","mouseup","pointerlockchange","pointerlockerror","select","wheel"],o=["wheel"],i=m.isSafariBrowser?n.filter((function(e){return!(o.indexOf(e)>-1)})):n,s=function(r){e=r.type,t=Date.now()};i.forEach((function(e){document.documentElement.addEventListener(e,s,!0)}));return{isIgnoredEventType:function(){return r.indexOf(e)>-1&&Date.now()-t<10}}}(),a=[],u=[],c={},l=window.addEventListener;var f={attributes:!0,attributeOldValue:!0,attributeFilter:["style"]};function h(e,t){if(!m.MutationObserver)return null;var r=t.map((function(e){return e.style})),n=new m.MutationObserver(function(e){return function(t,r){if(t.length){var n=t[0].target;r.disconnect(),e.forEach((function(e){g(n,e)})),++r.styleProtectionCount<50?r.observe(n,f):m.logError("ExtendedCss: infinite loop protection for style")}}}(r));return n.observe(e,f),n.styleProtectionCount=0,n}function d(e){var t=e.node;e.removed=!0;var r=m.getNodeSelector(t),n=c[r]||0;n>50?m.logError("ExtendedCss: infinite loop protection for SELECTOR",r):t.parentNode&&(t.parentNode.removeChild(t),c[r]=n+1)}function p(e){if(!e.protectionObserver&&(!n||(e=n(e))))for(var t=e.node,r=0;r<e.rules.length;r++){var o=e.rules[r].style;if("true"===o.remove)return void d(e);g(t,o)}}function g(e,t){Object.keys(t).forEach((function(r){if(void 0!==e.style.getPropertyValue(r)){var n=t[r];n=(o=n.trim(),i="!important",s=o.indexOf(i,o.length-i.length),s>=0?o.substring(0,s):o).trim(),e.style.setProperty(r,n,"important")}var o,i,s}))}function v(e){e.protectionObserver&&e.protectionObserver.disconnect(),e.node.style.cssText=e.originalStyle}function y(e){var t,r=e.selector.isDebugging();r&&(t=m.AsyncWrapper.now());var n=e.selector.querySelectorAll();if(n.forEach((function(t){var r=function(e){for(var t=0;t<u.length;t+=1)if(u[t].node===e)return u[t];return null}(t);if(r)r.rules.push(e),p(r);else{var n=t.style.cssText;p(r={node:t,rules:[e],originalStyle:n,protectionObserver:null}),u.push(r)}})),r){var o=m.AsyncWrapper.now()-t;"timingStats"in e||(e.timingStats=new m.Stats),e.timingStats.push(o)}return n}function b(){var e=[];E(),a.forEach((function(t){var r=y(t);Array.prototype.push.apply(e,r)}));var t=u.length;if(e.length>0)for(;t--;){var r=u[t];-1===e.indexOf(r.node)?(v(r),u.splice(t,1)):r.removed||r.protectionObserver||(r.protectionObserver=h(r.node,r.rules))}!function(){if(o)return;o=!0,e=x,m.MutationObserver?(i=new m.MutationObserver((function(t){t&&0!==t.length&&(s.isIgnoredEventType()&&function(e){for(var t=0;t<e.length;t+=1)if("attributes"!==e.type)return!1;return!0}(t)||e())}))).observe(document,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["id","class"]}):l&&(document.addEventListener("DOMNodeInserted",e,!1),document.addEventListener("DOMNodeRemoved",e,!1),document.addEventListener("DOMAttrModified",e,!1));var e}(),function(){if(S)return;S=!0;var e=a.filter((function(e){return e.selector.isDebugging()})).map((function(e){return{selectorText:e.selector.selectorText,timingStats:e.timingStats}}));if(0===e.length)return;m.logInfo("[ExtendedCss] Timings for %o:\n%o (in milliseconds)",window.location.href,e)}()}var w=new m.AsyncWrapper(b,150),x=w.run.bind(w);function E(){var e;o&&(o=!1,e=x,i?i.disconnect():l&&(document.removeEventListener("DOMNodeInserted",e,!1),document.removeEventListener("DOMNodeRemoved",e,!1),document.removeEventListener("DOMAttrModified",e,!1)))}var S=!1;a=q.parseCss(r),this.dispose=function(){E(),u.forEach((function(e){v(e)}))},this.apply=function(){b(),"complete"!==document.readyState&&document.addEventListener("DOMContentLoaded",b)},this._getAffectedElements=function(){return u}}return B.query=function(e,t){if("string"!=typeof e)throw new Error("Selector text is empty");var r=m.AsyncWrapper.now,n=r();try{return M.createSelector(e).querySelectorAll()}finally{var o=r();t||m.logInfo("[ExtendedCss] Elapsed: ".concat(Math.round(1e3*(o-n))," μs."))}},B}();
;
function H(){var a=x.g;if(a)try{eval(u.createScript(a))}catch(b){d(b)}};function I(){10>document.documentMode||document.addEventListener("click",function(a){try{if(2!==a.button){var b=a.target;if(b instanceof Node){for(a=b;a&&!(a instanceof HTMLAnchorElement);)a=a.parentNode;var c=a}else c=void 0;if(c){a:{try{if(w.isSubscriptionIntercept){if("http:"===c.protocol||"https:"===c.protocol){if("subscribe.adblockplus.org"!==c.host||"/"!==c.pathname){var e=void 0;break a}}else if(!c.href||-1===c.href.indexOf("abp:subscribe")){e=void 0;break a}e=c.search?"adguard:subscribe"+
c.search:c.href.replace("abp:subscribe","adguard:subscribe");break a}}catch(f){d(f)}e=void 0}if(e)c.href=e;else{a:{try{if(w.isUserscriptIntercept&&("http:"===c.protocol||"https:"===c.protocol)&&-1!==c.pathname.indexOf(".user.js")&&c.pathname.endsWith(".user.js")){var k=c.href;c.search&&(k=k.replace(c.search,""));var g="adguard:userscript?location="+k;break a}}catch(f){d(f)}g=void 0}g&&(c.href=g)}}}}catch(f){d(f)}})};var J=!0,K=!0,L=!0,M=-1!==["mail.yahoo.com","map.baidu.com"].indexOf(document.location.hostname),N=-1!==["muve.pl"].indexOf(document.location.hostname);window!==window.top&&(J=1E5<Math.max(document.documentElement.clientHeight,window.innerHeight||0)*Math.max(document.documentElement.clientWidth,window.innerWidth||0),x.a&&x.a.hasOwnProperty("isReferrerRuleElemhide")&&x.a.hasOwnProperty("isReferrerRuleJsInject")&&(K=x.a.isReferrerRuleElemhide,L=x.a.isReferrerRuleJsInject));var O=v||"adgRunId";
if(!document[O]){document[O]=!0;if(K){M||(J&&x.b&&D(x.b),D(x.h));var P=x.c;P&&!r&&(new ExtendedCss({styleSheet:P,i:C})).apply()}L&&H();(w.isSubscriptionIntercept||w.isUserscriptIntercept)&&I();N||y()}delete x.b;delete x.h;delete x.c;delete x.g;delete x.a;delete x.f;n.removeChild(h);})();