(function(){var DEPS_GRAPH={'enablermodule':[],'configurablemodule':['enablermodule'],'gdnmodule':['enablermodule'],'layoutsmodule':['enablermodule'],'videomodule':['enablermodule'],'configurablefillermodule':['configurablemodule'],'layoutsfillermodule':['layoutsmodule'],'rad_ui_videomodule':['videomodule']};var g,h=this,k=function(a){return void 0!==a},m=function(a,b,c){a=a.split(".");c=c||h;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&k(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}},aa=function(a,b){a=a.split(".");b=b||h;for(var c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b},ba=function(){},ca=function(){throw Error("unimplemented abstract method");},da=function(a){a.lb=void 0;a.Z=function(){return a.lb?a.lb:a.lb=new a}},ea=function(a){var b=typeof a;
if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b},p=function(a){return"array"==ea(a)},fa=function(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length},q=function(a){return"string"==typeof a},ga=function(a){return"number"==typeof a},r=function(a){return"function"==ea(a)},t=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},ja=function(a){return a[ha]||(a[ha]=++ia)},ha="closure_uid_"+(1E9*Math.random()>>>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(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},u=function(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ka:la;return u.apply(null,arguments)},v=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=
c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},ma=Date.now||function(){return+new Date},w=function(a,b){function c(){}c.prototype=b.prototype;a.o=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.uf=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var na=function(a,b){this.h=Math.random()<a;this.i=b;this.g=null;this.f=""};na.prototype.b=function(){return this.h&&null!==this.g?(this.i+"//pagead2.googlesyndication.com/pagead/gen_204/?id="+this.g+this.f).substring(0,2E3):""};var oa=function(a,b){na.call(this,a,b);this.c=this.a=null;this.g="rmad_mod"};w(oa,na);oa.prototype.b=function(){return null!==this.a&&null!==this.c?(this.f="&status="+this.a+"&type="+this.c,oa.o.b.call(this)):""};var pa={ENABLER:"enabler",DCM_ENABLER:"dcmenabler",VIDEO:"video",CONFIGURABLE:"configurable",CONFIGURABLE_FILLER:"configurablefiller",LAYOUTS:"layouts",FILLER:"layoutsfiller",RAD_VIDEO:"rad_ui_video",GDN:"gdn"};m("studio.module.ModuleId",pa,void 0);var x=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,x);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};w(x,Error);x.prototype.name="CustomError";var ra;var sa=function(a){var b=a.length-3;return 0<=b&&a.indexOf("Url",b)==b},ta=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},ua=function(a){return/^[\s\xa0]*$/.test(a)},va=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Da=function(a){if(!wa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(xa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ya,
"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(za,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Aa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ba,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ca,"&#0;"));return a},xa=/&/g,ya=/</g,za=/>/g,Aa=/"/g,Ba=/'/g,Ca=/\x00/g,wa=/[\x00&<>"']/,Ea=function(a,b){return-1!=a.indexOf(b)},Fa=function(a,b){var c=a;0<a.length&&0<b&&(c=a.substr(0,0)+a.substr(0+b,a.length-0-b));return c},Ga=function(a){return null==a?"":String(a)},Ha=function(a){return Array.prototype.join.call(arguments,
"")},Ja=function(a,b){var c=0;a=va(String(a)).split(".");b=va(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",l=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(0==f[0].length&&0==l[0].length)break;c=Ia(0==f[1].length?0:parseInt(f[1],10),0==l[1].length?0:parseInt(l[1],10))||Ia(0==f[2].length,0==l[2].length)||Ia(f[2],l[2]);f=f[3];l=l[3]}while(0==c)}return c},Ia=function(a,b){return a<b?-1:a>b?1:0},Ka=function(a){return String(a).replace(/\-([a-z])/g,
function(a,c){return c.toUpperCase()})},La=function(a){var b=q(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};var Ma=function(a,b){b.unshift(a);x.call(this,ta.apply(null,b));b.shift()};w(Ma,x);Ma.prototype.name="AssertionError";
var Na=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);throw new Ma(""+e,f||[]);},y=function(a,b,c){a||Na("",null,b,Array.prototype.slice.call(arguments,2))},Oa=function(a,b){throw new Ma("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Pa=function(a,b,c){ga(a)||Na("Expected number but got %s: %s.",[ea(a),a],b,Array.prototype.slice.call(arguments,2));return a},Qa=function(a,b,c){q(a)||Na("Expected string but got %s: %s.",[ea(a),a],b,Array.prototype.slice.call(arguments,
2))},Ra=function(a,b,c){r(a)||Na("Expected function but got %s: %s.",[ea(a),a],b,Array.prototype.slice.call(arguments,2))},Sa=function(a,b,c){p(a)||Na("Expected array but got %s: %s.",[ea(a),a],b,Array.prototype.slice.call(arguments,2))};var Ta=Array.prototype.indexOf?function(a,b,c){y(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(q(a))return q(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},z=Array.prototype.forEach?function(a,b,c){y(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ua=Array.prototype.map?function(a,
b,c){y(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=q(a)?a.split(""):a,l=0;l<d;l++)l in f&&(e[l]=b.call(c,f[l],l,a));return e},Va=Array.prototype.some?function(a,b,c){y(null!=a.length);return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},Wa=Array.prototype.every?function(a,b,c){y(null!=a.length);return Array.prototype.every.call(a,b,c)}:
function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0},Ya=function(a){var b=window.performance.getEntriesByType("resource");a=Xa(b,a,void 0);return 0>a?null:q(b)?b.charAt(a):b[a]},Xa=function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1},$a=function(a,b){b=Ta(a,b);var c;(c=0<=b)&&Za(a,b);return c},Za=function(a,b){y(null!=a.length);Array.prototype.splice.call(a,b,1)},ab=function(a){return Array.prototype.concat.apply(Array.prototype,
arguments)},bb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},db=function(a,b,c,d){y(null!=a.length);Array.prototype.splice.apply(a,cb(arguments,1))},cb=function(a,b,c){y(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var eb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},fb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},gb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},hb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},ib=function(a){var b=0,c;for(c in a)b++;return b},jb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},kb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},lb=function(a,b){for(var c=fa(b),
d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],k(a));c++);return a},mb=function(a,b){return null!==a&&b in a},nb=function(a,b){return null!==a&&b in a?a[b]:void 0},ob=function(a,b,c){b in a||(a[b]=c)},pb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},qb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),rb=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<qb.length;f++)c=qb[f],Object.prototype.hasOwnProperty.call(d,
c)&&(a[c]=d[c])}},sb=function(a){var b=arguments.length;if(1==b&&p(arguments[0]))return sb.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c};var tb;a:{var ub=h.navigator;if(ub){var vb=ub.userAgent;if(vb){tb=vb;break a}}tb=""}var A=function(a){return Ea(tb,a)};var wb=function(){return(A("Chrome")||A("CriOS"))&&!A("Edge")};var yb=function(){this.a="";this.b=xb};yb.prototype.Ea=!0;yb.prototype.Ba=function(){return this.a};yb.prototype.toString=function(){return"Const{"+this.a+"}"};var zb=function(a){if(a instanceof yb&&a.constructor===yb&&a.b===xb)return a.a;Oa("expected object of type Const, got '"+a+"'");return"type_error:Const"},xb={},Ab=function(a){var b=new yb;b.a=a;return b};Ab("");var Cb=function(){this.a="";this.b=Bb};Cb.prototype.Ea=!0;var Bb={};Cb.prototype.Ba=function(){return this.a};Cb.prototype.toString=function(){return"SafeStyleSheet{"+this.a+"}"};var Db=function(a){var b=new Cb;b.a=a;return b};Db("");var Fb=function(){this.a="";this.b=Eb};Fb.prototype.Ea=!0;Fb.prototype.Ba=function(){return this.a};Fb.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};
var Gb=function(a){if(a instanceof Fb&&a.constructor===Fb&&a.b===Eb)return a.a;Oa("expected object of type SafeUrl, got '"+a+"' of type "+ea(a));return"type_error:SafeUrl"},Hb=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,Jb=function(a){if(a instanceof Fb)return a;a=a.Ea?a.Ba():String(a);Hb.test(a)||(a="about:invalid#zClosurez");return Ib(a)},Eb={},Ib=function(a){var b=new Fb;b.a=a;return b};Ib("about:blank");var Lb=function(){this.a="";this.b=Kb};Lb.prototype.Ea=!0;Lb.prototype.Ba=function(){return this.a};Lb.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Kb={};var Nb=function(){this.a="";this.b=Mb};Nb.prototype.Ea=!0;Nb.prototype.Ba=function(){return this.a};Nb.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ob=function(a){if(a instanceof Nb&&a.constructor===Nb&&a.b===Mb)return a.a;Oa("expected object of type SafeHtml, got '"+a+"' of type "+ea(a));return"type_error:SafeHtml"},Mb={},Pb=function(a){var b=new Nb;b.a=a;return b};Pb("<!DOCTYPE html>");Pb("");Pb("<br>");var Qb=function(a){var b=1,b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};var Rb="StopIteration"in h?h.StopIteration:{message:"StopIteration",stack:""},Sb=function(){};Sb.prototype.next=function(){throw Rb;};Sb.prototype.f=function(){return this};var B=function(a,b){this.b={};this.a=[];this.g=this.c=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof B?(c=a.O(),d=a.H()):(c=kb(a),d=jb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};g=B.prototype;g.U=function(){return this.c};g.H=function(){Tb(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};g.O=function(){Tb(this);return this.a.concat()};
g.R=function(a){return Ub(this.b,a)};g.Aa=function(a){for(var b=0;b<this.a.length;b++){var c=this.a[b];if(Ub(this.b,c)&&this.b[c]==a)return!0}return!1};
var Vb=function(a){a.b={};a.a.length=0;a.c=0;a.g=0},Wb=function(a,b){Ub(a.b,b)&&(delete a.b[b],a.c--,a.g++,a.a.length>2*a.c&&Tb(a))},Tb=function(a){if(a.c!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Ub(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.c!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Ub(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}};B.prototype.get=function(a,b){return Ub(this.b,a)?this.b[a]:b};
B.prototype.set=function(a,b){Ub(this.b,a)||(this.c++,this.a.push(a),this.g++);this.b[a]=b};B.prototype.forEach=function(a,b){for(var c=this.O(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};B.prototype.f=function(a){Tb(this);var b=0,c=this.g,d=this,e=new Sb;e.next=function(){if(c!=d.g)throw Error("The map has changed since the iterator was created");if(b>=d.a.length)throw Rb;var e=d.a[b++];return a?e:d.b[e]};return e};
var Ub=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Xb=function(a){if(a.H&&"function"==typeof a.H)return a.H();if(q(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return jb(a)},Yb=function(a,b){if(a.contains&&"function"==typeof a.contains)a=a.contains(b);else if(a.Aa&&"function"==typeof a.Aa)a=a.Aa(b);else if(fa(a)||q(a))a=0<=Ta(a,b);else a:{for(var c in a)if(a[c]==b){a=!0;break a}a=!1}return a};var $b=function(a){this.a=new B;a&&Zb(this,a)},ac=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ja(a):b.substr(0,1)+a};$b.prototype.U=function(){return this.a.U()};$b.prototype.add=function(a){this.a.set(ac(a),a)};var Zb=function(a,b){b=Xb(b);for(var c=b.length,d=0;d<c;d++)a.add(b[d])};$b.prototype.contains=function(a){return this.a.R(ac(a))};$b.prototype.H=function(){return this.a.H()};$b.prototype.f=function(){return this.a.f(!1)};var bc=function(){return A("iPhone")&&!A("iPod")&&!A("iPad")};var cc=function(a){cc[" "](a);return a};cc[" "]=ba;var ec=function(a,b){var c=dc;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var fc=A("Opera"),C=A("Trident")||A("MSIE"),gc=A("Edge"),hc=gc||C,ic=A("Gecko")&&!(Ea(tb.toLowerCase(),"webkit")&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),jc=Ea(tb.toLowerCase(),"webkit")&&!A("Edge"),kc=function(){var a=h.document;return a?a.documentMode:void 0},lc;
a:{var mc="",nc=function(){var a=tb;if(ic)return/rv\:([^\);]+)(\)|;)/.exec(a);if(gc)return/Edge\/([\d\.]+)/.exec(a);if(C)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(jc)return/WebKit\/(\S+)/.exec(a);if(fc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();nc&&(mc=nc?nc[1]:"");if(C){var oc=kc();if(null!=oc&&oc>parseFloat(mc)){lc=String(oc);break a}}lc=mc}var pc=lc,dc={},rc=function(a){return ec(a,function(){return 0<=Ja(pc,a)})},sc;var tc=h.document;
sc=tc&&C?kc()||("CSS1Compat"==tc.compatMode?parseInt(pc,10):5):void 0;var uc=function(a,b,c,d,e){this.reset(a,b,c,d,e)};uc.prototype.a=null;var vc=0;uc.prototype.reset=function(a,b,c,d,e){"number"==typeof e||vc++;this.g=d||ma();this.f=a;this.c=b;this.b=c;delete this.a};var wc=function(a){this.h=a;this.a=this.g=this.f=this.c=null},xc=function(a,b){this.name=a;this.value=b};xc.prototype.toString=function(){return this.name};var yc=new xc("OFF",Infinity),zc=new xc("SHOUT",1200),Ac=new xc("SEVERE",1E3),Bc=new xc("WARNING",900),Cc=new xc("INFO",800),Dc=new xc("CONFIG",700),Ec=new xc("FINE",500),Fc=new xc("FINER",400),Gc=new xc("FINEST",300),Hc=new xc("ALL",0),Ic=[yc,zc,Ac,Bc,Cc,Dc,Ec,Fc,Gc,Hc],Jc=null;wc.prototype.b=function(a){this.f=a};
var Kc=function(a){if(a.f)return a.f;if(a.c)return Kc(a.c);Oa("Root logger has no level set.");return null};g=wc.prototype;g.log=function(a,b,c){if(a.value>=Kc(this).value)for(r(b)&&(b=b()),a=new uc(a,String(b),this.h),c&&(a.a=c),c="log:"+a.c,h.console&&(h.console.timeStamp?h.console.timeStamp(c):h.console.markTimeline&&h.console.markTimeline(c)),h.msWriteProfilerMark&&h.msWriteProfilerMark(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.c}};g.Ce=function(a,b){this.log(zc,a,b)};
g.Ac=function(a,b){this.log(Ac,a,b)};g.Ua=function(a,b){this.log(Bc,a,b)};g.w=function(a,b){this.log(Cc,a,b)};g.Qc=function(a,b){this.log(Dc,a,b)};g.hb=function(a,b){this.log(Ec,a,b)};g.Zc=function(a,b){this.log(Fc,a,b)};g.$c=function(a,b){this.log(Gc,a,b)};
var Lc={},Mc=null,Nc=function(){Mc||(Mc=new wc(""),Lc[""]=Mc,Mc.b(Dc))},Oc=function(){Nc();return Mc},D=function(a){Nc();var b;if(!(b=Lc[a])){b=new wc(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=D(a.substr(0,c));c.g||(c.g={});c.g[d]=b;b.c=c;Lc[a]=b}return b};var Pc=function(a,b){a&&a.Ac(b,void 0)},E=function(a,b,c){a&&a.Ua(b,c)},F=function(a,b){a&&a.w(b,void 0)},Qc=function(a,b){a&&a.hb(b,void 0)};var Rc=function(a,b){this.width=a;this.height=b};Rc.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};Rc.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};Rc.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Sc=!C||9<=Number(sc);!ic&&!C||C&&9<=Number(sc)||ic&&rc("1.9.1");C&&rc("9");var Vc=function(a){return a?new Tc(Uc(a)):ra||(ra=new Tc)},Xc=function(a,b){eb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Wc.hasOwnProperty(d)?a.setAttribute(Wc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},Wc={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"},Yc=function(a){return a.parentWindow||a.defaultView},G=function(a,b,c){return Zc(document,arguments)},Zc=function(a,b){var c=String(b[0]),d=b[1];if(!Sc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Da(d.name),'"');if(d.type){c.push(' type="',Da(d.type),'"');var e={};rb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(q(d)?c.className=d:p(d)?c.className=d.join(" "):Xc(c,d));2<b.length&&$c(a,c,b,2);return c},$c=function(a,b,c,d){function e(c){c&&
b.appendChild(q(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!fa(f)||t(f)&&0<f.nodeType?e(f):z(ad(f)?bb(f):f,e)}},bd=function(a,b){a.appendChild(b)},cd=function(a,b){$c(Uc(a),a,arguments,1)},dd=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},Uc=function(a){y(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||a.document},ad=function(a){if(a&&"number"==typeof a.length){if(t(a))return"function"==typeof a.item||"string"==typeof a.item;if(r(a))return"function"==
typeof a.item}return!1},ed=function(a,b){a&&(a=a.parentNode);for(var c=0;a;){y("parentNode"!=a.name);if(b(a))return a;a=a.parentNode;c++}return null},Tc=function(a){this.a=a||h.document||document};Tc.prototype.getElement=function(a){return q(a)?this.a.getElementById(a):a};var fd=function(a,b){a=a.a;b=b&&"*"!=b?String(b).toUpperCase():"";a.querySelectorAll&&a.querySelector&&b?b=a.querySelectorAll(b+""):b=a.getElementsByTagName(b||"*");return b};Tc.prototype.b=function(a,b,c){return Zc(this.a,arguments)};
Tc.prototype.c=bd;Tc.prototype.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var gd=function(a,b,c){this.g=c;this.c=a;this.f=b;this.b=0;this.a=null};gd.prototype.get=function(){var a;0<this.b?(this.b--,a=this.a,this.a=a.next,a.next=null):a=this.c();return a};var hd=function(a,b){a.f(b);a.b<a.g&&(a.b++,b.next=a.a,a.a=b)};var id=function(a){h.setTimeout(function(){throw a;},0)},jd,kd=function(){var a=h.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!A("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,
a=u(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!A("Trident")&&!A("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(k(c.next)){c=c.next;var a=c.Kb;c.Kb=null;a()}};return function(a){d.next={Kb:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){h.setTimeout(a,0)}};var ld=function(){this.b=this.a=null},nd=new gd(function(){return new md},function(a){a.reset()},100);ld.prototype.add=function(a,b){var c=nd.get();c.set(a,b);this.b?this.b.next=c:(y(!this.a),this.a=c);this.b=c};var pd=function(){var a=od,b=null;a.a&&(b=a.a,a.a=a.a.next,a.a||(a.b=null),b.next=null);return b},md=function(){this.next=this.scope=this.a=null};md.prototype.set=function(a,b){this.a=a;this.scope=b;this.next=null};md.prototype.reset=function(){this.next=this.scope=this.a=null};var td=function(a,b){qd||rd();sd||(qd(),sd=!0);od.add(a,b)},qd,rd=function(){if(-1!=String(h.Promise).indexOf("[native code]")){var a=h.Promise.resolve(void 0);qd=function(){a.then(ud)}}else qd=function(){var a=ud;!r(h.setImmediate)||h.Window&&h.Window.prototype&&!A("Edge")&&h.Window.prototype.setImmediate==h.setImmediate?(jd||(jd=kd()),jd(a)):h.setImmediate(a)}},sd=!1,od=new ld,ud=function(){for(var a;a=pd();){try{a.a.call(a.scope)}catch(b){id(b)}hd(nd,a)}sd=!1};var vd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},wd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var zd=function(a,b){this.a=0;this.i=void 0;this.g=this.b=this.c=null;this.f=this.h=!1;if(a!=ba)try{var c=this;a.call(b,function(a){xd(c,2,a)},function(a){if(!(a instanceof yd))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(e){}xd(c,3,a)})}catch(d){xd(this,3,d)}},Ad=function(){this.next=this.g=this.c=this.b=this.a=null;this.f=!1};Ad.prototype.reset=function(){this.g=this.c=this.b=this.a=null;this.f=!1};
var Bd=new gd(function(){return new Ad},function(a){a.reset()},100),Cd=function(a,b,c){var d=Bd.get();d.b=a;d.c=b;d.g=c;return d},Dd=function(a){return new zd(function(b,c){c(a)})},Fd=function(a,b,c){Ed(a,b,c,null)||td(v(b,a))},Gd=function(a){return new zd(function(b,c){var d=a.length,e=[];if(d)for(var f=function(a,c){d--;e[a]=c;0==d&&b(e)},l=function(a){c(a)},n=0,K;n<a.length;n++)K=a[n],Fd(K,v(f,n),l);else b(e)})};
zd.prototype.then=function(a,b,c){null!=a&&Ra(a,"opt_onFulfilled should be a function.");null!=b&&Ra(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return Hd(this,r(a)?a:null,r(b)?b:null,c)};vd(zd);zd.prototype.cancel=function(a){0==this.a&&td(function(){var b=new yd(a);Id(this,b)},this)};
var Id=function(a,b){if(0==a.a)if(a.c){var c=a.c;if(c.b){for(var d=0,e=null,f=null,l=c.b;l&&(l.f||(d++,l.a==a&&(e=l),!(e&&1<d)));l=l.next)e||(f=l);e&&(0==c.a&&1==d?Id(c,b):(f?(d=f,y(c.b),y(null!=d),d.next==c.g&&(c.g=d),d.next=d.next.next):Jd(c),Kd(c,e,3,b)))}a.c=null}else xd(a,3,b)},Md=function(a,b){a.b||2!=a.a&&3!=a.a||Ld(a);y(null!=b.b);a.g?a.g.next=b:a.b=b;a.g=b},Hd=function(a,b,c,d){var e=Cd(null,null,null);e.a=new zd(function(a,l){e.b=b?function(c){try{var e=b.call(d,c);a(e)}catch(qa){l(qa)}}:
a;e.c=c?function(b){try{var e=c.call(d,b);!k(e)&&b instanceof yd?l(b):a(e)}catch(qa){l(qa)}}:l});e.a.c=a;Md(a,e);return e.a};zd.prototype.j=function(a){y(1==this.a);this.a=0;xd(this,2,a)};zd.prototype.m=function(a){y(1==this.a);this.a=0;xd(this,3,a)};
var xd=function(a,b,c){0==a.a&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.a=1,Ed(c,a.j,a.m,a)||(a.i=c,a.a=b,a.c=null,Ld(a),3!=b||c instanceof yd||Nd(a,c)))},Ed=function(a,b,c,d){if(a instanceof zd)return null!=b&&Ra(b,"opt_onFulfilled should be a function."),null!=c&&Ra(c,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?"),Md(a,Cd(b||ba,c||null,d)),!0;if(wd(a))return a.then(b,c,d),!0;if(t(a))try{var e=a.then;if(r(e))return Od(a,
e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},Od=function(a,b,c,d,e){var f=!1,l=function(a){f||(f=!0,c.call(e,a))},n=function(a){f||(f=!0,d.call(e,a))};try{b.call(a,l,n)}catch(K){n(K)}},Ld=function(a){a.h||(a.h=!0,td(a.F,a))},Jd=function(a){var b=null;a.b&&(b=a.b,a.b=b.next,b.next=null);a.b||(a.g=null);null!=b&&y(null!=b.b);return b};zd.prototype.F=function(){for(var a;a=Jd(this);)Kd(this,a,this.a,this.i);this.h=!1};
var Kd=function(a,b,c,d){if(3==c&&b.c&&!b.f)for(;a&&a.f;a=a.c)a.f=!1;if(b.a)b.a.c=null,Pd(b,c,d);else try{b.f?b.b.call(b.g):Pd(b,c,d)}catch(e){Qd.call(null,e)}hd(Bd,b)},Pd=function(a,b,c){2==b?a.b.call(a.g,c):a.c&&a.c.call(a.g,c)},Nd=function(a,b){a.f=!0;td(function(){a.f&&Qd.call(null,b)})},Qd=id,yd=function(a){x.call(this,a)};w(yd,x);yd.prototype.name="cancel";/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
var H=function(a,b){this.i=[];this.B=a;this.s=b||null;this.g=this.a=!1;this.c=void 0;this.m=this.v=this.j=!1;this.F=0;this.b=null;this.f=0};H.prototype.cancel=function(a){if(this.a)this.c instanceof H&&this.c.cancel();else{if(this.b){var b=this.b;delete this.b;a?b.cancel(a):(b.f--,0>=b.f&&b.cancel())}this.B?this.B.call(this.s,this):this.m=!0;this.a||this.h(new Rd)}};H.prototype.ia=function(a,b){this.j=!1;Sd(this,a,b)};
var Sd=function(a,b,c){a.a=!0;a.c=c;a.g=!b;Td(a)},Vd=function(a){if(a.a){if(!a.m)throw new Ud;a.m=!1}};H.prototype.J=function(a){Vd(this);Wd(a);Sd(this,!0,a)};H.prototype.h=function(a){Vd(this);Wd(a);Sd(this,!1,a)};var Wd=function(a){y(!(a instanceof H),"An execution sequence may not be initiated with a blocking Deferred.")},Yd=function(a,b,c){Xd(a,b,null,c)},Xd=function(a,b,c,d){y(!a.v,"Blocking Deferreds can not be re-used");a.i.push([b,c,d]);a.a&&Td(a)};
H.prototype.then=function(a,b,c){var d,e,f=new zd(function(a,b){d=a;e=b});Xd(this,d,function(a){a instanceof Rd?f.cancel():e(a)});return f.then(a,b,c)};vd(H);var Zd=function(a,b){b instanceof H?Yd(a,u(b.M,b)):Yd(a,function(){return b})};H.prototype.M=function(a){var b=new H;Xd(this,b.J,b.h,b);a&&(b.b=this,this.f++);return b};
var $d=function(a){return Va(a.i,function(a){return r(a[1])})},Td=function(a){if(a.F&&a.a&&$d(a)){var b=a.F,c=ae[b];c&&(h.clearTimeout(c.a),delete ae[b]);a.F=0}a.b&&(a.b.f--,delete a.b);for(var b=a.c,d=c=!1;a.i.length&&!a.j;){var e=a.i.shift(),f=e[0],l=e[1],e=e[2];if(f=a.g?l:f)try{var n=f.call(e||a.s,b);k(n)&&(a.g=a.g&&(n==b||n instanceof Error),a.c=b=n);if(wd(b)||"function"===typeof h.Promise&&b instanceof h.Promise)d=!0,a.j=!0}catch(K){b=K,a.g=!0,$d(a)||(c=!0)}}a.c=b;d&&(n=u(a.ia,a,!0),d=u(a.ia,
a,!1),b instanceof H?(Xd(b,n,d),b.v=!0):b.then(n,d));c&&(b=new be(b),ae[b.a]=b,a.F=b.a)},Ud=function(){x.call(this)};w(Ud,x);Ud.prototype.message="Deferred has already fired";Ud.prototype.name="AlreadyCalledError";var Rd=function(){x.call(this)};w(Rd,x);Rd.prototype.message="Deferred was canceled";Rd.prototype.name="CanceledError";var be=function(a){this.a=h.setTimeout(u(this.c,this),0);this.b=a};
be.prototype.c=function(){y(ae[this.a],"Cannot throw an error that is not scheduled.");delete ae[this.a];throw this.b;};var ae={};var de=function(a){var b=new Lb;b.a=a;return ce(b)},ce=function(a){var b={},c=b.document||document,d;a instanceof Lb&&a.constructor===Lb&&a.b===Kb?d=a.a:(Oa("expected object of type TrustedResourceUrl, got '"+a+"' of type "+ea(a)),d="type_error:TrustedResourceUrl");var e=document.createElement("SCRIPT");a={uc:e,Fc:void 0};var f=new H(ee,a),l=null,n=null!=b.timeout?b.timeout:5E3;0<n&&(l=window.setTimeout(function(){fe(e,!0);f.h(new ge(1,"Timeout reached for loading script "+d))},n),a.Fc=l);e.onload=
e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(fe(e,b.vf||!1,l),f.J(null))};e.onerror=function(){fe(e,!0,l);f.h(new ge(0,"Error while loading script "+d))};a=b.attributes||{};rb(a,{type:"text/javascript",charset:"UTF-8",src:d});Xc(e,a);he(c).appendChild(e);return f},he=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},ee=function(){if(this&&this.uc){var a=this.uc;a&&"SCRIPT"==a.tagName&&fe(a,
!0,this.Fc)}},fe=function(a,b,c){null!=c&&h.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){dd(a)},0)},ge=function(a,b){a="Jsloader error (code #"+a+")";b&&(a+=": "+b);x.call(this,a)};w(ge,x);var I=function(){this.F=this.F;this.ia=this.ia};I.prototype.F=!1;I.prototype.dispose=function(){this.F||(this.F=!0,this.l())};var je=function(a,b){b=v(ie,b);a.F?k(void 0)?b.call(void 0):b():(a.ia||(a.ia=[]),a.ia.push(k(void 0)?u(b,void 0):b))};I.prototype.l=function(){if(this.ia)for(;this.ia.length;)this.ia.shift()()};var ie=function(a){a&&"function"==typeof a.dispose&&a.dispose()},ke=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?ke.apply(null,d):ie(d)}};var le=function(a,b){this.type=a;this.a=this.target=b;this.b=!1;this.tc=!0};le.prototype.stopPropagation=function(){this.b=!0};le.prototype.c=function(){this.tc=!1};var me=function(a){a.c()};var ne=!C||9<=Number(sc),oe=C&&!rc("9");!jc||rc("528");ic&&rc("1.9b")||C&&rc("8")||fc&&rc("9.5")||jc&&rc("528");ic&&!rc("8")||C&&rc("9");var pe=function(a,b){le.call(this,a?a.type:"");this.a=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.ba=null;if(a){this.type=a.type;var c=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.a=b;if((b=a.relatedTarget)&&ic)try{cc(b.nodeName)}catch(d){}null===c?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||
0,this.screenY=a.screenY||0):(this.clientX=void 0!==c.clientX?c.clientX:c.pageX,this.clientY=void 0!==c.clientY?c.clientY:c.pageY,this.screenX=c.screenX||0,this.screenY=c.screenY||0);this.button=a.button;this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.ba=a;a.defaultPrevented&&this.c()}};w(pe,le);pe.prototype.stopPropagation=function(){pe.o.stopPropagation.call(this);this.ba.stopPropagation?this.ba.stopPropagation():this.ba.cancelBubble=!0};
pe.prototype.c=function(){pe.o.c.call(this);var a=this.ba;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,oe)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};pe.prototype.ed=function(){return this.ba};var qe="closure_listenable_"+(1E6*Math.random()|0),re=function(a){return!(!a||!a[qe])},se=0;var te=function(a,b,c,d,e){this.listener=a;this.a=null;this.src=b;this.type=c;this.capture=!!d;this.xa=e;this.ib=++se;this.ya=this.Ka=!1},ue=function(a){a.ya=!0;a.listener=null;a.a=null;a.src=null;a.xa=null};var ve=function(a){this.src=a;this.a={};this.b=0};ve.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.a[f];a||(a=this.a[f]=[],this.b++);var l=we(a,b,d,e);-1<l?(b=a[l],c||(b.Ka=!1)):(b=new te(b,this.src,f,!!d,e),b.Ka=c,a.push(b));return b};
var xe=function(a,b){var c=b.type;if(!(c in a.a))return!1;var d=$a(a.a[c],b);d&&(ue(b),0==a.a[c].length&&(delete a.a[c],a.b--));return d},ye=function(a,b){b=b&&b.toString();var c=0,d;for(d in a.a)if(!b||d==b){for(var e=a.a[d],f=0;f<e.length;f++)++c,ue(e[f]);delete a.a[d];a.b--}},ze=function(a,b,c,d,e){a=a.a[b.toString()];b=-1;a&&(b=we(a,c,d,e));return-1<b?a[b]:null},Ae=function(a,b){var c=k(b),d=c?b.toString():"",e=k(void 0);return hb(a.a,function(a){for(var b=0;b<a.length;++b)if(!(c&&a[b].type!=
d||e&&void 0!=a[b].capture))return!0;return!1})},we=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ya&&f.listener==b&&f.capture==!!c&&f.xa==d)return e}return-1};var Be="closure_lm_"+(1E6*Math.random()|0),Ce={},De=0,Ee=function(a,b,c,d,e){if(p(b)){for(var f=0;f<b.length;f++)Ee(a,b[f],c,d,e);return null}c=Fe(c);return re(a)?a.u(b,c,d,e):Ge(a,b,c,!1,d,e)},Ge=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var l=!!e,n=He(a);n||(a[Be]=n=new ve(a));c=n.add(b,c,d,e,f);if(c.a)return c;d=Ie();c.a=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,l);else if(a.attachEvent)a.attachEvent(Je(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");
De++;return c},Ie=function(){var a=Ke,b=ne?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},Le=function(a,b,c,d,e){if(p(b)){for(var f=0;f<b.length;f++)Le(a,b[f],c,d,e);return null}c=Fe(c);return re(a)?a.g.add(String(b),c,!0,d,e):Ge(a,b,c,!0,d,e)},Me=function(a,b,c,d,e){if(p(b))for(var f=0;f<b.length;f++)Me(a,b[f],c,d,e);else c=Fe(c),re(a)?a.ca(b,c,d,e):a&&(a=He(a))&&(b=ze(a,b,c,!!d,e))&&Ne(b)},Ne=function(a){if(ga(a)||!a||a.ya)return!1;
var b=a.src;if(re(b))return xe(b.g,a);var c=a.type,d=a.a;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(Je(c),d);De--;(c=He(b))?(xe(c,a),0==c.b&&(c.src=null,b[Be]=null)):ue(a);return!0},Oe=function(a,b,c,d,e){c=Fe(c);d=!!d;return re(a)?ze(a.g,String(b),c,d,e):a?(a=He(a))?ze(a,b,c,d,e):null:null},Pe=function(a,b){if(re(a))return Ae(a.g,k(b)?String(b):void 0);a=He(a);return!!a&&Ae(a,b)},Je=function(a){return a in Ce?Ce[a]:Ce[a]="on"+a},Re=function(a,b,c,d){var e=
!0;if(a=He(a))if(b=a.a[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.ya&&(f=Qe(f,d),e=e&&!1!==f)}return e},Qe=function(a,b){var c=a.listener,d=a.xa||a.src;a.Ka&&Ne(a);return c.call(d,b)},Ke=function(a,b){if(a.ya)return!0;if(!ne){var c=b||aa("window.event");b=new pe(c,this);var d=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var e=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){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=Re(c[e],a,!0,b),d=d&&f}for(e=0;!b.b&&e<c.length;e++)b.a=c[e],f=Re(c[e],a,!1,b),d=d&&f}return d}return Qe(a,new pe(b,this))},He=function(a){a=a[Be];return a instanceof ve?a:null},Se="__closure_events_fn_"+(1E9*Math.random()>>>0),Fe=function(a){y(a,"Listener can not be null.");if(r(a))return a;y(a.handleEvent,"An object listener must have handleEvent method.");a[Se]||(a[Se]=function(b){return a.handleEvent(b)});return a[Se]};var J=function(){I.call(this);this.g=new ve(this);this.Mc=this;this.Ha=null};w(J,I);J.prototype[qe]=!0;g=J.prototype;g.qb=function(a){this.Ha=a};g.addEventListener=function(a,b,c,d){Ee(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){Me(this,a,b,c,d)};
g.dispatchEvent=function(a){Te(this);var b,c=this.Ha;if(c){b=[];for(var d=1;c;c=c.Ha)b.push(c),y(1E3>++d,"infinite loop")}c=this.Mc;d=a.type||a;if(q(a))a=new le(a,c);else if(a instanceof le)a.target=a.target||c;else{var e=a;a=new le(d,c);rb(a,e)}var e=!0,f;if(b)for(var l=b.length-1;!a.b&&0<=l;l--)f=a.a=b[l],e=Ue(f,d,!0,a)&&e;a.b||(f=a.a=c,e=Ue(f,d,!0,a)&&e,a.b||(e=Ue(f,d,!1,a)&&e));if(b)for(l=0;!a.b&&l<b.length;l++)f=a.a=b[l],e=Ue(f,d,!1,a)&&e;return e};
g.l=function(){J.o.l.call(this);this.g&&ye(this.g,void 0);this.Ha=null};g.u=function(a,b,c,d){Te(this);return this.g.add(String(a),b,!1,c,d)};g.ca=function(a,b,c,d){var e;e=this.g;a=String(a).toString();if(a in e.a){var f=e.a[a];b=we(f,b,c,d);-1<b?(ue(f[b]),Za(f,b),0==f.length&&(delete e.a[a],e.b--),e=!0):e=!1}else e=!1;return e};
var Ue=function(a,b,c,d){b=a.g.a[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var l=b[f];if(l&&!l.ya&&l.capture==c){var n=l.listener,K=l.xa||l.src;l.Ka&&xe(a.g,l);e=!1!==n.call(K,d)&&e}}return e&&0!=d.tc},Te=function(a){y(a.g,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Ve=function(a,b){J.call(this);this.f=a||1;this.b=b||h;this.h=u(this.j,this);this.i=ma()};w(Ve,J);Ve.prototype.c=!1;Ve.prototype.a=null;Ve.prototype.j=function(){if(this.c){var a=ma()-this.i;0<a&&a<.8*this.f?this.a=this.b.setTimeout(this.h,this.f-a):(this.a&&(this.b.clearTimeout(this.a),this.a=null),this.dispatchEvent("tick"),this.c&&(this.a=this.b.setTimeout(this.h,this.f),this.i=ma()))}};Ve.prototype.start=function(){this.c=!0;this.a||(this.a=this.b.setTimeout(this.h,this.f),this.i=ma())};
var We=function(a){a.c=!1;a.a&&(a.b.clearTimeout(a.a),a.a=null)};Ve.prototype.l=function(){Ve.o.l.call(this);We(this);delete this.b};var Xe=function(a,b,c){if(r(a))c&&(a=u(a,c));else if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:h.setTimeout(a,b||0)};var Ye=function(){};m("studio.common.Environment",Ye,void 0);Ye.Type={LIVE:1,LOCAL:2,BROWSER:4,IN_APP:8,LAYOUTS_PREVIEW:16,CREATIVE_TOOLSET:32,RENDERING_STUDIO:64,RENDERING_TEST:128,PREVIEW:256};var Ze=6;Ye.addType=function(a){Ze|=a;$e(a)};var af=function(a){Ze=a|6;$e(Ze)};Ye.setType=af;var L=function(a){return(Ze&a)==a};Ye.hasType=L;Ye.getValue=function(){return Ze};
var $e=function(a){bf(a,2,1);bf(a,1,2);bf(a,4,8);bf(a,8,4);bf(a,128,64);bf(a,64,128);bf(a,256,2)},bf=function(a,b,c){(a&b)==b&&(Ze|=b,Ze&=~c)};var cf={Ue:"dcm",tf:"studio",Se:"configurable"},df=function(){for(var a in cf)if("studio"==cf[a])return"studio";return null};var M=D("studio.sdk");m("studio.sdk.logger",M,void 0);m("studio.sdk.logger.setLevel",M.b,void 0);m("studio.sdk.logger.Level.OFF",yc,void 0);m("studio.sdk.logger.Level.SHOUT",zc,void 0);m("studio.sdk.logger.Level.SEVERE",Ac,void 0);m("studio.sdk.logger.Level.WARNING",Bc,void 0);m("studio.sdk.logger.Level.INFO",Cc,void 0);m("studio.sdk.logger.Level.CONFIG",Dc,void 0);m("studio.sdk.logger.Level.FINE",Ec,void 0);m("studio.sdk.logger.Level.FINER",Fc,void 0);m("studio.sdk.logger.Level.FINEST",Gc,void 0);
m("studio.sdk.logger.Level.ALL",Hc,void 0);m("studio.sdk.logger.shout",M.Ce,void 0);m("studio.sdk.logger.severe",M.Ac,void 0);m("studio.sdk.logger.warning",M.Ua,void 0);m("studio.sdk.logger.info",M.w,void 0);m("studio.sdk.logger.config",M.Qc,void 0);m("studio.sdk.logger.fine",M.hb,void 0);m("studio.sdk.logger.finer",M.Zc,void 0);m("studio.sdk.logger.finest",M.$c,void 0);var ef={},ff={},gf=new oa(.001,"");gf.a="load";var hf=new oa(.1,"");hf.a="fail";var jf=new B;jf.set("enabler","enabler");jf.set("dcmenabler","dcm");jf.set("video","vid");jf.set("configurable","cfg");jf.set("configurablefiller","cfg_fill");jf.set("layouts","lay");jf.set("layoutsfiller","lay_fill");jf.set("gdn","gdn");jf.set("rad_ui_video","rad");
var kf=function(){for(var a=document.getElementsByTagName("script"),b=0;b<a.length;b++){var c=a[b];if(c.src||c.getAttribute("src"))switch(c=c.src||c.getAttribute("src"),"studio"){case "studio":case "dcm":if(/Enabler/.test(c))return c.substring(0,c.lastIndexOf("/")+1)}}return""},lf=function(a){a=ef[a];return k(a)&&1<=a},mf=function(a){return[kf(),"dev_studio_01_150_",[a,"module"].join(""),".js"].join("")};m("goog.exportSymbol",function(a,b,c){m(a,b,c)},this);
var nf=function(a){a+="goog.exportSymbol('studioLoader.context.evalInContext', "+nf.toString()+");";eval(a)},of=function(a,b){b=jf.get(b)||"unknown";a.c=b;a=a.b();!ua(a)&&L(1)&&(document.createElement("IMG").src=a)},pf=function(a,b){ef[a]=2;of(gf,a);b=ga(b)?b:2;for(var c=mf(a),d=de(c),e=0;e<b;++e)d=d.then(void 0,function(){return de(c)});return d.then(function(){ef[a]=3},function(){of(hf,a);return Dd()})},qf=function(a){if(lf(a))return ff[a];ef[a]=1;for(var b=[],c=DEPS_GRAPH?DEPS_GRAPH[[a,"module"].join("")]:
[],d=c.length-1;0<=d;d--){var e=c[d].replace(/module$/,"");if(e==a)break;lf(e)?b.push(ff[e]):b.push(qf(e))}b=Gd(b).then(v(pf,a,2));return ff[a]=b},rf=function(a,b){a=qf(a);r(b)&&(a=a.then(b));Hd(a,null,ba,void 0)};m("studioLoader.context.evalInContext",nf,void 0);var sf={Ve:"devicemotion",We:"deviceorientation"},tf={},uf;for(uf in sf)tf[sf[uf]]=!0;var vf=function(a){this.a=a};m("studio.common.mde.Direction",vf,void 0);vf.prototype.toString=function(){return(this.a&2?"b":"t")+(this.a&1?"r":"l")};var wf={TL:new vf(0),TR:new vf(1),BL:new vf(2),BR:new vf(3)},xf=jb(wf);m("studio.common.Feature.Type",{mf:1,SDK_EVENT_FORWARDER:2,RL_EVENT_FORWARDER:3},void 0);var yf=new $b;m("studio.common.Feature.hasFeature",function(a){return yf.contains(a)},void 0);
m("studio.common.Feature.hasFeatures",function(a){a:{var b=yf.contains;if("function"==typeof a.every)a=a.every(b,yf);else if(fa(a)||q(a))a=Wa(a,b,yf);else{var c;if(a.O&&"function"==typeof a.O)c=a.O();else if(a.H&&"function"==typeof a.H)c=void 0;else if(fa(a)||q(a)){c=[];for(var d=a.length,e=0;e<d;e++)c.push(e)}else c=kb(a);for(var d=Xb(a),e=d.length,f=0;f<e;f++)if(!b.call(yf,d[f],c&&c[f],a)){a=!1;break a}a=!0}}return a},void 0);var zf=function(a,b){this.b=a;this.a=null!=b?b:0};m("studio.common.Orientation",zf,void 0);var Af=function(){var a=window;return a.innerWidth>a.innerHeight?"landscape":"portrait"},Bf=function(){return"onorientationchange"in window};zf.Mode={PORTRAIT:"portrait",LANDSCAPE:"landscape"};zf.prototype.nd=function(){return this.b};zf.prototype.getMode=zf.prototype.nd;zf.prototype.md=function(){return this.a};zf.prototype.getDegrees=zf.prototype.md;zf.prototype.toString=function(){return this.b};var Cf=function(a,b,c,d,e,f,l){var n="";a&&(n+=a+":");c&&(n+="//",b&&(n+=b+"@"),n+=c,d&&(n+=":"+d));e&&(n+=e);f&&(n+="?"+f);l&&(n+="#"+l);return n},Df=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Ef=function(a){a=a.match(Df);return Cf(a[1],a[2],a[3],a[4])},Ff=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e,f=null;0<=d?(e=a[c].substring(0,d),f=a[c].substring(d+1)):e=a[c];b(e,f?decodeURIComponent(f.replace(/\+/g,
" ")):"")}}},Gf=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")},Hf=function(a,b,c){if(p(b)){Sa(b);for(var d=0;d<b.length;d++)Hf(a,String(b[d]),c)}else null!=b&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))},If=/#|$/,Jf=function(a,b){var c=a.search(If),d;a:{d=0;for(var e=b.length;0<=(d=a.indexOf(b,d))&&d<c;){var f=a.charCodeAt(d-1);if(38==f||63==f)if(f=a.charCodeAt(d+
e),!f||61==f||38==f||35==f)break a;d+=e+1}d=-1}if(0>d)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.substr(d,e-d).replace(/\+/g," "))};var Kf=function(a,b){return b?a.replace("[rm_exit_id]",b):a},Lf=function(a){ua(Ga(a))||"market"!=(a.match(Df)[1]||null)||(a=a.match(Df),a="https://play.google.com/store/apps/details"+Cf(null,null,null,null,a[5],a[6],a[7]));return a};var Mf={CREATIVETOOLSET_CONFIG:"creativeToolsetConfig",CREATIVETOOLSET_INTERNALS:"creativeToolsetInternals",CREATIVETOOLSET_INTERNALS_GEN204:"creativeToolsetInternalsGen204",CREATIVE_REPORTER:"creativeReporter",CREATIVE_INNOVATION:"gcreativeinnovation",GOOGLE_AFMA_SUPPORT:"googleAfmaSupport"};m("studio.common.WhitelistedExternalObject",Mf,void 0);var Nf={sf:"startExpandInternal",rf:"startCollapseInternal",af:"finishCollapseInternal",Qe:"aboutToExpandInternal",nf:"setAdVisibleInternal",pf:"setAdParameters",Xe:"dispatchEvent",qf:"setParameter",hf:"getParameter",gf:"fullscreenSupportInternal",df:"fullscreenDimensionsInternal",ff:"fullscreenExpandStartInternal",ef:"fullscreenExpandFinishInternal",cf:"fullscreenCollapseStartInternal",bf:"fullscreenCollapseFinishInternal",jf:"invokeOnAllVideos",kf:"livePreviewChannel",Ye:"dispatchPageLoaded"},Of=
{},Pf;for(Pf in Nf)Of[Nf[Pf]]=!0;var Qf=function(a){I.call(this);this.b=a;this.a={};this.b.qc(u(this.g,this))};w(Qf,I);Qf.prototype.c=D("goog.messaging.MultiChannel");var Sf=function(a,b){if(-1!=b.indexOf(":"))throw Error('Virtual channel name "'+b+'" should not contain colons');if(b in a.a)throw Error('Virtual channel "'+b+'" was already created for this multichannel.');var c=new Rf(a,b);return a.a[b]=c};
Qf.prototype.g=function(a,b){var c=a.match(/^([^:]*):(.*)/);if(c){var d=c[1];a=c[2];d in this.a?(c=this.a[d])?c.c?c.c(a,b):E(this.c,'Service "'+a+'" is not registered on virtual channel "'+d+'"'):E(this.c,'Virtual channel "'+d+' has been disposed, but a message was received for it: "'+a+'"'):E(this.c,'Virtual channel "'+d+' does not exist, but a message was received for it: "'+a+'"')}else E(this.c,'Invalid service name "'+a+'": no virtual channel specified')};
Qf.prototype.l=function(){eb(this.a,function(a){ie(a)});ie(this.b);delete this.a;delete this.b};var Rf=function(a,b){I.call(this);this.b=a;this.a=b};w(Rf,I);g=Rf.prototype;g.yd=D("goog.messaging.MultiChannel.VirtualChannel");g.connect=function(a){a&&a()};g.ka=function(){return!0};g.Da=function(a,b,c){this.b.b.Da(this.a+":"+a,u(this.Pb,this,b),c)};g.qc=function(a){this.c=u(this.Pb,this,a)};
g.va=function(a,b){if(this.F)throw Error("#send called for disposed VirtualChannel.");this.b.b.va(this.a+":"+a,b)};g.Pb=function(a,b){this.F?E(this.yd,'Virtual channel "'+this.a+'" received  a message after being disposed.'):a.apply({},Array.prototype.slice.call(arguments,1))};g.l=function(){this.b=this.b.a[this.a]=null};var Tf=function(a){I.call(this);this.b=new Qf(a);this.f={};this.c=Sf(this.b,"private");this.g=Sf(this.b,"public");this.c.Da("mics",u(this.j,this),!0)};w(Tf,I);Tf.prototype.v=0;Tf.prototype.m=D("goog.messaging.RespondingChannel");Tf.prototype.l=function(){ie(this.b);delete this.b;delete this.g;delete this.c};var Uf=function(a,b,c,d){var e=a.v++;a.f[e]=d;d={};d.signature=e;d.data=c;a.g.va(b,d)};
Tf.prototype.j=function(a){var b=a.signature;a=a.data;b in this.f?((0,this.f[b])(a),delete this.f[b]):E(this.m,"Received signature is invalid")};Tf.prototype.i=function(a,b){var c={};c.data=a(b.data);c.signature=b.signature;this.c&&this.c.va("mics",c)};var Vf=function(a,b,c){I.call(this);this.b=a;this.h=b||0;this.c=c;this.g=u(this.f,this)};w(Vf,I);Vf.prototype.a=0;Vf.prototype.l=function(){Vf.o.l.call(this);0!=this.a&&h.clearTimeout(this.a);this.a=0;delete this.b;delete this.c};Vf.prototype.start=function(a){0!=this.a&&h.clearTimeout(this.a);this.a=0;this.a=Xe(this.g,k(a)?a:this.h)};Vf.prototype.f=function(){this.a=0;this.b&&this.b.call(this.c)};var Wf=function(a){I.call(this);this.i=a;this.c={}};w(Wf,I);var Xf=[];Wf.prototype.u=function(a,b,c,d){return Yf(this,a,b,c,d)};var Yf=function(a,b,c,d,e,f){p(c)||(c&&(Xf[0]=c.toString()),c=Xf);for(var l=0;l<c.length;l++){var n=Ee(b,c[l],d||a.handleEvent,e||!1,f||a.i||a);if(!n)break;a.c[n.ib]=n}return a},Zf=function(a,b,c,d,e,f){if(p(c))for(var l=0;l<c.length;l++)Zf(a,b,c[l],d,e,f);else(b=Le(b,c,d||a.handleEvent,e,f||a.i||a))&&(a.c[b.ib]=b)};
Wf.prototype.ca=function(a,b,c,d,e){if(p(b))for(var f=0;f<b.length;f++)this.ca(a,b[f],c,d,e);else if(a=Oe(a,b,c||this.handleEvent,d,e||this.i||this))Ne(a),delete this.c[a.ib];return this};var $f=function(a){eb(a.c,function(a,c){this.c.hasOwnProperty(c)&&Ne(a)},a);a.c={}};Wf.prototype.l=function(){Wf.o.l.call(this);$f(this)};Wf.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var ag=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))},bg=function(a){a=String(a);if(ag(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},cg=function(a){return eval("("+a+")")},fg=function(a){var b=[];dg(new eg,a,b);return b.join("")},
eg=function(){},dg=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(p(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],dg(a,e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),gg(d,c),c.push(":"),dg(a,e,c),f=","));c.push("}");return}}switch(typeof b){case "string":gg(b,c);break;
case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},hg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},ig=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,gg=function(a,b){b.push('"',a.replace(ig,function(a){var b=hg[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),
hg[a]=b);return b}),'"')};var jg=function(){I.call(this);this.j={}};w(jg,I);g=jg.prototype;g.jb=D("goog.messaging.AbstractChannel");g.connect=function(a){a&&a()};g.ka=function(){return!0};g.Da=function(a,b,c){this.j[a]={J:b,ic:!!c}};g.qc=function(a){this.h=a};g.bb=function(a,b){var c;c=this.j[a];c||(this.h?c={J:v(this.h,a),ic:t(b)}:(E(this.jb,'Unknown service name "'+a+'"'),c=null));c&&(a=this.ab(a,b,c.ic),null!=a&&c.J(a))};
g.ab=function(a,b,c){if(c&&q(b))try{return bg(b)}catch(d){return E(this.jb,"Expected JSON payload for "+a+', was "'+b+'"'),null}else if(!c&&!q(b))return fg(b);return b};g.l=function(){jg.o.l.call(this);delete this.jb;delete this.j;delete this.h};var kg=function(a,b){this.g=this.F=this.c="";this.i=null;this.h=this.f="";this.a=!1;var c;a instanceof kg?(this.a=k(b)?b:a.a,lg(this,a.c),this.F=a.F,this.g=a.g,mg(this,a.i),this.f=a.f,b=a.b,c=new ng,c.c=b.c,b.a&&(c.a=new B(b.a),c.b=b.b),og(this,c),this.h=a.h):a&&(c=String(a).match(Df))?(this.a=!!b,lg(this,c[1]||"",!0),this.F=pg(c[2]||""),this.g=pg(c[3]||"",!0),mg(this,c[4]),this.f=pg(c[5]||"",!0),og(this,c[6]||"",!0),this.h=pg(c[7]||"")):(this.a=!!b,this.b=new ng(null,0,this.a))};
kg.prototype.toString=function(){var a=[],b=this.c;b&&a.push(qg(b,rg,!0),":");var c=this.g;if(c||"file"==b)a.push("//"),(b=this.F)&&a.push(qg(b,rg,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.i,null!=c&&a.push(":",String(c));if(c=this.f)this.g&&"/"!=c.charAt(0)&&a.push("/"),a.push(qg(c,"/"==c.charAt(0)?sg:tg,!0));(c=this.b.toString())&&a.push("?",c);(c=this.h)&&a.push("#",qg(c,ug));return a.join("")};
var lg=function(a,b,c){a.c=c?pg(b,!0):b;a.c&&(a.c=a.c.replace(/:$/,""))},mg=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.i=b}else a.i=null},og=function(a,b,c){b instanceof ng?(a.b=b,vg(a.b,a.a)):(c||(b=qg(b,wg)),a.b=new ng(b,0,a.a))},pg=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},qg=function(a,b,c){return q(a)?(a=encodeURI(a).replace(b,xg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},xg=function(a){a=a.charCodeAt(0);
return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},rg=/[#\/\?@]/g,tg=/[\#\?:]/g,sg=/[\#\?]/g,wg=/[\#\?@]/g,ug=/#/g,ng=function(a,b,c){this.b=this.a=null;this.c=a||null;this.g=!!c},yg=function(a){a.a||(a.a=new B,a.b=0,a.c&&Ff(a.c,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};ng.prototype.U=function(){yg(this);return this.b};ng.prototype.add=function(a,b){yg(this);this.c=null;a=zg(this,a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.b=Pa(this.b)+1;return this};
var Ag=function(a,b){yg(a);b=zg(a,b);a.a.R(b)&&(a.c=null,a.b=Pa(a.b)-a.a.get(b).length,Wb(a.a,b))};g=ng.prototype;g.R=function(a){yg(this);a=zg(this,a);return this.a.R(a)};g.Aa=function(a){var b=this.H();return 0<=Ta(b,a)};g.O=function(){yg(this);for(var a=this.a.H(),b=this.a.O(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};g.H=function(a){yg(this);var b=[];if(q(a))this.R(a)&&(b=ab(b,this.a.get(zg(this,a))));else{a=this.a.H();for(var c=0;c<a.length;c++)b=ab(b,a[c])}return b};
g.set=function(a,b){yg(this);this.c=null;a=zg(this,a);this.R(a)&&(this.b=Pa(this.b)-this.a.get(a).length);this.a.set(a,[b]);this.b=Pa(this.b)+1;return this};g.get=function(a,b){a=a?this.H(a):[];return 0<a.length?String(a[0]):b};
g.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var a=[],b=this.a.O(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.H(d),f=0;f<d.length;f++){var l=e;""!==d[f]&&(l+="="+encodeURIComponent(String(d[f])));a.push(l)}return this.c=a.join("&")};
var zg=function(a,b){b=String(b);a.g&&(b=b.toLowerCase());return b},vg=function(a,b){b&&!a.g&&(yg(a),a.c=null,a.a.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(Ag(this,b),Ag(this,c),0<a.length&&(this.c=null,this.a.set(zg(this,c),bb(a)),this.b=Pa(this.b)+a.length))},a));a.g=b};var Bg={1:"NativeMessagingTransport",2:"FrameElementMethodTransport",3:"IframeRelayTransport",4:"IframePollingTransport",5:"FlashTransport",6:"NixTransport",7:"DirectTransport"},Cg=["pu","lru","pru","lpu","ppu"],Dg={},Fg=function(){for(var a=10,b=Eg,c=b.length,d="";0<a--;)d+=b.charAt(Math.floor(Math.random()*c));return d},Eg="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",N=D("goog.net.xpc");var Gg=function(a){I.call(this);this.i=a||Vc()};w(Gg,I);Gg.prototype.vb=0;var Jg=function(a,b){Gg.call(this,b);this.a=a;this.v=new Wf(this);je(this,this.v);this.h=new Ve(100,Yc(this.i.a));je(this,this.h);this.g=new H;this.f=new H;this.b=new H;this.m=Fg();this.j=null;this.c={};this.B=this.a.name;Hg(this.a,this.a.name+"_"+Ig(this.a));this.s=!1;Zd(this.b,this.g);Zd(this.b,this.f);Yd(this.b,this.zd,this);this.b.J(!0);this.v.u(this.h,"tick",this.ac);F(N,"DirectTransport created. role="+Ig(this.a))};w(Jg,Gg);
var Kg={},Ng=function(a){var b=new Lg(a.channelName,a.service,a.payload);a=b.a;var c=b.c,b=b.b;Qc(N,"messageReceived: channel="+a+", service="+c+", payload="+b);var d=Dg[a];if(d)return d.b(c,b),!0;var d=Mg(b)[0],e;for(e in Dg){var f=Dg[e];if(1==Ig(f)&&!f.ka()&&"tp"==c&&"SETUP"==d)return Hg(f,a),f.b(c,b),!0}F(N,"channel name mismatch; message ignored.");return!1};g=Jg.prototype;g.vb=7;
g.Gc=function(a){a=Mg(a);var b=a[1];switch(a[0]){case "SETUP_ACK":this.g.a||this.g.J(!0);break;case "SETUP":this.aa("tp","SETUP_ACK"),this.f.a||this.f.J(!0),null!=this.j&&this.j!=b&&(F(N,"Sending SETUP and changing peer ID to: "+b),this.aa("tp","SETUP,"+this.m)),this.j=b}};g.connect=function(){var a=Yc(this.i.a);if(a){var b=ja(a);0==(Kg[b]||0)&&null==aa("crosswindowmessaging.channel",a)&&m("crosswindowmessaging.channel",Ng,a);Kg[b]++;this.s=!0;this.ac()}else Qc(N,"connect(): no window to initialize.")};
g.ac=function(){this.a.ka()?We(this.h):(this.h.start(),this.aa("tp","SETUP,"+this.m))};g.aa=function(a,b){this.a.X?(a=new Lg(this.B+"_"+(0==Ig(this.a)?1:0),a,b),this.a.a.directSyncMode?this.Qb(a):this.c[ja(a)]=Xe(u(this.Qb,this,a),0)):Qc(N,"send(): window not ready")};
g.Qb=function(a){var b=ja(a);this.c[b]&&delete this.c[b];try{var c=aa("crosswindowmessaging.channel",this.a.X)}catch(d){E(N,"Can't access other window, ignoring.",d);return}if(null===c)E(N,"Peer window had no global function.");else try{c({channelName:a.a,service:a.c,payload:a.b}),F(N,"send(): channelName="+a.a+" service="+a.c+" payload="+a.b)}catch(d){E(N,"Error performing call, ignoring.",d)}};g.zd=function(){Og(this.a,0)};
g.l=function(){if(this.s){var a=Yc(this.i.a),b=ja(a);1==--Kg[b]&&m("crosswindowmessaging.channel",null,a)}this.c&&(eb(this.c,function(a){h.clearTimeout(a)}),this.c=null);this.g&&(this.g.cancel(),delete this.g);this.f&&(this.f.cancel(),delete this.f);this.b&&(this.b.cancel(),delete this.b);Jg.o.l.call(this)};var Mg=function(a){a=a.split(",");a[1]=a[1]||null;return a},Lg=function(a,b,c){this.a=a;this.c=b;this.b=c};var Pg=function(a,b,c,d,e){Gg.call(this,c);this.h=a;this.b=e||2;y(1<=this.b);y(2>=this.b);this.L=b||"*";this.B=new Wf(this);this.j=new Ve(100,Yc(this.i.a));this.s=!!d;this.g=new H;this.f=new H;this.c=new H;this.I=Fg();this.v=null;this.s?1==Ig(this.h)?Zd(this.c,this.g):Zd(this.c,this.f):(Zd(this.c,this.g),2==this.b&&Zd(this.c,this.f));Yd(this.c,this.Ad,this);this.c.J(!0);this.B.u(this.j,"tick",this.bc);F(N,"NativeMessagingTransport created.  protocolVersion="+this.b+", oneSidedHandshake="+this.s+", role="+
Ig(this.h))};w(Pg,Gg);Pg.prototype.a=null;Pg.prototype.M=!1;Pg.prototype.vb=1;var Qg={};Pg.prototype.m=0;
var Sg=function(a){var b=a.ba.data;if(!q(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);Qc(N,"messageReceived: channel="+e+", service="+c+", payload="+b);if(d=Dg[e])return d.b(c,b,a.ba.origin),!0;a=Rg(b)[0];for(var f in Dg)if(d=Dg[f],1==Ig(d)&&!d.ka()&&"tp"==c&&("SETUP"==a||"SETUP_NTPV2"==a))return Hg(d,e),d.b(c,b),!0;F(N,'channel name mismatch; message ignored"');return!1};
Pg.prototype.Gc=function(a){var b=Rg(a);a=b[1];switch(b[0]){case "SETUP_ACK":Tg(this,1);this.g.a||this.g.J(!0);break;case "SETUP_ACK_NTPV2":2==this.b&&(Tg(this,2),this.g.a||this.g.J(!0));break;case "SETUP":Tg(this,1);Ug(this,1);break;case "SETUP_NTPV2":2==this.b&&(b=this.a,Tg(this,2),Ug(this,2),1!=b&&null==this.v||this.v==a||(F(N,"Sending SETUP and changing peer ID to: "+a),Vg(this)),this.v=a)}};
var Vg=function(a){y(!(1==a.b&&2==a.a));2!=a.b||null!=a.a&&2!=a.a||a.aa("tp","SETUP_NTPV2,"+a.I);null!=a.a&&1!=a.a||a.aa("tp","SETUP")},Ug=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.aa("tp","SETUP_ACK")}else a.aa("tp","SETUP_ACK_NTPV2");a.f.a||a.f.J(!0)},Tg=function(a,b){b>a.a&&(a.a=b);1==a.a&&(a.f.a||a.s||a.f.J(!0),a.v=null)};g=Pg.prototype;
g.connect=function(){var a=Yc(this.i.a),b=ja(a),c=Qg[b];ga(c)||(c=0);0==c&&Ee(a.postMessage?a:a.document,"message",Sg,!1,Pg);Qg[b]=c+1;this.M=!0;this.bc()};g.bc=function(){var a=0==Ig(this.h);this.s&&a||this.h.ka()||this.F?We(this.j):(this.j.start(),Vg(this))};
g.aa=function(a,b){var c=this.h.X;c?(this.aa=function(a,b){var d=this,e=this.h.name;this.m=Xe(function(){d.m=0;try{var f=c.postMessage?c:c.document;f.postMessage?(f.postMessage(e+"|"+a+":"+b,d.L),Qc(N,"send(): service="+a+" payload="+b+" to hostname="+d.L)):E(N,"Peer window had no postMessage function.")}catch(K){E(N,"Error performing postMessage, ignoring.",K)}},0)},this.aa(a,b)):Qc(N,"send(): window not ready")};g.Ad=function(){Og(this.h,1==this.b||1==this.a?200:void 0)};
g.l=function(){if(this.M){var a=Yc(this.i.a),b=ja(a),c=Qg[b];Qg[b]=c-1;1==c&&Me(a.postMessage?a:a.document,"message",Sg,!1,Pg)}this.m&&(h.clearTimeout(this.m),this.m=0);ie(this.B);delete this.B;ie(this.j);delete this.j;this.g.cancel();delete this.g;this.f.cancel();delete this.f;this.c.cancel();delete this.c;delete this.aa;Pg.o.l.call(this)};var Rg=function(a){a=a.split(",");a[1]=a[1]||null;return a};var Xg=function(a,b){jg.call(this);for(var c=0,d;d=Cg[c];c++)if(d in a&&!/^https?:\/\//.test(a[d]))throw Error("URI "+a[d]+" is invalid for field "+d);this.a=a;this.name=this.a.cn||Fg();this.g=b||Vc();this.c=[];this.i=new Wf(this);a.lpu=a.lpu||Ef(Yc(this.g.a).location.href)+"/robots.txt";a.ppu=a.ppu||Ef(a.pu||"")+"/robots.txt";Dg[this.name]=this;Oe(window,"unload",Wg)||Le(window,"unload",Wg);F(N,"CrossPageChannel created: "+this.name)};w(Xg,jg);var Yg=/^%*tp$/,Zg=/^%+tp$/;g=Xg.prototype;g.ma=null;
g.qa=null;g.V=null;g.wa=1;g.ka=function(){return 2==this.wa};g.X=null;g.Pa=null;g.connect=function(a){this.f=a||ba;3==this.wa&&(this.wa=1);this.qa?Yd(this.qa,this.Lb):this.Lb()};
g.Lb=function(){F(N,"continueConnection_()");this.qa=null;this.a.ifrid&&(this.Pa=this.g.getElement(this.a.ifrid));if(this.Pa){var a=this.Pa.contentWindow;a||(a=window.frames[this.a.ifrid]);this.X=a}if(!this.X){if(window==window.top)throw Error("CrossPageChannel: Can't connect, peer window-object not set.");this.X=window.parent}if(!this.V){this.a.tp||(this.a.tp=r(document.postMessage)||r(window.postMessage)||C&&window.postMessage?1:ic?2:C&&this.a.pru?3:4);switch(this.a.tp){case 1:this.V=new Pg(this,
this.a.ph,this.g,!!this.a.osh,this.a.nativeProtocolVersion||2);break;case 6:this.V=null;break;case 2:this.V=null;break;case 3:this.V=null;break;case 4:this.V=null;break;case 7:if(a=this.X)try{a=window.document.domain==this.X.document.domain}catch(b){a=!1}a?this.V=new Jg(this,this.g):F(N,"DirectTransport not supported for this window, peer window in different security context or not set yet.")}if(this.V)F(N,"Transport created: "+(Bg[String(this.V.vb)]||""));else throw Error("CrossPageChannel: No suitable transport found!");
}for(this.V.connect();0<this.c.length;)this.c.shift()()};g.close=function(){this.qa&&(this.qa.cancel(),this.qa=null);this.c.length=0;$f(this.i);this.wa=3;ie(this.V);this.f=this.V=null;ie(this.ma);this.ma=null;F(N,'Channel "'+this.name+'" closed')};var Og=function(a,b){a.ka()||a.ma&&0!=a.ma.a||(a.wa=2,F(N,'Channel "'+a.name+'" connected'),ie(a.ma),k(b)?(a.ma=new Vf(a.f,b),a.ma.start()):(a.ma=null,a.f()))};
Xg.prototype.va=function(a,b){if(this.ka()){var c;try{c=!!this.X&&!this.X.closed}catch(d){c=!1}c?(t(b)&&(b=fg(b)),this.V.aa($g(a),b)):(Pc(N,"Peer has disappeared."),this.close())}else Pc(N,"Can't send. Channel not connected.")};
Xg.prototype.b=function(a,b,c){if(this.qa)this.c.push(u(this.b,this,a,b,c));else{var d=this.a.ph;ua(Ga(c))||ua(Ga(d))||c==this.a.ph?this.F||3==this.wa?E(N,"CrossPageChannel::xpcDeliver(): Channel closed."):a&&"tp"!=a?this.ka()?this.bb(ah(a),b):F(N,"CrossPageChannel::xpcDeliver(): Not connected."):this.V.Gc(b):E(N,'Message received from unapproved origin "'+c+'" - rejected.')}};
var $g=function(a){Yg.test(a)&&(a="%"+a);return a.replace(/[%:|]/g,encodeURIComponent)},ah=function(a){a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent);return Zg.test(a)?a.substring(1):a},Ig=function(a){var b=a.a.role;return ga(b)?b:window.parent==a.X?1:0},Hg=function(a,b){Qc(N,"changing channel name to "+b);delete Dg[a.name];a.name=b;Dg[b]=a};Xg.prototype.l=function(){this.close();this.Pa=this.X=null;delete Dg[this.name];ie(this.i);delete this.i;Xg.o.l.call(this)};var Wg=function(){for(var a in Dg)ie(Dg[a])};var bh=[/s0(qa)?\.2mdn\.net/,/^.*\.(prod|corp)\.google\.com/,/localhost/,/tpc.googlesyndication.com/,/imasdk.googleapis.com/,/^.*dot-expandable-ad-tool.appspot.com/],ch=function(){var a=location.hostname;return L(2)&&!L(16)?!1:Va(bh,function(b){return b.test(a)})};var dh=function(a,b,c){if(ch()){this.a=null;var d={},e=1,f=window.parent;if(c)f=c;else if(null!=b)switch(b){case 3:f=window;case 2:e=7;d.directSyncMode=!0;break;case 4:f=window.parent.frames["goog-messaging-iframe"]}d.tp=e;a&&(d.cn=a);d.role=1;D("goog.net.xpc").b(yc);this.h=new Xg(d);this.h.X=f;Tf.call(this,this.h);a=u(this.Dd,this);this.g.Da("general",u(this.i,this,a),!0)}else Qc(M,"This class should only listen to messages when served by the rendering libraries.")};w(dh,Tf);g=dh.prototype;
g.connect=function(){this.ua?this.h.connect(u(this.Ee,this)):Pc(M,"You must call setAssetUrl before connecting.")};g.Ee=function(){this.C("conduitInitialized",[this.ua,yf.H()])};g.Dd=function(a){var b;a:if(b=a.methodName,a=a.args,b in Of){if(this.a){Qc(M,["Invoking method: ",b," with args: ",a.join(", ")].join(""));var c=this.a[b];r(c)||(c=this.a.defaultMessageHandler,a=[b,a]);if(r(c)){b=c.apply(this.a,a);break a}}b=null}else b=void 0;return b};
g.C=function(a,b,c){var d={};d.methodName=a;d.args=b&&p(b)?b:[];Uf(this,"general",d,c||ba)};g.vc=function(a){this.ua=a.split("?")[0]};g.xc=function(a){this.a=a};var eh=function(){ch()?(jg.call(this),this.a=null):Qc(M,"This class should only listen to messages when served by the rendering libraries.")};w(eh,jg);g=eh.prototype;g.ua=null;g.connect=function(){this.ua?(Ee(window,"message",this.lc,!1,this),this.C("conduitInitialized",[this.ua])):Pc(M,"You must call setAssetUrl before connecting.")};g.C=function(a,b,c){var d="";b&&0<b.length&&(d=p(b)?b.join("#mtf#"):b.toString());this.va("general",escape(escape(a)+"="+escape(d)),c)};
g.lc=function(a){this.bb("general",a.ba.data)};g.ab=function(a,b){a=unescape(b.toString()).split("=");b={hc:"",Ia:[]};a.length&&(b.hc=unescape(a[0]),1<a.length&&(b.Ia=unescape(a[1]).split("#mtf#")));return b};g.va=function(a,b){h.parent!=h.self?h.parent.postMessage(b,"*"):Qc(M,"Window doesn't have parent to post messages to.")};g.l=function(){Me(window,"message",this.lc,!1,this)};
g.bb=function(a,b){b=this.ab("general",b,!1);a=b.hc;b=b.Ia;a in Of&&this.a&&-1==a.indexOf("{")&&r(this.a[a])&&(Qc(M,["Invoking method: ",a," with args: ",b.join(", ")].join("")),this.a[a].apply(this.a,b))};g.vc=function(a){this.ua=a.split("?")[0]};g.xc=function(a){this.a=a};var O=function(a){le.call(this,a)};w(O,le);m("studio.events.StudioEvent",O,void 0);O.INIT="init";O.VISIBLE="visible";O.HIDDEN="hidden";O.VISIBILITY_CHANGE="visibilityChange";O.VISIBILITY_CHANGE_WITH_INFO="visibilityChangeWithInfo";O.EXIT="exit";O.INTERACTION="interaction";O.PAGE_LOADED="pageLoaded";O.ORIENTATION="orientation";O.ABOUT_TO_EXPAND="aboutToExpand";O.EXPAND_START="expandStart";O.EXPAND_FINISH="expandFinish";O.COLLAPSE_START="collapseStart";O.COLLAPSE_FINISH="collapseFinish";
O.COLLAPSE="collapse";O.FULLSCREEN_SUPPORT="fullscreenSupport";O.FULLSCREEN_DIMENSIONS="fullscreenDimensions";O.FULLSCREEN_EXPAND_START="fullscreenExpandStart";O.FULLSCREEN_EXPAND_FINISH="fullscreenExpandFinish";O.FULLSCREEN_COLLAPSE_START="fullscreenCollapseStart";O.FULLSCREEN_COLLAPSE_FINISH="fullscreenCollapseFinish";O.prototype.Y=function(a,b){this[a]=b;return this};O.prototype.addProperty=O.prototype.Y;var fh=function(a){this.a=a;this.b=""},gh=/:/,hh=/%(.+)!/,ih=function(a,b,c){for(var d=c.split("&"),e=0;e<d.length;e++){var f=d[e].split("=");1<f.length&&f[0].length&&f[1].length&&a.a.set(decodeURIComponent(f[0]),decodeURIComponent(f[1]))}if(null!=a.a&&a.a.R("exitEvents")){for(var d={},e=a.a.get("exitEvents").toString(),f=e.split("{DELIM}"),l=0;l<f.length;l++){var n=f[l];Ea(e,"%2C")&&(n=unescape(n));var K;K={};for(var n=n.split(","),qa=0;qa<n.length;qa++)if(gh.test(n[qa])){n[qa].replace(hh,"%25$1!");
var qc=n[qa].split(":"),no=qc.shift();K[no]=unescape(qc.join(":"))}d[K.name]=K}b.exitEvents=d}a.b=c};fh.prototype.get=function(a,b){return this.a.get(a,b)};fh.prototype.set=function(a,b){return this.a.set(a,b)};fh.prototype.R=function(a){return this.a.R(a)};var jh=function(a){this.a={};this.b=new fh(a)},kh=function(a,b,c,d){var e=c;"Number"==d?e=parseInt(c,10):"Boolean"==d&&(e="true"==c.toLowerCase()||"1"==c);a.a[b]=e},lh=function(a,b){try{var c=bg(b);null!=c&&rb(a.a,c);var d={};eb(a.a,function(a,b){a&&!t(a)&&(b=decodeURIComponent(b),a=decodeURIComponent(a));b&&a&&(d[b]=a)},a);a.a=d}catch(e){ih(a.b,a.a,b)}};jh.prototype.getParameter=function(a,b){return mb(this.a,a)?nb(this.a,a):this.b.get(a,b)};
jh.prototype.P=function(a){a=parseInt(this.getParameter(a),10);return isNaN(a)?null:a};jh.prototype.$=function(a){a=this.getParameter(a);return ua(Ga(a))?null:a.toString()};var mh=function(){this.b=!1;this.a=[]},nh=function(a,b,c){a.c?a.c.C(b,c):a.a.push({type:b,Ia:c})},oh=function(a,b,c,d,e,f){nh(a,f?"logEventFlushCounters":"logEvent",[b,c,a.g,!!d,!!e])},qh=function(a){a.b||(oh(a,"Count","INTERACTIVE_IMPRESSION"),a.b=!0,ph(a))},ph=function(a){nh(a,"flushCounters",[a.g])},rh=function(a,b,c,d){nh(a,"logVideoEvent",[b,escape(c),d])};var sh=function(a){Wf.call(this);this.m=a;this.a=this.g=null;this.s=!1;this.b=null;this.f=!1;this.h=-1;this.j=0};w(sh,Wf);sh.prototype.kb=function(){return this.s};sh.prototype.M=function(){this.j=1;this.a&&(We(this.a),this.a.start())};sh.prototype.B=function(){this.j=0;this.a&&We(this.a)};
sh.prototype.v=function(){"1"==this.m.getParameter("isMouseOver")||1==this.j?this.f||(this.s=!0,1>this.h?this.h=ma():1E3<ma()-this.h&&(this.f=!0,this.m.dispatchEvent(new O("interaction")),th(this.m,"setTimerAdjustment",["INTERACTION_TIMER",-1E3,0]),this.g&&(oh(this.g,"Start","INTERACTION_TIMER"),qh(this.g)))):(this.f&&uh(this),this.h=-1)};var uh=function(a){a.f=!1;a.g&&oh(a.g,"Stop","INTERACTION_TIMER")};sh.prototype.l=function(){this.f&&uh(this);ke(this.b,this.a);sh.o.l.call(this)};var vh=function(){return new kg((window.STUDIO_ORIGINAL_ASSET_URL?window.STUDIO_ORIGINAL_ASSET_URL:window.location.href).replace(/%(?![A-Fa-f0-9][A-Fa-f0-9])/g,"%25"))};var wh=function(){this.a=ma()},xh=new wh;wh.prototype.set=function(a){this.a=a};wh.prototype.reset=function(){this.set(ma())};wh.prototype.get=function(){return this.a};var yh=function(a){this.g=a||"";this.f=xh};yh.prototype.a=!0;yh.prototype.b=!0;yh.prototype.c=!1;var zh=function(a){return 10>a?"0"+a:String(a)},Ah=function(a,b){a=(a.g-b)/1E3;b=a.toFixed(3);var c=0;if(1>a)c=2;else for(;100>a;)c++,a*=10;for(;0<c--;)b=" "+b;return b},Bh=function(a){yh.call(this,a)};w(Bh,yh);
var Ch=function(a,b){var c=[];c.push(a.g," ");if(a.b){var d=new Date(b.g);c.push("[",zh(d.getFullYear()-2E3)+zh(d.getMonth()+1)+zh(d.getDate())+" "+zh(d.getHours())+":"+zh(d.getMinutes())+":"+zh(d.getSeconds())+"."+zh(Math.floor(d.getMilliseconds()/10)),"] ")}c.push("[",Ah(b,a.f.get()),"s] ");c.push("[",b.b,"] ");c.push(b.c);a.c&&(b=b.a)&&c.push("\n",b instanceof Error?b.message:b.toString());a.a&&c.push("\n");return c.join("")};var Dh=function(){this.f=u(this.c,this);this.a=new Bh;this.a.b=!1;this.a.c=!1;this.b=this.a.a=!1;this.g={}},Fh=function(){var a=Eh;if(1!=a.b){var b=Oc(),c=a.f;b.a||(b.a=[]);b.a.push(c);a.b=!0}};Dh.prototype.c=function(a){if(!this.g[a.b]){var b=Ch(this.a,a),c=Gh;if(c)switch(a.f){case zc:Hh(c,"info",b);break;case Ac:Hh(c,"error",b);break;case Bc:Hh(c,"warn",b);break;default:Hh(c,"debug",b)}}};
var Eh=null,Gh=h.console,Ih=function(){Eh||(Eh=new Dh);h.location&&-1!=h.location.href.indexOf("Debug=true")&&Fh()},Hh=function(a,b,c){if(a[b])a[b](c);else a.log(c)};var Kh=function(a,b,c){if(q(b))(b=Jh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Jh(c,d);f&&(c.style[f]=e)}},Lh={},Jh=function(a,b){var c=Lh[b];if(!c){var d=Ka(b),c=d;void 0===a.style[d]&&(d=(jc?"Webkit":ic?"Moz":C?"ms":fc?"O":null)+La(d),void 0!==a.style[d]&&(c=d));Lh[b]=c}return c},Mh=function(a){"number"==typeof a&&(a=Math.round(a)+"px");return a},Nh=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=jc&&!b&&!c;if((!k(b)||d)&&a.getBoundingClientRect){var e;a:{try{e=a.getBoundingClientRect()}catch(f){e=
{left:0,top:0,right:0,bottom:0};break a}C&&a.ownerDocument.body&&(a=a.ownerDocument,e.left-=a.documentElement.clientLeft+a.body.clientLeft,e.top-=a.documentElement.clientTop+a.body.clientTop)}return new Rc(e.right-e.left,e.bottom-e.top)}return new Rc(b,c)},Ph=function(a){a=Db(a);var b=Vc(void 0),c,d=b.a;C&&d.createStyleSheet?(c=d.createStyleSheet(),Oh(c,a)):(d=fd(b,"HEAD")[0],d||(c=fd(b,"BODY")[0],d=b.b("HEAD"),c.parentNode.insertBefore(d,c)),c=b.b("STYLE"),Oh(c,a),b.c(d,c));return c},Qh=function(a){dd(a.ownerNode||
a.owningElement||a)},Oh=function(a,b){b instanceof Cb&&b.constructor===Cb&&b.b===Bb?b=b.a:(Oa("expected object of type SafeStyleSheet, got '"+b+"' of type "+ea(b)),b="type_error:SafeStyleSheet");C&&k(a.cssText)?a.cssText=b:a.innerHTML=b},Rh=function(a){a=a.style;a.position="relative";C&&!rc("8")?(a.zoom="1",a.display="inline"):a.display="inline-block"};var Sh=A("Firefox"),Th=bc()||A("iPod"),Uh=A("iPad"),Vh=A("Android")&&!(wb()||A("Firefox")||A("Opera")||A("Silk")),Wh=wb(),Xh=A("Safari")&&!(wb()||A("Coast")||A("Opera")||A("Edge")||A("Silk")||A("Android"))&&!(bc()||A("iPad")||A("iPod"));m("studio.sdk.ContainerState",{COLLAPSING:"collapsing",COLLAPSED:"collapsed",EXPANDING:"expanding",EXPANDED:"expanded",FS_COLLAPSING:"fs_collapsing",FS_EXPANDING:"fs_expanding",FS_EXPANDED:"fs_expanded"},void 0);var Yh={NONE:0,LOG_ONLY:1};m("studio.sdk.ExitFlag",Yh,void 0);Yh.NONE=0;Yh.LOG_ONLY=1;var Zh=function(){};m("studio.sdk.IEnabler",Zh,void 0);g=Zh.prototype;g.wc=function(){};g.reportManualClose=function(){};g.zc=function(){};g.yc=function(){};g.isVisible=function(){};g.ha=function(){};g.isPageLoaded=function(){};g.isInitialized=function(){};g.Jb=function(){};g.getParameter=function(){};g.exit=function(){};g.Na=function(){};g.Vb=function(){};g.La=function(){};g.startTimer=function(){};g.stopTimer=function(){};g.Wb=function(){};g.Zb=function(){};g.Sa=function(){};g.Sb=function(){};
g.za=function(){};g.Rb=function(){};g.close=function(){};g.Ca=function(){};g.Fa=function(){};g.addEventListener=function(){};g.removeEventListener=function(){};g.pc=function(){};g.oc=function(){};g.rc=function(){};g.Ub=function(){};g.ob=function(){};g.Tb=function(){};g.$b=function(){};var $h=function(a,b){return"The "+(a+(" method has been deprecated. As an alternative please use: "+(b+".")))},ai=function(a,b){return'Video "'+(a+('" dispatching "'+(b+'" event.')))},bi=function(a,b){return'Custom event "'+(a+('" of type "'+(b+'" invoked.')))};var ci={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"};m("studio.sdk.MraidMethod",ci,void 0);var P=function(a){window.AdobeEdge=window.AdobeEdge||{};window.AdobeEdge.bootstrapLoading=!0;h.console&&(Ih(),Fh());F(M,"");if(a!=di)return Pc(M,"You must access the enabler instance using studio.Enabler.getInstance(); or Enabler and not create a duplicate instance."),!1;J.call(this);this.j={};this.h={};this.B=new zf(Af(),Bf()?window.orientation:0);this.I=new Wf(this);this.la=!1;this.v=null;this.c="collapsed";this.Xa=!1;this.oa=null;this.Xc=0;this.sa={};this.N=null;this.Wa=!1;this.M=new H;this.f=
null;this.Va=[];this.da={};this.Za=[];this.b=new mh;this.L=new sh(this);this.a=new jh(ei(this).b)};w(P,J);m("studio.Enabler",P,void 0);var di=Math.random(),fi=!1,gi=null,Q=function(){gi||(gi=new P(di));return gi};P.getInstance=Q;g=P.prototype;g.nc=-1;g.cb=null;g.Cc=null;g.wb=null;g.Bc=!0;g.rb=!1;g.ta=!1;g.kc=!1;g.Dc=!1;g.pa=null;g.sb=null;g.ea=null;g.A=null;
var ei=function(a){a.wb||(a.wb=vh());return a.wb},th=function(a,b,c){a.A.C(b,c,void 0)},mi=function(a){a.rb=!0;a.sb=a.Yb();a.ea=a.Xb();if(a.A){var b=a.b,c=a.sb;b.c=a.A;b.g=c;for(c=bb(b.a);c.length;){var d=c.shift();nh(b,d.type,d.Ia)}}null!=a.a.getParameter("clickN")||kh(a.a,"clickN",1);a.Bc="true"!=a.a.getParameter("ise");b=a.P("leftOffset")||0;c=a.P("topOffset")||0;0==b&&0==c||hi(a,b,c);"1"==ii(a)&&ji(a);a.h=a.a.getParameter("exitEvents",{});b=a.a;if(mb(b.a,"assets")||b.b.R("assets"))b=a.a.getParameter("assets").toString(),
ki(a,b);Zb(yf,a.a.getParameter("features",[]));a.L.g=a.b;b=a.L;L(2)&&(b.u(document.body||window,"mouseover",b.M),b.u(document.body||window,"mouseout",b.B));k(window.ontouchstart)&&(b.a=new Ve(1E3),b.u(b.a,"tick",b.B),b.u(document,["touchstart","touchmove"],b.M));b.b&&(b.ca(b.b,"tick",b.v),b.b.dispose());b.b=new Ve(80);b.u(b.b,"tick",b.v);b.b.start();li(a);if(b=a.getParameter("layoutsConfig"))a.Cc=bg(String(b));a.dispatchEvent(new O("init"));a.M.a||a.M.J()},ii=function(a){return a.a.getParameter("renderingType")||
"1"};P.prototype.ye=function(a){ga(a)?(this.nc=a,F(M,"enabler.setProfileId set to: "+a)):F(M,"enabler.setProfileId invalid profile id value: "+a)};P.prototype.setProfileId=P.prototype.ye;P.prototype.pd=function(){return this.nc};P.prototype.getProfileId=P.prototype.pd;P.prototype.ve=function(a){t(a)?(this.cb=a,this.isInitialized()&&li(this)):F(M,"enabler.setDevDynamicContent invalid dcData value: "+a)};P.prototype.setDevDynamicContent=P.prototype.ve;
var li=function(a){if(null!=a.$("dcData")||a.cb)window.dynamicContent=null!=a.$("dcData")?a.Oa():a.cb};P.prototype.Oa=function(){var a=this.getParameter("dcData");return a?bg(String(a)):null};P.prototype.getDynamicDataPayload=P.prototype.Oa;P.prototype.ja=function(){return this.Cc};P.prototype.getLayoutsConfig=P.prototype.ja;P.prototype.bd=function(){return this.a.b.b||fg(this.a)};P.prototype.getAdParameters=P.prototype.bd;
P.prototype.ae=function(a){lh(this.a,a);this.pa&&Ne(this.pa);mi(this);F(M,"Asset properties have been set by host.")};P.prototype.setAdParameters=P.prototype.ae;P.prototype.Nc=function(){this.pa&&Ne(this.pa);F(M,"Using default ad parameters in test environment. Simulating local events.");mi(this)};P.setRushSimulatedLocalEvents=function(a){fi=!!a;if(a&&gi){a=gi;for(var b=0;b<a.Va.length;++b)a.dispatchEvent(a.Va[b])}};
var ni=function(a,b,c){var d=R;c=null!=c?c:0;d.Va.push(b);Xe(function(){this.dispatchEvent(b)},c,d);return Le(d,b,a,!1,d)};P.prototype.Gb=function(){var a=Af(),b=this.B.a;if(this.B.b!=a||Bf()&&this.B.a!=window.orientation){Bf()&&(b=window.orientation);var c=new O("orientation");c.Y("mode",a);c.Y("degrees",b);this.dispatchEvent(c)}};P.prototype.i=function(a,b,c){if(!this.ha()){var d;d=u.apply(this,[a,this].concat(Array.prototype.slice.call(arguments,2)));Xe(d,b)}};
var ki=function(a,b){0<b.length&&-1==b.indexOf("=")&&(b=decodeURIComponent(b));b=b.split("&");if(!(2>=b.length&&""==b[0]))for(var c=0;c<b.length;c++){var d=b[c].split("=");a.j[d[0].toLowerCase()]=unescape(d[1])}};P.prototype.m=function(){ph(this.b)};P.prototype.reportActivitiesImmediately=P.prototype.m;
var ji=function(a){a.Bc&&oh(a.b,"Start","DISPLAY_TIMER",void 0,void 0,void 0)},oi=function(a){a.b&&qh(a.b)},pi=function(a,b){var c=a.a.getParameter("click",""),d=parseInt(a.a.getParameter("clickN"),10);a=a.a.getParameter("thirdPartyClickRedirect","");a:{var e=c,c=b;if(!ua(Ga(e))){e=Kf(e,null);if(0!=b.lastIndexOf(e,0)){a=b;break a}c=Fa(c,e.length)}if(!ua(Ga(e))&&-1<e.indexOf("?"))for(b=ga(d)?d:1,d=0;d<b;d++)c=unescape(c);a&&0==c.lastIndexOf(a,0)&&(c=Fa(c,a.length),c=decodeURIComponent(c));a=c}return a},
qi=function(a,b,c,d){var e={};e.target=c;Vh&&(e.fullscreen=!0);e||(e={});c=window;var f;f=b instanceof Fb?b:Jb("undefined"!=typeof b.href?b.href:String(b));b=e.target||b.target;var l=[],n;for(n in e)switch(n){case "width":case "height":case "top":case "left":l.push(n+"="+e[n]);break;case "target":case "noreferrer":break;default:l.push(n+"="+(e[n]?1:0))}n=l.join(",");if((bc()||A("iPad")||A("iPod"))&&c.navigator&&c.navigator.standalone&&b&&"_self"!=b){n=c.document.createElement("A");if("undefined"!=
typeof HTMLAnchorElement&&"undefined"!=typeof Location&&"undefined"!=typeof Element){var l=n&&(n instanceof HTMLAnchorElement||!(n instanceof Location||n instanceof Element)),K;K=t(n)?n.constructor.displayName||n.constructor.name||Object.prototype.toString.call(n):void 0===n?"undefined":null===n?"null":typeof n;y(l,"Argument is not a HTMLAnchorElement (or a non-Element mock); got: %s",K)}f=f instanceof Fb?f:Jb(f);n.href=Gb(f);n.setAttribute("target",b);e.noreferrer&&n.setAttribute("rel","noreferrer");
e=document.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,c,1);n.dispatchEvent(e)}else e.noreferrer?(c=c.open("",b,n),f=Gb(f),c&&(hc&&Ea(f,";")&&(f="'"+f.replace(/'/g,"%27")+"'"),c.opener=null,e=Ab("b/12014412, meta tag with sanitized URL"),f='<META HTTP-EQUIV="refresh" content="0; url='+Da(f)+'">',Qa(zb(e),"must provide justification"),y(!ua(zb(e)),"must provide non-empty justification"),e=Pb(f),c.document.write(Ob(e)),c.document.close())):c.open(Gb(f),b,n);d&&a.m()},ri=function(a,b,c,
d){a.A.C(d?"logExitFlushEventsOpenPopup":"launchExit",["Count",b,a.sb,!1,c])},ti=function(a,b,c,d){if(ua(Ga(b)))F(M,"There was a problem with the exit call.");else{var e=k(d)?d:0;d=a.h[b]&&a.h[b].target||"_blank";var f;if(f=!L(8))f=!(Ea(a.a.getParameter("click",""),"[rm_exit_id]")&&null!=a.h[b]&&null!=a.h[b].reportingId&&!ua(a.h[b].reportingId));e&1||(a.h[b]?L(8)?ri(a,b,c,!0):(e=Lf(c),e=si(a,e,b),qi(a,e,d,!f)):c&&(a.ha()&&L(8)?ri(a,b,c,!1):(e=Lf(c),e=si(a,e,null),qi(a,e,d,!0),f=!1)));f&&oh(a.b,"Count",
b,!0,!0,!0);a.A.C("AD_CLICKED");d=new O("exit");d.Y("id",b);d.Y("url",c);a.dispatchEvent(d);F(M,'Exit "'+(b+'" invoked.'))}},ui=function(a,b,c,d,e){a=a.h[b];c=!d&&a&&a.url?a.url:c;return null==e||ua(Ga(e))?c:Gf([c,"&",e])},si=function(a,b,c){var d=null;c&&(c=a.h[c],d=null!=c.reportingId?c.reportingId:null);c=a.a.getParameter("click","");b=b||"";var e=a.a.getParameter("thirdPartyClickRedirect","");a=parseInt(a.a.getParameter("clickN"),10);d&&(c=Kf(c,d),b=e?e+encodeURIComponent(b):b);if(!ua(Ga(c))&&
-1<c.indexOf("?"))for(a=ga(a)?a:1,d=0;d<a;d++)b=escape(b);return c+b};P.prototype.reportManualClose=function(){F(M,"Ad was closed by user action.");oh(this.b,"Count","EVENT_MANUAL_CLOSE",void 0,void 0,void 0)};P.prototype.reportManualClose=P.prototype.reportManualClose;
var vi=function(a,b,c){var d=b;100<d.length&&(d=d.substr(0,100));a.A.C("reportCustomVariable",[escape(d),c]);F(M,'Custom string "'+(b+'" recorded.'))},hi=function(a,b,c){a.ha()&&!L(8)&&(a.N&&Qh(a.N),a.N=Ph(["body { position: relative; margin-left: -",b,"px !important; margin-top: -",c,"px !important; }"].join("")))};P.prototype.be=function(a,b,c){kh(this.a,a,b,c)};P.prototype.setParameter=P.prototype.be;P.prototype.yb=function(){this.dispatchEvent(new O("pageLoaded"))};
P.prototype.dispatchPageLoaded=P.prototype.yb;P.prototype.dispatchEvent=function(a){this.da[a.type]=(this.da[a.type]||0)+1;switch(a.type){case "pageLoaded":null!=window.AdobeEdge&&r(window.AdobeEdge.loadResources)&&window.AdobeEdge.loadResources();this.kc=!0;break;case "orientation":this.B.b=a.mode,this.B.a=a.degrees}return P.o.dispatchEvent.call(this,a)};P.prototype.dispatchEvent=P.prototype.dispatchEvent;
P.prototype.Ya=function(a){(this.Dc=a)&&!this.da.visible?(null!=window.AdobeEdge&&r(window.AdobeEdge.playWhenReady)&&window.AdobeEdge.playWhenReady(),"1"!=ii(this)&&ji(this),this.dispatchEvent(new O("visible"))):this.da.hidden||this.dispatchEvent(new O("hidden"));this.dispatchEvent(new O("visibilityChange"))};P.prototype.setAdVisibleInternal=P.prototype.Ya;P.prototype.Yc=function(){this.Ya(!0)};P.prototype.dispatchAdVisible=P.prototype.Yc;
P.prototype.wc=function(a,b,c,d,e,f){if(c||d)this.v||(this.v={}),this.v.width=c,this.v.height=d;null!=e&&(this.la=!!e);null!=f&&kh(this.a,"isMultiDirectional",f?"true":"false")};P.prototype.setExpandingPixelOffsets=P.prototype.wc;P.prototype.zc=function(a){this.la=!!a};P.prototype.setStartExpanded=P.prototype.zc;P.prototype.yc=function(a){kh(this.a,"isMultiDirectional",a?"true":"false")};P.prototype.setIsMultiDirectional=P.prototype.yc;
P.prototype.Be=function(a){this.A.C("invokeMraidMethod",["useCustomClose",[a]]);this.Wa=0==a};P.prototype.setUseCustomClose=P.prototype.Be;P.prototype.we=function(){};P.prototype.setFloatingPixelDimensions=P.prototype.we;P.prototype.isVisible=function(){return this.Dc};P.prototype.isVisible=P.prototype.isVisible;P.prototype.ha=function(){return L(1)};P.prototype.isServingInLiveEnvironment=P.prototype.ha;P.prototype.isPageLoaded=function(){return this.kc};P.prototype.isPageLoaded=P.prototype.isPageLoaded;
P.prototype.isInitialized=function(){return this.rb};P.prototype.isInitialized=P.prototype.isInitialized;P.prototype.Jb=function(a){r(a)&&Yd(this.M,a)};P.prototype.callAfterInitialized=P.prototype.Jb;P.prototype.getParameter=function(a){return this.a.getParameter(a,null)};P.prototype.getParameter=P.prototype.getParameter;P.prototype.getParameter=P.prototype.getParameter;P.prototype.P=function(a){return this.a.P(a)};P.prototype.getParameterAsInteger=P.prototype.P;P.prototype.$=function(a){return this.a.$(a)};
P.prototype.getParameterAsNullableString=P.prototype.$;P.prototype.exit=function(a,b,c){k(b)&&(b=pi(this,b));oi(this);ti(this,a,ui(this,a,b,!1),c)};P.prototype.exit=P.prototype.exit;P.prototype.Na=function(a,b,c){b=pi(this,b);oi(this);ti(this,a,ui(this,a,b,!0),c)};P.prototype.exitOverride=P.prototype.Na;P.prototype.gb=function(a,b){ti(this,a,ui(this,a,void 0,void 0,b||""))};P.prototype.exitQueryString=P.prototype.gb;P.prototype.Vb=function(a){return si(this,a,null)};
P.prototype.formExitUrlFromOverride=P.prototype.Vb;P.prototype.La=function(a,b){F(M,'Counter "'+(a+'" invoked.'));oh(this.b,"Count",a,b,!0,void 0);Qc(M,bi(a,"Count"))};P.prototype.counter=P.prototype.La;P.prototype.startTimer=function(a){F(M,'Timer "'+(a+'" started.'));oh(this.b,"Start",a,void 0,!0,void 0);Qc(M,bi(a,"Start"))};P.prototype.startTimer=P.prototype.startTimer;P.prototype.stopTimer=function(a){F(M,'Timer "'+(a+'" stopped.'));oh(this.b,"Stop",a,void 0,!0,void 0);Qc(M,bi(a,"Stop"))};
P.prototype.stopTimer=P.prototype.stopTimer;P.prototype.se=function(a){E(M,$h("Enabler.reportCustomImpressionVariable(postString)","Enabler.reportCustomVariableCount1(customString)"));vi(this,a,1)};P.prototype.reportCustomImpressionVariable=P.prototype.se;P.prototype.te=function(a){vi(this,a,1)};P.prototype.reportCustomVariableCount1=P.prototype.te;P.prototype.re=function(a){E(M,$h("Enabler.reportCustomClickVariable(postString)","Enabler.reportCustomVariableCount1(customString)"));vi(this,a,2)};
P.prototype.reportCustomClickVariable=P.prototype.re;P.prototype.ue=function(a){vi(this,a,2)};P.prototype.reportCustomVariableCount2=P.prototype.ue;P.prototype.Wb=function(){return this.c};P.prototype.getContainerState=P.prototype.Wb;P.prototype.Zb=function(){return this.oa};P.prototype.getExpandDirection=P.prototype.Zb;P.prototype.ze=function(a){this.Xa||th(this,"setResponsiveBehavior",[a?2:0,2])};P.prototype.setResponsiveExpanding=P.prototype.ze;
P.prototype.Ae=function(a,b){th(this,"responsiveResize",[a,b])};P.prototype.setResponsiveSize=P.prototype.Ae;
P.prototype.Sa=function(){if("collapsed"!=this.c)E(M,"Enabler.requestExpand() should not be invoked unless the creative is in the collapsed state.");else{Pe(this,"expandStart")||E(M,"Please implement the expansion via event handlers:\nEnabler.addEventListener(\n    studio.events.StudioEvent.EXPAND_START,\n    function() {/* expand action */});");this.Xa=!0;var a=[this.ea];this.v&&a.push(this.v);this.A.C("expandRequested",a);wi(this,this.za);this.i(this.xb,0)}};P.prototype.requestExpand=P.prototype.Sa;
var wi=function(a,b){if(!a.ha()&&a.Wa){var c=document.getElementsByTagName("body")[0],d=G("IMG",{width:"15",height:"15",border:"0",src:"http://s0.2mdn.net/ads/studio/close.png"});a.f={J:b,element:G("DIV",{style:"position: absolute;right: 5px;top: 5px;width: 15px;height: 15px;cursor: pointer;"},d)};a.I.u(a.f.element,"click",b);cd(c,a.f.element)}},xi=function(a){a.f&&(dd(a.f.element),a.I.ca(a.f.element,"click",a.f.J),a.f.element=null,a.f.J=null,a.f=null)};P.prototype.Lc=function(){this.dispatchEvent(new O("aboutToExpand"))};
P.prototype.aboutToExpandInternal=P.prototype.Lc;
P.prototype.xb=function(a){a&&(a=wf[a.toString().toUpperCase()]);var b=0,c=0;"true"==this.getParameter("isMultiDirectional")&&a&&(a.a&2&&(c=this.P("topOffset")),a.a&1&&(b=this.P("leftOffset")));hi(this,null===b?0:b,null===c?0:c);a?this.oa=a:this.oa=this.ha()||"true"!=this.getParameter("isMultiDirectional")?null:xf[this.Xc++%xf.length];this.la||(oh(this.b,"Start","EXPAND_TIMER",void 0,void 0,void 0),oi(this),this.ta||(this.m(),this.ta=!0));this.la=!1;this.c="expanding";a=new O("expandStart");a.Y("direction",
this.oa);this.dispatchEvent(a)};P.prototype.startExpandInternal=P.prototype.xb;P.prototype.Sb=function(){"expanding"!=this.c?E(M,"You must first call Enabler.requestExpand() to initiate the expansion and then call Enabler.finishExpand() when the expand animation has  finished. Cancelling expansion..."):(this.A.C("expandFinished",[this.ea]),this.c="expanded",F(M,"The creative has expanded."),this.dispatchEvent(new O("expandFinish")))};P.prototype.finishExpand=P.prototype.Sb;
P.prototype.expand=function(a,b){E(M,"The Enabler.expand() method has been deprecated. As an alternative please use: Enabler.requestExpand().");hi(this,0,0);var c=[this.ea];b&&c.push(b);this.Wa=!!b&&0==b.useCustomClose;this.A.C("expandAsset",c);a||(oh(this.b,"Start","EXPAND_TIMER",void 0,void 0,void 0),oi(this));this.ta||(this.m(),this.ta=!0);F(M,"The creative has expanded.")};P.prototype.expand=P.prototype.expand;
P.prototype.za=function(){"expanded"!=this.c&&E(M,"Enabler.requestCollapse() should not be invoked unless the creative is in the expanded state.");xi(this);Pe(this,"collapseStart")||E(M,"Please implement collapse via event handlers:\nEnabler.addEventListener(\n    studio.events.StudioEvent.COLLAPSE_START,\n    function() {/* Begin collapse animation */});");this.A.C("collapseRequested",[this.ea]);this.i(this.Ib,0)};P.prototype.requestCollapse=P.prototype.za;
P.prototype.Ib=function(){this.c="collapsing";this.dispatchEvent(new O("collapseStart"))};P.prototype.startCollapseInternal=P.prototype.Ib;P.prototype.Rb=function(){"collapsing"!=this.c?E(M,"You must first call Enabler.requestCollapse() to initiate the collapse and then call Enabler.finishCollapse() when the collapse animation has  finished. Cancelling collapse..."):(this.A.C("collapseFinished",[this.ea]),this.i(this.zb,0))};P.prototype.finishCollapse=P.prototype.Rb;
P.prototype.zb=function(){var a=this.P("leftOffset")||0,b=this.P("topOffset")||0;hi(this,a,b);oh(this.b,"Stop","EXPAND_TIMER",void 0,void 0,void 0);this.c="collapsed";F(M,"The creative has collapsed.");this.dispatchEvent(new O("collapseFinish"))};P.prototype.finishCollapseInternal=P.prototype.zb;
P.prototype.collapse=function(){E(M,"The Enabler.collapse() method has been deprecated. As an alternative please use: Enabler.requestCollapse().");Pe(this,"collapse")||E(M,"Please implement collapse via event handlers:\nEnabler.addEventListener(\n    studio.events.StudioEvent.COLLAPSE_START,\n    function() {/* Begin collapse animation */});");var a=this.P("leftOffset")||0,b=this.P("topOffset")||0;hi(this,a,b);this.A.C("collapseAsset",[this.ea]);this.dispatchEvent(new O("collapse"));oh(this.b,"Stop",
"EXPAND_TIMER",void 0,void 0,void 0)};P.prototype.collapse=P.prototype.collapse;P.prototype.close=function(){this.L.dispose();this.A.C("tellAssetHide",[this.ea]);F(M,"Closing ad. If this was invoked by a user action, call Enabler.reportManualClose() as well.")};P.prototype.close=P.prototype.close;P.prototype.Oc=function(){this.A.C("tellCompanionAssetHide",[this.ea])};P.prototype.closeCompanion=P.prototype.Oc;P.prototype.Wc=function(){this.A.C("tellCompanionAssetShow",[this.ea])};
P.prototype.displayCompanion=P.prototype.Wc;P.prototype.ld=function(){return this.$("sn")};P.prototype.getDartSiteName=P.prototype.ld;P.prototype.kd=function(){return this.P("sid")};P.prototype.getDartSiteId=P.prototype.kd;P.prototype.gd=function(){return this.P("aid")};P.prototype.getDartAdId=P.prototype.gd;P.prototype.jd=function(){return this.P("pid")};P.prototype.getDartPageId=P.prototype.jd;P.prototype.Yb=function(){return this.$("rid")};P.prototype.getDartRenderingId=P.prototype.Yb;
P.prototype.hd=function(){return this.P("cid")};P.prototype.getDartCreativeId=P.prototype.hd;P.prototype.Xb=function(){return this.$("varName")};P.prototype.getDartAssetId=P.prototype.Xb;P.prototype.sd=function(){return this.$("ct")};P.prototype.getUserCountry=P.prototype.sd;P.prototype.vd=function(){return this.$("st")};P.prototype.getUserState=P.prototype.vd;P.prototype.wd=function(){return this.$("zp")};P.prototype.getUserZipCode=P.prototype.wd;
P.prototype.rd=function(){var a=this.P("bw");return null!=a?a:0};P.prototype.getUserBandwidth=P.prototype.rd;P.prototype.qd=function(){return this.$("ac")};P.prototype.getUserAreaCode=P.prototype.qd;P.prototype.ud=function(){return this.P("dma")};P.prototype.getUserDMACode=P.prototype.ud;P.prototype.getFilename=function(a){E(M,"The method: Enabler.getFilename(filename) has been deprecated. As an alternative please use: Enabler.getUrl(filename).");return this.Ca(a)};P.prototype.getFilename=P.prototype.getFilename;
P.prototype.Ca=function(a){var b=a.toLowerCase(),c=b.slice(b.lastIndexOf("/")+1),d=encodeURIComponent(c),e=this.j[c],e=(e=(e=(e=(e=e||this.j["pro_"+c])||this.j[b])||this.j["pro_"+b])||this.j[d])||this.j["pro_"+d];return null!=e?e:a};P.prototype.getUrl=P.prototype.Ca;P.prototype.od=function(){return this.B};P.prototype.getOrientation=P.prototype.od;
P.prototype.Ed=function(a,b){if(a)for(var c=0;c<this.Za.length;++c){var d=this.Za[c];if(null!=d)switch(a){case "changevolume":null!=b&&(0<b&&(d.muted=!1),d.volume=b);break;case "pause":d.pause();break;case "resume":d.play()}}};P.prototype.invokeOnAllVideos=P.prototype.Ed;P.prototype.Hb=function(a){null!=a&&this.Za.push(a)};P.prototype.registerVideoElements=P.prototype.Hb;P.prototype.de=function(a,b){a=de(a);null!=b&&Yd(a,b)};P.prototype.loadScript=P.prototype.de;
P.prototype.Fa=function(a,b){Yb(pa,a)?Yd(this.M,v(rf,a,b)):Pc(M,"There is no module called "+(a+"."))};P.prototype.loadModule=P.prototype.Fa;P.prototype.ce=function(a,b){for(var c=a.length,d=0;d<a.length;++d)this.Fa(a[d],function(){0==--c&&b()})};P.prototype.loadModules=P.prototype.ce;P.prototype.Td=function(a){F(M,'Dispatching function invocation "'+a+'" on parent.');this.A.C("invokeExternalJSFunction",[escape(a)])};P.prototype.invokeExternalJsFunction=P.prototype.Td;
P.prototype.Ud=function(a,b,c){a in ci||E(M,'The mraid method "'+(a+"\" isn't allowed to be invoked, please use one of the corresponding Enabler methods."));var d='Method "'+(a+'" invoked');b&&(d+='with arguments "'+(b.join(",")+'"'));F(M,d+".");this.A.C("invokeMraidMethod",[a,b],c)};P.prototype.invokeMraidMethod=P.prototype.Ud;P.prototype.Bd=function(){E(M,"The method: Enabler.invokeAdMobMethod has been deprecated.")};P.prototype.invokeAdMobMethod=P.prototype.Bd;
P.prototype.s=function(a,b,c,d){Yb(Mf,a)?this.A.C("invokeExternalJSFunctionWithReturn",[a,b,c],d):Pc(M,'The whitelist global object "'+(a+"\" isn't whitelisted, please only call methods on one of the existing whitelisted objects."))};P.prototype.invokeExternalJsFunctionWithReturn=P.prototype.s;P.prototype.$d=function(a,b){F(M,"Dispatching function invocation openUrl on parent.");this.A.C("invokeUrlOpen",[a],b)};P.prototype.invokeUrlOpen=P.prototype.$d;
P.prototype.l=function(){this.N&&Qh(this.N);this.pa&&Ne(this.pa);ke(this.L,this.b,this.I,this.M);delete this.sa;P.o.l.call(this)};P.prototype.addEventListener=function(a,b,c,d){if(a in tf){if(!this.ha()){var e=b;r(b)&&(e=function(a){a.ed?b(a.ba):b(a)});Yf(this.I,window,a,e,c,d);return}this.A.C("registerEventTypeListenerForType",[a])}Ee(this,a,b,c,d)};P.prototype.addEventListener=P.prototype.addEventListener;P.prototype.removeEventListener=function(a,b,c,d){Me(this,a,b,c,d)};
P.prototype.removeEventListener=P.prototype.removeEventListener;P.prototype.$a=function(a,b){this.sa[a]=b};P.prototype.addMessageHandler=P.prototype.$a;P.prototype.pe=function(a){delete this.sa[a]};P.prototype.removeMessageHandler=P.prototype.pe;P.prototype.Rc=function(a,b){a=this.sa[a];r(a)&&a.apply(null,b)};P.prototype.defaultMessageHandler=P.prototype.Rc;
P.prototype.pc=function(){Pe(this,"fullscreenSupport")||E(M,"Please implement an event handler in order to receive support status:\nEnabler.addEventListener(\n    studio.events.StudioEvent.FULLSCREEN_SUPPORT,\n    function() {/* query event for fullscreen status */});");this.A.C("isFullscreenSupported");this.i(this.Fb,0,!0)};P.prototype.queryFullscreenSupport=P.prototype.pc;
P.prototype.oc=function(){Pe(this,"fullscreenDimensions")||E(M,"Please implement an event handler in order to receive dimensions:\nEnabler.addEventListener(\n    studio.events.StudioEvent.FULLSCREEN_DIMENSIONS,\n    function() {/* query event for fullscreen dimensions */});");this.A.C("queryFullscreenDimensions");if(!this.ha()){var a;a=window.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;a=new Rc(a.clientWidth,a.clientHeight);this.i(this.Cb,0,a.width,a.height)}};
P.prototype.queryFullscreenDimensions=P.prototype.oc;
P.prototype.rc=function(a,b){if("collapsed"!=this.c)E(M,"Enabler.requestFullscreenExpand() should not be invoked unless the  creative is in the collapsed state.");else{Pe(this,"fullscreenExpandStart")||E(M,"Please implement the fullscreen expansion via event handlers:\nEnabler.addEventListener(\n    studio.events.StudioEvent.FULLSCREEN_EXPAND_START,\n    function() {/* expand action */});");this.Xa=!0;var c=[];a&&b&&(c=[a,b]);this.A.C("fullscreenExpandRequested",c);wi(this,this.ob);this.i(this.Eb,
0,a,b)}};P.prototype.requestFullscreenExpand=P.prototype.rc;P.prototype.Ub=function(){"fs_expanding"!=this.c?E(M,"You must first call Enabler.requestFullscreenExpand() to initiate the expansion and then call Enabler.finishFullscreenExpand() when the expand animation has finished. Cancelling expansion..."):(this.A.C("fullscreenExpandFinished"),F(M,"The creative has expanded."),this.i(this.Db,0))};P.prototype.finishFullscreenExpand=P.prototype.Ub;
P.prototype.ob=function(){"fs_expanded"!=this.c?E(M,"Enabler.requestFullscreenCollapse() should not be invoked unless the  creative is in the fullscreen state."):(Pe(this,"fullscreenCollapseStart")||E(M,"Please implement fullscreen collapse via event handlers:\nEnabler.addEventListener(\n    studio.events.StudioEvent.FULLSCREEN_COLLAPSE_START,\n    function() {/* Begin collapse animation */});"),xi(this),this.A.C("fullscreenCollapseRequested"),this.i(this.Bb,0))};
P.prototype.requestFullscreenCollapse=P.prototype.ob;P.prototype.Tb=function(){"fs_collapsing"!=this.c?E(M,"You must first call Enabler.requestFullscreenCollapse() to initiate the collapse and then call Enabler.finishFullscreenCollapse() when the collapse animation has finished. Cancelling collapse..."):(this.A.C("fullscreenCollapseFinished"),this.i(this.Ab,0))};P.prototype.finishFullscreenCollapse=P.prototype.Tb;P.prototype.oe=function(a){this.A.C("registerChargeableEventName",[a])};
P.prototype.registerChargeableEventName=P.prototype.oe;P.prototype.kb=function(){return this.L.kb()};P.prototype.hasUserInteracted=P.prototype.kb;P.prototype.Fb=function(a){var b=new O("fullscreenSupport");b.Y("supported",a);this.dispatchEvent(b)};P.prototype.fullscreenSupportInternal=P.prototype.Fb;P.prototype.Cb=function(a,b){var c=new O("fullscreenDimensions");void 0!=a&&void 0!=b&&(c.Y("width",a),c.Y("height",b));this.dispatchEvent(c)};P.prototype.fullscreenDimensionsInternal=P.prototype.Cb;
P.prototype.Eb=function(a,b,c,d){oh(this.b,"Start","EXPAND_TIMER",void 0,void 0,void 0);oi(this);this.ta||(this.m(),this.ta=!0);this.c="fs_expanding";var e=new O("fullscreenExpandStart");e.Y("width",a);e.Y("height",b);e.Y("left",c);e.Y("top",d);this.dispatchEvent(e)};P.prototype.fullscreenExpandStartInternal=P.prototype.Eb;P.prototype.Db=function(){this.c="fs_expanded";this.dispatchEvent(new O("fullscreenExpandFinish"))};P.prototype.fullscreenExpandFinishInternal=P.prototype.Db;
P.prototype.Bb=function(){this.c="fs_collapsing";this.dispatchEvent(new O("fullscreenCollapseStart"))};P.prototype.fullscreenCollapseStartInternal=P.prototype.Bb;P.prototype.Ab=function(){oh(this.b,"Stop","EXPAND_TIMER",void 0,void 0,void 0);this.c="collapsed";this.dispatchEvent(new O("fullscreenCollapseFinish"))};P.prototype.fullscreenCollapseFinishInternal=P.prototype.Ab;P.prototype.xe=function(){return this};P.prototype.setHint=P.prototype.xe;P.prototype.$b=function(){return df()||"studio"};
P.prototype.getSdk=P.prototype.$b;var yi=Q();m("Enabler",yi,void 0);var R=Q();
if(!R.rb){var zi=R.a.getParameter("e",null);zi&&af(parseInt(zi,10)||0);var Ai=R.P("leftOffset")||0,Bi=R.P("topOffset")||0;0==Ai&&0==Bi||hi(R,Ai,Bi);var Ci;Ci=ei(R).c;var Di;Di=ei(R).g;var Ei=ei(R),Fi=[Ci,"://",Di,Ei.f].join("");Vb(yf.a);Zb(yf,[1,2]);if("1"==ii(R))R.A=new eh;else{var Gi=R.a.getParameter("c",void 0),Hi=R.a.P("t"),Ii=R.a.P("sfi");R.A=new dh(Gi,Hi,null!==Ii&&Ii<h.parent.frames.length?h.parent.frames[Ii]:null)}je(R,R.A);R.A.xc(R);R.A.vc(Fi);if(!R.ha()){var Ji=1E3;fi&&(Ji=0);R.pa=ni(R.Nc,
"a",Ji);var Ki=2E3,Li=2500;fi&&(Li=Ki=0);ni(R.yb,"b",Ki);ni(v(R.Ya,!0),"c",Li);R.I.u(window,["resize","orientationchange"],R.Gb);R.Gb()}R.A.connect()}ef.enabler=3;var S=function(){J.call(this);this.a="loading";this.b=aa("Enabler");this.b.isInitialized()?this.c():Ee(this.b,"init",this.c,!1,this)};w(S,J);da(S);S.prototype.h=function(){return this.a};S.prototype.getState=S.prototype.h;S.prototype.i=function(){return"1.0"};S.prototype.getVersion=S.prototype.i;S.prototype.m=function(){this.b.exit("MRAID default exit")};S.prototype.open=S.prototype.m;
S.prototype.close=function(){"expanded"==this.a?(this.b.za(),this.a="default",this.dispatchEvent("stateChange")):"default"==this.a&&(this.a="hidden",this.b.close(),this.dispatchEvent("stateChange"))};S.prototype.close=S.prototype.close;S.prototype.j=function(){return this.b.isVisible()};S.prototype.isViewable=S.prototype.j;S.prototype.expand=function(){"default"==this.a&&(this.b.Sa(),this.a="expanded",this.dispatchEvent("stateChange"))};S.prototype.expand=S.prototype.expand;
S.prototype.c=function(){this.a="default";Ee(this.b,"collapseStart",this.f,!1,this);this.dispatchEvent("ready")};S.prototype.f=function(){"expanded"==this.a&&(this.a="default",this.dispatchEvent("stateChange"))};if(!window.mraid){var Mi=S.Z();m("mraid",Mi,void 0)};m("studio.sdk.hint.ExpansionMode",{NORMAL:"normal",LIGHTBOX:"lightbox"},void 0);m("studio.sdk.hint.ExpansionTrigger",{ON_CLICK:"onClick",ON_HOVER:"onHover"},void 0);m("studio.sdk.hint.Hint",{EXPANSION_MODE:"expansionMode",EXPANSION_TRIGGER:"expansionTrigger"},void 0);var Ni,Oi,Pi,Qi,Ri,Si=function(){return h.navigator?h.navigator.userAgent:""},Ti=function(a){return Ea(Si(),a)},Ui=Ti("(iPad")||Ti("(iPod")||Ti("(iPhone"),Vi=Ti("Android"),Wi=Ti("MSIE")||Ti("IEMobile")||Ti("Windows Phone"),Xi=function(){k(Pi)||(Pi=Ti("afma-sdk-a")?!0:!1);return Pi},Yi=function(){if(!k(Qi)){var a;a:{if(!k(Oi)){if(Ui&&!Ti("Safari")){a=Oi=!0;break a}Oi=!1}a=Oi}Qi=a||Xi()}return Qi};var Zi=function(a){return"Config type "+(a+" does not exist")},$i=function(a){return"Unable to parse a type for value with JavaScript type "+(ea(a)+(': "'+(a+'"')))},aj=function(a,b){return"Cannot handle description for property "+(b+(" on type "+(a+".")))},bj=function(a,b){return"Array property "+(b+(" on type "+(a+" must have at least one element.")))},cj=function(a,b){return"Invalid type for value of property "+(b+(" on type "+(a+".")))},dj=function(a,b){return"No value specified for non-optional property "+
(b+(" on type "+(a+".")))},ej=function(a,b){return"Property "+(b+(" does not exist on type "+(a+".")))},fj=function(a,b){return"Property "+(b+(" is not an array on type "+(a+".")))},gj=function(a,b,c,d){return"Property "+(b+(" on type "+(a+(" has length "+(c+(", but invalid index "+(d+" was requested.")))))))},hj=function(a,b){return"Unknown event with type "+(a+(" and name "+b))},ij=function(a){return"The optional property "+(a+" must be a reference")};var jj=function(){};m("studio.utils.EnablerAccessor",jj,void 0);var kj=function(a){var b=Q();b.isInitialized()?a(b):b.g.add("init",v(a,b),!0,void 0,void 0)};jj.getInitializedEnablerByCallback=kj;var lj=function(){return new zd(function(a){var b=Q();b.isInitialized()?a(b):b.g.add("init",v(a,b),!0,void 0,void 0)})};jj.getInitializedEnabler=lj;jj.loadModuleWhenReady=function(a,b){kj(function(c){c.Fa(a,b)})};var mj=function(){};da(mj);mj.prototype.a=0;var T=function(a){J.call(this);this.oa=a||Vc();this.M=null;this.ga=!1;this.a=null;this.j=void 0;this.i=this.b=this.h=null};w(T,J);T.prototype.sa=mj.Z();T.prototype.v=function(){return this.M||(this.M=":"+(this.sa.a++).toString(36))};T.prototype.getElement=function(){return this.a};
var nj=function(a){a.j||(a.j=new Wf(a));return a.j},oj=function(a,b){if(a==b)throw Error("Unable to set parent component");var c;if(c=b&&a.h&&a.M){c=a.h;var d=a.M;c=c.i&&d?nb(c.i,d)||null:null}if(c&&a.h!=b)throw Error("Unable to set parent component");a.h=b;T.o.qb.call(a,b)};T.prototype.qb=function(a){if(this.h&&this.h!=a)throw Error("Method not supported");T.o.qb.call(this,a)};T.prototype.W=function(){this.a=this.oa.a.createElement("DIV")};
var pj=function(a,b,c){if(a.ga)throw Error("Component already rendered");a.a||a.W();b?b.insertBefore(a.a,c||null):a.oa.a.body.appendChild(a.a);a.h&&!a.h.ga||a.T()};T.prototype.T=function(){this.ga=!0;qj(this,function(a){!a.ga&&a.getElement()&&a.T()})};var rj=function(a){qj(a,function(a){a.ga&&rj(a)});a.j&&$f(a.j);a.ga=!1};T.prototype.l=function(){this.ga&&rj(this);this.j&&(this.j.dispose(),delete this.j);qj(this,function(a){a.dispose()});this.a&&dd(this.a);this.h=this.a=this.i=this.b=null;T.o.l.call(this)};
var sj=function(a,b){var c=a.b?a.b.length:0;y(!!b,"Provided element must not be null.");if(b.ga)throw Error("Component already rendered");if(0>c||c>(a.b?a.b.length:0))throw Error("Child component index out of bounds");a.i&&a.b||(a.i={},a.b=[]);if(b.h==a){var d=b.v();a.i[d]=b;$a(a.b,b)}else{var d=a.i,e=b.v();if(null!==d&&e in d)throw Error('The object already contains the key "'+e+'"');d[e]=b}oj(b,a);db(a.b,c,0,b);b.ga&&a.ga&&b.h==a?(a=a.fa(),c=a.childNodes[c]||null,c!=b.getElement()&&a.insertBefore(b.getElement(),
c)):(a.a||a.W(),c=a.b?a.b[c+1]||null:null,pj(b,a.fa(),c?c.a:null))};T.prototype.fa=function(){return this.a};var qj=function(a,b){a.b&&z(a.b,b,void 0)};T.prototype.removeChild=function(a,b){if(a){var c=q(a)?a:a.v();a=this.i&&c?nb(this.i,c)||null:null;if(c&&a){var d=this.i;c in d&&delete d[c];$a(this.b,a);b&&(rj(a),a.a&&dd(a.a));oj(a,null)}}if(!a)throw Error("Child is not in parent component");return a};
var tj=function(a){for(var b=[];a.b&&0!=a.b.length;)b.push(a.removeChild(a.b?a.b[0]||null:null,!0))};})();
