summaryrefslogtreecommitdiff
path: root/Legacy/LegacyMonsters/conversion_async.js
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-09 17:34:49 -0200
committerjesusalva <cpntb1@ymail.com>2018-02-09 17:34:49 -0200
commit2d3a3c21a0fa259eeeb094e56289c98f426a9435 (patch)
treec57447ed47a2ba7b64cd5d28a5e24108bf9247c8 /Legacy/LegacyMonsters/conversion_async.js
parent182b7ce632aac756e0a4091f9b26b6af4aad40ae (diff)
downloadclientdata-2d3a3c21a0fa259eeeb094e56289c98f426a9435.tar.gz
clientdata-2d3a3c21a0fa259eeeb094e56289c98f426a9435.tar.bz2
clientdata-2d3a3c21a0fa259eeeb094e56289c98f426a9435.tar.xz
clientdata-2d3a3c21a0fa259eeeb094e56289c98f426a9435.zip
Strip whitespaces from folder name. Seriously. NEVER put whitespaces in filenames ;-)
Diffstat (limited to 'Legacy/LegacyMonsters/conversion_async.js')
-rw-r--r--Legacy/LegacyMonsters/conversion_async.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/Legacy/LegacyMonsters/conversion_async.js b/Legacy/LegacyMonsters/conversion_async.js
new file mode 100644
index 00000000..422c0a1f
--- /dev/null
+++ b/Legacy/LegacyMonsters/conversion_async.js
@@ -0,0 +1,27 @@
+(function(){var h=this,m=function(a){return"string"==typeof a};var n=function(a){a=parseFloat(a);return isNaN(a)||1<a||0>a?0:a};var aa=n("0.20"),da=n("0.0"),ea=n("0.0");var fa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(m(a))return m(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ha=Array.prototype.filter?function(a,b){return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=m(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var k=f[g];b.call(void 0,k,g,a)&&(d[e++]=k)}return d},ia=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,
+b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=m(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},ja=function(a){return Array.prototype.concat.apply([],arguments)};var p=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};var q;a:{var r=h.navigator;if(r){var u=r.userAgent;if(u){q=u;break a}}q=""};var v=function(a){v[" "](a);return a};v[" "]=function(){};var ka=function(){if(!h.crypto)return Math.random();try{var a=new Uint32Array(1);h.crypto.getRandomValues(a);return a[0]/65536/65536}catch(b){return Math.random()}},w=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},la=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){return-1!=q.indexOf("Google Web Preview")||1E-4>Math.random()});var ma=/^true$/.test("false"),na=/^true$/.test("true");var x=null,pa=function(){var a=p(oa);this.j={};this.a={};a=a||[];for(var b=0,c=a.length;b<c;++b)this.a[a[b]]=""},y=function(){if(null===x){x="";try{var a="";try{a=h.top.location.hash}catch(c){a=h.location.hash}if(a){var b=a.match(/\bdeid=([\d,]+)/);x=b?b[1]:""}}catch(c){}}return x},A=function(a,b,c){var d=z;if(c?d.a.hasOwnProperty(c)&&""==d.a[c]:1){var e;e=(e=y())?(e=e.match(new RegExp("\\b("+a.join("|")+")\\b")))?e[0]:null:null;if(e)a=e;else a:{if(!la()&&(e=Math.random(),e<b)){e=ka();a=a[Math.floor(e*
+a.length)];break a}a=null}a&&""!=a&&(c?d.a.hasOwnProperty(c)&&(d.a[c]=a):d.j[a]=!0)}},qa=function(){var a=z;return a.a.hasOwnProperty(2)?a.a[2]:""},ra=function(){var a=z,b=[];w(a.j,function(a,d){b.push(d)});w(a.a,function(a){""!=a&&b.push(a)});return b};var oa={f:2,g:10,h:12},B={f:{c:"376635470",b:"376635471"},g:{c:"659328990",b:"659328991"},h:{c:"659428990",b:"659428991"}},z=null,sa=function(){var a=ja.apply([],ia(p(B),function(a){return p(a)},void 0)),b=ha(y().split(","),function(b){return""!=b&&!(0<=fa(a,b))});return 0<b.length?"&debug_experiment_id="+b.join(","):""};var ta=/^UA-\d+-\d+%3A[\w-]+(?:%2C[\w-]+)*(?:%3BUA-\d+-\d+%3A[\w-]+(?:%2C[\w-]+)*)*$/,ua=/^[\w-]+(?:\.[\w-]+)*$/,C=/^\d+\.fls\.doubleclick\.net$/,va=/;gac=([^;?]+)/,wa=/;gclaw=([^;?]+)/,D=function(a,b){if(C.test(a.location.host)){if((b=a.location.href.match(wa))&&2==b.length&&b[1].match(ua))return b[1]}else{var c=(b||"_gcl")+"_aw";b=[];a=a.cookie.split(";");c=new RegExp("^\\s*"+c+"=\\s*(.*?)\\s*$");for(var d=0;d<a.length;d++){var e=a[d].match(c);e&&b.push(e[1])}a=[];if(b&&0!=b.length)for(c=0;c<b.length;c++)d=
+b[c].split("."),3==d.length&&"GCL"==d[0]&&d[1]&&a.push(d[2]);if(0<a.length)return a.join(".")}return""};var xa=function(a,b,c){a=E(a,!0);if(a[b])return!1;a[b]=[];a[b][0]=c;return!0},E=function(a,b){var c=a.GooglebQhCsO;c||(c={},b&&(a.GooglebQhCsO=c));return c};var F=null,G=null,ya=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}if(!F)for(F={},G={},a=0;65>a;a++)F[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),G[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a);a=G;c=[];for(d=0;d<b.length;d+=3){var f=b[d],g=(e=d+1<b.length)?b[d+1]:0,k=d+2<b.length,l=k?b[d+2]:0,t=f>>2;f=(f&3)<<4|g>>4;g=(g&15)<<2|l>>6;l&=63;k||(l=64,e||(g=64));c.push(a[t],
+a[f],a[g],a[l])}return c.join("")};var H=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1},I=/#|$/,J=function(a,b){var c=a.search(I),d=H(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.substr(d,e-d).replace(/\+/g," "))},za=/[?&]($|#)/,K=function(a,b,c){for(var d=a.search(I),e=0,f,g=[];0<=(f=H(a,e,b,d));)g.push(a.substring(e,f)),e=Math.min(a.indexOf("&",
+f)+1||d,d);g.push(a.substr(e));a=g.join("").replace(za,"$1");c=null!=c?"="+encodeURIComponent(String(c)):"";(b+=c)?(c=a.indexOf("#"),0>c&&(c=a.length),d=a.indexOf("?"),0>d||d>c?(d=c,e=""):e=a.substring(d+1,c),c=[a.substr(0,d),e,a.substr(c)],a=c[1],c[1]=b?a?a+"&"+b:b:a,b=c[0]+(c[1]?"?"+c[1]:"")+c[2]):b=a;return b};var L=function(a,b,c,d){var e=J(c,"fmt");if(d){var f=J(c,"random"),g=J(c,"label")||"";if(!f)return!1;f=ya(decodeURIComponent(g.replace(/\+/g," "))+":"+decodeURIComponent(f.replace(/\+/g," "))).replace(/[.]*$/,"");if(!xa(a,f,d))return!1}e&&4!=e&&(c=K(c,"rfmt",e));c=K(c,"fmt",4);e=b.createElement("script");e.src=c;e.onload=function(){a.google_noFurtherRedirects&&d&&d.call&&(a.google_noFurtherRedirects=null,d())};b.getElementsByTagName("script")[0].parentElement.appendChild(e);return!0};var M="google_conversion_id google_conversion_format google_conversion_type google_conversion_order_id google_conversion_language google_conversion_value google_conversion_evaluemrc google_conversion_currency google_conversion_domain google_conversion_label google_conversion_color google_disable_viewthrough google_enable_display_cookie_match google_remarketing_only google_remarketing_for_search google_conversion_items google_conversion_merchant_id google_user_id google_custom_params google_conversion_date google_conversion_time google_conversion_js_version onload_callback opt_image_generator google_conversion_page_url google_conversion_referrer_url google_gtm google_gcl_cookie_prefix google_read_gcl_cookie_opt_out google_basket_feed_country google_basket_feed_language google_basket_discount google_basket_transaction_type google_disable_merchant_reported_conversions".split(" "),
+N=function(a){return null!=a?encodeURIComponent(a.toString()):""},O=function(a){if(null!=a){a=a.toString().substring(0,512);var b=a.indexOf("#");return-1==b?a:a.substring(0,b)}return""},P=function(a,b){b=N(b);return""!=b&&(a=N(a),""!=a)?"&".concat(a,"=",b):""},Q=function(a){var b=typeof a;return null==a||"object"==b||"function"==b?null:String(a).replace(/,/g,"\\,").replace(/;/g,"\\;").replace(/=/g,"\\=")},Aa=function(a){if((a=a.google_custom_params)&&"object"==typeof a&&"function"!=typeof a.join){var b=
+[];for(g in a)if(Object.prototype.hasOwnProperty.call(a,g)){var c=a[g];if(c&&"function"==typeof c.join){for(var d=[],e=0;e<c.length;++e){var f=Q(c[e]);null!=f&&d.push(f)}c=0==d.length?null:d.join(",")}else c=Q(c);(d=Q(g))&&null!=c&&b.push(d+"="+c)}var g=b.join(";")}else g="";return""==g?"":"&".concat("data=",encodeURIComponent(g))},Ba=function(a){if(null!=a){a=a.toString();if(2==a.length)return P("hl",a);if(5==a.length)return P("hl",a.substring(0,2))+P("gl",a.substring(3,5))}return""};
+function R(a){return"number"!=typeof a&&"string"!=typeof a?"":N(a.toString())}
+var Ca=function(a){if(!a)return"";a=a.google_conversion_items;if(!a)return"";for(var b=[],c=0,d=a.length;c<d;c++){var e=a[c],f=[];e&&(f.push(R(e.value)),f.push(R(e.quantity)),f.push(R(e.item_id)),f.push(R(e.adwords_grouping)),f.push(R(e.sku)),b.push("("+f.join("*")+")"))}return 0<b.length?"&item="+b.join(""):""},Da=function(a,b){if(b.google_read_gcl_cookie_opt_out||b.google_remarketing_only||b.google_conversion_domain)return"";var c="";if(b.google_gcl_cookie_prefix&&/^[a-zA-Z0-9_]+$/.test(b.google_gcl_cookie_prefix))return c=
+D(a,b.google_gcl_cookie_prefix),P("gclaw",c);(b=D(a))&&(c=P("gclaw",b));if(C.test(a.location.host))var d=(d=a.location.href.match(va))&&2==d.length&&d[1].match(ta)?decodeURIComponent(d[1]):"";else{b=[];a=a.cookie.split(";");for(var e=/^\s*_gac_(UA-\d+-\d+)=\s*(.+?)\s*$/,f=0;f<a.length;f++){var g=a[f].match(e);g&&b.push({i:g[1],value:g[2]})}a={};if(b&&b.length)for(e=0;e<b.length;e++)f=b[e].value.split("."),"1"==f[0]&&3==f.length&&f[1]&&(a[b[e].i]||(a[b[e].i]=[]),a[b[e].i].push({timestamp:f[1],l:f[2]}));
+b=[];for(d in a){e=[];f=a[d];for(g=0;g<f.length;g++)e.push(f[g].l);b.push(d+":"+e.join(","))}d=0<b.length?b.join(";"):""}return c+(d?P("gac",d):"")},Ea=function(a,b,c){var d=[];if(a){var e=a.screen;e&&(d.push(P("u_h",e.height)),d.push(P("u_w",e.width)),d.push(P("u_ah",e.availHeight)),d.push(P("u_aw",e.availWidth)),d.push(P("u_cd",e.colorDepth)));a.history&&d.push(P("u_his",a.history.length))}c&&"function"==typeof c.getTimezoneOffset&&d.push(P("u_tz",-c.getTimezoneOffset()));b&&("function"==typeof b.javaEnabled&&
+d.push(P("u_java",b.javaEnabled())),b.plugins&&d.push(P("u_nplug",b.plugins.length)),b.mimeTypes&&d.push(P("u_nmime",b.mimeTypes.length)));return d.join("")};function Fa(a){a=a?a.title:"";if(void 0==a||""==a)return"";var b=function(a){try{return decodeURIComponent(a),!0}catch(e){return!1}};a=encodeURIComponent(a);for(var c=256;!b(a.substr(0,c));)c--;return"&tiba="+a.substr(0,c)}
+var S=function(a,b,c,d){var e="";if(b){if(a.top==a)var f=0;else{var g=a.location.ancestorOrigins;if(g)f=g[g.length-1]==a.location.origin?1:2;else{g=a.top;try{var k;if(k=!!g&&null!=g.location.href)c:{try{v(g.foo);k=!0;break c}catch(l){}k=!1}f=k}catch(l){f=!1}f=f?1:2}}a=c?c:1==f?a.top.location.href:a.location.href;e+=P("frm",f);e+=P("url",O(a));e+=P("ref",O(d||b.referrer))}return e},T=function(a,b){return!(ma||b&&Ga.test(navigator.userAgent))||a&&a.location&&a.location.protocol&&"https:"==a.location.protocol.toString().toLowerCase()?
+"https:":"http:"},Ga=/Android ([01]\.|2\.[01])/i,U=function(a,b){var c=b.createElement("iframe");c.style.display="none";c.src=T(a,!1)+"//bid.g.doubleclick.net/xbbe/pixel?d=KAE";b.body.appendChild(c)};function Ha(){return new Image}
+var V=function(a,b,c,d,e,f){var g=c.opt_image_generator&&c.opt_image_generator.call,k;e&&c.onload_callback&&c.onload_callback.call?k=c.onload_callback:k=function(){};d+=P("async","1");if(!(e=g||!f)){if(c.google_conversion_domain)var l=!1;else try{l=L(a,b,d,k)}catch(t){l=!1}e=!l}e&&(a=Ha,g&&(a=c.opt_image_generator),c=a(),c.src=d,c.onload=k)},Ia=function(a,b){for(var c=document.createElement("iframe"),d=[],e=[],f=0;f<b.google_conversion_items.length;f++){var g=b.google_conversion_items[f];g&&g.quantity&&
+(g.sku||g.item_id)&&(d.push(g.sku||g.item_id),e.push(g.quantity))}f="";null!=b.google_conversion_language&&(g=b.google_conversion_language.toString(),5==g.length&&(f="&mrc_language="+g.substring(0,2)+"&mrc_country="+g.substring(3,5)));a=T(a,!1)+"//www.google.com/ads/mrc";c.src=a+"?sku="+d.join(",")+"&qty="+e.join(",")+"&oid="+b.google_conversion_order_id+"&mcid="+b.google_conversion_merchant_id+f;c.style.width="1px";c.style.height="1px";c.style.display="none";return c},Ja=function(a,b,c){var d=function(){c.documentElement.appendChild(Ia(a,
+b))};"complete"===c.readyState?d():a.addEventListener?a.addEventListener("load",d):a.attachEvent("onload",d)},Ka=function(a,b){z&&qa()==B.f.b&&("complete"===b.readyState?U(a,b):a.addEventListener?a.addEventListener("load",function(){U(a,b)}):a.attachEvent("onload",function(){U(a,b)}))},La=function(a){return!a.google_disable_merchant_reported_conversions&&!!a.google_conversion_merchant_id&&!!a.google_conversion_order_id&&!!a.google_conversion_items},Ma=function(a,b){for(var c={},d=function(d){c[d]=
+b&&null!=b[d]?b[d]:a[d]},e=0;e<M.length;e++)d(M[e]);d("onload_callback");return c};var Na=function(a,b,c){for(var d=c.length+1,e=function(){--d;if(0>=d){var c=E(a,!1),e=c[b];e&&(delete c[b],(c=e[0])&&c.call&&c())}},f=function(a,b){var c=new Image;c.onload=a;c.src=b},g=0;g<c.length;g++){var k=c[g],l=J(k,"fmt");switch(parseInt(l,10)){case 1:case 2:(l=a.document.getElementById("goog_conv_iframe"))&&!l.src?(l.onload=e,l.src=k):f(e,k);break;case 4:L(a,a.document,k,e);break;default:f(e,k)}}e()},W=["GooglemKTybQhCsO"],X=h;W[0]in X||!X.execScript||X.execScript("var "+W[0]);
+for(var Y;W.length&&(Y=W.shift());){var Z;if(Z=!W.length)Z=void 0!==Na;Z?X[Y]=Na:X[Y]&&X[Y]!==Object.prototype[Y]?X=X[Y]:X=X[Y]={}}
+window.google_trackConversion=function(a){var b=window;var c=navigator,d=document;a=Ma(b,a);a.google_conversion_format=3;var e=!1;if(a&&3==a.google_conversion_format){try{if("landing"==a.google_conversion_type||!a.google_conversion_id||a.google_remarketing_only&&a.google_disable_viewthrough)var f=!1;else a.google_conversion_date=new Date,a.google_conversion_time=a.google_conversion_date.getTime(),a.google_conversion_snippets="number"==typeof a.google_conversion_snippets&&0<a.google_conversion_snippets?
+a.google_conversion_snippets+1:1,"number"!=typeof a.google_conversion_first_time&&(a.google_conversion_first_time=a.google_conversion_time),a.google_conversion_js_version="8",0!=a.google_conversion_format&&1!=a.google_conversion_format&&2!=a.google_conversion_format&&3!=a.google_conversion_format&&(a.google_conversion_format=3),!1!==a.google_enable_display_cookie_match&&(a.google_enable_display_cookie_match=!0),z=new pa,na&&(a.google_remarketing_for_search=!1),f=!0;if(f){a.google_remarketing_only&&
+a.google_enable_display_cookie_match&&z&&A([B.f.c,B.f.b],aa,2);a.google_remarketing_only||a.google_conversion_domain||(z&&A([B.g.c,B.g.b],ea,10),z&&A([B.h.c,B.h.b],da,12));f="/?";"landing"==a.google_conversion_type&&(f="/extclk?");var g=[a.google_remarketing_only?"/pagead/viewthroughconversion/":"/pagead/conversion/",N(a.google_conversion_id),f,"random=",N(a.google_conversion_time)].join(""),k,l=a.google_remarketing_only?"googleads.g.doubleclick.net":a.google_conversion_domain||"www.googleadservices.com";
+g=k=T(b,/www[.]googleadservices[.]com/i.test(l))+"//"+l+g;var t=[P("cv",a.google_conversion_js_version),P("fst",a.google_conversion_first_time),P("num",a.google_conversion_snippets),P("fmt",a.google_conversion_format),P("userId",a.google_user_id),P("value",a.google_conversion_value),P("evaluemrc",a.google_conversion_evaluemrc),P("currency_code",a.google_conversion_currency),P("label",a.google_conversion_label),P("oid",a.google_conversion_order_id),P("bg",a.google_conversion_color),Ba(a.google_conversion_language),
+P("guid","ON"),P("disvt",a.google_disable_viewthrough),P("eid",ra().join()),Ea(b,c,a.google_conversion_date),Aa(a),P("gtm",a.google_gtm),Da(d,a),S(b,d,a.google_conversion_page_url,a.google_conversion_referrer_url),a.google_remarketing_for_search&&!a.google_conversion_domain?"&srr=n":"",Fa(d)].join("")+sa();if(a.google_remarketing_only||a.google_conversion_domain)var ba=t;else{La(a)&&!a.google_basket_transaction_type&&(a.google_basket_transaction_type="mrc");var ca=[t,[P("mid",a.google_conversion_merchant_id),
+P("fcntr",a.google_basket_feed_country),P("flng",a.google_basket_feed_language),P("dscnt",a.google_basket_discount),P("bttype",a.google_basket_transaction_type)].join(""),Ca(a)].join("");ba=2E3<ca.length?[t,P("item","elngth")].join(""):ca}V(b,d,a,g+ba,!0,!0);if(a.google_remarketing_for_search&&!a.google_conversion_domain){var Oa=Math.floor(1E9*Math.random()),Pa=[N(a.google_conversion_id),"/?random=",Oa].join(""),Qa=T(b,!1)+"//www.google.com/ads/user-lists/"+Pa;c=Qa;var Ra=[P("label",a.google_conversion_label),
+P("fmt","3"),S(b,d,a.google_conversion_page_url,a.google_conversion_referrer_url)].join("");V(b,d,a,c+Ra,!1,!1)}a.google_remarketing_only&&a.google_enable_display_cookie_match&&Ka(b,d);e=!0}La(a)&&(Ja(b,a,d),e=!0)}catch(Sa){}b=e}else b=!1;return b};}).call(this);