(function(){var r,t=this,u=function(a){return void 0!==a},w=function(a,b,c){a=a.split(".");c=c||t;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&u(b)?c[d]=b:c=c[d]?c[d]:c[d]={}},aa=function(){},ba=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},x=function(a){return"array"==ba(a)},ca=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length},y=function(a){return"string"==typeof a},da=function(a){return"function"==
ba(a)},ea=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},fa="closure_uid_"+(1E9*Math.random()>>>0),ga=0,ha=function(a,b,c){return a.call.apply(a.bind,arguments)},ia=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)}},z=function(a,b,c){z=Function.prototype.bind&&
-1!=Function.prototype.bind.toString().indexOf("native code")?ha:ia;return z.apply(null,arguments)},ka=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)}},A=Date.now||function(){return+new Date},B=function(a,b){function c(){}c.prototype=b.prototype;a.kb=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.bf=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 la=function(a,b){this.level=a;this.index=b};var ma=function(a,b){return[{w:b.w,h:b.h}]},na=function(){return!0};var oa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c},C=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},pa=function(a){return decodeURIComponent(a.replace(/\+/g," "))},xa=function(a){if(!qa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ra,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(sa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ta,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ua,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(va,
"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(wa,"&#0;"));return a},ra=/&/g,sa=/</g,ta=/>/g,ua=/"/g,va=/'/g,wa=/\x00/g,qa=/[\x00&<>"']/,ya=function(a){for(var b=0;2>b;b++){var c="\"'".charAt(b);if(a.charAt(0)==c&&a.charAt(a.length-1)==c)return a.substring(1,a.length-1)}return a},za=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a},Ba=function(a,b){var c=0;a=C(String(a)).split(".");b=C(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",g=b[e]||
"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;c=Aa(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||Aa(0==f[2].length,0==g[2].length)||Aa(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c},Aa=function(a,b){return a<b?-1:a>b?1:0},Ca=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b},Da=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},
Ea=function(a){var b=y(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 Fa=Array.prototype.indexOf?function(a,b,c){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(y(a))return y(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},Ga=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=y(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ha=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=y(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e},Ia=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=y(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ja=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=y(a)?a.split(""):a,f=0;f<d;f++)if(f in
e&&b.call(c,e[f],f,a))return!0;return!1},Ka=function(a,b,c){var d=0;Ga(a,function(a,f,g){b.call(c,a,f,g)&&++d},c);return d},La=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},Ma=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[]},Na=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ca(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}},Oa=function(a,b,c){return 2>=
arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Ra=function(a,b){a.sort(b||Pa)},Pa=function(a,b){return a>b?1:a<b?-1:0};var D=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Sa=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Ta=function(a){var b=0,c;for(c in a)b++;return b},Ua=function(a){for(var b in a)return a[b]},Va=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Wa=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Xa=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},Ya=function(a){for(var b in a)return!1;return!0},Za=function(a,b){b in a&&
delete a[b]},$a=function(a){var b={},c;for(c in a)b[c]=a[c];return b},ab="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),bb=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<ab.length;f++)c=ab[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},cb=function(a){var b=arguments.length;if(1==b&&x(arguments[0]))return cb.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 db=/<[^>]*>|&[^;]+;/g,eb=function(a,b){return b?a.replace(db,""):a},fb=/[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,gb=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]/,ib=/^http:\/\/.*/,jb=/\s+/,kb=/[\d\u06f0-\u06f9]/;var lb;a:{var nb=t.navigator;if(nb){var ob=nb.userAgent;if(ob){lb=ob;break a}}lb=""}var E=function(a){return-1!=lb.indexOf(a)};var pb=function(){return E("iPhone")&&!E("iPod")&&!E("iPad")};var qb=function(a){qb[" "](a);return a};qb[" "]=aa;var rb=function(a,b){try{return qb(a[b]),!0}catch(c){}return!1},tb=function(a,b){var c=sb;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var ub=E("Opera"),F=E("Trident")||E("MSIE"),vb=E("Edge"),wb=E("Gecko")&&!(-1!=lb.toLowerCase().indexOf("webkit")&&!E("Edge"))&&!(E("Trident")||E("MSIE"))&&!E("Edge"),xb=-1!=lb.toLowerCase().indexOf("webkit")&&!E("Edge"),yb=E("Android"),zb=pb(),Ab=E("iPad"),Bb=function(){var a=t.document;return a?a.documentMode:void 0},Cb;
a:{var Db="",Eb=function(){var a=lb;if(wb)return/rv\:([^\);]+)(\)|;)/.exec(a);if(vb)return/Edge\/([\d\.]+)/.exec(a);if(F)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(xb)return/WebKit\/(\S+)/.exec(a);if(ub)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Eb&&(Db=Eb?Eb[1]:"");if(F){var Fb=Bb();if(null!=Fb&&Fb>parseFloat(Db)){Cb=String(Fb);break a}}Cb=Db}var Gb=Cb,sb={},G=function(a){return tb(a,function(){return 0<=Ba(Gb,a)})},Hb;var Ib=t.document;
Hb=Ib&&F?Bb()||("CSS1Compat"==Ib.compatMode?parseInt(Gb,10):5):void 0;var Jb=!F||9<=Number(Hb);!wb&&!F||F&&9<=Number(Hb)||wb&&G("1.9.1");F&&G("9");var Kb=F||ub||xb;var Lb=function(a){var b=document;return y(a)?b.getElementById(a):a},Nb=function(a,b){D(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Mb.hasOwnProperty(d)?a.setAttribute(Mb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},Mb={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"},Pb=function(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!Jb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',xa(g.name),'"');if(g.type){f.push(' type="',xa(g.type),'"');var h={};bb(h,g);delete h.type;g=h}f.push(">");f=f.join("")}f=e.createElement(f);g&&(y(g)?f.className=g:x(g)?f.className=g.join(" "):Nb(f,g));2<d.length&&Ob(e,f,d);return f},Ob=function(a,b,c){function d(c){c&&b.appendChild(y(c)?a.createTextNode(c):c)}for(var e=
2;e<c.length;e++){var f=c[e];!ca(f)||ea(f)&&0<f.nodeType?d(f):Ga(Qb(f)?Ma(f):f,d)}},H=function(a){return document.createElement(String(a))},Rb=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},Sb=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},Qb=function(a){if(a&&"number"==typeof a.length){if(ea(a))return"function"==typeof a.item||"string"==typeof a.item;if(da(a))return"function"==typeof a.item}return!1};var Tb={De:"aspectRatio",Fe:"backgroundColor",Ge:"color",He:"displayType",Te:"padding",Xe:"paddingTop",Ve:"paddingLeft",We:"paddingRight",Ue:"paddingBottom",af:"weight",Re:"minWeight",Qe:"minHeight",Se:"minWidth",Oe:"maxHeight",Pe:"maxWidth",Ye:"priority",FONT:"font",Ie:"fontLevel",Je:"font_level",Le:"imageDisplayMode",Me:"imageEnlargeRatio",Ee:"autoShrink",Ke:"horizontalFill",$e:"verticalFill",Ne:"lineHeight",Ze:"truncate"},Ub=/\s+/,Vb=/,\s*/,Wb=/^[A-Za-z]/,Xb={priority:1,weight:1/38,minWeight:.02,
displayType:"textButton",paddingLeft:"5%",paddingTop:"5%",paddingRight:"5%",paddingBottom:"5%",minWidth:"75",minHeight:"20",aspectRatio:3.75},Yb={priority:1,weight:1/38,minWeight:.02,displayType:"nessieButton",minWidth:"30",minHeight:"30",aspectRatio:1},Zb={autoShrink:"false",priority:2,weight:.03125,minWeight:.015},$b={minWidth:"1",minHeight:"1",minWeight:.16},ac={font_level:1},bc={font_level:1,minWeight:.12},cc={font_level:2},dc={priority:2,weight:1,font_level:3,truncate:"url"};var ec=function(a,b){this.ua=a;this.s=b.type;this.nd=b.node_id;this.aa=null!=b.field_name?b.field_name:this.ua;this.ac=b.component_type||this.s;"any"==this.s&&(this.ne=b.renderer||ma,this.rc=b.need_render||na);this.I={};b.font_color_id&&(this.I.color=b.font_color_id);b.background_color_ids&&(this.I.backgroundColor=b.background_color_ids);D(Tb,function(a){null!=b[a]&&(this.I[a]=b[a])},this)};ec.prototype.getName=function(){return this.ua};
var I=function(a){if(!a.K){var b=Lb(a.nd);if(!b)throw Error("Can not found node for element: "+a.ua);if("DIV"!=b.tagName)throw Error("Layout element must be DIV: "+a.ua);a.K=b}return a.K};ec.prototype.la=function(){return this.ne};var J=function(a,b){this.b=a;this.g=b},fc=new J(0,0),gc=new J(468,60),hc=new J(120,600),ic=new J(728,90),jc=new J(728,250),kc=new J(300,250),mc=new J(200,200),nc=new J(250,250),oc=new J(336,280),pc=new J(160,600),qc=new J(300,600),rc=new J(480,70),sc=new J(970,90),tc=new J(320,50),uc=new J(360,50),vc=new J(375,50),wc=new J(320,100),xc=function(a){return a.b*a.g},yc=function(a){return 0==a.g?NaN:a.b/a.g};J.prototype.xa=function(){return{w:this.b,h:this.g}};
J.prototype.toString=function(){return this.b+"x"+this.g};J.prototype.ub=function(a){return this.b==a.b&&this.g==a.g};var zc=function(a,b){b=Math.min(b.b/a.b,b.g/a.g);return 1<b?a:new J(Math.floor(a.b*b),Math.floor(a.g*b))};var L=function(a,b){return a.google_template_data.adData[0][b]},Ac=function(a,b){return"true"==L(a,b)},Bc=function(a){a=L(a,"siriusFlagUnclickableBorderSize");if(y(a))if("["==a.charAt(0)&&"]"==a.charAt(a.length-1)){for(var b=a.slice(1,-1).split(","),c=[],d=0;d<b.length;++d)c.push(isNaN(b[d])?0:parseInt(b[d],10));if(4==c.length)return c}else return a=isNaN(a)?0:parseInt(a,10),[a,a,a,a];if("number"==typeof a)return a=parseInt(a,10),[a,a,a,a];if(x(a)){c=[];for(d=0;d<a.length;++d)"number"==typeof a[d]&&
c.push(parseInt(a[d],10));if(4==c.length)return c}return[0,0,0,0]},Cc=function(a){a=parseFloat(L(a,"siriusFlagSrReportRatio"));return isNaN(a)?.1:a},Dc=function(a){return Ac(a,"siriusFlagEnableVariationRendering")},Ec=function(a){a=parseInt(L(a,"siriusFlagRenderingDelayMs"),10);return isNaN(a)?0:a};var M=function(a){return a.force_google_width&&a.force_google_height?new J(a.force_google_width,a.force_google_height):new J(a.google_width,a.google_height)},Fc=function(a){return a.google_template_data.adData},Gc=function(a,b){a=a.google_template_data.rendering_settings;if("object"!=ba(a))return null;b=a[b];return y(b)?b:null},N=function(a,b){a=Fc(a)[0][b];if(y(a)||null==a)return a;throw Error("Gets non string value from: "+b);},Hc=function(a){var b=Gc(a,"format");y(b)||(b=N(a,"format"));return b},
Ic=function(a){return"true"==Gc(a,"octagonSdkRequest")},Jc=function(a){return"true"!=Gc(a,"rtl")?!1:"true"==Gc(a,"enableRtl")};var Kc=!F||9<=Number(Hb),Lc=F&&!G("9");!xb||G("528");wb&&G("1.9b")||F&&G("8")||ub&&G("9.5")||xb&&G("528");wb&&!G("8")||F&&G("9");var Mc=function(){this.Za=this.Za;this.Ea=this.Ea};Mc.prototype.Za=!1;Mc.prototype.Qc=function(){this.Za||(this.Za=!0,this.ha())};Mc.prototype.ha=function(){if(this.Ea)for(;this.Ea.length;)this.Ea.shift()()};var Nc=function(a){a&&"function"==typeof a.Qc&&a.Qc()};var Oc=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Qa=!1;this.wd=!0};Oc.prototype.preventDefault=function(){this.defaultPrevented=!0;this.wd=!1};var Pc=function(a,b){Oc.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.Uc=this.state=null;if(a){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?wb&&(rb(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:
"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;null===d?(this.offsetX=xb||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=xb||void 0!==a.offsetY?a.offsetY:a.layerY,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!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=
a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.Uc=a;a.defaultPrevented&&this.preventDefault()}};B(Pc,Oc);Pc.prototype.preventDefault=function(){Pc.kb.preventDefault.call(this);var a=this.Uc;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Lc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Qc="closure_listenable_"+(1E6*Math.random()|0),Rc=function(a){return!(!a||!a[Qc])},Sc=0;var Tc=function(a,b,c,d,e){this.listener=a;this.Lb=null;this.src=b;this.type=c;this.capture=!!d;this.Bb=e;this.key=++Sc;this.Ra=this.qb=!1},Uc=function(a){a.Ra=!0;a.listener=null;a.Lb=null;a.src=null;a.Bb=null};var Vc=function(a){this.src=a;this.L={};this.nb=0};Vc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.L[f];a||(a=this.L[f]=[],this.nb++);var g=Wc(a,b,d,e);-1<g?(b=a[g],c||(b.qb=!1)):(b=new Tc(b,this.src,f,!!d,e),b.qb=c,a.push(b));return b};Vc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.L))return!1;var e=this.L[a];b=Wc(e,b,c,d);return-1<b?(Uc(e[b]),Array.prototype.splice.call(e,b,1),0==e.length&&(delete this.L[a],this.nb--),!0):!1};
var Xc=function(a,b){var c=b.type;if(c in a.L){var d=a.L[c],e=Fa(d,b),f;(f=0<=e)&&Array.prototype.splice.call(d,e,1);f&&(Uc(b),0==a.L[c].length&&(delete a.L[c],a.nb--))}};Vc.prototype.Bc=function(a){a=a&&a.toString();var b=0,c;for(c in this.L)if(!a||c==a){for(var d=this.L[c],e=0;e<d.length;e++)++b,Uc(d[e]);delete this.L[c];this.nb--}return b};Vc.prototype.ab=function(a,b,c,d){a=this.L[a.toString()];var e=-1;a&&(e=Wc(a,b,c,d));return-1<e?a[e]:null};
var Wc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Ra&&f.listener==b&&f.capture==!!c&&f.Bb==d)return e}return-1};var Yc="closure_lm_"+(1E6*Math.random()|0),Zc={},$c=0,ad=function(a,b,c,d,e){if(x(b)){for(var f=0;f<b.length;f++)ad(a,b[f],c,d,e);return null}c=bd(c);return Rc(a)?a.listen(b,c,d,e):cd(a,b,c,!1,d,e)},cd=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=!!e,h=dd(a);h||(a[Yc]=h=new Vc(a));c=h.add(b,c,d,e,f);if(c.Lb)return c;d=ed();c.Lb=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,g);else if(a.attachEvent)a.attachEvent(fd(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");
$c++;return c},ed=function(){var a=gd,b=Kc?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},hd=function(a,b,c,d,e){if(x(b)){for(var f=0;f<b.length;f++)hd(a,b[f],c,d,e);return null}c=bd(c);return Rc(a)?a.dd(b,c,d,e):cd(a,b,c,!0,d,e)},id=function(a,b,c,d,e){if(x(b))for(var f=0;f<b.length;f++)id(a,b[f],c,d,e);else c=bd(c),Rc(a)?a.unlisten(b,c,d,e):a&&(a=dd(a))&&(b=a.ab(b,c,!!d,e))&&jd(b)},jd=function(a){if("number"!=typeof a&&a&&!a.Ra){var b=
a.src;if(Rc(b))Xc(b.ia,a);else{var c=a.type,d=a.Lb;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(fd(c),d);$c--;(c=dd(b))?(Xc(c,a),0==c.nb&&(c.src=null,b[Yc]=null)):Uc(a)}}},fd=function(a){return a in Zc?Zc[a]:Zc[a]="on"+a},ld=function(a,b,c,d){var e=!0;if(a=dd(a))if(b=a.L[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.Ra&&(f=kd(f,d),e=e&&!1!==f)}return e},kd=function(a,b){var c=a.listener,d=a.Bb||a.src;a.qb&&jd(a);return c.call(d,
b)},gd=function(a,b){if(a.Ra)return!0;if(!Kc){if(!b)a:{b=["window","event"];for(var c=t,d;d=b.shift();)if(null!=c[d])c=c[d];else{b=null;break a}b=c}d=b;b=new Pc(d,this);c=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.currentTarget;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-1;!b.Qa&&0<=e;e--){b.currentTarget=d[e];var f=ld(d[e],a,!0,b),c=c&&f}for(e=0;!b.Qa&&e<d.length;e++)b.currentTarget=
d[e],f=ld(d[e],a,!1,b),c=c&&f}return c}return kd(a,new Pc(b,this))},dd=function(a){a=a[Yc];return a instanceof Vc?a:null},md="__closure_events_fn_"+(1E9*Math.random()>>>0),bd=function(a){if(da(a))return a;a[md]||(a[md]=function(b){return a.handleEvent(b)});return a[md]};var od=function(a,b,c){if(y(b))(b=nd(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=nd(c,d);f&&(c.style[f]=e)}},pd={},nd=function(a,b){var c=pd[b];if(!c){var d=Da(b),c=d;void 0===a.style[d]&&(d=(xb?"Webkit":wb?"Moz":F?"ms":ub?"O":null)+Ea(d),void 0!==a.style[d]&&(c=d));pd[b]=c}return c},qd=function(a,b){var c=9==a.nodeType?a:a.ownerDocument||a.document;return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};var rd=function(a,b){this.jd=a;this.od=b||{}},sd=function(a,b){Oc.call(this,a.jd,b);this.vc=a.od||{}};B(sd,Oc);var td="StopIteration"in t?t.StopIteration:{message:"StopIteration",stack:""},ud=function(){};ud.prototype.next=function(){throw td;};ud.prototype.Bd=function(){return this};var vd=function(a,b){this.da={};this.o=[];this.Sb=this.B=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 a&&this.addAll(a)};r=vd.prototype;r.Vc=function(){return this.B};r.ba=function(){wd(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.da[this.o[b]]);return a};r.ta=function(){wd(this);return this.o.concat()};r.Xa=function(a){return xd(this.da,a)};
r.ub=function(a,b){if(this===a)return!0;if(this.B!=a.Vc())return!1;b=b||yd;wd(this);for(var c,d=0;c=this.o[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var yd=function(a,b){return a===b};vd.prototype.cb=function(){return 0==this.B};vd.prototype.remove=function(a){return xd(this.da,a)?(delete this.da[a],this.B--,this.Sb++,this.o.length>2*this.B&&wd(this),!0):!1};
var wd=function(a){if(a.B!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];xd(a.da,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.B!=a.o.length){for(var e={},c=b=0;b<a.o.length;)d=a.o[b],xd(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}};r=vd.prototype;r.get=function(a,b){return xd(this.da,a)?this.da[a]:b};r.set=function(a,b){xd(this.da,a)||(this.B++,this.o.push(a),this.Sb++);this.da[a]=b};
r.addAll=function(a){var b;a instanceof vd?(b=a.ta(),a=a.ba()):(b=Wa(a),a=Va(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};r.forEach=function(a,b){for(var c=this.ta(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};r.clone=function(){return new vd(this)};r.xa=function(){wd(this);for(var a={},b=0;b<this.o.length;b++){var c=this.o[b];a[c]=this.da[c]}return a};
r.Bd=function(a){wd(this);var b=0,c=this.Sb,d=this,e=new ud;e.next=function(){if(c!=d.Sb)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw td;var e=d.o[b++];return a?e:d.da[e]};return e};var xd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var zd=function(a){if(a.ba&&"function"==typeof a.ba)return a.ba();if(y(a))return a.split("");if(ca(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Va(a)},Ad=function(a){if(a.ta&&"function"==typeof a.ta)return a.ta();if(!a.ba||"function"!=typeof a.ba){if(ca(a)||y(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Wa(a)}},Bd=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(ca(a)||y(a))Ga(a,b,c);else for(var d=Ad(a),e=zd(a),f=e.length,
g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};var Dd=function(a,b,c,d,e,f,g){var h="";a&&(h+=a+":");c&&(h+="//",b&&(h+=b+"@"),h+=c,d&&(h+=":"+d));e&&(h+=e);f&&(h+="?"+f);g&&(h+="#"+g);return h},Ed=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Fd=function(a){return a?decodeURI(a):a},Gd=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?pa(f):"")}}},Hd=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("")},Id=function(a,b,c){if(x(b))for(var d=0;d<b.length;d++)Id(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))},Jd=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1},Kd=/#|$/,Ld=function(a,
b){var c=a.search(Kd),d=Jd(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return pa(a.substr(d,e-d))},Md=/[?&]($|#)/;var O=function(a,b){this.$=this.Ia=this.va="";this.Pa=null;this.Aa=this.X="";this.V=this.Zd=!1;var c;a instanceof O?(this.V=u(b)?b:a.V,Nd(this,a.va),c=a.Ia,P(this),this.Ia=c,c=a.$,P(this),this.$=c,Od(this,a.Pa),c=a.X,P(this),this.X=c,Pd(this,a.R.clone()),a=a.Aa,P(this),this.Aa=a):a&&(c=String(a).match(Ed))?(this.V=!!b,Nd(this,c[1]||"",!0),a=c[2]||"",P(this),this.Ia=Qd(a),a=c[3]||"",P(this),this.$=Qd(a,!0),Od(this,c[4]),a=c[5]||"",P(this),this.X=Qd(a,!0),Pd(this,c[6]||"",!0),a=c[7]||"",P(this),this.Aa=
Qd(a)):(this.V=!!b,this.R=new R(null,0,this.V))};O.prototype.toString=function(){var a=[],b=this.va;b&&a.push(Rd(b,Sd,!0),":");var c=this.$;if(c||"file"==b)a.push("//"),(b=this.Ia)&&a.push(Rd(b,Sd,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Pa,null!=c&&a.push(":",String(c));if(c=this.X)this.$&&"/"!=c.charAt(0)&&a.push("/"),a.push(Rd(c,"/"==c.charAt(0)?Td:Ud,!0));(c=this.R.toString())&&a.push("?",c);(c=this.Aa)&&a.push("#",Rd(c,Vd));return a.join("")};
O.prototype.resolve=function(a){var b=this.clone(),c=!!a.va;c?Nd(b,a.va):c=!!a.Ia;if(c){var d=a.Ia;P(b);b.Ia=d}else c=!!a.$;c?(d=a.$,P(b),b.$=d):c=null!=a.Pa;d=a.X;if(c)Od(b,a.Pa);else if(c=!!a.X){if("/"!=d.charAt(0))if(this.$&&!this.X)d="/"+d;else{var e=b.X.lastIndexOf("/");-1!=e&&(d=b.X.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),f=[],g=0;g<e.length;){var h=e[g++];"."==h?d&&g==e.length&&f.push(""):
".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?(P(b),b.X=d):c=""!==a.R.toString();c?Pd(b,a.R.clone()):c=!!a.Aa;c&&(a=a.Aa,P(b),b.Aa=a);return b};O.prototype.clone=function(){return new O(this)};
var Nd=function(a,b,c){P(a);a.va=c?Qd(b,!0):b;a.va&&(a.va=a.va.replace(/:$/,""))},Od=function(a,b){P(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Pa=b}else a.Pa=null},Pd=function(a,b,c){P(a);b instanceof R?(a.R=b,a.R.Dc(a.V)):(c||(b=Rd(b,Wd)),a.R=new R(b,0,a.V))},P=function(a){if(a.Zd)throw Error("Tried to modify a read-only Uri");};O.prototype.Dc=function(a){this.V=a;this.R&&this.R.Dc(a);return this};
var Qd=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Rd=function(a,b,c){return y(a)?(a=encodeURI(a).replace(b,Xd),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Xd=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Sd=/[#\/\?@]/g,Ud=/[\#\?:]/g,Td=/[\#\?]/g,Wd=/[\#\?@]/g,Vd=/#/g,R=function(a,b,c){this.B=this.F=null;this.T=a||null;this.V=!!c},Yd=function(a){a.F||(a.F=new vd,a.B=0,a.T&&Gd(a.T,function(b,c){a.add(pa(b),
c)}))};r=R.prototype;r.Vc=function(){Yd(this);return this.B};r.add=function(a,b){Yd(this);this.T=null;a=Zd(this,a);var c=this.F.get(a);c||this.F.set(a,c=[]);c.push(b);this.B+=1;return this};r.remove=function(a){Yd(this);a=Zd(this,a);return this.F.Xa(a)?(this.T=null,this.B-=this.F.get(a).length,this.F.remove(a)):!1};r.cb=function(){Yd(this);return 0==this.B};r.Xa=function(a){Yd(this);a=Zd(this,a);return this.F.Xa(a)};
r.ta=function(){Yd(this);for(var a=this.F.ba(),b=this.F.ta(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};r.ba=function(a){Yd(this);var b=[];if(y(a))this.Xa(a)&&(b=La(b,this.F.get(Zd(this,a))));else{a=this.F.ba();for(var c=0;c<a.length;c++)b=La(b,a[c])}return b};r.set=function(a,b){Yd(this);this.T=null;a=Zd(this,a);this.Xa(a)&&(this.B-=this.F.get(a).length);this.F.set(a,[b]);this.B+=1;return this};
r.get=function(a,b){a=a?this.ba(a):[];return 0<a.length?String(a[0]):b};var $d=function(a,b,c){a.remove(b);0<c.length&&(a.T=null,a.F.set(Zd(a,b),Ma(c)),a.B+=c.length)};R.prototype.toString=function(){if(this.T)return this.T;if(!this.F)return"";for(var a=[],b=this.F.ta(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.ba(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.T=a.join("&")};
R.prototype.clone=function(){var a=new R;a.T=this.T;this.F&&(a.F=this.F.clone(),a.B=this.B);return a};var Zd=function(a,b){b=String(b);a.V&&(b=b.toLowerCase());return b};R.prototype.Dc=function(a){a&&!this.V&&(Yd(this),this.T=null,this.F.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),$d(this,b,a))},this));this.V=a};R.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Bd(arguments[b],function(a,b){this.add(b,a)},this)};var ae,be,ce,de,ee=function(){return t.navigator?t.navigator.userAgent:""},fe=function(a){return-1!=ee().indexOf(a)},ge=fe("(iPad")||fe("(iPod")||fe("(iPhone"),he=fe("Android"),ie=fe("MSIE")||fe("IEMobile")||fe("Windows Phone"),je=function(){if(!u(ae)){var a=/CPU\s+(?:(?:i?OS)|(?:iPhone)|(?:iPhone\s+OS))\s+([0-9_|\.]+)/.exec(ee());ae=a&&2==a.length?a[1].replace(/_/g,"."):""}return ae},ke=function(){u(ce)||(ce=fe("afma-sdk-a")?!0:!1);return ce},le=function(a){var b;u(de)||(de=ke()?(b=ee().match(/afma\-sdk\-a\-v\.?([\d+\.]+)/))?
b[1]:"":"");return(b=de)?0<=Ba(b,a):!1};var me=function(a){Mc.call(this);this.kc=a;this.o={}};B(me,Mc);var ne=[];me.prototype.listen=function(a,b,c,d){x(b)||(b&&(ne[0]=b.toString()),b=ne);for(var e=0;e<b.length;e++){var f=ad(a,b[e],c||this.handleEvent,d||!1,this.kc||this);if(!f)break;this.o[f.key]=f}return this};me.prototype.dd=function(a,b,c,d){return oe(this,a,b,c,d)};var oe=function(a,b,c,d,e,f){if(x(c))for(var g=0;g<c.length;g++)oe(a,b,c[g],d,e,f);else{b=hd(b,c,d||a.handleEvent,e,f||a.kc||a);if(!b)return a;a.o[b.key]=b}return a};
me.prototype.unlisten=function(a,b,c,d,e){if(x(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.kc||this,c=bd(c),d=!!d,b=Rc(a)?a.ab(b,c,d,e):a?(a=dd(a))?a.ab(b,c,d,e):null:null,b&&(jd(b),delete this.o[b.key]);return this};me.prototype.Bc=function(){D(this.o,function(a,b){this.o.hasOwnProperty(b)&&jd(a)},this);this.o={}};me.prototype.ha=function(){me.kb.ha.call(this);this.Bc()};
me.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var pe=function(){Mc.call(this);this.ia=new Vc(this);this.Cd=this;this.wc=null};B(pe,Mc);pe.prototype[Qc]=!0;r=pe.prototype;r.addEventListener=function(a,b,c,d){ad(this,a,b,c,d)};r.removeEventListener=function(a,b,c,d){id(this,a,b,c,d)};
r.dispatchEvent=function(a){var b,c=this.wc;if(c)for(b=[];c;c=c.wc)b.push(c);var c=this.Cd,d=a.type||a;if(y(a))a=new Oc(a,c);else if(a instanceof Oc)a.target=a.target||c;else{var e=a;a=new Oc(d,c);bb(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.Qa&&0<=g;g--)f=a.currentTarget=b[g],e=qe(f,d,!0,a)&&e;a.Qa||(f=a.currentTarget=c,e=qe(f,d,!0,a)&&e,a.Qa||(e=qe(f,d,!1,a)&&e));if(b)for(g=0;!a.Qa&&g<b.length;g++)f=a.currentTarget=b[g],e=qe(f,d,!1,a)&&e;return e};
r.ha=function(){pe.kb.ha.call(this);this.ia&&this.ia.Bc(void 0);this.wc=null};r.listen=function(a,b,c,d){return this.ia.add(String(a),b,!1,c,d)};r.dd=function(a,b,c,d){return this.ia.add(String(a),b,!0,c,d)};r.unlisten=function(a,b,c,d){return this.ia.remove(String(a),b,c,d)};
var qe=function(a,b,c,d){b=a.ia.L[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.Ra&&g.capture==c){var h=g.listener,k=g.Bb||g.src;g.qb&&Xc(a.ia,g);e=!1!==h.call(k,d)&&e}}return e&&0!=d.wd};pe.prototype.ab=function(a,b,c,d){return this.ia.ab(String(a),b,c,d)};var re=function(a,b){pe.call(this);this.Eb=a||1;this.Ta=b||t;this.Xb=z(this.ve,this);this.oc=A()};B(re,pe);r=re.prototype;r.enabled=!1;r.ga=null;r.ve=function(){if(this.enabled){var a=A()-this.oc;0<a&&a<.8*this.Eb?this.ga=this.Ta.setTimeout(this.Xb,this.Eb-a):(this.ga&&(this.Ta.clearTimeout(this.ga),this.ga=null),this.dispatchEvent("tick"),this.enabled&&(this.ga=this.Ta.setTimeout(this.Xb,this.Eb),this.oc=A()))}};
r.start=function(){this.enabled=!0;this.ga||(this.ga=this.Ta.setTimeout(this.Xb,this.Eb),this.oc=A())};r.stop=function(){this.enabled=!1;this.ga&&(this.Ta.clearTimeout(this.ga),this.ga=null)};r.ha=function(){re.kb.ha.call(this);this.stop();delete this.Ta};var ve=function(){if(ie&&window.external&&"notify"in window.external)return new se;if(he&&window.googleAdsJsInterface&&"notify"in window.googleAdsJsInterface)try{return window.googleAdsJsInterface.notify("gmsg://mobileads.google.com/noop"),new te}catch(a){}return new ue},xe=function(){we||(we=ve());return we},we=null,ye=function(){};B(ye,Mc);
var ze=function(a){var b="gmsg://mobileads.google.com/"+a.jd,c=$a(a.od);c["google.afma.Notify_dt"]=(new Date).getTime();a={};for(var d in c)a[encodeURIComponent(String(d))]=c[d];var b=[b],e;for(e in a)Id(e,a[e],b);return Hd(b)},Ae=function(a,b){this.Tb=a;this.Pd=b||1;this.Cc=[];this.Nb=new re(this.Pd);this.Sd=new me(this);this.Sd.listen(this.Nb,"tick",this.qe);this.$d=!0};B(Ae,ye);
Ae.prototype.sendMessage=function(a){this.$d?(this.Cc.push(a),this.Nb.enabled||(a=this.Cc.shift(),this.Tb(a),this.Nb.start())):this.Tb(a)};Ae.prototype.qe=function(){var a=this.Cc.shift();a?this.Tb(a):this.Nb.stop()};var se=function(){};B(se,ye);se.prototype.sendMessage=function(a){a=ze(a);window.external.notify(a)};var ue=function(){Ae.call(this,this.re);this.Ca=null};B(ue,Ae);
ue.prototype.re=function(a){if(!this.Ca){var b=H("IFRAME");b.id="afma-notify-"+(new Date).getTime();b.style.display="none";this.Ca=b}a=ze(a);this.Ca.src=a;this.Ca.parentNode||document.body.appendChild(this.Ca)};ue.prototype.ha=function(){Sb(this.Ca);this.Ca=null;ue.kb.ha.call(this)};var te=function(){};B(te,ye);te.prototype.sendMessage=function(a){a=ze(a);window.googleAdsJsInterface.notify(a);window.googleAdsJsInterface.DEBUG&&console.log(a)};var Be=null,Ce=function(){};Ce.prototype.fe=aa;Ce.prototype.zc=function(a){this.fe(a)};var S=function(){pe.call(this);this.lb=xe();Be||(Be=new Ce);this.lb=xe();var a=ka(Nc,this.lb);this.Za?u(void 0)?a.call(void 0):a():(this.Ea||(this.Ea=[]),this.Ea.push(u(void 0)?z(a,void 0):a));this.Da={}};B(S,pe);S.prototype.sendMessage=function(a,b){var c;y(a)?c=new rd(a,b):a instanceof rd&&(c=a);"loading"==document.readyState?(a=z(this.lb.sendMessage,this.lb,c),hd(t,"DOMContentLoaded",a,!1,this)):this.lb.sendMessage(c)};
S.prototype.zc=function(a,b){"onshow"==a&&"loading"==document.readyState?(a=z(De,t,a,b),hd(t,"DOMContentLoaded",a)):this.dispatchEvent(new sd(new rd(a,b),this))};S.prototype.Gc=function(a,b,c){c=z(c,b);var d=z(function(a){c(a.type,a.vc)},b);this.listen(a,d);this.Da[a]||(this.Da[a]={});this.Da[a][b]=d};S.prototype.rd=function(a,b){this.Da[a]&&this.Da[a][b]&&(this.unlisten(a,this.Da[a][b]),delete this.Da[a][b])};
var Fe=function(a,b){t.AFMA_Communicator?t.AFMA_Communicator.sendMessage(a,b):Ee(a,b)},Ee=function(a,b){"loading"==document.readyState?(a=z(Ee,null,a,b),hd(t,"DOMContentLoaded",a,!1)):(a=new rd(a,b),xe().sendMessage(a))},De=function(a,b){t.AFMA_Communicator.zc(a,b)},Ge=function(a,b,c,d){t.AFMA_Communicator.removeEventListener(a,b,c,d)},He=function(a,b,c,d){t.AFMA_Communicator.addEventListener(a,b,c,d)},Ie=function(a,b,c){t.AFMA_Communicator.Gc(a,b,c)},Je=function(a,b){t.AFMA_Communicator.rd(a,b)};
if(!t.AFMA_Communicator){w("AFMA_AddEventListener",He,t);w("AFMA_RemoveEventListener",Ge,t);w("AFMA_AddObserver",Ie,t);w("AFMA_RemoveObserver",Je,t);w("AFMA_ReceiveMessage",De,t);w("AFMA_SendMessage",Fe,t);var Ke=new S;w("AFMA_Communicator",Ke,t);w("AFMA_Communicator.addEventListener",S.prototype.addEventListener,void 0);w("AFMA_Communicator.removeEventListener",S.prototype.removeEventListener,void 0);w("AFMA_Communicator.addObserver",S.prototype.Gc,void 0);w("AFMA_Communicator.removeObserver",S.prototype.rd,
void 0);w("AFMA_Communicator.receiveMessage",S.prototype.zc,void 0);w("AFMA_Communicator.sendMessage",S.prototype.sendMessage,void 0)};var Le=-1;He("onshow",function(){Le=A()});He("onhide",function(){Le=-1});var Me=function(a,b){this.j=a;this.Xd=1==b},Ne=-1;
Me.prototype.accept=function(a,b){var c=A(),d;d=L(this.j,"siriusFlagIntentfulClickDelay");d=isNaN(d)?1E3:parseInt(d,10);var e=Le;return 0<e&&c-e<d||c-Ne<d||Ac(this.j,"siriusFlagEnableNewBorderProtection")&&(c=b?a.clientX-b.getBoundingClientRect().left:a.clientX,a=b?a.clientY-b.getBoundingClientRect().top:a.clientY,!this.Xd&&(e=M(this.j),d=b?b.getBoundingClientRect().width:e.b,b=b?b.getBoundingClientRect().height:e.g,e=Bc(this.j),c<=e[0]||c>=d-e[2]||a<=e[1]||a>=b-e[3])||"interstitial_mb"==Hc(this.j)&&
(b=L(this.j,"siriusFlagCloseButtonClickProtectorSize"),b=isNaN(b)?100:parseInt(b,10),c<=b&&a<=b))?!1:!0};var Oe=function(a,b){od(a,{position:"absolute",top:b.A+"px",left:b.v+"px",width:b.b+"px",height:b.g+"px"})};var Qe=function(a){Pe();this.enabled=Math.random()<a},Pe=t.performance&&t.performance.now?z(t.performance.now,t.performance):A;Qe.prototype.install=function(a){a=a||window;a.google_js_reporting_queue=a.google_js_reporting_queue||[]};var Se=function(){var a=Re;try{return!!a&&null!=a.location.href&&rb(a,"foo")}catch(b){return!1}},Te=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};var Ue=function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,b)}catch(c){}return a}(),Ve=function(a,b,c){a.addEventListener?a.addEventListener(b,c,Ue?void 0:!1):a.attachEvent&&a.attachEvent("on"+b,c)},We=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,Ue?void 0:!1):a.detachEvent&&a.detachEvent("on"+b,c)};var Xe=function(a,b,c,d,e){this.gd=c||4E3;this.gb=a||"&";this.Fd=b||",$";this.Rb=u(d)?d:"trn";this.xe=e||null;this.Ed=!1;this.Wb={};this.ee=0;this.ob=[]},$e=function(a,b,c,d){b=b+"//"+c+d;var e=Ye(a)-d.length-0;if(0>e)return"";a.ob.sort(function(a,b){return a-b});d=null;c="";for(var f=0;f<a.ob.length;f++)for(var g=a.ob[f],h=a.Wb[g],k=0;k<h.length;k++){if(!e){d=null==d?g:d;break}var l=Ze(h[k],a.gb,a.Fd);if(l){l=c+l;if(e>=l.length){e-=l.length;b+=l;c=a.gb;break}else a.Ed&&(c=e,l[c-1]==a.gb&&--c,b+=
l.substr(0,c),c=a.gb,e=0);d=null==d?g:d}}f="";a.Rb&&null!=d&&(f=c+a.Rb+"="+(a.xe||d));return b+f+""},Ye=function(a){if(!a.Rb)return a.gd;var b=1,c;for(c in a.Wb)b=c.length>b?c.length:b;return a.gd-a.Rb.length-b-a.gb.length-1},Ze=function(a,b,c,d,e){var f=[];Te(a,function(a,h){(a=af(a,b,c,d,e))&&f.push(h+"="+a)});return f.join(b)},af=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],g=0;g<a.length;g++)f.push(af(a[g],
b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Ze(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};var df=function(a){var b=bf;if(1>b.te)try{var c;a instanceof Xe?c=a:(c=new Xe,Te(a,function(a,b){var d=c,e=d.ee++,f={};f[b]=a;a=[f];d.ob.push(e);d.Wb[e]=a}));var d=$e(c,b.le,b.$,b.X+"html5-mon&");d&&cf(t,d)}catch(e){}},cf=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");if(c){var e=function(a){c(a);We(d,"load",e);We(d,"error",e)};Ve(d,"load",e);Ve(d,"error",e)}d.src=b;a.google_image_requests.push(d)};var ef=E("Firefox"),ff=pb()||E("iPod"),gf=E("iPad"),hf=E("Android")&&!((E("Chrome")||E("CriOS"))&&!E("Edge")||E("Firefox")||E("Opera")||E("Silk"));var jf=document,kf=window;var lf=!!window.google_async_iframe_id,Re=lf&&window.parent||window;var bf,mf=new Qe(1);bf=new function(){this.le="http:"===kf.location.protocol?"http:":"https:";this.$="pagead2.googlesyndication.com";this.X="/pagead/gen_204?id=";this.te=Math.random()};mf.install(function(){if(lf&&!Se()){var a="."+jf.domain;try{for(;2<a.split(".").length&&!Se();)jf.domain=a=a.substr(a.indexOf(".")+1),Re=window.parent}catch(b){}Se()||(Re=window)}return Re}());var of=function(a,b){var c=b||nf;return function(){var b=this||t,b=b.closure_memoize_cache_||(b.closure_memoize_cache_={}),e=c(a[fa]||(a[fa]=++ga),arguments);return b.hasOwnProperty(e)?b[e]:b[e]=a.apply(this,arguments)}},nf=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};var pf=["googleads.g.doubleclick.net","adclick.g.doubleclick.net","www.googleadservices.com","adclick.googleadservices.com"];var qf=["destinationUrl","displayUrl"],rf="googlesyndication.com googleadservices.com googleusercontent.com doubleclick.net youtube.com googleapis.com gstatic.com google-analytics.com".split(" "),sf=function(a,b){return{Nd:a.creativeId||-1,ue:a.templateId||-1,experimentId:a.experimentId,sd:a.reportErrors||!1,td:a.reportPerf||!1,oe:b,cf:a.frameTiming||!1,ae:a.layoutPath,Yc:a.gqi,pd:a.qqi}},tf=of(function(a,b,c,d){d=d||{};d.i=a.Nd;d.t=a.ue;d.c=b;d.m=c;d.lp=a.ae;a.experimentId&&(d.e=a.experimentId);
a.Yc&&(d.gqi=a.Yc);a.pd&&(d.qqi=a.pd);a.oe(d)}),uf=function(a,b){return function(c,d,e){var f={};e&&(f.jsl=e);d&&(f.jsf=d);tf(a,"j",c,f);b&&b(c,d,e)}},vf=function(a){var b=a.match(Ed);return Ja(rf,function(a){return oa(b[3],a)})?a:Dd(b[1],b[2],b[3],b[4],null,null,null)},xf=function(a,b,c){var d={},e=0,f=function(a,b,c,f){d["a"+e]=a;null!=b&&(d["f"+e]=b);null!=c&&null!=f&&(d["s"+e]=c,d["d"+e]=f);e++};0!=b&&f("layout","layout",0,b.toFixed(4));(b=window.performance&&window.performance.timing)&&f("http"+
("http:"===kf.location.protocol?"":"s"),"layout_html",0,(b.responseEnd-b.navigationStart).toFixed(4));window.performance&&window.performance.getEntries&&(Ga(window.performance.getEntries(),function(b){var d=Xa(c,function(a){return b.name&&oa(b.name,a)});d&&Za(c,d);if(wf(b.name)&&a.td){var e=0<b.startTime?b.startTime.toFixed(4):null,g=0<b.responseEnd?(b.responseEnd-b.startTime).toFixed(4):null;f(vf(b.name),d,e,g)}}),(a.td||a.sd)&&D(c,function(a,b){f(a,b,-1,-1)}));0<e&&tf(a,"p","",d)},yf=function(a){return Sa(a,
function(a,c){return y(a)&&wf(a)&&!(0<=Fa(qf,c))})},wf=function(a){var b;if(b=/^(https?:)?\/\//.test(a))a?(b=Fd(a.match(Ed)[5]||null))?(a=a?(a=Fd(a.match(Ed)[3]||null))?0<=Fa(pf,a):!1:!1,b=a&&-1!=b.indexOf("/aclk")):b=!1:b=!1,b=!b;return b},zf=function(a,b,c,d,e){var f=z(Function.prototype.apply,b,c,Array.prototype.slice.call(arguments,3));if(d&&d.monitoring){var g=sf(d.monitoring,a),h=d.monitoring.loadTime?A()-d.monitoring.loadTime:0,k=g,l=yf(d.google_template_data.adData[0]);window.setTimeout(ka(xf,
k,h,l),1E4);if(g.sd){k=window.onerror;window.onerror=uf(g,k);try{f()}catch(n){f=uf(g,k);g=n.toString();n.name&&-1==g.indexOf(n.name)&&(g+=": "+n.name);n.message&&-1==g.indexOf(n.message)&&(g+=": "+n.message);if(n.stack){k=n.stack;h=g;try{-1==k.indexOf(h)&&(k=h+"\n"+k);for(var m;k!=m;)m=k,k=k.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");g=k.replace(/\n */g,"\n")}catch(p){g=h}}f(g,n.lineNumber,n.fileName)}}else f()}else f()},Af=function(a){df(a)};var Bf=null,Cf={},Df=function(a){Cf[a]=(Cf[a]||0)+1},Ef=function(){if(null!=Bf){var a=[];D(Cf,function(b,c){a.push(c+":"+b)});tf(Bf,"sr",String.prototype.concat(a))}Cf={}},Ff={},Gf=function(a,b,c){Ff[a]||(Ff[a]=!0,null!=Bf&&tf(Bf,"sr","ff:"+a+"_"+b+"x"+c))},Hf=function(a,b){null==document.querySelector('script[src$="html5/addata.js"]')?zf(Af,b,window,a):b()};var Jf=function(a,b){if(null==a||null==b)return null==a==(null==b);if(a.constructor!=Array&&a.constructor!=Object)throw Error("Invalid object type passed into JsProto.areObjectsEqual()");if(a===b)return!0;if(a.constructor!=b.constructor)return!1;for(var c in a)if(!(c in b&&If(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0},If=function(a,b){if(a===b||!(!0!==a&&1!==a||!0!==b&&1!==b)||!(!1!==a&&0!==a||!1!==b&&0!==b))return!0;if(a instanceof Object&&b instanceof Object){if(!Jf(a,b))return!1}else return!1;
return!0};var Kf=function(a){this.data=a||[]};Kf.prototype.ub=function(a){return Jf(this.data,a?a.data:null)};var Lf=function(a){this.data=a||[]};B(Lf,Kf);var Mf=function(){this.wb={}};Mf.hc=function(){return Mf.ad?Mf.ad:Mf.ad=new Mf};var Nf=function(a){var b=Mf.hc();return u(b.wb[a])?(a=b.wb[a],y(a)&&"true"===a.toLowerCase()||!0===a):!1};var Of=function(a,b,c){return a.replace("?","?"+encodeURIComponent(String(b))+"="+encodeURIComponent(String(c))+"&")};F&&G(8);var Pf=function(){throw Error("Do not instantiate directly");};Pf.prototype.Lc=null;Pf.prototype.toString=function(){return this.content};var Qf=function(){Pf.call(this)};B(Qf,Pf);(function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){a=new b(String(a));void 0!==d&&(a.Lc=d);return a}})(Qf);(function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){a=String(a);if(!a)return"";a=new b(a);void 0!==d&&(a.Lc=d);return a}})(Qf);var Rf=function(a){a=a instanceof O?a.clone():new O(a);a.R.extend({});cf(window,a.toString(),void 0)};var Sf;He("onshow",function(){});He("onhide",function(){});
var Tf=function(a){return a.match(/^\/\//)?"http:"+a:a},Uf=function(){var a=je();if(!(a&&0<=Ba(a,"8.0")))return!1;var b=window.location.toString(),a=Ld(b,"js"),b=Ld(b,"submodel");if(void 0==a||void 0==b)return!1;b=b.match(/([a-zA-Z]+)(\d+)/);if(void 0==b)return!1;a=b[1].toLowerCase();b=parseInt(b[2],10);return"ipad"==a&&4<=b||"iphone"==a&&6<=b||"ipod"==a&&7<=b},Vf=function(a){a=Tf(a);Fe("open",{a:"app",u:a})},Wf=function(a,b){var c;c=a instanceof Array?a:[a];if(ge&&0<=Ba(je(),9)){a={};for(var d=0;d<
c.length;++d)a[c[d]]=!0;b("openableURLs",a)}else{a=c.join(",");var e=!1,f=function(a){Ge("openableURLs",f);if(!e){e=!0;for(var d=$a(a.vc),g=0;g<c.length;++g){var l=c[g],m=pa(l),m=d[m];null!=m&&(d[l]=m)}b(a.type,d)}};He("openableURLs",f);Fe("canOpenURLs",{urls:a});setTimeout(function(){e||(e=!0)},500)}},Xf=function(a,b){if(!le("6500000.0.0"))return!1;for(var c=!1,d={},e=function(a){Ge("openableIntents",e);if(!c){c=!0;var f=$a(a.vc),g={},h;for(h in f)g[d[h]]=f[h];b(a.type,g)}},f=[],g=0;g<a.length;++g){var h=
a[g],k=Ca(h.id).toString();d[k]=h.id;var l={};l.id=k;h.url&&(l.u=h.url);h.qc&&(l.m=h.qc);h.Kb&&(l.p=h.Kb);f.push(l)}a={intents:f};He("openableIntents",e);Fe("canOpenIntents",{data:JSON.stringify(a)});setTimeout(function(){c||(c=!0)},500);return!0};var Yf=function(a,b,c,d){this.left=a;this.top=b;this.right=c;this.bottom=d};var T=function(a,b,c,d){this.v=a;this.A=b;this.b=c;this.g=d},Zf=new T(0,0,0,0),$f=function(a){return new J(a.b,a.g)};T.prototype.toString=function(){return["(x=",this.v,", y=",this.A,", width=",this.b,", height=",this.g,")"].join("")};T.prototype.xa=function(){return{x:this.v,y:this.A,w:this.b,h:this.g}};T.prototype.ub=function(a){return this.v==a.v&&this.A==a.A&&this.b==a.b&&this.g==a.g};T.prototype.cb=function(){return 0==this.b||0==this.g};var ag=/#(.)(.)(.)/,bg=/^#(?:[0-9a-f]{3}){1,2}$/i;var cg=function(a){return/^(?:|#|0x)(?:[a-fA-F\d]{3}){1,2}$/.test(a)},dg=function(a){if(cg(a))return"#"+a.replace(/^#|0x/,"");throw Error("Invalid HEX color: "+a);},eg=function(a){a=dg(a);if(!bg.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(ag,"#$1$1$2$2$3$3"));a=a.toLowerCase();a=[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)];return Math.round((299*a[0]+587*a[1]+114*a[2])/1E3)};var fg=function(a){var b=document.createDocumentFragment();a=a.split(/<br\/?>/i);for(var c=0;c<a.length;c++)b.appendChild(document.createTextNode(a[c])),c<a.length-1&&b.appendChild(H("BR"));return b},hg=function(a,b){var c=H("DIV");c.style.display="inline-block";c.style.height="100%";c.style.verticalAlign="middle";a.appendChild(c);c=H("DIV");c.style.display="inline-block";c.style.width="100%";c.style.verticalAlign="middle";a.appendChild(c);a=H("SPAN");b=fg(b);a.appendChild(b);c.appendChild(a);return a};var U=function(a){this.Ua=this.Va=0;a&&this.Fa(a)},ig=function(a){return null!=a.match("^(-)?[0-9]+(.[0-9]+)?(px|%|cp|cs)?$")};U.prototype.Fa=function(a){if(!ig(a))throw Error("Invalid size spec: "+a);this.Va=parseFloat(a);this.Ua=1;if("%"==a.slice(-1))this.Ua=2;else if("cp"==a.slice(-2)||"cs"==a.slice(-2))this.Ua=3};
var V=function(a,b,c){switch(a.Ua){case 1:return a.Va;case 0:return Math.round(Math.min(20,.05*b));case 2:return Math.round(a.Va*b/100);case 3:return Math.round(a.Va*c);default:throw Error("Unknown unit: "+a.Ua);}};new U("0");var jg=function(a){this.uc=new Yf(new U(a.paddingLeft||"0"),new U(a.paddingTop||"0"),new U(a.paddingRight||"0"),new U(a.paddingBottom||"0"));this.C=fc;this.Pb=0;this.gc=a.displayType||"";this.Zc=a.imageDisplayMode||"";this.Wd="true"==a.horizontalFill;this.ze="true"==a.verticalFill;this.Gd="false"!=a.autoShrink;var b=u(a.lineHeight)?a.lineHeight:"";if(isNaN(b))throw Error("Line height should be unitless number.");this.lineHeight=b=b.toString();this.truncate=a.truncate||"none";this.pb=parseFloat(a.aspectRatio)||
0;this.fa=new Yf(0,0,0,0);this.Hd=!1;this.Ha=0;b=parseFloat(a.weight);this.weight=isNaN(b)?1:b;b=parseFloat(a.minWeight);this.ce=isNaN(b)?0:b;this.minWidth=new U(a.minWidth||"0");this.minHeight=new U(a.minHeight||"0");this.maxWidth=new U(a.maxWidth||"100%");this.maxHeight=new U(a.maxHeight||"100%");b=parseInt(a.priority,10);this.je=isNaN(b)?0:b;b=parseFloat(a.imageEnlargeRatio);this.$c=isNaN(b)?1:b;this.font=a.font;this.fontWeight=this.fontStyle=this.fontFamily=void 0;b=a.fontLevel;null==b&&(b=a.font_level);
this.zb=parseInt(b,10)||0;this.fontSize=0;this.color=a.color;this.backgroundColor=a.backgroundColor};var kg=function(a,b){if(b=b.backgroundColor)if(a=cg(b)?b:N(a,b))return dg(a);if(b)throw Error("Cannot get background color by field: "+b);return""};var lg=function(a){this.j=a.ke;this.Gb=a.sa;this.S=a.S},mg=function(a,b){var c=I(b);a=kg(a.j,a.S.I[b.getName()]);c.style.backgroundColor=a},ng=function(a,b,c){var d=b.style;a:{var e=a.j;if(a=c.color){var f=cg(a)?a:N(e,a);if(f){a=dg(f);break a}}e=kg(e,c);if(cg(e))a=200<eg(e)?"#000":"#fff";else{if(a)throw Error("Cannot get foreground color by field: "+a);a=""}}d.color=a;b.style.fontSize=c.fontSize+"px";c.fontFamily&&(b.style.fontFamily=c.fontFamily);c.fontStyle&&(b.style.fontStyle=c.fontStyle);c.fontWeight&&
(b.style.fontWeight=c.fontWeight);b.style.lineHeight=c.lineHeight||""},og=function(a){var b=a.na.fa,c=b.left+b.right,d=b.top+b.bottom,e=a.Z.b;a=a.Z.g;var f=Pb("DIV");f.style.position="absolute";f.style.top=b.top+"px";f.style.left=b.left+"px";f.style.width=e-c+"px";f.style.height=a-d+"px";return f};var pg=function(a,b){this.Ka=Lb(b.Ub);this.j=a};var qg=function(){this.oa=new XMLHttpRequest};qg.prototype.get=function(a,b){if(this.oa&&(0==this.oa.readyState||4==this.oa.readyState))try{this.oa.onreadystatechange=z(this.Jd,this,b),this.oa.open("GET",a,!0),this.oa.send(null)}catch(c){b()}};qg.prototype.Jd=function(a){4==this.oa.readyState&&a()};var rg=function(a,b,c,d){this.Mc=a;this.Od=b;this.Nc=null;this.xc=c;this.Sc=d;this.qa=this.bc=this.Ma=this.ya=this.La=!1;this.cc=void 0;this.ca=this.Wa=this.bb=null;this.Pc=this.nc=this.bd=this.Td=this.vd=this.Ab=this.sb=this.Fc=this.Xc=this.Jc=this.zd=0};rg.prototype.Ld=function(){this.sb=A();this.La=!1;sg(this)};rg.prototype.Wc=function(){try{this.ca&&4==this.ca.readyState&&this.ya&&(this.Ab=A(),this.ya=!1,this.ca.responseText&&0<this.ca.responseText.length&&(this.bb="tel:"+this.ca.responseText))}finally{sg(this)}};
rg.prototype.we=function(){this.Fc=A();this.qa=!1;sg(this)};
var sg=function(a){a.Ma||(a.La||a.ya?a.qa||tg(a):(a.qa&&(a.qa=!1,window.clearTimeout(a.cc),a.cc=void 0),tg(a)))},tg=function(a){if(!a.Ma){a.Ma=!0;a.bc=!0;var b=0==a.sb?0:a.sb-a.Jc,c=0==a.Ab?0:a.Ab-a.Xc,d=0==a.Fc?0:a.Fc-a.zd,e=a.Wa&&a.Wa.oa?a.Wa.oa.status:"noreq",f=a.ca?a.ca.status:"noreq",g=/&ctype=\d+/.exec(a.Mc),g=g?g[0]:"";a.vd++;var h=0;0!=a.bd&&0!=a.nc&&(h=a.nc-a.bd);a.Nc=["//googleads.g.doubleclick.net/pagead/gen_204?id=ctc_metrics",g,"&dc="+a.Pc,"&ec="+a.Td,"&rc="+a.vd,"&ct="+h,"&ctc_num="+
a.xc,"&ctc_gvn="+a.bb,"&ctc_cs_time="+b,"&ctc_gv_time="+c,"&ctc_to_time="+d,"&ctc_cs_status="+e,"&ctc_gv_status="+f].join("");(new qg).get(a.Nc,z(a.ud,a));window.setTimeout(z(a.ud,a),2E3)}};rg.prototype.ud=function(){this.bc&&(this.qa=this.ya=this.La=this.bc=!1,null!=this.Sc?this.Sc(this.bb||this.xc):window.top.location=this.bb||this.xc)};w("ctc_bd",function(a,b,c){var d=function(){window.top.location=b},e=new qg;c?e.get(a,c):e.get(a,d)},void 0);
w("init_gvc",function(a,b,c,d){return new rg(a,b,c,d)},void 0);w("ctc_bd_gv",function(a){var b=A();a.La||a.ya||a.qa?a.Pc++:a.nc=b;var c=!1,d=!1,e=!1;a.La||(a.La=!0,a.Ma=!1,a.Jc=b,a.sb=b,d=!0);a.ya||null!=a.bb||(a.ya=!0,a.Ma=!1,a.Xc=b,a.Ab=b,e=!0);a.qa||(a.qa=!0,a.Ma=!1,a.zd=b,c=!0);c&&(a.cc=window.setTimeout(z(a.we,a),2E3));d&&(a.Wa=new qg,a.Wa.get(a.Mc,z(a.Ld,a)));if(e)try{a.ca=new XMLHttpRequest,a.ca.onreadystatechange=z(a.Wc,a),a.ca.open("GET",a.Od,!0),a.ca.send(null)}catch(f){a.Wc()}},void 0);var ug=function(){return Nf("uses_octagon_sdk")};var vg=0,wg=function(a){vg=A();if(ug()){var b=a;a=b.match(Ed)[1]||null;!a&&t.self&&t.self.location&&(a=t.self.location.protocol,a=a.substr(0,a.length-1));a=a?a.toLowerCase():"";var b=b.match(Ed),b=Dd(null,null,null,null,b[5],b[6],b[7]),c=window.location.toString(),d=Fd(c.match(Ed)[3]||null),c=c.match(Ed)[1]||null;"http"!=a&&"https"!=a&&(c=a);var e=Nf("async_click_ping_for_cto");a=new XMLHttpRequest;a.open("GET",Of((c+"://"+d+(b||"")).toString(),"rct","j"),e);window.jstiming&&da(window.jstiming.report)?
(b=new window.jstiming.Timer,a.send(),b.tick("cr_csr"),window.jstiming.report(b)):a.send();if(a.responseText&&(a=a.responseText.match(/URL=\'([^\']*)\'/))&&1<a.length&&(a=a[1].replace(/&amp;/g,"&"),a=new O(a),a.R.get("referrer")))return pa(a.R.get("referrer"))}},xg=function(a,b){var c=Ld(a,"referrer");/^[\s\xa0]*$/.test(null==c?"":String(c))?c=b:/^[\s\xa0]*$/.test(null==b?"":String(b))||(c=c+"&"+b);if(!/^[\s\xa0]*$/.test(null==c?"":String(c))){b=c;for(var c=a.search(Kd),d=0,e,f=[];0<=(e=Jd(a,d,"referrer",
c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));a=[f.join("").replace(Md,"$1"),"&","referrer"];null!=b&&a.push("=",encodeURIComponent(String(b)));a=Hd(a)}return a},Ag=function(a,b){if(yg())return!0;if(!ug())return!1;a=Of(a,"ctype","55");if(ff||zb||gf||Ab)return a&&(a=Tf(a),Uf()?a&&(a=Tf(a),Rf(a)):Fe("click",{u:a})),Vf(b),!0;if(hf||yb){if(!a||"L"!=Ld(a,"sa"))return!1;a=wg(a);b=xg(b,a);b=zg(b);Vf(b);return!0}return!1},Bg=function(a,b,c){if(yg())return!0;if(!ug())return!1;
if(!hf&&!yb)return Ag(b,c);if(!b||"L"!=Ld(b,"sa"))return!1;b=Of(b,"ctype","55");b=wg(b);c=xg(c,b);c=zg(c);a={url:c,id:c,Kb:a?a:void 0};ke()&&(c={a:"intent",u:a.url},a.action&&(c.i=a.action),a.qc&&(c.m=a.qc),a.Kb&&(c.p=a.Kb),a.Ud&&(c.f=a.Ud),Fe("open",c));return!0},zg=function(a){return a.match(/^[^:]+\:\/\/.*/)?a:a.split(/:(.+)?/,2).join("://")},yg=function(){var a;a=Mf.hc();a=parseInt(a.wb.ignore_clicks_during_sjax_duration,10)||-Infinity;return A()-vg<a};var Dg=function(a){this.Ya={};this.j=a;if(Ic(a)){var b={};D(Fc(a)[0],function(a,c){oa(c,"_dynDL")&&y(a)&&a&&(this.Ya[a]=!1,b[a]=c.substring(0,c.length-6))},this);if(!Ya(this.Ya)){a=Wa(this.Ya);var c=Ia(a,function(a){var c=Cg(this,b[a]);return{url:a,id:a,packageName:c?c:void 0}},this);Xf(c,z(this.yd,this))||Wf(a,z(this.yd,this))}}};
Dg.prototype.se=function(a,b,c){var d=new Me(this.j,c);-1==Ne&&(Ne=A());ad(a,"click",z(function(a){if(!d.accept(a))a.preventDefault();else if(Ic(this.j)){var c;if(!(c=!b)){a:{if((c=N(this.j,b+"_dynDL")||null)&&this.Ya[c]){var e=N(this.j,b);if(e){Mf.hc().wb.uses_octagon_sdk=!0;var h=Cg(this,b);if(h){c=Bg(h,e,c);break a}}}c=!1}c=!c}if(c){e=b?N(this.j,b):this.j.redirect_url;c={useFirstPackage:!0,useRunningProcess:!0};e=Tf(e);Sf||(Sf=window.google_casm?new Lf(window.google_casm):new Lf);h=Sf.data[3];
if(h=!(null==h||!h)||c.df)a:{if(!u(be)){if(ge&&!fe("Safari")){h=be=!0;break a}be=!1}h=be}if(h){c=e;var k={id:"gmob-apps",event:"open-browser",url:c};if(.1>Math.random()){e=new O("https://pagead2.googlesyndication.com/pagead/gen_204");h=Ad(k);if("undefined"==typeof h)throw Error("Keys are undefined");for(var l=new R(null,0,void 0),k=zd(k),m=0;m<h.length;m++){var n=h[m],p=k[m];x(p)?$d(l,n,p):l.add(n,p)}Pd(e,l);P(e);h=Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^
A()).toString(36);P(e);e.R.set("zx",h);Rf(e)}Fe("open",{a:"browser",u:c})}else e={a:"app",u:e},le("8400000.0.0")&&bb(e,{system_browser:!0,use_first_package:c.ef,use_running_process:c.ff}),Fe("open",e)}a.preventDefault()}},this))};Dg.prototype.yd=function(a,b){b&&(this.Ya=b)};var Cg=function(a,b){return N(a.j,b+"_dynAppId")||N(a.j,b)||null};var Eg=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};Eg.prototype.clone=function(){return new Eg(this.start,this.end)};var Fg=function(){};Fg.prototype.P=function(){return{getAllFontSizes:z(this.Na,this),getFontSizes:z(this.ic,this),check:z(this.check,this),checkFontAndAdBalance:z(this.$b,this),isOptimized:z(this.mc,this)}};var W=function(a,b,c,d,e){for(var f=0;f<a.length;f++);this.ea=a;this.kd=b;this.fd=c;this.Yd=u(d)?d:!1;this.be=u(e)?e:4};B(W,Fg);W.prototype.Na=function(){return this.ea};W.prototype.ic=function(a,b){if(0>=b)return this.ea;for(var c=0,d=this.ea.length-1;0<=d;--d)if(Gg(this,a,this.ea[d])){c=d;break}a=new Eg(0,c);for(c=1;c<b;++c)a=new Eg(a.start-this.fd[a.start],a.end-this.kd[a.end]);return this.ea.slice(a.start,a.end+1)};
W.prototype.check=function(a,b){a=Ma(b);Ra(a,function(a,b){return b.level-a.level});for(b=0;b<a.length-1;++b)if(!Hg(this,a[b],a[b+1]))return!1;return!0};var Hg=function(a,b,c){var d=new Eg(c.index,c.index);for(c=c.level;c<b.level;++c)d=new Eg(d.start-a.fd[d.start],d.end-a.kd[d.end]);a=b.index;return d.start<=a&&d.end>=a};W.prototype.$b=function(a,b){return 0==b.length?!0:Gg(this,a,this.ea[b[b.length-1].index])};
var Gg=function(a,b,c){return a.ea[Math.min(a.ea.length-1,Math.min(a.ea.length,Math.floor(Math.min(1,Math.max(0,(b.w+b.h-100)/1550))*a.ea.length-1))+a.be)]>=c};W.prototype.mc=function(){return this.Yd};var Ig=[10,12,14,16,18,21,24,28,32,36,42,48,60,72],Jg={"default":new W(Ig,[0,0,1,1,1,1,2,2,2,3,3,3,3,3],[0,1,1,2,3,4,4,4,4,4,4,4,4,4],!0,3),balanced:new W(Ig,[0,0,1,1,1,1,1,1,1,1,1,1,1,1],[0,1,2,2,2,2,2,2,2,2,2,2,2,2],!1,3),mega_title:new W(Ig,[0,0,1,1,2,2,2,3,3,3,3,4,4,4],[0,1,2,3,4,4,4,5,5,5,5,5,6,7],!0,5),mega_title_v2:new W(Ig,[0,0,1,2,3,3,4,4,4,4,4,4,4,4],[0,1,2,3,4,4,5,5,6,6,6,6,6,6],!1,5),core:new W(Ig,[0,0,1,1,1,1,1,1,1,1,1,1,1,1],[0,1,2,2,2,2,2,2,2,2,2,2,2,2]),product_ad:new W(Oa(Ig,0,5),
[0,1,1,1,1],[0,2,2,2,2]),video_ctd_ad:new W([12,14,16,18,21,28,36,48],[0,1,1,1,1,1,1,1],[0,2,2,2,2,2,2,2]),video_ctd_mgdn_ad:new W([10,11,12,13,14,15,16,17,18],[0,1,1,1,1,1,1,1,1],[0,2,2,2,2,2,2,2,2])};var Kg=function(a){this.wa=ea(a)?a:Jg[a||"default"].P()};r=Kg.prototype;r.Na=function(){return this.wa.getAllFontSizes()};r.ic=function(a,b){return this.wa.getFontSizes(a.xa(),b)};r.check=function(a,b){return this.wa.check(a.xa(),b)};r.$b=function(a,b){return this.wa.checkFontAndAdBalance(a.xa(),b)};r.mc=function(){return this.wa.isOptimized()};var Lg=function(){},Mg=function(a,b){this.Hc=a;this.ld=b};B(Mg,Lg);var Ng=function(a,b){Mg.call(this,a,b)};B(Ng,Mg);Ng.prototype.Yb=function(a,b){return yc(M(b))<=this.Hc?a*this.ld:a};var Og=function(a,b){Mg.call(this,a,b)};B(Og,Mg);Og.prototype.Yb=function(a,b){return yc(M(b))>=this.Hc?a*this.ld:a};var Pg=function(a){this.Id=a};B(Pg,Lg);Pg.prototype.Yb=function(a,b){return a*this.Id(b)};
var Qg=function(a){if(da(a))return new Pg(a);var b=C(a).split(/\s+/);switch(b[0]){case "AspectRatioLE":return new Ng(parseFloat(b[1]),parseFloat(b[2]));case "AspectRatioGE":return new Og(parseFloat(b[1]),parseFloat(b[2]));default:throw Error("Invalid calibration: "+a);}};var Rg=[[0,0,0,0],[0,1,0,1],[0,1,2,1],[0,1,2,3]],Tg=function(a,b,c){var d={};D(a,function(a){var e=$a(a.I),g=a.getName();b&&b[g]&&bb(e,Sg(b[g]));c&&c[g]&&bb(e,Sg(c[g]));switch(a.s){case "button":a="nessieButton"==e.displayType?Yb:Xb;break;case "logo":a=Zb;break;case "image":a=$b;break;case "product":a=$b;break;case "text":a=ac;break;case "headline":a=bc;break;case "description":a=cc;break;case "url":a=dc;break;default:a={}}a=$a(a);bb(a,e);d[g]=new jg(a)});return d},Sg=function(a){var b={},c;for(c in a)switch(c){case "padding":var d=
C(a[c]).split(/\s+/),e=Rg[d.length-1],f={};f.paddingTop=d[e[0]];f.paddingRight=d[e[1]];f.paddingBottom=d[e[2]];f.paddingLeft=d[e[3]];bb(b,f);break;default:b[c]=a[c]}return b};var Ug={top:1,left:2,right:4,bottom:8},Vg=function(a){if(a&&0!=a.length){a=C(a).split(/\s+/);for(var b=0,c=0;c<a.length;++c)b|=Ug[a[c]];a=b}else a=0;this.Dd=a};Vg.prototype.M=function(a){for(var b=0;b<arguments.length;++b)if(0==(arguments[b]&this.Dd))return!1;return!0};var Wg={1:8,2:4,4:2,8:1},Xg={top:1,left:2,right:4,bottom:8};var Yg=function(a,b,c){this.Rd=a;this.Hb=b;this.O=c};Yg.prototype.D=function(){return this.Rd};var Zg=function(a,b){this.fc=a;this.ib=null;this.qd=0;this.Ac=a;this.Rc=new U;b&&this.Fa(b)};Zg.prototype.Fa=function(a){a=C(a).split(Ub);a[0].match(Wb)&&(this.ib=a[0],this.Ac=Wg[this.fc]);1<a.length&&a[1].match(Wb)&&(this.Ac=Xg[a[1].toLowerCase()]);4==a.length&&(this.qd=parseFloat(a[2]));var b=a.length-1;ig(a[b])&&(this.Rc=new U(a[b]))};Zg.prototype.jc=function(){return this.qd};var $g={none:0,max:1,min:2},ah=function(a,b){this.sc=0;this.Y=[];this.Fa(a,b)};ah.prototype.Fa=function(a,b){if(b){var c=b.indexOf("("),d=b.lastIndexOf(")");if(0>c||0>d)this.Y.push(new Zg(a,b));else{var e=C(b.substring(0,c));b=C(b.substring(c+1,d));this.sc=$g[e];e=b.split(Vb);for(b=0;b<e.length;b++)this.Y.push(new Zg(a,e[b]))}}else this.Y.push(new Zg(a))};var bh={};bh[1]=new ah(1,null);bh[2]=new ah(2,null);bh[4]=new ah(4,null);bh[8]=new ah(8,null);var ch=function(a,b){this.ua=a;this.Y=$a(bh);this.Fb=0;this.O=new Vg;this.Fa(b)};
ch.prototype.Fa=function(a){for(var b in a)switch(b){case "type":case "spec":break;case "z_index":this.Fb=parseInt(a[b],10);break;case "layer":this.Fb=parseInt(a[b],10);break;case "alignments":this.O=new Vg(a[b]);break;default:var c=Xg[b.toLowerCase()];this.Y[c]=new ah(c,a[b])}this.s=a.type;a:switch(c=a.spec,this.s){case "element":case "auxiliary-line":a=c.element;break a;case "vertical-list":case "horizontal-list":case "auto-list":var d=this.O;a=c.elements;b=c.margin;c=u(c.alignments)?new Vg(c.alignments):
d;a=new Yg(a,b,c);break a;default:throw Error("Unknown layout spec type: "+this.s);}this.Ce=a};ch.prototype.getName=function(){return this.ua};ch.prototype.P=function(){return this.Ce};var dh=function(a,b,c,d){this.wa=b;this.ua=a;this.md=c;this.Oa=null;this.I={};this.Ic=[];this.Oc=b.def_custom_padding||b.def_custom_size;this.I=Tg(c,d,b.styles);this.U=new Kg(b.font_scale_strategy);if(a=b.calibrations)for(b=0;b<a.length;++b)this.Ic.push(Qg(a[b]))},eh=function(a){a.Oa={};for(var b in a.wa)"styles"!=b&&"calibrations"!=b&&"def_custom_size"!=b&&"font_scale_strategy"!=b&&"def_custom_padding"!=b&&(a.Oa[b]=new ch(b,a.wa[b]))};dh.prototype.getName=function(){return this.ua};
dh.prototype.ka=function(a){return this.md[a]};dh.prototype.D=function(){return this.md};var fh=function(a,b){a.Oa||eh(a);return a.Oa[b]},X=function(a,b,c){return a.Oc?a.Oc(b.xa(),c):0};var gh=function(a){this.Ub=a.ad_content_node_id||"adContent";this.ge=a.optimization_strategy||"default";this.Ib={};this.Jb={};var b=a.elements,c;for(c in b)this.Ib[c]=new ec(c,b[c]);b=a.variations;for(c in b){var d=b[c];!d.font_scale_strategy&&a.font_scale_strategy&&(d.font_scale_strategy=a.font_scale_strategy);this.Jb[c]=new dh(c,d,this.Ib,a.styles)}};gh.prototype.D=function(){return this.Ib};gh.prototype.ka=function(a){return this.Ib[a]};var hh=t.performance&&t.performance.now&&t[t.GoogleAnalyticsObject||"ga"],ih="",jh={},kh=function(a){hh&&(ih=N(a,"layout")||"unknown",a=parseFloat(L(a,"siriusFlagGaReportRatio")),hh("create","UA-66202210-1",{sampleRate:100*(isNaN(a)?.02:a),siteSpeedSampleRate:100,storage:"none"}),hh("set","transportUrl","https://www.google-analytics.com/csi/batch"),hh("send","pageview",t.location.pathname))},Y=function(a,b){hh&&(b=Math.round(t.performance.now())-(b&&jh[b]||0),6E4>b&&(jh[a]=b))};var lh=function(a,b){this.C=a;this.Pb=b},mh=function(a,b){this.K=a;this.$a=b;this.Qb={}};mh.prototype.Db=function(){this.K.style.display="block";this.K.style.opacity="0.001";this.K.style.visibility="visible";this.K.innerHTML=""};var nh=function(a){a.K.style.opacity="";a.K.style.display="";a.K.style.visibility="";a.K.innerHTML=""};
mh.prototype.measure=function(a,b,c,d){this.K.style.lineHeight=d.lineHeight;this.K.style.width=c.b-1+"px";for(d=0;d<a.length;++d){var e=a[d],f=this.Qb[e];if(!f){f=Ta(this.Qb)+1;this.Qb[e]=f;var g=H("DIV"),h=H("SPAN"),e=fg(e);h.appendChild(e);g.appendChild(h);h=document.createDocumentFragment();for(e=0;e<this.$a.length;e++){var k=g.cloneNode(!0);k.style.fontSize=this.$a[e]+"px";k.childNodes[0].id=this.K.id+"measurer_span__"+f+"_"+this.$a[e];h.appendChild(k)}this.K.appendChild(h)}}f=[];for(d=0;d<a.length;++d)f.push(oh(this,
a[d],b,c));return f};var oh=function(a,b,c,d){var e=a.Qb[b];if(!e)throw Error("Unknown text: "+b);b=[];for(var f=0;f<a.$a.length&&!(b.length>=c.length);f++){var g=a.$a[f];if(g==c[b.length]){g=Lb(a.K.id+"measurer_span__"+e+"_"+g);if(!g)throw Error("Missing measurer for node: "+g.id);var h=1+g.offsetWidth,k=1+g.parentNode.offsetHeight;if(1>=h||1>=k)return Gf("inM",h,k),[];if(h>d.b||k>d.g)break;for(var g=g.getClientRects(),h=new J(h,k),l=k=0;l<g.length;++l)k+=g[l].width*g[l].height;b.push(new lh(h,k))}}return b};var ph=function(){},qh=void 0,rh=[],sh={},th=function(a,b){Y("_wm");null!=qh&&clearInterval(qh);a.style.opacity="0.001";a.style.display="block";a.style.visibility="visible";var c=Lb("measurer_probe");null==c&&(c=H("SPAN"),c.id="measurer_probe",c.style.fontSize="16px",c.style.visibility="hidden",c.textContent="go",a.appendChild(c));1<c.offsetWidth&&1<c.offsetHeight?(Sb(c),Y("wm_","_wm"),b()):(Gf("inW",0,0),qh=setInterval(function(){1<c.offsetWidth&&1<c.offsetHeight&&(Sb(c),clearInterval(qh),Gf("inE",
0,0),Y("wm_","_wm"),b())},100))},uh=function(a){var b;a:if(b=rh,ca(a)&&ca(b)&&a.length==b.length){for(var c=a.length,d=0;d<c;d++)if(a[d]!==b[d]){b=!1;break a}b=!0}else b=!1;b||(rh=Ma(a),sh={})};ph.prototype.measure=function(a,b,c,d,e){var f=sh[a.id];f||(f=new mh(a,rh),f.Db(),sh[a.id]=f);return f.measure([b],c,d,e)[0]};var vh=function(a,b,c,d,e){var f=a.parentNode,g=a.cloneNode(!1);Sb(a);f.appendChild(g);var h=new mh(g,c);h.Db();b=h.measure(b,c,d,e);nh(h);Sb(g);f.appendChild(a);return b};var wh=function(a){this.j=a},xh="Lora;Montserrat;Open Sans;Oswald;Raleway;Roboto;Ubuntu;Slabo 27px".split(";"),yh=function(a,b){a.style.fontFamily=b.fontFamily;a.style.fontWeight=b.fontWeight;a.style.fontStyle=b.fontStyle},zh=function(a,b,c){if(c&&(a=N(a.j,c+"Css")))return a.replace(/^https?:/,"");a=ya(C(b.fontFamily.split(",")[0]));if(0>xh.indexOf(a))return null;(b=("normal"==b.fontWeight||400==b.fontWeight?"":b.fontWeight)+("normal"==b.fontStyle?"":b.fontStyle))&&(b=":"+b);return"//fonts.googleapis.com/css?family="+
a+b};var Ah=function(a){this.j=a;this.Be=new wh(a)},Dh=function(a,b,c){var d=0,e=function(){++d;2==d&&(Y("lr"),c())};Bh(a,b,e);Ch(a,b,e)},Bh=function(a,b,c){if(null==document.fonts||ef||Ac(a.j,"siriusFlagDisableWebFont"))c();else{var d=b.D(),e={},f;for(f in d){var g=d[f],h=g.s;if("text"==h||"description"==h||"button"==h||"headline"==h)if(h=N(a.j,g.aa),null!=h){var k=I(g),g=H("DIV");g.id="font_loader_"+k.id;g.textContent=h;k.appendChild(g);h=f;a:{for(var g=a.Be,l=b.I[f],m=["mbfFont",l.font],n=0;n<m.length;++n){var p=
m[n];if(null!=p){var q=N(g.j,p+"Family");if(null!=q){l.fontFamily=q;l.fontWeight=N(g.j,p+"Weight")||"normal";l.fontStyle=N(g.j,p+"Style")||"normal";yh(k,l);g=zh(g,l,p);break a}}}k.style.fontFamily="";k.style.fontWeight="";k.style.fontStyle="";l.fontFamily=qd(k,"fontFamily");l.fontWeight=qd(k,"fontWeight");l.fontStyle=qd(k,"fontStyle");yh(k,l);g=zh(g,l)}e[h]=g}}d=Eh(a,e);f=Fh();a=z(a.Kd,a,b,e);Promise.race([d,f]).then(a).then(c)}},Eh=function(a,b){var c={},d;for(d in b){var e=b[d];e&&(c[e]=!0)}if(0==
Ta(c))return document.fonts.ready;b=[];for(e in c){var f=H("LINK");f.rel="stylesheet";f.href=encodeURI(e);b.push(new Promise(function(a){f.addEventListener("load",a);f.addEventListener("error",function(b){Sb(f);a(b)})}));document.head.appendChild(f)}a=z(a.Ae,a);return Promise.all(b).then(a)};
Ah.prototype.Ae=function(){Y("lff","oa");return new Promise(function(a){var b=document.fonts.onloadingdone,c=document.fonts.onloadingerror,d=function(d,f){d=d?c:b;da(d)&&d(f);document.fonts.onloadingdone=b;document.fonts.onloadingerror=c;Y("lfd","lff");a()};document.fonts.onloadingdone=ka(d,!1);document.fonts.onloadingerror=ka(d,!0)})};var Fh=function(){return new Promise(function(a){setTimeout(a,1E3)})};
Ah.prototype.Kd=function(a,b){for(var c in b){for(var d=b=I(a.ka(c)),e=a.I[c],f=e.fontStyle+" "+e.fontWeight+" 0 ",g=[],h=e.fontFamily.split(","),k=0;k<h.length;k++){var l='"'+ya(C(h[k]))+'"';document.fonts.check(f+l)&&g.push(l)}e.fontFamily=g.join();d.style.fontFamily=e.fontFamily;Sb(Lb("font_loader_"+b.id))}return Promise.resolve()};
var Ch=function(a,b,c){var d=Gh(a,b);0==d.length&&c();var e=0;b=z(function(a,b){var f=Fc(this.j)[0];f[a+"Width"]=b.b;f[a+"Height"]=b.g;e+=1;e==d.length&&c()},a);for(var f=0;f<d.length;++f)Hh(a,d[f],b)},Hh=function(a,b,c){var d=H("IMG");d.onload=function(){var a=new J(d.width,d.height);Sb(d);c(b,a)};d.src=N(a.j,b)},Gh=function(a,b){var c={};b=b.D();for(var d in b){var e=b[d],f=e.s;if("image"==f||"product"==f||"logo"==f||"background_image"==e.s)if(e=e.aa,null!=N(a.j,e)){var g=Fc(a.j)[0],f=g[e+"Width"],
g=g[e+"Height"];null==(null==f||null==g?null:new J(parseInt(f,10),parseInt(g,10)))&&(c[e]=!0)}}return Wa(c)};var Jh=function(a){var b=a.Ub,c=Ih(document.body,b),d;a=a.D();var e=[],f=[];for(d in a){var g=a[d];"shape"==g.s?e.push(g):f.push(g)}d=La(e,f);for(a=0;a<d.length;a++)e=d[a].nd,e!=b&&Ih(c,e);c.style.lineHeight="normal"},Ih=function(a,b){var c=Lb(b);c||(c=H("DIV"),c.id=b,a.appendChild(c));return c};var Kh=function(){this.jb=[];this.yc=this.fb=fc};Kh.prototype.unlisten=function(){for(var a=0;a<this.jb.length;a++)jd(this.jb[a]);this.jb=[]};Kh.prototype.Db=function(a,b){var c=Ec(a);0>=c?Lh(this,a,b):setTimeout(z(function(){Lh(this,a,b)},this),c)};
var Lh=function(a,b,c){a.unlisten();var d=M(b);if(!(0<d.b&&0<d.g))throw Error("Undefined ad dimension");a.yc=fc;a.fb=d;c=z(a.Vd,a,b,c);"false"!=L(b,"siriusFlagEnableResizeDetection")&&(b=ad(t,"resize",c),null!=b&&a.jb.push(b),b=ad(t,"orientationchange",c),null!=b&&a.jb.push(b));c()};
Kh.prototype.Vd=function(a,b){var c;c=new J(t.innerWidth,t.innerHeight);c=70>c.b||30>c.g?this.fb:c;if(!c.ub(this.yc)){this.yc=c;var d;d=c.b;var e=c.g,f=this.fb.b,g=this.fb.g;d=f<=d&&g<=e?this.fb:f<=e&&g<=d?new J(g,f):c;Ac(a,"siriusFlagForceRenderingWithIframeDimension")&&(d=c);c=d;a.google_width=c.b;a.google_height=c.g;b()}};var Mh=function(a,b,c){this.S=a;this.sa={};this.ke=c;for(var d in b)bb(this.sa,b[d].D())};var Nh=function(a){this.G=M(a);this.j=a;this.Ja=null},Oh=function(a,b,c,d){this.Md=a;this.tb=b;this.Vb=c;this.xd=d},Rh=function(a,b){var c;c=b.S;var d=b.sa,e=0,f;for(f in d)"shape"!=c.ka(f).s&&++e;c=e;d=b.S.U;e=Ph(d.Na(),b.sa);d=d.$b(a.G,e);e=b.S;f=b.sa;var g=0,h;for(h in f)if("shape"!=e.ka(h).s)var k=f[h].na,g=g+(k.Pb||xc(k.C));h=g;e=b.S;f=b.sa;var g={},k=e.U.mc(),l=e.D(),m;for(m in l){var n=e.I[m];k&&"text"==l[m].s&&1==n.zb&&(g[m]=.12)}m=1;for(var p in f)l=e.I[p],k=g[p],null==k&&(k=l.ce),k=Math.min(k,
.8*l.weight),l=xc(f[p].na.C)/xc(a.G),l<k&&(m*=l/k);p=h*m*Qh(a,b.S);b=new Oh(b,c,d,p);null!=a.Ja&&(p=a.Ja,b=p.tb!=b.tb?p.tb>b.tb?p:b:p.Vb!=b.Vb?p.Vb?p:b:p.xd>b.xd?p:b);a.Ja=b},Sh=function(a){return a.Ja?a.Ja.Md:null};Nh.prototype.reset=function(){this.Ja=null};var Qh=function(a,b){var c=1;b=b.Ic;for(var d=0;d<b.length;++d)c=b[d].Yb(c,a.j);return c},Ph=function(a,b){var c=[],d;for(d in b){var e=b[d].na,f=e.zb;f&&c.push(new la(f,a.indexOf(e.fontSize)))}return c.sort(function(a,b){return b.level-a.level})};var Th=function(a){this.j=a},Uh=cb(kc.toString(),"square",oc.toString(),"square",mc.toString(),"square",nc.toString(),"square",hc.toString(),"tower",pc.toString(),"tower",qc.toString(),"tower",ic.toString(),"banner",rc.toString(),"banner",sc.toString(),"banner",jc.toString(),"banner",gc.toString(),"smallBanner",wc.toString(),"smallBanner",uc.toString(),"smallBanner",vc.toString(),"smallBanner",tc.toString(),"smallBanner"),Vh=function(a,b){for(var c=Uh[M(a.j).toString()],d=[],e=[],f=[],g=0;g<b.length;++g)c&&
0==b[g].lastIndexOf(c,0)?f.push(b[g]):0==b[g].lastIndexOf("small",0)?d.push(b[g]):e.push(b[g]);b=[];b.push(f);32400>xc(M(a.j))?(b.push(d),b.push(e)):(b.push(e),b.push(d));return Ha(b,function(a){return 0<a.length})};var Wh=function(a){this.J=a;this.tc=void 0;this.za=[];this.de={}};var Xh=function(a,b,c){this.Qd=a;this.hd=b;this.ed=c;if(0>=a||1<a)throw Error("Invalid elementToAdAreaRatio "+a);},Yh=function(a,b,c){b=Math.ceil(Math.sqrt(xc(b)*a.Qd*c));c=Math.ceil(b/c);var d=1;b>a.hd&&(d=a.hd/b);c>a.ed&&(d=Math.min(d,a.ed/c));b=Math.floor(b*d);c=Math.floor(c*d);return new J(b,c)};var Z=function(a){this.pa=a;this.l=M(a);this.Zb=Fc(a)[0]},Zh=function(a,b){a=Fc(a.pa)[0][b.aa];return null!=a&&""!=a};Z.prototype.Ga=of(function(a,b,c,d){return this.ra(a,b,c,d)},function(a,b){return[b[0].getName(),b[1].getName(),b[2].toString()].join()});var $h=function(a,b,c){var d=X(b,a.l,!0);b=X(b,a.l,!1);var e=a.l.g;a=V(c.maxWidth,a.l.b,d);d=V(c.maxHeight,e,b);return new Xh(c.weight,a,d)},ai=function(a,b){a=$a(a);a.C=b;return a};
Z.prototype.W=function(a,b,c){return!(0<=Fa(c.za,b.getName()))&&Zh(this,b)};var bi=function(a,b){this.dc=a;this.ec=b},ci=function(a,b,c){var d=c.b;c=c.g;return new Yf(V(b.left,d,a.dc),V(b.top,c,a.ec),V(b.right,d,a.dc),V(b.bottom,c,a.ec))},di=function(a,b,c){if(2!=a.length)throw Error("Invalid length of sizes in getPixelPaddingsFromContent_.");for(var d=0,e=0,f=0;f<a.length;++f){var g=a[f].Ua;if(2==g)e+=a[f].Va;else if(1==g||3==g)d+=Math.round(a[f].Va*(1==g?1:c));else throw Error("Invalid size unit in getPixelPaddingsFromContent_");}g=[];b=(d+b)/(100-e)*100;for(f=0;f<a.length;++f)g.push(V(a[f],
b,c));return g};var ei=function(a,b){Z.call(this,a);this.Ec=b};B(ei,Z);ei.prototype.W=function(a,b,c){return 0<=Fa(c.za,b.getName())?!1:"nessieButton"==a.I[b.getName()].gc?!Ac(this.pa,"siriusFlagDisableNessieButton"):Zh(this,b)};
ei.prototype.ra=function(a,b,c){var d=a.I[b.getName()],e=this.Zb[b.aa],f;f=V(d.minWidth,this.l.b,X(a,this.l,!0));var g=V(d.minHeight,this.l.g,X(a,this.l,!1));d.pb?(f=Math.max(f,Math.ceil(g*d.pb)),f=new J(f,Math.ceil(f/d.pb))):f=new J(f,g);if(c.b<f.b||c.g<f.g)return[];g=Yh($h(this,a,d),this.l,d.pb);if(g.b<f.b||g.g<f.g)g=f;g=zc(g,c);c=ai(d,g);if("nessieButton"==d.gc)d=c;else{f=ci(new bi(X(a,this.l,!0),X(a,this.l,!1)),d.uc,g);var h=f.left+f.right,k=f.top+f.bottom;g.b<=h||g.g<=k?d=null:(b=I(b),a=a.U.Na(),
d=this.Ec.measure(b,e,a,new J(g.b+-h,g.g+-k),d),d=0<d.length?a[d.length-1]:0,c.fontSize=d,c.fa=f,0==d&&(c.fontSize=a[0],c.Hd=!0),d=c)}return d?[d]:[]};var fi=function(a){Z.call(this,a)};B(fi,Z);fi.prototype.W=function(a,b,c){return!(0<=Fa(c.za,b.getName()))};fi.prototype.Ga=function(a,b,c){a=new jg({});a.C=c;return[a]};var gi=function(a){Z.call(this,a)};B(gi,Z);gi.prototype.W=function(a,b,c){return 0<=Fa(c.za,b.getName())?!1:(0,b.rc)(this.pa,b.getName())};gi.prototype.ra=function(a,b,c){a=b.la()(a.getName(),c.xa(),this.l.xa(),this.pa);var d=[];Ga(a,function(a){var b=new jg({});b.C=new J(a.w,a.h);d.push(b)});return d};var hi=function(a){Z.call(this,a)};B(hi,Z);var ii=[.7,.8,.9];hi.prototype.ra=function(a,b,c){var d=a.I[b.getName()];return this.Sa(a,new J(Math.round(parseInt(this.Zb[b.aa+"Width"],10)*d.$c),Math.round(parseInt(this.Zb[b.aa+"Height"],10)*d.$c)),c,d)};
hi.prototype.Sa=function(a,b,c,d){var e=$h(this,a,d),e=Yh(e,this.l,b.b/b.g);if(e.b>b.b||e.g>b.g)e=b;b=zc(e,c);a=new J(V(d.minWidth,this.l.b,X(a,this.l,!0)),V(d.minHeight,this.l.g,X(a,this.l,!1)));if(b.b<a.b||b.g<a.g)return[];switch(d.Zc?d.Zc:d.ze?"verticalFill":d.Wd?"horizontalFill":d.Gd?"autoShrink":null){case "autoShrink":c=[];for(var e=.005*xc(this.l),f=0;f<ii.length;++f){var g=new J(Math.ceil(b.b*ii[f]),Math.ceil(b.g*ii[f]));g.b>=a.b&&g.g>=a.g&&xc(g)>=e&&(g=ai(d,g),c.push(g))}g=ai(d,b);c.push(g);
return c;case "horizontalFill":return ji(b,c,d,0);case "verticalFill":return ji(b,c,d,1);case "horizontalFillOrCenter":return ki(b,a,c,d,0);case "verticalFillOrCenter":return ki(b,a,c,d,1);default:return[ai(d,b)]}};
var ji=function(a,b,c,d){return 0==d&&1<Math.abs(a.b-b.b)?[]:1==d&&1<Math.abs(a.g-b.g)?[]:[ai(c,a)]},ki=function(a,b,c,d,e){var f=ji(a,c,d,e);if(0<f.length)return f;a=zc(a,new J(.8*c.b,.8*c.g));if(a.b<b.b||a.g<b.g)return[];c=0==e?new J(c.b,Math.floor(a.g/.8)):new J(Math.floor(a.b/.8),c.g);d=ai(d,c);b=c.g-a.g;a=c.b-a.b;c=Math.round(a/2);e=Math.round(b/2);d.fa=new Yf(c,e,a-c,b-e);return[d]};var li=function(a,b){Z.call(this,a);this.Ec=b};B(li,Z);li.prototype.W=function(a,b,c){return!(0<=Fa(c.za,b.getName()))&&!!mi(this,b)};li.prototype.ra=function(a,b,c,d){var e=mi(this,b),f=a.I[b.getName()],g=ci(new bi(X(a,this.l,!0),X(a,this.l,!1)),f.uc,c),h=c.b-g.left-g.right,k=c.g-g.top-g.bottom;if(0>=h||0>=k)return[];h=new J(h,k);f.fa=g;g=V(f.minWidth,this.l.b,X(a,this.l,!0));k=V(f.minHeight,this.l.g,X(a,this.l,!1));return g>c.b||k>c.g?[]:this.Sa(a,e,b,h,new J(g,k),f,d)};
var mi=function(a,b){var c=N(a.pa,b.aa);return c||"url"!=b.s?c:a.pa.visible_url};li.prototype.Sa=function(a,b,c,d,e,f,g){var h=a.U.ic(this.l,f.zb);g=g.de[c.getName()]||h;var h=I(c),k=[],l=this.Ec.measure(h,b,g,d,f);Na(k,ni(this,l,g,e,a,f));("url"==f.truncate||(0!=k.length?0:"on_demand"==f.truncate||"headline"==c.ac||"description"==c.ac))&&Na(k,oi(this,a,h,b,g,d,e,f));k.sort(function(a,b){return a.Ha!=b.Ha?a.Ha-b.Ha:b.fontSize-a.fontSize});return k};
var oi=function(a,b,c,d,e,f,g,h){var k=Ha(e,function(a){return a<=Math.max(12,e[0])}),l=pi(h,d);f=vh(c,l,k,f,h);for(c=0;c<l.length;c++)if(0<f[c].length){a=ni(a,f[c],e,g,b,h);for(b=0;b<a.length;++b)a[b].Ha=d.length-l[c].length;return a}return[]},pi=function(a,b){var c=[];if("url"==a.truncate){b=b.replace(/^(.*\/\/)?(www.)?/,"");var d=b.indexOf("/");0>d&&(d=b.length);for(a=b.length-1;10<=a;--a)a<d?c.push(za(b,a)):"/"==b[a]&&c.push(b.slice(0,a))}else for(a=b.length-1;15<=a;--a)c.push(za(b,a));return c},
ni=function(a,b,c,d,e,f){a=new bi(X(e,a.l,!0),X(e,a.l,!1));e=[];for(var g=0;g<b.length;g++){var h=b[g].C,k,l=a,m=f.uc,n=h.g;k=di([m.left,m.right],h.b,l.dc);l=di([m.top,m.bottom],n,l.ec);k=new Yf(k[0],l[0],k[1],l[1]);k=new Yf(Math.min(f.fa.left,k.left),Math.min(f.fa.top,k.top),Math.min(f.fa.right,k.right),Math.min(f.fa.bottom,k.bottom));h=new J(h.b+(k.left+k.right),h.g+(k.top+k.bottom));h.b>=d.b&&h.g>=d.g&&(h=ai(f,h),h.fontSize=c[g],h.Pb=b[g].Pb,h.fa=k,e.push(h))}return e};var qi=function(a){this.H={};var b=new ph,c=new fi(a),d=new hi(a),e=new li(a,b),b=new ei(a,b);this.H.any=new gi(a);this.H.image=d;this.H.product=d;this.H.logo=d;this.H.text=e;this.H.headline=e;this.H.description=e;this.H.url=e;this.H.button=b;this.H.shape=c};qi.prototype.la=function(a){return this.H[a]};var ri=function(a){this.G=a;this.U=null;this.eb={};this.Cb=!1},ti=function(a,b){D(b.D(),function(a,b){si(this,b,a.na)},a)},si=function(a,b,c){if(!a.U)throw Error("fontScaleStrategy_ is null.");var d=c.zb;if(d){c=c.fontSize;var e=a.U.Na().indexOf(c);if(0>e)throw Error("Out of index font size: "+c);a.eb[b]=new la(d,e);a.Cb=!0}},ui=function(a,b){D(b.D(),function(a,b){Za(this.eb,b)},a)};
ri.prototype.check=function(){if(!this.U)throw Error("fontScaleStrategy_ is null.");if(!this.Cb)return!0;this.Cb=!1;return this.U.check(this.G,Va(this.eb))};ri.prototype.reset=function(a){this.U=a;this.eb={};this.Cb=!1};var vi=function(a,b){this.Z=a;this.sa=b};vi.prototype.D=function(){return this.sa};vi.prototype.cb=function(){var a=this.Z;return 0==a.g&&0==a.b};var wi=new vi(Zf,{});var xi=function(a,b){this.Z=a;this.na=b};var Ai=function(a,b,c){c=new J(a.M(2,4)?b.b:c.b,a.M(1,8)?b.g:c.g);return new T(yi(a,b,c),zi(a,b,c),c.b,c.g)},Bi=function(a,b,c){return new T(yi(a,b,c),zi(a,b,c),c.b,c.g)},yi=function(a,b,c){return a.M(2)&&!a.M(4)?b.v:a.M(4)&&!a.M(2)?b.v+b.b-c.b:Math.round(b.v+(b.b-c.b)/2)},zi=function(a,b,c){return a.M(1)&&!a.M(8)?b.A:a.M(8)&&!a.M(1)?b.A+b.g-c.g:Math.round(b.A+(b.g-c.g)/2)},Ci=function(a,b,c,d){return new vi(Ai(a.O,d,c.C),cb(b,new xi(Bi(a.O,d,c.C),c)))};var Di=function(a,b){this.vb=a;this.pa=b;this.xb=new ri(M(b))},Ei=function(a,b,c,d){this.J=a;this.N=b;this.placeholder=c;this.options=d};Di.prototype.reset=function(){this.closure_memoize_cache_={}};
Di.prototype.Ga=of(function(a,b,c,d){b=new Ei(a,b,c,d);var e;if(this.W(b)){this.xb.reset(a.U);a=this.ra(b);b={};c={};for(d=0;d<a.length;++d){var f=a[d].D(),g=0,h=[a[d].Z.toString()];for(e in f){var k=f[e].na,g=g+xc(k.C);0<k.fontSize&&(h.push(e),h.push(k.fontSize))}f=h.join(" ");if(!b[f]||b[f]<g)b[f]=g,c[f]=a[d]}e=Va(c)}else e=[wi];return e},function(a,b){return[b[0].getName(),b[1].getName(),b[2].toString()].join()});
var Fi=function(a,b,c){for(var d=0;d<c.length;++d){var e=b.J.ka(c[d]);if(a.vb.la(e.s).W(b.J,e,b.options))return!0}return!1};var Gi=function(a,b){Di.call(this,a,b)};B(Gi,Di);Gi.prototype.W=function(){return!0};Gi.prototype.ra=function(a){var b=$f(a.placeholder);return[new vi(Ai(a.N.O,a.placeholder,b.b==M(this.pa).b?new J(b.b,0):new J(0,b.g)),{})]};var Hi=function(a,b){Di.call(this,a,b)};B(Hi,Di);Hi.prototype.W=function(a){return Fi(this,a,[a.N.P()])};Hi.prototype.ra=function(a){for(var b=a.N.P(),c=a.J.ka(b),c=this.vb.la(c.s).Ga(a.J,c,$f(a.placeholder),a.options),d=[],e=0;e<c.length;++e)d.push(Ci(a.N,b,c[e],a.placeholder));return d};var Ii=function(a,b){Di.call(this,a,b);this.G=M(b)};B(Ii,Di);var Ji=function(a){this.index=0;this.cd=a;this.Mb={};this.Kc=[]},Ki=function(a,b){this.rb=a;this.Ob=b},Li=/^\d+\$$/;Ii.prototype.W=function(a){var b=a.N.P().D();return Fi(this,a,b)};Ii.prototype.ra=function(a){var b=[],c=a.N.s;"auto-list"!=c&&"horizontal-list"!=c||Na(b,this.Sa("horizontal-list",a));"auto-list"!=c&&"vertical-list"!=c||Na(b,this.Sa("vertical-list",a));return b};
Ii.prototype.Sa=function(a,b){var c;c=b.J;var d=b.N.P();if(ig(d.Hb))d=new U(d.Hb),"horizontal-list"==a?(c=X(c,this.G,!0),c=V(d,this.G.b,c)):(c=X(c,this.G,!1),c=V(d,this.G.g,c));else if(c=this.G,"horizontal-list"==a)c=Math.round(Math.min(20,.05*c.b));else if("vertical-list"==a)c=Math.round(Math.min(20,.05*c.g));else throw Error("Unknown layout spec type: "+a);for(var d=Mi(this,b,c,a),e=[],f=0;f<d.length;++f){var g=d[f],h=Ta(g);if(1==h){a:{var h=void 0,k=g;for(h in k)break a;h=void 0}e.push(Ci(b.N,
h,Ua(g),b.placeholder))}else{var l=k=0,m;for(m in g)var n=g[m],k=k+n.C.b,l=l+n.C.g;"horizontal-list"==a?(h=Ni(b.N,b.placeholder.b-k,c,h),e.push(Oi(b.N,b.placeholder,g,h))):(h=Ni(b.N,b.placeholder.g-l,c,h),e.push(Pi(b.N,b.placeholder,g,h)))}}return e};
var Ni=function(a,b,c,d){var e=a.P().Hb;if(Li.test(e)){a=a.P().D().length;c=Math.floor(b*parseFloat(e)/100);if(c*(a-1)>b)throw Error("Invalid config, list margin is too big: "+e);e=Math.floor((b-c*(a-1))/2);d<a&&(0==e?c=Math.floor(b/(d-1)):(c=Math.floor(b/(e/c*2+d-1)),e=Math.floor((b-c*(d-1))/2)));return new Ki(c,e)}switch(e){case "none":return new Ki(0,0);case "even_left":return new Ki(Math.floor(b/(d-1)),0);case "even_left_extra":return b=Math.floor(b/(d+1)),new Ki(b,b);default:return new Ki(c,
0)}},Mi=function(a,b,c,d){var e=b.N.P(),f=Ka(e.D(),function(a){a=b.J.ka(a);return!this.vb.la(a.s).W(b.J,a,b.options)},a),f=e.D().length-f-1;c="none"==e.Hb?0:c*f;f=e=0;"horizontal-list"==d?(e=b.placeholder.b-c,f=b.placeholder.g):(e=b.placeholder.b,f=b.placeholder.g-c);if(0>=e||0>=f)return[];c=new Ji(new J(e,f));Qi(a,b,c,d);return c.Kc},Qi=function(a,b,c,d){var e=b.N.P();if(c.index==e.D().length)Ya(c.Mb)||c.Kc.push($a(c.Mb));else{var f=c.cd,e=e.D()[c.index],g=b.J,h=g.ka(e),k=a.vb.la(h.s);if(k.W(g,h,
b.options))for(g=k.Ga(g,h,f,b.options),h=0;h<g.length;++h)c.Mb[e]=g[h],si(a.xb,e,g[h]),a.xb.check()&&(c.cd="horizontal-list"==d?new J(f.b-g[h].C.b,f.g):new J(f.b,f.g-g[h].C.g),++c.index,Qi(a,b,c,d),--c.index),Za(a.xb.eb,e),Za(c.Mb,e);else++c.index,Qi(a,b,c,d),--c.index}},Oi=function(a,b,c,d){var e=Ta(c),f=a.P(),g=0,e=d.rb*(e-1)+2*d.Ob,h;for(h in c)e+=c[h].C.b,g=Math.max(g,c[h].C.g);var k=Bi(a.O,b,new J(e,g)),l={},m=k.v+d.Ob;Ga(f.D(),function(a){if(a in c){var b=c[a],e=Bi(f.O,new T(m,k.A,b.C.b,k.g),
b.C);l[a]=new xi(e,b);m+=e.b;m+=d.rb}});return new vi(Ai(a.O,b,$f(k)),l)},Pi=function(a,b,c,d){var e=Ta(c),f=a.P(),g=0,e=d.rb*(e-1)+2*d.Ob,h;for(h in c)e+=c[h].C.g,g=Math.max(g,c[h].C.b);var k=Bi(a.O,b,new J(g,e)),l={},m=k.A+d.Ob;Ga(f.D(),function(a){if(a in c){var b=c[a],e=Bi(f.O,new T(k.v,m,k.b,b.C.g),b.C);l[a]=new xi(e,b);m+=e.g;m+=d.rb}});return new vi(Ai(a.O,b,$f(k)),l)};var Ri=function(a,b){this.H={};var c=new Gi(a,b),d=new Ii(a,b);this.H.element=new Hi(a,b);this.H["horizontal-list"]=d;this.H["vertical-list"]=d;this.H["auto-list"]=d;this.H["auxiliary-line"]=c};Ri.prototype.reset=function(){D(this.H,function(a){a.reset()})};Ri.prototype.la=function(a){return this.H[a.s]};var Si=function(a,b){this.G=a;this.Ba=b};Si.prototype.jc=function(a,b,c){var d=Math.round(c.b*b/100);b=Math.round(c.g*b/100);switch(a){case 1:return c.A+b;case 2:return c.v+d;case 4:return c.v+c.b-d;case 8:return c.A+c.g-b;default:throw Error("Unknown direction: "+a);}};
var Ti=function(a,b,c){switch(a){case 1:case 2:return b+c;case 4:case 8:return b-c;default:throw Error("Unknown direction: "+a);}},Ui=function(a,b,c){if(0==b)return c[0];if(1==a||2==a)switch(b){case 1:return Math.min.apply(null,c);case 2:return Math.max.apply(null,c);default:throw Error("Unknown operator: "+b);}else switch(b){case 2:return Math.min.apply(null,c);case 1:return Math.max.apply(null,c);default:throw Error("Unknown operator: "+b);}};var Vi=function(a,b){this.Ba=a;this.lc=new Si(b,a)},Wi=function(a,b,c,d){for(var e=b.Y[c].Y,f=b.Y[c].sc,g=[],h=0;h<e.length;++h){var k,l=a.lc,m=e[h].Rc;if(2!=c&&4!=c&&1!=c&&8!=c)throw Error("Unknown direction: "+c);var n=2==c||4==c;k=n?l.G.b:l.G.g;l=X(l.Ba,l.G,n);k=V(m,k,l);if(b.getName()==e[h].ib)var m=a,n=e[h],p=d,l=Wg[n.fc],n=fh(m.Ba,n.ib),m=Wi(m,n,l,p),m=isNaN(m)?NaN:Ti(l,m,k);else m=Xi(a,e[h],k,d);if(isNaN(m))return NaN;m!=Number.MAX_VALUE&&g.push(m)}return 0==g.length?NaN:Ui(c,f,g)},Xi=function(a,
b,c,d){var e=b.fc,f=b.ib;if(!f){a:switch(a=a.lc,e){case 1:case 2:a=0;break a;case 4:a=a.G.b;break a;case 8:a=a.G.g;break a;default:throw Error("Unknown direction: "+e);}return Ti(e,a,c)}if(!d[f]||!d[f].Z)return NaN;if(!d[f].cb())return d=d[f].Z,f=b.Ac,b=b.jc(),a=a.lc.jc(f,b,d),Ti(e,a,c);a:{b=fh(a.Ba,f);for(var f=b.Y[e].Y,g=b.Y[e].sc,h=[],k=0;k<f.length;++k)if(b.getName()!=f[k].ib){var l=Xi(a,f[k],c,d);if(isNaN(l)){c=NaN;break a}l!=Number.MAX_VALUE&&h.push(l)}c=0==h.length?Number.MAX_VALUE:Ui(e,g,
h)}return c},Yi=function(a,b,c){var d=b.v,e=b.v+b.b,f=b.A;b=b.A+b.g;var g=[];c=c.O;c.M(2)||g.push(new T(e,a.A,a.v+a.b-e,a.g));c.M(4)||g.push(new T(a.v,a.A,d-a.v,a.g));c.M(1)||g.push(new T(a.v,b,a.b,a.A+a.g-b));c.M(8)||g.push(new T(a.v,a.A,a.b,f-a.A));var h=0,k=Zf;Ga(g,function(a){var b=a.b*a.g;b>h&&(h=b,k=a)});return k},Zi=function(a,b){return"element"==b.s&&(b=b.P(),"shape"==a.Ba.ka(b).s)?!0:!1};var $i=function(a){this.j=a;this.G=M(a);this.ie=new Ah(a);this.ma=new Nh(a);this.yb=new ri(this.G);this.Tc=new qi(a);this.Ad=new Ri(this.Tc,a)};$i.prototype.Ga=function(a,b){this.pe();var c=a.J;this.rc(c)?(a=z(this.me,this,a,b),Dc(this.j)?Dh(this.ie,c,a):a()):b(null)};$i.prototype.me=function(a,b){var c=a.J.U;uh(c.Na());this.yb.reset(c);a.za=[];if(c=aj(this,a))b(c);else{for(var d=bj(this,a),e=0;e<d.length&&!(a.za=d[e],c=aj(this,a));++e);b(Sh(this.ma))}};
var aj=function(a,b){Df("ec");a.Ad.reset();cj(a,b,{});return Sh(a.ma)};$i.prototype.pe=function(){this.ma.reset()};$i.prototype.rc=function(a){return 0<Qh(this.ma,a)};
var bj=function(a,b){var c=[],d={},e=b.J.D(),f;for(f in e){var g=e[f];"background_image"!=g.s&&(a.Tc.la(g.s).W(b.J,g,b)?(g=b.J.I[f].je,0>=g||(null==d[g]?d[g]=[f]:d[g].push(f))):c.push(f))}b=Wa(d);Ra(b,function(a,b){return b-a});e=[];for(f=0;f<b.length;++f){g=dj(a,d[b[f]]);Ra(g,function(a,b){return a.length-b.length});for(var h=0;h<g.length;++h)e.push(La(c,g[h]));Na(c,g[g.length-1])}return e},dj=function(a,b){if(0==b.length)return[];var c=[[b[0]]];a=dj(a,Oa(b,1));for(var d=0;d<a.length;++d){var e=
a[d];c.push(La(b[0],e));c.push(e)}return c},cj=function(a,b,c){Df("wl");var d=b.J,e;d.Oa||eh(d);e=Va(d.Oa);if(Ta(c)==e.length)Rh(a.ma,new Mh(d,$a(c),a.j));else{for(var f=new Vi(d,a.G),g,h,k=0;k<e.length;++k){var l=e[k];if(!c[l.getName()]){h=void 0;var m=f,n=c,p=fh(m.Ba,l.getName()),q=Wi(m,p,1,n),v=Wi(m,p,2,n),Q=Wi(m,p,4,n),K=Wi(m,p,8,n);if(isNaN(v)||isNaN(Q)||isNaN(q)||isNaN(K))h=null;else if(Q<=v||K<=q)h=Zf;else{q=new T(v,q,Q-v,K-q);for(h in n)if(v=n[h].Z,K=fh(m.Ba,h),Q=m,p.Fb==K.Fb&&!Zi(Q,p)&&!Zi(Q,
K)){var Q=Math.max(v.v,q.v),K=Math.max(v.A,q.A),Qa=Math.min(v.v+v.b,q.v+q.b),v=Math.min(v.A+v.g,q.A+q.g),v=Qa>Q&&v>K?new T(Q,K,Qa-Q,v-K):Zf;v.cb()||(q=Yi(q,v,p))}h=q}if(h){g=l.getName();break}}}if(!g||!h)throw Error("Invalid reference setting for variaiton: "+d.getName());k=h;d=fh(b.J,g);d=a.Ad.la(d).Ga(b.J,d,k,b);for(k=0;k<d.length&&("greedy"!=b.tc||null==Sh(a.ma));k++)c[g]=d[k],ti(a.yb,d[k]),a.yb.check()&&cj(a,b,c),Za(c,g),ui(a.yb,d[k])}};var ej=function(a,b){this.G=M(b);this.pc=a;this.j=b;this.he=new Th(b);this.ma=new Nh(b);this.ye=new $i(b)},gj=function(a,b){var c=Vh(a.he,Wa(a.pc.Jb));fj(a,c,0,b)},fj=function(a,b,c,d){hj(a,b[c],0,z(function(a){a?d(a):c+1>=b.length?d(null):fj(this,b,c+1,d)},a))},hj=function(a,b,c,d){var e=new Wh(a.pc.Jb[b[c]]);e.tc=a.pc.ge;a.ye.Ga(e,z(function(a){if(a){if("greedy"==e.tc){d(a);return}Rh(this.ma,a)}c+1>=b.length?d(Sh(this.ma)):hj(this,b,c+1,d)},a))};var kj=function(a,b,c){ij={};var d=new gh(b);Jh(d);var e=Lb(d.Ub);b=new Kh;b=z(b.Db,b,a,ka(th,e,ka(jj,a,d,function(b){e.style.display="";e.style.opacity="";e.style.visibility="";for(var f in sh)nh(sh[f]);uh([]);if(b){f=new pg(a,d);document.body.style.backgroundColor="interstitial_mb"==Hc(f.j)?"#000":"";var h=new lg(b),k=b.S.D(),l;for(l in k)a:{var m=h,n=k[l],p=n.s,q=m.Gb[n.getName()];if(q)I(n).style.display="",q=q.Z,Jc(m.j)&&(q=new T(M(m.j).b-q.v-q.b,q.A,q.b,q.g)),Oe(I(n),q),I(n).setAttribute("data-type",
n.ac);else if(od(I(n),{position:"",top:"",left:"",width:"",height:""}),"background_image"!=p&&"shape"!=p){I(n).style.display="none";break a}switch(p){case "any":case "shape":mg(m,n);break;case "background_image":p=n;n=I(p);(m=N(m.j,p.aa))?(n.style.backgroundImage="url("+m+")",n.style.backgroundPosition="50% 50%",od(n,"background-size","cover")):(n.style.backgroundImage="",n.style.backgroundPosition="",od(n,"background-size",""));break;case "button":mg(m,n);p=I(n);Rb(p);if("nessieButton"==m.S.I[n.getName()].gc){var p=
kg(m.j,m.S.I[n.getName()]),q=200<eg(p)?"#676767":"#ffffff",n=I(n),p=Jc(m.j),m=L(m.j,"siriusFlagNessieButtonStyle"),v='<svg width="100%" height="100%" viewBox="0 0 26 42" @dir> <polyline fill="none" stroke="@stk" stroke-width="5" stroke-miterlimit="10" points="6,3 24,21 6,39"/></svg>';switch(isNaN(m)?0:parseInt(m,10)){case 1:v='<svg width="100%" height="100%" viewBox="0 0 48 42" @dir> <path fill="none" stroke=@stk stroke-width="5" stroke-miterlimit="10" d="M 25 3 L 43 21 L 25 39" /><path fill="none" stroke="@stk" stroke-width="5" stroke-miterlimit="10" d="M 3 21 L 43 21" /></svg>';
break;case 2:v='<svg width="100%" height="100%" viewBox="0 0 70 42" @dir> <path fill="none" stroke="@stk" stroke-width="5" stroke-miterlimit="10" d="M 47 3 L 65 21 L 47 39" /><path fill="none" stroke=@stk stroke-width="5" stroke-miterlimit="10" d="M 3 21 L 65 21" /></svg>';break;case 3:v='<svg width="100%" height="100%" viewBox="0 0 44 44" @dir> <polygon points="4,17 22,17 22,7 39,23 22,39 22,29 4,29" fill="@stk" /></svg>'}v=p?v.replace(/@dir/g,'style="transform:scaleX(-1);"'):v.replace(/@dir/g,"");
m=v.replace(/@stk/g,q);n.innerHTML=m;m=n.childNodes[0];m.style.position="absolute";m.style.top="26%";m.style.left="0";m.style.width="48%";m.style.height="48%";m.style.margin="0 26%"}else{q=m.Gb[n.getName()];p=N(m.j,n.aa);if(!p)throw Error("Text content is missing in FAD.");v=q.na;n=I(n);ng(m,n,v);m=og(q);b:{q=hg(m,p);if(Kb&&!(F&&G("9")&&!G("10")&&t.SVGElement&&q instanceof t.SVGElement)&&(p=q.parentElement))break b;p=q.parentNode;p=ea(p)&&1==p.nodeType?p:null}p.style.overflow="hidden";p.style.textOverflow=
"ellipsis";p.style.whiteSpace="nowrap";n.appendChild(m)}break;case "text":case "headline":case "description":case "url":q=n;n=I(q);Rb(n);(p=N(m.j,q.aa))||"url"!=q.s||(p=m.j.visible_url);if(!p)throw Error("Text is missing in FAD.");q=m.Gb[q.getName()];v=q.na;0<v.Ha&&(p=za(p,p.length-v.Ha));for(var Q=0,K=0,Qa=!1,gg=eb(p,!0).split(jb),Cd=0;Cd<gg.length;Cd++){var lc=gg[Cd];gb.test(eb(lc,void 0))?(Q++,K++):ib.test(lc)?Qa=!0:fb.test(eb(lc,void 0))?K++:kb.test(lc)&&(Qa=!0)}n.dir=-1==(0==K?Qa?1:0:.4<Q/K?
-1:1)?"rtl":"ltr";Jc(m.j)&&(n.style.textAlign="right");ng(m,n,v);m=og(q);hg(m,p);n.appendChild(m);break;case "image":case "logo":case "product":q=m;v=n;m=I(v);p=q.Gb[v.getName()];n=p.na;Rb(m);v=v.aa;q=Fc(q.j)[0][v];if(y(q))v=q;else throw Error("Gets non string value from: "+v);q=H("IMG");q.style.display="block";q.src=v;p=new T(0,0,p.Z.b,p.Z.g);n=n.fa;Oe(q,new T(p.v+n.left,p.A+n.top,p.b-n.left-n.right,p.g-n.top-n.bottom));m.appendChild(q)}}l=M(f.j);h=new J(t.innerWidth,t.innerHeight);k=new T(0,0,l.b,
l.g);h.b>=l.b&&h.g>=l.g&&(h=new T(0,0,h.b,h.g),k=new T(h.v+Math.round((h.b-l.b)/2),h.A+Math.round((h.g-l.g)/2),l.b,l.g));Oe(f.Ka,k);f.Ka.style.overflow="hidden";f.Ka.setAttribute("data-variation",b.S.getName());Ac(f.j,"siriusFlagNoBorder")||(l=f.Ka.id+"-border",Sb(Lb(l)),h=Ic(f.j),h=L(f.j,"siriusFlagBorderColor")||(h?"#000":"#BDBDBD"),k=L(f.j,"siriusFlagAdBorderRadius")||"0px",m=L(f.j,"siriusFlagAdBorderStyle")||"solid",n=H("DIV"),n.id=l,n.style.borderColor=h,n.style.borderRadius=k,n.style.borderStyle=
m,n.style.borderWidth="1px",n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",n.style.zIndex=500,od(n,{boxSizing:"border-box",pointerEvents:"none"}),f.Ka.style.borderRadius=k,f.Ka.appendChild(n))}c(b)})));Dc(a)?b():Dh(new Ah(a),Ua(d.Jb),b)},jj=function(a,b,c){Y("_bl");lj(a,b,function(a){Y("bl","_bl");c(a)})},ij={},lj=function(a,b,c){var d=M(a).toString(),e=ij[d];void 0!=e?c(e):gj(new ej(b,a),function(a){ij[d]=a;c(a)})};
w("renderAd",function(a,b,c){kh(a);Y("oa");null==a.monitoring||Math.random()>Cc(a)||(Bf=sf(a.monitoring,Af),Cf={});Hf(a,ka(kj,a,b,function(b){Y("_rd");c&&b&&c();Df("rc");Cf.vn=b?b.S.getName():"undefined";b=M(a);Cf.gw=b.b;Cf.gh=b.g;b=Hc(a)||"undefined";Cf.fm=b;Ef();Y("rd","_rd");if(hh)for(var d in jh)0!=d.indexOf("_")&&hh("send","timing",ih,d,jh[d])}))},void 0);w("ClickManager",Dg,void 0);Dg.prototype.setupClickHandler=Dg.prototype.se;}).call(this);
