(function(){var DEPS_GRAPH={'enablermodule':[],'configurablemodule':['enablermodule'],'gdnmodule':['enablermodule'],'layoutsmodule':['enablermodule'],'videomodule':['enablermodule'],'layoutsfillermodule':['enablermodule','layoutsmodule'],'rad_ui_videomodule':['videomodule'],'$weak$':['configurablemodule','enablermodule','gdnmodule','layoutsfillermodule','layoutsmodule','rad_ui_videomodule','videomodule']};window.STUDIO_SDK_START=+new Date();/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var h,aa=function(a){var b=0;return function(){return b>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e}); k("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=e}}); k("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Aa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g=f}});var Ba=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&cc&&(c=Math.max(c+e,0));c>>0),Ia=0,Ka=function(a,b,c){return a.call.apply(a.bind,arguments)},La=function(a,b,c){if(!a)throw Error();if(2a?null:"string"===typeof b?b.charAt(a):b[a]}function cb(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}function kb(a,b){a.sort(b||lb)}function mb(a,b){for(var c=Array(a.length),d=0;db?1:a/g,wb=/"/g,xb=/'/g,yb=/\x00/g,zb=/[\x00&<>"']/,Ab=function(a,b){return-1!=a.indexOf(b)},Cb=function(a,b){var c=0;a=sb(String(a)).split(".");b=sb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0};function Db(){var a=q.navigator;return a&&(a=a.userAgent)?a:""}var Eb,Fb=q.navigator;Eb=Fb?Fb.userAgentData||null:null;function Gb(a){return nb?Eb?Eb.brands.some(function(b){return(b=b.brand)&&Ab(b,a)}):!1:!1}function y(a){return Ab(Db(),a)};function Hb(){return nb?!!Eb&&0parseFloat(Zb)){Yb=String(ac);break a}}Yb=Zb}var cc=Yb;function dc(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function ec(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))break}function fc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function gc(a,b){var c=Ga(b),d=c?b:arguments;for(c=c?0:1;c+~[\]()=\\^$|]+$/.test(c))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: "+a);a:{for(var d={"(":")","[":"]"},e=[],f=0;f>>0;return b},ed=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})},fd=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};var id=function(a){return a?new gd(hd(a)):Qa||(Qa=new gd)},kd=function(a,b){dc(b,function(c,d){c&&"object"==typeof c&&c.za&&(c=c.oa());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:jd.hasOwnProperty(d)?a.setAttribute(jd[d],c):qb(d,"aria-")||qb(d,"data-")?a.setAttribute(d,c):a[d]=c})},jd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type", usemap:"useMap",valign:"vAlign",width:"width"},ld=function(){var a=window.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new $c(a.clientWidth,a.clientHeight)},md=function(a){return a.parentWindow||a.defaultView},z=function(a,b,c){return nd(document,arguments)},nd=function(a,b){var c=b[1],d=od(a,String(b[0]));c&&("string"===typeof c?d.className=c:Array.isArray(c)?d.className=c.join(" "):kd(d,c));2b?null:a.slice(b+1)},Ad=function(a){a=a.match(yd);return xd(a[1],a[2],a[3],a[4])},Bd=function(a,b){if(a){a=a.split("&");for(var c=0;cd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return ad(a.slice(d,-1!==e?e:0))};var Ed=function(a,b){this.name=a;this.value=b};Ed.prototype.toString=function(){return this.name};var Fd=[new Ed("OFF",Infinity),new Ed("SHOUT",1200),new Ed("SEVERE",1E3),new Ed("WARNING",900),new Ed("INFO",800),new Ed("CONFIG",700),new Ed("FINE",500),new Ed("FINER",400),new Ed("FINEST",300),new Ed("ALL",0)],Gd=null;/* SPDX-License-Identifier: Apache-2.0 */ var Hd;try{new URL("s://g"),Hd=!0}catch(a){Hd=!1}var Id=Hd;function Jd(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};var Kd=function(a){var b=!1;b=void 0===b?!1:b;var c=void 0===c?q:c;for(var d=0;c&&40>d++;){var e;if(!(e=b))try{e=!!c&&null!=c.location.href&&Rb(c,"foo")}catch(g){e=!1}if(e&&a(c))break;a:{try{var f=c.parent;if(f&&f!=c){c=f;break a}}catch(g){}c=null}}},Ld=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};function Md(a){q.setTimeout(function(){throw a;},0)};var Nd=function(a){if(a.W&&"function"==typeof a.W)return a.W();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(Ga(a)){for(var b=[],c=a.length,d=0;db)throw Error("Bad port number "+b);a.B=b}else a.B=null},Td=function(a,b,c){b instanceof Wd?(a.j=b,be(a.j,a.v)):(c||(b=Xd(b,ce)),a.j=new Wd(b,a.v))},Vd=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Xd=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,de),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},de=function(a){a= a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Yd=/[#\/\?@]/g,$d=/[#\?:]/g,Zd=/[#\?]/g,ce=/[#\?@]/g,ae=/#/g,Wd=function(a,b){this.j=this.h=null;this.l=a||null;this.o=!!b},ee=function(a){a.h||(a.h=new Map,a.j=0,a.l&&Bd(a.l,function(b,c){a.add(ad(b),c)}))};Wd.prototype.fa=function(){ee(this);return this.j};Wd.prototype.add=function(a,b){ee(this);this.l=null;a=fe(this,a);var c=this.h.get(a);c||this.h.set(a,c=[]);c.push(b);this.j+=1;return this}; var ge=function(a,b){ee(a);b=fe(a,b);a.h.has(b)&&(a.l=null,a.j-=a.h.get(b).length,a.h.delete(b))};h=Wd.prototype;h.ea=function(a){ee(this);a=fe(this,a);return this.h.has(a)};h.Va=function(a){var b=this.W();return 0<=Ya(b,a)};h.forEach=function(a,b){ee(this);this.h.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)}; h.Fa=function(){ee(this);for(var a=Array.from(this.h.values()),b=Array.from(this.h.keys()),c=[],d=0;da.j&&(a.j++,b.next=a.h,a.h=b)};var Je,Ke=function(){var a=q.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(a=function(){var e=od(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=v(function(m){if(("*"==l||m.origin==l)&&m.data==g)this.port1.onmessage()}, this);f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,l)}}});if("undefined"!==typeof a&&!Jb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.kc;c.kc=null;e()}};return function(e){d.next={kc:e};d=d.next;b.port2.postMessage(0)}}return function(e){q.setTimeout(e,0)}};var Le=function(){this.j=this.h=null};Le.prototype.add=function(a,b){var c=Me.get();c.set(a,b);this.j?this.j.next=c:this.h=c;this.j=c};var Oe=function(){var a=Ne,b=null;a.h&&(b=a.h,a.h=a.h.next,a.h||(a.j=null),b.next=null);return b},Me=new He(function(){return new Pe},function(a){return a.reset()}),Pe=function(){this.next=this.scope=this.h=null};Pe.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null};Pe.prototype.reset=function(){this.next=this.scope=this.h=null};var Qe,Re=!1,Ne=new Le,Te=function(a,b){Qe||Se();Re||(Qe(),Re=!0);Ne.add(a,b)},Se=function(){if(q.Promise&&q.Promise.resolve){var a=q.Promise.resolve(void 0);Qe=function(){a.then(Ue)}}else Qe=function(){var b=Ue;"function"!==typeof q.setImmediate||q.Window&&q.Window.prototype&&(Hb()||!y("Edge"))&&q.Window.prototype.setImmediate==q.setImmediate?(Je||(Je=Ke()),Je(b)):q.setImmediate(b)}},Ue=function(){for(var a;a=Oe();){try{a.h.call(a.scope)}catch(b){Md(b)}Ie(Me,a)}Re=!1};var Ve=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Xe=function(a){this.h=0;this.A=void 0;this.o=this.j=this.l=null;this.v=this.s=!1;if(a!=Wa)try{var b=this;a.call(void 0,function(c){We(b,2,c)},function(c){We(b,3,c)})}catch(c){We(this,3,c)}},Ye=function(){this.next=this.context=this.j=this.l=this.h=null;this.o=!1};Ye.prototype.reset=function(){this.context=this.j=this.l=this.h=null;this.o=!1}; var Ze=new He(function(){return new Ye},function(a){a.reset()}),$e=function(a,b,c){var d=Ze.get();d.l=a;d.j=b;d.context=c;return d},af=function(a){if(a instanceof Xe)return a;var b=new Xe(Wa);We(b,2,a);return b},bf=function(a){return new Xe(function(b,c){c(a)})},df=function(a,b,c){cf(a,b,c,null)||Te(Ma(b,a))},ef=function(a){return new Xe(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,r){d--;e[n]=r;0==d&&b(e)},g=function(n){c(n)},l=0,m;l=b.v&&b.cancel())}this.G?this.G.call(this.da,this):this.F=!0;this.h||this.s(new sf(this))}};C.prototype.X=function(a,b){this.D=!1;tf(this,a,b)}; var tf=function(a,b,c){a.h=!0;a.l=c;a.o=!b;uf(a)},wf=function(a){if(a.h){if(!a.F)throw new vf(a);a.F=!1}};C.prototype.callback=function(a){wf(this);tf(this,!0,a)};C.prototype.s=function(a){wf(this);tf(this,!1,a)};var yf=function(a,b,c){xf(a,b,null,c)},xf=function(a,b,c,d){a.A.push([b,c,d]);a.h&&uf(a)};C.prototype.then=function(a,b,c){var d,e,f=new Xe(function(g,l){e=g;d=l});xf(this,e,function(g){g instanceof sf?f.cancel():d(g);return zf},this);return f.then(a,b,c)};C.prototype.$goog_Thenable=!0; var Af=function(a,b){b instanceof C?yf(a,v(b.J,b)):yf(a,function(){return b})};C.prototype.J=function(a){var b=new C;xf(this,b.callback,b.s,b);a&&(b.j=this,this.v++);return b}; var Bf=function(a){return ab(a.A,function(b){return"function"===typeof b[1]})},zf={},uf=function(a){if(a.B&&a.h&&Bf(a)){var b=a.B,c=Cf[b];c&&(q.clearTimeout(c.h),delete Cf[b]);a.B=0}a.j&&(a.j.v--,delete a.j);b=a.l;for(var d=c=!1;a.A.length&&!a.D;){var e=a.A.shift(),f=e[0],g=e[1];e=e[2];if(f=a.o?g:f)try{var l=f.call(e||a.da,b);l===zf&&(l=void 0);void 0!==l&&(a.o=a.o&&(l==b||l instanceof Error),a.l=b=l);if(Ve(b)||"function"===typeof q.Promise&&b instanceof q.Promise)d=!0,a.D=!0}catch(m){b=m,a.o=!0, Bf(a)||(c=!0)}}a.l=b;d&&(l=v(a.X,a,!0),d=v(a.X,a,!1),b instanceof C?(xf(b,l,d),b.I=!0):b.then(l,d));c&&(b=new Df(b),Cf[b.h]=b,a.B=b.h)},vf=function(){Pa.call(this)};w(vf,Pa);vf.prototype.message="Deferred has already fired";vf.prototype.name="AlreadyCalledError";var sf=function(){Pa.call(this)};w(sf,Pa);sf.prototype.message="Deferred was canceled";sf.prototype.name="CanceledError";var Df=function(a){this.h=q.setTimeout(v(this.l,this),0);this.j=a}; Df.prototype.l=function(){delete Cf[this.h];throw this.j;};var Cf={};var If=function(a){var b={},c=b.document||document,d=rc(a).toString(),e=wd(new gd(c),"SCRIPT"),f={ed:e,ld:void 0},g=new C(Ef,f),l=null,m=null!=b.timeout?b.timeout:5E3;0=d.h.length)return Mf;var f=d.h[b++];return{value:a?f:d.j[f],done:!1}};return e};var Sf=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function F(a){a&&"function"==typeof a.dispose&&a.dispose()};function Uf(a){for(var b=0,c=arguments.length;b>>0),qg=function(a){if("function"=== typeof a)return a;a[Ag]||(a[Ag]=function(b){return a.handleEvent(b)});return a[Ag]};var H=function(){G.call(this);this.v=new fg(this);this.Ve=this;this.hb=null};w(H,G);H.prototype[ag]=!0;h=H.prototype;h.Vb=function(a){this.hb=a};h.addEventListener=function(a,b,c,d){pg(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){wg(this,a,b,c,d)}; h.dispatchEvent=function(a){var b,c=this.hb;if(c)for(b=[];c;c=c.hb)b.push(c);c=this.Ve;var d=a.type||a;if("string"===typeof a)a=new Wf(a,c);else if(a instanceof Wf)a.target=a.target||c;else{var e=a;a=new Wf(d,c);mc(a,e)}e=!0;if(b)for(var f=b.length-1;!a.j&&0<=f;f--){var g=a.h=b[f];e=Bg(g,d,!0,a)&&e}a.j||(g=a.h=c,e=Bg(g,d,!0,a)&&e,a.j||(e=Bg(g,d,!1,a)&&e));if(b)for(f=0;!a.j&&fd.status?b(JSON.parse(d.responseText)):c())};d.open("GET",a,!0);d.send()})}; function Vg(){var a=Wg(),b;wa(new va(new ra(function(c){if(1==c.h){var d=Tg(a);c.h=2;return{value:d}}if(b=c.s){d="sodar2";d=void 0===d?"sodar2":d;var e=window,f=e.GoogleGcLKhOms;f&&"function"===typeof f.push||(f=e.GoogleGcLKhOms=[]);var g={};f.push((g._ctx_=b.context,g._bgv_=b.Pd,g._bgp_=b.Od,g._li_=b.Ce,g._jk_=b.sb,g._st_=b.Ia,g._rc_=b.qb,g._dl_=b.xb,g._g2_=b.pb,g));if(f=e.GoogleDX5YKUSk)e.GoogleDX5YKUSk=void 0,f[1]();d=wc({basename:d});Sg(d)}return c.return(b)})))};var Xg=Kb(),Yg=Ob()||y("iPod"),Zg=y("iPad"),$g=y("Android")&&!(Lb()||Kb()||Ib()||y("Silk")),ah=Lb(),bh=y("Safari")&&!(Lb()||(Hb()?0:y("Coast"))||Ib()||(Hb()?0:y("Edge"))||(Hb()?Gb("Microsoft Edge"):y("Edg/"))||(Hb()?Gb("Opera"):y("OPR"))||Kb()||y("Silk")||y("Android"))&&!Pb();var ch={},dh=null;var eh="undefined"!==typeof Uint8Array,fh=!Tb&&"function"===typeof q.btoa;var gh="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;function hh(a,b){if(gh)return a[gh]|=b;if(void 0!==a.h)return a.h|=b;Object.defineProperties(a,{h:{value:b,configurable:!0,writable:!0,enumerable:!1}});return b}function J(a){var b;gh?b=a[gh]:b=a.h;return null==b?0:b}function ih(a,b){gh?a[gh]=b:void 0!==a.h?a.h=b:Object.defineProperties(a,{h:{value:b,configurable:!0,writable:!0,enumerable:!1}});return a}function jh(a,b){ih(b,(a|0)&-51)} function kh(a,b){ih(b,(a|18)&-41)};var lh={};function mh(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object}var nh=Object.freeze(ih([],23));function oh(a){if(a&2)throw Error();}function ph(a){var b=a.length;(b=b?a[b-1]:void 0)&&mh(b)?b.g=1:(b={},a.push((b.g=1,b)))};var qh=function(a){var b=a.j+a.Ea;return a.ga||(a.ga=a.T[b]={})},rh=function(a,b,c){return-1===b?null:b>=a.j?a.ga?a.ga[b]:void 0:c&&a.ga&&(c=a.ga[b],null!=c)?c:a.T[b+a.Ea]},sh=function(a,b,c,d){a.l&&(a.l=void 0);b>=a.j||d?qh(a)[b]=c:(a.T[b+a.Ea]=c,(a=a.ga)&&b in a&&delete a[b])},uh=function(a,b){var c=void 0===c?!1:c;var d=rh(a,1,c);var e=!1;if(null==d||"object"!==typeof d||(e=Array.isArray(d))||d.Qb!==lh)if(e){e=J(a.T);var f=J(d),g=f;0===g&&(g|=e&16);g|=e&2;g!==f&&ih(d,g);b=new b(d)}else b=void 0; else b=d;b!==d&&null!=b&&sh(a,1,b,c);d=b;if(null==d)return d;J(a.T)&2||(b=d,J(b.T)&2&&(e=th(b,!1),e.l=b,b=e),b!==d&&(d=b,sh(a,1,d,c)));return d};var vh;function wh(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a)if(Array.isArray(a)){if(0!==(J(a)&128))return a=Array.prototype.slice.call(a),ph(a),a}else if(eh&&null!=a&&a instanceof Uint8Array){if(fh){for(var b="";10240e;e++){var f=c.concat(d[e].split(""));ch[e]=f;for(var g=0;g>2];m=b[(m&3)<<4|n>>4];n=b[(n&15)<<2|l>>6];l=b[l&63];c[e++]=""+g+m+n+l}g=0;l=d;switch(a.length-f){case 2:g=a[f+1],l=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=""+b[a>>2]+b[(a&3)<<4|g>>4]+l+d}a=c.join("")}return a}}return a};function xh(a,b,c,d){if(null!=a){if(Array.isArray(a))a=yh(a,b,c,void 0!==d);else if(mh(a)){var e={},f;for(f in a)e[f]=xh(a[f],b,c,d);a=e}else a=b(a,d);return a}}function yh(a,b,c,d){var e=J(a);d=d?!!(e&16):void 0;a=Array.prototype.slice.call(a);for(var f=0;fa.innerHeight?"landscape":"portrait"},Qh=function(){return"onorientationchange"in window};Oh.prototype.le=function(){return this.j};Oh.prototype.ke=function(){return this.h};Oh.prototype.toString=function(){return this.j};t("studio.common.Orientation",Oh);Oh.prototype.getDegrees=Oh.prototype.ke;Oh.prototype.getMode=Oh.prototype.le;Oh.Mode={PORTRAIT:"portrait",LANDSCAPE:"landscape"};function Rh(a,b){return b?a.replace("[rm_exit_id]",b):a}function Sh(a){rb(cd(a))||"market"!=(a.match(yd)[1]||null)||(a=a.match(yd),a="https://play.google.com/store/apps/details"+xd(null,null,null,null,a[5],a[6],a[7]));return a};var Th={CREATIVETOOLSET_CONFIG:"creativeToolsetConfig",CREATIVETOOLSET_INTERNALS:"creativeToolsetInternals",CREATIVETOOLSET_INTERNALS_GEN204:"creativeToolsetInternalsGen204",CREATIVE_REPORTER:"creativeReporter",CREATIVE_INNOVATION:"gcreativeinnovation",GOOGLE_AFMA_SUPPORT:"googleAfmaSupport"};t("studio.common.WhitelistedExternalObject",Th);var Uh={};var K=function(a){G.call(this);this.A=a;this.l={}};w(K,G); var Vh=[],L=function(a,b,c,d,e,f){Array.isArray(c)||(c&&(Vh[0]=c.toString()),c=Vh);for(var g=0;g=Nb();L(this.I,this.B,"tick",this.U)};p(ji,ci); var li=function(a){var b=a.aa.data;if("string"!==typeof b)return!1;var c=b.indexOf("|"),d=b.indexOf(":");if(-1==c||-1==d)return!1;var e=b.substring(0,c);c=b.substring(c+1,d);b=b.substring(d+1);if(d=Uh[e])return d.qa(c,b,a.aa.origin),!0;d=ki(b)[0];for(var f in Uh){var g=Uh[f];if(1==g.ja()&&!g.isConnected()&&"tp"==c&&("SETUP"==d||"SETUP_NTPV2"==d)&&g.Xa(a.aa.origin))return g.bb(e),g.qa(c,b),!0}return!1}; ji.prototype.yb=function(a){var b=ki(a);a=b[1];switch(b[0]){case "SETUP_ACK":mi(this,1);this.o.h||this.o.callback(!0);break;case "SETUP_ACK_NTPV2":2==this.A&&(mi(this,2),this.o.h||this.o.callback(!0));break;case "SETUP":mi(this,1);ni(this,1);break;case "SETUP_NTPV2":2==this.A&&(b=this.h,mi(this,2),ni(this,2),1!=b&&null==this.F||this.F==a||oi(this),this.F=a)}}; var oi=function(a){2!=a.A||null!=a.h&&2!=a.h||a.S("tp","SETUP_NTPV2,"+a.Z);null!=a.h&&1!=a.h||a.S("tp","SETUP")},ni=function(a,b){if(2!=a.A||null!=a.h&&2!=a.h||2!=b){if(null!=a.h&&1!=a.h||1!=b)return;a.S("tp","SETUP_ACK")}else a.S("tp","SETUP_ACK_NTPV2");a.v.h||a.v.callback(!0)},mi=function(a,b){b>a.h&&(a.h=b);1==a.h&&(a.v.h||a.J||a.v.callback(!0),a.F=null)}; ji.prototype.connect=function(){var a=md(this.j.h),b=Ja(a),c=pi[b];"number"!==typeof c&&(c=0);0==c&&pg(a.postMessage?a:a.document,"message",li,!1,ji);pi[b]=c+1;this.N=!0;this.U()};ji.prototype.U=function(){var a=0==this.s.ja();this.J&&a||this.s.isConnected()||this.isDisposed()?Dg(this.B):(this.B.start(),oi(this))};var qi=function(a,b,c){var d=a.s.Y,e=a.s.name;a.D=0;try{var f=d.postMessage?d:d.document;f.postMessage&&f.postMessage(e+"|"+b+":"+c,a.ia)}catch(g){}}; ji.prototype.S=function(a,b){var c=this;this.s.Y&&(this.va?this.D=Eg(function(){return void qi(c,a,b)},0):qi(this,a,b))};ji.prototype.ua=function(){ii(this.s,1==this.A||1==this.h?200:void 0)}; ji.prototype.C=function(){if(this.N){var a=md(this.j.h);if(a){var b=Ja(a),c=pi[b];pi[b]=c-1;1===c&&wg(a.postMessage?a:a.document,"message",li,!1,ji)}}this.D&&(q.clearTimeout(this.D),this.D=0);F(this.I);delete this.I;F(this.B);delete this.B;this.o.cancel();delete this.o;this.v.cancel();delete this.v;this.l.cancel();delete this.l;delete this.S;ci.prototype.C.call(this)};var ki=function(a){a=a.split(",");a[1]=a[1]||null;return a};ji.prototype.h=null;ji.prototype.N=!1;ji.prototype.G=1;var pi={}; ji.prototype.D=0;var ri=function(a,b,c){G.call(this);this.h=a;this.l=b||0;this.j=c;this.o=v(this.Xd,this)};w(ri,G);h=ri.prototype;h.Aa=0;h.C=function(){ri.M.C.call(this);this.isActive()&&q.clearTimeout(this.Aa);this.Aa=0;delete this.h;delete this.j};h.start=function(a){this.isActive()&&q.clearTimeout(this.Aa);this.Aa=0;this.Aa=Eg(this.o,void 0!==a?a:this.l)};h.isActive=function(){return 0!=this.Aa};h.Xd=function(){this.Aa=0;this.h&&this.h.call(this.j)};var ui=function(a){var b=[];si(new ti,a,b);return b.join("")},ti=function(){},si=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fxa.apply(0,arguments).reduce(function(a,b){return a+b.length},0)}; Ji.prototype.D=function(a){var b=a.clientX,c=a.clientY;a.changedTouches&&a.changedTouches[0]&&(b=a.changedTouches[0].clientX,c=a.changedTouches[0].clientY);this.h.set("nx",Math.round(b));this.h.set("ny",Math.round(c));this.o&&(this.j||(this.j=window.GoogleA13IjpGc),this.v=this.j&&"function"===typeof this.j.snapshotSync?this.j.snapshotSync():null)};Ji.prototype.C=function(){this.s=!1;K.prototype.C.call(this)};var Ki=function(a){this.h=a};Ki.prototype.toString=function(){return(this.h&2?"b":"t")+(this.h&1?"r":"l")};t("studio.common.mde.Direction",Ki);Ki.Corner={dg:0,eg:1,wf:2,xf:3};var Li={TL:new Ki(0),TR:new Ki(1),BL:new Ki(2),BR:new Ki(3)},Mi=fc(Li);var Ni={bg:"startExpandInternal",ag:"startCollapseInternal",Kf:"finishCollapseInternal",uf:"aboutToExpandInternal",Xf:"setAdVisibleInternal",Yf:"setAdParameters",Ef:"dispatchEvent",Zf:"setParameter",Rf:"getParameter",Qf:"fullscreenSupportInternal",Nf:"fullscreenDimensionsInternal",Pf:"fullscreenExpandStartInternal",Of:"fullscreenExpandFinishInternal",Mf:"fullscreenCollapseStartInternal",Lf:"fullscreenCollapseFinishInternal",Tf:"invokeOnAllVideos",Uf:"livePreviewChannel",Ff:"dispatchPageLoaded"},Oi= {},Pi;for(Pi in Ni)Oi[Ni[Pi]]=!0;var Qi=[/s0(qa)?\.2mdn\.net/,/^.*\.(prod|corp)\.google\.com/,/localhost/,/tpc\.googlesyndication\.com/,/secureframe\.doubleclick\.net/,/imasdk\.googleapis\.com/,/^.*dot-expandable-ad-tool\.appspot\.com/];function Ri(){var a=location.hostname;return A(2)&&!A(16)?!1:ab(Qi,function(b){return b.test(a)})};var Si=function(a){G.call(this);this.j=a;this.h={};this.j.ad(v(this.l,this))};w(Si,G);var Ui=function(a,b){if(-1!=b.indexOf(":"))throw Error('Virtual channel name "'+b+'" should not contain colons');if(b in a.h)throw Error('Virtual channel "'+b+'" was already created for this multichannel.');var c=new Ti(a,b);return a.h[b]=c};Si.prototype.l=function(a,b){if(a=a.match(/^([^:]*):(.*)/)){var c=a[1];a=a[2];c in this.h&&(c=this.h[c])&&c.l&&c.l(a,b)}}; Si.prototype.C=function(){dc(this.h,function(a){F(a)});F(this.j);delete this.h;delete this.j};var Ti=function(a,b){G.call(this);this.h=a;this.j=b};w(Ti,G);h=Ti.prototype;h.connect=function(a){a&&a()};h.isConnected=function(){return!0};h.eb=function(a,b,c){this.h.j.eb(this.j+":"+a,v(this.pc,this,b),c)};h.ad=function(a){this.l=v(this.pc,this,a)};h.Ta=function(a,b){if(this.isDisposed())throw Error("#send called for disposed VirtualChannel.");this.h.j.Ta(this.j+":"+a,b)}; h.pc=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};h.C=function(){this.h=this.h.h[this.j]=null};var Vi=function(a){G.call(this);this.j=new Si(a);this.o={};this.l=Ui(this.j,"private");this.A=Ui(this.j,"public");this.l.eb("mics",v(this.I,this),!0)};w(Vi,G);Vi.prototype.J=0;Vi.prototype.C=function(){F(this.j);delete this.j;delete this.A;delete this.l};var Wi=function(a,b,c,d){var e=a.J++;a.o[e]=d;d={signature:e};d.data=c;a.A.Ta(b,d)};Vi.prototype.I=function(a){var b=a.signature;a=a.data;b in this.o&&((0,this.o[b])(a),delete this.o[b])};var Xi=function(a,b,c){a.A.eb(b,v(a.G,a,c),!0)}; Vi.prototype.G=function(a,b){a=a(b.data);var c=b.signature;af(a).then(v(function(d){var e={};e.data=d;e.signature=c;this.l&&this.l.Ta("mics",e)},this))};var Yi=function(a,b){var c=this;a=void 0===a?"":a;b=void 0===b?null:b;this.h=this.s=this.B=null;this.D=!1;var d={},e=1,f=window.parent;if(null!=b)switch(b){case 3:f=window;case 2:e=2;d.directSyncMode=!0;break;case 4:f=window.parent.frames["goog-messaging-iframe"]}d.tp=e;d.role=1;d.nativeProtocolVersion=2;a&&(d.cn=a);this.v=new Bi(d);this.v.Y=f;Vi.call(this,this.v);Xi(this,"general",function(g){a:{var l=g.methodName;g=g.args;if(l in Oi){if(c.h){var m=c.h[l];"function"!==typeof m&&(m=c.h.defaultMessageHandler, g=[l,g]);if("function"===typeof m){l=m.apply(c.h,g);break a}}l=null}else l=void 0}return l})};w(Yi,Vi);Yi.prototype.connect=function(a){(this.D||Ri())&&this.s&&(this.B=Date.now(),this.v.connect(v(this.F,this,a)))};Yi.prototype.F=function(a){N(this,"conduitInitialized",[this.s,Array.from(Mh.values())]);var b={version:"01_250"};b.x=window.STUDIO_SDK_START||null;b.c=this.B;b.t=Date.now();N(this,"recordTimings",[b]);a&&a()}; var N=function(a,b,c,d){var e={};e.methodName=b;e.args=c&&Array.isArray(c)?c:[];Wi(a,"general",e,d||function(){})};t("studio.sdk.ContainerState",{COLLAPSING:"collapsing",COLLAPSED:"collapsed",EXPANDING:"expanding",EXPANDED:"expanded",FS_COLLAPSING:"fs_collapsing",FS_EXPANDING:"fs_expanding",FS_EXPANDED:"fs_expanded"});var Zi={NONE:0,LOG_ONLY:1};t("studio.sdk.ExitFlag",Zi);Zi.NONE=0;Zi.LOG_ONLY=1;t("studio.sdk.MraidMethod",{GET_CURRENT_POSITION:"getCurrentPosition",GET_DEFAULT_POSITION:"getDefaultPosition",GET_SCREEN_SIZE:"getScreenSize",CREATE_CALENDAR_EVENT:"createCalendarEvent",GET_MAX_SIZE:"getMaxSize",PLAY_VIDEO:"playVideo",STORE_PICTURE:"storePicture",SUPPORTS:"supports",USE_CUSTOM_CLOSE:"useCustomClose"});var $i=function(){};t("studio.sdk.IEnabler",$i);h=$i.prototype;h.fd=function(){};h.reportManualClose=function(){};h.bd=function(){};h.hd=function(){};h.gd=function(){};h.isVisible=function(){};h.la=function(){};h.isPageLoaded=function(){};h.isInitialized=function(){};h.jc=function(){};h.getParameter=function(){};h.exit=function(){};h.Lb=function(){};h.vc=function(){};h.counter=function(){};h.startTimer=function(){};h.stopTimer=function(){};h.xc=function(){};h.Ac=function(){};h.vb=function(){}; h.Ob=function(){};h.Ra=function(){};h.Nb=function(){};h.close=function(){};h.Wa=function(){};h.Ya=function(){};h.addEventListener=function(){};h.removeEventListener=function(){};h.Zc=function(){};h.Yc=function(){};h.cd=function(){};h.uc=function(){};h.Tb=function(){};h.tc=function(){};h.Cc=function(){};h.Ic=function(){};var aj=function(a){this.h=a;this.j=""},dj=function(a,b,c){for(var d=c.split("&"),e=0;ethis.s?this.s=Date.now():1E3=b.length&&""==b[0]))for(var c=0;c")&&(e=e.replace(vb,">")), -1!=e.indexOf('"')&&(e=e.replace(wb,""")),-1!=e.indexOf("'")&&(e=e.replace(xb,"'")),-1!=e.indexOf("\x00")&&(e=e.replace(yb,"�"))),e='',e=(f=oc())?f.createHTML(e):e,e=new Vc(e,Uc),(c=c.document)&&c.write&&(c.write(e instanceof Vc&&e.constructor===Vc?e.h:"type_error:SafeHtml"),c.close()))):((c=Yc(e,c,b,n))&&f.noopener&&(c.opener=null),c&&f.noreferrer&&(c.opener=null));d&&a.A()},Vj=function(a,b, c,d,e){N(a.H,e?"logExitFlushEventsOpenPopup":"launchExit",["Count",b,a.Ab,!1,c,null,d])},Xj=function(a,b,c,d){if(rb(cd(b)))B.info("There was a problem with the exit call.");else if(a.isInitialized()){var e=void 0!==d?d:0;d=a.s[b]&&a.s[b].target||"_blank";var f;if(f=!A(8))f=!(Ab(a.h.getParameter("click",""),"[rm_exit_id]")&&null!=a.s[b]&&null!=a.s[b].reportingId&&!rb(a.s[b].reportingId));e=!(e&1);var g=a.h.getParameter("click",""),l=a.va;if(l.s){var m=g;var n=ld();l.h.set("dim",n.width+"x"+n.height); n="";for(var r=fa(l.h),E=r.next();!E.done;E=r.next()){var I=fa(E.value);E=I.next().value;I=I.next().value;n=null==I?n+"&"+E+"=":n+"&"+E+"="+I}l.o&&(r="bg=","string"===typeof l.v&&l.B(m,n,r,l.v)&&(r=""+r+l.v),n=n+"&"+r);m=n;n=g.toLowerCase().indexOf("&adurl=");-1d&&(d=c.length),a=c.indexOf("?"),0>a||a>d?(a=d,b=""):b=c.substring(a+1,d),c=[c.slice(0,a),b,c.slice(d)],d=c[1],c[1]=e?d?d+"&"+e:e:d,e=c[0]+(c[1]?"?"+c[1]:"")+c[2]):e=c;return e},Wj=function(a,b,c,d){var e=null;d&&(e=a.s[d],e=null!=e.reportingId?e.reportingId:null);b=b||"";d=a.h.getParameter("thirdPartyClickRedirect","");a=parseInt(a.h.getParameter("clickN"),10);if(!rb(cd(c))&&-1