if("object"!=typeof __lo)var __lo={head:document.getElementsByTagName("head")[0]||document.documentElement,body:document.body,supportSplitWithCapturingParentheses:"b"==="abc".split(/(b)/)[1],inputBuffer:[],defaultObj:{timeout:3e3},extend:function(t,e){if(!e)return t;for(var n=Object.keys(e),o=0;o<n.length;o++)t[n[o]]=e[n[o]];return t},loadScript:function(t){var e=__lo.extend({src:t},__lo.defaultObj);__lo.insertScript(e)},insertScript:function(t){var e=document.createElement("script");t.type&&(e.type=t.type),t.charset&&(e.charset=t.charset),t.language&&(e.language=t.language);var n=!1;e.onload=e.onreadystatechange=function(){n||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(n=!0,e.onload=e.onreadystatechange=null,__lo.flush())},e.src=t.src,__lo.head.insertBefore(e,__lo.head.firstChild)},flush:function(){var t=/(<script[\s\S]*?<\/script>)/gim,e=__lo.stripNoScript(__lo.inputBuffer.join(""));__lo.inputBuffer=[],e=e.replace(/document\.write(ln)?/gi,"__lo.inputBuffer.push");for(var n=__lo.split(e,t),o=0;o<n.length;o++)__lo.writeHtml(n[o])},writeHtml:function(t){if(__lo.isScript(t)){var e=document.createElement("div");e.innerHTML="dummy<div>"+t+"</div>";var n=e.children[0].children[0],o=n.getAttribute("language")||"javascript",r=__lo.extend({},__lo.defaultObj);if(n.src)r.src=n.src,r.charset=n.charset,r.language=o,r.type=n.type,__lo.insertScript(r);else{var i=__lo.trim(n.text);i&&__lo.globalEval(i,o),__lo.flush(r)}}else if(t=__lo.trim(t)){var a=document.createElement("div");for(a.innerHTML=t;a.children.length>0;)__lo.body.appendChild(a.children[0])}},isScript:function(t){return 0===t.toLowerCase().indexOf("<script")},globalEval:function(t){return t.execScript?function(e,n){t.execScript(e,n||"JavaScript")}:function(e,n){n&&!/^javascript/i.test(n)||t.eval.call(t,e)}}(window),trim:function(t){return t?t.replace(/^\s*|\s*$/gi,""):t},split:function(t,e){var n,o,r,i,a=0,c=[];if(__lo.supportSplitWithCapturingParentheses)o=t.split(e);else{for(o=[];n=e.exec(t);)n.index>a&&c.push(t.slice(a,n.index)),n.length>1&&n.index<t.length&&Array.prototype.push.apply(o,n.slice(1)),a=e.lastIndex;a<t.length&&o.push(t.slice(a))}for(r=0,i=o.length;r<i;r++)""!==o[r]&&c.push(o[r]);return c},stripNoScript:function(t){return t.replace(/<noscript>[\s\S]*?<\/noscript>/gi,"")}};if("object"!=typeof bxurl)var bxurl={_fixedEncodeURIComponent:function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16)})},http_build_query:function(t,e,n){var o,r=[],i=this;n||(n="&");for(var a=Object.keys(t),c=0;c<a.length;c++){o=t[a[c]],e&&!isNaN(a[c])&&(a[c]=String(e)+a[c]);var l=function(t,e){return!0===e?e="1":!1===e&&(e="0"),null!==e&&void 0!==e&&"function"!=typeof e&&"object"!=typeof e?i._fixedEncodeURIComponent(t)+"="+i._fixedEncodeURIComponent(e):""}(a[c],o);""!==l&&r.push(l)}return r.join(n)},loadJS:function(t){var e=document.createElement("script"),n=document.getElementsByTagName("script")[0];e.type="text/javascript",e.async=!0,e.src=t,n.parentNode.insertBefore(e,n)}};if(window._logbor_c=window._logbor_c||{getWindowDocuments:function(){var t=[].slice.call(document.querySelectorAll("iframe")),e=[];return t.forEach(function(t){try{e.push(t.contentWindow.document)}catch(t){e.push(null)}}),e=e.filter(function(t){return null!==t}),[window.document].concat(e)},addEventToDOMLoaded:function(){var t=arguments[0],e=arguments;_logbor_c.getWindowDocuments().forEach(function(n){e[0]=n,"complete"===n.readyState?t.apply(null,e):n.addEventListener?n.addEventListener("DOMContentLoaded",function(){t.apply(null,e)},!1):n.attachEvent&&n.attachEvent("onDOMContentLoaded",function(){t.apply(null,e)})})},addEventToDOMModified:function(t){var e=arguments;_logbor_c.getWindowDocuments().forEach(function(n){n.addEventListener("DOMNodeInserted",function(){var o=n;e[0]=o,t.apply(null,e)},!1),n.addEventListener("DOMNodeRemoved",function(){var o=n;e[0]=o,t.apply(null,e)},!1)})},invokeTag:function(t,e,n){var o=document.location.protocol+"//"+t.host+"/"+t.action,r=bxurl.http_build_query(e);n?__lo.loadScript(o+"?"+r):bxurl.loadJS(o+"?"+r)}},"object"!=typeof coo)var coo={readCookie:function(){for(var t=document.cookie.split(";"),e=0;e<t.length;e++){for(var n=t[e];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf("__bx="))return n.substring("__bx=".length,n.length)}return null},writeCookie:function(t){var e=new Date;e.setTime(e.getTime()+31536e6);var n="; expires="+e.toGMTString();document.cookie="__bx="+t+n+"; path=/"},readLocalStorage:function(){return!1!==this.testStorage()&&localStorage.getItem("__bx")},writeLocalStorage:function(t){!1!==this.testStorage()&&localStorage.setItem("__bx",t)},testStorage:function(){try{return!!localStorage.getItem}catch(t){return!1}},getUserId:function(t){var e=this.readCookie(),n=this.readLocalStorage();if(null==e&&null==n)return this.setUserId(t),t;var o=null;return null==e&&null!=n?(this.writeCookie(n),o=n):null!=e&&null==n?(this.writeLocalStorage(e),o=e):null!=e&&null!=n&&(o=e),o},setUserId:function(t){this.writeCookie(t),this.writeLocalStorage(t)}};var __dot=window.__dot||[];!function(t,e,n){function o(t){i._store(t),t&&t.event?i._send("tcs","event:"+t.event):i._send("d")}function r(t){t=t.replace(/\[\[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[\\?&]"+t+"=([^&#]*)"),n=e.exec(window.location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))}if(!0!==t.isInit){var i={isInit:!1,_datas:{},init:function(){if(this._setCookSb(r("tog_sb")),!1===this.isInit){this.isInit=!0;for(var e=0;e<t.length;e++)this._store(t[e]);this._send("tcs")}},_setCookSb:function(t){if(void 0!==t&&""!==t){var e=new Date;e.setTime(e.getTime()+2592e6);var n="expires="+e.toUTCString();document.cookie="tog_sb="+t+";"+n+";path=/"}},_store:function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)"Your data here"!==t[e[n]]&&"event"!==e[n]&&(this._datas[encodeURIComponent("d_"+e[n])]=t[e[n]])},_send:function(t,e){e=e||encodeURI(document.location.href);var n={host:"u.logbor.com",action:t},o={cxid:"2474",cu:e};_logbor_c.invokeTag(n,this._addDotToParams(o),!0),this._datas={}},_addDotToParams:function(t){for(var e=Object.keys(this._datas),n=0;n<e.length;n++)t[e[n]]=this._datas[e[n]];return t}};t.push=o,t.shift=o}i.init()}(__dot);