=w&&E("invalid-input"),((f=(y=e.charCodeAt(o++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:c)>=c||f>_((s-S)/a))&&E("overflow"),S+=f*a,!(f<(g=p<=k?u:p>=k+l?l:p-k));p+=c)a>_(s/(m=c-g))&&E("overflow"),a*=m;k=I(S-i,t=b.length+1,0==i),_(S/t)>s-O&&E("overflow"),O+=_(S/t),S%=t,b.splice(S++,0,O)}return x(b)}function A(e){var t,n,r,o,i,a,p,f,g,m,y,b,w,O,k,x=[];for(b=(e=T(e)).length,t=h,n=0,i=d,a=0;a=t&&y_((s-n)/(w=r+1))&&E("overflow"),n+=(p-t)*w,t=p,a=0;as&&E("overflow"),y==t){for(f=n,g=c;!(f<(m=g<=i?u:g>=i+l?l:g-i));g+=c)k=f-m,O=c-m,x.push(S(P(m+k%O,0))),f=_(k/O);x.push(S(P(f,0))),i=I(n,w,r==o),n=0,++r}++n,++t}return x.join("")}a={version:"1.4.1",ucs2:{decode:T,encode:x},decode:C,encode:A,toASCII:function(e){return k(e,(function(e){return m.test(e)?"xn--"+A(e):e}))},toUnicode:function(e){return k(e,(function(e){return g.test(e)?C(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},8575:function(e,t,n){"use strict";var r=n(2511);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),l=["%","/","?",";","#"].concat(u),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=n(129);function y(e,t,n){if(e&&"object"==typeof e&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=-1!==o&&o127?R+="x":R+=A[D];if(!R.match(f)){var B=I.slice(0,T),N=I.slice(T+1),F=A.match(d);F&&(B.push(F[1]),N.unshift(F[2])),N.length&&(y="/"+N.join(".")+y),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+L,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[_])for(T=0,C=u.length;T0)&&n.host.split("@"))&&(n.auth=P.shift(),n.hostname=P.shift(),n.host=n.hostname);return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var O=S.slice(-1)[0],k=(n.host||e.host||S.length>1)&&("."===O||".."===O)||""===O,T=0,x=S.length;x>=0;x--)"."===(O=S[x])?S.splice(x,1):".."===O?(S.splice(x,1),T++):T&&(S.splice(x,1),T--);if(!w&&!_)for(;T--;T)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),k&&"/"!==S.join("/").substr(-1)&&S.push("");var P,I=""===S[0]||S[0]&&"/"===S[0].charAt(0);E&&(n.hostname=I?"":S.length?S.shift():"",n.host=n.hostname,(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.hostname=P.shift(),n.host=n.hostname));return(w=w||n.host&&S.length)&&!I&&S.unshift(""),S.length>0?n.pathname=S.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.Qc=y},3876:function(e,t,n){e.exports=n(6253)},9661:function(e){!function(t){var n=-1,r={onVisible:function(e){var t=r.isSupported();if(!t||!r.hidden())return e(),t;var n=r.change((function(t,o){r.hidden()||(r.unbind(n),e())}));return n},change:function(e){if(!r.isSupported())return!1;var t=n+=1;return r._callbacks[t]=e,r._listen(),t},unbind:function(e){delete r._callbacks[e]},afterPrerendering:function(e){var t=r.isSupported(),n="prerender";if(!t||n!=r.state())return e(),t;var o=r.change((function(t,i){n!=i&&(r.unbind(o),e())}));return o},hidden:function(){return!(!r._doc.hidden&&!r._doc.webkitHidden)},state:function(){return r._doc.visibilityState||r._doc.webkitVisibilityState||"visible"},isSupported:function(){return void 0!==r._doc.hidden||void 0!==r._doc.webkitHidden},_doc:document||{},_callbacks:{},_change:function(e){var t=r.state();for(var n in r._callbacks)r._callbacks[n].call(r._doc,e,t)},_listen:function(){if(!r._init){var e="visibilitychange";r._doc.webkitVisibilityState&&(e="webkit"+e);var t=function(){r._change.apply(r,arguments)};r._doc.addEventListener?r._doc.addEventListener(e,t):r._doc.attachEvent(e,t),r._init=!0}}};e.exports?e.exports=r:t.Visibility=r}(this)},6253:function(e,t,n){!function(t){var r=-1,o=function(e){return e.every=function(t,n,o){e._time(),o||(o=n,n=null);var i=r+=1;return e._timers[i]={visible:t,hidden:n,callback:o},e._run(i,!1),e.isSupported()&&e._listen(),i},e.stop=function(t){return!!e._timers[t]&&(e._stop(t),delete e._timers[t],!0)},e._timers={},e._time=function(){e._timed||(e._timed=!0,e._wasHidden=e.hidden(),e.change((function(){e._stopRun(),e._wasHidden=e.hidden()})))},e._run=function(n,r){var o,i=e._timers[n];if(e.hidden()){if(null===i.hidden)return;o=i.hidden}else o=i.visible;var a=function(){i.last=new Date,i.callback.call(t)};if(r){var s=new Date-i.last;o>s?i.delay=setTimeout((function(){i.id=setInterval(a,o),a()}),o-s):(i.id=setInterval(a,o),a())}else i.id=setInterval(a,o)},e._stop=function(t){var n=e._timers[t];clearInterval(n.id),clearTimeout(n.delay),delete n.id,delete n.delay},e._stopRun=function(t){var n=e.hidden(),r=e._wasHidden;if(n&&!r||!n&&r)for(var o in e._timers)e._stop(o),e._run(o,!n)},e};e.exports?e.exports=o(n(9661)):o(t.Visibility||n(9661))}(window)},8726:function(e){e.exports=decodeURIComponent("%3Cdiv%20class%3D%22column%20is-banner-id%22%3E%23%7Bsymbol%7D%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-recording-flag%22%3E0%25%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-inview-time%22%3E0.00%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-viewed-indicator%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20class%3D%22not-viewed-icon%20is-visible%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M22.245%204.015a.808.808%200%200%201%200%201.139l-6.276%206.27a.81.81%200%200%200%200%201.14l6.273%206.272a.81.81%200%200%201%200%201.14l-2.285%202.277a.814.814%200%200%201-1.142%200l-6.271-6.271a.81.81%200%200%200-1.141%200l-6.276%206.267a.81.81%200%200%201-1.141%200l-2.282-2.28a.81.81%200%200%201%200-1.14l6.278-6.269a.81.81%200%200%200%200-1.14L1.709%205.147a.808.808%200%200%201%200-1.14l2.284-2.278a.813.813%200%200%201%201.142.001L11.405%208a.81.81%200%200%200%201.141.001l6.276-6.267a.812.812%200%200%201%201.141%200l2.282%202.281z%22%2F%3E%3C%2Fsvg%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20class%3D%22viewed-icon%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M21.652%203.211a.747.747%200%200%200-1.061%200L9.41%2014.34a.744.744%200%200%201-1.062%200L3.449%209.351a.743.743%200%200%200-1.062%200L.222%2011.297a.751.751%200%200%200%20.001%201.07l4.94%205.184c.292.296.771.776%201.062%201.07l2.124%202.141a.751.751%200%200%200%201.062%200l14.366-14.34a.762.762%200%200%200%200-1.071l-2.125-2.14z%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-nohover-time%22%3E0.00%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-nohover-indicator%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20class%3D%22not-viewed-icon%20is-visible%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M22.245%204.015a.808.808%200%200%201%200%201.139l-6.276%206.27a.81.81%200%200%200%200%201.14l6.273%206.272a.81.81%200%200%201%200%201.14l-2.285%202.277a.814.814%200%200%201-1.142%200l-6.271-6.271a.81.81%200%200%200-1.141%200l-6.276%206.267a.81.81%200%200%201-1.141%200l-2.282-2.28a.81.81%200%200%201%200-1.14l6.278-6.269a.81.81%200%200%200%200-1.14L1.709%205.147a.808.808%200%200%201%200-1.14l2.284-2.278a.813.813%200%200%201%201.142.001L11.405%208a.81.81%200%200%200%201.141.001l6.276-6.267a.812.812%200%200%201%201.141%200l2.282%202.281z%22%2F%3E%3C%2Fsvg%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20class%3D%22viewed-icon%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M21.652%203.211a.747.747%200%200%200-1.061%200L9.41%2014.34a.744.744%200%200%201-1.062%200L3.449%209.351a.743.743%200%200%200-1.062%200L.222%2011.297a.751.751%200%200%200%20.001%201.07l4.94%205.184c.292.296.771.776%201.062%201.07l2.124%202.141a.751.751%200%200%200%201.062%200l14.366-14.34a.762.762%200%200%200%200-1.071l-2.125-2.14z%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-reloaded-indicator%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20class%3D%22not-viewed-icon%20is-visible%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M22.245%204.015a.808.808%200%200%201%200%201.139l-6.276%206.27a.81.81%200%200%200%200%201.14l6.273%206.272a.81.81%200%200%201%200%201.14l-2.285%202.277a.814.814%200%200%201-1.142%200l-6.271-6.271a.81.81%200%200%200-1.141%200l-6.276%206.267a.81.81%200%200%201-1.141%200l-2.282-2.28a.81.81%200%200%201%200-1.14l6.278-6.269a.81.81%200%200%200%200-1.14L1.709%205.147a.808.808%200%200%201%200-1.14l2.284-2.278a.813.813%200%200%201%201.142.001L11.405%208a.81.81%200%200%200%201.141.001l6.276-6.267a.812.812%200%200%201%201.141%200l2.282%202.281z%22%2F%3E%3C%2Fsvg%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20class%3D%22viewed-icon%22%3E%3Cpath%20d%3D%22M14%208c-.609%200-.898.43-1%20.883C12.635%2010.516%2011.084%2013%208%2013a4.947%204.947%200%200%201-2.114-.474L6.414%2012c.359-.344.586-.555.586-1%200-.523-.438-1-1-1H3c-.609%200-1%20.492-1%201v3c0%20.541.428%201%201%201%20.484%200%20.688-.273%201-.594l.408-.407A6.933%206.933%200%200%200%208%2015c4.99%200%207-4.75%207-5.938C15%208.336%2014.469%208%2014%208zM3%207.117C3.365%205.485%204.916%203%208%203c.757%200%201.473.171%202.114.473L9.586%204C9.227%204.344%209%204.555%209%205c0%20.523.438%201%201%201h3c.609%200%201-.492%201-1V2c0-.541-.428-1-1-1-.484%200-.688.273-1%20.594l-.408.407A6.933%206.933%200%200%200%208%201C3.01%201%201%205.75%201%206.938%201%207.664%201.531%208%202%208c.609%200%20.898-.43%201-.883z%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-direction-indicator%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%3E%3Cpath%20d%3D%22M15%206H8V3c0-.484-.375-1-1-1-.461%200-.695.287-1%20.54L.625%207C.242%207.313%200%207.555%200%208s.242.688.625%201L6%2013.46c.305.253.539.54%201%20.54.625%200%201-.516%201-1v-3h7c.55%200%201-.45%201-1V7c0-.55-.45-1-1-1z%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E")},4456:function(e){e.exports=decodeURIComponent("%3Cdiv%20class%3D%22inview-timers__row%20is-widget-header%22%3E%3Cdiv%20class%3D%22column%20is-title%20is-banner-id%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cpath%20d%3D%22M8%2021c-1.66%200-3%201.34-3%203s1.34%203%203%203%203-1.34%203-3-1.34-3-3-3zM8%209c-1.66%200-3%201.34-3%203s1.34%203%203%203%203-1.34%203-3-1.34-3-3-3zm0%2024.33a2.67%202.67%200%201%200-.001%205.339A2.67%202.67%200%200%200%208%2033.33zM14%2038h28v-4H14v4zm0-12h28v-4H14v4zm0-16v4h28v-4H14z%22%2F%3E%3Cpath%20fill%3D%22none%22%20d%3D%22M0%200h48v48H0z%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-title%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22%23333%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17%209C8%209%204%2016%204%2016s4%207%2013%207%2013-7%2013-7-4-7-13-7Zm0%2011a4%204%200%201%200%200-8%204%204%200%200%200%200%208Zm0-1a3%203%200%201%200%200-6%203%203%200%200%200%200%206Zm0-2a1%201%200%201%200%200-2%201%201%200%200%200%200%202Z%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-title%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill%3Anone%3Bstroke%3A%23000%3Bstroke-linejoin%3Around%3Bstroke-width%3A2px%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20data-name%3D%22171-Time%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2215%22%20class%3D%22cls-1%22%2F%3E%3Cpath%20d%3D%22M16%205v11l-7%207%22%20class%3D%22cls-1%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-title%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xml%3Aspace%3D%22preserve%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M21.652%203.211a.747.747%200%200%200-1.061%200L9.41%2014.34a.744.744%200%200%201-1.062%200L3.449%209.351a.743.743%200%200%200-1.062%200L.222%2011.297a.751.751%200%200%200%20.001%201.07l4.94%205.184c.292.296.771.776%201.062%201.07l2.124%202.141a.751.751%200%200%200%201.062%200l14.366-14.34a.762.762%200%200%200%200-1.071l-2.125-2.14z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-title%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill%3Anone%3Bstroke%3A%23000%3Bstroke-linejoin%3Around%3Bstroke-width%3A2px%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20data-name%3D%22171-Time%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2215%22%20class%3D%22cls-1%22%2F%3E%3Cpath%20d%3D%22M16%205v11l-7%207%22%20class%3D%22cls-1%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-title%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xml%3Aspace%3D%22preserve%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M21.652%203.211a.747.747%200%200%200-1.061%200L9.41%2014.34a.744.744%200%200%201-1.062%200L3.449%209.351a.743.743%200%200%200-1.062%200L.222%2011.297a.751.751%200%200%200%20.001%201.07l4.94%205.184c.292.296.771.776%201.062%201.07l2.124%202.141a.751.751%200%200%200%201.062%200l14.366-14.34a.762.762%200%200%200%200-1.071l-2.125-2.14z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-title%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20class%3D%22viewed-icon%22%3E%3Cpath%20d%3D%22M14%208c-.609%200-.898.43-1%20.883C12.635%2010.516%2011.084%2013%208%2013a4.947%204.947%200%200%201-2.114-.474L6.414%2012c.359-.344.586-.555.586-1%200-.523-.438-1-1-1H3c-.609%200-1%20.492-1%201v3c0%20.541.428%201%201%201%20.484%200%20.688-.273%201-.594l.408-.407A6.933%206.933%200%200%200%208%2015c4.99%200%207-4.75%207-5.938C15%208.336%2014.469%208%2014%208zM3%207.117C3.365%205.485%204.916%203%208%203c.757%200%201.473.171%202.114.473L9.586%204C9.227%204.344%209%204.555%209%205c0%20.523.438%201%201%201h3c.609%200%201-.492%201-1V2c0-.541-.428-1-1-1-.484%200-.688.273-1%20.594l-.408.407A6.933%206.933%200%200%200%208%201C3.01%201%201%205.75%201%206.938%201%207.664%201.531%208%202%208c.609%200%20.898-.43%201-.883z%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22column%20is-title%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%3E%3Cpath%20d%3D%22M15%206H8V3c0-.484-.375-1-1-1-.461%200-.695.287-1%20.54L.625%207C.242%207.313%200%207.555%200%208s.242.688.625%201L6%2013.46c.305.253.539.54%201%20.54.625%200%201-.516%201-1v-3h7c.55%200%201-.45%201-1V7c0-.55-.45-1-1-1z%22%2F%3E%3C%2Fsvg%3E%3C%2Fdiv%3E%3C%2Fdiv%3E")},8717:function(e){e.exports=decodeURIComponent("%3Cspan%20class%3D%22inviewtime-sticker__symbol%22%3E%23%7Bsymbol%7D%20%7C%3C%2Fspan%3E%3Cspan%20class%3D%22inviewtime-sticker__inview%22%3E0%25%20%7C%3C%2Fspan%3E%3Cspan%20class%3D%22inviewtime-sticker__inview-timer%22%3E0.00%20%7C%3C%2Fspan%3E%3Cspan%20class%3D%22inviewtime-sticker__nohovertimer%22%3E0.00%3C%2Fspan%3E")},2480:function(){},4654:function(){},2239:function(e){"use strict";e.exports=JSON.parse('{"sentryUrl":"","minLoggerLevel":400,"projectName":"sspjs","projectVersion":"38.56.28"}')},7852:function(e){"use strict";e.exports=JSON.parse('{"RQ_COUNT":null,"COLLECT_ANALITYCS_ON_HISTORY_CHANGE":true,"RESET_SYNC_BANNERS_STATE_ON_HISTORY_CHANGE":true,"STYLE_NONCE_VALUE":"","SCRIPT_NONCE_VALUE":""}')}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.amdO={},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce((function(t,n){return o.f[n](e,t),t}),[]))},o.u=function(e){return"js/chunks/"+{386:"e17d8b78eb503e7a67be",689:"62b1cb170a93905fa89a",723:"eb926c6b5083c82eae18"}[e]+".js"},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="SSPjs:",o.l=function(n,r,i,a){if(e[n])e[n].push(r);else{var s,c;if(void 0!==i)for(var u=document.getElementsByTagName("script"),l=0;lwindow.screen.logicalXDPI?e=window.screen.systemXDPI/window.screen.logicalXDPI:void 0!==window.devicePixelRatio&&(e=window.devicePixelRatio),e),size:{height:window.screen.height,width:window.screen.width}},system:{name:x(),version:P()}};var e},C=window||o.g,A=function(){function e(e){void 0===e&&(e=200);var t=this;this.watch=function(){try{try{t.parallelWatch()}catch(e){t._errorHandler(e)}try{t.serialWatch()}catch(e){t._errorHandler(e)}setTimeout(t.watch,t._delay)}catch(e){t._errorHandler(e)}},this._delay=e,this._serialStackPointer=0,this._parallelStack={},this._serialStack={},this.errorHandler=null,this.watch()}return e.prototype.subscribe=function(e){var t=void 0===e?{}:e,n=t.callback,r=void 0===n?function(){return null}:n,o=t.context,i=void 0===o?C:o,a=t.ID,s=void 0===a?this._generateID():a,c=t.params,u=void 0===c?[]:c;return this.parallelSubscribe({ID:s,callback:r,context:i,params:u})},e.prototype.parallelSubscribe=function(e){var t=e.callback,n=void 0===t?function(){return null}:t,r=e.context,o=void 0===r?C:r,i=e.ID,a=void 0===i?this._generateID():i,s=e.params,c=void 0===s?[]:s;return this._parallelStack[a]={callback:n,context:o,params:c},a},e.prototype.serialSubscribe=function(e){var t=e.callback,n=void 0===t?function(){return null}:t,r=e.context,o=void 0===r?C:r,i=e.ID,a=void 0===i?this._generateID():i,s=e.params,c=void 0===s?[]:s;return this._serialStack[a]={callback:n,context:o,params:c},a},e.prototype.unsubscribe=function(e){return this.parallelUnsubscribe(e)},e.prototype.parallelUnsubscribe=function(e){return!("string"!=typeof e||!this._parallelStack[e])&&(this._parallelStack[e]=null,delete this._parallelStack[e],!0)},e.prototype.serialUnsubscribe=function(e){return!("string"!=typeof e||!this._serialStack[e])&&(this._serialStack[e]=null,delete this._serialStack[e],!0)},e.prototype.parallelWatch=function(){try{if(this._parallelStack&&"object"==typeof this._parallelStack&&Object.keys(this._parallelStack).length>0)for(var e in this._parallelStack)if(this._parallelStack.hasOwnProperty(e))try{if(e&&"string"==typeof e){var t=this._parallelStack[e];t&&"object"==typeof t&&t.context&&t.callback&&t.params&&"object"==typeof t.context&&"function"==typeof t.callback&&Array.isArray(t.params)&&t.callback.apply(t.context,t.params)}}catch(e){this._errorHandler(e)}}catch(e){this._errorHandler(e)}},e.prototype.serialWatch=function(){try{if(this._serialStack&&"object"==typeof this._serialStack){var e=Object.keys(this._serialStack);if(e&&e.length>0){this._serialStackPointer>=e.length&&(this._serialStackPointer=0);var t=e[this._serialStackPointer];if(this._serialStackPointer++,this._serialStack.hasOwnProperty(t)&&t&&"string"==typeof t){var n=this._serialStack[t];n&&"object"==typeof n&&n.context&&n.callback&&n.params&&"object"==typeof n.context&&"function"==typeof n.callback&&Array.isArray(n.params)&&n.callback.apply(n.context,n.params)}}}}catch(e){this._errorHandler(e)}},e.prototype._errorHandler=function(e){this.errorHandler&&this.errorHandler(e)},e.prototype._generateID=function(){return"x-"+(new Date).getTime()+"-"+Math.round(1e6*Math.random())},e}(),R=A,D=function(){function e(){this._watchers={}}return e.getInstance=function(){return e._instance||(e._instance=new e),e._instance},e.prototype.init=function(e){void 0===e&&(e=200);var t=this._watchers[e];return t||(t=new R(e),this._watchers[e]=t),t},e.prototype.remove=function(e){var t=this;Object.keys(this._watchers).forEach((function(n){t._watchers[n]===e&&delete t._watchers[n]}))},e}(),j=D,B=o(8341),N=o.n(B),F=o(8214),L=o.n(F),M=j.getInstance().init(200),V={600:"Some uncaught error",503:"Attempt reattach the scripts to the non-object",502:"Block doesn't exist",501:"Banner place doesn't exist",500:"Some caught error",401:"Deprecated call",400:"Some warning",300:"Some info",200:"Some log",101:"Entry point",100:"Some debug",0:"Something"},U=function(){function e(){}return e.init=function(t){if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&(e.settings[n]=t[n]);return e.settings.sentryUrl&&N().config(e.settings.sentryUrl,{environment:"production",logger:"CSLogger",release:e.settings.projectVersion,sampleRate:.25}).install(),e},e.log=function(t,r,o){if("number"==typeof t&&t>0&&"string"==typeof r&&r.length>0){if(t=t||101,r=r||V[t]||"",o=o||{},t>=e.settings.minLoggerLevel){var i={date:new Date,location:location.href,projectName:e.settings.projectName,projectVersion:e.settings.projectVersion,stack:v(),user:I(),message:r,properties:o,status:t,aab_info:n()};e.arrLog.push(i)}return!0}return!1},e.statusLavelSentry=function(e){return"number"==typeof e&&e>0?e>=200&&e<300?"log":e>=300&&e<400?"info":e>=400&&e<500?"warning":e>=500?"error":"debug":""},e.statusLavelConsole=function(e){return"number"==typeof e&&e>0?e>=200&&e<300?"log":e>=300&&e<400?"info":e>=400&&e<500?"warn":e>=500?"error":"debug":""},e.showMessange=function(t,n){if("number"==typeof t&&t>0&&"string"==typeof n&&n.length>0){var r=e.statusLavelConsole(t);return"object"==typeof window&&"object"==typeof window.Debug&&"object"==typeof window.Debug.console&&"function"==typeof window.Debug.console[r]?window.Debug.console[r](n):"object"==typeof window&&"object"==typeof window.CSDebug&&"object"==typeof window.CSDebug.console&&"function"==typeof window.CSDebug.console[r]?window.CSDebug.console[r](n):"object"==typeof console&&"function"==typeof console[r]&&console[r](n),!0}return!1},e.watch=function(){if(e.arrLog.length>0&&e.arrLog.length<100){for(var t=0;t0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r"),cachedBlockShowLoggerFactory:Symbol.for("Factory"),EventEmitter:Symbol.for("EventEmitter"),Store:Symbol.for("Store"),Config:Symbol.for("Config"),ConfigOptions:Symbol.for("ConfigOptions"),UaParserService:Symbol.for("UaParserService"),RenderingWatcherFactory:Symbol.for("Factory"),CoveringWatcher:Symbol.for("CoveringWatcher"),BannerTemplatesStore:Symbol.for("BannerTemplatesStore"),SSPRequestParamsBuilderFactory:Symbol.for("SSPRequestParamsBuilderFactory"),SSPRequestParamsDirector:Symbol.for("SSPRequestParamsDirector"),VastPlaybackWrapper:Symbol.for("VastPlaybackWrapper"),PerformanceTemplatesWrapper:Symbol.for("PerformanceTemplatesWrapper")},K=function(e){this.t=e};K.prototype.inSingletonScope=function(){this.t.singleton=!0};var $=function(e){this.t=e};$.prototype.to=function(e){return this.t.object=e,new K(this.t)},$.prototype.toFactory=function(e){return this.t.factory=e,new K(this.t)},$.prototype.toValue=function(e){if(void 0===e)throw"cannot bind a value of type undefined";this.t.value=e};var Y=function(){this.i=new Map,this.o=[]};Y.prototype.bind=function(e){return new $(this.u(e))},Y.prototype.rebind=function(e){return this.remove(e).bind(e)},Y.prototype.remove=function(e){if(void 0===this.i.get(e))throw e.toString()+" was never bound";return this.i.delete(e),this},Y.prototype.get=function(e){var t=this.i.get(e);if(void 0===t)throw"nothing bound to "+e.toString();var n=t.object,r=t.factory,o=t.value,i=t.cache,a=t.singleton,s=function(e){return a&&void 0!==i?i:a?(t.cache=e(),t.cache):e()};if(void 0!==o)return o;if(void 0!==n)return s((function(){return new n}));if(void 0!==r)return s((function(){return r()}));throw"nothing is bound to "+e.toString()},Y.prototype.snapshot=function(){return this.o.push(new Map(this.i)),this},Y.prototype.restore=function(){return this.i=this.o.pop()||this.i,this},Y.prototype.u=function(e){if(void 0!==this.i.get(e))throw"object can only bound once: "+e.toString();var t={singleton:!1};return this.i.set(e,t),t};var Q=Symbol("NOCACHE");function Z(e,t,n,r,o){Object.defineProperty(e,t,{get:function(){var e=n.get(r);return-1===o.indexOf(Q)&&Object.defineProperty(this,t,{value:e,enumerable:!0}),e},configurable:!0,enumerable:!0})}var ee,te,ne=new Y,re=function(e){return function(t){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return function(e,t,n){return function(r,o){Z(r,o,t,e,n)}}(t,e,n)}}(ne),oe=function(e){return function(t){for(var n,r=[],o=arguments.length-1;o-- >0;)r[o]=arguments[o+1];return function(){return-1===r.indexOf(Q)&&void 0!==n||(n=e.get(t)),n}}}(ne),ie=function(e){return(e.context&&e.context.location||e.document&&e.document.location).href};!function(e){e.LIB="lib",e.FEED="feed",e.BLOCK="block",e.PAGE="page"}(ee||(ee={})),function(e){e.INIT="init",e.LOAD="load",e.PREDRAW="predraw",e.DRAW="draw",e.DRAW_COMPLETE="drawComplete",e.UNEXIST="unexist",e.SPA_UPDATE="spaUpdate",e.REAL_SHOW="realShow"}(te||(te={}));var ae,se,ce=o(2238),ue=o.n(ce),le=o(3876),pe=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fe=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},de=function(){function e(e,t){var n=(void 0===t?{}:t).subscribeOnInit,r=void 0===n||n,o=this;this._externalCallback=e,this._subscribed=!1,this._unregisterSpaPageUpdate=function(){o._eventEmitter.unregister(ee.PAGE,te.SPA_UPDATE,o._onUnload)},this._registerSpaPageUpdate=function(){var e,t;o._eventEmitter.register(((e={})[ee.PAGE]=((t={})[te.SPA_UPDATE]=o._onUnload,t),e))},this._onUnload=function(){o.unsubscribe(),o._externalCallback(!0)},r&&this.subscribe()}return e.prototype.subscribe=function(){this._subscribed||(this._subscribed=!0,this._setCommonListeners(),this._setMobileListeners(),this._registerSpaPageUpdate())},e.prototype.unsubscribe=function(){var t=this;this._subscribed&&(this._subscribed=!1,this._unregisterSpaPageUpdate(),e.events.forEach((function(e){return window.removeEventListener(e,t._onUnload)})),(0,le.unbind)(this._pageVisibilityListenerId))},e.prototype._setMobileListeners=function(){var e=this;"mobile"!==this._uaparser.getDevice().type&&"tablet"!==this._uaparser.getDevice().type||(this._pageVisibilityListenerId=(0,le.change)((function(){(0,le.hidden)()&&e._onUnload()})))},e.prototype._setCommonListeners=function(){var t=this;e.events.forEach((function(e){return window.addEventListener(e,t._onUnload,!1)}))},e.events=["unload","beforeunload","pagehide"],pe([re(J.EventEmitter),fe("design:type",Object)],e.prototype,"_eventEmitter",void 0),pe([re(J.UaParserService),fe("design:type",ue())],e.prototype,"_uaparser",void 0),e}(),he=de,ve=function(e,t,n){return e.includes("?")?"".concat(e,"&").concat(t,"=").concat(n):"".concat(e,"?").concat(t,"=").concat(n)},ge=function(e){var t,n=!0,r="https:";if(t=window.context&&window.context.location&&(window.context.location.protocol||window.context.location.href)?window.context.location.protocol?window.context.location.protocol.toLowerCase():window.context.location.href.split(":").shift().toLowerCase():document.location.protocol.toLowerCase(),r===(t="".concat(t.split(":").shift(),":"))){var o=e.match(/^[^:\/?#]+:/);null!==o&&(n=o[0]===r)}return n},me=function(e){if(-1!==e.indexOf("&ut={{TIME}}")){var t=Date.now();e=e.replace("{{TIME}}","".concat(t))}if(ge(e)){var n=document.createElement("img");return n.setAttribute("src",e),n}return!1},ye=function(e,t){var n=e.contentWindow,r=n?n.document:null;r&&"complete"===r.readyState?t(r):e.onload=function(){e.onload=null,t(n.document)}},be=function(e){var t="object"==typeof e?e:document.getElementById(e);return t&&!t.id&&(t.id=Math.random().toString(36).replace(/[^a-z]+/g,"")),t},we=function(){return we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Me=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ve=q(o(2239)),Ue=function(){function e(){this.eventsArray=[],this.bannerInfoMap=new Map,this.commonInfo=this.getCommonInfo()}return e.prototype.serialize=function(e){var t=JSON.stringify(e),n=new TextEncoder;return Array.from(n.encode(t))},e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.logMetrics=function(e){var t=e.divId,n=e.eventType,r=e.bannerInfo,o=e.impressionId,i=e.misc,a=e.mime,s=e.method,c=e.bannerTime;r||(r=this.bannerInfoMap.get(t));var u=void 0!==c?c:this._metricsTimer.getTime(t,n);if("number"==typeof u){if(u<0)return;return this.bannerInfoMap.set(t,r),this.sendMetrics({divId:t,bannerInfo:r,eventType:n,bannerTimers:u,impressionId:o,misc:i,mime:a,method:s})}Ve.log(400,u.message,r)},e.prototype.freezeTimer=function(e){this._metricsTimer.freezeTimer(e)},e.prototype.unFreezeTimer=function(e){this._metricsTimer.unFreezeTimer(e)},e.prototype.clearBannerTimersMap=function(e){e?this._metricsTimer.clearBannerTimersMap(e):this._metricsTimer.clearBannerTimersMap()},e.prototype.sendMetrics=function(t){var n=t.divId,r=t.bannerInfo,o=t.eventType,i=t.bannerTimers,a=t.impressionId,s=t.misc,c=t.mime,u=t.method,l=Date.now(),p={event_bytes:this.serialize(Fe(Fe(Fe({divId:n},r),this.commonInfo),{impressionId:a,time:i,type:o,timestamp:l,misc:s,mime:c,method:u})),type:"m-capirs"};return this.eventsArray.push(p),this.eventsArray.length>=e.BATCH_SIZE?this.sendMetricsRequest():(window.clearTimeout(this.sendTimeoutId),this.sendTimeoutId=window.setTimeout(this.sendMetricsRequest.bind(this),800)),ie(window).includes(h.METRICS)&&console.log(Fe(Fe(Fe({divId:n},r),this.commonInfo),{impressionId:a,time:i,type:o,timestamp:l,misc:s,mime:c,method:u})),Fe(Fe(Fe({divId:n},r),this.commonInfo),{time:i,type:o})},e.prototype.sendMetricsRequest=function(){if(this.eventsArray.length){var t=this.eventsArray.splice(0,e.BATCH_SIZE),n=Date.now(),r=JSON.stringify({req_guid:Math.random().toString(),sent_time:{seconds:Math.floor(n/1e3),nanos:n%1e3*1e6},events:t});fetch("https://cls.ad-tech.ru/api/v1/events",{method:"POST",headers:{"Content-Type":"application/json","X-User-ID":"user-4",Accept:"application/json, text/plain, */*"},body:r}).catch((function(e){return console.log("error",e)}))}},e.prototype.getCommonInfo=function(){var e=I().browser,t=e.browser,n=e.version,r=I().system,o=r.name,i=r.version;return{capirsVersion:a,browserName:t,browserVersion:n,deviceType:Re(this._uaparser.getDevice().type),osName:o,osVersion:i}},e.BATCH_SIZE=10,Le([re(J.UaParserService),Me("design:type",ue())],e.prototype,"_uaparser",void 0),Le([re(J.MetricsTimer),Me("design:type",Object)],e.prototype,"_metricsTimer",void 0),e}(),He=function(){function e(){}return e.prototype.logMetrics=function(){},e.prototype.clearBannerTimersMap=function(){},e.prototype.freezeTimer=function(){},e.prototype.unFreezeTimer=function(){},e}();!function(e){e[void 0]="before_all",e.callAd="m_call_ad",e.startReq="m_start_req",e.feed="m_feed",e.noBanner="m_no_banner",e.nurlCallBanner="m_nurl_call_banner",e.nurlBanner="m_nurl_banner",e.nurlNoBanner="m_nurl_no_banner",e.rendered="m_rendered",e.viewable="m_viewable",e.reached="m_reached",e.feed_ttfb="m_feed_ttfb",e.nurl_ttfb="m_nurl_ttfb"}(ae||(ae={})),function(e){e.wrongEventType="Wrong event type",e.wrongEventOrder="Wrong event order",e.wrongFreezeOrder="Wrong freeze order"}(se||(se={}));var We,qe=function(){function e(){this.freezeTimersMap=new Map,this.bannerTimersMap=new Map}return e.prototype.freezeTimer=function(e){this.freezeTimersMap.get(e)||this.freezeTimersMap.set(e,[Date.now(),0])},e.prototype.unFreezeTimer=function(e){var t=this.freezeTimersMap.get(e);t[1]||(t[1]=Date.now(),this.freezeTimersMap.set(e,t))},e.prototype.getTime=function(e,t){var n=this.getBannerTimers(e),r=this.freezeTimersMap.get(e),o=n.lastMetricType;if(t===ae.callAd&&t===o)return-1;var i=this.getEventTimers(n,t,r);return!0===i.ok?(n.timers[t]=i.result,n.lastMetricType=t,this.setBannerTimers(e,n),this.freezeTimersMap.delete(e),n.timers[t].timeSinceLast):new Error(i.error)},e.prototype.clearBannerTimersMap=function(e){e?(this.bannerTimersMap.delete(e),this.freezeTimersMap.delete(e)):(this.bannerTimersMap.clear(),this.freezeTimersMap.clear())},e.prototype.getBannerTimers=function(e){var t=this.bannerTimersMap.get(e);return t||{timers:{},lastMetricType:ae.undefined}},e.prototype.setBannerTimers=function(e,t){this.bannerTimersMap.set(e,t)},e.prototype.getEventTimers=function(e,t,n){var r=e.timers,o=e.lastMetricType,i=0;if(n){var a=n[0];i=n[1]-a}return this.getTimer(r,t,i,o)},e.prototype.getTimer=function(e,t,n,r){return n<0?{ok:!1,error:se.wrongFreezeOrder}:t===ae.callAd&&r===ae.undefined?void 0!==e[t]?{ok:!1,error:se.wrongEventOrder}:{ok:!0,result:{eventTime:Date.now(),timeSinceLast:0}}:void 0===e[r]||void 0!==e[t]?{ok:!1,error:se.wrongEventOrder}:{ok:!0,result:{eventTime:Date.now(),timeSinceLast:Date.now()-e[r].eventTime-n}}},e}();function ze(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$e=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ye=function(){function e(){this._configStore={},this._hydrate()}return e.prototype.getConfigValue=function(e){return this._configStore[e]},e.prototype.getConfigStore=function(){return this._configStore},e.prototype._hydrate=function(){for(var e=window.CAPIRS_CONFIG||{},t=Object.keys(this._allowedOptions),n=0;n-1};var Qt=function(e,t){var n=this.__data__,r=Xt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Zt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},An=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Rn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Dn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Fn=function(){function e(){}return e.prototype.attemptRefresh=function(e,t){var n=this._inViewTimersService.inViewTimers[e];return!(!n||this._syncBannersService.isSessionBanner({nodeID:e}))&&n.attemptRefresh(t)},Bn([re(J.SyncShow),Nn("design:type",jn)],e.prototype,"_syncBannersService",void 0),Bn([re(J.MethodsInitializer),Nn("design:type",Object)],e.prototype,"_inViewTimersService",void 0),e}(),Ln=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Vn=function(){function e(e,t,n,r,o,i,a){this.isUrlCalled=!1,this._viewableBanner=t,this._ID=n,this.url=e.url,this.impressionId=o,this.misc=i,this.mime=a,this.percent=e.percent,this.time=e.time,this._div_ID=r}return e.prototype.startTimer=function(){var e=this;this.stopTimer(),this._timer=setTimeout((function(){e._callUrl(),e._logUrlCall()}),this.time)},e.prototype.isTimerStarted=function(){return!!this._timer},e.prototype.stopTimer=function(){clearTimeout(this._timer),this._timer=null},e.prototype.setViewableBanner=function(e){this._viewableBanner=e},e.prototype.getViewableBanner=function(){return this._viewableBanner},e.prototype._callUrl=function(){Oe({src:ve(this.url,"capirs_nocache",Date.now()),target:document.body,document:document}),this.isUrlCalled=!0},e.prototype._logUrlCall=function(){var e=0===this.percent?"minimal part":"".concat(100*this.percent,"%");this._metricsTransport.logMetrics({divId:this._div_ID,eventType:ae.viewable,impressionId:this.impressionId,misc:this.misc,mime:this.mime}),window.Debug.info("Banner was seen for ".concat(e," during ").concat(this.time,"ms, ID: ").concat(this._ID,", called url: ").concat(this.url))},Ln([re(J.MetricsTransport),Mn("design:type",Ue)],e.prototype,"_metricsTransport",void 0),e}();!function(e){e.FULLSCREEN="fullscreen",e.FLOATING_BILLBOARD="floatingBillboard"}(kn||(kn={}));var Un=function(){function e(){}return e.checkRootLVLBannerByFeed=function(t){if(t&&t.banners.graph[0]){var n=t.banners.graph[0].view_type;for(var r in e.rootBannersTypes)if(e.rootBannersTypes.hasOwnProperty(r)&&n.includes(e.rootBannersTypes[r]))return r}},e.getRootElementType=function(t){for(var n in"string"==typeof t&&(t=window.document.getElementById(t)),e.rootBannersTypes)if(e.rootBannersTypes.hasOwnProperty(n)){var r=e.rootBannersTypes[n];if(t.querySelector("script[src*=".concat(r,"]")))return n}return null},e.getActualBannerPlace=function(t,n){return n||(n=e.getRootElementType(t)),n?e.getNestedBanner(t,n)||e.findByDataPlaceId(t)||e.getGlobalBanner(n):e.findByDataPlaceId(t)},e.getNestedBanner=function(t,n){return t?t.querySelector(e.rootBannersQuerySelectors[n]):null},e.findByDataPlaceId=function(t,n){if(void 0===n&&(n=document),!t)return null;var r=t.querySelector("[".concat(e.PLACE_ID_ATTR,"]"));return r&&Array.from(n.querySelectorAll("[".concat(e.PLACE_ID_ATTR,'="').concat(r.dataset.bannerPlaceId,'"]'))).find((function(e){return e!==r}))||null},e.getGlobalBanner=function(t){return document.querySelector(e.rootBannersQuerySelectors[t])},e.rootBannersTypes={branding:"Branding",fullscreen:"Fullscreen",floatingBillboard:"FloatingBillboard",shade:"Shade"},e.PLACE_ID_ATTR="data-banner-place-id",e.rootBannersQuerySelectors={branding:"[class*='branding-wrapper'][data-banner-place-id]",fullscreen:"[class*='fullscreen-wrapper'][data-banner-place-id]",floatingBillboard:"[class*='floating-billboard'][data-project-name='floatingbillboard']",shade:"[class*='shade-banner'][data-project-name='Shade']"},e}(),Hn=function(e){return e&&"object"==typeof e&&e.document&&"object"==typeof e.document},Wn=function(e){return void 0===e&&(e=window),Hn(e)?e.pageYOffset||e.document.documentElement&&e.document.documentElement.scrollTop||e.document.body&&e.document.body.scrollTop:NaN},qn=Math.ceil,zn=Math.max;var Gn=function(e,t,n,r){for(var o=-1,i=zn(qn((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a};var Xn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Jn=function(e){return null!=e&&Xn(e.length)&&!wt(e)},Kn=/^(?:0|[1-9]\d*)$/;var $n=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Kn.test(e))&&e>-1&&e%1==0&&es))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var p=-1,f=!0,d=2&n?new wr:void 0;for(i.set(e,t),i.set(t,e);++p-1};var oi=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r=200){var u=t?null:ai(e);if(u)return Tr(u);a=!1,o=Sr,c=new wr}else c=t?[]:s;e:for(;++rdocument.documentElement.clientHeight?document.documentElement.clientHeight:o}},hi=function(e,t){var n=di(e),r=di(t);return n.topr.top&&n.leftr.left},vi=function(e,t){return e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right},gi=dn((function(e,t){return[.3*e,.3*t]})),mi=function(e){var t,n=e.elementFromPoint,r=e.covered,o=e.nodeToExclude;return n&&!r.isSameNode(n)&&!document.body.isSameNode(n)&&!fi(n,r)&&!fi(r,n)&&!function(e,t){return!!e&&(fi(e,t)||t.isSameNode(e))}(o,n)&&!fi(null===(t=document.getElementsByClassName("branding-wrapper"))||void 0===t?void 0:t[0],n)&&!n.classList.contains("rectangle-point")},yi=function(e,t){var n=document.querySelector(".inview-timers-wrapper"),r=[];return t.forEach((function(e){var t,n,o=(t=e[0],n=e[1],document.elementsFromPoint?document.elementsFromPoint(t,n):Array.from(document.msElementsFromPoint(t,n)));r.push.apply(r,o)})),Array.from(new Set(r)).filter((function(t){return mi({covered:e,elementFromPoint:t,nodeToExclude:n})}))},bi=function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left}},wi=function(e){var t,n,r=yi(e,function(e,t){var n=di(e.getBoundingClientRect()),r=n.left,o=n.right,i=n.top,a=n.bottom,s=ur(r+2,o-2,t[0]),c=ur(i+2,a-2,t[1]);return s.reduce((function(e,t){return pi(pi([],e,!0),c.map((function(e){return[t,e]})),!0)}),[])}(e,gi(e.clientWidth,e.clientHeight)));if(r.length>0){var o=r.find((function(e){return e.id.includes("pushwoosh-popup")})),i=r.reduce((function(t,n){var r=function(e,t){for(var n=[],r=e;r.parentElement&&!r.parentElement.contains(t)&&r.parentElement.clientHeight*r.parentElement.clientWidth>=r.clientHeight*r.clientWidth;)n.push(r.parentElement),r=r.parentElement;return n}(n,e).reverse().find((function(e){return e.getBoundingClientRect().bottom>=0}));return pi(pi([],t,!0),[r||n],!1)}),[]);o&&(i=i.filter((function(e){return!e.contains(o)}))).push(o);var a=function(e){if(1===e.length)return e;for(var t=pi([],e.slice(0),!0),n=function(e){var n=t[e],r=e,o=t.reduce((function(e,t,o){return n&&t&&hi(t,n)&&r!==o?pi(pi([],e,!0),[{intersectedIndex:o,intersectedElement:t}],!1):e}),[]);if(o.length>0)for(var i=0;ih&&(m={top:u,right:l,bottom:p,left:h},s.right=h,t.push(m)),p>v&&(m={top:v,right:l,bottom:p,left:f},s.bottom=v,t.push(m)),f".concat(t,""),document.body.append(a)})));var s=(a||[]).reduce((function(t,n){return t+function(e,t){var n=di(e),r=di(t),o=r.top,i=r.right,a=r.bottom,s=r.left,c=n.top,u=n.right,l=n.bottom,p=n.left,f=l-c,d=u-p,h=i-s,v=a-o;if(vi(r,n))return Math.round(v*h/(f*d)*100);if(vi(n,r))return 100;var g=0,m=0;return g=o<=c?a>=l?f:a-c:a>=l?l-o:v,m=s<=p?i>=u?d:i-p:i>=u?u-s:h,Math.round(g*m/(f*d)*100)}(bi(e),n)}),0);return Math.min(s,100)}return 0},_i=function(){function e(){this.subscribers={},this.observables={}}return e.prototype.stopCheckCovering=function(e){cancelIdleCallback(this.observables[e].idleCallbackId),delete this.observables[e]},e.prototype.subscribe=function(e,t){this.subscribers[e]=this.subscribers[e]||[],this.subscribers[e].push(t),this.observables[e]||(this.observables[e]=this.observables[e]||{idleCallbackId:null,isCoveringCheckPermitted:!1,coveringPercent:null},this.setCoveringCheckPermission(e),this.initIdleCallback(e))},e.prototype.unsubscribe=function(e,t){this.subscribers[e]=this.subscribers[e].filter((function(e){return e!==t})),this.subscribers[e].length<1&&this.stopCheckCovering(e)},e.prototype.initIdleCallback=function(e){var t=this;if(this.observables[e].isCoveringCheckPermitted){var n=document.getElementById(e),r=function(){t.emitCurrentState(e,wi(n)),requestIdleCallback(r)};this.observables[e].idleCallbackId=requestIdleCallback(r)}},e.prototype.setCoveringCheckPermission=function(e){this.observables[e].isCoveringCheckPermitted=u.some((function(t){return"begun_block_".concat(t)===e}))},e.prototype.emitCurrentState=function(e,t){this.subscribers[e].forEach((function(e){return e(t)}))},e}(),Si=function(){return Si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oi=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ki=".unbounded-banner-place",Ti="[data-project-name='unbounded']",xi=function(){function e(e,t,n,r,o,i){var a=this;this._isRealBannerPlaceFound=!1,this._unboundedBannerThreshold={isEnabled:!1,value:ur(0,.9,.01).map((function(e){return Math.round(100*e)/100}))},this._coveringPercent=0,this.updateCoveringPercent=function(e){e!==a._coveringPercent&&(a._coveringPercent=e,a._observer.unobserve(a._viewableElement),a._observer.observe(a._viewableElement))},e&&"object"==typeof e&&1===e.nodeType&&e.parentElement&&"HTML"!==e.parentElement.nodeName?(this._ID=e.id||ke(),e.id=this._ID):e&&"string"==typeof e&&e.length>0?(this._ID=e,e=document.getElementById("".concat(this._ID))):e=null,(e||"string"==typeof this._ID)&&(this._viewableElement=e,this._div_ID=this._viewableElement.parentElement.id,this.impressionId=r,this.misc=o,this.mime=i,this._setUnboundedBannerThreshold(),this._viewabilityBreakpoints=t.map((function(e){return new Vn(e,a._viewableElement,a._ID,a._div_ID,a.impressionId,a.misc,a.mime)})),"string"==typeof n?this._searcherID=n:"string"==typeof this._ID?this._searcherID=this._ID:this._searcherID="",this._timer=j.getInstance().init(100),this._searcherID=this._timer.subscribe({context:this,callback:this._trackViewableElement,ID:this._searcherID||void 0}),this.coveringWatcher.subscribe(this._viewableElement.id,this.updateCoveringPercent),this._watch())}return e.prototype.stopSearch=function(){this._timer.unsubscribe(this._searcherID)},e.prototype._trackViewableElement=function(){if(this._checkBannerExistingInDOM(),this._checkThatViewableElementFound(),this._isRealBannerPlaceFound)this.stopSearch();else{var e=this._viewableElement;this._attemptFindRealBannerPlace(),this._isRealBannerPlaceFound&&(this._observer.unobserve(e),this._observer.observe(this._viewableElement))}},e.prototype._watch=function(){var e=this;this._viewableElement.onclick=this.callViewPoint.bind(this),this._viewableElement.oncontextmenu=this.callViewPoint.bind(this);var t=null;this._unboundedBannerThreshold.isEnabled?(t=this._unboundedBannerThreshold.value,this._mutationObserver=new MutationObserver((function(t){for(var n=0,r=t;n=t},e.prototype._isSizeSatisfied=function(e,t){return e>15&&t>15},e.prototype._isBannerRendered=function(e){if(this._unboundedBannerThreshold.isEnabled){var t=e.querySelector(ki);return!!t&&!!t.querySelector(Ti)}return!0},e.prototype._setUnboundedBannerThreshold=function(){this._unboundedBannerThreshold.isEnabled=!!this._viewableElement.querySelector("script[src*=Unbounded]")},e.prototype.callViewPoint=function(){this._viewabilityBreakpoints=this._viewabilityBreakpoints.filter((function(e){return!e.isUrlCalled&&(e.startTimer(),!0)}))},Ei([re(J.CoveringWatcher),Oi("design:type",_i)],e.prototype,"coveringWatcher",void 0),e}(),Pi=xi,Ii=function(){function e(){this.timer=j.getInstance().init(100)}return e.prototype.create=function(e,t,n,r,o){var i,a=this,s=new Promise((function(s){var c;"string"==typeof(c="object"==typeof e?e:"AdFox_banner_".concat(e))&&((c=window.document.getElementById(c))||(c=window.document.getElementById("AdFox_iframe_".concat(e)))),c&&(i=a.timer.subscribe({context:a,callback:function(e,t){(e=Un.getActualBannerPlace(e)||e).clientWidth*e.clientHeight>0&&e.clientWidth>15&&e.clientHeight>15&&(a.timer.unsubscribe(i),s(new Pi(e,t,i,n,r,o)))},params:[c,t]}))}));return function(){a.timer.unsubscribe(i),s.then((function(e){return e.stopSearch()}))}},e}(),Ci=Ii,Ai=function(e){return"object"==typeof e&&null!==e?(e.id||(e.id=Math.random().toString(36).replace(/[^a-z]+/g,"")),e.id):e},Ri=function(){return Ri=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=a&&(s.style.height="auto");for(var c=[],u=0,l=s.children;u0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1] .is-link","div[class*='-banner-place'] > div[class*='-banner']"];e15&&t.clientHeight>n},e.prototype._doesBegunBlockHaveAd=function(){var e=this._mainBannerPlace.querySelector("#begun_block_".concat(this._optionsB["begun-block-id"]));return e&&e.children.length>0},e.prototype._isWatchingTimeOver=function(){var e=this._isTimeToWatchFinite?1e4:1/0;return Date.now()-this._bannerPlaceStartTime>e},e.prototype._isTimeToFindBannerPlaceOver=function(){return Date.now()-this._bannerPlaceStartTime>2e3},e.CHECK_INTERVAL=1e3/30,e.mediaTemplatesWithMimeXFrameHTML={},e}(),$i=Ki,Yi=function(e){return e&&e.feed};!function(e){e.X_HTML="application/x-html",e.X_MIXED_IFRAME_HTML="application/x-mixed-iframe-html",e.X_IFRAME_HTML="application/x-iframe-html",e.X_FIXED_IFRAME_HTML="application/x-fixed-iframe-html",e.X_JAVASCRIPT="application/x-javascript",e.X_SHOCKWAVE_FLASH="application/x-shockwave-flash",e.X_SHARED_SCRIPTS="application/x-shared-scripts",e.VAST_XML="application/vast-xml",e.TEXT_HTML="text/html",e.TEXT_URL="text/url"}(Mi||(Mi={})),function(e){e.ATOMS="Atoms",e.BRANDING="Branding",e.FULLSCREEN="Fullscreen"}(Vi||(Vi={}));var Qi,Zi=function(){return Zi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n.+[&]?.*\}/g,this.tpl=e||"",this.braces=/\{\{(.*?)}}/g}return e.prototype.evaluate=function(e){var t=this.tpl.match(this.arrowCssRuleRegExp);return null!==t&&t.length>0&&(e=this.unifyVariableObject(e)),this.tpl=this.tpl.replace(/[$#]\{([^$#}]+)}/gi,(function(t,n){return n.split("&")[0].split("->").reduce((function(e,t){return e[t]||""}),e)||n.split("&")[1]||""})),this.tpl},e.prototype.unifyVariableObject=function(e){for(var t in e)if(e.hasOwnProperty(t)&&t.indexOf(":")>0){var n=t.split(":");"object"==typeof e[n[0]]||(e[n[0]]={}),e[n[0]][n[1]]=e[t]}return e},e}(),oa=function(e){var t=window.getComputedStyle(e).getPropertyValue("position");""!==t&&"static"!==t||(e.style.position="relative")};function ia(e,t){var n=e.match(l);if(n){var r=n.map((function(e){return e.replace(/ |:|\[|\]/gi,"")}));r=r.join(",").split(",");for(var o=0,i=1;io?Number(r[i]):o;return"".concat(o,"px")}return t}var aa,sa,ca=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ua=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},la=ur(0,1.01,.01).map((function(e){return Math.round(100*e)/100})),pa=function(){function e(e,t){var n=this;this._emitter=t,this.indexScss=o(3249),this.indexPug=o(4456),this.bannerLinePug=o(8726),this.stickerPug=o(8717),this.defaultSettings={defaultViewedPercent:.5,customViewedPercent:0,thresholdViewedTime:0,thresholdNoHoverTime:0,removeAfterResolve:!1,demo:!1,showPanel:-1!==location.search.indexOf("view_time=true")},this.indicators={panel:null,line:null,id:null,recording:null,inviewTimer:null,viewedIndicator:null,viewedIndicatorNotViewed:null,viewedIndicatorViewed:null,nohoverTimer:null,nohoverIndicator:null,nohoverIndicatorNotViewed:null,nohoverIndicatorViewed:null,reloadedIndicator:null,reloadedIndicatorNotViewed:null,reloadedIndicatorViewed:null,directionIndicator:null,sticker:null,stickerInView:null,stickerInViewTimer:null,stickerNoHoverTimer:null},this.inViewTimerStart=Date.now(),this.inViewPrevTimestamp=Date.now(),this.noHoverTimerStart=Date.now(),this.noHoverPrevTimestamp=Date.now(),this.inViewTimerCount=0,this.inViewSessionTime=0,this.noHoverTimerCount=0,this.noHoverTimerSessionTime=0,this._coveringPercent=0,this._updateCoveringPercent=function(e){n._coveringPercent!==e&&(n._coveringPercent=e,n._observer.unobserve(n.params.target),n._observer.observe(n.params.target))},this._handleDemoMode(e.demo),this.params=Object.assign(this.defaultSettings,e),this.params.target&&(this.preInit(),this.params.showPanel&&this.init(),this.postInit())}return e.prototype.attemptRefresh=function(e){var t=e.areaThreshold,n=e.timeThreshold,r=e.targetTimeThreshold;if(!this.isRefreshStarted){var o=this.getInViewTime(r),i=this.calculateInView(Fi(this.params.target));if(o>=n&&i>=t)return this.isRefreshStarted=!0,this._manualRefreshPromiseResolve("manualRefresh"),this.inViewTimerResolve(),this.noHoverTimerResolve(),!0}return!1},e.prototype.preInit=function(){var t=this;this._observer=new IntersectionObserver((function(e){var n=e&&e[0];t._inViewBannerPercent=100*n.intersectionRatio-n.intersectionRatio*t._coveringPercent}),{root:null,rootMargin:"0px",threshold:la}),this._observer.observe(this.params.target),this.params.target_id="".concat(this.params.target.id,"-").concat(Math.random().toString(36).replace(/[^a-z]+/g,"")),this.inViewTimerPromise=new Promise((function(e,n){t.inViewTimerReject=n,t.inViewTimerResolve=e})),this.noHoverTimerPromise=new Promise((function(e,n){t.noHoverTimerReject=n,t.noHoverTimerResolve=e})),this._manualRefreshPromise=new Promise((function(e,n){t._manualRefreshPromiseResolve=e,t._manualRefreshPromiseReject=n})),this.promise=new Promise((function(e,n){t.reject=n,t.resolve=e,Promise.race([t.inViewTimerPromise,t.noHoverTimerPromise]).then((function(){if(t.indicators.sticker){var e=ke(),n=qi({rules:{background:"hsl(50, 100%, 33%)"},nonce:t._config.getConfigValue("STYLE_NONCE_VALUE"),className:e});t.indicators.sticker.parentElement.appendChild(n),t.indicators.sticker.classList.add(e)}})),Promise.all([t.inViewTimerPromise,t.noHoverTimerPromise]).then((function(){if(t.indicators.sticker){var n=ke(),r=qi({rules:{background:"hsl(100, 100%, 33%)"},nonce:t._config.getConfigValue("STYLE_NONCE_VALUE"),className:n});t.indicators.sticker.parentElement.appendChild(r),t.indicators.sticker.classList.add(n)}t.params.removeAfterResolve?e():e(t._manualRefreshPromise)})).catch(n)})),e.timer.errorHandler=this.reject},e.prototype.init=function(){if(this.indicators.panel=this.indicators.panel||window.document.querySelector(".inview-timers-wrapper"),!this.indicators.panel){var t=window.document.createElement("div");t.className="inview-timers-wrapper",t.innerHTML=new ra(this.indexPug).evaluate({}),this.indicators.panel=window.document.body.appendChild(t);var n=window.document.createElement("style"),r=new ra(this.indexScss).evaluate({});void 0!==n.textContent?n.textContent=r:n.innerText=r,window.document.body.appendChild(n)}if(this.indicators.panel){var o=this.idOf(e.bannerSymbolIndex);e.bannerSymbolIndex+=1;var i=window.document.createElement("div");if(i.className="inview-timers__row",i.innerHTML=new ra(this.bannerLinePug).evaluate({symbol:o}),this.indicators.panel.appendChild(i),this.indicators.line=i,this.indicators.id=i.querySelector(".is-banner-id"),this.indicators.recording=i.querySelector(".is-recording-flag"),this.indicators.inviewTimer=i.querySelector(".is-inview-time"),this.indicators.viewedIndicator=i.querySelector(".is-viewed-indicator"),this.indicators.viewedIndicatorNotViewed=i.querySelector(".is-viewed-indicator .not-viewed-icon"),this.indicators.viewedIndicatorViewed=i.querySelector(".is-viewed-indicator .viewed-icon"),this.indicators.nohoverTimer=i.querySelector(".is-nohover-time"),this.indicators.nohoverIndicator=i.querySelector(".is-nohover-indicator"),this.indicators.nohoverIndicatorNotViewed=i.querySelector(".is-nohover-indicator .not-viewed-icon"),this.indicators.nohoverIndicatorViewed=i.querySelector(".is-nohover-indicator .viewed-icon"),this.indicators.reloadedIndicator=i.querySelector(".is-reloaded-indicator"),this.indicators.reloadedIndicatorNotViewed=i.querySelector(".is-reloaded-indicator .not-viewed-icon"),this.indicators.reloadedIndicatorViewed=i.querySelector(".is-reloaded-indicator .viewed-icon"),this.indicators.directionIndicator=i.querySelector(".is-direction-indicator svg"),this.params.removeAfterResolve)try{this.indicators.reloadedIndicatorNotViewed.classList.toggle("is-visible"),this.indicators.reloadedIndicatorViewed.classList.toggle("is-visible")}catch(e){}var a=window.document.createElement("div");a.className="inviewtime-sticker",a.innerHTML=new ra(this.stickerPug).evaluate({symbol:o}),this.indicators.sticker=a,this.indicators.stickerInView=a.querySelector(".inviewtime-sticker__inview"),this.indicators.stickerInViewTimer=a.querySelector(".inviewtime-sticker__inview-timer"),this.indicators.stickerNoHoverTimer=a.querySelector(".inviewtime-sticker__nohovertimer"),this._appendSticker(this.params.target,a)}},e.prototype.postInit=function(){var e=this;this.inViewTimerCount=0,this.noHoverTimerCount=0,this.browserIsActive=!0,this.inViewDone=!1,this.inViewActivity=!1,this.noHoverDone=!1,this.bannerWasUnderHover=!1,this.bannerIsUnderHover=!1,this.params.target.addEventListener("mouseenter",(function(){e.bannerIsUnderHover=!0})),this.params.target.addEventListener("mouseleave",(function(){e.bannerIsUnderHover=!1})),window.document.addEventListener("visibilitychange",this.checkBrowserWindowActivity.bind(this)),window.document.addEventListener("mozvisibilitychange",this.checkBrowserWindowActivity.bind(this)),window.document.addEventListener("webkitvisibilitychange",this.checkBrowserWindowActivity.bind(this)),window.document.addEventListener("msvisibilitychange",this.checkBrowserWindowActivity.bind(this)),window.addEventListener("pageshow",this.checkBrowserWindowActivity.bind(this)),window.addEventListener("pagehide",this.checkBrowserWindowActivity.bind(this)),window.addEventListener("focus",this.checkBrowserWindowActivity.bind(this)),window.addEventListener("blur",this.checkBrowserWindowActivity.bind(this))},e.prototype.checkBrowserWindowActivity=function(e){var t={focus:!0,focusin:!0,pageshow:!0,blur:!1,focusout:!1,pagehide:!1},n=e||window.event;n.type in t?this.browserIsActive=t[n.type]:this.browserIsActive=!document.hidden,this.noHoverPrevTimestamp=Date.now(),this.inViewPrevTimestamp=Date.now(),this.inViewTimerStart=Date.now(),this.noHoverTimerStart=Date.now()},e.prototype.idOf=function(e){return(e>=26?this.idOf((e/26|0)-1):"")+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[e%26|0]},e.prototype.calculateInView=function(e){var t,n=this;if(this.indicators.directionIndicator){var r=(e.top-.5*window.innerHeight)/(void 0===t&&(t=window),Hn(t)?Math.max(t.document.body.scrollHeight,t.document.body.clientHeight,t.document.body.offsetHeight,t.document.documentElement.scrollHeight,t.document.documentElement.offsetHeight,t.document.documentElement.clientHeight):NaN);["webkitTransform","MozTransform","msTransform","OTransform","transform"].forEach((function(e){n.indicators.directionIndicator.style[e]="rotate(".concat(90*-r,"deg)")}))}if(this.indicators.recording&&(this.indicators.recording.innerHTML="".concat(Math.round(this._inViewBannerPercent),"%"),this.indicators.stickerInView.innerHTML=" ".concat(this.indicators.recording.innerHTML," |")),this.indicators.line){var o="hsl(".concat(Math.round(this._inViewBannerPercent),", 100%, ").concat(Math.round(this._inViewBannerPercent/3),"%)"),i=ke(),a=qi({className:i,rules:{color:o,fill:o},nonce:this._config.getConfigValue("STYLE_NONCE_VALUE")});this.indicators.line.classList.add(i),this.indicators.line.parentElement.appendChild(a)}return this._inViewBannerPercent},e.prototype.calculateInViewActivity=function(){if(Bi(this.params.target,window.document)){var e=void 0;e=this.params.customViewedPercent?.01*this.params.customViewedPercent:this.params.defaultViewedPercent;var t=Fi(this.params.target),n=this.calculateInView(t)||0;return!1===this.inViewActivity?(this.inViewPrevTimestamp=Date.now(),this.inViewTimerStart=Date.now(),this.noHoverTimerStart=Date.now(),this._recalcNoHoverTotalTime(),.01*n>=e):(this._recalcNoHoverTotalTime(),.01*n").concat(this.formatTime(t)):"".concat(this.formatTime(e))},e.prototype.formatTime=function(e){var t=~~(e/3600),n=~~(e%3600/60),r=e%60,o="";return o=t?"".concat(t,":").concat(this.padZero(n),":").concat(this.padZero(r)):n?"".concat(n,":").concat(this.padZero(r)):"".concat(r.toFixed(r>=10?1:2))," ".concat(o," ")},e.prototype.padZero=function(e){return"".concat(e=~~e).length<2?"0".concat(e):e},e.prototype.getInViewTime=function(e){var t;switch(e){case Qi.total:t=this.inViewTimerCount;break;case Qi.session:default:t=this.browserIsActive?Date.now()-this.inViewTimerStart:0}return parseFloat((.001*t).toFixed(2))},e.prototype._getNoHoverTime=function(e){var t;if("total"===e)t=this.noHoverTimerCount;else t=this.bannerIsUnderHover||!this.browserIsActive?0:Date.now()-this.noHoverTimerStart;return parseFloat((.001*t).toFixed(2))},e.prototype.canCleanTimer=function(){if(this._selfDestructionTime){if((new Date).getTime()-this._selfDestructionTime.getTime()>1e3)return!0}else this._selfDestructionTime=new Date;return!1},e.prototype._toggleViewedIndicator=function(e){this.indicators.viewedIndicatorViewed&&this.indicators.viewedIndicatorViewed.classList[e?"add":"remove"]("is-visible"),this.indicators.viewedIndicatorNotViewed&&this.indicators.viewedIndicatorNotViewed.classList[e?"remove":"add"]("is-visible")},e.prototype._toggleNoHoverIndicator=function(e){this.indicators.nohoverIndicatorViewed&&this.indicators.nohoverIndicatorViewed.classList[e?"add":"remove"]("is-visible"),this.indicators.nohoverIndicatorNotViewed&&this.indicators.nohoverIndicatorNotViewed.classList[e?"remove":"add"]("is-visible")},e.prototype._handleDemoMode=function(e){e&&(this.defaultSettings.thresholdViewedTime=1,this.defaultSettings.thresholdNoHoverTime=1)},e.prototype._fixStickerPosition=function(){var e=this,t=this.indicators.sticker.parentElement.getBoundingClientRect(),n=this.indicators.sticker.getBoundingClientRect(),r="".concat(Math.min(t.height-n.height,-Math.min(t.top,0)),"px"),o="".concat(Math.min(t.width-n.width,-Math.min(t.left,0)),"px");["webkitTransform","MozTransform","msTransform","OTransform","transform"].forEach((function(t){e.indicators.sticker.style[t]="translate(".concat(o,", ").concat(r,")")}))},e.prototype._startTimer=function(){this._coveringWatcher.subscribe(this.params.target.id,this._updateCoveringPercent),this._ID=e.timer.subscribe({callback:this._watch,context:this,params:[]})},e.prototype._emitCurrentState=function(){this._emitter.dispatch("inView",this.params.adContainerID,null,[{actualTarget:this.params.target,currentInViewPercent:this._inViewBannerPercent,totalInViewTime:this.getInViewTime(Qi.total),sessionInViewTime:this.getInViewTime(Qi.session),noHoverTime:this._getNoHoverTime("session")}])},e.prototype._watch=function(){},e.prototype._recalcNoHoverTotalTime=function(){this.calculateNoHoverActivity()?(this.noHoverTimerCount+=Date.now()-this.noHoverPrevTimestamp,this.noHoverPrevTimestamp=Date.now()):(this.noHoverTimerCount=0,this.noHoverPrevTimestamp=Date.now())},e.prototype._appendSticker=function(e,t){"IFRAME"!==e.tagName&&"IMG"!==e.tagName?(oa(this.params.target),e.appendChild(t)):(oa(this.params.target.parentElement),e.parentElement.insertBefore(t,e))},e.bannerSymbolIndex=0,e.timer=j.getInstance().init(100),ca([re(J.CoveringWatcher),ua("design:type",_i)],e.prototype,"_coveringWatcher",void 0),ca([re(J.Config),ua("design:type",Object)],e.prototype,"_config",void 0),e}(),fa=pa,da=(aa=function(e,t){return aa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},aa(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}aa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ha=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._startTimer(),r}return da(t,e),t.prototype._watch=function(){if(this.params.target.clientWidth<15||this.params.target.clientHeight<15)this.canCleanTimer()&&this.clean();else{if(this.indicators.sticker&&this._fixStickerPosition(),this.browserIsActive&&(this.inViewActivity=this.calculateInViewActivity(),this.inViewActivity)){var e=this.getInViewTime();if(this.inViewDone||(this.indicators.nohoverTimer&&(this.indicators.inviewTimer.innerHTML=this.formatTimer(e,this.params.thresholdViewedTime),this.params.thresholdViewedTime?this.indicators.stickerInViewTimer.innerHTML="".concat(this.indicators.inviewTimer.innerHTML.replace("<","|<"),"|"):this.indicators.stickerInViewTimer.innerHTML="".concat(this.indicators.inviewTimer.innerHTML,"|")),0!==this.params.thresholdViewedTime&&e>=this.params.thresholdViewedTime&&(this.inViewDone=!0,this.inViewTimerResolve(),this.noHoverDone&&this.noHoverTimerResolve(),this._toggleViewedIndicator(!0))),this.bannerWasUnderHover=this.calculateNoHoverActivity(),this.bannerWasUnderHover){if(!this.noHoverDone){var t=this._getNoHoverTime();this.indicators.nohoverTimer&&(this.indicators.nohoverTimer.innerHTML=this.formatTimer(t,this.params.thresholdNoHoverTime),this.indicators.stickerNoHoverTimer.innerHTML=this.indicators.nohoverTimer.innerHTML),0!==this.params.thresholdNoHoverTime&&t>=this.params.thresholdNoHoverTime&&(this.noHoverDone=!0,this.inViewDone&&this.noHoverTimerResolve(),this._toggleNoHoverIndicator(!0))}}else this.noHoverDone=!1,this._toggleNoHoverIndicator(!1)}this._emitCurrentState()}},t}(fa),va=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ga=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._startTimer(),r}return va(t,e),t.prototype._watch=function(){if(this.params.target.clientWidth<15||this.params.target.clientHeight<15)this.canCleanTimer()&&this.clean();else if(this.indicators.sticker&&this._fixStickerPosition(),this.browserIsActive&&(this.inViewActivity=this.calculateInViewActivity(),this.inViewActivity)){var e=this.getInViewTime();if(this.indicators.nohoverTimer&&(this.indicators.inviewTimer.innerHTML=this.formatTimer(e),this.params.thresholdViewedTime?this.indicators.stickerInViewTimer.innerHTML=this.indicators.inviewTimer.innerHTML.replace("<","|<"):this.indicators.stickerInViewTimer.innerHTML="".concat(this.indicators.inviewTimer.innerHTML,"|")),0!==this.params.thresholdViewedTime&&e>=this.params.thresholdViewedTime&&(this._toggleViewedIndicator(!0),this.inViewDone=!0,this.inViewTimerResolve(),this.noHoverDone&&this.noHoverTimerResolve()),this.bannerWasUnderHover=this.calculateNoHoverActivity(),this.bannerWasUnderHover){var t=this._getNoHoverTime();this.indicators.nohoverTimer&&(this.indicators.nohoverTimer.innerHTML=this.formatTimer(t),this.indicators.stickerNoHoverTimer.innerHTML=this.indicators.nohoverTimer.innerHTML),0!==this.params.thresholdNoHoverTime&&t>=this.params.thresholdNoHoverTime&&(this._toggleNoHoverIndicator(!0),this.inViewDone&&this.noHoverTimerResolve(),this._toggleNoHoverIndicator(!0))}else this.noHoverDone=!1,this._toggleNoHoverIndicator(!1)}this._emitCurrentState()},t}(fa),ma=function(e,t){return e.demo?new ga(e,t):new ha(e,t)},ya=function(){return ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wa=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},_a=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Sa=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0,a=ya({target:r,removeAfterResolve:t,adContainerID:n,demo:ie(window).includes(this.VIEW_DEMO)},e.settings),s=ma(a,this.begunAutocontext.Callbacks),this.adInitializer.inViewTimers[n]=s,[2,s.promise.then((function(e){return!!c.checkRefreshAvailability({doesInViewTimerParamsExist:t,inViewTimerResolveValue:e,nodeID:n,nonReloadable:i})&&(c.inViewTimerReloadCounter[o]-=1,!0)}))]):[2]}))}))},e.prototype.initInViewTimerWithoutSettings=function(e,t){return _a(this,void 0,void 0,(function(){var n,r,o=this;return Sa(this,(function(i){return n={target:t,removeAfterResolve:!1,adContainerID:e,demo:ie(window).includes(this.VIEW_DEMO)},r=ma(n,this.begunAutocontext.Callbacks),this.adInitializer.inViewTimers[e]=r,[2,r.promise.then((function(t){return o.checkRefreshAvailability({doesInViewTimerParamsExist:!1,inViewTimerResolveValue:t,nodeID:e})}))]}))}))},e.prototype.getReloadingSettings=function(e){var t=e.impressionID,n=e.blockOptions,r=this.getBannerReloadingSettings(t);if(r)return{settings:r,settingsType:sa.BANNER};var o=this.getPlatformBlockReloadingSettings(n)||this.getBlockReloadingSettings(t);return o?{settings:o,settingsType:sa.BLOCK}:void 0},e.prototype.checkRefreshAvailability=function(e){var t=e.doesInViewTimerParamsExist,n=e.inViewTimerResolveValue,r=e.nodeID,o=e.nonReloadable;return(t||"manualRefresh"===n)&&!(void 0!==o&&o)&&!this.syncShow.isSessionBanner({nodeID:r})},e.prototype.getBannerReloadingSettings=function(e){if(e){var t,n,r=(t=this.begunAutocontext.savedFeeds[e].feed,void 0===(n=this.store.get("".concat(e,".nbanner")))&&(n=0),t&&t.banners&&t.banners.graph&&t.banners.graph[n]&&"object"==typeof t.banners.graph[n]&&t.banners.graph[n].frontend_params&&t.banners.graph[n].frontend_params.reload_thresholds);return r||void 0}},e.prototype.getBlockReloadingSettings=function(e){if(e)return(this.begunAutocontext.savedFeedsOptions[e]||{}).inViewTimer},e.prototype.getPlatformBlockReloadingSettings=function(e){return"object"==typeof e.startInViewTimer&&e.startInViewTimer||void 0},e.prototype.isNonReloadablePlace=function(e,t){var n=this.store.get("".concat(e,".nbanner"))||0,r=this.begunAutocontext.savedFeeds[e].feed.banners.graph[n].user_id;return t.some((function(e){return r===Number(e)}))},ba([re(J.BegunAutocontext),wa("design:type",Object)],e.prototype,"begunAutocontext",void 0),ba([re(J.SyncShow),wa("design:type",jn)],e.prototype,"syncShow",void 0),ba([re(J.Store),wa("design:type",Object)],e.prototype,"store",void 0),ba([re(J.MethodsInitializer),wa("design:type",Object)],e.prototype,"adInitializer",void 0),e}(),ka=Oa,Ta=function(e){ie(window).includes("capirs_log_statuses")&&console.log(e)},xa=function(){return xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?n.pageNumber=Number(t.pageNumber):n.pageNumber=0,n},Is=["gazeta.ru","auto.rambler.ru","doctor.rambler.ru","finance.rambler.ru","games.rambler.ru","kino.rambler.ru","news.rambler.ru","sport.rambler.ru","travel.rambler.ru","weekend.rambler.ru","woman.rambler.ru","horoscopes.rambler.ru","m.horoscopes.rambler.ru","weather.rambler.ru","m.weather.rambler.ru"],Cs=function(e,t){var n,r;void 0===t&&(t={}),e.params=e.params||{};var o,i,a,s,c=xs(t);c.puid42=function(e){void 0===e&&(e=1e5);var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return t?t.downlink>e?void 0:t.downlink:void 0}(),c.pli=t.pli?t.pli:"a",c.plp=t.plp?t.plp:"a",c.pop=t.pop?t.pop:"a",o=new URL(ie(window)),i=o.hostname,a=function(e,t){for(var n=!1,r=0;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ds=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},js=function(){function e(){var e,t,n=this;this._handleLocationChange=function(){n._store.set("rq_sess",n.genNewRequestToken())},this._initRequestToken(),this._eventEmitter.register(((e={})[ee.PAGE]=((t={})[te.SPA_UPDATE]=this._handleLocationChange,t),e)),(0,In.addEventListener)(window,"changestate",this._handleLocationChange)}return e.prototype.getPageRequestToken=function(){return this._store.get("rq_sess")},e.prototype.genNewRequestToken=function(){for(var e="",t=0;t<32;)e+=Math.floor(16*Math.random()).toString(16),t+=1;return e.toUpperCase()},e.prototype._initRequestToken=function(){this._store.get("rq_sess")||this._store.set("rq_sess",this.genNewRequestToken())},Rs([re(J.Store),Ds("design:type",Object)],e.prototype,"_store",void 0),Rs([re(J.EventEmitter),Ds("design:type",Object)],e.prototype,"_eventEmitter",void 0),e}(),Bs=o(3324),Ns="adtech_uid",Fs=function(){function e(e){this.regValidKey=new RegExp("([a-zA-Z0-9_-]{0,})","i"),this.cookies=e}return e.prototype.getItem=function(e,t){var n,r,o=this.cookies.split(";").reduce((function(e,n){var r=n.trim().split("="),o=r[0],i=r[1];return o===t&&e.push(decodeURIComponent(i)),e}),[]);if(!o.length)return!1;for(var i=0,a=o;i0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=0?(n=t.getParameter(t.getExtension("WEBGL_debug_renderer_info").UNMASKED_VENDOR_WEBGL),r=t.getParameter(t.getExtension("WEBGL_debug_renderer_info").UNMASKED_RENDERER_WEBGL)):(n="Not supported",r="Not supported"),[n,r]}catch(e){return"Not supported;;;Not supported"}},e}(),dc=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},hc=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=3?r():setTimeout(c,500)}}catch(e){r(e)}};c(),t=function(){o||(o=!0,a>0&&s())}}));return[n,t]},e.prototype.getHash=function(e){for(var t=0,n=0;nwindow.screen.logicalXDPI?e=window.screen.systemXDPI/window.screen.logicalXDPI:void 0!==window.devicePixelRatio&&(e=window.devicePixelRatio),e),size:{height:window.screen.height,width:window.screen.width}},system:{name:Cc(),version:Ac()}},userLanguage:this.getUserLanguage(),timezoneOffset:this.getTimezoneOffset(),plugins:this.getPlugins()};var e},e.prototype.getTimezoneOffset=function(){try{return{TimezoneOffset:(new Date).getTimezoneOffset()}}catch(e){return null}},e.prototype.onUserDataGathered=function(){var e=this;this.onUserDataGatheredCallbacks.forEach((function(t){t(e.userData)}))},e.prototype.getCollectedUserData=function(){var e=Rc({},this.baseFpProperties);return 0===this.baseFpProperties.browser.screen.pixelRatio&&(e.browser.screen.pixelRatio=1),Dc([{UserAgent:navigator.userAgent}],Object.values(e),!0)},e.prototype.getPlugins=function(){try{return{Plugins:this.getRegularPlugins()}}catch(e){return null}},e.prototype.getRegularPlugins=function(){var e=this;try{for(var t=[],n=0;nt.name?1:e.name0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]>=8;return t},e.getFingerPrintHash=function(t){var n=1471357547+Number(nc.split(".").map((function(e){return ec("0",2-e.length)+e})).join("")),r=e.fnv32a(t.substr(0,t.length/2),2166136261),o=e.fnv32a(t.substr(t.length/2),r);o=4294967040&o|1;var i="";return i+=e.tobinary(4004),i+=e.tobinary(n),i+=e.tobinary(r),i+=e.tobinary(o),i+=String.fromCharCode(0),btoa(i)},e.prototype.getUserLanguage=function(){return this.userData.baseFpProperties.userLanguage?this.userData.baseFpProperties.userLanguage:null},e.prototype.getTimezoneOffset=function(){return this.userData.baseFpProperties.timezoneOffset?this.userData.baseFpProperties.timezoneOffset:null},e.prototype.getCompleteFingerprint=function(){return this.completeFPPromise},e.prototype.getJsonFpParams=function(){return Mc(this,void 0,void 0,(function(){var e,t,n,r,o;return Vc(this,(function(i){switch(i.label){case 0:return[4,this.completeFPPromise];case 1:return e=i.sent(),t=e.fp,n=e.screen,r=e.others,o={f:{p:t.plugins,c:t.canvasWinding,i:t.canvasImage,v:t.webGLVendor,r:t.webGLRenderer,w:t.webAudioContext},s:{w:n.screenWidth,h:n.screenHeight,a:n.screenAvalWidth,b:n.screenAvalHeight,p:n.pixelRatio,c:n.colorDepth},o:{t:r.timezoneOffset,u:r.userLanguage}},[2,JSON.stringify(o)]}}))}))},e.prototype.getVersion=function(){return nc},e.prototype.getGatheredIP=function(){return this._gatheredIP||this.defaultIP.IP},e.prototype.getCollectedUserData=function(){return this.userDataString},e.prototype.getExperimentalFingerprints=function(){return this.experimentalFingerprints.get()},e.prototype.getWebAudioFp=function(){return Mc(this,void 0,void 0,(function(){var t,n,r;return Vc(this,(function(o){switch(o.label){case 0:return[4,this.webAudioFp.getFingerprint()];case 1:return(t=o.sent()).ok?(n=t.webAudioHash(),r=JSON.parse(this.getCollectedUserData()),[2,e.getFingerPrintHash(JSON.stringify(Uc(Uc([],r,!0),[{hash:n}],!1)))]):[2,""]}}))}))},e.prototype.getUserIDs=function(){return Promise.all([this.getFingerPrint()])},e.prototype.getBaseFingerprint=function(){return this.baseFingerprint},e.prototype.getFingerPrint=function(e){var t=this;return void 0===e&&(e=!1),new Promise((function(n){if(t.isAccurate)return n(t.getID());t.isGetFingerPrintCalled&&!e?t.onceFullUidResolve.push((function(){n(t.getID())})):(t.isGetFingerPrintCalled=!0,t.getUIDParams().then((function(e){t.onUidResolved(e),t.emitUidResolve(),n(t.getID())})).catch((function(){t.resetState(),t.emitUidResolve(),n(t.getID())})))}))},e.prototype.getID=function(){return this.accurateFingerprint||this.baseFingerprint},e.prototype.subscribeOnWebRTC=function(e){this.webRTCIP&&this.webRTCIP.onWebRTCRequest(e)},e.prototype.generateCompleteFingerprint=function(){return Mc(this,void 0,void 0,(function(){var e,t,n,r,o,i,a,s,c,u,l,p,f,d,h,v,g;return Vc(this,(function(m){switch(m.label){case 0:return(e=this.userData.baseFpProperties).plugins?(n=JSON.stringify(e.plugins.Plugins),t=(0,tc.murmur3)(n)):t=null,r=this.fpWithCanvas.getCanvas(),o=r.canvasWinding,i=r.image,a=!0===o?1:null,s=i?(0,tc.murmur3)(i):null,"string"==typeof(l=this.fpWithCanvas.getWebGL())?(c=null,u=null):(c=l[0],u=l[1],"Not supported"===c&&(c=null),"Not supported"===u&&(u=null)),[4,this.getWebAudioFp()];case 1:return p=m.sent(),f=""===p?null:(0,tc.murmur3)(p),d=e.timezoneOffset?e.timezoneOffset.TimezoneOffset:null,h=e.userLanguage?e.userLanguage.UserLanguage:null,v=e.browser.screen,g=v.pixelRatio||null,[2,{fp:{plugins:t,canvasWinding:a,canvasImage:s,webGLVendor:c,webGLRenderer:u,webAudioContext:f},screen:{screenWidth:v.size.width,screenHeight:v.size.height,screenAvalWidth:v.availableSize.width,screenAvalHeight:v.availableSize.height,pixelRatio:g,colorDepth:v.colorDepth},others:{timezoneOffset:d,userLanguage:h}}]}}))}))},e.prototype.getUIDParams=function(){var e=this;return this.getIP().then((function(t){return Uc(Uc([],e.userData.userData,!0),[null===t?{IP:null}:t],!1)}))},e.prototype.getIP=function(){return Mc(this,void 0,void 0,(function(){var e,t;return Vc(this,(function(n){switch(n.label){case 0:if(!this.settings||!this.settings.ipDiscUrl)return[3,8];n.label=1;case 1:return n.trys.push([1,6,,7]),[4,this.getIPFromServer()];case 2:return(e=n.sent())?(t=e,[3,5]):[3,3];case 3:return[4,this.getWebRTCIP()];case 4:t=n.sent(),n.label=5;case 5:return[2,t];case 6:return n.sent(),[2,this.defaultIP];case 7:return[3,9];case 8:return[2,this.getWebRTCIP()];case 9:return[2]}}))}))},e.prototype.getWebRTCIP=function(){return Mc(this,void 0,void 0,(function(){var e;return Vc(this,(function(t){switch(t.label){case 0:if(!this.webRTCIP)return[2,this.defaultIP];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.webRTCIP.getIP()];case 2:return[2,(e=t.sent())?{IP:e}:this.defaultIP];case 3:return t.sent(),[2,this.defaultIP];case 4:return[2]}}))}))},e.prototype.getIPFromServer=function(){var e=this;return new Promise((function(t){if(!e.settings||!e.settings.ipDiscUrl)return t(null);setTimeout((function(){t(null)}),1e3);var n=new XMLHttpRequest;n.onload=function(){4===n.readyState&&(200===n.status&&n.responseText?t({IP:n.responseText}):t(null))},n.onerror=function(){t(null)},n.open("GET",e.settings.ipDiscUrl,!0),n.send()}))},e.prototype.emitUidResolve=function(){this.onceFullUidResolve.forEach((function(e){e()})),this.onceFullUidResolve=[]},e.prototype.onUidResolved=function(t){this.userDataString=JSON.stringify(t);for(var n=0,r=Object.values(t);n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xc=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Jc=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Kc=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},nu=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ru=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},au=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},su=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},cu=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]":">",'"':""","'":"'"}),Su=/[&<>"']/g,Eu=RegExp(Su.source);var Ou=function(e){return(e=_n(e))&&Eu.test(e)?e.replace(Su,_u):e};function ku(e){return ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ku(e)}function Tu(e,t,n){var r=n.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(ku(r)));var o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof r)return r;var n=r.bind(this);return o=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return n},set:function(e){r=e,delete this[t]}}),o=!1,n},set:function(e){r=e}}}var xu=function(){return xu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Iu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Cu=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Au=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0,u="string"==typeof e&&e.length>0;if(c&&u){var l=be(e);if(!l)return new Promise((function(t){var r={nodeID:e,reason:ci.DoesNotExist,optionsB:n,status:!1};Ta(r),t(r)}));l.className="".concat(l.className||""," ").concat(r)}var p=this._syncShow.getSession(n["begun-block-id"])||{};n.sessionKey=p.key||"",window.Adf.util.updateBannersStack(e,{div_id:e,options_b:n,options:t,status:ui.PENDING});var f=be(e);return new Promise((function(o,c){window.Begun.Autocontext.addBlock(wu(n,Du),(function(u,l,p,f,d){var h=Ps({blocktype:"capirs",block_id:parseInt(n["begun-block-id"],10),pad_id:parseInt(n["begun-auto-pad"],10),impression_id:l,misc:n["begun-misc"],reached:0,graphAmount:d,node_id:je(e)},t);s._cachedBlockShowLoggerFactory(e,Date.now(),h,n),a?a(u,l,p):s._syncShow.show({divID:e,options:t,optionsB:n,optClass:r,callback:i,priority:u,impressionID:l,blockID:p,sessionKeys:f}).then((function(r){return s.bannerIsRendered(e,{sspJparams:t,optionsB:n,syncShowResult:r,impressionID:l})})).then((function(e){return s._eventEmitter.dispatch(ee.BLOCK,te.DRAW_COMPLETE,null,[xu(xu({},na(e)),{impressionID:l})]),e})).then(o).catch(c)}),e)})).then((function(e){if(n.wipeBeforeRender&&f){var t=ke(),r=qi({className:t,rules:{height:"initial"},nonce:s._config.getConfigValue("STYLE_NONCE_VALUE")});f.parentElement.appendChild(r),f.classList.add(t)}return e}))},e.prototype.sspScroll=function(e,t,n,r,o,i,a){var s;return void 0===t&&(t={}),s=void 0!==n["begun-scroll-rate"]?n["begun-scroll-rate"]:void 0!==window.Adf.desktopScrollRate?window.Adf.desktopScrollRate:0,this.scrollCore({methodName:"sspScroll",scrollRate:s},{divID:e,sspJparams:t,optionsB:n,optClass:r,optWin:o,callback:i,hardCallback:a})},e.prototype.sspScrollMobile=function(e,t,n,r,o,i,a){var s;return void 0===t&&(t={}),s=void 0!==n["begun-scroll-rate"]?n["begun-scroll-rate"]:void 0!==window.Adf.mobileScrollRate?window.Adf.mobileScrollRate:0,this.scrollCore({methodName:"sspScrollMobile",scrollRate:s},{divID:e,sspJparams:t,optionsB:n,optClass:r,optWin:o,callback:i,hardCallback:a})},e.prototype.deferredSsp=function(e,t,n,r){var o=this;void 0===t&&(t={}),void 0===r&&(r={}),n=Pa(n);var i=this._syncShow.getSession(n["begun-block-id"])||{};n.sessionKey=i.key||"",window.Adf.util.updateBannersStack(e,{div_id:e,options_b:n,options:t,status:ui.PENDING});var a=be(e),s=null,c=null,u=new Promise((function(e,t){s=e,c=t}));return window.Begun.Autocontext.addBlock(wu(n,Du),(function(i,u,l,p,f){var d=Ps({blocktype:"capirs",block_id:parseInt(n["begun-block-id"],10),pad_id:parseInt(n["begun-auto-pad"],10),impression_id:u,misc:n["begun-misc"],reached:0,graphAmount:f,node_id:je(e)},t);o._cachedBlockShowLoggerFactory(e,Date.now(),d,n),o._metricsTransport.freezeTimer(e.toString());var h=new IntersectionObserver((function(f){var d=f&&f[0];d&&d.isIntersecting&&(o._metricsTransport.unFreezeTimer(e.toString()),h.unobserve(a),o._syncShow.show({divID:e,options:t,optionsB:n,priority:i,impressionID:u,blockID:l,sessionKeys:p,doWipe:r.doWipe}).then((function(r){return o.bannerIsRendered(e,{sspJparams:t,optionsB:n,syncShowResult:r,impressionID:u})})).then(s).catch(c))}),{root:n.customRoot||null,rootMargin:n.customRootMargin||(n.customRootMarginPercent?"0px 0px ".concat(n.customRootMarginPercent,"% 0px"):"0px 0px 0px 0px"),threshold:r.inViewThresholds||[0]});h.observe(a)}),e),u.then((function(e){if((r.doWipe||n.wipeBeforeRender)&&a){var t=ke(),i=qi({className:t,rules:{height:"initial"},nonce:o._config.getConfigValue("STYLE_NONCE_VALUE")});a.parentElement.appendChild(i),a.classList.add(t)}return e}))},e.prototype.reloadssp=function(e,t,n,r,o){void 0===t&&(t={}),Ru.log(401,"Данный метод помечен как deprecated \n Используйте ssp|sspScroll для перезагрузки баннера, \n передав в optionsB forceNewSesion со значением true. \n");var i=be(e);return new Promise(i?function(i){n.forceNewSession=!0,n.wipeBeforeRender=!0,n.shouldFreezeWrapperHeight=!0,window.Adf.banner.ssp(e,t,n,null,null,r,o).then((function(e){i(e)}))}:function(t){var r={nodeID:e,optionsB:n,reason:ci.DoesNotExist,status:!1};Ta(r),t(r)})},e.prototype.feed_ssp=function(e,t,n,r){var o,i,a=this;void 0===t&&(t={}),n=Pa(n),r.banners.graph.forEach((function(e,t){return lu(["source","viewability","tracking"],t,e)})),(null===(i=null===(o=r.debug)||void 0===o?void 0:o.request)||void 0===i?void 0:i.url)&&(r.debug.request.url=Ou(r.debug.request.url));var s={block_id:n["begun-block-id"],pad_id:n["begun-auto-pad"],method:n.calledMethod},c=Ps({blocktype:"capirs",block_id:parseInt(n["begun-block-id"],10),pad_id:parseInt(n["begun-auto-pad"],10),impression_id:r.params.impression_id,misc:n["begun-misc"],reached:0,uuid:r.cookies&&r.cookies.uuid||"",rq_type:1,graphAmount:r.banners.graph.length,node_id:je(e)},t);return this._blockShowLoggerFactory(e,Date.now(),c,n,r),window.Adf.util.updateBannersStack(e,{div_id:e,options_b:n,options:t,status:ui.PENDING}),this._syncShow.show({divID:e,options:t,optionsB:n,priority:r.params.priority,impressionID:{feed:r,blockData:s},blockID:s.block_id,sessionKeys:r.params.session_keys}).then((function(o){return a.bannerIsRendered(e,{sspJparams:t,optionsB:n,bannerData:{feed:r,blockData:s},impressionID:xn(r),syncShowResult:o})})).then((function(e){return a._eventEmitter.dispatch(ee.BLOCK,te.DRAW_COMPLETE,null,[xu(xu({},na(e)),{impressionID:xn(r)})]),e}))},e.prototype.feed_sspScroll=function(e,t,n,r){var o;return void 0===t&&(t={}),o=void 0!==n["begun-scroll-rate"]?n["begun-scroll-rate"]:void 0!==window.Adf.desktopScrollRate?window.Adf.desktopScrollRate:0,this.scrollCore({methodName:"feed_sspScroll",destinationMethod:"feed_ssp",scrollRate:o},{divID:e,sspJparams:t,optionsB:n,feed:r})},e.prototype.feed_sspScrollMobile=function(e,t,n,r){var o;return void 0===t&&(t={}),o=void 0!==n["begun-scroll-rate"]?n["begun-scroll-rate"]:void 0!==window.Adf.mobileScrollRate?window.Adf.mobileScrollRate:0,this.scrollCore({methodName:"feed_sspScrollMobile",destinationMethod:"feed_ssp",scrollRate:o},{divID:e,sspJparams:t,optionsB:n,feed:r})},e.prototype.feed_sspRich=function(e,t,n,r){return void 0===t&&(t={}),this.richCore({methodName:"feed_sspRich",destinationMethod:"feed_ssp"},{divID:e,sspJparams:t,optionsB:n,feed:r})},e.prototype.ssp_video=function(e){var t=e.divID,n=e.sspJparams,r=e.optionsB;return Cu(this,void 0,void 0,(function(){var e,o;return Au(this,(function(i){switch(i.label){case 0:return(e=document.getElementById(t))?[4,this._vapirsFeed.getRequestURL({sspJparams:n,optionsB:r,divID:t})]:[2,{success:!1,error:new Error("Unable to find dom element with ".concat(t))}];case 1:return o=i.sent(),[2,this.vastPlaybackWrapper.startVideo(e,{mute:!0,url:o})]}}))}))},e.prototype.spaPageUpdate=function(){this._metricsTransport.clearBannerTimersMap(),this._eventEmitter.dispatch(ee.PAGE,te.SPA_UPDATE)},e.prototype.log=function(e,t,n){return Ru.log(e,t,n)},e.prototype.richCore=function(e,t){var n=this,r=e.destinationMethod,o=void 0===r?"ssp":r;t.optionsB=Pa(t.optionsB);var i=be(t.divID);return new Promise(i?function(e,r){var i=function(){var a,s=(void 0===a&&(a=window),{height:pu(a),width:fu(a)}).height;if(Wn()+20>=s)if("feed_ssp"===o)n.feed_ssp(t.divID,t.sspJparams,t.optionsB,t.feed).then(e).catch(r);else n.ssp(t.divID,t.sspJparams,t.optionsB,t.optClass,t.optWin,t.callback,t.hardCallback).then(e).catch(r);else setTimeout(i,100)};i()}:function(e){var n={nodeID:t.divID,reason:ci.DoesNotExist,optionsB:t.optionsB,status:!1};Ta(n),e(n)})},e.prototype.scrollCore=function(e,t){var n=this,r=e.destinationMethod,o=void 0===r?"ssp":r,i=e.scrollRate,a=void 0===i?0:i,s=e.topTreshold,c=void 0===s?0:s,u=this._store.get("".concat(Ai(t.divID),".intersectionObserver"));u&&u.disconnect(),t.optionsB=Pa(t.optionsB);var l=be(t.divID);return l?(t.optionsB.wipeImmediately&&(l.innerHTML=""),new Promise((function(e,r){n._metricsTransport.freezeTimer(t.divID.toString());var i=new IntersectionObserver((function(a){var s=a&&a[0];if(s&&s.isIntersecting)if(n._metricsTransport.unFreezeTimer(t.divID.toString()),i.unobserve(l),n._store.delete("".concat(Ai(t.divID),".intersectionObserver")),"feed_ssp"===o)window.Adf.banner.feed_ssp(t.divID,t.sspJparams,t.optionsB,t.feed).then(e).catch(r);else window.Adf.banner.ssp(t.divID,t.sspJparams,t.optionsB,t.optClass,t.optWin,t.callback,t.hardCallback).then(e).catch(r)}),{root:t.optionsB.customRoot||null,rootMargin:t.optionsB.customRootMargin||"0px 0px ".concat(a,"% 0px"),threshold:[c]});i.observe(l),n._store.set("".concat(Ai(t.divID),".intersectionObserver"),i)}))):new Promise((function(e){var n={nodeID:t.divID,reason:ci.DoesNotExist,optionsB:t.optionsB,status:!1};Ta(n),e(n)}))},Pu([re(J.cachedBlockShowLoggerFactory),Iu("design:type",Function)],e.prototype,"_cachedBlockShowLoggerFactory",void 0),Pu([re(J.SyncShow),Iu("design:type",jn)],e.prototype,"_syncShow",void 0),Pu([re(J.InViewTimerStarter),Iu("design:type",ka)],e.prototype,"_inViewTimerStarter",void 0),Pu([re(J.blockShowLoggerFactory),Iu("design:type",Function)],e.prototype,"_blockShowLoggerFactory",void 0),Pu([re(J.EventEmitter),Iu("design:type",Object)],e.prototype,"_eventEmitter",void 0),Pu([re(J.Store),Iu("design:type",Object)],e.prototype,"_store",void 0),Pu([re(J.Config),Iu("design:type",Object)],e.prototype,"_config",void 0),Pu([re(J.VastPlaybackWrapper),Iu("design:type",Object)],e.prototype,"vastPlaybackWrapper",void 0),Pu([re(J.MetricsTransport),Iu("design:type",Ue)],e.prototype,"_metricsTransport",void 0),Pu([Tu,ze,Ia(2),As(1,2),Ra,Iu("design:type",Function),Iu("design:paramtypes",[Object,Object,Object,Object,Object,Object,Object]),Iu("design:returntype",Promise)],e.prototype,"ssp",null),Pu([Tu,ze,Ia(2),As(1,2),Ra,Iu("design:type",Function),Iu("design:paramtypes",[Object,Object,Object,Object,Object,Object,Object]),Iu("design:returntype",Promise)],e.prototype,"sspScroll",null),Pu([Tu,ze,Ia(2),As(1,2),Ra,Iu("design:type",Function),Iu("design:paramtypes",[Object,Object,Object,Object,Object,Object,Object]),Iu("design:returntype",Promise)],e.prototype,"sspScrollMobile",null),Pu([Tu,ze,Ia(2),As(1,2),Ra,Iu("design:type",Function),Iu("design:paramtypes",[Object,Object,Object,Object]),Iu("design:returntype",Promise)],e.prototype,"deferredSsp",null),Pu([Tu,Ia(2,!0),As(1,2),Iu("design:type",Function),Iu("design:paramtypes",[Object,Object,Object,Object,Object]),Iu("design:returntype",Promise)],e.prototype,"reloadssp",null),Pu([Tu,Ia(2),As(1,2),Ra,Iu("design:type",Function),Iu("design:paramtypes",[Object,Object,Object,Object]),Iu("design:returntype",Promise)],e.prototype,"feed_ssp",null),Pu([Tu,Ia(2),As(1,2),Ra,Iu("design:type",Function),Iu("design:paramtypes",[Object,Object,Object,Object]),Iu("design:returntype",Promise)],e.prototype,"feed_sspScroll",null),Pu([Tu,Ia(2),As(1,2),Ra,Iu("design:type",Function),Iu("design:paramtypes",[Object,Object,Object,Object]),Iu("design:returntype",Promise)],e.prototype,"feed_sspScrollMobile",null),Pu([Tu,Ia(2),As(1,2),Iu("design:type",Function),Iu("design:paramtypes",[Object,Object,Object,Object]),Iu("design:returntype",Promise)],e.prototype,"feed_sspRich",null),e}(),Bu=ju,Nu=function(){function e(e){this.Autocontext=e}return e.prototype.push=function(e){var t=this.Autocontext.__blocks||[];t[t.length]=e,this.Autocontext.__blocks=t},e.prototype.getBlockById=function(e,t){if(e){var n=void 0,r=0;t=t||this.Autocontext.__blocks||[];do{if((n=t[r])&&n.id.toString()===e.toString())return n;r+=1}while(n)}},e}(),Fu=Nu,Lu=q(o(2239)),Mu=function(){function e(){}return e.includeScript=function(t,n,r){if(void 0===n&&(n="append"),t&&ge(t)){var o=function(){r&&r()};return"write"===n?Ce({action:"write",type:e.SCRIPT_TYPE,src:t,target:document.head||document.body,removeAfterLoading:!0,document:document,onload:o}):"append"===n&&Ce({action:"append",type:e.SCRIPT_TYPE,async:!0,src:t,target:document.head||document.body,removeAfterLoading:!0,document:document,onload:o}),!0}return!1},e.foundScript=function(e){return!!Array.from(document.head.getElementsByTagName("script")).find((function(t){return e.src?e.src===t.src:e.textContent===t.textContent}))},e.createScript=function(e,t){try{var n=t.createElement("script");n.type="text/javascript",n.text=e.text||e.innerText||e.textContent,n.text=n.text.replace(/\sdocument\.write\(/gi," window.document.write("),n.text=n.text.replace(/\swindow\.document\.write\(/gi," window.document.open('text/html');window.document.write(");var r=t.getElementsByTagName("script")[0];(window.CAPIRS_CONFIG||{}).SCRIPT_NONCE_VALUE&&n.setAttribute("nonce",window.CAPIRS_CONFIG.SCRIPT_NONCE_VALUE),r?r.parentNode.insertBefore(n,r):(o="head",i=t,a=0,void 0===i&&(i=document),"string"==typeof o&&ji(i)&&"number"==typeof a&&i.getElementsByTagName(o)[a]||null).appendChild(n)}catch(e){Lu.log(500,"Creating script failed",{Error:e})}var o,i,a},e.reattachScriptsOnce=function(t,n){void 0===n&&(n=document);for(var r=0;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},qu=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0&&(this.dispatchBlockDrawCallback(n,t),this.runViewAbility({feed:t,subscriptionID:r,showUrls:o,domObj:n}))},e.prototype.dispatchBlockDrawCallback=function(e,t){window.Begun.Autocontext.Callbacks.dispatch(ee.BLOCK,te.DRAW,e,[t])},e.prototype.addSubscription=function(e,t,n){var r,o,i,a,s=null===(o=null==n?void 0:n.banners)||void 0===o?void 0:o.graph,c="";if(s&&s.length){var u=s[0];c=u.view_type.includes(Vi.ATOMS)?"atoms":u.mime}this.subscriptions[e]=(r=this._utilService.viewAbility).create.apply(r,qu(qu([],t,!1),[e,null===(a=null===(i=null==n?void 0:n.params)||void 0===i?void 0:i.marks)||void 0===a?void 0:a.misc,c],!1))},e.prototype.checkSubscription=function(e){return!!this.subscriptions[e]},e.prototype.unsubscribe=function(e){this.subscriptions[e]()},Hu([re(J.AdfUtil),Wu("design:type",Object)],e.prototype,"_utilService",void 0),e}(),Xu=Gu,Ju=q(o(2239)),Ku=function(){function e(){}return e.prototype.load=function(e,t){return void 0===t&&(t={}),new Promise((function(n,r){var o,i=new XMLHttpRequest;void 0!==t.withCredentials&&(i.withCredentials=t.withCredentials);var a=_e(e,{https:!0}),s=performance.now();i.open("GET",a,!0),i.onreadystatechange=function(){2===i.readyState&&(o=performance.now()-s)},i.onload=function(){n({responseText:i.responseText,status:i.status,ttfb:o})};var c=0;i.onerror=function(e){Ju.log(500,"Feed fetch src failed",{src:a,Error:e}),c<1?(c+=1,i.open("GET",a,!0),i.send()):r(e)},i.send()}))},e}();var $u=function(){};function Yu(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Yu.prototype=hs($u.prototype),Yu.prototype.constructor=Yu;var Qu=Yu,Zu=rt?rt.isConcatSpreadable:void 0;var el=function(e){return Ze(e)||Wr(e)||!!(Zu&&e&&e[Zu])};var tl=function e(t,n,r,o,i){var a=-1,s=t.length;for(r||(r=el),i||(i=[]);++a0&&r(c)?n>1?e(c,n-1,r,o,i):Cr(i,c):o||(i[i.length]=c)}return i};var nl=function(e){return(null==e?0:e.length)?tl(e,1):[]};var rl=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},ol=Math.max;var il=function(e,t,n){return t=ol(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=ol(r.length-t,0),a=Array(i);++o0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},ll=ul(sl);var pl=function(e){return ll(il(e,void 0,nl),e+"")},fl=wo&&new wo,dl=fl?function(e){return fl.get(e)}:ii,hl={},vl=Object.prototype.hasOwnProperty;var gl=function(e){for(var t=e.name+"",n=hl[t],r=vl.call(hl,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t};function ml(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}ml.prototype=hs($u.prototype),ml.prototype.constructor=ml;var yl=ml;var bl=function(e){if(e instanceof yl)return e.clone();var t=new Qu(e.__wrapped__,e.__chain__);return t.__actions__=$a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},wl=Object.prototype.hasOwnProperty;function _l(e){if(dt(e)&&!Ze(e)&&!(e instanceof yl)){if(e instanceof Qu)return e;if(wl.call(e,"__wrapped__"))return bl(e)}return new Qu(e)}_l.prototype=$u.prototype,_l.prototype.constructor=_l;var Sl=_l;var El=function(e){var t=gl(e),n=Sl[t];if("function"!=typeof n||!(t in yl.prototype))return!1;if(e===n)return!0;var r=dl(n);return!!r&&e===r[0]};var Ol,kl,Tl=function(e){return pl((function(t){var n=t.length,r=n,o=Qu.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==gl(i))var a=new Qu([],!0)}for(r=a?r:n;++r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bl=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Nl=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Fl=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]googletag.cmd.push(function(){".concat(Ml(e,t),"});<\/script>")}(n,r)):t.replace(d,function(e,t){return"