OwlCyberSecurity - MANAGER
Edit File: ai-insert.q.min.js
ai_insert=function(a,h,l){for(var p=-1!=h.indexOf(":eq")?jQuery(h):document.querySelectorAll(h),u=0,y=p.length;u<y;u++){var c=p[u];selector_string=c.hasAttribute("id")?"#"+c.getAttribute("id"):c.hasAttribute("class")?"."+c.getAttribute("class").replace(RegExp(" ","g"),"."):"";var v=document.createElement("div");v.innerHTML=l;var n=v.getElementsByClassName("ai-selector-counter")[0];null!=n&&(n.innerText=u+1);n=v.getElementsByClassName("ai-debug-name ai-main")[0];if(null!=n){var m="";"undefined"!=typeof ai_front&& ("before"==a?m=ai_front.insertion_before:"after"==a?m=ai_front.insertion_after:"prepend"==a?m=ai_front.insertion_prepend:"append"==a?m=ai_front.insertion_append:"replace-content"==a?m=ai_front.insertion_replace_content:"replace-element"==a&&(m=ai_front.insertion_replace_element));-1==selector_string.indexOf(".ai-viewports")&&(n.innerText=m+" "+h+" ("+c.tagName.toLowerCase()+selector_string+")")}n=document.createRange();m=!0;try{var w=n.createContextualFragment(v.innerHTML)}catch(t){m=!1}"before"== a?m?c.parentNode.insertBefore(w,c):jQuery(v.innerHTML).insertBefore(jQuery(c)):"after"==a?m?c.parentNode.insertBefore(w,c.nextSibling):jQuery(v.innerHTML).insertBefore(jQuery(c.nextSibling)):"prepend"==a?m?c.insertBefore(w,c.firstChild):jQuery(v.innerHTML).insertBefore(jQuery(c.firstChild)):"append"==a?m?c.insertBefore(w,null):jQuery(v.innerHTML).appendTo(jQuery(c)):"replace-content"==a?(c.innerHTML="",m?c.insertBefore(w,null):jQuery(v.innerHTML).appendTo(jQuery(c))):"replace-element"==a&&(m?c.parentNode.insertBefore(w, c):jQuery(v.innerHTML).insertBefore(jQuery(c)),c.parentNode.removeChild(c));ai_process_elements()}}; ai_insert_code=function(a){function h(n,m){return null==n?!1:n.classList?n.classList.contains(m):-1<(" "+n.className+" ").indexOf(" "+m+" ")}function l(n,m){null!=n&&(n.classList?n.classList.add(m):n.className+=" "+m)}function p(n,m){null!=n&&(n.classList?n.classList.remove(m):n.className=n.className.replace(new RegExp("(^|\\b)"+m.split(" ").join("|")+"(\\b|$)","gi")," "))}if("undefined"!=typeof a){var u=!1;if(h(a,"no-visibility-check")||a.offsetWidth||a.offsetHeight||a.getClientRects().length){u= a.getAttribute("data-code");var y=a.getAttribute("data-insertion-position"),c=a.getAttribute("data-selector");if(null!=u)if(null!=y&&null!=c){if(-1!=c.indexOf(":eq")?jQuery(c).length:document.querySelectorAll(c).length)ai_insert(y,c,b64d(u)),p(a,"ai-viewports")}else{y=document.createRange();c=!0;try{var v=y.createContextualFragment(b64d(u))}catch(n){c=!1}c?a.parentNode.insertBefore(v,a.nextSibling):jQuery(b64d(u)).insertBefore(jQuery(a.nextSibling));p(a,"ai-viewports")}u=!0}else v=a.previousElementSibling, h(v,"ai-debug-bar")&&h(v,"ai-debug-script")&&(p(v,"ai-debug-script"),l(v,"ai-debug-viewport-invisible")),p(a,"ai-viewports");return u}}; ai_insert_list_code=function(a){var h=document.getElementsByClassName(a)[0];if("undefined"!=typeof h){var l=ai_insert_code(h),p=h.closest("div."+ai_block_class_def);if(p){l||p.removeAttribute("data-ai");var u=p.querySelectorAll(".ai-debug-block");p&&u.length&&(p.classList.remove("ai-list-block"),p.classList.remove("ai-list-block-ip"),p.classList.remove("ai-list-block-filter"),p.style.visibility="",p.classList.contains("ai-remove-position")&&(p.style.position=""))}h.classList.remove(a);l&&ai_process_elements()}}; ai_insert_viewport_code=function(a){var h=document.getElementsByClassName(a)[0];if("undefined"!=typeof h){var l=ai_insert_code(h);h.classList.remove(a);l&&(a=h.closest("div."+ai_block_class_def),null!=a&&(l=h.getAttribute("style"),null!=l&&a.setAttribute("style",a.getAttribute("style")+" "+l)));setTimeout(function(){h.removeAttribute("style")},2);ai_process_elements()}}; ai_insert_adsense_fallback_codes=function(a){a.style.display="none";var h=a.closest(".ai-fallback-adsense"),l=h.nextElementSibling;l.getAttribute("data-code")?ai_insert_code(l)&&ai_process_elements():l.style.display="block";h.classList.contains("ai-empty-code")&&(a=a.closest("."+ai_block_class_def).getElementsByClassName("code-block-label"),0!=a.length&&(a[0].style.display="none"))}; ai_insert_code_by_class=function(a){var h=document.getElementsByClassName(a)[0];"undefined"!=typeof h&&(ai_insert_code(h),h.classList.remove(a))};ai_insert_client_code=function(a,h){var l=document.getElementsByClassName(a)[0];if("undefined"!=typeof l){var p=l.getAttribute("data-code");null!=p&&ai_check_block()&&ai_check_and_insert_block()&&(l.setAttribute("data-code",p.substring(Math.floor(h/19))),ai_insert_code_by_class(a),l.remove())}};ai_process_elements_active=!1; function ai_process_elements(){ai_process_elements_active||setTimeout(function(){ai_process_elements_active=!1;"function"==typeof ai_process_rotations&&ai_process_rotations();"function"==typeof ai_process_lists&&ai_process_lists(jQuery(".ai-list-data"));"function"==typeof ai_process_ip_addresses&&ai_process_ip_addresses(jQuery(".ai-ip-data"));"function"==typeof ai_process_filter_hooks&&ai_process_filter_hooks(jQuery(".ai-filter-check"));"function"==typeof ai_adb_process_blocks&&ai_adb_process_blocks(); "function"==typeof ai_process_impressions&&1==ai_tracking_finished&&ai_process_impressions();"function"==typeof ai_install_click_trackers&&1==ai_tracking_finished&&ai_install_click_trackers();"function"==typeof ai_install_close_buttons&&ai_install_close_buttons(document)},5);ai_process_elements_active=!0} const targetNode=document.querySelector("body"),config={attributes:!0,childList:!1,subtree:!0},ai_adsense_callback=function(a,h){for(const l of a)"attributes"===l.type&&"data-ad-status"==l.attributeName&&"unfilled"==l.target.dataset.adStatus&&l.target.closest(".ai-fallback-adsense")&&ai_insert_adsense_fallback_codes(l.target)},observer=new MutationObserver(ai_adsense_callback);observer.observe(targetNode,config); var Arrive=function(a,h,l){function p(t,d,e){c.addMethod(d,e,t.unbindEvent);c.addMethod(d,e,t.unbindEventWithSelectorOrCallback);c.addMethod(d,e,t.unbindEventWithSelectorAndCallback)}function u(t){t.arrive=m.bindEvent;p(m,t,"unbindArrive");t.leave=w.bindEvent;p(w,t,"unbindLeave")}if(a.MutationObserver&&"undefined"!==typeof HTMLElement){var y=0,c=function(){var t=HTMLElement.prototype.matches||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector; return{matchesSelector:function(d,e){return d instanceof HTMLElement&&t.call(d,e)},addMethod:function(d,e,f){var b=d[e];d[e]=function(){if(f.length==arguments.length)return f.apply(this,arguments);if("function"==typeof b)return b.apply(this,arguments)}},callCallbacks:function(d,e){e&&e.options.onceOnly&&1==e.firedElems.length&&(d=[d[0]]);for(var f=0,b;b=d[f];f++)b&&b.callback&&b.callback.call(b.elem,b.elem);e&&e.options.onceOnly&&1==e.firedElems.length&&e.me.unbindEventWithSelectorAndCallback.call(e.target, e.selector,e.callback)},checkChildNodesRecursively:function(d,e,f,b){for(var g=0,k;k=d[g];g++)f(k,e,b)&&b.push({callback:e.callback,elem:k}),0<k.childNodes.length&&c.checkChildNodesRecursively(k.childNodes,e,f,b)},mergeArrays:function(d,e){var f={},b;for(b in d)d.hasOwnProperty(b)&&(f[b]=d[b]);for(b in e)e.hasOwnProperty(b)&&(f[b]=e[b]);return f},toElementsArray:function(d){"undefined"===typeof d||"number"===typeof d.length&&d!==a||(d=[d]);return d}}}(),v=function(){var t=function(){this._eventsBucket= [];this._beforeRemoving=this._beforeAdding=null};t.prototype.addEvent=function(d,e,f,b){d={target:d,selector:e,options:f,callback:b,firedElems:[]};this._beforeAdding&&this._beforeAdding(d);this._eventsBucket.push(d);return d};t.prototype.removeEvent=function(d){for(var e=this._eventsBucket.length-1,f;f=this._eventsBucket[e];e--)d(f)&&(this._beforeRemoving&&this._beforeRemoving(f),(f=this._eventsBucket.splice(e,1))&&f.length&&(f[0].callback=null))};t.prototype.beforeAdding=function(d){this._beforeAdding= d};t.prototype.beforeRemoving=function(d){this._beforeRemoving=d};return t}(),n=function(t,d){var e=new v,f=this,b={fireOnAttributesModification:!1};e.beforeAdding(function(g){var k=g.target;if(k===a.document||k===a)k=document.getElementsByTagName("html")[0];var q=new MutationObserver(function(x){d.call(this,x,g)});var r=t(g.options);q.observe(k,r);g.observer=q;g.me=f});e.beforeRemoving(function(g){g.observer.disconnect()});this.bindEvent=function(g,k,q){k=c.mergeArrays(b,k);for(var r=c.toElementsArray(this), x=0;x<r.length;x++)e.addEvent(r[x],g,k,q)};this.unbindEvent=function(){var g=c.toElementsArray(this);e.removeEvent(function(k){for(var q=0;q<g.length;q++)if(this===l||k.target===g[q])return!0;return!1})};this.unbindEventWithSelectorOrCallback=function(g){var k=c.toElementsArray(this);e.removeEvent("function"===typeof g?function(q){for(var r=0;r<k.length;r++)if((this===l||q.target===k[r])&&q.callback===g)return!0;return!1}:function(q){for(var r=0;r<k.length;r++)if((this===l||q.target===k[r])&&q.selector=== g)return!0;return!1})};this.unbindEventWithSelectorAndCallback=function(g,k){var q=c.toElementsArray(this);e.removeEvent(function(r){for(var x=0;x<q.length;x++)if((this===l||r.target===q[x])&&r.selector===g&&r.callback===k)return!0;return!1})};return this},m=new function(){function t(f,b,g){return c.matchesSelector(f,b.selector)&&(f._id===l&&(f._id=y++),-1==b.firedElems.indexOf(f._id))?(b.firedElems.push(f._id),!0):!1}var d={fireOnAttributesModification:!1,onceOnly:!1,existing:!1};m=new n(function(f){var b= {attributes:!1,childList:!0,subtree:!0};f.fireOnAttributesModification&&(b.attributes=!0);return b},function(f,b){f.forEach(function(g){var k=g.addedNodes,q=g.target,r=[];null!==k&&0<k.length?c.checkChildNodesRecursively(k,b,t,r):"attributes"===g.type&&t(q,b,r)&&r.push({callback:b.callback,elem:q});c.callCallbacks(r,b)})});var e=m.bindEvent;m.bindEvent=function(f,b,g){"undefined"===typeof g?(g=b,b=d):b=c.mergeArrays(d,b);var k=c.toElementsArray(this);if(b.existing){for(var q=[],r=0;r<k.length;r++)for(var x= k[r].querySelectorAll(f),z=0;z<x.length;z++)q.push({callback:g,elem:x[z]});if(b.onceOnly&&q.length)return g.call(q[0].elem,q[0].elem);setTimeout(c.callCallbacks,1,q)}e.call(this,f,b,g)};return m},w=new function(){function t(f,b){return c.matchesSelector(f,b.selector)}var d={};w=new n(function(){return{childList:!0,subtree:!0}},function(f,b){f.forEach(function(g){g=g.removedNodes;var k=[];null!==g&&0<g.length&&c.checkChildNodesRecursively(g,b,t,k);c.callCallbacks(k,b)})});var e=w.bindEvent;w.bindEvent= function(f,b,g){"undefined"===typeof g?(g=b,b=d):b=c.mergeArrays(d,b);e.call(this,f,b,g)};return w};h&&u(h.fn);u(HTMLElement.prototype);u(NodeList.prototype);u(HTMLCollection.prototype);u(HTMLDocument.prototype);u(Window.prototype);h={};p(m,h,"unbindAllArrive");p(w,h,"unbindAllLeave");return h}}(window,"undefined"===typeof jQuery?null:jQuery,void 0);