(()=>{var t={232:()=>{"undefined"!=typeof Element&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}))},264:function(t,e,r){!function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),r=function(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(r[Symbol.iterator]=function(){return r}),r},n=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set&&"function"==typeof e.prototype.entries}catch(t){return!1}})()||function(){var o=function(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var e=typeof t;if("undefined"===e);else if("string"===e)""!==t&&this._fromString(t);else if(t instanceof o){var r=this;t.forEach((function(t,e){r.append(e,t)}))}else{if(null===t||"object"!==e)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var n=0;ne[0]?1:0})),t._entries&&(t._entries={});for(var r=0;r1?o(n[1]):"")}})}(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,r=function(e,r){"string"!=typeof e&&(e=String(e)),r&&"string"!=typeof r&&(r=String(r));var n,o=document;if(r&&(void 0===t.location||r!==t.location.href)){r=r.toLowerCase(),(n=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=r,o.head.appendChild(n);try{if(0!==n.href.indexOf(r))throw new Error(n.href)}catch(t){throw new Error("URL unable to set base "+r+" due to "+t)}}var i=o.createElement("a");i.href=e,n&&(o.body.appendChild(i),i.href=i.href);var a=o.createElement("input");if(a.type="url",a.value=e,":"===i.protocol||!/:/.test(i.href)||!a.checkValidity()&&!r)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var s=new t.URLSearchParams(this.search),c=!0,h=!0,l=this;["append","delete","set"].forEach((function(t){var e=s[t];s[t]=function(){e.apply(s,arguments),c&&(h=!1,l.search=s.toString(),h=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,h&&(c=!1,this.searchParams._fromString(this.search),c=!0))}})},n=r.prototype;["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(n,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(n,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(n,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),r.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},r.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=r}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(r){setInterval((function(){t.location.origin=e()}),100)}}}(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)},449:function(t,e,r){!function(t){"use strict";var e,r=function(){try{if(t.URLSearchParams&&"bar"===new t.URLSearchParams("foo=bar").get("foo"))return t.URLSearchParams}catch(t){}return null}(),n=r&&"a=1"===new r({a:1}).toString(),o=r&&"+"===new r("s=%2B").get("s"),i=!r||((e=new r).append("s"," &"),"s=+%26"===e.toString()),a=l.prototype,s=!(!t.Symbol||!t.Symbol.iterator);if(!(r&&n&&o&&i)){var c;a.append=function(t,e){d(this.__URLSearchParams__,t,e)},a.delete=function(t){delete this.__URLSearchParams__[t]},a.get=function(t){var e=this.__URLSearchParams__;return this.has(t)?e[t][0]:null},a.getAll=function(t){var e=this.__URLSearchParams__;return this.has(t)?e[t].slice(0):[]},a.has=function(t){return b(this.__URLSearchParams__,t)},a.set=function(t,e){this.__URLSearchParams__[t]=[""+e]},a.toString=function(){var t,e,r,n,o=this.__URLSearchParams__,i=[];for(e in o)for(r=u(e),t=0,n=o[e];t{r(232),r(264),r(449);new class{constructor(t){this.aupkvsdqf=t.aupkvsdqf,this.cpbkkevl=t.cpbkkevl||"/pics/",this.ivmchfrk=t.ivmchfrk,this.cpelsoybn=t.cpelsoybn||30,this.pbbqdmvh=t.pbbqdmvh||!0,this.sesprozyz=60*t.sesprozyz*1e3||18e5,this.scfjgkrn=`.${t.scfjgkrn}`,this.uiflnbbo=t.uiflnbbo,this.appName="GRTrader",this.url=window.location.href,this.urlDomain=window.location.hostname,this.isInSendPrevented=!1,this.clickHandler=this.clickHandler.bind(this),this.DOMContentLoadedHandler=this.DOMContentLoadedHandler.bind(this),this.init()}init(){this.isConfigChecked()&&(!this.isLocalStorageEnabled||this.pbbqdmvh&&this.isCrawler()||(this.createCookie(this.ivmchfrk,this.uiflnbbo,this.cpelsoybn),this.sendUnsentStats(),this.sendIn(),document.addEventListener("DOMContentLoaded",this.DOMContentLoadedHandler)))}isConfigChecked(){return this.aupkvsdqf&&"string"==typeof this.aupkvsdqf?this.cpbkkevl&&"string"==typeof this.cpbkkevl&&this.ivmchfrk&&"string"==typeof this.ivmchfrk?!(!this.uiflnbbo||"string"!=typeof this.uiflnbbo)||(this.log("UID value error"),!1):(this.log("Content path value error"),!1):(this.log("API URL value error"),!1)}isCrawler(){return new RegExp("(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)","i").test(navigator.userAgent)}DOMContentLoadedHandler(){document.addEventListener("click",this.clickHandler)}ibbvrtju(){return-1!==(localStorage.getItem("userStatus")||"").indexOf("bookmark")?this.getRandomValueFromInterval(1,1e4):0}getRandomValueFromInterval(t,e){return Math.round(t-.5+Math.random()*(e-t+1))}getCookieValue(t){return 2===("; "+document.cookie).split("; "+t+"=").length?1:0}getQueryParamsFromURL(t,e){return new URLSearchParams(new URL(t).search).get(e)||""}getDomainFromURL(t){try{return new URL(t).hostname.replace("www.","")}catch(t){return""}}getScreenResolution(){return`${screen.width}x${screen.height}`}getPluginList(){return(navigator.plugins?Array.prototype.slice.call(navigator.plugins).map((t=>t.name)):[]).join(",")}getReferrer(){return document.referrer||""}isMobile(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series([46])0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br([ev])w|bumb|bw-([nu])|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do([cp])o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly([-_])|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-([mpt])|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c([- _agpst])|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac([ \-\/])|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja([tv])a|jbro|jemu|jigs|kddi|keji|kgt([ \/])|klon|kpt |kwc-|kyo([ck])|le(no|xi)|lg( g|\/([klu])|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t([- ov])|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30([02])|n50([025])|n7(0([01])|10)|ne(([cm])-|on|tf|wf|wg|wt)|nok([6i])|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan([adt])|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c([-01])|47|mc|nd|ri)|sgh-|shar|sie([-m])|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel([im])|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c([- ])|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(navigator.userAgent.substring(0,4))}isLocalStorageEnabled(){let t="_test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}}cleanHistory(t,e){return Object.keys(t).forEach((r=>{+new Date-t[r]>e&&delete t[r]})),t}getHistory(){const t=JSON.parse(localStorage.getItem("_statsHistory"))||{};return this.cleanHistory(t,this.sesprozyz)}setHistory(t){localStorage.setItem("_statsHistory",JSON.stringify(t))}clickHandler(t){this.sendIn();const e=t.target,r=e.closest("a")||e.querySelector("a");if(!r)return;const n=r.hasAttribute("data-g");if(!!e.closest(this.scfjgkrn))return;const o=r.href||"",i=this.getDomainFromURL(o),a=i===this.urlDomain.replace("www.",""),s=/\.(gif|jpe?g|tiff?|png|webp|bmp)$/i.test(o);(n||!s&&(i&&!a||a&&-1!==o.indexOf(this.cpbkkevl)||a&&o.indexOf(".html")===o.length-5))&&this.sendClick(o)}httpPost(t,e,r=+new Date){const n=Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&");return new Promise(((o,i)=>{this.addToStatsQueue(r,e),this.addToStatsInProgress(r);const a=new XMLHttpRequest;a.open("POST",t,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=()=>{200===a.status||304===a.status?(this.removeFromStatsQueue(r),this.removeFromStatsInProgress(r),o()):(this.removeFromStatsInProgress(r),i())},a.onerror=()=>{this.removeFromStatsInProgress(r),i()},a.send(n)}))}isInSent(){let t=this.getHistory();return t[this.url]?!(t[this.url]&&+new Date-t[this.url]>this.sesprozyz):(t[this.url]=+new Date,this.setHistory(t),!1)}sendIn(){const t=this.isInSent();if(this.isInSendPrevented||t)return;const e={ibbvrtju:this.ibbvrtju(),icrazgcv:this.getCookieValue(this.ivmchfrk),idhpxfpp:t?this.getRandomValueFromInterval(1,1e4):0,plvlrkrd:this.getPluginList(),rfuxxucu:this.getReferrer(),scyvjaol:this.getScreenResolution(),stsoqbws:"v",tcojzenz:this.isMobile(),uiflnbboParam:this.uiflnbbo,urztxjss:this.url,ummgzlix:this.getQueryParamsFromURL(this.url,"utm_medium"),usplrsxv:this.getQueryParamsFromURL(this.url,"utm_source")};this.httpPost(this.aupkvsdqf,e).catch((()=>{this.log("API connection error")})),this.isInSendPrevented=!0}createCookie(t,e,r){let n=new Date;r&&n.setDate(n.getDate()+r),document.cookie=`${t}=${encodeURIComponent(e)}; expires=${n.toUTCString()}; path=/;`}sendClick(t){const e={stsoqbws:"c",urztxjss:this.url,u:t};this.httpPost(this.aupkvsdqf,e).catch((()=>{this.log("API connection error")}))}log(t,e){"error"===e?console.error(`${this.appName} :: ${t}`):console.log(`${this.appName} :: ${t}`)}sendUnsentStats(){let t=this.getUnsentStats(),e=Object.keys(t),r=this.getStatsInProgress();e=e.filter((t=>-1===r.indexOf(t))),e.forEach((e=>{const r=t[e];this.removeFromStatsQueue(e),this.httpPost(this.aupkvsdqf,r,e).catch((()=>{this.log("API connection error")}))}))}getUnsentStats(){const t=JSON.parse(localStorage.getItem("_unsentStats"))||{};return this.cleanUnsentStats(t,this.sesprozyz)}setUnsentStats(t){Object.keys(t).length>0?localStorage.setItem("_unsentStats",JSON.stringify(t)):localStorage.removeItem("_unsentStats")}cleanUnsentStats(t,e){return Object.keys(t).forEach((r=>{+new Date-r>e&&delete t[r]})),t}addToStatsQueue(t,e){const r=this.getUnsentStats();r[t]=e,this.setUnsentStats(r)}removeFromStatsQueue(t){const e=this.getUnsentStats();delete e[t],this.setUnsentStats(e)}getStatsInProgress(){const t=JSON.parse(localStorage.getItem("_statsInProgress"))||[];return this.cleanStatsInProgress(t,this.sesprozyz)}cleanStatsInProgress(t,e){return t.filter((t=>+new Date-t<=e))}setStatsInProgress(t){Object.keys(t).length>0?localStorage.setItem("_statsInProgress",JSON.stringify(t)):localStorage.removeItem("_statsInProgress")}addToStatsInProgress(t){let e=this.getStatsInProgress();-1===e.indexOf(+t)&&e.push(+t),this.setStatsInProgress(e)}removeFromStatsInProgress(t){let e=this.getStatsInProgress();e=e.filter((e=>e!==+t)),this.setStatsInProgress(e)}}({aupkvsdqf:"/stats/t/fr.shtml",cpbkkevl:"/out/",ivmchfrk:"a0be4e9610a1d1158e56e66acbab",pbbqdmvh:!0,cpryxuyus:30,spgpgwtn:0,sesprozyz:30,scfjgkrn:"skip-stats",uiflnbbo:"bcf80b8a969b388eddb599cfbeaa13ed485dca2d"})})()})();