(function(){var DEPS_GRAPH={'enablermodule':[],'configurablemodule':['enablermodule'],'gdnmodule':['enablermodule'],'layoutsmodule':['enablermodule'],'videomodule':['enablermodule'],'configurablefillermodule':['configurablemodule'],'layoutsfillermodule':['layoutsmodule'],'rad_ui_videomodule':['videomodule'],'$weak$':['configurablefillermodule','configurablemodule','enablermodule','gdnmodule','layoutsfillermodule','layoutsmodule','rad_ui_videomodule','videomodule']};window.STUDIO_SDK_START=+new Date();var g,aa=function(a){var b=0;return function(){return b=e}}); ma("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=sa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k=f}});var ta=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}; ma("WeakMap",function(a){function b(){}function c(m){var p=typeof m;return"object"===p&&null!==m||"function"===p}function d(m){if(!ta(m,f)){var p=new b;la(m,f,{value:p})}}function e(m){var p=Object[m];p&&(Object[m]=function(r){if(r instanceof b)return r;d(r);return p(r)})}if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),p=Object.seal({}),r=new a([[m,2],[p,3]]);if(2!=r.get(m)||3!=r.get(p))return!1;r["delete"](m);r.set(p,4);return!r.has(m)&&4==r.get(p)}catch(H){return!1}}())return a; var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var k=0,l=function(m){this.a=(k+=Math.random()+1).toString();if(m){m=ba(m);for(var p;!(p=m.next()).done;)p=p.value,this.set(p[0],p[1])}};l.prototype.set=function(m,p){if(!c(m))throw Error("Invalid WeakMap key");d(m);if(!ta(m,f))throw Error("WeakMap key fail: "+m);m[f][this.a]=p;return this};l.prototype.get=function(m){return c(m)&&ta(m,f)?m[f][this.a]:void 0};l.prototype.has=function(m){return c(m)&&ta(m,f)&&ta(m[f], this.a)};l.prototype["delete"]=function(m){return c(m)&&ta(m,f)&&ta(m[f],this.a)?delete m[f][this.a]:!1};return l}); ma("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(ba([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var p=m.entries(),r=p.next();if(r.done||r.value[0]!=l||"s"!=r.value[1])return!1;r=p.next();return r.done||4!=r.value[0].x||"t"!=r.value[1]||!p.next().done?!1:!0}catch(H){return!1}}())return a;ra();var b=new WeakMap,c=function(l){this.b={};this.a= f();this.size=0;if(l){l=ba(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}};c.prototype.set=function(l,m){l=0===l?0:l;var p=d(this,l);p.list||(p.list=this.b[p.id]=[]);p.X?p.X.value=m:(p.X={next:this.a,sa:this.a.sa,head:this.a,key:l,value:m},p.list.push(p.X),this.a.sa.next=p.X,this.a.sa=p.X,this.size++);return this};c.prototype["delete"]=function(l){l=d(this,l);return l.X&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.b[l.id],l.X.sa.next=l.X.next,l.X.next.sa=l.X.sa,l.X.head= null,this.size--,!0):!1};c.prototype.clear=function(){this.b={};this.a=this.a.sa=f();this.size=0};c.prototype.has=function(l){return!!d(this,l).X};c.prototype.get=function(l){return(l=d(this,l).X)&&l.value};c.prototype.entries=function(){return e(this,function(l){return[l.key,l.value]})};c.prototype.keys=function(){return e(this,function(l){return l.key})};c.prototype.values=function(){return e(this,function(l){return l.value})};c.prototype.forEach=function(l,m){for(var p=this.entries(),r;!(r=p.next()).done;)r= r.value,l.call(m,r[1],r[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(l,m){var p=m&&typeof m;"object"==p||"function"==p?b.has(m)?p=b.get(m):(p=""+ ++k,b.set(m,p)):p="p_"+m;var r=l.b[p];if(r&&ta(l.b,p))for(l=0;lc&&(c=Math.max(c+e,0));c>>0),Ea=0,Ga=function(a,b,c){return a.call.apply(a.bind,arguments)},Ia=function(a,b,c){if(!a)throw Error();if(2a?null:"string"===typeof b?b.charAt(a):b[a]},ib=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},sb=function(a,b){a.sort(b||rb)},tb=function(a,b){for(var c=Array(a.length),d=0;db?1:a/g,Ab=/"/g,Bb=/'/g,Cb=/\x00/g,Db=/[\x00&<>"']/,Eb=function(a,b){return-1!=a.indexOf(b)},Gb=function(a,b){var c=0;a=wb(String(a)).split(".");b=wb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0};var Hb;a:{var Ib=h.navigator;if(Ib){var Jb=Ib.userAgent;if(Jb){Hb=Jb;break a}}Hb=""}var A=function(a){return Eb(Hb,a)};var Kb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Lb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Mb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},Nb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Ob=function(a){var b=0,c;for(c in a)b++;return b},Pb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Qb=function(a,b){var c=Ca(b),d=c?b:arguments;for(c=c?0:1;c"}else f=void 0===a?"undefined":null===a?"null":typeof a;Wa("Argument is not a %s (or a non-Element, non-Location mock); got: %s", b,f)}};var bc=function(){return null},cc=function(a){var b=1;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};var fc=function(a,b){this.a=a===dc&&b||"";this.b=ec};fc.prototype.wa=!0;fc.prototype.ra=function(){return this.a};fc.prototype.toString=function(){return"Const{"+this.a+"}"};var gc=function(a){if(a instanceof fc&&a.constructor===fc&&a.b===ec)return a.a;Wa("expected object of type Const, got '"+a+"'");return"type_error:Const"},ec={},dc={},hc=new fc(dc,"");var kc=function(a,b){this.a=a===ic&&b||"";this.b=jc};kc.prototype.wa=!0;kc.prototype.ra=function(){return this.a.toString()};kc.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var lc=function(a){if(a instanceof kc&&a.constructor===kc&&a.b===jc)return a.a;Wa("expected object of type TrustedResourceUrl, got '"+a+"' of type "+Aa(a));return"type_error:TrustedResourceUrl"},jc={},ic={};var oc=function(a,b){this.a=a===mc&&b||"";this.b=nc};oc.prototype.wa=!0;oc.prototype.ra=function(){return this.a.toString()};oc.prototype.toString=function(){return"SafeUrl{"+this.a+"}"}; var pc=function(a){if(a instanceof oc&&a.constructor===oc&&a.b===nc)return a.a;Wa("expected object of type SafeUrl, got '"+a+"' of type "+Aa(a));return"type_error:SafeUrl"},qc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,rc=function(a){if(a instanceof oc)return a;a="object"==typeof a&&a.wa?a.ra():String(a);qc.test(a)||(a="about:invalid#zClosurez");return new oc(mc,a)},nc={},mc={};var tc=function(){this.a="";this.b=sc};tc.prototype.wa=!0;var sc={};tc.prototype.ra=function(){return this.a};tc.prototype.toString=function(){return"SafeStyle{"+this.a+"}"}; var uc=function(a){var b=new tc;b.a=a;return b},vc=uc(""),xc=function(a){if(a instanceof oc)return'url("'+pc(a).replace(/+~[\]()=^$|]+$/.test(c))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+a);a:{for(var d={"(":")","[":"]"},e=[],f=0;f");var Mc=Lc("");Lc("
");var Nc=function(a){var b=new kc(ic,gc(hc));ac(a,"HTMLIFrameElement");a.src=lc(b).toString()},Oc=function(a,b){ac(a,"HTMLScriptElement");a.src=lc(b);if(null===va)b:{b=h.document;if((b=b.querySelector&&b.querySelector("script[nonce]"))&&(b=b.nonce||b.getAttribute("nonce"))&&ua.test(b)){va=b;break b}va=""}b=va;b&&a.setAttribute("nonce",b)};var Pc=function(a){return decodeURIComponent(a.replace(/\+/g," "))},Qc=function(a){Db.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(xb,"&")),-1!=a.indexOf("<")&&(a=a.replace(yb,"<")),-1!=a.indexOf(">")&&(a=a.replace(zb,">")),-1!=a.indexOf('"')&&(a=a.replace(Ab,""")),-1!=a.indexOf("'")&&(a=a.replace(Bb,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(Cb,"�")));return a},Rc=function(a,b){var c=a;0>>0;return b},Vc=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})},Wc=function(a){return a.replace(/(^|[\s]+)([a-z])/g,function(b,c,d){return c+d.toUpperCase()})};var Xc=function(){return A("iPhone")&&!A("iPod")&&!A("iPad")},Yc=function(){return Xc()||A("iPad")||A("iPod")};var Zc=function(a){Zc[" "](a);return a};Zc[" "]=xa;var ad=function(a,b){var c=$c;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var bd=A("Opera"),cd=A("Trident")||A("MSIE"),dd=A("Edge"),ed=dd||cd,fd=A("Gecko")&&!(Eb(Hb.toLowerCase(),"webkit")&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),gd=Eb(Hb.toLowerCase(),"webkit")&&!A("Edge"),hd=function(){var a=h.document;return a?a.documentMode:void 0},id; a:{var jd="",kd=function(){var a=Hb;if(fd)return/rv:([^\);]+)(\)|;)/.exec(a);if(dd)return/Edge\/([\d\.]+)/.exec(a);if(cd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(gd)return/WebKit\/(\S+)/.exec(a);if(bd)return/(?:Version)[ \/]?(\S+)/.exec(a)}();kd&&(jd=kd?kd[1]:"");if(cd){var ld=hd();if(null!=ld&&ld>parseFloat(jd)){id=String(ld);break a}}id=jd}var md=id,$c={},nd=function(a){return ad(a,function(){return 0<=Gb(md,a)})},od;od=h.document&&cd?hd():void 0;var pd=!cd||9<=Number(od);var qd=function(a,b){this.width=a;this.height=b};g=qd.prototype;g.toString=function(){return"("+this.width+" x "+this.height+")"};g.aspectRatio=function(){return this.width/this.height};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var td=function(a){return a?new rd(sd(a)):Ta||(Ta=new rd)},vd=function(a,b){Kb(b,function(c,d){c&&"object"==typeof c&&c.wa&&(c=c.ra());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:ud.hasOwnProperty(d)?a.setAttribute(ud[d],c):ub(d,"aria-")||ub(d,"data-")?a.setAttribute(d,c):a[d]=c})},ud={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"},wd=function(){var a=window.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new qd(a.clientWidth,a.clientHeight)},xd=function(a){return a.parentWindow||a.defaultView},B=function(a,b,c){return yd(document,arguments)},yd=function(a,b){var c=String(b[0]),d=b[1];if(!pd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Qc(d.name),'"');if(d.type){c.push(' type="',Qc(d.type),'"');var e={};Xb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c= zd(a,c);d&&("string"===typeof d?c.className=d:q(d)?c.className=d.join(" "):vd(c,d));2=$d(this).value)for(t(b)&&(b=b()),a=new Kd(a,String(b),this.B),c&&(a.a=c),c=this;c;){var d=c,e=a;if(d.a)for(var f=0;b=d.a[f];f++)b(e);c=c.f}};g.Ve=function(a,b){this.log(Pd,a,b)};g.Tc=function(a,b){this.log(Qd,a,b)};g.nb=function(a,b){this.log(Rd,a,b)};g.C=function(a,b){this.log(Sd,a,b)};g.kd=function(a,b){this.log(Td,a,b)}; g.Ab=function(a,b){this.log(Ud,a,b)};g.sd=function(a,b){this.log(Vd,a,b)};g.ud=function(a,b){this.log(Wd,a,b)};var ae={},be=null,ce=function(){be||(be=new Md(""),ae[""]=be,be.b(Td))},de=function(){ce();return be},C=function(a){ce();var b;if(!(b=ae[a])){b=new Md(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=C(a.substr(0,c));c.h||(c.h={});c.h[d]=b;b.f=c;ae[a]=b}return b};var ee=function(a,b){a&&a.Tc(b,void 0)},D=function(a,b,c){a&&a.nb(b,c)},E=function(a,b){a&&a.C(b,void 0)},fe=function(a,b){a&&a.Ab(b,void 0)};var F=C("studio.sdk");n("studio.sdk.logger",F,void 0);n("studio.sdk.logger.setLevel",F.b,void 0);n("studio.sdk.logger.Level.OFF",Od,void 0);n("studio.sdk.logger.Level.SHOUT",Pd,void 0);n("studio.sdk.logger.Level.SEVERE",Qd,void 0);n("studio.sdk.logger.Level.WARNING",Rd,void 0);n("studio.sdk.logger.Level.INFO",Sd,void 0);n("studio.sdk.logger.Level.CONFIG",Td,void 0);n("studio.sdk.logger.Level.FINE",Ud,void 0);n("studio.sdk.logger.Level.FINER",Vd,void 0);n("studio.sdk.logger.Level.FINEST",Wd,void 0); n("studio.sdk.logger.Level.ALL",Xd,void 0);n("studio.sdk.logger.shout",F.Ve,void 0);n("studio.sdk.logger.severe",F.Tc,void 0);n("studio.sdk.logger.warning",F.nb,void 0);n("studio.sdk.logger.info",F.C,void 0);n("studio.sdk.logger.config",F.kd,void 0);n("studio.sdk.logger.fine",F.Ab,void 0);n("studio.sdk.logger.finer",F.sd,void 0);n("studio.sdk.logger.finest",F.ud,void 0);var ge={ENABLER:"enabler",DCM_ENABLER:"dcmenabler",VIDEO:"video",CONFIGURABLE:"configurable",CONFIGURABLE_FILLER:"configurablefiller",LAYOUTS:"layouts",FILLER:"layoutsfiller",RAD_VIDEO:"rad_ui_video",GDN:"gdn"};n("studio.module.ModuleId",ge,void 0);var ie=function(a){he();return new kc(ic,a)},he=xa;var je=function(a,b){this.f=a;this.h=b;this.b=0;this.a=null};je.prototype.get=function(){if(0a.b&&(a.b++,b.next=a.a,a.a=b)};var le=function(a){h.setTimeout(function(){throw a;},0)},me,ne=function(){var a=h.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!A("Presto")&&(a=function(){var e=zd(document,"IFRAME");e.style.display="none";Nc(e);document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.write(Kc(Mc));e.close();var k="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==k)this.port1.onmessage()},this);f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}});if("undefined"!==typeof a&&!A("Trident")&&!A("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Zb;c.Zb=null;e()}};return function(e){d.next={Zb:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in zd(document,"SCRIPT")?function(e){var f= zd(document,"SCRIPT");f.onreadystatechange=function(){f.onreadystatechange=null;f.parentNode.removeChild(f);f=null;e();e=null};document.documentElement.appendChild(f)}:function(e){h.setTimeout(e,0)}};var oe=function(){this.b=this.a=null},qe=new je(function(){return new pe},function(a){a.reset()});oe.prototype.add=function(a,b){var c=qe.get();c.set(a,b);this.b?this.b.next=c:(y(!this.a),this.a=c);this.b=c};var se=function(){var a=re,b=null;a.a&&(b=a.a,a.a=a.a.next,a.a||(a.b=null),b.next=null);return b},pe=function(){this.next=this.scope=this.a=null};pe.prototype.set=function(a,b){this.a=a;this.scope=b;this.next=null};pe.prototype.reset=function(){this.next=this.scope=this.a=null};var we=function(a,b){te||ue();ve||(te(),ve=!0);re.add(a,b)},te,ue=function(){if(h.Promise&&h.Promise.resolve){var a=h.Promise.resolve(void 0);te=function(){a.then(xe)}}else te=function(){var b=xe;!t(h.setImmediate)||h.Window&&h.Window.prototype&&!A("Edge")&&h.Window.prototype.setImmediate==h.setImmediate?(me||(me=ne()),me(b)):h.setImmediate(b)}},ve=!1,re=new oe,xe=function(){for(var a;a=se();){try{a.a.call(a.scope)}catch(b){le(b)}ke(qe,a)}ve=!1};var ye=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Be=function(a){this.a=0;this.j=void 0;this.h=this.b=this.f=null;this.g=this.B=!1;if(a!=xa)try{var b=this;a.call(void 0,function(c){ze(b,2,c)},function(c){if(!(c instanceof Ae))try{if(c instanceof Error)throw c;throw Error("Promise rejected.");}catch(d){}ze(b,3,c)})}catch(c){ze(this,3,c)}},Ce=function(){this.next=this.context=this.f=this.b=this.a=null;this.h=!1};Ce.prototype.reset=function(){this.context=this.f=this.b=this.a=null;this.h=!1}; var De=new je(function(){return new Ce},function(a){a.reset()}),Ee=function(a,b,c){var d=De.get();d.b=a;d.f=b;d.context=c;return d},Fe=function(a){if(a instanceof Be)return a;var b=new Be(xa);ze(b,2,a);return b},Ge=function(a){return new Be(function(b,c){c(a)})},Ie=function(a,b,c){He(a,b,c,null)||we(Ja(b,a))},Je=function(a){return new Be(function(b,c){var d=a.length,e=[];if(d)for(var f=function(p,r){d--;e[p]=r;0==d&&b(e)},k=function(p){c(p)},l=0,m;l=b.g&&b.cancel())}this.J?this.J.call(this.D,this):this.w=!0;this.a||this.B(new Ve(this))}};G.prototype.A=function(a,b){this.o=!1;We(this,a,b)}; var We=function(a,b,c){a.a=!0;a.f=c;a.h=!b;Xe(a)},Ze=function(a){if(a.a){if(!a.w)throw new Ye(a);a.w=!1}};G.prototype.H=function(a){Ze(this);$e(a);We(this,!0,a)};G.prototype.B=function(a){Ze(this);$e(a);We(this,!1,a)};var $e=function(a){y(!(a instanceof G),"An execution sequence may not be initiated with a blocking Deferred.")},bf=function(a,b,c){af(a,b,null,c)},af=function(a,b,c,d){y(!a.Y,"Blocking Deferreds can not be re-used");a.j.push([b,c,d]);a.a&&Xe(a)}; G.prototype.then=function(a,b,c){var d,e,f=new Be(function(k,l){d=k;e=l});af(this,d,function(k){k instanceof Ve?f.cancel():e(k)});return f.then(a,b,c)};G.prototype.$goog_Thenable=!0;var cf=function(a,b){b instanceof G?bf(a,v(b.G,b)):bf(a,function(){return b})};G.prototype.G=function(a){var b=new G;af(this,b.H,b.B,b);a&&(b.b=this,this.g++);return b}; var df=function(a){return fb(a.j,function(b){return t(b[1])})},Xe=function(a){if(a.l&&a.a&&df(a)){var b=a.l,c=ef[b];c&&(h.clearTimeout(c.a),delete ef[b]);a.l=0}a.b&&(a.b.g--,delete a.b);b=a.f;for(var d=c=!1;a.j.length&&!a.o;){var e=a.j.shift(),f=e[0],k=e[1];e=e[2];if(f=a.h?k:f)try{var l=f.call(e||a.D,b);void 0!==l&&(a.h=a.h&&(l==b||l instanceof Error),a.f=b=l);if(ye(b)||"function"===typeof h.Promise&&b instanceof h.Promise)d=!0,a.o=!0}catch(m){b=m,a.h=!0,df(a)||(c=!0)}}a.f=b;d&&(l=v(a.A,a,!0),d=v(a.A, a,!1),b instanceof G?(af(b,l,d),b.Y=!0):b.then(l,d));c&&(b=new ff(b),ef[b.a]=b,a.l=b.a)},Ye=function(){Sa.call(this)};w(Ye,Sa);Ye.prototype.message="Deferred has already fired";Ye.prototype.name="AlreadyCalledError";var Ve=function(){Sa.call(this)};w(Ve,Sa);Ve.prototype.message="Deferred was canceled";Ve.prototype.name="CanceledError";var ff=function(a){this.a=h.setTimeout(v(this.f,this),0);this.b=a}; ff.prototype.f=function(){y(ef[this.a],"Cannot throw an error that is not scheduled.");delete ef[this.a];throw this.b;};var ef={};var lf=function(a){var b={},c=b.document||document,d=lc(a).toString(),e=zd(document,"SCRIPT"),f={Pc:e,ad:void 0},k=new G(gf,f),l=null,m=null!=b.timeout?b.timeout:5E3;02*a.f&&mf(a))},mf=function(a){if(a.f!=a.a.length){for(var b=0,c=0;b=a.keyCode)a.keyCode=-1}catch(b){}};zf.prototype.yd=function(){return this.$};var Af="closure_listenable_"+(1E6*Math.random()|0),Bf=function(a){return!(!a||!a[Af])},Cf=0;var Df=function(a,b,c,d,e){this.listener=a;this.a=null;this.src=b;this.type=c;this.capture=!!d;this.Ka=e;this.key=++Cf;this.La=this.bb=!1},Ef=function(a){a.La=!0;a.listener=null;a.a=null;a.src=null;a.Ka=null};var Ff=function(a){this.src=a;this.a={};this.b=0};Ff.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.a[f];a||(a=this.a[f]=[],this.b++);var k=Gf(a,b,d,e);-1c.keyCode||void 0!=c.returnValue)){a:{var e=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(k){e=!0}if(e||void 0==c.returnValue)c.returnValue=!0}c=[];for(e=b.a;e;e=e.parentNode)c.push(e);a=a.type;for(e=c.length-1;!b.b&&0<=e;e--){b.a=c[e];var f=ag(c[e],a,!0,b);d=d&&f}for(e=0;!b.b&&e>>0),Qf=function(a){y(a,"Listener can not be null.");if(t(a))return a;y(a.handleEvent,"An object listener must have handleEvent method.");a[bg]||(a[bg]=function(b){return a.handleEvent(b)});return a[bg]};var K=function(){J.call(this);this.h=new Ff(this);this.me=this;this.Za=null};w(K,J);K.prototype[Af]=!0;g=K.prototype;g.Jb=function(a){this.Za=a};g.addEventListener=function(a,b,c,d){Pf(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){Wf(this,a,b,c,d)}; g.dispatchEvent=function(a){cg(this);var b=this.Za;if(b){var c=[];for(var d=1;b;b=b.Za)c.push(b),y(1E3>++d,"infinite loop")}b=this.me;d=a.type||a;if("string"===typeof a)a=new tf(a,b);else if(a instanceof tf)a.target=a.target||b;else{var e=a;a=new tf(d,b);Xb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.b&&0<=f;f--){var k=a.a=c[f];e=dg(k,d,!0,a)&&e}a.b||(k=a.a=b,e=dg(k,d,!0,a)&&e,a.b||(e=dg(k,d,!1,a)&&e));if(c)for(f=0;!a.b&&fa.innerHeight?"landscape":"portrait"},Rg=function(){return"onorientationchange"in window};Pg.Mode={PORTRAIT:"portrait",LANDSCAPE:"landscape"};Pg.prototype.Gd=function(){return this.b};Pg.prototype.getMode=Pg.prototype.Gd;Pg.prototype.Fd=function(){return this.a};Pg.prototype.getDegrees=Pg.prototype.Fd;Pg.prototype.toString=function(){return this.b};var Sg=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l},Tg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Ug=function(a){var b=a.indexOf("#");return 0>b?null:a.substr(b+1)},Vg=function(a){a=a.match(Tg);return Sg(a[1],a[2],a[3],a[4])},Wg=function(a,b){if(a){a=a.split("&");for(var c=0;cc&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.substr(0,d),e,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]},Yg=function(a,b,c){Ya(a);if(q(b)){$a(b);for(var d=0;dd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Pc(a.substr(d,e-d))};var ah=function(a,b){return b?a.replace("[rm_exit_id]",b):a},bh=function(a){vb(Sc(a))||"market"!=(a.match(Tg)[1]||null)||(a=a.match(Tg),a="https://play.google.com/store/apps/details"+Sg(null,null,null,null,a[5],a[6],a[7]));return a};var ch={CREATIVETOOLSET_CONFIG:"creativeToolsetConfig",CREATIVETOOLSET_INTERNALS:"creativeToolsetInternals",CREATIVETOOLSET_INTERNALS_GEN204:"creativeToolsetInternalsGen204",CREATIVE_REPORTER:"creativeReporter",CREATIVE_INNOVATION:"gcreativeinnovation",GOOGLE_AFMA_SUPPORT:"googleAfmaSupport"};n("studio.common.WhitelistedExternalObject",ch,void 0);var dh={};var L=function(a){J.call(this);this.l=a;this.f={}};w(L,J); var eh=[],M=function(a,b,c,d,e,f){q(c)||(c&&(eh[0]=c.toString()),c=eh);for(var k=0;k=this.b);this.J=b||"*";this.D=new L(this);this.l=new eg(100,oh(this));this.w=!!d;this.g=new G;this.j=new G;this.h=new G;this.ha=mh();this.A=null;this.w?1==this.f.W()?cf(this.h,this.g):cf(this.h,this.j):(cf(this.h,this.g),2==this.b&&cf(this.h,this.j));bf(this.h,this.ta,this);this.h.H(!0);this.ga=cd&&!nd("11");M(this.D,this.l,"tick",this.I,void 0);E(N,"NativeMessagingTransport created. protocolVersion="+this.b+", oneSidedHandshake="+ this.w+", role="+this.f.W())};w(vh,nh);vh.prototype.a=null;vh.prototype.G=!1;vh.prototype.Oa=1;var wh={};vh.prototype.o=0; var yh=function(a){var b=a.$.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);fe(N,"messageReceived: channel="+e+", service="+c+", payload="+b);if(d=dh[e])return d.la(c,b,a.$.origin),!0;d=xh(b)[0];for(var f in dh){var k=dh[f];if(1==k.W()&&!k.isConnected()&&"tp"==c&&("SETUP"==d||"SETUP_NTPV2"==d)&&k.Va(a.$.origin))return k.Da(e),k.la(c,b),!0}E(N,'channel name mismatch; message ignored"'); return!1};vh.prototype.Ya=function(a){var b=xh(a);a=b[1];switch(b[0]){case "SETUP_ACK":zh(this,1);this.g.a||this.g.H(!0);break;case "SETUP_ACK_NTPV2":2==this.b&&(zh(this,2),this.g.a||this.g.H(!0));break;case "SETUP":zh(this,1);Ah(this,1);break;case "SETUP_NTPV2":2==this.b&&(b=this.a,zh(this,2),Ah(this,2),1!=b&&null==this.A||this.A==a||(E(N,"Sending SETUP and changing peer ID to: "+a),Bh(this)),this.A=a)}}; var Bh=function(a){y(!(1==a.b&&2==a.a));2!=a.b||null!=a.a&&2!=a.a||a.R("tp","SETUP_NTPV2,"+a.ha);null!=a.a&&1!=a.a||a.R("tp","SETUP")},Ah=function(a,b){y(1!=a.b||2!=b,"Shouldn't try to send a v2 setup ack in v1 mode.");if(2!=a.b||null!=a.a&&2!=a.a||2!=b){if(null!=a.a&&1!=a.a||1!=b)return;a.R("tp","SETUP_ACK")}else a.R("tp","SETUP_ACK_NTPV2");a.j.a||a.j.H(!0)},zh=function(a,b){b>a.a&&(a.a=b);1==a.a&&(a.j.a||a.w||a.j.H(!0),a.A=null)}; vh.prototype.connect=function(){var a=oh(this),b=Fa(a),c=wh[b];"number"!==typeof c&&(c=0);0==c&&Pf(a.postMessage?a:a.document,"message",yh,!1,vh);wh[b]=c+1;this.G=!0;this.I()};vh.prototype.I=function(){var a=0==this.f.W();this.w&&a||this.f.isConnected()||this.B?this.l.stop():(this.l.start(),Bh(this))}; var Ch=function(a,b,c){var d=a.f.ca,e=a.f.name;a.o=0;try{var f=d.postMessage?d:d.document;f.postMessage?(f.postMessage(e+"|"+b+":"+c,a.J),fe(N,"send(): service="+b+" payload="+c+" to hostname="+a.J)):D(N,"Peer window had no postMessage function.")}catch(k){D(N,"Error performing postMessage, ignoring.",k)}};vh.prototype.R=function(a,b){var c=this;this.f.ca?this.ga?this.o=fg(function(){return void Ch(c,a,b)},0):Ch(this,a,b):fe(N,"send(): window not ready")}; vh.prototype.ta=function(){uh(this.f,1==this.b||1==this.a?200:void 0)};vh.prototype.s=function(){if(this.G){var a=oh(this),b=Fa(a),c=wh[b];wh[b]=c-1;1==c&&Wf(a.postMessage?a:a.document,"message",yh,!1,vh)}this.o&&(h.clearTimeout(this.o),this.o=0);qf(this.D);delete this.D;qf(this.l);delete this.l;this.g.cancel();delete this.g;this.j.cancel();delete this.j;this.h.cancel();delete this.h;delete this.R;vh.v.s.call(this)};var xh=function(a){a=a.split(",");a[1]=a[1]||null;return a};var Dh=function(a,b,c){J.call(this);this.a=a;this.h=b||0;this.b=c;this.f=v(this.qd,this)};w(Dh,J);g=Dh.prototype;g.Aa=0;g.s=function(){Dh.v.s.call(this);this.stop();delete this.a;delete this.b};g.start=function(a){this.stop();this.Aa=fg(this.f,void 0!==a?a:this.h)};g.stop=function(){0!=this.Aa&&h.clearTimeout(this.Aa);this.Aa=0};g.qd=function(){this.Aa=0;this.a&&this.a.call(this.b)};var Gh=function(a){var b=[];Eh(new Fh,a,b);return b.join("")},Fh=function(){},Eh=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(q(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fb)throw Error("Bad port number "+b);a.l=b}else a.l=null},Ph=function(a,b,c){b instanceof Sh?(a.f=b,Yh(a.f,a.B)):(c||(b=Th(b,Zh)),a.f=new Sh(b,a.B))},Rh=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Th=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,$h),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},$h=function(a){a= a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Uh=/[#\/\?@]/g,Wh=/[#\?:]/g,Vh=/[#\?]/g,Zh=/[#\?@]/g,Xh=/#/g,Sh=function(a,b){this.b=this.a=null;this.f=a||null;this.h=!!b},ai=function(a){a.a||(a.a=new I,a.b=0,a.f&&Wg(a.f,function(b,c){a.add(Pc(b),c)}))};Sh.prototype.aa=function(){ai(this);return this.b};Sh.prototype.add=function(a,b){ai(this);this.f=null;a=bi(this,a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.b=Xa(this.b)+1;return this}; var ci=function(a,b){ai(a);b=bi(a,b);a.a.U(b)&&(a.f=null,a.b=Xa(a.b)-a.a.get(b).length,pf(a.a,b))};g=Sh.prototype;g.U=function(a){ai(this);a=bi(this,a);return this.a.U(a)};g.Pa=function(a){var b=this.P();return 0<=cb(b,a)};g.forEach=function(a,b){ai(this);this.a.forEach(function(c,d){z(c,function(e){a.call(b,e,d,this)},this)},this)};g.S=function(){ai(this);for(var a=this.a.P(),b=this.a.S(),c=[],d=0;dthis.j?this.j=Ka():1E3a?"0"+a:String(a)},fj=function(a,b){a=(a.f-b)/1E3;b=a.toFixed(3);var c=0;if(1>a)c=2;else for(;100>a;)c++,a*=10;for(;0=Qd.value)return"error";if(f.value>=Rd.value)return"warn";if(f.value>=Td.value)return"log"}return"debug"}if(!this.h[a.b]){var c=hj(this.a,a),d=lj;if(d){var e=b(a.h);mj(d,e,c,a.a)}}}; var jj=null,lj=h.console,nj=function(){jj||(jj=new ij);h.location&&-1!=h.location.href.indexOf("Debug=true")&&kj()},mj=function(a,b,c,d){if(a[b])a[b](c,d||"");else a.log(c,d||"")};var pj=function(a,b,c){if("string"===typeof b)(b=oj(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=oj(c,d);f&&(c.style[f]=e)}},qj={},oj=function(a,b){var c=qj[b];if(!c){var d=Vc(b);c=d;void 0===a.style[d]&&(d=(gd?"Webkit":fd?"Moz":cd?"ms":bd?"O":null)+Wc(d),void 0!==a.style[d]&&(c=d));qj[b]=c}return c},rj=function(a){"number"==typeof a&&(a=Math.round(a)+"px");return a},sj=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=gd&&!b&&!c;if((void 0===b||d)&&a.getBoundingClientRect){a:{try{var e= a.getBoundingClientRect()}catch(f){e={left:0,top:0,right:0,bottom:0};break a}cd&&a.ownerDocument.body&&(a=a.ownerDocument,e.left-=a.documentElement.clientLeft+a.body.clientLeft,e.top-=a.documentElement.clientTop+a.body.clientTop)}return new qd(e.right-e.left,e.bottom-e.top)}return new qd(b,c)},uj=function(a){var b=td(void 0),c=b.a;if(cd&&c.createStyleSheet)return b=c.createStyleSheet(),tj(b,a),b;c=Gd(b,"HEAD")[0];if(!c){var d=Gd(b,"BODY")[0];c=b.b("HEAD");d.parentNode.insertBefore(c,d)}d=b.b("STYLE"); tj(d,a);b.f(c,d);return d},vj=function(a){Ed(a.ownerNode||a.owningElement||a)},tj=function(a,b){b instanceof Fc&&b.constructor===Fc&&b.b===Ec?b=b.a:(Wa("expected object of type SafeStyleSheet, got '"+b+"' of type "+Aa(b)),b="type_error:SafeStyleSheet");cd&&void 0!==a.cssText?a.cssText=b:a.innerHTML=b},wj=function(a){a=a.style;a.position="relative";cd&&!nd("8")?(a.zoom="1",a.display="inline"):a.display="inline-block"};var xj=function(a){Bg(this,a)};w(xj,zg);var Q=function(a){window.AdobeEdge=window.AdobeEdge||{};window.AdobeEdge.bootstrapLoading=!0;h.console&&(nj(),kj());E(F,"");if(a!=yj)return ee(F,"You must access the enabler instance using studio.Enabler.getInstance(); or Enabler and not create a duplicate instance."),!1;K.call(this);this.w={};this.j={};this.J=new Pg(Qg(),Rg()?window.orientation:0);this.M=new L(this);this.$a=!1;this.A=null;this.f="collapsed";this.rb=!1;this.ha=null;this.ve=0;this.ua={};this.ga=null;this.qb=!1;this.G=new G;this.g= null;this.ob=[];this.ta={};this.tb=[];this.b=new Pi;this.I=new Vi(this);a=B("CANVAS");a.getContext&&a.getContext("2d")||(a=null);this.jf=new aj(a);(a=B("VIDEO"))||(a=null);this.vc=new $i(a);this.a=new Mi(zj(this));a=this.pb=new Bi;a.b=!0;M(a,document.body||window,"mousedown",a.h,{capture:!0,passive:!0});M(a,document.body||window,"touchstart",a.h,{capture:!0,passive:!0})};w(Q,K);n("studio.Enabler",Q,void 0);var Aj=["c"],yj=Math.random(),Bj=!1,Cj=null,R=function(){Cj||(Cj=new Q(yj));return Cj}; Q.getInstance=R;g=Q.prototype;g.Hc=-1;g.vb=null;g.Vc=null;g.Ob=null;g.Uc=!0;g.Kb=!1;g.Fa=!1;g.Fc=!1;g.Wc=!1;g.za=null;g.Lb=null;g.ma=null;g.F=null; var Dj=function(a){a.Ob||(a.Ob=Yi());return a.Ob},zj=function(a){var b=Dj(a).f;(a=Ug(Dj(a).toString()))&&Wg(a,function(c,d){-1=b.length&&""==b[0]))for(var c=0;c',Ya(gc(c),"must provide justification"),y(!vb(gc(c)),"must provide non-empty justification"),c=Lc(f),e=e.document))e.write(Kc(c)),e.close()}else(e=e.open(pc(f),b,l))&&c.noopener&&(e.opener=null);d&&a.o()},Mj=function(a,b,c,d,e){P(a.F,e?"logExitFlushEventsOpenPopup":"launchExit",["Count",b,a.Lb,!1,c,null,d])},Oj=function(a,b,c,d,e){if(vb(Sc(b)))E(F,"There was a problem with the exit call.");else if(a.isInitialized()){var f=void 0!==d?d:0;d=a.j[b]&&a.j[b].target||"_blank";var k;if(k=!x(8))k=!(Eb(a.a.getParameter("click", ""),"[rm_exit_id]")&&null!=a.j[b]&&null!=a.j[b].reportingId&&!vb(a.j[b].reportingId));f=!(f&1);var l=a.a.getParameter("click",""),m=a.pb;if(m.b){var p=wd();m.a.set("dim",p.width+"x"+p.height);p="";m=ba(m.a);for(var r=m.next();!r.done;r=m.next()){var H=ba(r.value);r=H.next().value;H=H.next().value;p=null==H?p+"&"+r+"=":p+"&"+r+"="+H}m=l.toLowerCase().indexOf("&adurl=");-1=p.length&&(l=l.substr(0,m)+p+l.substr(m))}e&&e.pIndex&&(e=e.pIndex)&&(p=l.toLowerCase().indexOf("&adurl="),-1c||c>(a.b?a.b.length:0))throw Error("Child component index out of bounds");a.l&&a.b||(a.l={},a.b=[]);if(b.j==a){var d=Kk(b);a.l[d]=b;lb(a.b,b)}else{d=a.l;var e=Kk(b);if(null!==d&&e in d)throw Error('The object already contains the key "'+e+'"');d[e]=b}Mk(b,a);qb(a.b,c,0,b);b.oa&&a.oa&&b.j==a?(a=a.na(),c=a.childNodes[c]||null,c!=b.getElement()&&a.insertBefore(b.getElement(), c)):(a.a||a.ba(),c=a.b?a.b[c+1]||null:null,Nk(b,a.na(),c?c.a:null))};U.prototype.na=function(){return this.a};var Ok=function(a,b){a.b&&z(a.b,b,void 0)};U.prototype.removeChild=function(a,b){if(a){var c="string"===typeof a?a:Kk(a);a=this.l&&c?Tb(this.l,c)||null:null;if(c&&a){var d=this.l;c in d&&delete d[c];lb(this.b,a);b&&(Pk(a),a.a&&Ed(a.a));Mk(a,null)}}if(!a)throw Error("Child is not in parent component");return a}; var Rk=function(a){for(var b=[];a.b&&0!=a.b.length;)b.push(a.removeChild(a.b?a.b[0]||null:null,!0))};})();