You are on page 1of 2

/*

Copyright The Closure Library Authors.


SPDX-License-Identifier: Apache-2.0
*/
var f=this||self,h=function(a,b){function c()
{}c.prototype=b.prototype;a.D=b.prototype;a.prototype=new
c;a.prototype.constructor=a;a.C=function(d,e,g){for(var y=Array(arguments.length-
2),l=2;l<arguments.length;l++)y[l-2]=arguments[l];return
b.prototype[e].apply(d,y)}},k=function(a){return a};/*

SPDX-License-Identifier: Apache-2.0
*/
function m(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function n(a)
{return-1===a.toString().indexOf("`")}const p=n(a=>a``)||n(a=>a`\0`)||n(a=>a`\n`)||
n(a=>a`\u0000`),q=m``&&m`\0`&&m`\n`&&m`\u0000`;function r(a,b)
{if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{const
c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!
==b&&(this.cause=b)}h(r,Error);r.prototype.name="CustomError";function t(a,b)
{a=a.split("%s");let c="";const d=a.length-1;for(let e=0;e<d;e++)c+=a[e]+
(e<b.length?
b[e]:"%s");r.call(this,c+a[d])}h(t,r);t.prototype.name="AssertionError";var
u=function(a,b){throw new t("Failure"+(a?":
"+a:""),Array.prototype.slice.call(arguments,1));};var v=class{constructor(a,b)
{this.name=a;this.value=b}toString(){return this.name}},w=new
v("OFF",Infinity),x=new v("WARNING",900),z=new
v("CONFIG",700),A=class{constructor(){this.g=0;this.clear()}clear()
{this.i=Array(this.g);this.j=-1;this.l=!1}},B,C=class{constructor(a,b,c)
{this.reset(a||w,b,c,void 0,void 0)}reset(){}},D=function(a){if(a.level)return
a.level;if(a.parent)return D(a.parent);u("Root logger has no level set.");return
w},E=function(a,b)
{for(;a;)a.m.forEach(c=>{c(b)}),a=a.parent},F=class{constructor(a,
b=null){this.level=null;this.m=[];this.parent=b||null;this.children=[];this.o={h:
()=>a}}},G=function(a,b){var c=a.entries[b];if(c)return
c;c=G(a,b.slice(0,Math.max(b.lastIndexOf("."),0)));const d=new
F(b,c);a.entries[b]=d;c.children.push(d);return d},H=class{constructor()
{this.entries={};const a=new F("");a.level=z;this.entries[""]=a}},I,J=function()
{I||(I=new H);return I};var K;var M=class{constructor(a){if(L!==L)throw
Error("TrustedResourceUrl is not meant to be built directly");this.B=a}toString()
{return this.B+""}},L={},N=function(a){if(void 0===K){var b=null;var
c=f.trustedTypes;if(c&&c.createPolicy)try{b=c.createPolicy("goog#html",
{createHTML:k,createScript:k,createScriptURL:k})}catch(d)
{f.console&&f.console.error(d.message)}K=b}a=(b=K)?b.createScriptURL(a):a;return
new M(a)};var P=class{constructor(a){if(O!==O)throw Error("SafeUrl is not meant to
be built directly");this.A=a}toString(){return this.A.toString()}},O={};new
P("about:invalid#zClosurez");new P("about:blank");const Q={};class R{constructor()
{if(Q!==Q)throw Error("SafeStyle is not meant to be built
directly");this.v=""}toString(){return this.v.toString()}}new R;const S={};class
T{constructor(){if(S!==S)throw Error("SafeStyleSheet is not meant to be built
directly");this.u=""}toString(){return this.u.toString()}}new T;const U={};class
V{constructor(){var a=f.trustedTypes&&f.trustedTypes.emptyHTML||"";if(U!==U)throw
Error("SafeHtml is not meant to be built directly");this.s=a}toString(){return
this.s.toString()}}new V;const W=[];var X=a=>{var b;if(b=G(J(),"safevalues").o){var
c=`A URL with content '${a}' was sanitized away.`,d=x;if(a=b)if(a=b&&d)
{a=d.value;var e=b?D(G(J(),b.h())):w;a=a>=e.value}if(a){d=d||
w;a=G(J(),b.h());"function"===typeof c&&(c=c());B||(B=new A);e=B;b=b.h();if(0<e.g)
{var g=(e.j+1)%e.g;e.j=g;e.l?(e=e.i[g],e.reset(d,c,b),b=e):(e.l=g==e.g-
1,b=e.i[g]=new C(d,c,b))}else b=new C(d,c,b);E(a,b)}}};-
1===W.indexOf(X)&&W.push(X);(function(a,...b){if(!Array.isArray(a)||!
Array.isArray(a.raw)||a.length!==a.raw.length||!p&&a===a.raw||!(p&&!q||m(a))||
b.length+1!==a.length)throw new TypeError("\n ##############################
ERROR ##############################\n\n It looks like you are trying to call a
template tag function (fn`...`)\n using the normal function syntax (fn(...)),
which is not supported.\n\n The functions in the safevalues library are not
designed to be called\n like normal functions, and doing so invalidates the
security guarantees\n that safevalues provides.\n\n If you are stuck and not
sure how to proceed, please reach out to us\n instead through:\n - go/ise-
hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-
INTERNAL\n - https://github.com/google/safevalues/issues\n\n
############################## ERROR ##############################");
if(0===b.length)return N(a[0]);var c=a[0].toLowerCase();if(/^data:/.test(c))throw
Error("Data URLs cannot have expressions in the template literal
input.");if(/^https:\/\//.test(c)||/^\/\//.test(c)){var d=c.indexOf("//")+2;var
e=c.indexOf("/",d);if(e<=d)throw Error("Can't interpolate data in a url's origin,
Please make sure to fully specify the origin, terminated with
'/'.");d=c.substring(d,e);if(!/^[0-9a-z.:-]+$/i.test(d))throw Error("The origin
contains unsupported characters.");if(!/^[^:]*(:[0-9]+)?$/i.test(d))throw
Error("Invalid port number.");
if(!/(^|\.)[a-z][^.]*$/i.test(d))throw Error("The top-level domain must start with
a letter.");d=!0}else d=!1;if(!d)if(/^\//.test(c))if("/"===c||1<c.length&&"/"!
==c[1]&&"\\"!==c[1])d=!0;else throw Error("The path start in the url is
invalid.");else
d=!1;if(!(d=d||RegExp("^[^:\\s\\\\/]+/").test(c)))if(/^about:blank/.test(c))
{if("about:blank"!==c&&!/^about:blank#/.test(c))throw Error("The about url is
invalid.");d=!0}else d=!1;if(!d)throw Error("Trying to interpolate expressions in
an unsupported url format.");
c=a[0];for(d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return
N(c)})`https://securepubads.g.doubleclick.net/pagead/js/car.js`;async function Y()
{var a=Z;var b=(b=f.performance)&&b.now&&b.timing?Math.floor(b.now()
+b.timing.navigationStart):Date.now();a=await a.sharedStorage.get("privacy-sandbox-
client-creation-timestamp");a=Number(a);if(!a)return 0;b=(b-a)/864E5;return 0>b?
0:11>b?1:50>b?2:108>b?3:183>b?4:284>b?5:422>b?6:7};const Z=globalThis;class
aa{async run(){return Y()}}Z.register("privacy-sandbox-client-age-select-url",aa);

You might also like