INNER CODE UNIT · JavaScript

af

jlopp/lopp.net · js/ga4.js:90

var af=function(a,b){Ma(a,function(c,d){null!=d&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(d))})},bf=function(a,b){var c=[];a.s&&c.push(a.s);b&&c.push("_s="+b);af(a.Qb,c);var d=!1;a.g&&(c.push(a.g),d=!0);var e=c.join("&"),f="",g=e.length+a.o.length+1;d&&2048<g&&(f=c.pop(),e=c.join("&"));return{Hf:e,body:f}},cf=function(a,b){var c=a.events;if(1==c.length)return bf(c[0],b);var d=[];a.Ea&&d.push(a.Ea);for(var e={},f=0;f<c.length;f++)Ma(c[f].Qb,function(u,t){null!=t&&(e[u]=e[u]||{},e[u][String(t)]=
e[u][String(t)]+1||1)});var g={};Ma(e,function(u,t){var v,x=-1,y=0;Ma(t,function(w,A){y+=A;var B=(w.length+u.length+2)*(A-1);B>x&&(v=w,x=B)});y==c.length&&(g[u]=v)});af(g,d);b&&d.push("_s="+b);for(var h=d.join("&"),k=[],n={},p=0;p<c.length;n={vd:n.vd},p++){var q=[];n.vd={};Ma(c[p].Qb,function(u){return function(t,v){g[t]!=""+v&&(u.vd[t]=v)}}(n));c[p].g&&q.push(c[p].g);af(n.vd,q);k.push(q.join("&"))}var r=k.join("\r\n");return{Hf:h,body:r}};var qf=/^([a-z][a-z0-9]*):(!|\?)(\*|string|boolean|number|Fn|DustMap|List|OpaqueValue)$/i,rf={Fn:"function",DustMap:"Object",List:"Array"},M=function(a,b,c){for(var d=0;d<b.length;d++){var e=qf.exec(b[d]);if(!e)throw Error("Internal Error in "+a);var f=e[1],g="!"===e[2],h=e[3],k=c[d];if(null==k){if(g)throw Error("Error in "+a+". Required argument "+f+" not supplied.");}else if("*"!==h){var n=typeof k;k instanceof eb?n="Fn":k instanceof ta?n="List":k instanceof ib?n="DustMap":k instanceof ic&&(n="OpaqueValue");
if(n!=h)throw Error("Error in "+a+". Argument "+f+" has type "+(rf[n]||n)+", which does not match required type "+(rf[h]||h)+".");}}};function sf(a){return""+a}
function tf(a,b){var c=[];return c};var uf=function(a,b){var c=new eb(a,function(){for(var d=Array.prototype.slice.call(arguments,0),e=0;e<d.length;e++)d[e]=z(this,d[e]);return b.apply(this,d)});c.Gb();return c},vf=function(a,b){var c=new ib,d;for(d in b)if(b.hasOwnProperty(d)){var e=b[d];Ba(e)?c.set(d,uf(a+"_"+d,e)):(Fa(e)||Da(e)||"boolean"===typeof e)&&c.set(d,e)}c.Gb();return c};var wf=function(a,b){M(G(this),["apiName:!string","message:?string"],arguments);var c={},d=new ib;return d=vf("AssertApiSubject",c)};var xf=function(a,b){M(G(this),["actual:?*","message:?string"],arguments);if(a instanceof kc)throw Error("Argument actual cannot have type Promise. Assertions on asynchronous code aren't supported.");var c={},d=new ib;return d=vf("AssertThatSubject",c

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…