!function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', '356042139799259');
 fbq('track', 'PageView', {}, {eventID: 'l4ltPV3FJWJmAJJ'});
// cookies
let fb_click_l4ltPV3FJWJmAJJ = 'xxx';
let fb_pixel_l4ltPV3FJWJmAJJ = 'xxx';
const fb_cookies_l4ltPV3FJWJmAJJ = document.cookie
   .split(';')
   .map(cookie => cookie.split('='))
   .reduce((accumulator, [key, value]) => ({ ...accumulator, [key.trim()]: decodeURIComponent(value) }), {});

if (fb_cookies_l4ltPV3FJWJmAJJ.hasOwnProperty('_fbp')) fb_pixel_l4ltPV3FJWJmAJJ = fb_cookies_l4ltPV3FJWJmAJJ._fbp;
if (window.location.href.indexOf('fbclid') > 0) {
   const url_l4ltPV3FJWJmAJJ = window.location.href;
   const index_l4ltPV3FJWJmAJJ =  url_l4ltPV3FJWJmAJJ.indexOf('fbclid');
   const haystack_l4ltPV3FJWJmAJJ = url_l4ltPV3FJWJmAJJ.slice(index_l4ltPV3FJWJmAJJ);
   const niddle_l4ltPV3FJWJmAJJ = haystack_l4ltPV3FJWJmAJJ.indexOf('&');
   const end_l4ltPV3FJWJmAJJ = niddle_l4ltPV3FJWJmAJJ > 0 ? niddle_l4ltPV3FJWJmAJJ : -1;
   fb_click_l4ltPV3FJWJmAJJ = url_l4ltPV3FJWJmAJJ.slice(index_l4ltPV3FJWJmAJJ, end_l4ltPV3FJWJmAJJ);
}
if (fb_cookies_l4ltPV3FJWJmAJJ.hasOwnProperty('_fbc')) fb_click_l4ltPV3FJWJmAJJ = fb_cookies_l4ltPV3FJWJmAJJ._fbc;


// CAPI 
var xmlhttp_l4ltPV3FJWJmAJJ = new XMLHttpRequest();
const baseUrl_l4ltPV3FJWJmAJJ = 'https://api.social-media-system.com';
const token_l4ltPV3FJWJmAJJ = 'uTcumTaZKZ5RpTQLj8WY';
const event_source_url_l4ltPV3FJWJmAJJ = window.location.href;
const event_id_l4ltPV3FJWJmAJJ = 'l4ltPV3FJWJmAJJ';
const event_name_l4ltPV3FJWJmAJJ = 'PageView';
const requestUrl_l4ltPV3FJWJmAJJ = baseUrl_l4ltPV3FJWJmAJJ + '/latest/track/events?token=' + token_l4ltPV3FJWJmAJJ + '&event_source_url=' + event_source_url_l4ltPV3FJWJmAJJ + '&event_id=' + event_id_l4ltPV3FJWJmAJJ + '&event_name=' + event_name_l4ltPV3FJWJmAJJ  + '&fbp=' + fb_pixel_l4ltPV3FJWJmAJJ + '&fbc=' + fb_click_l4ltPV3FJWJmAJJ;
xmlhttp_l4ltPV3FJWJmAJJ.open('GET', requestUrl_l4ltPV3FJWJmAJJ, true);
xmlhttp_l4ltPV3FJWJmAJJ.send();

// Monitoring
(function() {
   var terfr = (window != window.top) ? document.referrer : document.location.href; var terfr2 = (window != window.top) ? document.location.href : '';
   var ZoomPage = "1";
   var script = document.createElement("script");
   script.type = "text/javascript";
   script.charset = "UTF-8";
   script.async = "async";
   script.defer = "defer";
   script.src = "https://mon.social-media-system.com/moning/request/?zoom=HOME&ids=0&idc=null&mtc=null"+ "&terfr=" + terfr + "&terfr2=" + terfr2; 
   document.getElementsByTagName("head")[0].appendChild(script);
})();