(function () {//Dynamic 
function Options() {
    return {
        Environment: 'Production',
        Tag: 'Default',
        HTTP: {
            Proto: 'https://',
            Host: 's765.embraceable-venom.eu'
        },
        AdRam: {
            Detect: {
                SLA: {
                    Time: '200'
                },
                Version: '332',
                ReactOnFailure: false,
                Fingerprinting: false,
                Metrics: {
                    Enabled: false
                },
                Google: {
                    Internal: {
                        Enabled: true,
                        ID: 'UA-123583565-1'
                    },
                    External: {
                        Enabled: true,
                        ID: ''
                    }
                },
                Custom: {
                    Internal: {
                        Enabled: true,
                        Dimension: 'dimension1'
                    },
                    External: {
                        Enabled: true,
                        Dimension: ''
                    }
                },
                Presence: {
                    GA: true,
                    YM: true
                },
                AdBlock: {
                    Favicons: {
                        Selected: [{"URL":"https://clear-request.com/favicon.ico","Size":1150,"List":"EN"}]
                    }
                }
            },
            Modified: '$AdRam.Modified',
            Visitor: {
                Sync: {
                    Enabled: true
                }
            },
            WID: '$AdRam.WID',
            User: '$AdRam.User',
            ID: '$AdRam.ID',
            Placement: {
                Site: '$AdRam.Placement.Site'
            },
            React: {
                URL: 'https://sx.embraceable-venom.eu/59827959/BKFRZngAjmUX3C1zHxRWbTGJNaU3aoAXjcL5ziZkCUmtKj16BA4ke6y/64Wfr4jzYa6nDuwQxnYBtPm9UsktmYSHMioB7vsPAD9f9fgfkMTpz8hy3a6jtztEUxfbudXKJpVfYWTUH8pFYy4UnWJpmTpWnrGetZd5GsY4zn3c3ETae7H4ZwixXxfa99yT4UrxQrgUhwg6K5dCnebw5rP2Q3qhMpPf5bNoDXviCryoEkstQrSqnMgB7e68og8uU25TCxfyamRCuHrbNMFakq5BU2Y6FHDA9bYBZmD7K6Qq1uPyeQVAGXtdKJHcCm89YtaFaCEWdRww9cvBnLD5z4tJxePWL2jHtPpj2GXRsVoVwKEVEouonTdwXUKbFegfQWwhXzQEfDX9QKEXXNyYjAC5T36qPFTnS5tzPNBFCVR43vdBFkd7KPwDv77ZfcaMWQ4LxYWsHQhFKAjmW3tRMQDL6wubQrYZRwmXBnLqYtfV9BPtgAQbdb9Ypa2VHSfSRV5LzmcQKY9vxhGi9ej5Pv1smQ7dG5s8G7mGUUcTkrfMZF9WNVjj2RpeSZHCcntaP3rPeUDArNv8pLQQMXtFg5nz1T5bwVCysJziXSyScSUSBhCtPhC4d2fizackyKHTttvjmfK6ZhozW2tdzvop9BinwY3TXCVxdm6giqBz1PgDXYUgzD5YQMMTa2tX6Qwm9xE2sT8kMpNkaYfRzo1hsbLfmK48FeZToj2Muh1fKQz9WtTaCJRHZF3pL5StMQqNsr6asGGQJpvMxwNqLxqDxQVDgsBA8F4DVLXLTU2S3LMHmtMz3Kz6q5344FcbxjGNGA8A1PUMNFBhGrYLhoN1pnewR1dBNhuwRxrEiZhap4tdnsiNgpR7BHh4A9araA5Nvz6Nj7arUCVQo2V9CfCggwBUV2hKCapGPfNzwW23mebaXYqGRHEWysy5YGJyXkCbE69giep4nWPKeYdLAf7RewtNMHobUDhgotgnMYY8',
                CustomJS: {
                    AdRamWins: function () {
                        
                    },
                    AdBlockWins: function () {
                        
                    }
                }
            }
        }
    }
}



/* Compressed by Closure*/
/*
 MIT
 @author Derek Brans
 @copyright 2016 Krux Digital, Inc
 http://mths.be/base64 v0.1.0 by @mathias | MIT license */
(function(root){var freeExports=typeof exports=="object"&&exports;var freeModule=typeof module=="object"&&module&&module.exports==freeExports&&module;var freeGlobal=typeof global=="object"&&global;if(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal)root=freeGlobal;var InvalidCharacterError=function(message){this.message=message};InvalidCharacterError.prototype=new Error;InvalidCharacterError.prototype.name="InvalidCharacterError";var error=function(message){throw new InvalidCharacterError(message);
};var TABLE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var REGEX_SPACE_CHARACTERS=/[\t\n\f\r ]/g;var decode=function(input){input=String(input).replace(REGEX_SPACE_CHARACTERS,"");var length=input.length;if(length%4==0){input=input.replace(/==?$/,"");length=input.length}if(length%4==1||/[^+a-zA-Z0-9/]/.test(input))error("Invalid character: the string to be decoded is not correctly encoded.");var bitCounter=0;var bitStorage;var buffer;var output="";var position=-1;while(++position<
length){buffer=TABLE.indexOf(input.charAt(position));bitStorage=bitCounter%4?bitStorage*64+buffer:buffer;if(bitCounter++%4)output+=String.fromCharCode(255&bitStorage>>(-2*bitCounter&6))}return output};var encode=function(input){input=String(input);if(/[^\0-\xFF]/.test(input))error("The string to be encoded contains characters outside of the "+"Latin1 range.");var padding=input.length%3;var output="";var position=-1;var a;var b;var c;var d;var buffer;var length=input.length-padding;while(++position<
length){a=input.charCodeAt(position)<<16;b=input.charCodeAt(++position)<<8;c=input.charCodeAt(++position);buffer=a+b+c;output+=TABLE.charAt(buffer>>18&63)+TABLE.charAt(buffer>>12&63)+TABLE.charAt(buffer>>6&63)+TABLE.charAt(buffer&63)}if(padding==2){a=input.charCodeAt(position)<<8;b=input.charCodeAt(++position);buffer=a+b;output+=TABLE.charAt(buffer>>10)+TABLE.charAt(buffer>>4&63)+TABLE.charAt(buffer<<2&63)+"="}else if(padding==1){buffer=input.charCodeAt(position);output+=TABLE.charAt(buffer>>2)+TABLE.charAt(buffer<<
4&63)+"=="}return output};var base64={"encode":encode,"decode":decode,"version":"0.1.0"};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)define(function(){return base64});else if(freeExports&&!freeExports.nodeType)if(freeModule)freeModule.exports=base64;else for(var key in base64)base64.hasOwnProperty(key)&&(freeExports[key]=base64[key]);else root.base64=base64})(this);
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.postscribe=e():t.postscribe=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(t){return t&&t.__esModule?t:{"default":t}}var o=n(1),
i=r(o);t.exports=i["default"]},function(t,e,n){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(){}function s(){var t=m.shift();if(t){var e=h.last(t);e.afterDequeue(),t.stream=a.apply(void 0,t),e.afterStreamStart()}}function a(t,e,n){function r(t){t=n.beforeWrite(t),g.write(t),n.afterWrite(t)}g=new p["default"](t,n),g.id=y++,g.name=
n.name||g.id,u.streams[g.name]=g;var o=t.ownerDocument,a={close:o.close,open:o.open,write:o.write,writeln:o.writeln};c(o,{close:i,open:i,write:function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];return r(e.join(""))},writeln:function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];return r(e.join("")+"\n")}});var f=g.win.onerror||i;return g.win.onerror=function(t,e,r){n.error({msg:t+" - "+e+": "+r}),f.apply(g.win,[t,e,r])},g.write(e,function(){c(o,
a),g.win.onerror=f,n.done(),g=null,s()}),g}function u(t,e,n){if(h.isFunction(n))n={done:n};else if("clear"===n)return m=[],g=null,void(y=0);n=h.defaults(n,d),t=/^#/.test(t)?window.document.getElementById(t.substr(1)):t.jquery?t[0]:t;var r=[t,e,n];return t.postscribe={cancel:function(){r.stream?r.stream.abort():r[1]=i}},n.beforeEnqueue(r),m.push(r),g||s(),t.postscribe}e.__esModule=!0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,
r)&&(t[r]=n[r])}return t};e["default"]=u;var f=n(2),p=o(f),l=n(4),h=r(l),d={afterAsync:i,afterDequeue:i,afterStreamStart:i,afterWrite:i,autoFix:!0,beforeEnqueue:i,beforeWriteToken:function(t){return t},beforeWrite:function(t){return t},done:i,error:function(t){throw t;},releaseAsync:!1},y=0,m=[],g=null;c(u,{streams:{},queue:m,WriteStream:p["default"]})},function(t,e,n){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);
return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){var n=d+e,r=t.getAttribute(n);return l.existy(r)?String(r):r}function a(t,e){var n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=d+e;l.existy(n)&&""!==n?t.setAttribute(r,n):t.removeAttribute(r)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];
for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=n(3),f=o(c),p=n(4),l=r(p),h=!1,d="data-ps-",y="ps-style",m="ps-script",g=function(){function t(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];i(this,t),this.root=e,this.options=n,this.doc=e.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new f["default"]("",{autoFix:n.autoFix}),this.actuals=[e],this.proxyHistory="",this.proxyRoot=this.doc.createElement(e.nodeName),
this.scriptStack=[],this.writeQueue=[],a(this.proxyRoot,"proxyof",0)}return t.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();l.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},t.prototype._callFunction=function(t){var e={type:"function",value:t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},t.prototype._writeImpl=function(t){this.parser.append(t);
for(var e=void 0,n=void 0,r=void 0,o=[];(e=this.parser.readToken())&&!(n=l.isScript(e))&&!(r=l.isStyle(e));)e=this.options.beforeWriteToken(e),e&&o.push(e);o.length>0&&this._writeStaticTokens(o),n&&this._handleScriptToken(e),r&&this._handleStyleToken(e)},t.prototype._writeStaticTokens=function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,h&&(e.proxyInnerHTML=this.proxyRoot.innerHTML),this._walkChunk(),h&&
(e.actualInnerHTML=this.root.innerHTML),e):null},t.prototype._buildChunk=function(t){for(var e=this.actuals.length,n=[],r=[],o=[],i=t.length,s=0;i>s;s++){var a=t[s],u=a.toString();if(n.push(u),a.attrs){if(!/^noscript$/i.test(a.tagName)){var c=e++;r.push(u.replace(/(\/?>)/," "+d+"id="+c+" $1")),a.attrs.id!==m&&a.attrs.id!==y&&o.push("atomicTag"===a.type?"":"<"+a.tagName+" "+d+"proxyof="+c+(a.unary?" />":">"))}}else r.push(u),o.push("endTag"===a.type?u:"")}return{tokens:t,raw:n.join(""),actual:r.join(""),
proxy:o.join("")}},t.prototype._walkChunk=function(){for(var t=void 0,e=[this.proxyRoot];l.existy(t=e.shift());){var n=1===t.nodeType,r=n&&s(t,"proxyof");if(!r){n&&(this.actuals[s(t,"id")]=t,a(t,"id"));var o=t.parentNode&&s(t.parentNode,"proxyof");o&&this.actuals[o].appendChild(t)}e.unshift.apply(e,l.toArray(t.childNodes))}},t.prototype._handleScriptToken=function(t){var e=this,n=this.parser.clear();n&&this.writeQueue.unshift(n),t.src=t.attrs.src||t.attrs.SRC,t=this.options.beforeWriteToken(t),t&&
(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},t.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",t=this.options.beforeWriteToken(t),t&&this._writeStyleToken(t),e&&this.write()},t.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,y),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=
t.content:e.appendChild(this.doc.createTextNode(t.content)))},t.prototype._buildStyle=function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),l.eachKey(t.attrs,function(t,n){e.setAttribute(t,n)}),e},t.prototype._insertCursor=function(t,e){this._writeImpl('<span id="'+e+'"/>');var n=this.doc.getElementById(e);n&&n.parentNode.replaceChild(t,n)},t.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},t.prototype._onScriptDone=
function(t){return t!==this.scriptStack[0]?void this.options.error({message:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},t.prototype._writeScriptToken=function(t,e){var n=this._buildScript(t),r=this._shouldRelease(n),o=this.options.afterAsync;t.src&&(n.src=t.src,this._scriptLoadHandler(n,r?o:function(){e(),o()}));
try{this._insertCursor(n,m),n.src&&!r||e()}catch(i$0){this.options.error(i$0),e()}},t.prototype._buildScript=function(t){var e=this.doc.createElement(t.tagName);return l.eachKey(t.attrs,function(t,n){e.setAttribute(t,n)}),t.content&&(e.text=t.content),e},t.prototype._scriptLoadHandler=function(t,e){function n(){t=t.onload=t.onreadystatechange=t.onerror=null}function r(){n(),e()}function o(t){n(),i(t),e()}var i=this.options.error;u(t,{onload:function(){return r()},onreadystatechange:function(){/^(loaded|complete)$/.test(t.readyState)&&
r()},onerror:function(){return o({message:"remote script failed "+t.src})}})},t.prototype._shouldRelease=function(t){var e=/^script$/i.test(t.nodeName);return!e||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},t}();e["default"]=g},function(t,e,n){!function(e,n){t.exports=n()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p=
"",e(0)}([function(t,e,n){function r(t){return t&&t.__esModule?t:{"default":t}}var o=n(1),i=r(o);t.exports=i["default"]},function(t,e,n){function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}e.__esModule=!0;var s=n(2),a=o(s),u=n(3),c=o(u),f=n(6),p=r(f),
l=n(5),h={comment:/^\x3c!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},d=function(){function t(){var e=this,n=arguments.length<=0||void 0===arguments[0]?"":arguments[0],r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];i(this,t),this.stream=n;var o=!1,s={};for(var u in a)a.hasOwnProperty(u)&&(r.autoFix&&(s[u+"Fix"]=!0),o=o||s[u+"Fix"]);o?(this._readToken=(0,p["default"])(this,s,function(){return e._readTokenImpl()}),this._peekToken=
(0,p["default"])(this,s,function(){return e._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return t.prototype.append=function(t){this.stream+=t},t.prototype.prepend=function(t){this.stream=t+this.stream},t.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();return t?(this.stream=this.stream.slice(t.length),t):void 0},t.prototype._peekTokenImpl=function(){for(var t in h)if(h.hasOwnProperty(t)&&h[t].test(this.stream)){var e=c[t](this.stream);
if(e)return"startTag"===e.type&&/script|style/i.test(e.tagName)?null:(e.text=this.stream.substr(0,e.length),e)}},t.prototype.peekToken=function(){return this._peekToken()},t.prototype.readToken=function(){return this._readToken()},t.prototype.readTokens=function(t){for(var e=void 0;e=this.readToken();)if(t[e.type]&&t[e.type](e)===!1)return},t.prototype.clear=function(){var t=this.stream;return this.stream="",t},t.prototype.rest=function(){return this.stream},t}();e["default"]=d,d.tokenToString=function(t){return t.toString()},
d.escapeAttributes=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=(0,l.escapeQuotes)(t[n],null));return e},d.supports=a;for(var y in a)a.hasOwnProperty(y)&&(d.browserHasFlaw=d.browserHasFlaw||!a[y]&&y)},function(t,e){e.__esModule=!0;var n=!1,r=!1,o=window.document.createElement("div");try{var i="<P><I></P></I>";o.innerHTML=i,e.tagSoup=n=o.innerHTML!==i}catch(s){e.tagSoup=n=!1}try{o.innerHTML="<P><i><P></P></i></P>",e.selfClose=r=2===o.childNodes.length}catch(s$1){e.selfClose=r=!1}o=
null,e.tagSoup=n,e.selfClose=r},function(t,e,n){function r(t){var e=t.indexOf("--\x3e");return e>=0?new c.CommentToken(t.substr(4,e-1),e+3):void 0}function o(t){var e=t.indexOf("<");return new c.CharsToken(e>=0?e:t.length)}function i(t){var e=t.indexOf(">");if(-1!==e){var n=t.match(f.startTag);if(n){var r=function(){var t={},e={},r=n[2];return n[2].replace(f.attr,function(n,o){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",e[arguments[5]]=!0):t[o]=arguments[2]||
arguments[3]||arguments[4]||f.fillAttr.test(o)&&o||"":t[o]="",r=r.replace(n,"")}),{v:new c.StartTagToken(n[1],n[0].length,t,e,!!n[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===("undefined"==typeof r?"undefined":u(r)))return r.v}}}function s(t){var e=i(t);if(e){var n=t.slice(e.length);if(n.match(new RegExp("</\\s*"+e.tagName+"\\s*>","i"))){var r=n.match(new RegExp("([\\s\\S]*?)</\\s*"+e.tagName+"\\s*>","i"));if(r)return new c.AtomicTagToken(e.tagName,r[0].length+e.length,
e.attrs,e.booleanAttrs,r[1])}}}function a(t){var e=t.match(f.endTag);return e?new c.EndTagToken(e[1],e[0].length):void 0}e.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};e.comment=r,e.chars=o,e.startTag=i,e.atomicTag=s,e.endTag=a;var c=n(4),f={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,
endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=
void 0;var o=n(5),i=(e.Token=function s(t,e){r(this,s),this.type=t,this.length=e,this.text=""},e.CommentToken=function(){function t(e,n){r(this,t),this.type="comment",this.length=n||(e?e.length:0),this.text="",this.content=e}return t.prototype.toString=function(){return"\x3c!--"+this.content},t}(),e.CharsToken=function(){function t(e){r(this,t),this.type="chars",this.length=e,this.text=""}return t.prototype.toString=function(){return this.text},t}(),e.TagToken=function(){function t(e,n,o,i,s){r(this,
t),this.type=e,this.length=o,this.text="",this.tagName=n,this.attrs=i,this.booleanAttrs=s,this.unary=!1,this.html5Unary=!1}return t.formatTag=function(t){var e=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n="<"+t.tagName;for(var r in t.attrs)if(t.attrs.hasOwnProperty(r)){n+=" "+r;var i=t.attrs[r];"undefined"!=typeof t.booleanAttrs&&"undefined"!=typeof t.booleanAttrs[r]||(n+='="'+(0,o.escapeQuotes)(i)+'"')}return t.rest&&(n+=" "+t.rest),n+=t.unary&&!t.html5Unary?"/>":">",void 0!==e&&
null!==e&&(n+=e+"</"+t.tagName+">"),n},t}());e.StartTagToken=function(){function t(e,n,o,i,s,a){r(this,t),this.type="startTag",this.length=n,this.text="",this.tagName=e,this.attrs=o,this.booleanAttrs=i,this.html5Unary=!1,this.unary=s,this.rest=a}return t.prototype.toString=function(){return i.formatTag(this)},t}(),e.AtomicTagToken=function(){function t(e,n,o,i,s){r(this,t),this.type="atomicTag",this.length=n,this.text="",this.tagName=e,this.attrs=o,this.booleanAttrs=i,this.unary=!1,this.html5Unary=
!1,this.content=s}return t.prototype.toString=function(){return i.formatTag(this,this.content)},t}(),e.EndTagToken=function(){function t(e,n){r(this,t),this.type="endTag",this.length=n,this.text="",this.tagName=e}return t.prototype.toString=function(){return"</"+this.tagName+">"},t}()},function(t,e){function n(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1];return t?t.replace(/([^"]*)"/g,function(t,e){return/\\/.test(e)?e+'"':e+'\\"'}):e}e.__esModule=!0,e.escapeQuotes=n},function(t,
e){function n(t){return t&&"startTag"===t.type&&(t.unary=a.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t}function r(t,e){var r=t.stream,o=n(e());return t.stream=r,o}function o(t,e){var n=e.pop();t.prepend("</"+n.tagName+">")}function i(){var t=[];return t.last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var e=this.last();return e&&e.tagName&&e.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var e,n=0;e=this[n];n++)if(e.tagName===t)return!0;
return!1},t}function s(t,e,s){function a(){var e=r(t,s);e&&f[e.type]&&f[e.type](e)}var c=i(),f={startTag:function(n){var r=n.tagName;"TR"===r.toUpperCase()&&c.lastTagNameEq("TABLE")?(t.prepend("<TBODY>"),a()):e.selfCloseFix&&u.test(r)&&c.containsTagName(r)?c.lastTagNameEq(r)?o(t,c):(t.prepend("</"+n.tagName+">"),a()):n.unary||c.push(n)},endTag:function(n){var r=c.last();r?e.tagSoupFix&&!c.lastTagNameEq(n.tagName)?o(t,c):c.pop():e.tagSoupFix&&(s(),a())}};return function(){return a(),n(s())}}e.__esModule=
!0,e["default"]=s;var a=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,u=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])})},function(t,e){function n(t){return void 0!==t&&null!==t}function r(t){return"function"==typeof t}function o(t,e,n){var r=void 0,o=t&&t.length||0;for(r=0;o>r;r++)e.call(n,t[r],r)}function i(t,e,n){for(var r in t)t.hasOwnProperty(r)&&e.call(n,r,t[r])}function s(t,e){return t=t||{},i(e,function(e,r){n(t[e])||(t[e]=r)}),t}function a(t){try{return Array.prototype.slice.call(t)}catch(e$2){var n=
function(){var e=[];return o(t,function(t){e.push(t)}),{v:e}}();if("object"===("undefined"==typeof n?"undefined":l(n)))return n.v}}function u(t){return t[t.length-1]}function c(t,e){return t&&("startTag"===t.type||"atomicTag"===t.type)&&"tagName"in t?!!~t.tagName.toLowerCase().indexOf(e):!1}function f(t){return c(t,"script")}function p(t){return c(t,"style")}e.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==
typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};e.existy=n,e.isFunction=r,e.each=o,e.eachKey=i,e.defaults=s,e.toArray=a,e.last=u,e.isTag=c,e.isScript=f,e.isStyle=p}])});
function AdRam(options){if(window.ram)return window.ram;var self=window.ram=this;var syncIsEnabled=options.syncIsEnabled;var host=options.host;this.wid=options.wid;this.round=0;this.detected=null;this.payloads=[];this.sessions=[];this.service={};this.eventList={onSatisfied:"V3.AdRam.Satisfied.Yes",onDissatisfied:"V3.AdRam.Satisfied.No"};this.registerService=function(service){this.service[service.name]=service};this.registerSession=function(data){this.sessions.push(data)};this.registerDetectionResult=
function(isDetected){this.detected=isDetected};this.registerSatisfation=function(flag){var metric=new self.service.Metric(self.sessions[0].sid);var data=metric.getMetricData();if(flag)metric.sendAdRamMetric(self.eventList.onSatisfied,data);else metric.sendAdRamMetric(self.eventList.onDissatisfied,data)};this.completeSession=function(sid){for(var i=0;i<this.sessions.length;i++)if(this.sessions[i].sid===sid){this.sessions[i].sessionIsCompleted=true;document.dispatchEvent(this.sessions[i].onCompeteSessionEvent)}};
this.subscribeToPrevSession=function(sid,handler){for(var i=0;i<this.sessions.length;i++)if(this.sessions[i].sid===sid)document.addEventListener(this.sessions[i-1].sid,handler)};this.addPayloadToQueue=function(event){this.payloads.push(event)};this.activatePayloads=function(){if(this.sessions.length===this.payloads.length)for(var i=0;i<this.payloads.length;i++)if(this.payloads[i])document.dispatchEvent(this.payloads[i])};this.synchronizeUser=function(wid){if(syncIsEnabled){var url=host+"/visitor/sync?WID="+
wid+"&Domain="+window.location.hostname;var xhr=new XMLHttpRequest;xhr.open("GET",url);xhr.send();xhr.onreadystatechange=function(){if(xhr.readyState===4)window.ram.aid=xhr.responseText}}};this.getReactLoaderOptions=function(){return{reactHost:options.react.url,fpIsEnabled:options.ext.fingerprinting.enabled}};this.getPrevSessionStatus=function(sid){for(var i=0;this.sessions.length;i++)if(this.sessions[i].sid===sid)return this.sessions[i-1].sessionIsCompleted};this.getBaitCollection=function(){return options.detect.baitCollection};
this.getSessionData=function(sid){for(var i=0;i<self.sessions.length;i++)if(self.sessions[i].sid===sid)return self.sessions[i]}}
function Logger(SID){var SUCCESS_COLOR="#177a1b";var FAILURE_COLOR="#7a1717";var INFO_COLOR="#414141";var loggingIsAvailable=getCookie("X-AdRam-Logging");this.failure=function(msg){if(loggingIsAvailable)console.log("%c ["+SID+"]["+getPassTime()+"ms]"+msg,"color: "+FAILURE_COLOR)};this.success=function(msg){if(loggingIsAvailable)console.log("%c ["+SID+"]["+getPassTime()+"ms]"+msg,"color: "+SUCCESS_COLOR)};this.info=function(msg){if(loggingIsAvailable)console.log("%c ["+SID+"]["+getPassTime()+"ms]"+
msg,"color: "+INFO_COLOR)};this.debug=function(msg){if(loggingIsAvailable)console.log(msg)};function getCookie(name){var matches=document.cookie.match(new RegExp("(?:^|; )"+name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return matches?decodeURIComponent(matches[1]):undefined}function getPassTime(){return performance.now().toFixed(2)}}
function Metric(sid,options){var ram=window.ram;this.sendGooMetric=function(metric){if(window.ga){if(options.adramGooIsEnabled&&options.adramGooID){window.ga("create",options.adramGooID,"auto","AdRamTracker");window.ga("AdRamTracker.send","event","AdRam",metric)}if(options.userGooIsEnabled&&options.userGooID){window.ga("create",options.userGooID,"auto","UserTracker");window.ga("UserTracker.send","event","AdRamPARAM",metric)}}};this.sendAdRamMetric=function(metric,data){if(options.adramMetricIsEnabled){var url=
options.adramMetricHost+"/metric/event?Type="+metric;var Dimensions=JSON.stringify({"Dimensions":data});var request=new XMLHttpRequest;request.open("POST",url,true);request.setRequestHeader("Content-Type","application/json; charset=utf-8");request.setRequestHeader("X-Requested-With","AdRam");request.withCredentials=true;request.send(Dimensions)}};this.sendGooCustomDimension=function(value){var adramData={};var userData={};if(window.ga){if(options.adramCustomDimensionIsEnabled&&options.adramCustomDimensionName){adramData[options.adramCustomDimensionName]=
value;window.ga("AdRamTracker.send","pageview",adramData)}if(options.userCustomDimensionIsEnabled&&options.userCustomDimensionName){userData[options.userCustomDimensionName]=value;window.ga("UserTracker.send","pageview",userData)}}};this.sendAnalyticPresenceMetric=function(data){var GAPresenceMetric="V3.AdRam.Detect.Presence.GA";var YMPresenceMetric="V3.AdRam.Detect.Presence.YM";setTimeout(function(){if(options.gaPresenceCheckingIsEnabled&&options.adramMetricIsEnabled&&checkAnalyticPresence().ga)sendData(data,
GAPresenceMetric);if(options.ymPresenceCheckingIsEnabled&&options.adramMetricIsEnabled&&checkAnalyticPresence().ym)sendData(data,YMPresenceMetric)},3E3);function checkAnalyticPresence(){var analytic={ga:false,ym:false};var gaScript=document.querySelector('script[src="https://www.google-analytics.com/analytics.js"]');var ymScript=document.querySelector('script[src="https://mc.yandex.ru/metrika/tag.js"]');if(window.ga||window.atag||gaScript)analytic.ga=true;if(window.Ya||ymScript)analytic.ym=true;return analytic}
function sendData(data,metric){var url=options.adramMetricHost+"/metric/event?Type="+metric;var Dimensions=JSON.stringify({"Dimensions":data});var request=new XMLHttpRequest;request.open("POST",url,true);request.setRequestHeader("Content-Type","application/json; charset=utf-8");request.setRequestHeader("X-Requested-With","AdRam");request.withCredentials=true;request.send(Dimensions)}};this.getMetricData=function(){var data=ram.getSessionData(sid);return{Domain:data.domain,Site:data.site,User:data.uid,
Placement:data.pid,Tag:data.tag,Mobile:data.isMobile,Detected:ram.detected}};this.getCustomDimension=function(){return ram.detected?"yes":"no"}}function Fingerprint(){var userHash=null;var userData=null;var fp=new Fingerprint2({excludeUserAgent:true,excludeJsFonts:true});fp.get(function(result,components){userData=components;userHash=result});this.getHash=function(){return userHash};this.getData=function(){return userData}}
function Payload(options){var setter=getSetter();var isAsyncAdding=false;var payloadElement=null;var parentElement=null;var logger=new ram.service.Logger(options.SID);var addPostScribe=ram.service.u;this.add=function(template){setter(template,options.target)};function setFloat(template,target){logger.info("AdRam."+options.name+".Position.Type: "+options.posType);logger.info("AdRam."+options.name+".Attaching.Target: "+target);if(typeof template==="object")document.body.appendChild(template);else addPostScribe(document.body,
template)}function setFixed(template,target){logger.info("AdRam."+options.name+".Position.Type: "+options.posType);if(target===null)if(typeof template==="object")document.body.appendChild(template);else addPostScribe(document.body,template);else{parentElement=target.parentNode;if(typeof template==="object")payloadElement=template;else{payloadElement=document.createElement("div");isAsyncAdding=true}if(parentElement.lastChild===target)parentElement.appendChild(payloadElement);else parentElement.insertBefore(payloadElement,
target.nextSibling);if(isAsyncAdding)addPostScribe(payloadElement,template)}}function setXPath(template,target){logger.info("AdRam."+options.name+".Position.Type: "+options.posType+" / "+options.XPathAddType);logger.info("AdRam."+options.name+".Attaching.Target: "+target);try{var XPathTarget=document.evaluate(target,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(e){logger.failure("AdRam."+options.name+".Attaching.Target: Incorrect XPAth");XPathTarget=null}switch(options.XPathAddType){case "Append":setXPathAppend(template);
break;case "AppendAsChild":setXPathAppendAsChild(template);break;case "Prepend":setXPathPrepend(template);break;case "Replace":setXPathReplace(template);break}function setXPathAppend(template){if(typeof template==="object")payloadElement=template;else{payloadElement=document.createElement("div");isAsyncAdding=true}if(XPathTarget===null)if(options.xPathOnFailure!=="Ignore"){document.body.appendChild(payloadElement);logger.success("AdRam."+options.name+".Attaching.Result: Code Attached to body")}else{logger.failure("AdRam."+
options.name+".Attaching.Result: Ignore / Unable to find selected XPath");logger.failure("AdRam."+options.name+".Attaching.Result: Protected Code is NOT Attached")}else{parentElement=XPathTarget.parentNode;if(parentElement.lastChild===XPathTarget)parentElement.appendChild(payloadElement);else parentElement.insertBefore(payloadElement,XPathTarget.nextSibling);logger.success("AdRam."+options.name+".Attaching.Result: Code Attached")}if(isAsyncAdding)addPostScribe(payloadElement,template)}function setXPathAppendAsChild(template){if(typeof template===
"object")payloadElement=template;else{payloadElement=document.createElement("div");isAsyncAdding=true}if(XPathTarget===null)if(options.xPathOnFailure!=="Ignore"){document.body.appendChild(payloadElement);logger.success("AdRam."+options.name+".Attaching.Result: Code Attached to body")}else{logger.failure("AdRam."+options.name+".Attaching.Result: Ignore / Unable to find selected XPath");logger.failure("AdRam."+options.name+".Attaching.Result: Protected Code is NOT Attached")}else{XPathTarget.appendChild(payloadElement);
logger.success("AdRam."+options.name+".Attaching.Result: Code Attached")}if(isAsyncAdding)addPostScribe(payloadElement,template)}function setXPathPrepend(template){if(typeof template==="object")payloadElement=template;else{payloadElement=document.createElement("div");isAsyncAdding=true}if(XPathTarget===null)if(options.xPathOnFailure!=="Ignore"){document.body.appendChild(payloadElement);logger.success("AdRam."+options.name+".Attaching.Result: Code Attached to body")}else{logger.failure("AdRam."+options.name+
".Attaching.Result: Ignore / Unable to find selected XPath");logger.failure("AdRam."+options.name+".Attaching.Result: Protected Code is NOT Attached")}else{parentElement=XPathTarget.parentNode;parentElement.insertBefore(payloadElement,XPathTarget);logger.success("AdRam."+options.name+".Attaching.Result: Code Attached")}if(isAsyncAdding)addPostScribe(payloadElement,template)}function setXPathReplace(template){if(typeof template==="object")payloadElement=template;else{payloadElement=document.createElement("div");
isAsyncAdding=true}if(XPathTarget===null)if(options.xPathOnFailure!=="Ignore"){document.body.appendChild(payloadElement);logger.success("AdRam."+options.name+".Attaching.Result: Code Attached to body")}else{logger.failure("AdRam."+options.name+".Attaching.Result: Ignore / Unable to find selected XPath");logger.failure("AdRam."+options.name+".Attaching.Result: Protected Code is NOT Attached")}else{parentElement=XPathTarget.parentNode;parentElement.replaceChild(payloadElement,XPathTarget);logger.success("AdRam."+
options.name+".Attaching.Result: Code Attached")}if(isAsyncAdding)addPostScribe(payloadElement,template)}}function getSetter(){var setters={"Float":setFloat,"Fixed":setFixed,"XPath":setXPath};return setters[options.posType]}}
function ReactLoader(sid,options){var logger=new Logger(sid);var ram=window.ram;var eventList={activateSuccessCode:"AdRam.Detect.React.Success.Start-"+sid,activateFailureCode:"AdRam.Detect.React.Failure.Start-"+sid,onSucceedReactLoading:"V2.AdRam.React.Succeed-"+sid,onFailureReactLoading:"V2.AdRam.React.Failed-"+sid};this.getEvents=function(){return eventList};this.load=function(activation){var onSuccessLoadReact=new CustomEvent(eventList.onSucceedReactLoading);var onFailureLoadReact=new CustomEvent(eventList.onFailureReactLoading);
var reactReqParam=getReactReqParam();var path=getReactCodePath(reactReqParam.free,reactReqParam.cryptic);activateReactCode(path,activation,onSuccessLoadReact,onFailureLoadReact)};function activateReactCode(path,activation,onSuccess,onFailure){var activationEvent=new CustomEvent(activation);var script=document.createElement("script");script.src=path;script.onload=function(){document.dispatchEvent(onSuccess);ram.addPayloadToQueue(activationEvent);ram.activatePayloads()};script.onerror=function(){logger.failure("React.Loading.Finished.Failed: "+
performance.now().toFixed(2)+" ms");document.dispatchEvent(onFailure);ram.addPayloadToQueue(null);ram.activatePayloads()};logger.info("React.Loading.Started: "+performance.now().toFixed(2)+" ms");document.body.appendChild(script)}function getReactCodePath(freeData,crypticData){var path=options.reactHost+"?";var fd="";var cd="";for(var freeKey in freeData)if(freeData.hasOwnProperty(freeKey))fd+=freeKey+"="+freeData[freeKey]+"&";for(var crypticKey in crypticData)if(crypticData.hasOwnProperty(crypticKey))cd+=
crypticKey+"="+crypticData[crypticKey]+"&";fd=fd.slice(0,fd.lastIndexOf("&"));cd=cd.slice(0,cd.lastIndexOf("&"));var encrypted=cryptData(cd);return path+fd+"&"+"data="+encrypted.data+"&key="+encrypted.key}function cryptData(data){var encrypted="";var key=generateKey(0,255);for(var i=0;i<data.length;i++){var encryptedCharCode=(data.charCodeAt(i)^key).toString(16);encrypted+=encryptedCharCode.length===1?"0"+encryptedCharCode:encryptedCharCode}return{data:encrypted,key:key}}function generateKey(min,
max){var random=min-.5+Math.random()*(max-min+1);return Math.round(random)}function getReactReqParam(){var data=ram.getSessionData(sid);var sendingData={cryptic:{"Site":data.site,"User":data.uid,"Placement":data.pid,"Tag":data.tag,"Mobile":data.isMobile,"Detected":ram.detected,"Origin":data.origin},free:{"Domain":data.domain,"WID":data.wid}};if(options.fpIsEnabled&&window.Fingerprint2)sendingData.cryptic["Fingerprint"]=(new Fingerprint).getHash();return sendingData}}
function FaviconBaiting(SID,options){var logger=new Logger(SID);var baitCollection=options.baitCollection;var baitClass="bait"+SID;var loadedBaits=0;var events={onBaitingSucceed:"AdRam.Detect.Baiting.Succeed-"+SID,onBaitingFailed:"AdRam.Detect.Baiting.Failed-"+SID};var onBaitingSucceed=new CustomEvent(events.onBaitingSucceed);var onBaitingFailed=new CustomEvent(events.onBaitingFailed);this.getEvents=function(){return events};this.getBaitClass=function(){return baitClass};this.apply=function(){logger.info("Detection.Baiting.Started");
for(var i=0;i<baitCollection.length;i++){var baitElement=document.createElement("img");baitElement.style.display="none";baitElement.src=baitCollection[i].URL;baitElement.classList.add(baitClass);baitElement.onload=function(){logger.success("Favicon.Loading.Finished.Succeed("+this.src+")");loadedBaits+=1;if(loadedBaits===baitCollection.length)document.dispatchEvent(onBaitingFailed)};baitElement.onerror=function(){logger.failure("Favicon.Loading.Finished.Failed("+this.src+")");document.dispatchEvent(onBaitingSucceed)};
logger.info("Favicon.Loading.Started("+baitElement.src+")");document.head.appendChild(baitElement)}}}
function GooAnalyticBaiting(SID){var GooAnalyticScript=document.querySelector('script[src="https://www.google-analytics.com/analytics.js"]');var isUsed=false;var eventList={onBaitingSucceed:"AdRam.Detect.Method.BarrierFound-"+SID,onBaitingFailed:"AdRam.Detect.Method.BarrierNotFound-"+SID,onFinished:"AdRam.Detect.Method.Finished-"+SID};var onBarrierFound=new CustomEvent(eventList.onBaitingSucceed);var onBarrierNotFound=new CustomEvent(eventList.onBaitingFailed);var onFinished=new CustomEvent(eventList.onFinished);
this.getEvents=function(){return eventList};this.apply=function(){if(isUsed){document.dispatchEvent(onFinished);return}isUsed=true;if(window.ga){window.AR.setSessionData(SID,{prop:"ga",value:true});document.dispatchEvent(onBarrierNotFound)}else if(GooAnalyticScript&&!window.ga){window.AR.setSessionData(SID,{prop:"ga",value:false});document.dispatchEvent(onBarrierFound)}else{var baitElement=document.createElement("script");baitElement.src="https://www.google-analytics.com/analytics.js";baitElement.onload=
function(){window.AR.setSessionData(SID,{prop:"ga",value:true});document.dispatchEvent(onBarrierNotFound)};baitElement.onerror=function(){window.AR.setSessionData(SID,{prop:"ga",value:false});document.dispatchEvent(onBarrierFound)};document.body.appendChild(baitElement)}}}
function Detector(sid,options){var logger=new Logger(sid);var method=new FaviconBaiting(sid,options);var events={onDetected:"V2.AdRam.Detect.AdBlock.Succeed-"+sid,onUndetected:"V2.AdRam.Detect.AdBlock.Failed-"+sid,called:"V2.AdRam.Detect.Called-"+sid};var methodEvents=method.getEvents();var baitClass=method.getBaitClass();var onDetected=new CustomEvent(events.onDetected);var onUndetected=new CustomEvent(events.onUndetected);this.getEvents=function(){return events};this.start=function(){document.addEventListener(methodEvents.onBaitingSucceed,
registerAdBlockAvailability);document.addEventListener(methodEvents.onBaitingFailed,registerAdBlockAbsence);method.apply()};function registerAdBlockAvailability(){logger.success("Detection.Baiting.Finished.Succeed");cleanUpBaits(baitClass);stopDetection();document.dispatchEvent(onDetected)}function registerAdBlockAbsence(){logger.failure("Detection.Baiting.Finished.Failed");cleanUpBaits(baitClass);stopDetection();document.dispatchEvent(onUndetected)}function cleanUpBaits(baitClass){var selector="."+
baitClass;var baitElements=document.querySelectorAll(selector);for(var i=0;i<baitElements.length;i++){var parent=baitElements[i].parentElement;parent.removeChild(baitElements[i])}}function stopDetection(){document.removeEventListener(methodEvents.onBaitingSucceed,registerAdBlockAvailability);document.removeEventListener(methodEvents.onBaitingFailed,registerAdBlockAvailability)}}
(function(){var currentScript=document.currentScript;var currentDomain=window.location.hostname;var currentURI=window.location.href;var currentSessionID=generateSessionId();var isMobileUserAgent=checkMobileUserAgent();var prevSessionIsCompleted=false;var currentSessionIsReacted=false;var currentSessionIsCompleted=false;var onDetectorLoadedEvent=new CustomEvent("Detector.Loaded");var onCompeteSessionEvent=new CustomEvent(currentSessionID);var detectionStarted=null;var detectionFinished=null;var options=
new Options;var ram=new AdRam({wid:options.AdRam.WID,syncIsEnabled:options.AdRam.Visitor.Sync.Enabled,host:options.HTTP.Proto+options.HTTP.Host});var detector=new Detector(currentSessionID,{baitCollection:options.AdRam.Detect.AdBlock.Favicons.Selected});var react=new ReactLoader(currentSessionID,{reactHost:options.AdRam.React.URL,fpIsEnabled:options.AdRam.Detect.Fingerprinting});var metric=new Metric(currentSessionID,{adramMetricIsEnabled:options.AdRam.Detect.Metrics.Enabled,adramGooIsEnabled:options.AdRam.Detect.Google.Internal.Enabled,
adramCustomDimensionIsEnabled:options.AdRam.Detect.Custom.Internal.Enabled,adramGooID:options.AdRam.Detect.Google.Internal.ID,adramCustomDimensionName:options.AdRam.Detect.Custom.Internal.Dimension,userGooIsEnabled:options.AdRam.Detect.Google.External.Enabled,userCustomDimensionIsEnabled:options.AdRam.Detect.Custom.External.Enabled,userCustomDimensionName:options.AdRam.Detect.Custom.External.Dimension,userGooID:options.AdRam.Detect.Google.External.ID,adramMetricHost:options.HTTP.Proto+options.HTTP.Host,
gaPresenceCheckingIsEnabled:options.AdRam.Detect.Presence.GA,ymPresenceCheckingIsEnabled:options.AdRam.Detect.Presence.YM});var logger=new Logger(currentSessionID);var reactEvent=react.getEvents();var detectEvent=detector.getEvents();logger.info("AdRam.Started");logger.info("AdRam.Environment: "+options.Environment);logger.info("AdRam.Detect.Version: "+options.AdRam.Detect.Version);logger.info("AdRam.Placement.Modified: "+options.AdRam.Modified);logger.info("AdRam.WID: "+options.AdRam.WID);ram.registerService(Logger);
ram.registerService(Payload);ram.registerService(Metric);ram.registerService(postscribe);ram.registerSession({isMobile:isMobileUserAgent,fpIsEnabled:options.AdRam.Detect.Fingerprinting,sessionIsReacted:currentSessionIsReacted,sessionIsCompleted:currentSessionIsCompleted,onCompeteSessionEvent:onCompeteSessionEvent,sid:currentSessionID,pid:options.AdRam.ID,uid:options.AdRam.User,site:options.AdRam.Placement.Site,tag:options.Tag,adRamScriptElem:currentScript,origin:currentURI,domain:currentDomain});
document.addEventListener("Detector.Loaded",function(){metric.sendAnalyticPresenceMetric(metric.getMetricData())});document.addEventListener(reactEvent.onSucceedReactLoading,function(event){metric.sendAdRamMetric(getTrimmedMetric(event.type),metric.getMetricData());metric.sendGooMetric(getTrimmedMetric(event.type))});document.addEventListener(reactEvent.onFailureReactLoading,function(event){metric.sendAdRamMetric(getTrimmedMetric(event.type),metric.getMetricData());metric.sendGooMetric(getTrimmedMetric(event.type))});
document.dispatchEvent(onDetectorLoadedEvent);init();function init(){ram.round++;if(ram.round===1){logger.info("AdRam.Detection.Started");detectionStarted=performance.now().toFixed(2);detectAndReact()}else{prevSessionIsCompleted=ram.getPrevSessionStatus(currentSessionID);if(prevSessionIsCompleted)reactWithoutDetect();else ram.subscribeToPrevSession(currentSessionID,reactWithoutDetect)}}function detectAndReact(){metric.sendAdRamMetric(getTrimmedMetric(detectEvent.called),metric.getMetricData());metric.sendGooMetric(getTrimmedMetric(detectEvent.called));
document.addEventListener(detectEvent.onDetected,function(event){logger.success("Detection.Finished.Succeed");detectionFinished=performance.now().toFixed(2);ram.registerDetectionResult(true);ram.completeSession(currentSessionID);metric.sendAdRamMetric(getTrimmedMetric(event.type),metric.getMetricData());metric.sendGooMetric(getTrimmedMetric(event.type));metric.sendGooCustomDimension(metric.getCustomDimension());sendSLAMetric();react.load(reactEvent.activateSuccessCode);options.AdRam.React.CustomJS.AdRamWins()});
document.addEventListener(detectEvent.onUndetected,function(event){logger.failure("Detection.Finished.Failed");detectionFinished=performance.now().toFixed(2);ram.registerDetectionResult(false);ram.completeSession(currentSessionID);metric.sendAdRamMetric(getTrimmedMetric(event.type),metric.getMetricData());metric.sendGooMetric(getTrimmedMetric(event.type));metric.sendGooCustomDimension(metric.getCustomDimension());sendSLAMetric();if(options.AdRam.Detect.ReactOnFailure)react.load(reactEvent.activateFailureCode);
else options.AdRam.React.CustomJS.AdBlockWins()});detector.start()}function reactWithoutDetect(){if(ram.detected)react.load(reactEvent.activateSuccessCode);else if(options.AdRam.Detect.ReactOnFailure)react.load(reactEvent.activateFailureCode);ram.completeSession(currentSessionID)}function generateSessionId(){var id="";for(var i=0;i<8;i++){var random=Math.round(97-.5+Math.random()*(122-97+1));id+=String.fromCharCode(random)}return id}function getTrimmedMetric(str){return str.split("-")[0]}function checkMobileUserAgent(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}
function sendSLAMetric(){var lim=options.AdRam.Detect.SLA.Time;var diff=detectionFinished-detectionStarted;if(diff>lim){logger.failure("AdRam.SLA.Failed: "+diff.toFixed(0)+" > "+lim);metric.sendAdRamMetric("V3.AdRam.Detect.SLA.Failed",metric.getMetricData())}else{logger.success("AdRam.SLA.Passed: "+diff.toFixed(0)+" < "+lim);metric.sendAdRamMetric("V3.AdRam.Detect.SLA.Passed",metric.getMetricData())}}})();
})();