(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ba=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b=a.xInView&&"number"===typeof a.yInView&&0<=a.yInView&&1>=a.yInView)||void 0!==a.posCoords_t&&"number"!==typeof a.posCoords_t||void 0!==a.posCoords_b&&"number"!==typeof a.posCoords_b||void 0!==a.posCoords_r&&"number"!==typeof a.posCoords_r||void 0!==a.posCoords_l&&"number"!==typeof a.posCoords_l||void 0!==a.posCoords_t&&(void 0===a.posCoords_b||void 0===a.posCoords_l||void 0===a.posCoords_r))throw Error("Cannot parse JSON geometry");var b=new z(a.windowCoords_t,a.windowCoords_r,a.windowCoords_b,a.windowCoords_l),c=new z(a.frameCoords_t,a.frameCoords_r,a.frameCoords_b,a.frameCoords_l),d=new z(a.allowedExpansion_t,a.allowedExpansion_r,a.allowedExpansion_b,a.allowedExpansion_l),e;void 0!==a.posCoords_t&&(e=new z(a.posCoords_t,a.posCoords_r,a.posCoords_b,a.posCoords_l));return new Ga(b,c,a.styleZIndex,d,a.xInView,a.yInView,e)};var Ha=function(a){this.m=a;this.A=null;this.g=this.status=0;this.o=null;this.H="sfchannel"+a},F=function(a){return 1==a.status||2==a.status};var Ia=function(){this.g=G};Ia.prototype.u=function(){return JSON.stringify(this.g)};var Ja=function(){var a=H.expandByPush,b=H.readCookie,c=H.writeCookie;this.g=H.expandByOverlay;this.m=a;this.j=b;this.o=c};Ja.prototype.u=function(){return JSON.stringify({expandByOverlay:this.g,expandByPush:this.m,readCookie:this.j,writeCookie:this.o})};var Oa=function(){var a=B.uid,b=B.hostPeerName,c=Ka,d=La,e=Ma,l=B.reportCreativeGeometry,u=B.isDifferentSourceWindow,q=Na,C=B.sentinel,I=B.pbjsAdConfig;q=void 0===q?[]:q;this.A=a;this.B=b;this.C=c;this.o=d;this.j=e;this.F=l;this.m=u;this.G=q;this.g=void 0===C?"":C;this.D=void 0===I?"":I};Oa.prototype.u=function(){var a={};a=(a.uid=this.A,a.hostPeerName=this.B,a.initialGeometry=this.C.u(),a.permissions=this.o.u(),a.metadata=this.j.u(),a.reportCreativeGeometry=this.F,a.isDifferentSourceWindow=this.m,a.goog_safeframe_hlt=za(this.G),a);this.g&&(a.sentinel=this.g);this.D&&(a.pbjsAdConfig=this.D);return JSON.stringify(a)};var Pa=/^([^;]+);(\d+);([\s\S]*)$/;function J(a){return"number"===typeof a||"string"===typeof a}var K=function(a,b){this.g=a;this.m=b};K.prototype.u=function(a){this.m&&a&&(a.sentinel=this.m);return JSON.stringify(a)};var Qa=function(a,b,c){K.call(this,a,void 0===c?"":c);this.version=b};h(Qa,K);Qa.prototype.u=function(){return K.prototype.u.call(this,{uid:this.g,version:this.version})};var Ra=function(a,b,c,d){K.call(this,a,void 0===d?"":d);this.o=b;this.j=c};h(Ra,K);Ra.prototype.u=function(){return K.prototype.u.call(this,{uid:this.g,initialWidth:this.o,initialHeight:this.j})};var Sa=function(a,b,c){K.call(this,a,void 0===c?"":c);this.description=b};h(Sa,K);Sa.prototype.u=function(){return K.prototype.u.call(this,{uid:this.g,description:this.description})};var L=function(a,b,c,d){K.call(this,a,void 0===d?"":d);this.j=b;this.push=c};h(L,K);L.prototype.u=function(){return K.prototype.u.call(this,{uid:this.g,expand_t:this.j.o,expand_r:this.j.j,expand_b:this.j.g,expand_l:this.j.m,push:this.push})};var Ta=function(a,b){K.call(this,a,void 0===b?"":b)};h(Ta,K);Ta.prototype.u=function(){return K.prototype.u.call(this,{uid:this.g})};var Ua=function(a,b,c){K.call(this,a,void 0===c?"":c);this.j=b};h(Ua,K);Ua.prototype.u=function(){return K.prototype.u.call(this,{uid:this.g,shrink_t:this.j.o,shrink_r:this.j.j,shrink_b:this.j.g,shrink_l:this.j.m})};var Va=function(a,b,c,d){K.call(this,a,void 0===d?"":d);this.j=b;this.push=c};h(Va,K);Va.prototype.u=function(){return K.prototype.u.call(this,{uid:this.g,resize_t:this.j.o,resize_r:this.j.j,resize_b:this.j.g,resize_l:this.j.m,push:this.push})};var M=function(a,b,c){K.call(this,a,void 0===c?"":c);this.o=b};h(M,K);M.prototype.u=function(){var a={uid:this.g,newGeometry:this.o.u()};return K.prototype.u.call(this,a)};var Wa=function(a){a=JSON.parse(a);if(!m(a)||!J(a.uid)||"string"!==typeof a.newGeometry)throw Error("Cannot parse JSON message");var b=E(a.newGeometry);return new M(a.uid,b,a.sentinel)},Xa=function(a,b,c,d,e,l){M.call(this,a,c,void 0===l?"":l);this.A=b;this.j=d;this.push=e};h(Xa,M);Xa.prototype.u=function(){var a={uid:this.g,success:this.A,newGeometry:this.o.u(),expand_t:this.j.o,expand_r:this.j.j,expand_b:this.j.g,expand_l:this.j.m,push:this.push};this.m&&(a.sentinel=this.m);return JSON.stringify(a)};var Ya=function(a,b,c,d){M.call(this,a,c,void 0===d?"":d);this.j=b};h(Ya,M);Ya.prototype.u=function(){var a={uid:this.g,success:this.j,newGeometry:this.o.u()};this.m&&(a.sentinel=this.m);return JSON.stringify(a)};var Za=function(a,b,c,d,e){M.call(this,a,c,void 0===e?"":e);this.j=b;this.A=d};h(Za,M);Za.prototype.u=function(){var a={uid:this.g,success:this.j,newGeometry:this.o.u(),expand_t:this.A.o,expand_r:this.A.j,expand_b:this.A.g,expand_l:this.A.m};this.m&&(a.sentinel=this.m);return JSON.stringify(a)};var $a=function(a,b,c,d){K.call(this,a,void 0===d?"":d);this.width=b;this.height=c};h($a,K);$a.prototype.u=function(){return K.prototype.u.call(this,{uid:this.g,width:this.width,height:this.height})};var O=function(a){Ha.call(this,a.A);this.D=a.o;this.N=a.j;this.F=null;this.C=[];this.B=0;this.A=a.C;this.j=a.g;this.o=new D(this.H,window.parent,a.B,!0,a.m,this.j);var b=n(this.L,this);this.o.g.expand_response=b;b=n(this.I,this);this.o.g.collapse_response=b;b=n(this.G,this);this.o.g.resize_response=b;b=n(this.G,this);this.o.g.shrink_response=b;b=n(this.M,this);this.o.g.geometry_update=b;this.o.connect(n(this.O,this));this.status=1;N(this,"init_done",new Qa(this.m,"1-0-40",this.j));a.F&&(a=n(O.prototype.K,this),wa("load",a),wa("resize",a))};h(O,Ha);O.prototype.register=function(a,b,c){this.status=2;this.F=c;N(this,"register_done",new Ra(this.m,a,b,this.j))};var P=function(a,b){N(a,"report_error",new Sa(a.m,b,a.j))};O.prototype.O=function(){for(var a=0;ab.length&&b.push(a)},db=function(a,b,c){var d=!1;d=void 0===d?!1:d;var e=window,l="undefined"!==typeof queueMicrotask;return function(){d&&l&&queueMicrotask(function(){e.google_rum_task_id_counter=e.google_rum_task_id_counter||1;e.google_rum_task_id_counter+=1});var u=bb(),q=3;try{var C=b.apply(this,arguments)}catch(I){q=13;if(!c)throw I;c(a,I)}finally{e.google_measure_js_timing&&u&&cb(Object.assign({},{label:a.toString(),value:u,duration:(bb()||0)-u,type:q},d&&l&&{taskId:e.google_rum_task_id_counter=e.google_rum_task_id_counter||1}),e)}return C}},T=function(a,b){return db(a,b,function(c,d){var e=new Ca;var l=void 0===l?e.m:l;var u=void 0===u?e.j:u;if(!(Math.random()>l||(d.error&&d.meta&&d.id||(d=new va(d,{context:c,id:u})),k.google_js_errors=k.google_js_errors||[],k.google_js_errors.push(d),k.error_rep_loaded))){c=k.document;l=x(ta(e.g).toString());e=c;e=void 0===e?document:e;e=e.createElement("script");e.src=ta(l);var q,C;(q=(l=null==(C=(q=(e.ownerDocument&&e.ownerDocument.defaultView||window).document).querySelector)?void 0:C.call(q,"script[nonce]"))?l.nonce||l.getAttribute("nonce")||"":"")&&e.setAttribute("nonce",q);(q=c.getElementsByTagName("script")[0])&&q.parentNode&&q.parentNode.insertBefore(e,q);k.error_rep_loaded=!0}})};var eb=function(a,b,c){if(2==R.status)P(R,"Called register multiple times");else if("number"!==typeof a||0>=a)P(R,"Invalid initial width");else if("number"!==typeof b||0>=b)P(R,"Invalid initial height");else{var d=null;if(null!=c){if("function"!==typeof c){P(R,"Invalid callback function");return}d=c}R.register(a,b,d)}},fb=function(){return F(R)?{"exp-ovr":R.D.g,"exp-push":R.D.m,"read-cookie":R.D.j,"write-cookie":R.D.o}:(P(R,"Called supports on bad container"),null)},gb=function(){if(!F(R))return P(R,"Called geom on bad container"),null;var a=R.A,b={win:{t:a.j.o,r:a.j.j,b:a.j.g,l:a.j.m,w:a.j.j-a.j.m,h:a.j.g-a.j.o},self:{t:a.m.o,r:a.m.j,b:a.m.g,l:a.m.m,w:a.m.j-a.m.m,h:a.m.g-a.m.o,z:parseInt(a.C,10),xiv:a.A,yiv:a.B,iv:a.A*a.B},exp:{t:a.o.o,r:a.o.j,b:a.o.g,l:a.o.m,xs:!1,yx:!1}};a.g&&(b.pos={t:a.g.o,r:a.g.j,b:a.g.g,l:a.g.m,w:a.g.j-a.g.m,h:a.g.g-a.g.o});return b},hb=function(){if(!F(R))return P(R,"Called inViewPercentage on bad container"),null;var a=R.A;return a.A*a.B*100},ib=function(){if(!F(R))return P(R,"Called status on bad container"),null;switch(R.g){case 0:return"collapsed";case 1:return"collapsing";case 2:return"expanded";case 3:return"expanding";case 4:return"resized";case 5:return"resizing";default:return null}},jb=function(a,b){if(!F(R))return P(R,"Called meta on bad container"),null;if("string"!==typeof a||/^[\s\xa0]*$/.test(null==a?"":String(a)))return P(R,"Invalid property name"),null;var c="shared";if(null!=b){if("string"!==typeof b||/^[\s\xa0]*$/.test(null==b?"":String(b)))return P(R,"Invalid owner key"),null;c=b}b=R.N;return null==b.g[c]||null==b.g[c][a]?null:b.g[c][a]},kb=function(a,b){2==R.status?"string"!==typeof a||/^[\s\xa0]*$/.test(a)?P(R,"Invalid cookie name"):((a=null==b)||!(a=m(b)&&"string"===typeof b.info)||(a=null==b.expires)||(a=b.expires,a=m(a)&&"function"==typeof a.getFullYear),a?(S("unsupported",null!=b?"write-cookie":"read-cookie","$sf.ext.cookie is not supported",b),P(R,"Used unsupported cookie operations")):(S("failed","write-cookie","Invalid $sf.ext.cookie arguments",b),P(R,"Invalid cookie data"))):P(R,"Called cookie on unregistered container")},lb=function(a){if(2==R.status)if(0==R.g)if(m(a)&&(null!=a.t||null!=a.r||null!=a.b||null!=a.l)&&(null==a.t||"number"===typeof a.t&&0<=a.t)&&(null==a.r||"number"===typeof a.r&&0<=a.r)&&(null==a.b||"number"===typeof a.b&&0<=a.b)&&(null==a.l||"number"===typeof a.l&&0<=a.l)&&(null==a.push||"boolean"===typeof a.push)){var b=new z(a.t||0,a.r||0,a.b||0,a.l||0);a=a.push||!1;var c=R;c.g=3;N(c,"expand_request",new L(c.m,b,a,c.j))}else S("failed",m(a)&&"boolean"===typeof a.push&&1==a.push?"exp-push":"exp-ovr","Invalid $sf.ext.expand arguments",a),P(R,"Invalid expand data");else P(R,"Called expand on uncollapsed container");else P(R,"Called expand on unregistered container")},mb=function(a){if(2==R.status)if(1==R.g||3==R.g||5==R.g)P(R,"Called resize on container in incorrect state.");else{var b=!m(a)||null==a.t&&null==a.r&&null==a.b&&null==a.l||null!=a.t&&"number"!==typeof a.t||null!=a.r&&"number"!==typeof a.r||null!=a.b&&"number"!==typeof a.b||null!=a.l&&"number"!==typeof a.l?null:a;if(b){a=new z(b.t||0,b.r||0,b.b||0,b.l||0);b=b.push||!1;var c=R;0Y.length)throw Error("Parsed content size doesn't match. "+X+":"+Y.length);sb={R:W[1],content:Y.substr(0,X),P:Y.substr(X)};V=JSON.parse(sb.P);rb=sb.R}var ub=rb,vb,B=V;if("string"!==typeof B.uid&&"number"!==typeof B.uid||"string"!==typeof B.hostPeerName||"string"!==typeof B.initialGeometry||"string"!==typeof B.permissions||"string"!==typeof B.metadata||"boolean"!==typeof B.reportCreativeGeometry||"boolean"!==typeof B.isDifferentSourceWindow||null!=B.sentinel&&"string"!==typeof B.sentinel||(null==B.pbjsAdConfig||"string"===typeof B.pbjsAdConfig)&&B.goog_safeframe_hlt&&!m(B.goog_safeframe_hlt))throw Error("Cannot parse config");var Ka=E(B.initialGeometry),H=JSON.parse(B.permissions);if(!m(H)||"boolean"!==typeof H.expandByOverlay||"boolean"!==typeof H.expandByPush||"boolean"!==typeof H.readCookie||"boolean"!==typeof H.writeCookie)throw Error("Cannot parse JSON permissions");var La=new Ja,Z=JSON.parse(B.metadata),wb;(wb=!m(Z))||(wb=!!(!m(Z.shared)||"string"!==typeof Z.shared.sf_ver||"number"!==typeof Z.shared.ck_on||"string"!==typeof Z.shared.flash_ver||Z.shared.canonical_url&&"string"!==typeof Z.shared.canonical_url||Z.shared.amp&&(!m(Z.shared.amp)||Z.shared.amp.canonical_url&&"string"!==typeof Z.shared.amp.canonical_url)));if(wb)throw Error("Cannot parse JSON metadata");var G={shared:{sf_ver:Z.shared.sf_ver,ck_on:Z.shared.ck_on,flash_ver:Z.shared.flash_ver}};Z.shared.canonical_url&&(G.shared.canonical_url=Z.shared.canonical_url);Z.shared.amp&&(G.shared.is_amp=!0,G.shared.canonical_url=Z.shared.amp.canonical_url);var Ma=new Ia,Na=Aa();vb=new Oa;if(!vb.g&&"1-0-40"!=ub)throw Error("Host has different version from ext container");ob=new O(vb);if(pb||!qb)p("$sf.ext.register",T(441,eb)),p("$sf.ext.supports",T(443,fb)),p("$sf.ext.geom",T(438,gb)),p("$sf.ext.inViewPercentage",T(439,hb)),p("$sf.ext.status",T(442,ib)),p("$sf.ext.meta",T(440,jb)),p("$sf.ext.cookie",T(436,kb)),p("$sf.ext.expand",T(437,lb)),p("$sf.ext.collapse",T(435,nb)),ob.j&&p("$sf.ext.resize",mb);V.pbjsAdConfig&&p("$sf.ext.pbjsAdConfig",V.pbjsAdConfig)}catch(a){}k.sf_=void 0;window.name="";var R=ob;}).call(this);