core/skin/m2.yurecnt.ru/js/pluso/collect_pluso.js

1 line
16 KiB
JavaScript
Raw Normal View History

2023-04-09 19:52:26 +05:00
!function(t){"use strict";function e(){var e=t.document.getElementsByTagName("\x74\x69\x74\x6c\x65"),o="";return e&&e.length&&e.length>0&&(o=e[0].innerHTML),m.trim(o).substring(0,s)}function o(){if("\x76\x6b\x2e\x63\x6f\x6d"===t.location.host&&t.vk&&t.vk.id)return"\x26\x76\x6b\x69\x64\x3d"+t.vk.id;if(("\x66\x6c\x69\x72\x63\x68\x69\x2e\x72\x75"===t.location.host||"\x70\x6c\x69\x72\x74\x2e\x72\x75"===t.location.host)&&t.App&&t.App.context&&t.App.context.userId)return"\x26\x66\x6c\x69\x72\x63\x68\x69\x69\x64\x3d"+t.App.context.userId;if("\x77\x77\x77\x2e\x6c\x69\x6e\x6b\x65\x64\x69\x6e\x2e\x63\x6f\x6d"===t.location.host){var e,o=t.document.querySelector("\x5b\x68\x72\x65\x66\x2a\x3d\x6e\x61\x76\x5f\x72\x65\x73\x70\x6f\x6e\x73\x69\x76\x65\x5f\x74\x61\x62\x5f\x70\x72\x6f\x66\x69\x6c\x65\x5d");if(o&&o.getAttribute("href")&&(e=o.getAttribute("href").match(/\d+/)))return"\x26\x6c\x69\x6e\x6b\x65\x64\x69\x6e\x69\x64\x3d"+e[0]}if(t.location.host.indexOf("\x6d\x6f\x69\x6b\x72\x75\x67\x2e\x72\x75")>-1){var n=t.document.cookie.match(/yandexuid=(\d+)/);if(n&&n[1])return"\x26\x6d\x6f\x69\x6b\x72\x75\x67\x69\x64\x3d"+n[1]}if("\x77\x77\x77\x2e\x6f\x64\x6e\x6f\x6b\x6c\x61\x73\x73\x6e\x69\x6b\x69\x2e\x72\x75"===t.location.host){var i,r=t.document.getElementsByClassName("\x6d\x63\x74\x63\x5f\x6e\x61\x76\x4d\x65\x6e\x75\x53\x65\x63");if(r.length>1&&r[1].getAttribute("href")&&(i=r[1].getAttribute("href").match(/\d+/)))return"\x26\x6f\x64\x6e\x6f\x6b\x6c\x61\x73\x73\x6e\x69\x6b\x69\x69\x64\x3d"+i[0]}if("\x77\x77\x77\x2e\x66\x61\x63\x65\x62\x6f\x6f\x6b\x2e\x63\x6f\x6d"===t.location.host){var a,s=t.document.querySelector("\x5b\x69\x64\x5e\x3d\x70\x72\x6f\x66\x69\x6c\x65\x5f\x70\x69\x63\x5f\x68\x65\x61\x64\x65\x72\x5f\x5d");if(s&&s.id&&(a=s.id.match(/\d+/)))return"\x26\x66\x61\x63\x65\x62\x6f\x6f\x6b\x69\x64\x3d"+a[0]}return""}function n(){var e,o,n,i=t.FCTz||t.FCTz,r={collect:"loadFacetzCollector",collect_ua:"\x6c\x6f\x61\x64\x46\x61\x63\x65\x74\x7a\x43\x6f\x6c\x6c\x65\x63\x74\x6f\x72\x55\x41",collect_uac:"\x6c\x6f\x61\x64\x46\x61\x63\x65\x74\x7a\x43\x6f\x6c\x6c\x65\x63\x74\x6f\x72\x55\x41\x43",collect_nua:"loadFacetzCollectorNUA",collect_nc:"loadFacetzCollectorNC",collect_nuac:"loadFacetzCollectorNUAC",track:"loadFacetzTracker",retargeting:"loadFacetzRetargeting"};t[i]&&t[i].q&&t[i].q.length&&(e=t[i].q,o=e.shift(),o&&o.length&&(n=b&&b[o[0]]&&"function"==typeof b[o[0]]?b[o[0]]:t[o[0]]||t[r[o[0]]],"function"==typeof n&&n.apply(t,Array.prototype.slice.call(o,1))))}var i,r,a="\x2f\x2f\x66\x72\x6f\x6e\x74\x2e\x66\x61\x63\x65\x74\x7a\x2e\x6e\x65\x74",s=255,c=30,u=encodeURIComponent,l=[{path:/^https?:\/\/(?:www\.)?facebook\.com(?:.*)\/share/i,behaviors:["\x66\x61\x63\x65\x62\x6f\x6f\x6b\x5f\x73\x68\x61\x72\x65"]},{path:/^https?:\/\/(?:www\.)?twitter\.com(?:.*)\/\x74\x77\x65\x65\x74/i,behaviors:["twitter_tweet"]},{path:/^https?:\/\/vk\.(?:com|ru)\/share\./i,behaviors:["\x76\x6b\x6f\x6e\x74\x61\x6b\x74\x65\x5f\x73\x68\x61\x72\x65"]}];t.FACETz=t.FACETz||{};var d=function(){function e(e,o){this._iframe=null,this._iframeReady=!1,this._origin=e,this._path=o,this._queue=[],this._requests={},this._id=0,this._timeouts=[],this._check_supports=function(){try{return t.postMessage&&t.JSON}catch(e){return!1}},this.supported=this._check_supports(),this.init()}var o=5;return t.FACETz.storages=t.FACETz.storages||{},e.prototype={constructor:e,init:function(){!this._iframe&&this.supported&&(this._iframe=t.document.createElement("iframe"),this._iframe.style.cssText="\x70\x6f\x73\x69\x74\x69\x6f\x6e\x3a\x61\x62\x73\x6f\x6c\x75\x74\x65\x3b\x77\x69\x64\x74\x68\x3a\x30\x70\x78\x3b\x68\x65\x69\x67\x68\x74\x3a\x30\x70\x78\x3b\x6c\x65\x66\x74\x3a\x2d\x39\x39\x39\x39\x70\x78\x3b\x62\x6f\x72\x64\x65\x72\x3a\x6e\x6f\x6e\x65\x3b\x74\x6f\x70\x3a\x30\x3b",t.document.body.appendChild(this._iframe),m.bind(this._iframe,"load",this.iframeLoadedHandler,this),m.bind(t,"\x6d\x65\x73\x73\x61\x67\x65",this.handleMessage,this),this._iframe.src=this._origin+this._path)},sync:function(t,e){var o={id:++this._id,type:"sync",key:t},n={request:o,callback:e};this.send(n)},sendCarousele:function(t){v