Professional Documents
Culture Documents
A
A
A
e=this,i=t.intersectionRatio,n=this._startFactor,r=this.options,o=r.shouldStart,a=r
.startMethod,s=r.expandOnAdLoaded,d=r.expandingDuration,l=r.moduleAPI,c=l.addVPAIDE
ventListener,u=l.removeVPAIDEventListener,h=l.startAd,p=l.inState,f=[p("loaded"),p(
"waitStarting"),p("starting")],g=f[0],v=f[1],b=f[2],m=!
1,y=o.toLowerCase(),O="afterexpand"===y,A="beforeexpand"===y,w="manual"===a;if(g&&s
&&!this.wasExpanded){this.wasExpanded=!0,A&&h&&h(),this._updateModuleNodeSize(!
0);var _=c("AdVideoStart",function(){u("AdVideoStart",_),setTimeout(function()
{return e._updateModuleState()},d)});O&&h&&h(),m=!0}return i>=n&&(g&&!w&&(O||A)||
w&&v)&&(O&&this._updateModuleNodeSize(!0),h&&h(),m=!0),m||
b},i._applyModuleStateCheckPausedAndPlaying=function(t){var
e=t.intersectionRatio,i=this._startFactor,n=this._stopFactor,r=this.options.moduleA
PI,o=r.resumeAd,a=r.pauseAd,s=r.inState,d=[s("paused"),s("pausing"),s("playing"),s(
"resuming")],l=d[1],c=d[2];e>=i&&(d[0]?
(this._adPausedPostponedCommand=null,o&&o()):l&&(this._adPausedPostponedCommand=fun
ction(){return
o()})),c&&e<n&&(this._adPausedPostponedCommand=null,a&&a())},i.hide=function()
{this._closeModule()},i._closeModule=function(t){void 0===t&&(t={});var
e=((this.options||{}).moduleAPI||
{}).addVPAIDEventListener,i=this._needAfterCloseCompensation()&&!0!
==t.noCompensation;if(!this._moduleWasClosed){this._moduleWasClosed=!
0,this._removeEventListeners(),e&&e("AdDestroyed",y.bind(this),this);var
n=this.moduleNode,r=this.observerForParent;r&&r.disconnect&&r.disconnect(),setTimeo
ut(w.bind(this),1);var o=i&&_.call(this);Object(cr.b)(n,
{height:0,margin:0,border:0,padding:0}),o&&P.call(this,o)}},i._getWatchVisibilityTh
reshold=function(){var t=this._startFactor,e=this._stopFactor,i=[];return
0<=t&&i.push(t),0<=e&&t!==e&&i.push(e),i.length&&(0!==t&&0!==e&&i.push(0),1!==t&&1!
==e&&i.push(1)),i.sort()},i._destroy=function(){var
e=this.watchVisibility,i=this._watchModuleNodeNodeVisibility,n=this._watchTempObser
vableModuleNodeVisibility,r=this._moduleNodeObservable;e&&e.disconnect&&e.disconnec
t(),this.watchVisibility=null,i&&i.disconnect&&i.disconnect(),this._watchModuleNode
NodeVisibility=null,n&&n.disconnect&&n.disconnect(),this._watchTempObservableModule
NodeVisibility=this,r&&r.disconnect&&r.disconnect(),this._moduleNodeObservable=null
;var
o=this._needAfterCloseCompensation()&&_.call(this);t.prototype._destroy.call(this),
o&&P.call(this,o)},i._needAfterCloseCompensation=function(){var
t=this.boundariesExists;return(this.options||{}).needAfterCloseCompensation&&!
t},i.abort=function(){this._closeModule({noCompensation:!
0})},i._switchOnObservableAdvancedNode=function(){var
t=this.options,e=t.showObservableNode,i=t.doNotWatchVisibility,n=t.moduleAPI.getMai
nModuleId;if(!this._tempObservableModuleNode&&!i){var
r=this._createObservableAdvancedNode(),o=r.node,a=r.watcher;o&&window.document.body
.appendChild(o),this._tempObservableModuleNode=this._addDOMNode(o),this._tempObserv
ableModuleNode.className=("vn-start-mark_"+this+"_"+Sr+++" vn-module__"+
(n&&n())).replace(/\s+/g,"-").replace(/(\
[|])/g,"_"),this._watchTempObservableModuleNodeVisibility=a,e&&(clearTimeout(this._
showGridTimeoutId),this._showGridTimeoutId=setTimeout(A.bind(this,o),1))}},i._creat
eObservableAdvancedNode=function(){var
t=this.scrollNode,e=this.options.showObservableNode,i=Object(cr.d)("div",{top:-
9999,left:-9999,height:0,width:0,position:"absolute",zIndex:"-1",opacity:0});!
0===e&&Object(cr.b)(i,
{outlineWidth:"1px",outlineColor:"red",outlineStyle:"solid",opacity:1,zIndex:1}),i.
classList.add("vn-observable-advanced-
node"),this._updateObservableAdvancedNodePosition(!1,i);var n=Object(dr.w)(i,
{threshold:this._getWatchVisibilityThreshold(),registerHandle:function(e){var
i="scroll";return t&&t.addEventListener(i,e),
{handler:e,event:i,scrollNode:t}}},this._checkModuleState.bind(this));return
e&&(clearTimeout(this._showGridTimeoutId),this._showGridTimeoutId=setTimeout(A.bind
(this,i),1)),
{watcher:n,node:i}},i._updateObservableAdvancedNodePosition=function(t,e){void
0===t&&(t=!0),void 0===e&&(e=null);var
i=this._tempObservableModuleNode,n=this.options,r=n.showObservableNode,o=n.moduleAP
I.getControlNode;if(e||(e=i),!Object(cr.o)(e))return null;var
a=o&&o("wrapper"),s=o&&o("vpaidSlot")||a;if(!s)return null;var
d,l,c=s&&Object(dr.h)(s)||{};if(c.offsetHeight){var
u=c.offsetHeight,h=c.offsetWidth,p=c.marginLeft,f=c.marginRight,g=c.marginTop,v=c.m
arginBottom;l=u+(g||0)+(v||0),d=h+(p||0)+(f||0)}if(!l){var
b=O.call(this),m=b.width,y=b.height;l||(l=y),d||(d=m)}var w=Object(cr.g)
(s),_={top:Object(dr.s)(w.top),left:Object(dr.s)(w.left),height:Object(dr.s)
(l),width:Object(dr.s)(d),pointerEvents:"none"};return Object(cr.b)
(e,_),t&&r&&(clearTimeout(this._showGridTimeoutId),this._showGridTimeoutId=setTimeo
ut(A.bind(this,e),1)),e},i._getModuleVisibility=function(t){var e=this;void
0===t&&(t=0);var
i=this._watchTempObservableModuleNodeVisibility,n=this._tempObservableModuleNode,r=
this.moduleNode,o=this.options.moduleAPI,a=o.getVideoSlot,s=o.getControlNode,d=a(),
l=(d||{}).style,c=l&&"hidden"!==l.display&&d.clientHeight&&d||s("container")||
r,u=[];return i&&n&&u.push(Object(dr.n)(n)),c&&u.push(Object(dr.n)
(c)),Promise.all(u).then(function(i){if(2>i.length)return i[0];var
n=i.filter(function(t){return t.intersectionRatio});if(3>t&&!
i[0].intersectionRatio&&i[1].intersectionRatio&&!i[1].moduleSquare)return
e._getModuleVisibility(t+1);var r=n.reduce(function(t,e){return!t||
e.intersectionRatio>t.intersectionRatio?e:t},null);return n.length?
r:i[0]})},i._onAdSizeChange=function()
{this._updateModuleNodeSize()},i._resetObservableNodes=function()
{this.watchVisibility?
(this._switchOffObservableAdvancedNode(),this._switchOffObservableCheckingToModuleN
ode(),this._switchOnObservableCheckingToModuleNode()):this._tempObservableModuleNod
e&&(this._switchOffObservableCheckingToModuleNode(),this._switchOffObservableAdvanc
edNode(),this._switchOnObservableAdvancedNode()),window.IntersectionObserver||
this._updateModuleState()},i._switchOffAllObserves=function(){this.watchVisibility?
(this._switchOffObservableAdvancedNode(),this._switchOffObservableCheckingToModuleN
ode()):this._tempObservableModuleNode&&(this._switchOffObservableCheckingToModuleNo
de(),this._switchOffObservableAdvancedNode())},i._switchOffObservableAdvancedNode=f
unction()
{this._watchTempObservableModuleNodeVisibility&&this._watchTempObservableModuleNode
Visibility.disconnect&&this._watchTempObservableModuleNodeVisibility.disconnect(),t
his._tempObservableModuleNode&&(this._tempObservableModuleNode.remove(),this._tempO
bservableModuleNode=null),this._watchTempObservableModuleNodeVisibility=null},i._ge
tNodeForObservableChecking=function(){var
t=this.moduleNode,e=this.options.moduleAPI,i=e.getVideoSlot,n=e.getControlNode;retu
rn i()||n("vpaidSlot")||t},i._switchOnObservableCheckingToModuleNode=function(){var
t=this.scrollNode,e=this.options,i=e.showObservableNode,n=e.doNotWatchVisibility;if
(!this.watchVisibility&&!n){var r=this._getNodeForObservableChecking();!
0===i&&Object(cr.b)(r,
{outlineWidth:"1px",outlineColor:"green",outlineStyle:"solid"}),this.watchVisibilit
y=Object(dr.w)(r,
{threshold:this._getWatchVisibilityThreshold(),registerHandle:function(e){var
i="scroll";return t&&t.addEventListener(i,e),
{handler:e,event:i,scrollNode:t}}},this._checkModuleState.bind(this)),i&&(clearTime
out(this._showGridTimeoutId),this._showGridTimeoutId=setTimeout(A.bind(this,r),1))}
},i._switchOffObservableCheckingToModuleNode=function(){var
t=this.watchVisibility,e=this.moduleNode,i=this.options.showObservableNode;t&&(!
0===i&&Object(cr.b)(e,
{outlineWidth:"0",outlineColor:"none",outlineStyle:"none"}),t&&t.disconnect&&t.disc
onnect(),this.watchVisibility=null)},i.correctAdSize=function(t,e){return
this._updateStrategy.correctAdSize(t,e)},i.getModuleNode=function(){return
this.moduleNode},i.toString=function(){return Or},i.getBaseName=function(){return
yr.toLowerCase()},e}(sr),Er="Format[ContinuousRoll]",Cr={maxSegments:-
1,playerSelectorPercent:"0%"},Dr=0,Ir=0,Tr=function(t){function e(e,i){var
n,r=i&&i.ancestor&&i.ancestor+":"+Er||"Module::"+Er;i&&i.moduleAPI&&i.moduleAPI.log
ger||or.b;return(n=t.call(this,e,function(t){for(var e,i=1;i<arguments.length;i+
+)e=null==arguments[i]?{}:arguments[i],i%2?C(Object(e),!0).forEach(function(i)
{D(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):C(Object(e)).forEach
(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},Cr,
{MODULE_ID:Er},i,{ancestor:r}))||this)[Er]=r,n.slotPlaceholders=[],1!
==n.options.maxSegments&&n._initSlotPlaceholders(),n}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i._vpaidInitAd=function(){var
e=(this.options.moduleAPI||
{}).addVPAIDEventListener,i=t.prototype._vpaidInitAd.call(this);return
e("AdLoaded",function(){var
t=this.scrollNode;this._addDOMEventListener(t,"scroll",function()
{this._updateModulePosition()}.bind(this)),this._addDOMEventListener(window,"resize
",function()
{this._updateModulePosition()}.bind(this))}.bind(this),this),e("AdStarted",function
(){this._updateModulePosition()}.bind(this),this),e("AdVideoComplete",function()
{this._closeRestOfSlotPlaceholders()}.bind(this),this),i},i._destroy=function(){var
e=this._reachInventoryFactory;e&&e.destroy&&e.destroy(),t.prototype._destroy.call(t
his)},i.getReachInventoryFactory=function(){var
t=this,e=this._reachInventoryFactory,i=this.scrollNode;if(this.options.doNotWatchVi
sibility)return null;if(e)return e;var n=this.slotPlaceholders.map(function(e)
{return t._createReachInventoryFactory(i,e)});return
this._reachInventoryFactory={id:"vn-visible-inventory-marks-group_"+this+"_"+Dr+
+,waiterCreator:function(){return Promise.race(n.map(function(t){return
t.waiterCreator()}))},destroy:function(){return n.forEach(function(t)
{t.destroy&&t.destroy()})},markNode:""}},i._updateModulePosition=function(){var
t=this._findNearestSlotPlaceholder();this._nearestSlotPlaceholder!
==t&&(this._nearestSlotPlaceholder=t,this.trigger("NearestSlotPlaceholderChanged"))
,t&&this._updateModulePositionCoordinates(t)},i._updateModulePositionCoordinates=fu
nction(t){var e=this.moduleNode,i=Object(cr.h)(t,e),n=i.top,r=i.left;Object(cr.b)
(e,{position:"absolute",top:Object(dr.s)(n+2),left:Object(dr.s)
(r),width:Object(dr.s)(t.clientWidth),visibility:""});var o=Object(dr.h)
(e).outsideHeight;Object(cr.b)(t,{height:Object(dr.s)
(o)})},i._findNearestSlotPlaceholder=function(){var t=window.innerHeight;return
this.slotPlaceholders.reduce(function(e,i){var
n=i.getBoundingClientRect(),r=n.top,o=n.height,a=Yn(r+o/2-t/2);return
0<o&&a<e.distance?{distance:a,slotPlaceholder:i}:e},
{distance:1/0,slotPlaceholder:null}).slotPlaceholder},i._getModuleVisibility=functi
on(){var t=this._findNearestSlotPlaceholder();return Object(dr.n)
(t)},i._initSlotPlaceholders=function(){var
t,e=this,i=this.options,n=i.showObservableNode,r=i.playerAfter,o=i.playerElement,a=
i.minDistance,s=i.maxSegments,d=i.lookupNode,l=window,c=l.scrollY,u=l.innerHeight,h
=d||document.body,p=Object(cr.o)(o)?[o]:Array.from(Object(cr.k)(o,h)),f=0>s?
1/0:s;if((t=this.slotPlaceholders).push.apply(t,p.slice(0,f)),(f-
=this.slotPlaceholders.length)&&r){var
g=this.slotPlaceholders[this.slotPlaceholders.length-1],v=u*a,b=g?
g.getBoundingClientRect().top+c+v:u;Array.from(Object(cr.k)(r,h)).some(function(t)
{if(t.getBoundingClientRect().top+c>b){var i=document.createElement("div");f-
=1,t.parentNode.insertBefore(e._addDOMNode(i),t.nextSibling),e.slotPlaceholders.pus
h(i),b+=v}return!f})}var
m=I.call(this).visible,y=(m&&m.length&&m[0]).previousElementSibling,O=y&&y.getBound
ingClientRect().top;Object(cr.b)(this.slotPlaceholders,{boxSizing:"border-
box",paddingTop:Object(dr.s)(2),paddingBottom:Object(dr.s)
(2),backgroundColor:"transparent"}),y&&window.scrollBy(0,y.getBoundingClientRect().
top-O),n&&Object(cr.b)(this.slotPlaceholders,
{outlineWidth:"1px",outlineColor:"pink",outlineStyle:"solid"}),this.slotPlaceholder
s.forEach(function(t){return t.className="vn-
placeholder"})},i._closeModule=function(){t.prototype._closeModule.call(this);var
e={height:0,paddingTop:0,paddingBottom:0},i=I.call(this),n=i.above,r=i.below,o=i.vi
sible;setTimeout(function(){if(Object(cr.b)([].concat(r,o),e),o&&o.length){var
t=(o&&o.length&&o[0]).previousElementSibling,i=t&&t.getBoundingClientRect().top;Obj
ect(cr.b)(n,e),i&&window.scrollBy(0,t.getBoundingClientRect().top-
i)}},1)},i._closeRestOfSlotPlaceholders=function(){var
t=window.innerHeight;this.slotPlaceholders.forEach(function(e){var
i=e.getBoundingClientRect().top;0>t-i&&Object(cr.b)(e,
{height:0,paddingTop:0,paddingBottom:0})})},i._updateModuleNodeSize=function(e)
{void 0===e&&(e=!1);var i=t.prototype._updateModuleNodeSize.call(this,e),n=i||
{},r=n.width,o=n.height;if(r&&o){var a={width:Object(dr.s)(r),height:Object(dr.s)
(o+2+2)},s=I.call(this),d=s.above,l=s.below,c=s.visible;Object(cr.b)
([].concat(l,c),a);var u=d.map(function(t){return Object(dr.h)
(t).outsideHeight}).reduce(function(t,e){return t+e},0);Object(cr.b)(d,a);var
h=d.map(function(t){return Object(dr.h)(t).outsideHeight}).reduce(function(t,e)
{return t+e},0);window.scrollBy(0,h-u)}return
i},i._switchOnObservableAdvancedNode=function(){var
t=this,e=this.slotPlaceholders,i=this.options.doNotWatchVisibility;if(!
this._tempObservableModuleNode&&!i){var n=this._tempObservableModuleNode={items:
[],remove:function(){return n.items.forEach(function(t){return Object(cr.s)
(t)})}},r=this._watchTempObservableModuleNodeVisibility={items:
[],disconnect:function(){return r.items.forEach(function(t)
{t.disconnect&&t.disconnect()})}};e&&e.forEach(function(e){var
i=t._createObservableAdvancedNode(),o=i.node,a=i.watcher,s=Object(cr.g)
(e),d=s.top,l=s.left;o.style.top=Object(dr.s)(d+2),o.style.left=Object(dr.s)
(l),o&&window.document.body.appendChild(o);var c=t._addDOMNode(o);o.className=("vn-
start-mark_"+t+"_"+Ir++).replace(/\s+/g,"-").replace(/(\
[|])/g,"_"),n.items.push(c),r.items.push(a)})}},i.getModuleVisibility=function()
{return
this._watchTempObservableModuleNodeVisibility&&this._tempObservableModuleNode?
Promise.race(this._tempObservableModuleNode.items.map(function(t){return
Object(dr.n)(t)})):Object(dr.n)(this.moduleNode)},i.toString=function(){return
Er},i.getBaseName=function(){return"ContinuousRoll".toLowerCase()},e}
(jr),kr=i(11),xr="FlyRoll",Nr="Format["+xr+"]",Mr=Nr,Vr={playerEmbeddedClass:"vn-
embedded",playerFloatingClass:"vn-
floating",zIndex:null,playerDesktopFactor:.6,playerMobileFactor:.6,playerDesktopSta
rtFactor:.5,playerDesktopStopFactor:.5,playerMobileStartFactor:.5,playerMobileStopF
actor:.5,floatingWidth:"200px",floatingBottom:"2%",floatingRight:"3%",flyExpandingD
uration:0,flyExpandingStartOpacity:.05,switchToEmbeddedModeAtTheEnd:!
0,flyBelowOnly:!1},Rr={_EMBEDDED:0,_FLOATING:1},Lr=!1,Fr=0,Wr=function(t){function
e(e,i){var n,r;void 0===i&&(i={});var
o=i&&i.ancestor&&i.ancestor+":"+Nr||"::"+Nr;if(Lr)throw Error(o+".Format instance
already active on the page");i&&i.moduleAPI&&i.moduleAPI.logger||or.b;var
a=i.canFlyModeStart;i.canFlyModeStart=Object(dr.t)(a);var
s={};i.canFlyModeStart&&(s.doNotWatchVisibility=!1,s.expandOnAdLoaded=!0),
(r=t.call(this,e,function(t){for(var e,i=1;i<arguments.length;i+
+)e=null==arguments[i]?{}:arguments[i],i%2?T(Object(e),!0).forEach(function(i)
{k(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):T(Object(e)).forEach
(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},Vr,
{},i,{},s,{ancestor:o}))||
this)._fakeVideoSlot=null,r.options.flyBelowOnly=Object(dr.t)
(r.options.flyBelowOnly),r[Mr]=o,r._setInstanceEIsExists(),r._replaceModuleInnerNod
e();var
d=r.options,l=d.floatingElement,c=d.floatingWidth,u=d.floatingTop,h=d.floatingRight
,p=d.floatingBottom,f=d.floatingLeft,g=d.floatingTranslateX,v=void 0===g?
0:g,b=d.floatingTranslateY,m=void 0===b?
0:b,y=d.flyExpandingDuration,O=d.flyExpandingStartOpacity;r._mode=Rr._EMBEDDED,r.tr
aceLogEnabled=Object(dr.t)(Object(kr.b)("flyroll.trace"));var
A={position:"fixed",zIndex:2147483646,backgroundColor:"white",boxShadow:"0 0 10px
black",width:Object(dr.s)(c),top:Object(dr.s)(u),right:Object(dr.s)
(h),bottom:Object(dr.s)(p),left:Object(dr.s)
(f),transitionProperty:"none",transitionDuration:0,opacity:y?
O:1,transform:"translate("+Object(dr.s)(v)+", "+Object(dr.s)(m)
+")"},w=x(r).options.zIndex;r._style=((n={})
[Rr._EMBEDDED]=r._updateEmbeddedBlockStyle({position:"absolute",textAlign:"center",
width:"100%",zIndex:w,backgroundColor:"",top:0,left:0,transform:"translate(0,
0)",minWidth:"auto",maxWidth:"auto",transitionProperty:"none",transitionDuration:0,
boxShadow:"none",opacity:1}),n[Rr._FLOATING]=r._updateFlyBlockStyle(A),n);var
_=Object(cr.j)(l);r._strictFloatingWidth=parseFloat(c)||
null,r._floatingWidthInPercents="%"===(""+c).trim().substr(-1)&&parseFloat(c)||
null,(r._floatingPositionNode=_||
r._floatingPositionNode)&&r._addDOMEventListener(window,"resize",function()
{r._updateSlotSizeAndPosition()});var
P=x(r).options,S=P.playerDesktopFactor,j=P.playerMobileFactor,E=P.playerDesktopStar
tFactor,C=P.playerDesktopStopFactor,D=P.playerMobileStartFactor,I=P.playerMobileSto
pFactor;return r._playerFactor=ur.h?j:S,r._playerStartFactor=ur.h?
D:E,r._playerStopFactor=ur.h?I:C,r._updateSlotSizeAndPosition(),r}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i._updateEmbeddedBlockStyle=function(t){return t||
{}},i._updateFlyBlockStyle=function(t){return t||
{}},i._replaceModuleInnerNode=function(){},i.isFloatingMode=function(){return
this._mode===Rr._FLOATING},i._initDOM=function()
{t.prototype._initDOM.call(this);var
e=this.moduleNode,i=this.insideIframe,n=this.options,r=n.floatingElement,o=n.showOb
servableNode;if(i)throw Error(this[Mr]+"._initDOM(). Unable create flyRoll inside
iframe");var a=r&&Object(cr.j)(r);this._floatingPositionNode=a||function(){return
this._addDOMNode(Object(cr.a)(document.body,"div",{position:"fixed",zIndex:-
1,top:0,bottom:0,left:0,right:0}))}.call(this),!0===o&&Object(cr.b)
(this._floatingPositionNode,
{outlineWidth:"1px",outlineColor:"magenta",outlineStyle:"solid"}),Object(cr.b)(e,
{zIndex:null}),this._updateSlotSizeAndPosition()},i._vpaidInitAd=function(){var
e=this,i=t.prototype._vpaidInitAd.call(this);this.isFloatingMode()||
this._updateFakeVideoSlot();var
n=this.options.canFlyModeStart,r=this.options.moduleAPI,o=r.addVPAIDEventListener;!
!(0,r.AdVideoStartWasHappenedAtLeastOnce)()&&(n=this.options.canFlyModeStart=!
0,this.options.expandOnAdLoaded=!
0),o&&(E.call(this,"AdLoaded","onAdLoadedHandlerFlyRollBase_2"),this.onAdLoadedHand
lerFlyRollBase_2=o("AdLoaded",function()
{E.call(e,"AdLoaded","onAdLoadedHandlerFlyRollBase_2"),e._updateSlotClass(),e.isFlo
atingMode()||
(e._updateModuleSize(),e._updateModuleNodeSize())},this)),n&&o&&(E.call(this,"AdLoa
ded","onAdLoadedHandlerFlyRollBase"),this.onAdLoadedHandlerFlyRollBase=o("AdLoaded"
,function(){E.call(e,"AdLoaded","onAdLoadedHandlerFlyRollBase"),function(){var
t=this.options.moduleAPI,e=t.inState,i=t.resumeAd,n=t.startAd;this._mode=Rr._FLOATI
NG;var
r=this._addVPAIDEventListener(this,"applyModuleStateCheckPausedAndPlaying",function
()
{this._removeVPAIDEventListener(this,"applyModuleStateCheckPausedAndPlaying",r),thi
s.isFloatingMode()&&(this._setMode(Rr._FLOATING),e(["paused","pausing"])?i():!
e("playing")&&n())}.bind(this))}.call(e)},this));var a=function(){var
t=(e.options||{}).switchToEmbeddedModeAtTheEnd;(void 0===t||
t)&&e.isFloatingMode()&&e._setMode(Rr._EMBEDDED)};return
o&&(E.call(this,"AdVideoComplete","onAdVideoCompleteHandlerFlyRollBase"),this.onAdV
ideoCompleteHandlerFlyRollBase=o("AdVideoComplete",a,this),E.call(this,"AdSkipped",
"onAdSkippedHandlerFlyRollBase"),this.onAdSkippedHandlerFlyRollBase=o("AdSkipped",a
,this),E.call(this,"AdVideoStart","onAdVideoStartHandlerFlyRollBase"),this.onAdVide
oStartHandlerFlyRollBase=o("AdVideoStart",function(){E.call(
e,"AdVideoStart","onAdVideoStartHandlerFlyRollBase"),e.trigger("vnFormatStateChange
d",
{src:Nr,isFloating:e._mode===Rr._FLOATING})},this)),i},i._getNodeForObservableCheck
ing=function(){return this._fakeVideoSlot||
this.moduleNode},i._updateModuleNodeSize=function(e){void 0===e&&(e=!1);var
i=this._floatingModeWasExists,n=this.options.canFlyModeStart;if(!
this.isFloatingMode())if(n&&!i)t.prototype._updateModuleNodeSize.call(this,!
0);else{var r=(t.prototype._updateModuleNodeSize.call(this,e||n&&i)||
{}).height;r&&this._updateSlotSizeAndPosition(r)}},i._applyModuleStateCheckPausedAn
dPlaying=function(e){var
i=e.intersectionRatio,n=e.moduleSquare,r=e.boundingClientRect,o=this.traceLogEnable
d,a=this._playerStartFactor,s=this._playerStopFactor,d=this._playerFactor,l=this._f
loatingModeWasExists,c=this._moduleWasClosed,u=this.moduleNode,h=this.options,p=h.f
lyBelowOnly,f=h.canFlyModeStart,g=h.moduleAPI,v=g.inState,b=g.getState,m=g.resumeAd
,y=g.pauseAd;if(!c){var O=this.isFloatingMode();O||
(this.maxEmbeddedIntersectionRatio=Jn(i,this.lastEmbeddedIntersectionRatio||0));var
A=b(),w=v&&!v("loaded")||
f,_=v&&v(["paused","pausing"]),P=v&&v("playing"),S=v&&v("afterplay"),j=u&&u.getBoun
dingClientRect()||{},E=j.top,C=j.bottom,D=j.width;if(o&&this.logger.trace(this[Mr]
+"._applyModuleStateCheckPausedAndPlaying() !!!! intersectionRatio="+i+"
moduleNodeWidth="+D+" boundingClientRect.width="+r.width+" moduleSquare="+n+"
_floatingModeWasExists="+l+" floating="+O+" _playerFactor="+d+" state="+A+"
playing="+P+" paused="+_+" started="+w+"
this._adHasBeenStarted="+this._adHasBeenStarted+"
maxEmbeddedIntersectionRatio="+this.maxEmbeddedIntersectionRatio,1),!O&&p){var
I=document.documentElement.clientHeight,T=C>=I&&E<=I&&0<E||!
i&&C>=I&&E>=I;if(o&&this.logger.trace(this[Mr]+". forbiddenSetFlyMode="+T+"
top="+E+" bottom="+C+" clientHeight="+I+" intersectionRatio="+i+"
floating="+O,2,"pink"),T)return void
t.prototype._applyModuleStateCheckPausedAndPlaying.call(this,
{intersectionRatio:i})}_&&(O||i>=a)&&m&&m(),!
O&&P&&this.maxEmbeddedIntersectionRatio<s&&!l&&y&&y();var k=n&&!Object(dr.p)
(D,r.width,10),x=f||this.lastEmbeddedIntersectionRatio>=d||
this.lastEmbeddedIntersectionRatio>=a&&i<this.lastEmbeddedIntersectionRatio||
l;w&&O&&i>=d&&k?this._setMode(Rr._EMBEDDED):w&&!O&&!
S&&i<d&&k&&x&&this._setMode(Rr._FLOATING),O||
(this.lastEmbeddedIntersectionRatio=i),this.trigger("applyModuleStateCheckPausedAnd
Playing")}},i._moduleResizeAd=function(e,i){var
n=this.traceLogEnabled,r=this.options.moduleAPI,o=r.getIndents,a=r.saveAdParams,s=r
.getSavedAdParams,d=r.inState,l=o&&o(),c=void
0==l.clientHeight;if(n&&this.logger.trace(this[Mr]+"._moduleResizeAd()
mode="+this._mode),this._updateSlotClass(),this.isFloatingMode()){var
u=this._mode,h=this._strictFloatingWidth,p=this._floatingWidthInPercents,f=this.mod
uleInnerNode,g=this.options.moduleAPI,v=g.resizeAd,b=g.setWrapperSize,m=g.getContro
lNode,y=g.AdVideoStartWasHappenedAtLeastOnce,O=l.borderTop,A=l.paddingTop,w=l.borde
rBottom,_=l.paddingBottom,P=l.marginTop,S=!!y(),j=this.getBaseName()
+"_moduleResizeAd",E=s(j);if((c||!
d(["loaded","starting","playing","pausing","paused"]))&&S)return void(Object(dr.u)
(E&&E[u],this.logger,Nr+" _moduleResizeAd().")||M.call(this,
["AdVideoStart"],"_updateModuleState()"));var C=window.getComputedStyle(e),D=!
p&&h||Qn(e.clientWidth-parseFloat(C.paddingLeft)-
parseFloat(C.paddingRight));p&&(n&&this.logger.trace(this[Mr]+" _moduleResizeAd()
floatingWidth="+D*p/100+" moduleWidth="+D+" _strictFloatingWidth="+h+"
_floatingWidthInPercents="+p),D*=p/100);var
I=Zn(window.innerWidth,D),T=Zn(window.innerHeight,Qn(I*i)),k=function(t,e,i,n)
{function r(i){e=Qn((t=i)*n)}function o(i){t=Qn((e=i)/n)}var
a=this.options,s=a.floatingMinHeight,d=a.floatingMaxHeight,l=a.floatingMinWidth,c=a
.floatingMaxWidth,u=a.moduleAPI.getIndents,h=u&&u(),p=h.top+h.bottom,f=i.clientWidt
h,g=document.documentElement,v=g.clientHeight,b=g.clientWidth,m=N(c,f),y=N(l,f),O=N
(d,v),A=N(s,v);return y&&t<y&&r(y),A&&e+p<A&&o(A-
p),m&&t>m&&r(m),b&&t>b&&r(b),O&&e+p>O&&o(O-p),
{width:t,height:e}}.call(this,I,T,e,i),x=k.width,V=k.height;E||(E={});var
R=E[u]=[];v&&(R.push(function(){return v(x,V)}),v(x,V));var L=(V||0)+(O||0)+(w||0)+
(A||0)+(_||0),F={width:Object(dr.s)(x),height:Object(dr.s)(L+(P||0))};Object(cr.b)
(f,F),R.push({node:f,moduleInnerStyles:F}),R.push(function(){return b(L)}),b(L);var
W=(this.options||{}).setSizeByMedia;if(Object(dr.t)(W)){var H=m("vpaidSlot");if(H)
{var
z={position:"absolute",top:0,left:0,width:"100%",height:"100%",textAlign:"center"};
Object(cr.b)(H,z),R.push({node:H,styles:z})}}a(j,E)}else
t.prototype._moduleResizeAd.call(this,e,i)},i._getTopLeftForEmbedded=function()
{return{top:0,left:0}},i._updateSlotSizeAndPosition=function(t){void
0===t&&(t=null);var
e=this._mode,i=this.moduleNode,n=this.options,r=n.forceEnableVerticalContent,o=n.fl
yExpandingDuration,a=n.moduleAPI,s=a.getIndents,d=a.getAdAspectRatio,l=a.AdVideoSta
rtWasHappenedAtLeastOnce,c=a.inState,u=a.saveAdParams,h=a.getSavedAdParams,p=this.m
oduleInnerNode,f=this.traceLogEnabled;if(p&&null!=e){var g=s(),v=void
0==g.clientHeight,b=!!l();f&&this.logger.trace(this[Mr]
+"._updateSlotSizeAndPosition() mode="+e+" wrapperNotFound="+v+"
notFirstAd="+b);var m=this.getBaseName()+"_updateSlotSizeAndPosition",y=h(m)||
{};if((v||!c(["loaded","starting","playing","pausing","paused"]))&&b)return void
Object(dr.u)(y&&y[e],or.b,Nr+" _updateSlotSizeAndPosition() .");y||(y={});var
O=y[e]=[];if(Object(cr.b)(p,this._style[e]),this._mode===Rr._EMBEDDED){var A=t||
g.outsideHeight,w=this._getTopLeftForEmbedded(),_=w.top,P=w.left,S=Object(dr.h)
(i),j=S.clientWidth,E=S.marginRight,C=S.marginLeft,D=i.style,I=D.marginLeftStr,T=D.
marginRightStr,k=j+C+E-(parseFloat(I)||0)-(parseFloat(T)||0);p&&Object(cr.b)(p,
{top:Object(dr.s)(_),left:Object(dr.s)
(P),visibility:""}),f&&this.logger.trace(this[Mr]+"._updateSlotSizeAndPosition()
height="+A+" width="+k+" top="+_+" left="+P+" forceHeight="+t),void 0!
==A&&p&&Object(cr.b)(p,{height:Object(dr.s)(A)}),void 0!==k&&p&&Object(cr.b)(p,
{width:Object(dr.s)(k)})}else{var x=d&&d();ur.h||!(1<x)||r||(x=9/16);var
N=this._getWidthNode();this._moduleResizeAd(N,x),O.push(this._moduleResizeAd.bind(t
his,N,x));var M=function(){var
t=this._style,e=this._floatingPositionNode,i=this.traceLogEnabled,n=this.options,r=
n.floatingHCenter,o=n.floatingTop,a=n.floatingRight,s=n.floatingBottom,d=n.floating
Left,l=n.moduleAPI,c=l.getAdHeight,u=l.getAdWidth,h=l.getIndents,p=c&&c(),f=u&&u();
if(!(p&&f&&e&&t))return i&&this.logger.trace(this[Mr]+" one or more parameters is
false: adHeight="+p+" adWidth="+f+" _floatingPositionNode="+e+"
_style="+t,1,"pink"),null;var
g=e.getBoundingClientRect(),v=g.width,b=g.height,m=g.left,y=g.top,O=h&&h()||
{},A=O.top,w=O.outsideWidth,_=O.insideHeight;if(isNaN(A)||isNaN(w)||isNaN(_))return
i&&this.logger.trace(this[Mr]+" parameters isNaN topPadding="+A+" flWidth="+w+"
flHeight="+_,1,"pink"),null;var P="";return r?P+="translateX("+Object(dr.s)((v-
w)/2)+") ":d?P+="translateX("+Object(dr.s)(d)+")
":a&&(P+="translateX(calc("+Object(dr.s)(v)+" - "+Object(dr.s)(a)+" -
"+Object(dr.s)(w)+")) "),o?P+="translateY("+Object(dr.s)(o)+")
":s&&(P+="translateY(calc("+Object(dr.s)(b)+" - "+Object(dr.s)(s)+" -
"+Object(dr.s)(_+A)+")) "),i&&this.logger.trace(this[Mr]+'
calcFloatingWidthAndPosition() transform="'+P+'"\n width='+v+" flWidth="+w+"
adWidth="+f+" top="+y+" left="+m+" adHeight="+p+" flHeight="+_),{width:Object(dr.s)
(w),top:Object(dr.s)(y),left:Object(dr.s)(m),transform:P}}.call(this)||
{};M&&Object(cr.b)(p,M),o&&setTimeout(function(){return Object(cr.b)(p,
{transitionProperty:"opacity",transitionDuration:Object(dr.r)
(o),opacity:1})},1)}var
V=getComputedStyle(p),R=Object.keys(this._style[Rr._EMBEDDED]).concat("height").red
uce(function(t,e){return t[e]=V[e],t},
{});O.push({node:p,styles:R}),u(m,y)}},i._updateSlotClass=function(){var
t=this._mode,e=this.options,i=e.playerEmbeddedClass,n=e.playerFloatingClass,r=e.mod
uleAPI.getControlNode,o=r&&r("slot");o&&(t===Rr._FLOATING?
(o.classList.remove(i),o.classList.add(n)):
(o.classList.remove(n),o.classList.add(i)))},i._getWidthNode=function(){var
t=this._mode,e=this._floatingPositionNode,i=this.widthNode,n=this.options.moduleAPI
.getControlNode;return(t===Rr._FLOATING?e:i)||n&&n("slot")},i._setMode=function(e)
{if(!this._moduleWasClosed){this.isFloatingMode()||
this._updateFakeVideoSlot(),this._mode=e;var
i=e===Rr._FLOATING;t.prototype._resetObservableNodes.call(this),this._updateModuleS
ize(),this._updateModuleNodeSize(),this._updateSlotSizeAndPosition(),i&&(this._floa
tingModeWasExists=!0),this._updateSlotClass(),this.trigger("vnFormatStateChanged",
{src:Nr,isFloating:i})}},i._destroy=function()
{this._resetInstanceEIsExists(),t.prototype._destroy.call(this)},i._resetInstanceEI
sExists=function(){Lr===this&&(Lr=!1)},i._setInstanceEIsExists=function(){Lr||
(Lr=this)},i._createReachInventoryFactory=function(e,i){var
n=this.traceLogEnabled,r=this.options,o=r.canFlyModeStart,a=r.moduleAPI.getMainModu
leId;n&&this.logger.trace(this[Mr]+"._createReachInventoryFactory()
canFlyModeStart="+o,2,"magenta");var s=a&&a();return o?{id:("vn-visible-inventory-
mark_"+this+"_"+Fr+++" vn-module__"+s).replace(/\s+/g,"-").replace(/(\
[|])/g,"_"),waiterCreator:function(){return
Promise.resolve()},moduleNode:i}:t.prototype._createReachInventoryFactory.call(this
,e,i)},i._getWatchVisibilityThreshold=function(){var
t=this._playerFactor,e=this._playerStartFactor,i=this._playerStopFactor,n=[];return
0<=t&&(n.push(t),.01<t&&n.push(t-.01),.01<1-t&&n.push(t+.01)),0<=e&&n.push(e),i!
==e&&0<=i&&n.push(i),n.push(e),n.length&&(0!==t&&n.push(0),1!
==t&&n.push(1)),n.sort()},i._closeModule=function(e){void 0===e&&(e={});var
i=this.options.moduleAPI.getControlNode;this._resetInstanceEIsExists();var
n=i&&i("slot");Object(cr.b)(n,
{display:"none"}),t.prototype._closeModule.call(this,e)},i._updateFakeVideoSlot=fun
ction(){var
t=this._fakeVideoSlot,e=this.moduleNode,i=this.options,n=i.showObservableNode,r=i.m
oduleAPI.getControlNode,o=t;Object(cr.o)(o)||(this._fakeVideoSlot=o=docume
nt.createElement("div"),Object(cr.b)(o,
{position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0}),e.insertB
efore(o,e.firstElementChild),!0===n&&(Object(cr.b)(this._floatingPositionNode,
{outlineWidth:"1px",outlineColor:"lightpink",outlineStyle:"solid"}),o.classList="fa
keVideoSlot"));var a=r&&r("vpaidSlot"),s=a&&Object(cr.h)(a,o)||{};return
Object(cr.b)(o,{top:Object(dr.s)(s.top||0)}),o},i.toString=function(){return
Nr},i.getBaseName=function(){return xr.toLowerCase()},e}
(jr),Hr="Format[FlyRollTop]",zr={embeddedPosition:"absolute",zIndex:2147483646},Br=
function(t){function e(e,i){var
n,r=i&&i.ancestor&&i.ancestor+":"+Hr||"::"+Hr;return(n=t.call(this,e,R({},zr,{},i,
{ancestor:r}))||this)[Hr]=r,n}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i._updateFlyBlockStyle=function(t){var e=(t||
{}).width;return e&&e.endsWith("%")&&delete t.width,R({},t,
{right:0,bottom:0})},i._updateEmbeddedBlockStyle=function(t){return R({},t,
{position:"absolute",height:0,overflow:"hidden"})},i._replaceModuleInnerNode=functi
on(){this.moduleInnerNode=Object(dr.k)
(window).document.body.appendChild(this.moduleInnerNode.parentElement.removeChild(t
his.moduleInnerNode))},i._getTopLeftForEmbedded=function(){return function(t){if(!
t)return{top:0,left:0};var
e=t.getBoundingClientRect(),i=document,n=i.body,r=i.documentElement,o=window.pageYO
ffset||r.scrollTop||n.scrollTop,a=window.pageXOffset||r.scrollLeft||
n.scrollLeft,s=r.clientTop||n.clientTop||0,d=r.clientLeft||n.clientLeft||
0;return{top:e.top+o-s,left:e.left+a-d}}(this.moduleNode)},i.toString=function()
{return Hr},e}
(Wr),Ur="Format[FlyRollAlwaysFly]",qr={embeddedPosition:"absolute",zIndex:214748364
6,ignoreCreatePlayerElement:!0,canFlyModeStart:!0},Gr=function(t){function e(e,i)
{var
n,r=i&&i.ancestor&&i.ancestor+":"+Ur||"::"+Ur;return(n=t.call(this,e,function(t)
{for(var e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
F(Object(e),!0).forEach(function(i){W(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):F(Object(e)).forEach
(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},qr,
{},i,{ancestor:r}))||this)[Ur]=r,n}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i._getTopLeftForEmbedded=function()
{return{top:0,left:0}},i._setMode=function(e)
{e===Rr._FLOATING&&(this._switchOffObservableAdvancedNode(),t.prototype._setMode.ca
ll(this,e))},i._updateFakeVideoSlot=function(){},i._updateModuleNodeSize=function()
{},i._initDOM=function(){t.prototype._initDOM.call(this);var
e=this.moduleNode;Object(cr.o)(e)&&Object(cr.b)(e,
{height:0})},i.toString=function(){return Ur},e}
(Br),Xr="Format[FlyRollRegular]",Yr={zIndex:null,embeddedPosition:"relative"},Qr=fu
nction(t){function e(e,i){var
n,r=i&&i.ancestor&&i.ancestor+":"+Xr||"::"+Xr;return(n=t.call(this,e,z({},Yr,{},i,
{ancestor:r}))||this)[Xr]=r,n}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i._updateEmbeddedBlockStyle=function(t){return
z({},t,{position:"absolute"})},i._getTopLeftForEmbedded=function()
{return{top:0,left:0}},i.toString=function(){return Xr},e}(Wr),Jr={"Loading
video...":"Загрузка видео...","Skip ad in {{x}} sec":"Пропустить можно через {{x}}
сек","Skip ad in":'Пропустить <div style="font-size: smaller">можно
через</div>',"{{x}} sec":"{{x}} сек","Going after":'Реклама<div style="font-size:
smaller"> закончится через</div>',"Learn
more":"Подробнее",Advertisement:"Реклама","Watch video":"Смотреть видео","Watch
video<br/>after ad":"Продолжение</br>после рекламы","Pull to
skip<br/>{{x}}":"Тяните,<br/>чтобы пропустить<br/>{{x}}","Push to watch<br/>360
video":"Нажмите, чтобы смотреть<br/>360-градусное видео","The ad will end in {{x}}
sec":"До окончания рекламы {{x}} сек"},Zr={ru:Jr},Kr=!1,$r="en",to=function(t)
{for(var e=String.raw,i=arguments.length,n=Array(1<i?i-1:0),r=1;r<i;r++)n[r-
1]=arguments[r];if(Kr||function(){var t;try{t=(top.navigator.language||
top.navigator.userLanguage).substr(0,2)}catch(e){t=(navigator.language||
navigator.userLanguage).substr(0,2)}Kr=!0,Zr[t]&&($r=t)}(),"en"===$r){if(e)return
e(t,n);if(!Zr[$r]){var o=Zr[$r]={};Object.keys(Jr).forEach(function(t)
{o[t]=t})}}var a=t.join(""),s=Zr[$r],d="";return Object.keys(s).forEach(function(t)
{d||t.replace(/{{x}}/g,"")!==a||(d=s[t],n&&n.forEach(function(t){d=d.replace(/
{{x}}/g,t)}))}),d||
e(t,n)},eo=i(25),io=i.n(eo),no=i(26),ro=i.n(no),oo=i(5),ao="SlideRoll",so="Format["
+ao+"]",lo={playerElement:null,playerAfter:null,playerBefore:null,playerFactor:.5,c
loseFactor:.3,transitionDuration:0,expandOnAdLoaded:!1},co={videoSlot:{boxShadow:"0
0 20px 5px rgba(0, 0, 0, 0.5)"},title:{top:"10px",left:"10px",padding:"5px
10px",lineHeight:"15px",color:"white",backgroundColor:"rgba(0, 0, 0,
0.289)",borderRadius:"3px",cursor:"default",pointerEvents:"none"},logo:
{top:"5px",right:"5px",bottom:"auto",left:"auto"},play:null,skipAd:null,skipAdCount
down:
{display:"none",position:"absolute",top:"auto",right:"auto",bottom:"5px",left:"50%"
,width:"160px",margin:"0 auto 5px
auto",padding:"5px",borderRadius:"3px",backgroundColor:"rgba(0, 0, 0,
0.7)",transform:"translateX(-50%)",textAlign:"center"},subtitle:
{bottom:"25%"}},uo=function(t){function e(e,i){var n;if(!ur.h)throw new
Error("Mobile not detected");return(n=t.call(this,e,function(t){for(var
e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?q(Object(e),!
0).forEach(function(i){G(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):q(Object(e)).forEach
(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},lo,
{},i,{ancestor:so}))||this).options.expandOnAdLoaded=Object(dr.t)
(n.options.expandOnAdLoaded),n.waitingForInitialScroll=!0,n.onResize=function()
{this._updateModuleSize()}.bind(X(n)),n.onScroll=function(){var
t=this._getDimensions().visiblePercent,e=this.options.closeFactor;if(this._updateMo
duleState(),!$n&&t>e&&tr){var
i=this.requestAnimationID;i&&window.cancelAnimationFrame(i),this.scrollTo=null}if(u
r.g){var n=this.module.getControlNode("volume"),r=.6*(window.innerHeight-
document.querySelector("html").clientHeight);Object(cr.b)(n,
{marginBottom:r+"px"})}}.bind(X(n)),n.onTouchEnd=function(){$n=!
1,this._removeDOMEventListener(window,"touchend",this.onTouchEnd),this._removeDOMEv
entListener(this.wrapper,"touchend",this.onTouchEnd);var
t=this.module,e=this.options.closeFactor,i=this._getDimensions(),n=i.visiblePercent
,r=i.moduleTop;or.b.none(so+" updateModuleState("+n+")
"+t.state),this.waitingForInitialScroll&&n>e&&(this._scrollTo(r),this.waitingForIni
tialScroll=!
1),this._updateModulePosition(),this._updateModuleState()}.bind(X(n)),n.onTouchStar
t=function(){$n=!
0,tr=null,this._addDOMEventListener(window,"touchend",this.onTouchEnd),this._addDOM
EventListener(this.wrapper,"touchend",this.onTouchEnd)}.bind(X(n)),n._scrollTo=func
tion(t,e){var i,n=this;e&&(er=e),$n||tr||
(tr=t,this.requestAnimationID=window.requestAnimationFrame(function t(e){if(void
0===e&&(e=0),(!$n||er)&&tr){var r=Zn(1,(e-(i=i||e))/1e3*2),o=(tr-
window.scrollY)*r;if(0<r&&.05>Yn(o))return
er&&er(),window.scrollTo(window.scrollX,tr),er=null,void(tr=null);window.scrollTo(w
indow.scrollX,Qn(window.scrollY+o)),n.requestAnimationID=window.requestAnimationFra
me(t)}})),tr=t}.bind(X(n)),n}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i._initDataXml=function(){var t=this;return new
Promise(function(e){var
i=t.module,n=t.options,r=window.innerWidth,o=a(n,""+t),s=o.moduleNode,d=o.moduleInn
erNode;t.moduleNode=t._addDOMNode(s),t.moduleInnerNode=t._addDOMNode(d);var
l=t.slot=t._initSlotNode();Object(cr.b)(s,{position:"relative"}),Object(cr.b)(d,
{clip:"rect(0,0,0,0)"});var
c=s.getBoundingClientRect(),u=c.left,h=c.right;Object(cr.b)(s,
{marginLeft:"-"+u+"px",marginRight:"-"+(r-h)
+"px"}),Object.keys(co).forEach(function(t){var e=co[t];i.setControlData(t,
{css:e})}),i.setControlData("logo",{content:io.a}),i.setControlData("slot",
{node:l}),t._addVPAIDEventListener(i,"AdLoaded",function(){var
t=this.module,e=this.slot,i=this.options.expandOnAdLoaded,n=t.getAdAspectRatio();if
(!n)throw new Error(so+" Invalid aspect ratio ("+n+")");var
r=t.getControlNode("iframe");this.wrapper=t.getControlNode("wrapper"),Object(cr.b)
(r,{position:"absolute",left:0,bottom:0,width:"100%"}),Object(cr.b)(e,
{display:"",transform:"translate3d(0,0,0)"}),this._createSlideToSkipAd(t),this._add
DOMEventListener(window,"resize",this.onResize),this._addDOMEventListener(window,"s
croll",this.onScroll),this._addDOMEventListener(window,"touchstart",this.onTouchSta
rt,{passive:!0}),this._addDOMEventListener(window,"touchend",ho,{passive:!
0}),this._addDOMEventListener(this.wrapper,"touchstart",this.onTouchStart,
{passive:!0}),this._addDOMEventListener(this.wrapper,"touchend",ho,{passive:!
0}),i&&(this._updateModuleState(),this._updateModuleSize())}.bind(t)),t._addVPAIDEv
entListener(i,"AdResumed",function()
{this._updateModuleState()}.bind(t)),t._addVPAIDEventListener(i,"AdVideoStart",func
tion()
{this._updateModuleSize(),this._updateModulePosition(),this._updateModuleState()}.b
ind(t)),t._addVPAIDEventListener(i,"AdSkippableStateChange",function()
{this.module.getAdSkippableState(),this._updateModuleState()}.bind(t)),t._addVPAIDE
ventListener(i,"AdStopped",function()
{}.bind(t)),t._addVPAIDEventListener(i,"AdDestroyed",function(){return
t._destroy()}),e()})},i._destroy=function(){t.prototype._destroy.call(this);var
e=this._getDimensions().moduleTop,i=this.requestAnimationID;i&&window.cancelAnimati
onFrame(i),e&&window.scrollTo(window.scrollX,e),Object.assign(this,
{onScroll:null,onResize:null,onTouchEnd:null,onTouchStart:null,module:null,moduleNo
de:null,moduleInnerNode:null,slot:null,_scrollTo:null})},i._createSlideToSkipAd=fun
cti
on(){var t=this.module,e=t.getControlNode("wrapper"),i=Object(cr.a)(e,"div",
{display:"none",position:"absolute",zIndex:5,top:"auto",right:"auto",bottom:"10px",
left:"50%",width:"160px",margin:"0
auto",padding:"5px",borderRadius:"3px",backgroundColor:"rgba(0, 0, 0,
0.7)",transform:"translateX(-
50%)",textAlign:"center",lineHeight:1,pointerEvents:"none"},to(U(),ro.a)),n=functio
n(){var e=t.getAdSkippableState();Object(cr.b)(i,
{display:e?"":"none"})};n(),this._addVPAIDEventListener(t,"AdSkippableStateChange",
n),t.setControlData("slideToSkipAd",{node:i})},i._initSlotNode=function(){var
t=this.moduleInnerNode;return Object(cr.a)(t,"div",
{position:"fixed",zIndex:2147483647,left:0,bottom:0,backgroundColor:"#000",transfor
m:"translate3d(0,0,0)"})},i._updateModuleState=function(){var
t=this.module,e=this.options,i=e.playerFactor,n=e.closeFactor,r=this._getDimensions
(),o=r.visiblePercent,a=r.moduleTop;(or.b.none(so+" updateModuleState("+o+")
"+t.state),!tr&&!
$n&&this.waitingForInitialScroll&&o>n&&(this._scrollTo(a),this.waitingForInitialScr
oll=!1),oo.c.call(t,"loaded")&&o>i&&t.startAd(),oo.c.call(t,
["paused","pausing"])&&o>i&&t.resumeAd(),oo.c.call(t,"playing")&&o<i&&t.pauseAd(),o
o.c.call(t,"playing"))&&(t.getAdSkippableState()||
window.scrollTo(window.scrollX,a))},i._updateModulePosition=function(){var
t=this.module,e=this.options.closeFactor,i=this._getDimensions(),n=i.visiblePercent
,r=i.moduleTop,o=i.viewportTop;!$n&&oo.c.call(t,"playing")&&n>1-
e&&this._scrollTo(r),0===n&&r<o&&t.skipAd()},i._updateModuleSize=function(){var
t=this.module,e=this.moduleNode,i=this.moduleInnerNode,n=this.slot,r=window,o=r.inn
erWidth,a=r.innerHeight;Object(cr.b)(i,
{clip:"rect(0,"+o+"px,"+a+"px,0)"}),Object(cr.b)([e,n],
{width:o+"px",height:a+"px"}),t.resizeAd(o,a)},i._getDimensions=function(){var
t=this.moduleNode,e=window,i=e.scrollY,n=e.innerWidth,r=e.innerHeight,o=r,a=i,s=i+r
,d=a+(t&&t.getBoundingClientRect()||{}).top,l=Jn(a,d),c=Zn(s,d+o),u=Jn(0,Zn(o,c-
l));return{viewportWidth:n,viewportHeight:o,viewportTop:a,viewportBottom:s,moduleHe
ight:o,moduleTop:d,moduleBottom:d+o,visibleTop:l,visibleBottom:c,visibleHeight:u,vi
siblePercent:o&&u/o}},i._getModuleDimensions=function(){return Object(dr.j)
(window,this.moduleNode)},i.toString=function(){return so},i.getBaseName=function()
{return ao.toLowerCase()},e}(sr),ho=function()
{Kn&&Kn(),Kn=null},po=i(9),fo=i(27),go=i.n(fo),vo=i(13),bo=i(22),mo="::TimeBeforeSk
ipChecker",yo=function(t){function e(e){var i;void 0===e&&(e={}),
(i=t.call(this,e)||this).moduleAPI=e.moduleAPI,i.starting=!
1,i.updateStateChecker=e.updateStateChecker,i.getTimeBeforeSkip=e.getTimeBeforeSkip
,i.shouldSetAdSkippableState=!1!==e.shouldSetAdSkippableState;var
n=Y(i).moduleAPI||{},r=n.addVPAIDEventListener,o=n.inState,a=n.logger;return
i.logger=a,o("started","starting","playing")?i.start():(r("AdVideoStart",function()
{return i.start()},Y(i)),r("AdStarted",function(){return
i.start()},Y(i)),r("AdPlaying",function(){return
i.start()},Y(i)),r("AdResumed",function(){return
i.start()},Y(i)),r("AdStopped",function(){return
i.stop()},Y(i)),r("AdPaused",function(){return
i.stop()},Y(i)),r("AdSkipped",function(){return i.stop()},Y(i))),i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.stop=function(){var
t=this.timeCounter;t&&t.stop()},i.start=function(){var
t=this.logger,e=this.timeCounter;if(e)e.start();else{var
i=this.moduleAPI,n=this.getTimeBeforeSkip,r=this.shouldSetAdSkippableState,o=(i||
{}).setAdSkippableState,a=this.timeBeforeSkip=n&&n();t&&t.log(mo+".
timeBeforeSkip="+a);var s=void 0!=a&&!a;r&&o(s),!s&&t&&t.log(mo+".
timeBeforeSkip="+a+". Unskippable Ad."),this.timeCounter=new
bo.a({increasePieceOfTime:500,tickHandler:this.tickHandler.bind(this)}),this.timeCo
unter.start()}},i.tickHandler=function(t){var
e=t.elapsedTime,i=this.timeBeforeSkip,n=this.moduleAPI,r=this.timeCounter,o=this.up
dateStateChecker,a=this.shouldSetAdSkippableState,s=(n||
{}).setAdSkippableState;i&&i<=e&&(a&&s(!
0),o&&o(),r&&r.stop())},i.getAdElapsedTime=function(){var t=this.timeCounter;return
t?t.getAdElapsedTime():0},i.isSkippable=function(){var
t=this.getTimeBeforeSkip;return t&&!!(this.timeBeforeSkip=t&&t())},e}
(rr.a),Oo="Format[CollapsingThumbnail]",Ao=500,wo={right:"5%",bottom:"60%",width:"2
5%",boxShadow:"0 0 10px rgba(0, 0, 0,
0.5)",transitionDuration:350,skipControlsTransitionDuration:350,skipControlsTransit
ionDelay:20,getThumbnailTimeout:500,startFadingDuration:2e3,fadingDuration:500,rais
ingDuration:0,intermediateFadingOpacity:.7,targetFadingOpacity:0,countdownBackgroun
dColor:"#d3d3d3",countdownBackgroundHoverColor:"#aaa",countdownColor:"black",countd
ownHoverColor:"#eee",thumbnailBackgroundColor:"#f2f2f2",thumbnailWrapperWidth:"62%"
},_o={wrapper:{paddingTop:0,paddingBottom:0},logo:{},skipAd:
{top:0,right:0,padding:"5px",margin:"0 5px 5px 0"},skipAdCountdown:cr.m,title:
{top:0,right:"40px",left:"auto",margin:"5px
0",padding:"5px",color:"white",background:"rgba(0, 0, 0, 0.27)"},vnAfterplay:
{marginTop:0},play:{marginTop:0}},Po=function(t){function e(e,i,n){var
r,o=i&&i.ancestor&&i.ancestor+":"+Oo||"Module::"+Oo;return(r=t.call(this,et({},i,
{ancestor:o}))||this)[Oo]=o,r.module=e,r._getCurrentPlayer=n,r.options=function(t)
{void 0===t&&(t={});var e=Object(pr.h)(Object(dr.i)(window,document))||
{},i=e.vn_t_startFadingDuration,n=e.vn_t_fadingDuration,r=e.vn_t_raisingDuration,o=
e.vn_t_intermediateFadingOpacity,a=e.vn_t_targetFadingOpacity;return void 0!
==i&&(t.startFadingDuration=parseInt(i,10)),void 0!
==n&&(t.fadingDuration=parseInt(n,10)),void 0!
==r&&(t.raisingDuration=parseInt(r,10)),void 0!
==o&&(t.intermediateFadingOpacity=parseFloat(o)),void 0!
==a&&(t.targetFadingOpacity=parseFloat(a)),t}(et({},wo,
{},i)),r.TIMER_NAME=r.MODULE_ID+":RemainingTimeChange",r.adWidthPrev=null,r.mainTra
nsitionWasStarted=!1,r.mainTransitionWasFinished=!1,r}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.init=function(){var
t=this,e=this.module,i=e.getControlUnionData("skipAdCountdown","timeBeforeSkip")||
e.getControlUnionData("skipAd","timeBeforeSkip");this.timeBeforeSkipChecker=new
yo({getTimeBeforeSkip:function(){return
i},moduleAPI:e.getAPI(),shouldSetAdSkippableState:!
0,logger:this.logger}),this._addDestroyableObject(this.timeBeforeSkipChecker),rt.ca
ll(this).then(function()
{}),nt.call(this),this._addVPAIDEventListener(e,"AdStarted",function(){var
t=this._overlayControls;Object(cr.b)(t,
{visibility:"visible",opacity:1}),ct.call(this)}.bind(this,e)),this._addVPAIDEventL
istener(e,"AdVideoStart",function(){ct.call(t),t.update.call(t,!0,!0,!0,!
1)}),this._addVPAIDEventListener(e,"AdVideoComplete",function()
{this._removeTimeout(this.TIMER_NAME)}.bind(this)),this._addVPAIDEventListener(e,"A
dUserClose",this._removeTimeout.bind(this,this.TIMER_NAME)),this._addVPAIDEventList
ener(e,"AdSkipped",function()
{t._removeTimeout(t.TIMER_NAME)}),this._addVPAIDEventListener(e,"AdStopped",functio
n()
{t._removeTimeout(t.TIMER_NAME)}),this._addVPAIDEventListener(e,"AdError",function(
)
{this._removeTimeout(this.TIMER_NAME)}.bind(this)),this._addVPAIDEventListener(e,"A
dSkippableStateChange",function(){!
e.getAdSkippableState()&&t._playButtonWasShown&&(t._playButtonWasShown=!
1,t._startChunkTime=t.getAdElapsedTime(),lt.call(t),ct.call(t))})},i.getAdElapsedTi
me=function(){var t=this.module,e=this.timeBeforeSkipChecker;return e?
e.getAdElapsedTime():t&&t.getAdElapsedTime()||0},i.update=function(t,e,i,n)
{function r(){var t=this;e&&function(t,e){var
i=this._overlayControls,n=this._thumbnailWrapper,r=this.options,o=r.right,a=r.botto
m,s=r.transitionDuration,d=r.thumbnailWrapperWidth,l=0^parseFloat(t),c=0^parseFloat
(e);this.overlayControlsTargetWidth=t,this.overlayControlsTargetHeight=e,Object(cr.
b)([i,n],{transitionDuration:s+"ms"}),setTimeout(function(){Object(cr.b)(i,
{right:o,bottom:a,width:Object(dr.s)(l),height:Object(dr.s)(c)}),Object(cr.b)(n,
{width:d})},1),this._getCurrentPlayer()||Object(cr.b)(i,{transition:"width 1ms,
height
1ms",left:"-"+t})}.call(this,l,c),n&&ot.call(this,g),this._addTimeout("waitManualCh
eckId",function(){(function(){function t(){this.mainTransitionWasFinished?
clearInterval(e):this.updateAfterTransitionEndWithBind({forceUpdate:!0})}var
e;this.mainTransitionWasFinished||
(t.call(this),e=setInterval(t.bind(this),500))}).call(t)},s+10)}var o=this;void
0===t&&(t=!1),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=!0);var
a=this.module,s=this.options.transitionDuration,d=function(){var
t=this.module,e=this.options.width,i=(vo.a.call(t)||
{}).outsideWidth*(parseInt(e,10)/100);return{blockWidth:i+"px",blockHeight:i/2.5+"p
x"}}.call(this),l=d.blockWidth,c=d.blockHeight,u=ut.call(this,a),h=u.time,p=u.durat
ion,f=u.adDuration,g=0>=h&&p<=f;this.mainTransitionWasStarted||
this.adWidthPrev===l&&!t||(this.mainTransitionWasStarted=!0,i&&function(t){var
e=this._thumbnailDefaultText;return rt.call(this).then(function(i){return
e&&Object(cr.b)(e,
{fontSize:parseInt(t,10)/6+"px"}),i})}.call(this,c).then(function()
{r.call(o)}).catch(function()
{r.call(o)}),this.adWidthPrev=l)},i.setZIndex=function(t)
{this._overlayControls&&(this._overlayControls.style.zIndex=t)},e}
(rr.a),So="ViqeoPlayerRoll",jo="Format["+So+"]",Eo={playerPlaybackClass:"vn-
playback-viqeo-
roll",destroyTimeout:5e3,playerDesktopStartFactor:.5,playerDesktopStopFactor:0,play
erMobileStartFactor:.5,playerMobileStopFactor:0,hideThumbnail:!
1},Co={},Do=function(t){function e(e,i){var n;if(i=pt({},Eo,{},i,{ancestor:jo}),
(n=t.call(this,e,i)||this).slot=e.getControlNode("slot"),!n.slot)throw Error(jo+"
player don't give the slot");Object(cr.b)(n.slot,
{display:"block",opacity:0}),n._initModule();var r=function(t){if(void 0===t)throw
new ReferenceError("this hasn't been initialised - super() hasn't been
called");return t}
(n).options,o=r.playerDesktopStartFactor,a=r.playerDesktopStopFactor,s=r.playerMobi
leStartFactor,d=r.playerMobileStopFactor,l=r.hideThumbnail;return
n._startFactor=parseFloat(ur.h?s:o),n._stopFactor=parseFloat(ur.h?
d:a),n.scrollNode=Object(cr.j)(i.scrollElement)||
window,n.vqPlayer=e.environmentVars.vqPlayer,n.collapsingThumbnail=!l&&new
Po(e,i,function(){return n.vqPlayer}),n}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.isFloatingMode=function(){var
t=this.vqPlayer;return!(!t||!t.inMode("flying"))},i._initModule=function(){var
t=this,e=this.module,i=this.slot;e._applyLayout(pt({},_o,
{},Co)),this._addVPAIDEventListener(e,"AdLoaded",function(){var
e=t.collapsingThumbnail,i=(t.options.moduleAPI||
{}).isVpaidJs;i&&i()&&e&&(e.options.transitionDuration=0),e&&e.init()});var
n=function(){return Object(cr.b)(i,
{opacity:1,zIndex:1e4})};this._addVPAIDEventListener(e,"AdVideoStart",n),this._addV
PAIDEventListener(e,"AdStarted",n)},i.setZIndex=function(t){var
e=this.collapsingThumbnail;e&&e.setZIndex(t)},i._updateModuleState=function(){var
t=this.module,e=this._startFactor,i=this._stopFactor;Object(dr.n)
(this.slot).then(function(n){var r=n.intersectionRatio;oo.c.call(t,
["paused","pausing"])&&r>=e&&t.resumeAd(),oo.c.call(t,"playing")&&r<i&&t.pauseAd()}
)},i._vpaidInitAd=function(){var e=this.scrollNode,i=this.options.moduleAPI||
{},n=i.addVPAIDEventListener,r=i.extendEnvironmentVars;return
r&&r({forceAspectRatio:!
ur.h}),n("AdLoaded",gt.bind(this),this),n("AdStarted",function()
{this._updateModuleState()}.bind(this),this),n("AdVideoStart",function()
{vt.call(this,!
0),this._updateModuleState()}.bind(this),this),n("AdStopped",function()
{vt.call(this,!1)}.bind(this),this),n("AdDestroyed",function(){var
t=this;vt.call(this,!1);var e=this.options.destroyTimeout;setTimeout(function()
{return t._destroy()},e)}.bind(this),this),n("AdSizeChange",function(){var
t=this.module,e=this.collapsingThumbnail;oo.c.call(t,
["pausing","paused","resuming","playing"])&&e&&e.update(!
0)}.bind(this),this),this._addDOMEventListener(e,"scroll",function()
{this._updateModuleState()}.bind(this)),t.prototype._vpaidInitAd.call(this)},i.getM
oduleOptions=function(){return{isInsideTextContent:!1,disableHoverAudio:!
0,startingVolume:0,vpaidJsVideoSlotShouldBeMuted:!
0}},i.hasReachInventoryFactory=function(){return!
0},i.getReachInventoryFactory=function(){var
t=this;return{markNode:"",waiterCreator:function(){return
t._waitAdvStart()},destroy:null,id:"vn-visible-inventory-
mark_"+this}},i._waitAdvStart=function(){var t=this;return new Promise(function(e)
{(function(t,e)
{this.vqPlayer.subscribe(t,e)}).call(t,e,"advStart")})},i._getModuleDimensions=func
tion(){var
t=this.vqPlayer,e=t.getModuleDimensions(),i=e.viewportHeight,n=e.viewportTop,r=e.vi
ewportBottom,o=e.moduleTop;return{viewportHeight:i,viewportWidth:t.getSize().width,
viewportTop:n,viewportBottom:r,moduleTop:o}},i.updateOptions=function(t)
{this.options=pt({},this.getOptions(),{},t);var
e=this.collapsingThumbnail,i=this.options.hideThumbnail;e&&i&&(e._destroy(),this.co
llapsingThumbnail=null)},i.toString=function(){return jo},i.getBaseName=function()
{return So.toLowerCase()},e}
(lr),Io="AmpRoll",To="Format["+Io+"]",ko=To,xo={playerDefaultClass:"vn-
player",playerPlaybackClass:"vn-
playback",playerSelectorPercent:"100%",widthElement:null,playerElement:"#c",lookupE
lement:"#c",playerSelectorTotalMin:1,playerDesktopStartFactor:.6,playerDesktopStopF
actor:.6,playerMobileStartFactor:.5,playerMobileStopFactor:.2,preloadDistance:190,m
axSegments:1,minSegments:0,minDistance:1,destroyTimeout:5e3,doNotWatchVisibility:!
0,expandingDuration:0},No=function(t){function e(e,i){var
n,r=i&&i.ancestor&&i.ancestor+":"+To||"Module::"+To;(n=t.call(this,e,function(t)
{for(var e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
bt(Object(e),!0).forEach(function(i)
{mt(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):bt(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},xo,
{},i,{ancestor:r}))||this)[ko]=r,n.lastPostponedAction=null,n.adLoaded=!
1,n.intersectionRatio=0,n.unlistenObserveIntersection=null,window.context.observeIn
tersection&&(n.unlistenObserveIntersection=window.context.observeIntersection(n._am
pObserveIntersection.bind(yt(n))));var o=new dr.a;return
n.visibleInventoryPromise=o.promise,n.visibleInventoryResolve=o.resolve,
(0,yt(n).options.moduleAPI.setControlData)("wrapper",{css:
{position:"absolute"}}),n}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.waitBeforeLoadUrl=function(t){return
Promise.resolve(t)},i._vpaidInitAd=function(){var
e=this.module;this._addVPAIDEventListener(e,"AdLoaded",function(){var
t=this;window.context.reportRenderedEntityIdentifier&&window.context.reportRendered
EntityIdentifier("videonow"),this.adLoaded=!0;var
e=this.lastPostponedAction;e&&e(),setTimeout(function(){return
t._updateModuleNodeSize()},1)}.bind(this)),this._addVPAIDEventListener(e,"AdStarted
",function(){var t=this;if(window.context.renderStart){var
e=this.options.moduleAPI.getIndents,i=e&&e()||
{},n=i.outsideWidth,r=i.outsideHeight;n&&r&&(or.b.log(this[ko]+".onAdStarted()
renderStart("+n+", "+r+")",2,"green"),window.context.onResizeSuccess(function()
{setTimeout(function(){return
t._updateModuleNodeSize()},1)}),window.context.renderStart({width:n,height:r}))}}.b
ind(this));var i=t.prototype._vpaidInitAd.call(this);return Object(fr.g)
(e.environmentVars,{forceAspectRatio:!1}),i},i.abort=function()
{window.context.noContentAvailable&&window.context.noContentAvailable()},i._destroy
=function()
{this.unlistenObserveIntersection&&this.unlistenObserveIntersection(),t.prototype._
destroy.call(this)},i._ampObserveIntersection=function(t){var
e=this;t.forEach(function(t){var
i=t.intersectionRatio;0<i&&e.visibleInventoryResolve(),or.b.none(e[ko]
+"._ampObserveIntersection() intersectionRatio="+i+"
this.intersectionRatio="+e.intersectionRatio),e.intersectionRatio!
==i&&(e.intersectionRatio=i,or.b.none(e[ko]+"._ampObserveIntersection()
intersectionRatio="+i+" this.adLoaded="+e.adLoaded),e.adLoaded?
e._updateModuleState():e.lastPostponedAction=e._updateModuleState.bind(e))})},i.has
ReachInventoryFactory=function(){return!0},i.getReachInventoryFactory=function()
{var t=this;return{id:"vn-visible-inventory-mark_"+this,waiterCreator:function()
{return
t.visibleInventoryPromise},destroy:null,markNode:""}},i._moduleResizeAd=function(t,
e){var i=this.options.moduleAPI,n=i.resizeAd,r=i.getIndents,o=r&&r()||
{},a=o.top,s=o.bottom,d=window.getComputedStyle(t),l=Zn(window.innerWidth,Qn(t.clie
ntWidth-parseFloat(d.paddingLeft)-
parseFloat(d.paddingRight))),c=Zn(window.innerHeight-a-
s,Qn(l*e));n&&n(l,c)},i.canExecuteNoAd=function(){return!
0},i._getModuleShown=function(){return
this.intersectionRatio},i._updateModuleState=function(){var
t=this.intersectionRatio;this._applyModuleState({intersectionRatio:t,moduleSquare:1
})},i._updateModuleNodeSize=function(){var
t=this.moduleNode,e=this.options.moduleAPI,i=e.getControlNode,n=e.getIndents,r=t&&t
.parentElement||{},o=r.clientWidth,a=r.clientHeight;Object(cr.b)(t,
{width:Object(dr.s)(o),height:Object(dr.s)(a)});var s=i&&i("iframe");Object(cr.b)
(s,{position:"absolute",left:0,top:0,width:"100%",height:"100%"});var d=(n&&n()||
{}).outsideHeight,l=i&&i("wrapper"),c=l&&l.parentElement;if(c){var u=Object(dr.h)
(c).height;u=Zn(a,u),l&&u&&Object(cr.b)(l,{top:Object(dr.s)(u/2-
d/2)})}},i.getModuleOptions=function(){return{isInsideTextContent:!
0,canExecuteNoAd:!0}},i.toString=function(){return To},i.getBaseName=function()
{return Io.toLowerCase()},e}
(jr),Mo="Overlay",Vo="Format["+Mo+"]",Ro={},Lo=function(t){function e(e,i){var
n;if(!ur.h)throw new Error("Mobile not detected");if(!Fo)throw new Error("Fixed
positioning support not detected");n=t.call(this,e,function(t){for(var
e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
Ot(Object(e),!0).forEach(function(i)
{At(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ot(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},Ro,
{},i||{},{ancestor:Vo}))||this;var
r=window,o=r.innerWidth,a=r.innerHeight,s=n.overlayNode=n._addDOMNode(Object(cr.a)
(document.body,"div",{visibility:"hidden",position:"fixed",zIndex:-
1,top:0,left:0,width:o+"px",height:a+"px",background:"rgba(0, 0, 0, .
9)"}));n._addDOMEventListener(s,"touchmove",cr.c);var d=Object(cr.a)(s,"div",
{position:"absolute",top:0,right:0,bottom:0,left:0,width:"100%",height:"100%"});e.s
etControlData("underplay",{node:d});var l=n.slotNode=Object(cr.a)(s,"div",
{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,
-50%)",width:o+"px",height:"0px"}),c=wt(n).options.moduleAPI.addVPAIDEventListener;
return
window.savedRequestAnimationFrame=null,n.savedRequestAnimationFrameCallbacks=[],e.s
etControlData("slot",{node:l}),c("AdLoaded",function()
{this.module.startAd()}.bind(wt(n)),wt(n)),c("AdVideoStart",function(){var
t=this;this._resize(),Object(cr.b)(document.body,{overflow:"hidden"}),Object(cr.b)
(this.overlayNode,
{visibility:"",zIndex:2147483647}),window.savedRequestAnimationFrame||
(window.savedRequestAnimationFrame=window.requestAnimationFrame,window.requestAnima
tionFrame=function(e)
{t.savedRequestAnimationFrameCallbacks.push(e)})}.bind(wt(n)),wt(n)),c("vn_hideOver
layFormatWrapper",function(){n.hide()},wt(n)),c("vn_setOverlayZIndex",function(t)
{var e=t.zIndex,i=wt(n).overlayNode;i&&!isNaN(e)&&Object(cr.b)(i,
{zIndex:e})},wt(n)),c("AdDestroyed",function()
{this._close(),window.savedRequestAnimationFrame&&(window.requestAnimationFrame=win
dow.savedRequestAnimationFrame,this.savedRequestAnimationFrameCallbacks.forEach(req
uestAnimationFrame),window.savedRequestAnimationFrame=null,this.savedRequestAnimati
onFrameCallbacks=[])}.bind(wt(n)),wt(n)),c("resize",function(){var t=this;
(window.savedRequestAnimationFrame||requestAnimationFrame)(function(){return
t._resize()})}.bind(wt(n)),wt(n)),c("vn_VPAIDCreated",function(t){var
e=this,i=t.vpaid,n=(this.options||
{}).setSizeByMedia,r=i&&i.getMediaInfo();r&&(Object(dr.t)(n)?r.then(function(t){var
i=t.width,n=t.height;i&&n&&(e.forceInsideHeight=n,e.forceInsideWidth=i,e._resize())
}):r.then(function(t){e.mediaInfo=t,e._resize()}))}.bind(wt(n)),wt(n)),n}!
function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i._resize=function(){var
t=this.module,e=this.overlayNode,i=this.slotNode,n=this.isFullscreen,r=this.mediaIn
fo,o=window,a=o.innerWidth,s=o.innerHeight,d=t.getAdAspectRatio();n||
Zn(a*d,s);Object(cr.b)(e,{width:a+"px",height:s+"px"}),Object(cr.b)(i,
{width:a+"px",height:s+"px"}),t.resizeAd(a,s,n);var l=r&&function(t,e){var i=e||
{},n=i.width,r=i.height,o=i.scalable,a=i.type;if(!a||!
a.includes("javascript"))return null;var
s=parseFloat(n),d=parseFloat(r),l=Object(dr.t)(o);if(s||d){if(l&&s&&d){var
c=t.clientHeight,u=t.clientWidth,h=s/d,p=u/h;p>c?s=(d=c)*h:
(s=u,d=p)}return{position:"absolute",overflow:"hidden",top:d?"50%":0,left:s?"50%":0
,height:d?Object(dr.s)(d):"100%",width:s?Object(dr.s)(s):"100%",marginTop:d?
Object(dr.s)(-d/2):0,marginLeft:s?Object(dr.s)(-s/2):0}}return null}
(i,r),c=this.forceInsideHeight,u=this.forceInsideWidth,h=t.getControlNode("vpaidSlo
t");!l&&h&&c&&u?Object(cr.b)(h,{position:"relative",display:"inline-
block",verticalAlign:"middle",width:Object(dr.s)(Zn(u,a)),height:Object(dr.s)
(Zn(c,s))}):h&&l&&Object(cr.b)(h,l)},i.hide=function(){var
t=this.overlayNode;t&&Object(cr.b)(t,{height:0,opacity:0,zIndex:-1}),Object(cr.b)
(document.body,{overflow:""})},i._close=function(){var
t=this.slotNode,e=this.overlayNode;Object(cr.b)(t,{transition:"all 300ms ease-
out"}),setTimeout(function(){Object(cr.b)(t,
{height:0,opacity:.5})},50),setTimeout(function(){Object(cr.s)
(e)},500)},i.getModuleOptions=function(){return{isInsideTextContent:!
0,vpaidJsVideoSlotShouldBeMuted:!0}},i.fullscreenSwitchOn=function()
{this.isFullscreen=!0},i.getModuleNode=function(){return
this.overlayNode},i.getSlotNode=function(){return
this.slotNode},i._getModuleDimensions=function(){return Object(dr.j)
(window,this.getModuleNode())},i.toString=function(){return
Vo},i.getBaseName=function(){return Mo.toLowerCase()},e}(sr),Fo=function(){var t=!
1;if(document.createElement){var e=document.createElement("div");if(e&&e.style)
{e.style.position="fixed",e.style.top="10px";var
i=document.body;i&&i.appendChild&&i.removeChild&&(i.appendChild(e),t=10===e.offsetT
op,i.removeChild(e))}}return t}
(),Wo="::Formats",Ho={vpaid:lr,instream:lr,contentroll:jr,continuousroll:Tr,flyroll
:function(t,e){var i=e||{},n=i.alwaysFly,r=i.flyrollAbsTop;return!
0===r||"true"===r?new Br(t,e):!0===n||"true"===n?new Gr(t,e):new
Qr(t,e)},slideroll:uo,overlay:Lo,viqeoplayerroll:Do,amproll:No},zo=function(t,e,i)
{var n=t&&t.getAPI&&t.getAPI().logger||or.b;if("string"==typeof e){var
r=e.toLowerCase(),o=t.options,a=o&&o.amp;if(a){if("contentroll"!
==r.toLowerCase())return null;r="amproll"}var s=Ho[r];if(s)
{n.log(Wo+".getFormat("+e+" -> "+r+")");var d=t.format;d&&(n.log(Wo+" Destroying
existing format"),d._destroy()),n.log(Wo+" Initializing format ("+e+" ->
"+r+")");var l=t.options[r],c=t.getAPI(),u=Object(fr.g)({},a?{}:i,l,
{moduleAPI:c});return a&&(u.amp=!0),new s(t,u)}}return null},Bo=function(t)
{_t.call(this,t)},Uo=Bo;"undefined"!=typeof
exports&&(exports.ControlsDataStack=Bo);var
qo="vnNoAd",Go="::Extension["+qo+"]",Xo="vnVisibleInventory",Yo=i(8),Qo="vnMinPlaye
rSize",Jo=function(){function t(t,e,i){void
0===i&&(i=console),this.handler=e,this.timeout=t,this.log=i&&i.trace||
console.log,this.id=null,this.startedTime=null,this.isStarted=!1,this.log("
InterruptibleTimeout constructor() timeout="+t)}var e=t.prototype;return
e.start=function(){var t=this,e=this.timeout,i=this.handler;!
this.startedTime&&e&&(this.startedTime=Date.now(),this.isStarted=!
0,this.id=setTimeout(function(){t.log(" InterruptibleTimeout.start() setTimeout
global timeout "+e+" expired this.id:"+t.id+" "),t.stop(),i()},e),this.log("
InterruptibleTimeout.start() global timeout starts with "+e+"
id:"+this.id))},e.pause=function(t){void 0===t&&(t="was paused");var
e=this.id,i=this.timeout,n=this.startedTime,r=this.handler,o=this.isStarted;if(e&&i
&&n&&o){this.isStarted=!1;var a=Date.now()-
n;this.startedTime=0,clearTimeout(e),this.timeout-=a,this.log("
InterruptibleTimeout.pause() global timeout "+t+". the rest of timeout is
"+this.timeout+" dif="+a+"
id:"+e),0>=this.timeout&&(this.stop(),r&&r())}},e.stop=function(){this.log("
InterruptibleTimeout stop()
id:"+this.id),this.id&&this._destroy()},e._destroy=function(){this.log("
InterruptibleTimeout _destroy()
id:"+this.id),clearTimeout(this.id),this.isStarted=!
1,this.timeout=0,this.id=null},t}(),Zo=i(15),Ko=i(16),$o=function(t){var e=t||
{},i=e.options,n=e.important,r=Object(dr.t)(n);if(Object(dr.q)(i))return null;var
o=Object.keys(i).reduce(function(t,e){var o,a=i[e];if(void 0===a)return t;var
s=t[e]=((o={})[fr.e]=a,o[fr.c]=!0,o);return void 0!=n&&(s[fr.a]=r),t},{});return
void 0!
=n&&(o[fr.a]=r),o},ta=i(20),ea="{weborama_data}",ia="//wam.solution.weborama.fr/fcg
i-bin/dispatch.fcgi?
d.A=prd&d.key=n9d9C9I4XN1I&d.format=json&d.top_clusters=10",na="{roxot_data}",ra=[f
unction(t){var e=t.url,i=t.module;return new Promise(function(t)
{if(i&&i.getAPI&&i.getAPI().logger||or.b,ta.a.CLIENT_INFO_DOMAINS.some(function(t)
{return~e.indexOf(t)})){ur.f||(e=Object(pr.a)(e,{flash:0}));var
n=i.adWidth,r=i.adHeight;n&&r&&(e=Object(pr.a)(e,{w:n,h:r}));var o=Object(dr.i)
(window,document);o&&(e=Object(pr.a)(e,
{location:o}))}t({url:e,module:i})})},function(t){var e=t.url,i=t.module;return new
Promise(function(t){i&&i.getAPI&&i.getAPI().logger||or.b,-1!==e.indexOf(ea)?new
Promise(function(t){var
e,i=Date.now();try{e=JSON.parse(localStorage.getItem(ia))}catch(t)
{}e&&e.timestamp>i-864e5?t(e):Object(po.f)(ia).then(function(e){var
n={};try{n=JSON.parse(e.target.responseText)}catch(t)
{}t({timestamp:i,data:n})}).catch(function(){t({})})}).then(function(t){return new
Promise(function(e){try{localStorage.setItem(ia,JSON.stringify(t))}catch(t)
{}finally{e(t)}})}).then(function(t){return new Promise(function(i){var
n=t&&t.data||{},r=n.socio_demographics||{},o="&"+Object(pr.a)("",
{puid33:r.gender||"",puid34:r.age||"",puid35:r.social_class||"",puid36:
(n.clusters||[]).slice(0,10).join(":"),puid37:(n.audiences||
[]).slice(0,10).join(":")}).substr(1).replace("%3A",":");i(e.replace(ea,o))})}).the
n(function(e){return t({url:e,module:i})}):t({url:e,module:i})})},function(t){var
e=t.url,i=t.module;return new Promise(function(t)
{if(i&&i.getAPI&&i.getAPI().logger||or.b,-1!==e.indexOf(na)){var n={};[{key:"roxot-
group-id",f:Bt.bind(null,1e3)},{key:"roxot-sector-id",f:Bt.bind(null,100)},
{key:"roxot-deep",f:Bt.bind(null,100)},{key:"roxot-event-group-
id",f:Ut.bind(null)},{key:"roxot-event",f:Ut.bind(null)},{key:"roxot-event-
deep",f:Ut.bind(null)},{key:"roxot-minutes",f:function(){return(new
Date).getUTCMinutes().toString()}},{key:"roxot-hours",f:function(){return(new
Date).getUTCHours().toString()}},{key:"roxot-day",f:function(){return(new
Date).getUTCDay().toString()}}].forEach(function(t)
{n[t.key]=t.f(t.key)}),t({url:e.replace(na,Object(pr.a)
("",n).substr(1)),module:i})}else
t({url:e,module:i})})}],oa="vnFormat",aa="::Extension["+oa+"]",sa="vnControls",da={
adlabel:"title",countdown:"skipAdCountdown",close:"skipAd",logo:"logo",soundbtn:"vo
lume",progress:"progress",progressbar:"progressBar",advlogo:"advLogo",callbutton:"c
allButton",moreinfo:"moreInfo",bottomborder:"bottomBorder",video:"slot",play:"play"
,spinner:"spinner",videoclick:"videoclick"},la={background:"background",containerba
ckground:"containerBackground",videobackground:"videobackground",maincontainer:"mai
nContainer"},ca={layout:function(t){return"0"===t?{css:cr.m}:
{css:cr.q}},display:function(t){return{css:{display:t}}},action:function(t)
{return{action:t}},enablewithvpaid:function(t)
{return{enableWithVPAID:t}},width:function(t){return{css:
{width:t}}},height:function(t){return{css:{height:t}}},color:function(t)
{return{css:{color:t,fill:t,stroke:t}}},bgcolor:function(t){return{css:
{backgroundColor:t}}},hoverbgcolor:function(t)
{return{hoverBackgroundColor:t}},hovercolor:function(t)
{return{hoverColor:t}},imgsrc:function(t){return{css:
{backgroundImage:"url("+t+")"}}},padding:function(t){return{css:
{padding:t}}},text:function(t){return{text:t}},url:function(t)
{return{url:t}},type:function(t){return void 0!==t&&t?
{isIframe:"iframe"===t.toLowerCase()}:{}},position:function(t)
{return{position:t}},marginh:function(t){return{marginH:t}},marginv:function(t)
{return{marginV:t}},valign:function(t,e){var
i=e.getControlNode("slot");i&&Object(cr.b)(i,{top:t,transform:"translate(-50%,
-"+t+")"})},overwrite:function(t){var e;return(e={})[fr.b]=t,e},logosrc:function(t)
{return{customerlogo:{logoSrc:t}}},logoheight:function(t){return{customerlogo:
{logoHeight:t}}},logowidth:function(t){return{customerlogo:
{logoWidth:t}}},totaltimecountdown:function(t)
{return{totalTimeCountdown:t}},remove:function(t){return{remove:Object(dr.t)
(t)}},important:function(t){var e;return(e={})[fr.a]=Object(dr.t)
(t),e}},ua="vnAdErrorsRules",ha=ta.a.ERRORS_TRACKING_DOMAIN,pa="vnSkipTime",fa="vnP
rohibitedWords",ga="::Extension["+fa+"]",va=i(28),ba=i.n(va),ma=i(24),ya=i.n(ma),Oa
=i(29),Aa=i.n(Oa),wa={shouldCreateIframe:!0,cssClass:"vn-container-
iframe",attributes:
{height:"100%",width:"100%",hspace:0,vspace:0,marginHeight:0,marginWidth:0},iframeA
ttributes:
{allow:"autoplay",allowfullscreen:"",mozallowfullscreen:"",webkitallowfullscreen:""
},styles:
{position:"relative",zIndex:1,width:"100%",height:"100%",padding:0,margin:0,border:
"none",overflow:"hidden",maxWidth:"initial",maxHeight:"initial"},sandbox:"allow-
same-origin allow-scripts allow-
popups"},_a="vnAfterplay",Pa="::Extension["+_a+"]",Sa=function(t){function e(e){var
i,n=e.module,r=n&&n.getAPI&&n.getAPI().logger||or.b;return(i=t.call(this,
{ancestor:Pa,logger:r})||this).module=n,i.moduleAPI=n&&n.getAPI&&n.g
etAPI(),i.afterplayTimeoutId=null,i._isActive=!1,i._isReplay=!1,i._isRunning=!
1,i._continueNumber=0,i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.shouldShowStub=function(){return!
this._getContinueNumber()&&this._isActive},i.isReplay=function(){return
this._isReplay},i._getContinueNumber=function(){return
this._continueNumber},i._getCycleCounter=function(){return
this.module._cycleCounter||0},i._incCycleCounter=function(){var
t=this.module;return t._cycleCounter||(t._cycleCounter=0),+
+t._cycleCounter},i._setSuccessfulPlays=function(t){var
e=this.module,i=this._getCycleCounter(),n=e._successfulPlaysCounters;n||
(n=e._successfulPlaysCounters=[]),n[i]=t},i._getSuccessfulPlays=function(){var
t=this.module,e=this._getCycleCounter(),i=t._successfulPlaysCounters;return
i&&i[e]||0},i._getTotalSuccessfulPlays=function(){var
t=this.module._successfulPlaysCounters;return t&&t.reduce(function(t,e){return
t+e},0)||0},i._incSuccessfulPlays=function(){var
t=this.module,e=this._getContinueNumber();if(this._getTotalSuccessfulPlays()<e){var
i=this._getCycleCounter(),n=t._successfulPlaysCounters;n||
(n=t._successfulPlaysCounters=[]),n[i]||(n[i]=0),n[i]+=1}return
this._getTotalSuccessfulPlays()},i.shouldContinue=function(){var
t=this._getTotalSuccessfulPlays(),e=this._getContinueNumber();return
0<=e&&t<e},i.init=function(t){var e=this;return new Promise(function(i){t[_a]=e,
[].concat((t._getLastParameters()||{})[_a]||null).filter(function(t){return
t}).forEach(function(e){t.setControlData(_a,e,e.global)});var
n=t.getControlUnionData(_a,null,function(t){return t.parsePoint});if(n){var
r=n.continueNumber;r?e._continueNumber=r+1:
(e._continueNumber=0,e._addVPAIDEventListener(t,"AdVideoComplete",je.bind(e,t,n)),e
._addVPAIDEventListener(t,"AdSkipped",je.bind(e,t,n)),e._addVPAIDEventListener(t,"A
dDestroyed",function(t){var
e=this.afterplayTimeoutId,i=t.function;clearTimeout(e);var n=window[i];if(n){var
r=this._formatExpandingDuration;setTimeout(function(){try{n()}catch(t){}},(r||
0)+100)}}.bind(e,n)),e.manualRun=function(){return je.call(e,t,n)}),e._isActive=!
0,e._isReplay=!1}i(t)})},i._destroy=function(){t.prototype._destroy.call(this)},e}
(rr.a),ja="vnAdEvents",Ea=function(t){function e(e){var
i=e.module,n=i&&i.getAPI&&i.getAPI().logger||or.b;return t.call(this,
{ancestor:"::Extension["+ja+"]",logger:n})||this}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.prototype.init=function(t){var e=this;return new Promise(function(i)
{t.vnAdEvents=e;var n=t._getLastParameters(),r=n&&n[ja]||
{},o=r.global,a=r.handlerName,s=r.vnFunction,d=r.vnScriptUrl,l=r.events;(a||s||d||
l&&l.length)&&t.setControlData(ja,
{handlerName:a,vnFunction:s,vnScriptUrl:d,events:l},o),a=t.getControlUnionData(ja,"
handlerName"),l=t.getControlUnionData(ja,"events"),s=t.getControlUnionData(ja,"vnFu
nction"),(d=t.getControlUnionData(ja,"vnScriptUrl"))||s||(a&&l.forEach(function(i)
{return e._addVPAIDEventListener(t,i,function(){window[a]&&window[a]
(t.mainModuleId,i)})}),i(t))})},e}
(rr.a),Ca=["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange",
"AdLinearChange","AdDurationChange","AdExpandedChange","AdVolumeChange","AdImpressi
on","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile",
"AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused",
"AdResumed","AdPlaying","AdVideoComplete","AdClickThru","AdLog","AdError"],Da="vnEv
entsParams",Ia="vnCreative",Ta=i(23),ka="vnBrowserCache",xa="vnCache",Na="vnPageCha
nged",Ma=function(t){function e(e){var
i,n=e.module,r=n&&n.getAPI&&n.getAPI().logger||or.b;return(i=t.call(this,
{ancestor:"::Extension["+Na+"]",logger:r})||this).module=n,i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.init=function(){var t=this,e=this.module;return
new Promise(function(i){e.vnPageChanged=t;var n=e._getLastParameters(),r=n&&n[Na]||
{},o=r.global,a=r.important,s=r.handlerName,d=r.eventName;s&&e.setControlData(Na,
{handlerName:s,important:a},o),
(s=e.getControlUnionData(Na,"handlerName"))&&(window[s]=function()
{e._abort()}),d&&e.setControlData(Na,{eventName:d,important:a},o),
(d=e.getControlUnionData(Na,"eventName"))&&t._addDOMEventListener(window.document,d
,function(){e._abort()}),i(e)})},i._destroy=function()
{t.prototype._destroy.call(this);var
e=this.module.getControlUnionData(Na,"handlerName");e&&delete window[e]},e}
(rr.a),Va=i(30),Ra=i.n(Va),La="vnUnderplay",Fa="timer",Wa="period_checking_timer",H
a="repeat_start_timer",za=2e3,Ba=.5,Ua={threshold:[Ba]},qa=function(t){function
e(e,i){var
n,r=i.moduleId,o=i.startEventName,a=i.trackUrlsAction,s=e&&e.getAPI&&e.getAPI().log
ger||or.b;return(n=t.call(this,{ancestor:r,logger:s})||
this).trackUrlsAction=a,n._moduleId=r,n.module=e,n._checkingIsFinished=!
1,n._observer=null,n._observerOptions=Ua,n._addVPAIDEventListener(e,o,function()
{return n.start()}),n._addVPAIDEventListener(e,"AdPlaying",function(){return
n.start()}),n._addVPAIDEventListener(e,"AdPaused",function(){return
n.reset()}),n._addVPAIDEventListener(e,"AdVideoComplete",function(){return
n.stop()}),n._addVPAIDEventListener(e,"AdDestroyed",function(){return
n.stop()}),n}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.start=function(t){var e=this;if(void
0===t&&(t=0),this._removeTimeout(Ha),!(this._checkingIsFinished||t>=10))
{this.reset();var
i=this.module,n=vo.c.call(i),r=i.getControlNode("slot"),o=i.getControlNode("iframe"
),a=r&&(r.clientHeight||parseInt(getComputedStyle(r).height,10))||
0,s=n&&getComputedStyle(n)||{},d=n&&(n.clientHeight||parseInt(s.height,10))||0,l=!
(!s.display||"none"===s.display),c=o&&(o.clientHeight||
parseInt(getComputedStyle(o).height,10))||0,u=n&&l&&d?n:r&&a?r:o&&c?o:null;if(!
u)return void this._addTimeout(Ha,function(){return
e.start(t+1)},50);if(window.IntersectionObserver)(this._observer=new
IntersectionObserver(function(t){var e=this;t.forEach(function(t){var
i=t.isIntersecting,n=t.intersectionRatio;i&&n>=Ba?e._addTimeout(Fa,function(){var
t=e.trackUrlsAction;t&&t(),e.stop()},za):e._removeTimeout(Fa)})}.bind(this),this._o
bserverOptions)).observe(u);else(function(){var t=!1;(function e(){var
i=this;Object(dr.n)(u).then(function(n){n.intersectionRatio>=Ba?!t&&(t=!
0,i._addTimeout(Fa,function(){var t=i.trackUrlsAction;t&&t(),i.stop()},za)):(t=!
1,i._removeTimeout(Fa)),i._addTimeout(Wa,e.bind(i),100)})}).call(this)}).call(this)
}},i.stop=function()
{this._removeTimeout(Wa),this.reset(),this._checkingIsFinished=!
0,this._destroy()},i.reset=function()
{this._removeTimeout(Fa),this._removeTimeout(Wa),this._checkingIsFinished=!
1,this._observer&&(this._observer.disconnect(),this._observer=null)},e}
(rr.a),Ga="vnOTMTrackViewable",Xa="vnOTMTrackRecordable",Ya=function(t){function
e(e){var i,n=e.module,r=n&&n.getAPI&&n.getAPI().logger||or.b;return(i=t.call(this,
{ancestor:"::Extension["+Xa+"]",logger:r})||this).module=n,i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.prototype.init=function(){var
t=this,e=this.module;e&&e.getAPI&&e.getAPI().logger||or.b;return new
Promise(function(i){var n,r=(e._getLastParameters()||{})[Xa]||
{},o=r.urls,a=r.important,s=r.global;(a||s||o&&o.length)&&e.setControlData(Xa,
((n={urls:o})[fr.a]=a,n),s);var
d=e.getControlData(Xa,"urls");t._addVPAIDEventListener(e,"AdLoaded",function(t,e)
{if((null===e||void 0===e?void 0:e.length)&&window.IntersectionObserver){var i=new
IntersectionObserver(function()
{});i&&(i.disconnect(),setTimeout(Yo.l.bind(t,e)))}}.bind(t,e,d)),i(e)})},e}
(rr.a),Qa="vnDomainsBlockList",Ja="vnSets",Za="Set>",Ka=function(t,e)
{return{vnFormat:function(){return Qt.call(e,t,Za)},vnControls:function(){return
ie.call(e,t,Za)},vnSkipTime:function(){return
ce.call(e,t,Za)},vnCreative:function(){return De.call(e,t,Za)},vnNoAd:function()
{return Et.call(e,t,Za)},vnCreativeBlock:function(){return
Ta.b.call(e,t,Za)},vnBrowserCache:function(){return
xe.call(e,t,Za)},vnCache:function(){return
Ne.call(e,t,Za)},vnProhibitedWords:function(){return
ge.call(e,t,Za)},vnAfterplay:function(){return
Pe.call(e,t,Za)},vnAdEvents:function(){return
Ee.call(e,t,Za)},vnPageChanged:function(){return
Me.call(e,t,Za)},vnEventsParams:function(){return
Ce.call(e,t,Za)},vnUnderplay:function(){return
Ve.call(e,t,Za)},vnAdErrorsRules:function(){return re.call(e,t,Za)}}},
$a={vnFormat:function(t,e){return Zt.call(e,t,null)},vnControls:function(t,e)
{return ne.call(e,t,null)},vnProhibitedWords:function(t,e){return
be.call(e,t,null)},vnSkipTime:function(t,e){return function(t,e){void
0===e&&(e="vnSkipTime");var i=Lt(t,e,function(t){if(Object(dr.q)(t))return
null;if("string"==typeof t)return Object(pr.g)(t);var e=de({},t),i=Ft(e,
{});Ht(e);var n=e.value;return delete i.value,i.skipTime=n&&Object(pr.g)(n)||
0,i});return Object(dr.q)(i)?
null:i}.call(e,t,null)},vnOTMTrackRecordable:function(t,e){return
Le(e,t)},vnOTMTrackViewableObject:function(t,e){return
Re(e,t)},vnDomainsBlockList:function(t,e){return
Fe(e,t)},vnMinPlayerSize:function(t,e){return
Tt(e,t)}},ts="vnSetsApply",es=["global","orderIndex","overwrite","important","name"
,fr.a,fr.b,fr.e,fr.c],is=i(19),ns="VpaidProxy",rs=ns,os="AD_DURATION_TIMER_ID",as=f
unction(t){function e(e){var i;void 0===e&&(e={});var
n=e&&e.ancestor&&e.ancestor+":"+ns||"::"+ns,r=e&&(e.logger||
e.module&&e.module.logger||e.moduleAPI&&e.moduleAPI.logger)||
or.b;return(i=t.call(this,function(t){for(var e,i=1;i<arguments.length;i+
+)e=null==arguments[i]?{}:arguments[i],i%2?Ue(Object(e),!0).forEach(function(i)
{qe(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ue(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},e,
{ancestor:n,logger:r}))||this)[rs]=n,i.lastPendingCommands={},i._adWasLoaded=!
1,i._countdown
=null,i.fixedAdHeight=null,i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.getAdLinear=function(){return Object(ir.d)
(this.vpaid)?this.vpaid.getAdLinear():this.adLinear},i.getAdWidth=function(){return
Object(ir.d)(this.vpaid)?
this.vpaid.getAdWidth():this.adWidth},i.getAdHeight=function(){return Object(ir.d)
(this.vpaid)?this.vpaid.getAdHeight():this.adHeight},i.getAdAspectRatio=function()
{return Object(ir.d)(this.vpaid)&&this.vpaid.getAdAspectRatio?
this.vpaid.getAdAspectRatio():t.prototype.getAdAspectRatio.call(this)},i.getAdExpan
ded=function(){return Object(ir.d)(this.vpaid)?
this.vpaid.getAdExpanded():this.adExpanded},i.getAdSkippableState=function(){return
Object(ir.d)(this.vpaid)?
this.vpaid.getAdSkippableState():this.adSkippableState},i.getAdRemainingTime=functi
on(){var t=this._countdown,e=this.vpaid;return t?
t.getAdRemainingTime():Object(ir.d)(e)&&e.getAdRemainingTime()||
this.adRemainingTime},i.getAdDuration=function(){var
t=this.vpaid,e=this._countdown;this._checkingBanner;if(e)return
e.getAdDuration();if(!this._countdown&&Object(ir.d)(t)){var
i=t.getAdDuration();0<i&&(this.adDuration=i)}return
this.adDuration},i.getAdElapsedTime=function(){var e=this.vpaid;return Object(ir.d)
(e)&&e.getAdElapsedTime?
e.getAdElapsedTime():t.prototype.getAdElapsedTime.call(this)},i.getAdVolume=functio
n(){return Object(ir.d)(this.vpaid)?
this.vpaid.getAdVolume():this.adVolume},i.getAdCompanions=function(){return
Object(ir.d)(this.vpaid)?
this.vpaid.getAdCompanions():this.adCompanions},i.getAdIcons=function(){return
Object(ir.d)(this.vpaid)?
this.vpaid.getAdIcons():this.adIcons},i.handshakeVersion=function(t){return
Object(ir.d)(this.vpaid)?this.vpaid.handshakeVersion(t):t},i.initAd=function()
{this.trigger("AdError","Abstract method
call",nr.a.GENERAL_VPAID_ERROR)},i.resizeAd=function(t,e,i){void
0===i&&(i=this.viewMode),this.fixedAdHeight?
e=this.adHeight=this.fixedAdHeight:this.adHeight=e,this.adWidth=t,this.viewMode=i,t
his._adWasLoaded&&Object(ir.d)(this.vpaid)?(delete
this.lastPendingCommands.resizeAd,this.vpaid.resizeAd(t,e,i)):this.lastPendingComma
nds.resizeAd=this.resizeAd.bind(this,t,e,i)},i.startAd=function(){try{var
t=this.vpaid,e=this._countdown;if(Object(ir.d)(t))return
e&&e.start(),t.startAd()}catch(t)
{this.trigger("AdError",""+t,nr.a.GENERAL_VPAID_ERROR)}return!
1},i.stopAd=function(){var t=this._countdown,e=this.vpaid;Object(ir.d)
(e)&&(t&&t.stop(),e.stopAd())},i.pauseAd=function(){var
t=this._countdown,e=this.vpaid;Object(ir.d)
(e)&&(t&&t.stop(),e.pauseAd())},i.resumeAd=function(){var
t=this._countdown,e=this.vpaid;Object(ir.d)
(e)&&(t&&t.start(),e.resumeAd())},i.expandAd=function(){return Object(ir.d)
(this.vpaid)&&this.vpaid.expandAd()},i.collapseAd=function(){return Object(ir.d)
(this.vpaid)&&this.vpaid.collapseAd()},i.skipAd=function(){var
t=this._countdown,e=this.vpaid;Object(ir.d)
(e)&&(t&&t.stop(),e.skipAd())},i.stopCountdown=function(){var
t=this._countdown;t&&t.stop()},i.setAdVolume=function(t,e)
{if(this._adWasLoaded&&Object(ir.d)(this.vpaid)){delete
this.lastPendingCommands.setAdVolume;var i=this[rs]+".setAdVolume("+t+") executes
IMMEDIATELY and clears pending command";return(0===t||1===t?
this.logger.log:this.logger.trace)(i),Object(ir.d)
(this.vpaid)&&(this.adVolume=t,1)&&this.vpaid.setAdVolume(t,e)}this.lastPendingComm
ands.setAdVolume=this.setAdVolume.bind(this,t,e)},i.onAdLoaded=function(){var
t=this,e=this.vpaid,i=this._countdown,n=this._checkingBanner;if(!i&&!
n&&Object(ir.d)(e)){this._checkingBanner=!0;var r=e.getAdDuration();0>r?
(this._addTimeout(os,function(){(function(t){var e=this,i=this[rs]
+".getAdDuration() vpaid.getAdDuration() return "+t+". Switched to manual
countdown";t=this.adDuration,isNaN(t)||0>=t?(i=i+". Can not get duration from VAST,
so set duration="+(t=1/0)+" sec,",this.trigger("vnManualCountdownCreated",
{duration:t})):i=i+" with duration="+t+" sec.",this._countdown=new
is.a({duration:t,VPAID_API:
{trigger:this.trigger.bind(this)},logger:this.logger});var n=(this.options||
{}).moduleAPI||
{},r=n.inState,o=n.addVPAIDEventListener,a=r&&r(["playing"]),s=r&&r(["started","sta
rting"]);return a||s?(this._countdown.start(),!
a&&this.trigger("AdVideoStart")):o("AdStarted",function(){return
e.trigger("AdVideoStart")},this),this.adDuration=t,t}).call(t,r)},500),this._addVPA
IDEventListener(e,"AdDurationChange",Ge.bind(this))):this.adDuration=r}},i._destroy
=function(){t.prototype._destroy.call(this),this.lastPendingCommands={};var
e=this.vpaid;if(e&&"function"==typeof e._destroy)try{e._destroy()}catch(t)
{this.logger.warn(this[rs]+"._destroy() vpaid._destroy() error: "+(t&&(t.message||
t)))}this.vpaid=null},i.getDebugInfo=function(){var
t=this,e=this.vpaid;return(e&&Promise.resolve(e)||
this.vpaidLoadPromise).then(function(t){return t&&t.getDebugInfo?
t.getDebugInfo():Promise.resolve({})}).then(function(e)
{return{proxyOptions:t.options,options:e.options||{}}})},i.getAdIframes=function()
{var e=this.vpaid;return Object(ir.d)(e)&&e.getAdIframes?
e.getAdIframes():t.prototype.getAdIframes.call(this)},i.getModuleOptions=function()
{return Promise.resolve({})},e}(ir.a),ss=i(12),ds="videoSlot",ls=function(t)
{function e(e,i){var n,r,o;o=t.call(this,ds,e)||this;var
a=Ye({shouldSetControlData:!
0,parentSlot:null},i),s=a.shouldSetControlData,d=a.parentSlot,l=a.width,c=a.height,
u=e.getAdWidth()||l||0,h=e.getAdHeight()||c||
0,p=Ye({position:"absolute",verticalAlign:"middle",width:u?Object(dr.s)
(u):"100%",height:h?Object(dr.s)
(h):"100%",zIndex:1,top:h?"50%":0,left:u?"50%":0},e.getControlUnionData(ds,"css"));
u&&(p.marginLeft=Object(dr.s)(-u/2)),h&&(p.marginTop=Object(dr.s)(-h/2));var
f=e.getControlNode("containerIframe"),g=(null===f||void 0===f||
null===(n=f.contentWindow)||void 0===n||null===(r=n.document)||void 0===r?void
0:r.body)||f,v=d||g,b=o.node=o._slot=v&&o._addDOMNode(Object(cr.a)
(v,"video",p));return b&&(e.vpaidJsVideoSlotShouldBeMuted()&&(b.muted=!
0,b.volume=0),ur.g&&b.setAttribute("playsinline","true"),b&&b.classList&&b.classLis
t.add("vn_module_creature")),s&&e.setControlData(ds,{node:b}),o}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.getSlotNode=function(){return
this._slot},i.getControlNode=function(){var t=this.module;return
t&&t.getControlNode(ds)},e}
(ss.a),cs=i(17),us="VpaidJs",hs=us,ps="AD_DURATION_CHECK_TIMER_ID",fs=function(t)
{function e(e){var i;void 0===e&&(e={});var
n=e&&e.ancestor&&e.ancestor+":"+us||"::"+us;e&&(e.logger||
e.module&&e.module.logger||e.moduleAPI&&e.moduleAPI.logger)||or.b;
(i=t.call(this,Ze({},e,{ancestor:n}))||this)[hs]=n;var
r=e,o=r.jsmedia,a=r.jsmedia,s=a.width,d=a.height,l=a.duration;i.adDuration=l||
0,i.adWidth=s,i.adHeight=d,!s&&0<d&&(i.fixedAdHeight=d),i.wasClicked=!
1,i.media=o;var c=new
dr.a;i.vpaidLoadPromise=c.promise,i.vpaidLoadResolve=c.resolve;var u=new
dr.a;return
i._videoStartedPromise=u.promise,i._videoStartedResolve=u.resolve,i.observer=null,i
.vpaidEventListeners={},i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.toString=function(){return
us},i.initAd=function(t,e,i,n,r,o){var a=this;void 0===r&&(r={}),void
0===o&&(o={});var s=this.options||
{},d=s.module,l=s.ancestor,c=s.moduleAPI,u=s.isVpaidProvider,h=(c||
{}).getMainModuleId,p=this.media;return new Promise(function(s,f)
{u&&vs.forEach(function(t){var e=t[0],i=t[1];(window[e]||
(window[e]=[])).push(window[i])});var
g=r.AdParameters,v=o.iframe,b=a.options.jsmedia,m=v&&v.contentWindow;if(!
m&&v&&"DIV"===v.tagName){var y=Object(cr.r)
(document,v.closest("body"));y&&y.length&&(m=y.pop().contentWindow)}m||
(m=window);var
O=m.document,A=O.body,w=O.createElement("script");w.src=b.src,a._addDOMEventListene
r(w,"load",function(){var
u=m,v=u.getVPAIDAd,b=u.getVnVPAIDAdProvider;if("function"!=typeof b&&"function"!
=typeof v){var y=Error("External script did not provide valid
getVnVPAIDAdProvider() method ("+b+")");return y.code=nr.a.VPAID_JS_ERROR,void
f(y)}var O=h?"("+h()+"):"+us:l,A=c&&Ze({},c)||{};delete A.logger;var
w={duration:a.adDuration,ancestor:O,moduleAPI:A,media:p};try{var
_=g.replace(/\n+/g,"
"),P=JSON.parse(_);P.vnVpaidProvider&&(w.vnVpaidProvider=P.vnVpaidProvider)}catch(t
){}var S=(d||{}).logLevel;S&&(w.logLevel=S);var j=(w||
{}).vnVpaidProvider,E=a.vpaid=b&&j?b(w):v(w);if(!Object(ir.d)(E)){var
C=Error("External script returned invalid VPAID instance ("+E+")");return
C.code=nr.a.VPAID_JS_ERROR,void f(C)}a.vpaidLoadResolve(E);var
D=a.videoSlot=function(t,e,i,n){void 0===e&&(e=null);var r=e;if(r);else{var o=new
ls(t,{shouldSetControlData:!1,width:i,height:n});r=o&&o.getSlotNode()}return
t.setControlData("videoSlot",
{node:r}),r}.call(a,d,o.videoSlot,t,e);d.getControlNode("videoSlot")||
d.setControlData("videoSlot",
{node:D}),D&&D.parentElement&&d.setControlData("videoSlotParent",
{node:D.parentElement}),$e.call(a,E,D);try{var
I=d.maxSkipTime;r&&r.AdParameters&&r.AdParameters.replace&&(r.AdParameters=r.AdPara
meters.replace("[MAXSKIPTIME]",I||"")),E.initAd(t,e,i,n,r,Ze({},o,
{videoSlot:D})),~E.toString().indexOf("Module")&&cs.b.call(E,{isInsideTextContent:!
0});var T=getComputedStyle(D);T.width,T.height,D.style.width;s(a)}catch(t){var
k=Error("Internal VpaidJs error ("+t+")
stack:"+t.stack);k.code=nr.a.VPAID_JS_ERROR,f(k)}}),a._addDOMEventListener(w,"error
",function(){var t="Error loading external script
("+w.src+")",e=Error(t);e.code=nr.a.VPAID_JS_ERROR,f(e)}),A&&A.appendChild(w)})},i.
getMediaInfo=function(){var e=this;return
t.prototype.getMediaInfo.call(this).then(function(t){var i=t||
{},n=i.width,r=i.height;if(0<n||0<r)return t;var
o=e.vpaid;return(o&&Promise.resolve(o)||e.vpaidLoadPromise).then(function(t){return
t.getMediaInfo&&t.getMediaInfo()})})},i.getFormatOptions=function(){var
t=this.vpaid;return(t&&Promise.resolve(t)||this.vpaidLoadPromise).then(function(t)
{return t.getFormatOptions&&t.getFormatOptions()})},i.stopAd=function()
{ti.call(this,["AdStopped","AdSkipped","AdSkippableStateChange"]
),t.prototype.stopAd.call(this)},i._destroy=function(){ti.call(this),
(this.options||{}).isVpaidProvider&&vs.forEach(function(t){var
e=t[0],i=t[1],n=window[e];if(n&&n.length){var
r=n.pop();r&&(window[i]=r)}}),t.prototype._destroy.call(this)},i.activateMuteChangi
ngEnable=function(){this.vpaid&&(this.wasClicked=!0)},i.getModuleOptions=function()
{var e=t.prototype.getModuleOptions.call(this);return
this.vpaidLoadPromise.then(function(t){var i=t.getModuleOptions?
t.getModuleOptions():Promise.resolve({});return Promise.all([e,i]).then(function(t)
{return Ze({},t&&t.length?t[0]:{},{},t&&1<t.length?t[1]:
{})})})},i.getLinkedVpaid=function(){return
this.vpaidLoadPromise},e.create=function(t,i){return new Promise(function(n,r){var
o=t.MediaFiles,a=t.adParameters,s=t.rawDuration,d=t.duration,l="application/javascr
ipt",c="application/x-javascript",u=o[l]&&o[l][0]||o[c]&&o[c][0];if(u&&u.src&&!
i.isMediaUrlBlocked(u.src)){var h=(Object(pr.h)(Object(dr.i)(window,document))||
{}).vn_providers_vpaid,p="vn_providers_vpaid";h&&Object(kr.c)(p,h),h=Object(kr.a)
(p);var f=u.src.includes(p);h&&f&&(u.src=h),f||i.setSelectedCreative(u.src,s,a),
(i&&i.getAPI&&i.getAPI().logger||or.b).log("::"+us+".create("+u.src+")");var
g,v,b,m=new e({module:i,isVpaidProvider:f,jsmedia:Ze({},u,
{duration:d}),moduleAPI:i.getAPI(),ancestor:"("+(i&&i.mainModuleId)
+")"});f&&(g=m._addVPAIDEventListener(m,"AdLoaded",function(t){(b=(t||
{}).selectedCreativeEventName)?v=m._addVPAIDEventListener(m,b,function()
{i.setSelectedCreative(u.src,s,a)}):i.setSelectedCreative(u.src,s,a)}),m._addVPAIDE
ventListener(m,"AdError",function()
{m.stopCountdown(),g&&m._removeVPAIDEventListener(m,"AdLoaded",g),v&&m._removeVPAID
EventListener(m,b,v)})),n(m)}r()})},e}
(as),gs=["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","A
dSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTim
eChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdV
ideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdVideoCompleteTrackOnly","
AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose
","AdPaused","AdPlaying","AdLog","AdLoadedVideoData","slotSizeChanged","AdAudioDisa
bled","AdAudioEnabled","AdSizeForceChange","vn_VPAIDCreated","vn_hideOverlayFormatW
rapper","vn_setOverlayZIndex","vn_VideoSlotRemoved","vn_SelectedCreative"],vs=[["vn
CreateVPAIDAdSaved","createVPAIDAd"],
["vnGetVPAIDAdSaved","getVPAIDAd"]],bs=i(21),ms=function(){function t(t)
{this.bytes=new
Uint8Array(t),this.length=this.bytes.length,this.writePos=this.bytes.length,this.in
dex=0}var e=t.prototype;return e.nextBits=function(t){var e=this.index>>3,i=8-
this.index%8;if(i>=t)return this.bytes[e]>>i-t&255>>8-t;var n=(this.index+t)
%8,r=this.index+t-1>>3,o=this.bytes[e]&255>>8-i;for(e+=1;e<r;e+=1)o<<=8,o|
=this.bytes[e];return 0<n?(o<<=n,o|=this.bytes[e]>>8-n):(o<<=8,o|
=this.bytes[e]),o},e.getBits=function(t){var e=this.nextBits(t);return
this.index+=t,e},e.findNextMPEGStartCode=function(){for(var
e=this.index+7>>3;e<this.writePos;e+=1)if(0===this.bytes[e]&&0===this.bytes[e+1]&&1
===this.bytes[e+2])return this.index=e+4<<3,this.bytes[e+3];return
this.index=this.writePos<<3,t.NOT_FOUND},e.advance=function(t){return
this.index+=t},e.nextBytesAreStartCode=function(){var t=this.index+7>>3;return
t>=this.writePos||0===this.bytes[t]&&0===this.bytes[t+1]&&1===this.bytes[t+2]},t}
(),ys=179,Os=1,As=175,ws=0,_s=181,Ps=178,Ss=2,js=3,Es=new
Uint8Array([8,16,19,22,26,27,29,34,16,16,22,24,27,29,34,37,19,22,26,27,29,34,34,38,
22,22,26,27,29,34,37,40,22,26,27,29,32,35,40,48,26,27,29,32,35,40,48,58,26,27,29,34
,38,46,56,69,27,29,35,38,46,56,69,83]),Cs={DEFAULT_NON_INTRA_QUANT:new
Uint8Array([16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16
,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,1
6,16,16,16,16,16,16,16,16,16,16,16,16]),DEFAULT_INTRA_QUANT:Es},Ds=new
Int8Array([3,6,0,-1,9,0,0,0,1,0,0,17]),Is=new
Int8Array([3,6,0,9,12,0,0,0,10,15,18,0,0,0,2,21,24,0,0,0,8,27,30,0,33,36,0,-
1,39,0,0,0,18,0,0,26,0,0,1,0,0,17]),Ts=new
Int8Array([3,6,0,9,15,0,12,18,0,24,21,0,0,0,12,27,30,0,0,0,14,39,42,0,36,33,0,0,0,4
,0,0,6,54,48,0,45,51,0,0,0,8,0,0,10,-
1,57,0,0,0,1,60,63,0,0,0,30,0,0,17,0,0,22,0,0,26]),ks={I:Ds,P:Is,B:Ts,TYPE_TABLE:
[null,Ds,Is,Ts],ADDRESS_INCREMENT:new
Int16Array([3,6,0,9,12,0,0,0,1,15,18,0,21,24,0,27,30,0,33,36,0,0,0,3,0,0,2,39,42,0,
45,48,0,0,0,5,0,0,4,51,54,0,57,60,0,0,0,7,0,0,6,63,66,0,69,72,0,75,78,0,81,84,0,-
1,87,0,-
1,90,0,93,96,0,99,102,0,105,108,0,111,114,0,0,0,9,0,0,8,117,120,0,123,126,0,129,132
,0,135,138,0,0,0,15,0,0,14,0,0,13,0,0,12,0,0,11,0,0,10,141,-1,0,-
1,144,0,147,150,0,153,156,0,159,162,0,165,168,0,171,174,0,177,180,0,183,-1,0,-
1,186,0,189,192,0,195,198,0,201,204,0,207,210,0,213,216,0,219,222,0,0,0,21,0,0,20,0
,0,19,0,0,18,0,0,17,0,0,16,0,0,35,0,0,34,0,0,33,0,0,32,0,0,31,0,0,30,0,0,29,0,0,28,
0,0,27,0,0,26,0,0,25,0,0,24,0,0,23,0,0,22])},xs={PREMULTIPLIER_MATRIX:new
Uint8Array([32,44,42,38,32,25,17,9,44,62,58,52,44,35,24,12,42,58,55,49,42,33,23,12,
38,52,49,44,38,30,20,10,32,44,42,38,32,25,17,9,25,35,33,30,25,20,14,7,17,24,23,20,1
7,14,9,5,9,12,12,10,9,7,5,2]),ZIG_ZAG:new
Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,1
3,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39
,46,53,60,61,54,47,55,62,63]),DCT_COEFF:new
Int32Array([3,6,0,12,9,0,0,0,1,21,24,0,18,15,0,39,27,0,33,30,0,42,36,0,0,0,257,60,6
6,0,54,63,0,48,57,0,0,0,513,51,45,0,0,0,2,0,0,3,81,75,0,87,93,0,72,78,0,96,90,0,0,0
,1025,69,84,0,0,0,769,0,0,258,0,0,1793,0,0,65535,0,0,1537,111,108,0,0,0,1281,105,10
2,0,117,114,0,99,126,0,120,123,0,156,150,0,162,159,0,144,147,0,129,135,0,138,132,0,
0,0,2049,0,0,4,0,0,514,0,0,2305,153,141,0,165,171,0,180,168,0,177,174,0,183,186,0,0
,0,2561,0,0,3329,0,0,6,0,0,259,0,0,5,0,0,770,0,0,2817,0,0,3073,228,225,0,201,210,0,
219,213,0,234,222,0,216,231,0,207,192,0,204,189,0,198,195,0,243,261,0,273,240,0,246
,237,0,249,258,0,279,276,0,252,255,0,270,282,0,264,267,0,0,0,515,0,0,260,0,0,7,0,0,
1026,0,0,1282,0,0,4097,0,0,3841,0,0,3585,315,321,0,333,342,0,312,291,0,375,357,0,28
8,294,0,-
1,369,0,285,303,0,318,363,0,297,306,0,339,309,0,336,348,0,330,300,0,372,345,0,351,3
66,0,327,354,0,360,324,0,381,408,0,417,420,0,390,378,0,435,438,0,384,387,0,0,0,2050
,396,402,0,465,462,0,0,0,8,411,399,0,429,432,0,453,414,0,426,423,0,0,0,10,0,0,9,0,0
,11,0,0,5377,0,0,1538,0,0,771,0,0,5121,0,0,1794,0,0,4353,0,0,4609,0,0,4865,444,456,
0,0,0,1027,459,450,0,0,0,261,393,405,0,0,0,516,447,441,0,516,519,0,486,474,0,510,48
3,0,504,498,0,471,537,0,507,501,0,522,513,0,534,531,0,468,477,0,492,495,0,549,546,0
,525,528,0,0,0,263,0,0,2562,0,0,2306,0,0,5633,0,0,5889,0,0,6401,0,0,6145,0,0,1283,0
,0,772,0,0,13,0,0,12,0,0,14,0,0,15,0,0,517,0,0,6657,0,0,262,540,543,0,480,489,0,588
,597,0,0,0,27,609,555,0,606,603,0,0,0,19,0,0,22,591,621,0,0,0,18,573,576,0,564,570,
0,0,0,20,552,582,0,0,0,21,558,579,0,0,0,23,612,594,0,0,0,25,0,0,24,600,615,0,0,0,31
,0,0,30,0,0,28,0,0,29,0,0,26,0,0,17,0,0,16,567,618,0,561,585,0,654,633,0,0,0,37,645
,648,0,0,0,36,630,636,0,0,0,34,639,627,0,663,666,0,657,624,0,651,642,0,669,660,0,0,
0,35,0,0,267,0,0,40,0,0,268,0,0,266,0,0,32,0,0,264,0,0,265,0,0,38,0,0,269,0,0,270,0
,0,33,0,0,39,0,0,7937,0,0,6913,0,0,7681,0,0,4098,0,0,7425,0,0,7169,0,0,271,0,0,274,
0,0,273,0,0,272,0,0,1539,0,0,2818,0,0,3586,0,0,3330,0,0,3074,0,0,3842]),DCT_DC_SIZE
_CHROMINANCE:new
Int8Array([6,3,0,12,9,0,18,15,0,24,21,0,0,0,2,0,0,1,0,0,0,30,27,0,0,0,3,36,33,0,0,0
,4,42,39,0,0,0,5,48,45,0,0,0,6,51,-1,0,0,0,7,0,0,8]),DCT_DC_SIZE_LUMINANCE:new
Int8Array([6,3,0,18,15,0,9,12,0,0,0,1,0,0,2,27,24,0,21,30,0,0,0,0,36,33,0,0,0,4,0,0
,3,39,42,0,0,0,5,0,0,6,48,45,0,51,-1,0,0,0,7,0,0,8]),MOTION:new
Int16Array([3,6,0,12,9,0,0,0,0,18,15,0,24,21,0,0,0,-
1,0,0,1,27,30,0,36,33,0,0,0,2,0,0,-2,42,45,0,48,39,0,60,54,0,0,0,3,0,0,-3,51,57,0,-
1,69,0,81,75,0,78,63,0,72,66,0,96,84,0,87,93,0,-1,99,0,108,105,0,0,0,-
4,90,102,0,0,0,4,0,0,-7,0,0,5,111,123,0,0,0,-5,0,0,7,114,120,0,126,117,0,0,0,-
6,0,0,6,153,162,0,150,147,0,135,138,0,156,141,0,129,159,0,132,144,0,0,0,10,0,0,9,0,
0,8,0,0,-8,171,198,0,0,0,-9,180,192,0,168,183,0,165,186,0,174,189,0,0,0,-
10,177,195,0,0,0,12,0,0,16,0,0,13,0,0,14,0,0,11,0,0,15,0,0,-16,0,0,-12,0,0,-
14,0,0,-15,0,0,-11,0,0,-13]),CODE_BLOCK_PATTERN:new
Int16Array([6,3,0,9,18,0,12,15,0,24,33,0,36,39,0,27,21,0,30,42,0,60,57,0,54,48,0,69
,51,0,81,75,0,63,84,0,45,66,0,72,78,0,0,0,60,105,120,0,132,144,0,114,108,0,126,141,
0,87,93,0,117,96,0,0,0,32,135,138,0,99,123,0,129,102,0,0,0,4,90,111,0,0,0,8,0,0,16,
0,0,44,150,168,0,0,0,28,0,0,52,0,0,62,183,177,0,156,180,0,0,0,1,165,162,0,0,0,61,0,
0,56,171,174,0,0,0,2,0,0,40,153,186,0,0,0,48,192,189,0,147,159,0,0,0,20,0,0,12,240,
249,0,0,0,63,231,225,0,195,219,0,252,198,0,0,0,24,0,0,36,0,0,3,207,261,0,243,237,0,
204,213,0,210,234,0,201,228,0,216,222,0,258,255,0,264,246,0,-
1,282,0,285,291,0,0,0,33,0,0,9,318,330,0,306,348,0,0,0,5,0,0,10,279,267,0,0,0,6,0,0
,18,0,0,17,0,0,34,339,357,0,309,312,0,270,276,0,327,321,0,351,354,0,303,297,0,294,2
88,0,300,273,0,342,345,0,315,324,0,336,333,0,363,375,0,0,0,41,0,0,14,0,0,21,372,366
,0,360,369,0,0,0,11,0,0,19,0,0,7,0,0,35,0,0,13,0,0,50,0,0,49,0,0,58,0,0,37,0,0,25,0
,0,45,0,0,57,0,0,26,0,0,29,0,0,38,0,0,53,0,0,23,0,0,43,0,0,46,0,0,42,0,0,22,0,0,54,
0,0,51,0,0,15,0,0,30,0,0,39,0,0,47,0,0,55,0,0,27,0,0,59,0,0,31])},Ns=function()
{function t(t,e,i,n){this.hasDecoded=!1,this.hasDecodeColor=!
1,this.buffer=t,this.width=e,this.height=i,this.blockData=new
Int32Array(64),this.zeroBlockData=new
Int32Array(64),this.intraQuantMatrix=Cs.DEFAULT_INTRA_QUANT,this.nonIntraQuantMatri
x=Cs.DEFAULT_NON_INTRA_QUANT,this.mbWidth=this.width+15>>4,this.mbHeight=this.heigh
t+15>>4,this.mbSize=this.mbWidth*this.mbHeight,this.codedWidth=this.mbWidth<<4,this
.codedHeight=this.mbHeight<<4,this.codedSize=this.codedWidth*this.codedHeight,this.
halfWidth=this.mbWidth<<3,this.halfHeight=this.mbHeight<<3,this.quarterSize=this.co
dedSize>>2;var
r=window.Uint8ClampedArray||window.Uint8Array;window.Uint8ClampedArray||
(this.copyBlockToDestination=this.copyBlockToDestinationClamp,this.addBlockToDestin
ation=this.addBlockToDestinationClamp),n?
(this.forwardY=n.currentY,this.forwardY32=n.currentY32,this.forwardCr=n.currentCr,t
his.forwardCr32=n.currentCr32,this.forwardCb=n.currentCb,this.forwardCb32=n.current
Cb32,this.currentY=n.forwardY,this.currentY32=n.forwardY32,this.currentCr=n.forward
Cr,this.currentCr32=n.forwardCr32,this.currentCb=n.forwardCb,this.currentCb32=n.for
wardCb32):(this.currentY=new r(this.codedSize),this.currentY32=new
Uint32Array(this.currentY.buffer),this.currentCr=new
r(this.codedSize>>2),this.currentCr32=new
Uint32Array(this.currentCr.buffer),this.currentCb=new
r(this.codedSize>>2),this.currentCb32=new
Uint32Array(this.currentCb.buffer),this.forwardY=new
r(this.codedSize),this.forwardY32=new
Uint32Array(this.forwardY.buffer),this.forwardCr=new
r(this.codedSize>>2),this.forwardCr32=new
Uint32Array(this.forwardCr.buffer),this.forwardCb=new
r(this.codedSize>>2),this.forwardCb32=new
Uint32Array(this.forwardCb.buffer)),this.quantizerScale=0,this.sliceBegin=!
1,this.macroblockAddress=0,this.mbRow=0,this.mbCol=0,this.macroblockType=0,this.mac
roblockIntra=!1,this.macroblockMotFw=!
1,this.motionFwH=0,this.motionFwV=0,this.motionFwHPrev=0,this.motionFwVPrev=0}var
e=t.prototype;return e.decodePicture=function(){for(var t=0;;){if(-
1===(t=this.buffer.findNextMPEGStartCode()))return!
1;if(t===ws)break}if(this.buffer.advance(10),this.pictureCodingType=this.buffer.get
Bits(3),this.buffer.advance(16),0>=this.pictureCodingType||
this.pictureCodingType>=js)return!1;if(this.pictureCodingType===Ss)
{if(this.fullPelForward=this.buffer.getBits(1),this.forwardFCode=this.buffer.getBit
s(3),0===this.forwardFCode)return!1;this.forwardRSize=this.forwardFCode-
1,this.forwardF=1<<this.forwardRSize}do{t=this.buffer.findNextMPEGStartCode()}while
(t===_s||
t===Ps);for(;t>=Os&&t<=As;)this.decodeSlice(255&t),t=this.buffer.findNextMPEGStartC
ode();return this.hasDecoded=!0,!0},e.decodeSlice=function(t){for(this.sliceBegin=!
0,this.macroblockAddress=(t-1)*this.mbWidth-
1,this.motionFwH=this.motionFwHPrev=0,this.motionFwV=this.motionFwVPrev=0,this.dcPr
edictorY=128,this.dcPredictorCr=128,this.dcPredictorCb=128,this.quantizerScale=this
.buffer.getBits(5);this.buffer.getBits(1);)this.buffer.advance(8);do{this.decodeMac
roblock()}while(!
this.buffer.nextBytesAreStartCode())},e.decodeMacroblock=function(){for(var
t=0,e=this.readCode(ks.ADDRESS_INCREMENT);34===e;)e=this.readCode(ks.ADDRESS_INCREM
ENT);for(;35===e;)t+=33,e=this.readCode(ks.ADDRESS_INCREMENT);if(t+=e,this.sliceBeg
in)this.sliceBegin=!
1,this.macroblockAddress+=t;else{if(this.macroblockAddress+t>=this.mbSize)return!
1;for(1<t&&(this.dcPredictorY=128,this.dcPredictorCr=128,this.dcPredictorCb=128,thi
s.pictureCodingType===Ss&&(this.motionFwH=this.motionFwHPrev=0,this.motionFwV=this.
motionFwVPrev=0));1<t;)this.macroblockAddress+=1,this.mbRow=0|
this.macroblockAddress/this.mbWidth,this.mbCol=this.macroblockAddress
%this.mbWidth,this.copyMacroblock(this.motionFwH,this.motionFwV,this.forwardY,this.
forwardCr,this.forwardCb),t-=1;this.macroblockAddress+=1}this.mbRow=0|
this.macroblockAddress/this.mbWidth,this.mbCol=this.macroblockAddress
%this.mbWidth,this.macroblockType=this.readCode(ks.TYPE_TABLE[this.pictureCodingTyp
e]),this.macroblockIntra=1&this.macroblockType,this.macroblockMotFw=8&this.macroblo
ckType,0!
=(16&this.macroblockType)&&(this.quantizerScale=this.buffer.getBits(5)),this.macrob
lockIntra?
(this.motionFwH=this.motionFwHPrev=0,this.motionFwV=this.motionFwVPrev=0):
(this.dcPredictorY=128,this.dcPredictorCr=128,this.dcPredictorCb=128,this.decodeMot
ionVectors(),this.copyMacroblock(this.motionFwH,this.motionFwV,this.forwardY,this.f
orwardCr,this.forwardCb));for(var i=0==(2&this.macroblockType)?
this.macroblockIntra?63:0:this.readCode(xs.CODE_BLOCK_PATTERN),n=0,r=32;6>n;n++)0!
=(i&r)&&this.decodeBlock(n),r>>=1},e.readCode=function(t){var
e=0;do{e=t[e+this.buffer.getBits(1)]}while(0<=e&&0!==t[e]);return
t[e+2]},e.copyMacroblock=function(t,e,i,n,r){var
o,a,s,d,l,c,u,h,p,f,g,v,b,m,y,O,A,w,_,P=this.currentY32,S=this.currentCb32,j=this.c
urrentCr32;if(a=(o=this.codedWidth)-
16,s=t>>1,d=e>>1,l=1==(1&t),c=1==(1&e),u=((this.mbRow<<4)+d)*o+
(this.mbCol<<4)+s,p=(h=this.mbRow*o+this.mbCol<<2)+(o<<2),l)if(c)for(;h<p;)
{for(g=i[u]+i[u+o],u++,f=0;4>f;f++)b=255&g+(v=i[u]+i[u+o])+2>>2,b|=65280&(g=i[++u]
+i[u+o])+v+2<<6,b|=16711680&g+(v=i[++u]+i[u+o])+2<<14,g=i[++u]+i[u+o],u++,b|
=4278190080&g+v+2<<22,P[h++]=b;h+=a>>2,u+=a-1}else for(;h<p;){for(g=i[u+
+],f=0;4>f;f++)b=255&g+(v=i[u++])+1>>1,b|=65280&(g=i[u++])+v+1<<7,b|=16711680&g+
(v=i[u++])+1<<15,b|=4278190080&(g=i[u++])+v+1<<23,P[h++]=b;h+=a>>2,u+=a-1}else
if(c)for(;h<p;){for(f=0;4>f;f++)b=255&i[u]+i[u+o]+1>>1,b|=65280&i[++u]+i[u+o]
+1<<7,b|=16711680&i[++u]+i[u+o]+1<<15,b|=4278190080&i[++u]+i[u+o]+1<<23,u++,P[h+
+]=b;h+=a>>2,u+=a}else for(;h<p;){for(f=0;4>f;f++)b=i[u],b|=i[++u]<<8,b|=i[+
+u]<<16,b|=i[++u]<<24,u++,P[h++]=b;h+=a>>2,u+=a}if(a=(o=this.halfWidth)-
8,s=t/2>>1,d=e/2>>1,l=1==(1&t/2),c=1==(1&e/2),u=((this.mbRow<<3)+d)*o+
(this.mbCol<<3)+s,p=(h=this.mbRow*o+this.mbCol<<1)+(o<<1),l)if(c)for(;h<p;)
{for(m=n[u]+n[u+o],A=r[u]+r[u+o],u++,f=0;2>f;f++)O=255&m+(y=n[u]+n[u+o])
+2>>2,_=255&A+(w=r[u]+r[u+o])+2>>2,O|=65280&(m=n[++u]+n[u+o])+y+2<<6,_|
=65280&(A=r[u]+r[u+o])+w+2<<6,O|=16711680&m+(y=n[++u]+n[u+o])+2<<14,_|=16711680&A+
(w=r[u]+r[u+o])+2<<14,m=n[++u]+n[u+o],A=r[u]+r[u+o],u++,O|=4278190080&m+y+2<<22,_|
=4278190080&A+w+2<<22,j[h]=O,S[h]=_,h++;h+=a>>2,u+=a-1}else for(;h<p;)
{for(m=n[u],A=r[u],u++,f=0;2>f;f++)O=255&m+(y=n[u])+1>>1,_=255&A+(w=r[u++])+1>>1,O|
=65280&(m=n[u])+y+1<<7,_|=65280&(A=r[u++])+w+1<<7,O|=16711680&m+(y=n[u])+1<<15,_|
=16711680&A+(w=r[u++])+1<<15,O|=4278190080&(m=n[u])+y+1<<23,_|=4278190080&(A=r[u+
+])+w+1<<23,j[h]=O,S[h]=_,h++;h+=a>>2,u+=a-1}else if(c)for(;h<p;){for(f=0;2>f;f+
+)O=255&n[u]+n[u+o]+1>>1,_=255&r[u]+r[u+o]+1>>1,O|=65280&n[++u]+n[u+o]+1<<7,_|
=65280&r[u]+r[u+o]+1<<7,O|=16711680&n[++u]+n[u+o]+1<<15,_|=16711680&r[u]+r[u+o]
+1<<15,O|=4278190080&n[++u]+n[u+o]+1<<23,_|=4278190080&r[u]+r[u+o]+1<<23,u+
+,j[h]=O,S[h]=_,h++;h+=a>>2,u+=a}else for(;h<p;){for(f=0;2>f;f++)O=n[u],_=r[u],O|
=n[++u]<<8,_|=r[u]<<8,O|=n[++u]<<16,_|=r[u]<<16,O|=n[++u]<<24,_|=r[u]<<24,u+
+,j[h]=O,S[h]=_,h++;h+=a>>2,u+=a}},e.decodeMotionVectors=function(){var
t,e,i=0;this.macroblockMotFw?(0!==(t=this.readCode(xs.MOTION))&&1!==this.forwardF?
(i=this.buffer.getBits(this.forwardRSize),e=(Yn(t)-1<<this.forwardRSize)
+i+1,0>t&&(e=-e)):e=t,this.motionFwHPrev+=e,this.motionFwHPrev>(this.forwardF<<4)-
1?this.motionFwHPrev-=this.forwardF<<5:this.motionFwHPrev<-
this.forwardF<<4&&(this.motionFwHPrev+=this.forwardF<<5),this.motionFwH=this.motion
FwHPrev,this.fullPelForward&&(this.motionFwH<<=1),0!
==(t=this.readCode(xs.MOTION))&&1!==this.forwardF?
(i=this.buffer.getBits(this.forwardRSize),e=(Yn(t)-1<<this.forwardRSize)
+i+1,0>t&&(e=-e)):e=t,this.motionFwVPrev+=e,this.motionFwVPrev>(this.forwardF<<4)-
1?this.motionFwVPrev-=this.forwardF<<5:this.motionFwVPrev<-
this.forwardF<<4&&(this.motionFwVPrev+=this.forwardF<<5),this.motionFwV=this.motion
FwVPrev,this.fullPelForward&&(this.motionFwV<<=1)):this.pictureCodingType===Ss&&(th
is.motionFwH=this.motionFwHPrev=0,this.motionFwV=this.motionFwVPrev=0)},e.decodeBlo
ck=function(t){var e,i,n,r,o=0;if(this.macroblockIntra){var a,s;if(4>t?
(a=this.dcPredictorY,s=this.readCode(xs.DCT_DC_SIZE_LUMINANCE)):(a=4===t?
this.dcPredictorCr:this.dcPredictorCb,s=this.readCode(xs.DCT_DC_SIZE_CHROMINANCE)),
0<s){var d=this.buffer.getBits(s);this.blockData[0]=0==(d&1<<s-1)?a+(-1<<s|
d+1):a+d}else this.blockData[0]=a;4>t?this.dcPredictorY=this.blockData[0]:4===t?
this.dcPredictorCr=this.blockData[0]:this.dcPredictorCb=this.blockData[0],this.bloc
kData[0]<<=8,e=this.intraQuantMatrix,o=1}else e=this.nonIntraQuantMatrix;for(var
l=0;;){var
c=0,u=this.readCode(xs.DCT_COEFF);if(1===u&&0<o&&0===this.buffer.getBits(1))break;6
5535===u?(c=this.buffer.getBits(6),0===(l=this.buffer.getBits(8))?
l=this.buffer.getBits(8):128===l?l=this.buffer.getBits(8)-256:128<l&&(l-=256)):
(c=u>>8,l=255&u,this.buffer.getBits(1)&&(l=-l));var h=xs.ZIG_ZAG[o+=c];o+
+,l<<=1,this.macroblockIntra||(l+=0>l?-
1:1),0==(1&(l=l*this.quantizerScale*e[h]>>4))&&(l-=0<l?1:-1),2047<l?l=2047:-
2048>l&&(l=-2048),this.blockData[h]=l*xs.PREMULTIPLIER_MATRIX[h]}4>t?
(i=this.currentY,r=this.codedWidth-8,n=this.mbRow*this.codedWidth+this.mbCol<<4,0!
=(1&t)&&(n+=8),0!=(2&t)&&(n+=this.codedWidth<<3)):(i=4===t?
this.currentCb:this.currentCr,r=(this.codedWidth>>1)-
8,n=(this.mbRow*this.codedWidth<<2)+(this.mbCol<<3)),this.macroblockIntra?1===o?
(this.copyValueToDestination(this.blockData[0]+128>>8,i,n,r),this.blockData[0]=0):
(this.IDCT(),this.copyBlockToDestination(this.blockData,i,n,r),this.blockData.set(t
his.zeroBlockData)):1===o?
(this.addValueToDestination(this.blockData[0]+128>>8,i,n,r),this.blockData[0]=0):
(this.IDCT(),this.addBlockToDestination(this.blockData,i,n,r),this.blockData.set(th
is.zeroBlockData)),o=0},e.IDCT=function(){var
t,e,i,n,r,o,a,s,d,l,c,u,h,p,f,g,v,b,m,y=this.blockData;for(m=0;8>m;+
+m)t=y[32+m],e=y[16+m]+y[48+m],i=y[40+m]-y[24+m],o=y[8+m]+y[56+m],a=y[24+m]
+y[40+m],n=y[8+m]-y[56+m],r=o+a,s=y[0+m],d=(h=(473*n-196*i+128>>8)-r)-(362*(o-a)
+128>>8),p=(l=s-t)+(c=(362*(y[16+m]-y[48+m])+128>>8)-e),f=(u=s+t)+e,g=l-c,v=u-e,b=-
d-(473*i+196*n+128>>8),y[0+m]=r+f,y[8+m]=h+p,y[16+m]=g-d,y[24+m]=v-
b,y[32+m]=v+b,y[40+m]=d+g,y[48+m]=p-h,y[56+m]=f-
r;for(m=0;64>m;m+=8)t=y[4+m],e=y[2+m]+y[6+m],i=y[5+m]-y[3+m],o=y[1+m]
+y[7+m],a=y[3+m]+y[5+m],n=y[1+m]-y[7+m],r=o+a,s=y[0+m],d=(h=(473*n-196*i+128>>8)-
r)-(362*(o-a)+128>>8),p=(l=s-t)+(c=(362*(y[2+m]-y[6+m])+128>>8)-e),f=(u=s+t)+e,g=l-
c,v=u-e,b=-d-(473*i+196*n+128>>8),y[0+m]=r+f+128>>8,y[1+m]=h+p+128>>8,y[2+m]=g-
d+128>>8,y[3+m]=v-b+128>>8,y[4+m]=v+b+128>>8,y[5+m]=d+g+128>>8,y[6+m]=p-
h+128>>8,y[7+m]=f-r+128>>8},e.copyBlockToDestination=function(t,e,i,n){for(var
r=0;64>r;r+=8,i+=n+8)e[i+0]=t[r+0],e[i+1]=t[r+1],e[i+2]=t[r+2],e[i+3]=t[r+3],e[i+4]
=t[r+4],e[i+5]=t[r+5],e[i
+6]=t[r+6],e[i+7]=t[r+7]},e.addBlockToDestination=function(t,e,i,n){for(var
r=0;64>r;r+=8,i+=n+8)e[i+0]+=t[r+0],e[i+1]+=t[r+1],e[i+2]+=t[r+2],e[i+3]+=t[r+3],e[
i+4]+=t[r+4],e[i+5]+=t[r+5],e[i+6]+=t[r+6],e[i+7]+=t[r+7]},e.copyValueToDestination
=function(t,e,i,n){for(var
r=0;64>r;r+=8,i+=n+8)e[i+0]=t,e[i+1]=t,e[i+2]=t,e[i+3]=t,e[i+4]=t,e[i+5]=t,e[i+6]=t
,e[i+7]=t},e.addValueToDestination=function(t,e,i,n){for(var
r=0;64>r;r+=8,i+=n+8)e[i+0]+=t,e[i+1]+=t,e[i+2]+=t,e[i+3]+=t,e[i+4]+=t,e[i+5]+=t,e[
i+6]+=t,e[i+7]+=t},e.copyBlockToDestinationClamp=function(t,e,i,n){for(var
r=0,o=0;8>o;o++){for(var a,s=0;8>s;s++)a=t[r++],e[i++]=255<a?255:0>a?
0:a;i+=n}},e.addBlockToDestinationClamp=function(t,e,i,n){for(var r=0,o=0;8>o;o++)
{for(var a,s=0;8>s;s++)a=t[r++]+e[i],e[i++]=255<a?255:0>a?
0:a;i+=n}},e.YCbCrToRGBA=function(){for(var
t,e,i,n,r,o=this.currentY,a=this.currentCb,s=this.currentCr,d=this.currentRGBA.data
,l=0,c=this.codedWidth,u=this.codedWidth+(this.codedWidth-
this.width),h=0,p=this.halfWidth-
(this.width>>1),f=0,g=4*this.width,v=4*this.width,b=this.width>>1,m=this.height>>1,
y=0;y<m;y++){for(var O=0;O<b;O++){t=a[h],e=s[h],h++,i=e+(103*e>>8)-179,n=(88*t>>8)-
44+(183*e>>8)-91,r=t+(198*t>>8)-227;var A=o[l++],w=o[l++];d[f]=A+i,d[f+1]=A-
n,d[f+2]=A+r,d[f+3]=255,d[f+4]=w+i,d[f+5]=w-n,d[f+6]=w+r,d[f+7]=255,f+=8;var _=o[c+
+],P=o[c++];d[g]=_+i,d[g+1]=_-n,d[g+2]=_+r,d[g+3]=255,d[g+4]=P+i,d[g+5]=P-
n,d[g+6]=P+r,d[g+7]=255,g+=8}l+=u,c+=u,f+=v,g+=v,h+=p}this.hasDecodeColor=!
0},e.fillArray=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i]=e},t}
(),Ms=function(){};Ms.SHADER_FRAGMENT_YCBCRTORGBA="precision mediump
float;\nuniform sampler2D YTexture;\nuniform sampler2D CBTexture;\nuniform
sampler2D CRTexture;\nvarying vec2 texCoord;\nvoid main() {\nfloat y =
texture2D(YTexture, texCoord).r;\nfloat cr = texture2D(CBTexture, texCoord).r -
0.5;\nfloat cb = texture2D(CRTexture, texCoord).r - 0.5;\ngl_FragColor = vec4(\ny +
1.4 * cr,\ny + -0.343 * cb - 0.711 * cr,\ny + 1.765 *
cb,\n1.0\n);\n}",Ms.SHADER_FRAGMENT_LOADING="precision mediump float;\nuniform
float loaded;\nvarying vec2 texCoord;\nvoid main() {\nfloat c = ceil(loaded-(1.0-
texCoord.y));\ngl_FragColor =
vec4(c,c,c,1);\n}",Ms.SHADER_VERTEX_IDENTITY="attribute vec2 vertex;\nvarying vec2
texCoord;\nvoid main() {\ntexCoord = vertex;\ngl_Position = vec4((vertex * 2.0 -
1.0) * vec2(1, -1), 0.0, 1.0);\n}";var Vs=function(){function t(t)
{this.canvas=t.canvas}var e=t.prototype;return e.init=function(t,e)
{this.initWebGL()?
(this.render=this.renderFrameGL,this.gl.useProgram(this.program),this.gl.viewport(0
,0,t,e)):
(this.canvasCtx=this.canvas.getContext("2d"),this.render=this.renderFrame2D)},e.ren
derFrame2D=function(t){t.decodePicture(),t.hasDecodeColor||
(t.currentRGBA=document.createElement("canvas").getContext("2d").getImageData(0,0,t
.width,t.height),t.YCbCrToRGBA()),this.canvasCtx.putImageData(t.currentRGBA,0,0)},e
.renderFrameGL=function(t){t.decodePicture();var e=this.gl,i=new
Uint8Array(t.currentY.buffer),n=new Uint8Array(t.currentCr.buffer),r=new
Uint8Array(t.currentCb.buffer);e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_
2D,this.YTexture),e.texImage2D(e.TEXTURE_2D,0,e.LUMINANCE,t.codedWidth,t.height,0,e
.LUMINANCE,e.UNSIGNED_BYTE,i),e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2
D,this.CBTexture),e.texImage2D(e.TEXTURE_2D,0,e.LUMINANCE,t.halfWidth,t.height/2,0,
e.LUMINANCE,e.UNSIGNED_BYTE,n),e.activeTexture(e.TEXTURE2),e.bindTexture(e.TEXTURE_
2D,this.CRTexture),e.texImage2D(e.TEXTURE_2D,0,e.LUMINANCE,t.halfWidth,t.height/2,0
,e.LUMINANCE,e.UNSIGNED_BYTE,r),e.drawArrays(e.TRIANGLE_STRIP,0,4)},e.initWebGL=fun
ction(){var t;try{if(t=this.gl=this.canvas.getContext("webgl")||
this.canvas.getContext("experimental-
webgl"),this.glbuffer=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.glbuffer),t
.bufferData(t.ARRAY_BUFFER,new
Float32Array([0,0,0,1,1,0,1,1]),t.STATIC_DRAW),this.program=t.createProgram(),t.att
achShader(this.program,this.compileShader(t.VERTEX_SHADER,Ms.SHADER_VERTEX_IDENTITY
)),t.attachShader(this.program,this.compileShader(t.FRAGMENT_SHADER,Ms.SHADER_FRAGM
ENT_YCBCRTORGBA)),t.linkProgram(this.program),!
t.getProgramParameter(this.program,t.LINK_STATUS))throw new
Error(t.getProgramInfoLog(this.program));t.useProgram(this.program),this.YTexture=t
his.createTexture(0,"YTexture"),this.CBTexture=this.createTexture(1,"CBTexture"),th
is.CRTexture=this.createTexture(2,"CRTexture");var
e=t.getAttribLocation(this.program,"vertex");t.enableVertexAttribArray(e),t.vertexA
ttribPointer(e,2,t.FLOAT,!
1,0,0),this.loadingProgram=t.createProgram(),t.attachShader(this.loadingProgram,thi
s.compileShader(t.VERTEX_SHADER,Ms.SHADER_VERTEX_IDENTITY)),t.attachShader(this.loa
dingProgram,this.compileShader(t.FRAGMENT_SHADER,Ms.SHADER_FRAGMENT_LOADING)),t.lin
kProgram(this.loadingProgram),t.useProgram(this.loadingProgram),e=t.getAttribLocati
on(this.loadingProgram,"vertex"),t.enableVertexAttribArray(e),t.vertexAttribPointer
(e,2,t.FLOAT,!1,0,0)}catch(e){return!1}return!!t},e.compileShader=function(t,e){var
i=this.gl,n=i.createShader(t);if(i.shaderSource(n,e),i.compileShader(n),!
i.getShaderParameter(n,i.COMPILE_STATUS))throw new
Error(i.getShaderInfoLog(n));return n},e.createTexture=function(t,e){var
i=this.gl,n=i.createTexture();return
i.bindTexture(i.TEXTURE_2D,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.L
INEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(
i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTU
RE_WRAP_T,i.CLAMP_TO_EDGE),i.uniform1i(i.getUniformLocation(this.program,e),t),n},t
}(),Rs=[null,23.976,24,25,29.97,30,50,59.94,60],Ls=function(){function t()
{this.data=new Uint8Array(0),this.lastIndex=0}var e=t.prototype;return
e.push=function(e){this.data=t.merge(this.data,e)},e.getData=function(){for(var
t,e=[],i=this.lastIndex;i<this.data.length;i+=1)if(0===this.data[i]&&0===this.data[
i+1]&&1===this.data[i+2]){var n=this.data[i+3];if(n===ws)e.push(i);else
if(n===ys&&32<this.data.length-(i+4)){var r=new
ms(this.data.slice(i+4,32)),o=r.getBits(12),a=r.getBits(12),s=r.getBits(4),d=Rs[r.g
etBits(4)];o&&a&&(t={width:o,height:a,aspectRatio:s,fps:d})}}var
l=[];if(1<e.length)for(var c=0;c<e.length-1;c+=1)l.push(new
ms(this.data.slice(e[c],e[c+1]))),this.lastIndex=e[c+1];return{frames:l,metaData:t}
},e.getTailData=function(){return
this.data.slice(this.lastIndex,this.data.length)},t.merge=function(t,e){var i=new
Uint8Array(t.length+e.length);return i.set(t),i.set(e,t.length),i},t}
(),Fs=30,Ws="jsmpeg",Hs=function(t){function e(e){var i;return void 0===e&&(e={}),
(i=t.call(this)||this).canvas=e.canvas,i.finished=!
1,i.currentRenderFrame=0,i.hasStop=!0,i.timeoutId=null,i.buffer=new
Ls,i.renderEngine=new
Vs(e),i.currentTime=0,i.fps=Fs,i.frames=[],i.messagesData=[],i.duration=0,i.lastRen
derTime=Date.now(),i.firstPacketTimeout=e.firstPacketTimeout||500,i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.createFrame=function(t){var
e=this.frames[this.frames.length-1],i=new
Ns(t,this.width,this.height,e);this.frames.push(i)},i.setMetaData=function(t){if(t)
{var e=t.width,i=t.height,n=t.fps;n&&(this.fps=n),e&&i&&this.width!
==e&&this.height!
==i&&(this.width=e,this.height=i,this.canvas.width=this.width,this.canvas.height=th
is.height,this.renderEngine.init(this.width,this.height))}},i.decodeMessage=functio
n(){var t=this,e=this.fps/2;if(this.frames.length-
this.currentRenderFrame>e)setTimeout(this.decodeMessage.bind(this),0);else{var
i=this.messagesData.shift();if(i){this.buffer.push(new Uint8Array(i));var
n=this.buffer.getData(),r=n.frames,o=n.metaData;this.setMetaData(o),r.forEach(funct
ion(e){return t.createFrame(e)}),Date.now()-
this.lastRenderTime>=1e3/this.fps&&this.nextFrame()}}},i.createSocket=function(t)
{var e=this,i=new WebSocket(t);i.binaryType="arraybuffer";var n=function(t){var
i=t.data;e.messagesData.push(i),setTimeout(e.decodeMessage.bind(e),0)};return
i.addEventListener("message",function t(r)
{clearTimeout(i.firstPacketWaitingTimeoutId);var o=new
ms(r.data);e.decodeInitPackage(o),i.removeEventListener("message",t),i.addEventList
ener("message",n)}),i.firstPacketWaitingTimeoutId=setTimeout(function()
{e.trigger("error",Ws+".createSocket() Websocket did not get a first packet during
"+e.firstPacketTimeout+"
ms")},this.firstPacketTimeout),i},i.processSocket=function(t){var
e=this;try{this.client=this.createSocket(t),this.client.addEventListener("error",fu
nction(){e.trigger("error",Ws+".init() Websocket initialization
error")}),this.client.addEventListener("close",function(){e.finished=!0})}catch(e)
{this.trigger("error",Ws+".init() Websocket create
error")}},i.processFile=function(t){var e=this;Object(po.f)(t,{options:
{withCredentials:!1,responseType:"arraybuffer"}}).then(function(t)
{e.buffer.push(new Uint8Array(t.target.response));var
i=e.buffer.getData(),n=i.frames,r=i.metaData;e.setMetaData(r),n.forEach(function(t)
{return
e.createFrame(t)}),e.duration=e.frames.length/e.fps,e.trigger("onDecodeInitPackage"
)}).catch(function(){e.trigger("error",Ws+".pricessFile("+t+") Failed to load
resource")})},i.init=function(t){/^wss?:\/\//.test(t)?
this.processSocket(t):this.processFile(t)},i.decodeInitPackage=function(t)
{t.getBits(32),this.setMetaData({width:t.getBits(16),height:t.getBits(16),fps:t.get
Bits(8)||Fs}),this.trigger("onDecodeInitPackage")},i.play=function()
{this.hasStop&&(this.hasStop=!1,this.startAnimation())},i.pause=function()
{this.hasStop=!
0,this.timeoutId&&window.clearTimeout(this.timeoutId)},i.stop=function()
{this.currentRenderFrame=0,this.currentTime=0,this.pause()},i.timeUpdate=function()
{this.trigger("timeupdate",{target:
{currentTime:this.currentTime,duration:this.duration}})},i.nextFrame=function(){var
t=this.frames[this.currentRenderFrame];!t||this.hasStop||
(this.lastRenderTime=Date.now(),this.renderEngine.render(t),this.currentTime=this.c
urrentRenderFrame/this.fps,this.currentRenderFrame+=1,this.timeUpdate())},i.startAn
imation=function(){return
this.hasStop?void 0:(this.finished||
0<this.duration)&&this.currentRenderFrame>=this.frames.length-
1&&0===this.messagesData.length?void this.trigger("ended"):
(this.timeoutId=setTimeout(this.startAnimation.bind(this),1e3/this.fps),void
this.nextFrame())},e}(bs.a),zs="Module::VpaidCanvas",Bs=function(t){function e(e)
{var i;void 0===e&&(e={}),i=t.call(this,function(t){for(var
e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
ei(Object(e),!0).forEach(function(i)
{ii(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ei(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},e,
{ancestor:zs}))||this;var
n=e,r=n.duration,o=n.mpgmedia,a=n.mpgmedia,s=a.width,d=a.height;return
i.adDuration=r,i.adWidth=s,i.adHeight=d,i.media=o,i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.initAd=function(e,i,n,r,o,a){var s=this;void
0===o&&(o={}),void 0===a&&(a={}),t.prototype.initAd.call(this,e,i,n,r,o,a);var
d=this.options,l=d.mpgmedia,c=d.mp4media,u=d.mp3media,h=d.duration;this.setAdVolume
(0),this.adDuration=h,this.videoSlot=this.videoSlot||
a.videoSlot,this.audioSlot=this.audioSlot||a.audioSlot;var
p=this.slot=a.slot,f=this.canvas;Object(cr.o)(f,"canvas")||
(f=this.canvas=document.createElement("canvas"),this._addDOMEventListener(p||
f,"click",function(t){t.preventDefault(),this.trigger("AdClickThru","",0,!
0)}.bind(this)),Object(cr.b)(f,{width:Object(dr.s)(e),height:Object(dr.s)
(i)}),this.canvasWrapper=Object(cr.a)(a.slot,"div",
{position:"absolute",top:"50%",marginTop:Object(dr.s)(-
i/2),left:"50%",marginLeft:Object(dr.s)(-
e/2)}),this.canvasWrapper.appendChild(f),this._initAudioVideo(u&&u.src,c&&c.src));v
ar g=this.jsmpeg=new Hs({canvas:f,firstPacketTimeout:1200});return
this._addVPAIDEventListener(g,"timeupdate",function(t){var
e=this.adExpanded&&this.videoSlot?
this.videoSlot:t.target,i=this.adDuration=e&&e.duration?
e.duration:this.adDuration;if(i){var n=this.adRemainingTime,r=i-
e.currentTime;r===n||
(this.adRemainingTime=r,r<i&&n===i&&(this.trigger("AdImpression"),this.trigger("AdV
ideoStart")),this.trigger("AdRemainingTimeChange"),r<.75*i&&n>=.75*i&&this.trigger(
"AdVideoFirstQuartile"),r<.5*i&&n>=.5*i&&this.trigger("AdVideoMidpoint"),r<.25*i&&n
>=.25*i&&this.trigger("AdVideoThirdQuartile"),0==r&&0<n&&this.trigger("AdVideoCompl
ete"))}}.bind(this)),this._addVPAIDEventListener(g,"onDecodeInitPackage",function()
{var
t=this.jsmpeg;t.width,t.height,this.resizeAd(this.adWidth,this.adHeight),this.trigg
er("AdLoaded")}.bind(this)),this._addVPAIDEventListener(g,"ended",function(){var
t=s.getAdExpanded();g.ended=!0,t||
(s.collapseAd(),s.trigger("AdVideoComplete"))}),this._addVPAIDEventListener(g,"erro
r",function(t)
{s.trigger("AdError",t+"",nr.a.GENERAL_VPAID_ERROR)},"error"),g.init(l&&l.src),this
._addVPAIDEventListener(this,"AdVolumeChange",function()
{ri.call(this)}.bind(this)),this._addVPAIDEventListener(this,"AdVideoStart",functio
n()
{ri.call(this)}.bind(this)),this._addVPAIDEventListener(this,"AdVideoComplete",func
tion(){var
t=this.jsmpeg,e=this.videoSlot;e&&e.pause(),t.stop()}.bind(this)),Promise.resolve(t
his)},i.resizeAd=function(e,i,n){var
r,o=this.jsmpeg,a=this.canvas,s=this.environmentVars,d=this.options.mpgmedia,l=d.sc
alable,c=s||{},u=c.forceAspectRatio,h=c.slot,p=this.getAdAspectRatio(),f=u||
d.maintainAspectRatio;if(o&&o.width&&p&&l&&s&&s.slot){var
g,v=o.width>o.height,b=e>i;if(null===f){var m=d.width/d.height,y=e/i;f=100-
100*(y<m?y/m:m/y)>10}!0===f&&(g=e/i<o.width/o.height),!
1===f&&(g=e/i>o.width/o.height),v!=b&&(g=!0),b&&!v&&(g=!1),r=g?
{width:e,height:e*p}:{height:i,width:i/p}}else
r={width:d.width,height:d.height};var O=this.canvasWrapper;return O&&Object(cr.b)
(O,{marginTop:Object(dr.s)(-r.height/2),marginLeft:Object(dr.s)(-
r.width/2)}),Object(dr.c)(a,r,h,
{width:e,height:i}),t.prototype.resizeAd.call(this,e,i,n)},i.startAd=function(){var
e=this.jsmpeg,i=this.videoSlot;return this.getAdExpanded()?
i&&i.play():e.play(),t.prototype.startAd.call(this)},i.stopAd=function(){return
ni.call(this),t.prototype.stopAd.call(this)},i.pauseAd=function(){return
ni.call(this),t.prototype.pauseAd.call(this)},i.resumeAd=function(){var
e=this.jsmpeg,i=this.videoSlot,n=this.getAdExpanded();return
e.play(),n&&i&&i.play(),t.prototype.resumeAd.call(this)},i.expandAd=function(){var
e=this.jsmpeg,i=this.videoSlot;return!
this.getAdExpanded()&&i&&(i.currentTime=e.currentTime,Object(cr.p)
(this.videoSlot),this.setAdExpanded(!
0)),t.prototype.expandAd.call(this)},i.collapseAd=function(){var
e=this,i=this.jsmpeg,n=this.videoSlot;return
this.getAdExpanded()&&n&&(n.pause(),setTimeout(function(){"function"==typeof
n.webkitExitFullscreen&&n.webkitExitFullscreen(),i.ended&&e.trigger("AdVideoComplet
e")},50)),t.prototype.collapseAd.call(this)},i.skipAd=function(){return
ni.call(this),t.prototype.skipAd.call(this)},i.getAdAspectRatio=function(){var
t=this.adWidth,e=this.adHeight,i=this.jsmpeg||
this.options.mpgmedia,n=i.width,r=i.height;return n&&r?r/n:t&&e?
e/t:9/16},i._destroy=function()
{t.prototype._destroy.call(this),this.jsmpeg._eventListeners={},this.jsmpeg=null},i
._initAudioVideo=function(t,e){var i,n;if(t)i=this.videoSlot=this.audioSlot||
document.createElement("audio"),n=t;else{if(!e)return void
this._failedAudioVideo();(i=this.videoSlot=this.videoSlot||
document.createElement("video")).playsInline=!
0,n=e}this.environmentVars.slot.appendChild(i),i.src=n,Object(cr.b)(i,
{display:"none"}),this._addDOMEventListener(i,"volumechange",this.trigger.bind(this
,"AdVolumeChange")),this._addDOMEventListener(i,"loadeddata",function(t){var
e=t.target;this.hasAudio=Object(dr.o)
(e),this.trigger("AdLoadedVideoData")}.bind(this)),this._addDOMEventListener(i,"web
kitendfullscreen",this.collapseAd.bind(this)),this._addDOMEventListener(i,"ended",t
his.collapseAd.bind(this)),this._addDOMEventListener(i,"error",this._failedAudioVid
eo.bind(this)),i.load()},i._failedAudioVideo=function()
{this.videoSlot=null,this.trigger("AdAudioDisabled")},e.create=function(t,i,n){void
0===n&&(n=!1);var r=(i&&i.getAPI&&i.getAPI()||{}).getControlUnionData;return new
Promise(function(o){var
a=t.MediaFiles,s=t.duration,d=t.rawDuration,l=a["video/mp4"]&&a["video/mp4"]
[0],c=l&&l.src,u=c&&i.isMediaUrlBlocked(l.src),h=a["audio/mp3"]&&a["audio/mp3"]
[0],p=r&&r("vnCache")||{serverUrl:"",strict:!1};if(!n&&c&&!u&&(ur.b||!
p.strict&&ur.a))throw new Error;var
f,g=i.format&&i.format._getModuleDimensions&&i.format._getModuleDimensions().viewpo
rtWidth||0,v=a["video/mpeg"],b=v&&v.filter(function(t){return t.src&&!
i.isMediaUrlBlocked(t.src)}).reduce(function(t,e){return Yn(t.width-g)<Yn(e.width-
g)?t:e});if(b){var m,y=b.width;y&&g&&!1===b.scalable&&.1<(m=Yn(y-
g)/g)&&(or.b.log(zs+" difference between viewportWidth && mediaWidth more than 10%
("+m+"). Set media.scalable = true"),b.scalable=!0),f=Promise.resolve(b)}else{if(!
c||u||!p||!p.serverUrl)throw new Error;var O=Object(pr.a)(p.serverUrl,
{url:l.src});f=Object(po.f)(O).then(function(t){return
JSON.parse(t.target.responseText)}).catch(function(){throw new Error("Cache server
did not provide playable data")}).then(function(t){return
t.video})}f.then(function(t)
{or.b.log(zs+".create("+t.src+")"),i.setSelectedCreative(t.src,d);var n=new
e({module:i,mpgmedia:t,mp3media:h,mp4media:l,duration:s,moduleAPI:i.getAPI()});o(n)
})})},e}(ir.a),Us="Module::VpaidImg",qs=function(t){function e(e){var i;void
0===e&&(e={});var n=(i=t.call(this,function(t){for(var e,i=1;i<arguments.length;i+
+)e=null==arguments[i]?{}:arguments[i],i%2?oi(Object(e),!0).forEach(function(i)
{ai(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):oi(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},e,
{ancestor:Us}))||this).options.media;i.media=n,i.image=null,i.originalSize={};var
r=i.options.duration;return i._countdown=new is.a({duration:r,VPAID_API:
{trigger:i.trigger.bind(function(t){if(void 0===t)throw new ReferenceError("this
hasn't been initialised - super() hasn't been called");return t}
(i))},logger:i.logger}),i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.initAd=function(e,i,n,r,o,a){var s=this;void
0===o&&(o={}),void 0===a&&(a={}),t.prototype.initAd.call(this,e,i,n,r,o,a);var
d=this.options.media,l=this.image,c=this.slot=a.slot;if(!Object(cr.o)(l,"img")){var
u=this.image=document.createElement("img");this._addDOMEventListener(c,"click",func
tion(t){t.preventDefault(),this.trigger("AdClickThru","",0,!
0)}.bind(this)),this._addDOMEventListener(u,"load",function(){var
t=this.image,e=t.width,i=t.height;this.originalSize={width:parseFloat(e),height:par
seFloat(i)},this.adHeight=i,this.trigger("AdLoaded"),this.trigger("AdLoadedVideoDat
a")}.bind(this)),this._addDOMEventListener(u,"error",function(t)
{s.trigger("AdError",t+"",nr.a.GENERAL_VPAID_ERROR)}),a.slot.appendChild(u),u.src=d
.src,this._addVPAIDEventListener(this,"error",function(t)
{s.trigger("AdError",t+"",nr.a.GENERAL_VPAID_ERROR)},"error")}return
Promise.resolve(this)},i.getModuleOptions=function(){return
Promise.resolve({destroyControls:["spinner","volume","play"],controlsActions:
[{name:"container",action:function(t){t&&Object(cr.b)(t,
{backgroundColor:"transparent"})}},{name:"vpaidSlot",action:function(t)
{t&&Object(cr.b)(t,{textAlign:"center"})}}]})},i.resizeAd=function(e,i,n){var
r=this.image,o=this.environmentVars,a=this.originalSize,s=(o||
{}).slot;if(r&&r.width&&o&&o.slot){var d=r.width,l=(a||{}).width;if(d>e||
d<=e&&l>=d){var c=Zn(e,a.width);c!==d&&(r.width=c)}var
u=r.width,h=r.height;this.trigger("slotSizeChanged",{shouldNotResize:!
0,height:h,width:u}),t.prototype.resizeAd.call(this,u,h,n),Object(dr.c)(null,
{width:u,height:h},s,{width:e,height:h}),this.trigger("slotSizeChanged",
{shouldNotResize:!0,width:null})}},i.startAd=function(){or.b.log(Us+"
startAd()",2,"blue"),this._countdown.start(),this.trigger("AdDurationChange"),t.pro
totype.startAd.call(this),this.trigger("AdImpression"),this.trigger("AdVideoStart")
},i.stopAd=function(){return
this._countdown.stop(),t.prototype.stopAd.call(this)},i.pauseAd=function(){return
this._countdown.stop(),t.prototype.pauseAd.call(this)},i.resumeAd=function(){return
this._countdown.start(),t.prototype.resumeAd.call(this)},i.skipAd=function(){return
t.prototype.skipAd.call(this)},i.getAdAspectRatio=function(){var
t=this.adWidth,e=this.adHeight,i=this.image||
this.options.media,n=i.width,r=i.height;return n&&r?r/n:t&&e?
e/t:9/16},i.getAdRemainingTime=function(){return
this._countdown.getAdRemainingTime()},i._destroy=function()
{this._countdown._destroy(),t.prototype._destroy.call(this)},e.create=function(t,i)
{return new Promise(function(n){var
r=t.MediaFiles,o=t.rawDuration,a=t.duration,s=i.format&&i.format._getModuleDimensio
ns&&i.format._getModuleDimensions().viewportWidth||0,d=(r["image/png"]||
[]).concat(r["image/jpg"]||[]).concat(r["image/gif"]||[]),l=d&&d.filter(function(t)
{return t.src}).reduce(function(t,e){return Yn(t.width-s)<Yn(e.width-s)?t:e},
{});if(Object(dr.q)(l))throw new
Error;or.b.log(Us+".create("+l.src+")"),i.setSelectedCreative(l.src,o),n(new
e({module:i,media:l,duration:a}))})},e}
(ir.a),Gs="::VpaidVideo",Xs={startTime:0},Ys=function(t){function e(e){var i;void
0===e&&(e={});var n=e&&(e.logger||e.module&&e.module.logger||
e.moduleAPI&&e.moduleAPI.logger)||or.b;i=t.call(this,function(t){for(var
e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
si(Object(e),!0).forEach(function(i)
{di(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):si(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},Xs,
{},e,{ancestor:Gs,logger:n}))||this;var
r=e,o=r.mp4media,a=r.mp4media,s=a.width,d=a.height;i.adWidth=s,i.adHeight=d,i.media
=o,i.startedVideotWithoutSound=null,i.startVideoWithSoundFailed=null,i.setAdVolumeC
ounter=0;var l=new dr.a;return
i.playerSuccessfullyStartedPromise=l.promise,i.playerSuccessfullyStartedResolve=l.r
esolve,i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.initAd=function(e,i,n,r,o,a){var s=this;void
0===o&&(o={}),void 0===a&&(a={}),t.prototype.initAd.call(this,e,i,n,r,o,a);var
d,l=a.videoSlotCanAutoPlay||
o.videoSlotCanAutoPlay;this.videoSlotCanAutoPlay=l,"true"===l||"1"===l?
this.videoSlotCanAutoPlay=!0:
("false"===l||"false"===l)&&(this.videoSlotCanAutoPlay=!
1),d=this.videoSlot=a.videoSlot,this.slot=a.slot;var c=function(t,n){void
0===t&&(t=s.videoSlot),void 0===n&&(n=!1);var r=(s.options.moduleAPI||
{}).saveVideoSlotParams;r&&r(t),Object(cr.b)(t,
{width:e+"px",height:i+"px"}),t.src=s.options.mp4media.src,Object(cr.b)(t,
{display:n?"hidden":""}),t.load()};return new Promise(function(e,i){Object(cr.o)
(a.videoSlot,"video")&&(d=a.videoSlot),d=s._createVideoSlot(d),c(d,!0);var
n=Object(cr.p)(d);if(n){var r=s._addDOMEventListener(d,"error",function(t){var
e=ui(t),n=e.code,r=e.message,o=Error(r);o.code=n,i(o)}),o=function(){return
n.then(function(){d.pause(),s.startedVideotWithoutSound=d.muted;var
i=s.getAdVolume();t.prototype.setAdVolume.call(s,i,{forceTrigger:!
0}),r&&s._removeDOMEventListener(d,"error",r),r=null,s._addDOMEventListener(d,"erro
r",function(t){var
e=ui(t),i=e.code,n=e.message;this.trigger("AdError",n,i)}.bind(s)),s.playerSuccessf
ullyStartedResolve(d),e(s)})};o().catch(function(t)
{s.startedVideotWithoutSound=null,s.startVideoWithSoundFailed=!0;var e=Gs+"
initAd("+s+") failed video autoplay with videoSlot.muted="+d.muted+"
videoSlot.volume="+d.volume;!d.muted||d.volume?
(s.adVolume=0,s.videoSlotCanAutoPlay=!1,d.muted=!0,d.volume=0,n=Object(cr.p)
(d),o().then(function(){s.startedVideotWithoutSound=!0}).catch(function(t)
{i(Object(dr.e)(t,Gs+" initAd("+s+") failed video autoplay
err="+t,nr.a.FAIL_MEDIA_START))})):i(Object(dr.e)
(t,e,nr.a.FAIL_MEDIA_DISPLAY))})}else if(void 0!==n)i();else if(d.paused){var
l=Error("failed video autoplay");l.code=nr.a.FAIL_MEDIA_START,i(l)}else
e(s)})},i._createVideoSlot=function(t){if(void 0===t&&(t=null),!this.options)return
null;var e=this.slot,i=this.options,n=i.module,r=i.startTime;if(!t){var o=new
ls(n);(t=o&&o.getControlNode()).muted=!1===this.videoSlotCanAutoPlay||!
this.adVolume,t.currentTime=r,t.volume=t.muted?0:this.adVolume,t.playsInline=!
0,Object(cr.b)(t,{width:"100%",display:"none"})}return
this._addDOMEventListener(t,"loadedmetadata",function(t){var
e=t.target,i=e.videoWidth,n=e.videoHeight,r=e.duration;this.adWidth&&this.adHeight|
|
(this.adWidth=i,this.adHeight=n),this.adDuration=r,this.trigger("AdLoaded")}.bind(t
his)),this._addDOMEventListener(t,"loadeddata",function(t){var
e=t.target;this.hasAudio=Object(dr.o)
(e),this.trigger("AdLoadedVideoData")}.bind(this)),this._addDOMEventListener(t,"dur
ationchange",function(t){var e=t.target.duration;isNaN(e)||
(this.adDuration=e,this.trigger("AdDurationChange"))}.bind(this)),this._addDOMEvent
Listener(t,"play",ci.bind(this)),this._addDOMEventListener(t,"volumechange",functio
n(t){var
e=t.target;this.adVolume=e.volume,this.trigger("AdVolumeChange")}.bind(this)),this.
_addDOMEventListener(e||t,"click",function(t)
{t.preventDefault(),this.trigger("AdClickThru","",0,!
0)}.bind(this)),this.videoSlot=t,t},i.resizeAd=function(e,i,n){var
r=this.videoSlot,o=this.useExistsVideoSlot,a=this.options.moduleAPI;if(o){var
s=(a||{}).saveVideoSlotParams;s&&s(r),Object(cr.b)(r,
{width:e+"px",height:i+"px"})}else{var
d,l=this.videoSlot,c=this.environmentVars,u=this.options.mp4media,h=u.scalable,p=c|
|{},f=p.forceAspectRatio,g=p.slot,v=this.getAdAspectRatio(),b=f||
u.maintainAspectRatio;if(v&&h&&g){var m,y=u.width>u.height,O=e>i;if(null===b){var
A=u.width/u.height,w=e/i;b=100-100*(w<A?w/A:A/w)>10}!
0===b&&(m=e/i<u.width/u.height),!1===b&&(m=e/i>u.width/u.height),y!=O&&(m=!0),O&&!
y&&(m=!1),d=m?{width:e,height:e*v}:{height:i,width:i/v}}else
d={width:u.width,height:u.height};Object(dr.c)(l,d)}return
t.prototype.resizeAd.call(this,e,i,n)},i.activateMuteChangingEnable=function(){var
t=this.videoSlot;t&&(t.wasClicked=!0)},i.startAd=function(){var
e=this;this.playerSuccessfullyStartedPromise.then(function(){var
i=e.videoSlot,n=(e.options||{}).startTime;(4===i.readyState?hi.call(e,i):new
Promise(function(t){i.addEventListener("canplaythrough",function n()
{i.removeEventListener("canplaythrough",n),t(hi.call(e,i))})})).then(function()
{i.currentTime=n,Object(cr.b)(i,
{display:""}),e._addDOMEventListener(i,"timeupdate",ci.bind(e)),t.prototype.startAd
.call(e)})})},i.stopAd=function(){return
li.call(this),t.prototype.stopAd.call(this)},i.pauseAd=function(){return
li.call(this),t.prototype.pauseAd.call(this)},i.resumeAd=function(){var
e=this.videoSlot;return e&&Object(cr.p)
(e),t.prototype.resumeAd.call(this)},i.expandAd=function()
{this.trigger("AdError","Not
supported",nr.a.GENERAL_VPAID_ERROR)},i.collapseAd=function()
{this.trigger("AdError","Not
supported",nr.a.GENERAL_VPAID_ERROR)},i.skipAd=function(){return
li.call(this),t.prototype.skipAd.call(this)},i.setAdVolume=function(e,i){var
n=this.videoSlot;return n&&(n.volume=e,n.muted&&e?n.paused||0!==n.currentTime?!
1===this.startedVideotWithoutSound?n.muted=!1:(n.paused||
0<n.currentTime)&&(n.muted=!1):n.muted=!1:!n.muted&&!e&&(n.muted=!
0)),t.prototype.setAdVolume.call(this,e,i)},i.getAdVolume=function(){var
e=this.videoSlot;return e&&(this.adVolume=ur.g||ur.i?e.muted?
0:1:e.volume),t.prototype.getAdVolume.call(this)},i.getAdRemainingTime=function()
{var t=this.videoSlot;return t?t.duration-
t.currentTime:0},i.getAdAspectRatio=function(){var
t=this.adWidth,e=this.adHeight,i=this.options,n=i&&i.mp4media||
{},r=n.width,o=n.height;return r&&o?o/r:t&&e?e/t:9/16},i._destroy=function(){var
e=this._createdVideoSlot;e&&Object(cr.o)(e)&&Object(cr.s)
(e),t.prototype._destroy.call(this)},e.create=function(t,i){var
n=i&&i.getAPI&&i.getAPI()||{},r=n.logger||
or.b,o=n.getControlUnionData,a=o&&o("vnCache")||{strict:!1};return new
Promise(function(n,o){if(ur.b||ur.a&&!a.strict){var
s=i.format&&i.format._getModuleDimensions&&i.format._getModuleDimensions().viewport
Width||0,d=t.duration,l=[].concat(t.MediaFiles["video/mp4"]).filter(function(t)
{return t});if(ur.g||ur.i||
(l=l.concat(t.MediaFiles["video/webm"]).filter(function(t){return t})),!l||!
l.length)return void o();(function(t,e,i,n){if(!ur.c||e===1/0||ur.c&&85>ur.d)return
Promise.resolve(t);var r=t.map(function(t){return new Promise(function(r){var
o=t.bitrate,a=t.src;if(a&&i&&i(a))r(null);else if(o&&e){var
s=e*parseInt(o,10)/8;r(s<Qs?t:null)}else a?(n&&n.trace(Gs+" filterByWeights()
request size of file "+a),Object(po.f)(a,
{timeout:300,method:"HEAD",withCredentials:!1}).then(function(e){var i=(e||
{}).currentTarget;400<=(i||{}).status&&r(t);var
o=i&&i.getResponseHeader&&parseFloat(i.getResponseHeader("content-length")||
0)/1e3;n&&n.log(Gs+" filterByWeights() got size("+o+" KBytes) of file "+a),r(o<Qs?
t:null)}).catch(function(){r(t)})):r(null)})});return
Promise.all(r).then(function(t){return t.filter(function(t){return t})})})
(l,d,i.isMediaUrlBlocked.bind(i),r).then(function(a){var
d=a&&a.length&&a.reduce(function(t,e){return Yn(t.width-s)<=Yn(e.width-s)?
t:e});if(d){r.log(Gs+".create() Creative for playing: "+d.src,1,"color:green; font-
weight:bold;");var l=d.width;l&&s&&!1===d.scalable&&.1<Yn(s-l)/s&&(d.scalable=!
0);var c=t.rawDuration;i.setSelectedCreative(d.src,c);var u=new
e({module:i,mp4media:d,moduleAPI:i.getAPI()});n(u)}else o()})}else o()})},e}
(ir.a),Qs=4e3,Js=[Bs,Ys,fs,qs],Zs=function(){function t(t,e,i,n){var r=this;void
0===n&&(n=!1),this._canGetBackToCanvasVpaid=!
1,this.dataXml=t,this.module=i,this.logger=i&&i.getAPI&&i.getAPI().logger||or.b;var
o=function(t){for(var e,i=1;i<arguments.length;i++)e=null==arguments[i]?
{}:arguments[i],i%2?pi(Object(e),!0).forEach(function(i)
{fi(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyD
escriptors(e)):pi(Object(e)).forEach(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},t,
{},{adParameters:e}),a=o.isEmpty;if(this.isEmpty=a,a){var s=Error("No Ads VAST
response after one or more Wrappers.");s.isEmpty=!
0,s.code=nr.a.NO_ADS_RESPONSE,this.instance=Promise.reject(s)}else{if(n)return
void(this.instance=Bs.create(o,i,!0));this.instance=Js.reduce(function(t,e){return
t.catch(function(){var t=e.create(o,i);return t&&e!
==Bs&&(r._canGetBackToCanvasVpaid=!0),t})},Promise.reject())}}var
e=t.prototype;return e.getVpaidPromise=function(){var t=this;return this.isEmpty?
this.instance:new Promise(function(e,i){var
n=(t.module.getControlUnionData("vnBrowserCache")||
{}).enabled;t.instance.then(function(t){n&&t&&t instanceof fs&&i()||
e(t)}).catch(function(e){e&&e.message&&t.logger.warn("::VpaidCreator
getVpaidPromise() error: "+e.message);var n=new Error("Could not find supported
MediaFile.");n.code=nr.a.MEDIA_FILE_NOT_FOUND,i(n)})})},e.canBackToReserveVpaid=fun
ction(){return this._canGetBackToCanvasVpaid},t}
(),Ks=["video/mp4","video/webm","video/mpeg","audio/mp3","application/x-shockwave-
flash","application/javascript","application/x-
javascript","external/javascript","image/png","image/jpg","image/gif","text/html"],
$s="vnTrackingParams",td="vnShowViqeo",ed="vnHeavyAdIntervention",id="spinner",nd=5
,rd=function(t){function e(e){var i;(i=t.call(this,id,e)||
this).videoProgressId=null,i.oldCurrentTime=null,i.attemptsCounter=0,i.attemptLimit
=e.getControlUnionData(id,"attemptLimit")||nd;var
n=e.getControlNode("wrapper"),r=i.node=Object(cr.e)(n,50);return Object(cr.b)(r,
{zIndex:3,display:"none",width:"50px",height:"50px"}),e.setControlData(id,
{node:r}),i._addVPAIDEventListener(e,"AdVideoStart",Ii.bind(Ei(i),e)),i._addVPAIDEv
entListener(e,"AdPlaying",Ii.bind(Ei(i),e)),i._addVPAIDEventListener(e,"AdPaused",T
i.bind(Ei(i),e)),i._addVPAIDEventListener(e,"AdStopped",Ti.bind(Ei(i),e)),i._addVPA
IDEventListener(e,"AdVideoComplete",Ti.bind(Ei(i),e)),i._addVPAIDEventListener(e,"A
dSkipped",Ti.bind(Ei(i),e)),i._addVPAIDEventListener(e,"AdDestroyed",Ti.bind(Ei(i),
e)),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.getName=function(){return id},e}(ss.a),od="title",ad=function(t){function
e(e){var i=t.call(this,od,e)||
this,n=e.getControlNode("wrapper"),r=Math.random().toString(36).substr(2,10),o=Yo.c
.call(e,"vnCreative:debug")||{},a=o.urls,s=o.uniqueId,d=(a||[])
[0],l=d&&d.split&&d.split("?")
[0],c=e.getControlUnionData(od,"css"),u=e.getControlUnionData(od,"text"),h=i.node=O
bject(cr.a)(n,"div",function(t){for(var e,i=1;i<arguments.length;i+
+)e=null==arguments[i]?{}:arguments[i],i%2?xi(Object(e),!0).forEach(function(i)
{Ni(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):xi(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",zIndex:3,top:0,left:0,padding:"5px",cursor:"default",color:"w
hite",lineHeight:1},c,{display:"inline-block"}),u||
to(ki()),l&&po.b.bind(function(t){if(void 0===t)throw new ReferenceError("this
hasn't been initialised - super() hasn't been called");return t}
(i),l+"/"+r));return d&&i._addDOMEventListener(h,"click",function()
{Yo.e.call(e,r,d,s)}),e.setControlData(od,{node:h}),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.getName=function(){return od},e}(ss.a),sd="wrapper",dd=function(t){function
e(e){var i,n=t.call(this,sd,e)||
this,r=e.getControlNode("iframe"),o=e.getControlUnionData(sd,"css")||
{},a=e.getControlNode(sd);a||(a=n.node=Object(cr.a)((null===r||void 0===r||
null===(i=r.contentDocument)||void 0===i?void 0:i.body)||r,"div",function(t)
{for(var e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
Mi(Object(e),!0).forEach(function(i)
{Vi(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Mi(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"relative",margin:"auto",width:"100%",height:"100%",boxSizing:"border-
box",zIndex:0,color:"white",lineHeight:1.5,userSelect:"none",fontFamily:"Arial,
Helvetica, sans-serif",fontSize:"14px"},o)),e.setControlData(sd,
{node:a}),setTimeout(function(){return e.trigger("slotSizeChanged")}));return
a.classList&&a.classList.add("__vnm_"+e.mainModuleId+"_"),n}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.showMarginTop=function(){var
t=this.node,e=this.module,i=(t&&getComputedStyle(t)||
{}).paddingTop;parseFloat(i)<25&&(Object(cr.b)(t,{paddingTop:Object(dr.s)
(25)}),setTimeout(function(){return
e.trigger("slotSizeChanged")},1))},i.hideTopSpace=function(){var
t=this.node,e=this.module,i=(t&&getComputedStyle(t)||
{}).paddingTop;25===parseFloat(i)&&(Object(cr.b)(t,
{paddingTop:0}),setTimeout(function(){return
e.trigger("slotSizeChanged")},1))},e.refreshControlData=function(t,e)
{t.setControlData(sd,{node:e})},e}(ss.a),ld="container",cd=function(t){function
e(e){var i=t.call(this,ld,e)||
this,n=e.getControlNode("wrapper"),r=i.node=Object(cr.a)(n,"div",function(t)
{for(var e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
Ri(Object(e),!0).forEach(function(i)
{Li(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ri(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"relative",width:"100%",height:"100%",textAlign:"center",background:"bla
ck",overflow:"hidden",zIndex:1},e.getControlUnionData(ld,"css"),
{},e.getControlUnionData("background","css"),
{},e.getControlUnionData("containerBackground","css")));return e.setControlData(ld,
{node:r}),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e}(ss.a),ud="containerShadow",hd=function(t){function e(e){var
i=t.call(this,ud,e)||this,n=e.getControlNode("container"),r=i.node=Object(cr.a)
(n,"div",function(t){for(var e,i=1;i<arguments.length;i++)e=null==arguments[i]?
{}:arguments[i],i%2?Fi(Object(e),!0).forEach(function(i)
{Wi(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Fi(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"#8d8b8b",opaci
ty:0,zIndex:-1},e.getControlUnionData(ud,"css")));return e.setControlData(ud,
{node:r}),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e}(ss.a),pd="containerIframe",fd=function(t){function e(e){var
i=t.call(this,pd,e)||this,n=new
dr.a;i.createdPromise=n.promise,i.createdResolve=n.resolve;var
r=e.getControlNode("container");return i.loaded=!1,Ae(r,{shouldCreateIframe:!
1,logger:i.logger}).then(function(t){(function(t){var i,n;this.loaded=!0;var
r=(null===t||void 0===t||null===(i=t.contentWindow)||void 0===i||
null===(n=i.document)||void 0===n?void 0:n.body)||t;Object(cr.b)(r,
{minHeight:"100%",padding:0,margin:0,textAlign:"center",overflow:"hidden",fontFamil
y:"Arial, Helvetica, sans-serif",fontSize:"14px"}),Object(cr.a)(r,"div",
{display:"inline-block",height:"100%",verticalAlign:"middle"}),this.node=t;var
o={node:t},a=(e&&e.options||
{}).iframeRemoveDelay;t&&"IFRAME"===t.tagName&&a&&(o.removeDelay=a),e.setControlDat
a(pd,o),this.createdResolve(t)}).call(function(t){if(void 0===t)throw new
ReferenceError("this hasn't been initialised - super() hasn't been called");return
t}(i),t)}),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.prototype.isReady=function(){return this.createdPromise},e}
(ss.a),gd="vpaidSlot",vd=function(t){function e(e){var i=t.call(this,gd,e)||
this,n=e.getControlNode("containerIframe"),r=n&&n.contentWindow&&n.contentWindow.do
cument&&n.contentWindow.document.body||n,o={outline:"1px #ff0
dotted"},a=Object(kr.b)("show.containers"),s=Object(kr.b)
("show.containers.vpaid_slot"),d=s&&Bi(s,o)||a&&Bi(a,o)||{},l=function(t){for(var
e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
Hi(Object(e),!0).forEach(function(i)
{zi(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Hi(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",top:0,left:0,width:"100%",height:"100%",textAlign:"justify",z
Index:2},e.getControlUnionData(gd,"css"),{},d),c=i.node=Object(cr.a)
(r,"div",l);return e.setControlData(gd,{node:c}),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.refreshControlData=function(t,e){t.setControlData(gd,{node:e})},e}
(ss.a),bd=function(t){function e(e){var i;return void 0===e&&(e={}),
(i=t.call(this,e)||this).moduleAPI=e.moduleAPI,i.starting=!
1,i.adRemainingTimeChecker=e.adRemainingTimeChecker,i.getTimeBeforeSkip=e.getTimeBe
foreSkip,i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.start=function(t){var e=this;if(void
0===t&&(t=7),!this.starting){this.starting=!0;var
i=this.moduleAPI,n=this.getTimeBeforeSkip,r=i||
{},o=r.getAdDuration,a=r.addVPAIDEventListener,s=r.removeVPAIDEventListener,d=o&&o(
);n&&n();if(d)this.waitAdRemainingTimeAndCallInvokeRemainingTimeChecker(0);else{var
l="manualCheck",c=a("AdDurationChange",function()
{s("AdDurationChange",c),e._removeTimeout(l),setTimeout(e.waitAdRemainingTimeAndCal
lInvokeRemainingTimeChecker.bind(e,0),1)},this);0<--
t&&this._addTimeout(l,function(){e.starting=!
1,e.start.call(e,t)},500)}}},i.waitAdRemainingTimeAndCallInvokeRemainingTimeChecker
=function(t){if(void
0===t&&(t=0),!(10<t)){var e=this.moduleAPI||
{},i=e.getAdRemainingTime,n=e.getAdDuration,r=n&&n();return i&&i()&&r?void
this.invokeRemainingTimeChecker():void
setTimeout(this.waitAdRemainingTimeAndCallInvokeRemainingTimeChecker.bind(this,t+1)
,150)}},i.invokeRemainingTimeChecker=function(){var
t=this;this._addTimeout("RemainingTimeChange",function()
{t.adRemainingTimeChecker.call(t)&&t.invokeRemainingTimeChecker()},500)},e}
(rr.a),md="skipAdCountdown",yd="Module::Control["+md+"]:ReservedSkipAd",Od=10,Ad=fu
nction(t){function e(e){var i;(i=t.call(this,md,e)||this).moduleAPI=e.getAPI(),void
0===i.invisible&&(i.invisible=!1);var
n=Ji(i),r=n.invisible,o=n.moduleAPI,a=o.setControlData,s=o.getControlUnionData,d=o.
getControlNode,l=o.addVPAIDEventListener,c=i.timeBeforeSkip=s(md,"timeBeforeSkip"),
u=s(md,"totalTimeCountdown");if(i.totalTimeCountdown="show"===u||Object(dr.t)(u),!
c&&!i.totalTimeCountdown)return Ji(i);if(i.isSmallSizeModule=ur.h,i.starting=!1,!r)
{var h=d("wrapper"),p=s(md,"css"),f=i.node=Object(cr.a)(h,"div",function(t){for(var
e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
Yi(Object(e),!0).forEach(function(i)
{Qi(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Yi(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",zIndex:1,top:"10px",right:Object(dr.s)(Od),padding:"5px
10px",lineHeight:"15px",color:"white",backgroundColor:"rgba(0, 0, 0,
0.289)",borderRadius:"3px",cursor:"default",pointerEvents:"none"},p,
{display:"none"}));a(md,{node:f})}var g=Ji(i),v=g.logger,b=g.moduleAPI,m=b||
{},y=m.getAdDuration,O=m.getAdRemainingTime;i.timeBeforeSkipChecker=new
yo({getTimeBeforeSkip:function(){return c},shouldSetAdSkippableState:!
1,moduleAPI:b,logger:v}),i._addDestroyableObject(i.timeBeforeSkipChecker);var
A=i.remainTimeChecker=new bd({getTimeBeforeSkip:function(){return
c},moduleAPI:b,logger:v,adRemainingTimeChecker:Zi.bind(Ji(i))});return
i._addDestroyableObject(A),l("AdStarted",function(){return
A.start()},Ji(i)),l("AdVideoStart",function(){return
A.start()},Ji(i)),l("AdVideoComplete",function()
{Ki.call(this)}.bind(Ji(i)),Ji(i)),l("AdSkippableStateChange",function()
{y&&O&&y()&&O()&&setTimeout(Zi.bind(Ji(i)),1)},Ji(i)),l("vnFormatStateChanged",func
tion(t){y&&O&&y()&&O()&&(i.isSmallSizeModule=ur.h||t&&!
0===t.isFloating,setTimeout(Zi.bind(Ji(i)),1))},Ji(i)),l("AdSkipAdPositionChanged",
function(t){var e=t.offsetWidth;if(!i.invisible){var n=d(md);Object(cr.b)(n,
{right:Object(dr.s)(e||Od)})}}),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.getName=function(){return md},e}
(ss.a),wd=i(31),_d=i.n(wd),Pd="skipAd",Sd=function(t){function e(e){var i;
(i=t.call(this,Pd,e)||this).moduleAPI=e.getAPI();var
n=en(i),r=n.invisible,o=n.logger,a=n.moduleAPI,s=a||
{},d=s.setControlData,l=s.getControlUnionData,c=s.getControlNode,u=s.addVPAIDEventL
istener,h=i.timeBeforeSkip=l(Pd,"timeBeforeSkip");if(!r&&h<1/0){var
p=c("wrapper"),f=l(Pd,"css")||{},g=i.node=Object(cr.a)(p,"div",function(t){for(var
e,i=1;i<arguments.length;i++)e=null==arguments[i]?{}:arguments[i],i%2?
$i(Object(e),!0).forEach(function(i)
{tn(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):
$i(Object(e)).forEach(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",zIndex:5,top:0,right:0,padding:"10px",cursor:"pointer",opacit
y:1},f,{display:"none"}),_d.a,function(){e.skipAd()});if(!
ur.h)l(Pd,"hover")&&(Object(cr.b)(g,
{opacity:0}),i._addDOMEventListener(p,"mouseenter",function(){return Object(cr.b)
(g,{opacity:1})}),i._addDOMEventListener(p,"mouseleave",function(){return
Object(cr.b)(g,{opacity:0})}));d(Pd,{node:g})}return
u("AdSkippableStateChange",nn.bind(en(i))),i.timeBeforeSkipChecker=new
yo({getTimeBeforeSkip:function(){return
h},moduleAPI:a,logger:o}),i._addDestroyableObject(i.timeBeforeSkipChecker),nn.call(
en(i)),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.getName=function(){return Pd},e}
(ss.a),jd=i(32),Ed=i(35),Cd=i.n(Ed),Dd=i(36),Id=i.n(Dd),Td="volume",kd=function(t)
{return t?Cd.a:Id.a},xd=function(t){function e(e){var i=t.call(this,Td,e)||
this,n=e.options,r=n.disableHoverAudio,o=n.disableSmoothVolumeChange,a=e.getAdVolum
e(),s=e.getControlNode("wrapper"),d=function(t){if(!0!==t.handled)
{t.preventDefault(),t.stopPropagation(),t.handled=!0;var
i=e.getAdVolume();e.setAdVolume(i?0:1,{smoothUpdate:!0})}},l=i.node=Object(cr.a)
(s,"div",on({position:"absolute",zIndex:1,bottom:0,right:0,width:"40px",height:"40p
x",padding:"10px",cursor:"pointer",stroke:"white",display:"none",boxSizing:"content
-
box"},e.getControlUnionData(Td,"css")),kd(a),d);i._addDOMEventListener(l,"touchend"
,d),i._updateVolumeTimeoutId=null;var c=sn(i);return e.setControlData(Td,
{node:l}),i._addVPAIDEventListener(e,"AdExpandedChange",function(){var
t=this.getAdExpanded(),e=this.getAdVolume();this.setAdVolume(+t?e:0,
{step:1})}.bind(e)),i._addVPAIDEventListener(e,"AdVolumeChange",function()
{dn.call(this)}.bind(e)),i._addVPAIDEventListener(e,"AdVideoComplete",function()
{this.cancelVolumeUpdate()}.bind(sn(i))),i._addVPAIDEventListener(e,"AdDestroyed",f
unction()
{this.cancelVolumeUpdate()}.bind(sn(i))),i._addVPAIDEventListener(e,"AdAudioDisable
d",function(){var t=this.getControlNode(Td);Object(cr.b)
(t,cr.m)}.bind(e)),i._addVPAIDEventListener(e,"AdAudioEnabled",function(){var
t=this.getControlNode(Td);Object(cr.b)(t,
{display:"block",visibility:"visible"})}.bind(e)),i._addVPAIDEventListener(e,"AdLoa
dedVideoData",ln.bind(e)),i._addVPAIDEventListener(e,"AdVideoStart",ln.bind(e)),i.o
riginalSetAdVolume=i._patchMethod(e,"setAdVolume",function(t,e){void
0===e&&(e={});var i=on({},{step:.05,invoker:null,smoothUpdate:null},
{},e),n=i.step,r=i.invoker,a=i.smoothUpdate,s=this.getAdVolume(),d=!r||
r===c;if((this.useExistsVideoSlot||d||this.canChangeVolume()||!(0<t)&&!
(0<s))&&(dn.call(this),s!==t)){if(o||d&&!a)return c.cancelVolumeUpdate(),void
c.originalSetAdVolume(t,{invoker:this});(function t(e,i,n)
{or.b.none("Module::Control["+Td+"].updateVolume("+e.toFixed(2)+",
"+i.toFixed(2)+", "+n+")"),c.cancelVolumeUpdate();var r=Object(dr.d)(e+n,0,1);
(0>n&&r<i||0<n&&r>i)&&(r=i),c.originalSetAdVolume(r,{invoker:this}),r===i?
dn.call(this):this._updateVolumeTimeoutId=setTimeout(t.bind(this,r,i,n),16)}).call(
this,s,t,n*(s>t?-1:1))}}),ur.h||r||ur.i||function(t){var e=this;if(!
this.mouseEventsAlreadySet){var
i=t.getControlNode("container");this._addDOMEventListener(i,"mouseenter",function()
{t.setAdVolume(1,{invoker:e})}),this._addDOMEventListener(i,"mouseleave",function()
{t.setAdVolume(0,{invoker:e})}),this.mouseEventsAlreadySet=!
0}}.call(sn(i),e),e.setAdVolume(a,
{step:1,invoker:sn(i)}),i.canChangeVolume=e.canChangeVolume.bind(e),i}!
function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.cancelVolumeUpdate=function()
{clearTimeout(this._updateVolumeTimeoutId),this._updateVolumeTimeoutId=null},i.upda
teInProgress=function(){return null!
=this._updateVolumeTimeoutId},e.getName=function(){return Td},e}
(ss.a),Nd=i(37),Md=i.n(Nd),Vd="play",Rd=function(t){function e(e){var
i=t.call(this,Vd,e)||this,n=function(t){!0===t.handled||
(t.stopPropagation(),t.preventDefault(),t.handled=!
0,e.resumeAd())},r=i.node=Object(cr.a)
(e.getControlNode("wrapper"),"div",function(t){for(var e,i=1;i<arguments.length;i+
+)e=null==arguments[i]?{}:arguments[i],i%2?cn(Object(e),!0).forEach(function(i)
{un(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):cn(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",zIndex:3,top:0,right:0,bottom:0,left:0,width:"inherit",backgr
ound:"rgba(0, 0, 0, .7)",cursor:"pointer"},e.getControlUnionData(Vd,"css"),
{display:"none"}),Md.a,n);return
i._addDOMEventListener(r,"touchend",n),Object(cr.b)(r.firstChild,
{position:"absolute",top:"50%",left:"50%",margin:"-32px 0 0
-32px"}),e.setControlData(Vd,
{node:r}),i._addVPAIDEventListener(e,"AdPaused",function(){var
t=this.getControlNode(Vd);Object(cr.b)(t,{display:""})}.bind(e)),
["AdVideoStart","AdStarted","AdResumed","AdPlaying"].forEach(function(t)
{i._addVPAIDEventListener(e,t,function(){var t=this.getControlNode(Vd);Object(cr.b)
(t,{display:"none"})}.bind(e))}),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.getName=function(){return Vd},e}
(ss.a),Ld="progress",Fd="progressBar",Wd=function(t){function e(e){var
i=t.call(this,Ld,e)||this,n=e.getControlNode("wrapper"),r=i.node=Object(cr.a)
(n,"div",pn({position:"absolute",zIndex:2,bottom:0,left:0,width:"100%",height:"2px"
,background:"rgba(0, 0, 0, .5)"},e.getControlUnionData(Ld,"css"))),o=Object(cr.a)
(r,"div",pn({position:"absolute",width:"0%",height:"2px",background:"#aab445"},e.ge
tControlUnionData(Fd,"css")));return e.setControlData(Ld,
{node:r}),e.setControlData(Fd,
{node:o}),i._addVPAIDEventListener(e,"AdVideoStart",function(){var
t=this.getControlNode(Fd);t&&Object(cr.b)(t,
{width:"0%"})}.bind(e)),i._addVPAIDEventListener(e,"AdVideoComplete",function(){var
t=this.getControlNode(Fd);t&&Object(cr.b)(t,
{width:"100%"})}.bind(e)),i._addVPAIDEventListener(e,"AdRemainingTimeChange",functi
on(){var t=this.getControlNode(Fd);if(t){var
e=this.getAdDuration(),i=this.getAdRemainingTime();Object(cr.b)(t,{width:100*(1-
i/e)+"%"})}}.bind(e)),i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.hide=function(){var
t=this.node;t&&(this.isHidden=!0,Object(cr.b)(t,
{display:"none"}))},i.restore=function(){var
t=this.node,e=this.isHidden;t&&e&&(this.isHidden=!1,Object(cr.b)(t,
{display:""}))},e.getName=function(){return
Ld},e}(ss.a),Hd="advLogo",zd=10,Bd=10,Ud=.3,qd=function(t){function e(e){var
i=t.call(this,Hd,e,!0)||
this,n=e.getControlNode("wrapper"),r=e.getControlUnionData(Hd,"css")||
{};r.width&&r.height||(r.width="160px",r.height="40px");var
o=parseInt(r.width,10),a=parseInt(r.height,10),s=i.node=Object(cr.a)
(n,"div",function(t){for(var e,i=1;i<arguments.length;i++)e=null==arguments[i]?
{}:arguments[i],i%2?gn(Object(e),!0).forEach(function(i)
{vn(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):gn(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",zIndex:4,left:0,marginTop:"10px",backgroundRepeat:"no-
repeat",cursor:"pointer",visibility:"hidden"},r));ur.h||
(i._addDOMEventListener(s,"mouseenter",function(){return Object(cr.b)(s,
{opacity:.8})}),i._addDOMEventListener(s,"mouseleave",function(){return
Object(cr.b)(s,{opacity:1})}));var
d=e.getControlUnionData(Hd,"url");i._addDOMEventListener(s,"click",function()
{e.vpaid?e.vpaid.trigger("AdClickThru",d||null,null,!
0):po.b.call(e,d)}),e.setControlData(Hd,{node:s});var
l=getComputedStyle(n).marginBottom,c=Jn(s.offsetHeight+zd,parseInt(l,10));return
Object(cr.b)(n,
{marginBottom:c+"px"}),i._addVPAIDEventListener(e,"AdSizeChange",bn.bind(e,o,a)),i.
_addVPAIDEventListener(e,"AdStarted",function(){var
t=this.getControlNode(Hd);Object(cr.b)(t,{visibility:"visible"})}.bind(e)),i}return
function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.getName=function(){return Hd},e}
(ss.a),Gd="callButton",Xd="#f8f8f8",Yd=.5,Qd=10,Jd=33,Zd=.3,Kd=.1,$d=10,tl=640,el=9
,il=10,nl=5,rl=function(t){function e(e){var i=t.call(this,Gd,e,!0)||
this,n=e.getControlNode("wrapper"),r=e.getControlUnionData(Gd,"css")||
{},o=i.node=Object(cr.a)(n,"div",function(t){for(var e,i=1;i<arguments.length;i+
+)e=null==arguments[i]?{}:arguments[i],i%2?mn(Object(e),!0).forEach(function(i)
{yn(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):mn(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",zIndex:4,right:0,top:"100%",height:Jd+"px",padding:nl+"px",ma
rginTop:Qd+"px",backgroundColor:Xd,border:"1px solid rgba(0, 0, 0,
"+Yd+")",borderRadius:"3px",cursor:"pointer",visibility:"hidden",alignItems:"center
",justifyContent:"center"},r,
{display:"flex"}),ya.a),a=o.querySelector("svg");if(a&&Object(cr.b)(a,
{height:"100%"}),Object(cr.a)(o,"span",{padding:il+"px "+il+"px "+il+"px
0",color:"#000",lineHeight:"15px",textAlign:"center"},e.getControlUnionData(Gd,"tex
t")||"Подробнее на сайте"),e.setControlData(Gd,{node:o}),!ur.h){var
s=e.getControlUnionData(Gd,"hoverBackgroundColor");i._addDOMEventListener(o,"mousee
nter",function(){return Object(cr.b)(o,{backgroundColor:s||"#dedede",border:"1px
solid rgba(0, 0, 0, 0.75)"})}),i._addDOMEventListener(o,"mouseleave",function()
{return Object(cr.b)(o,{backgroundColor:r.backgroundColor||Xd,border:"1px solid
rgba(0, 0, 0, "+Yd+")"})})}var
d=e.getControlUnionData(Gd,"url");i._addDOMEventListener(o,"click",function()
{e.vpaid?e.vpaid.trigger("AdClickThru",d||null,null,!0):po.b.call(e,d)});var
l=getComputedStyle(n).marginBottom,c=Jn(o.offsetHeight+2*Qd,parseInt(l,10));return
Object(cr.b)(n,
{marginBottom:c+"px"}),i._addVPAIDEventListener(e,"AdSizeChange",On.bind(e)),i._add
VPAIDEventListener(e,"AdStarted",function(){var
t=this.getControlNode(Gd);Object(cr.b)(t,{visibility:"visible"})}.bind(e)),i}return
function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.getName=function(){return Gd},e}(ss.a),ol="moreInfo",al="#fff",sl="rgba(0,
0, 0, 0.7)",dl="rgba(0, 0, 0, 0.2)",ll="rgba(0, 0, 0,
0.5)",cl=.3,ul=.22,hl="bottom",pl=function(t){function e(e){var
i=t.call(this,ol,e,!0)||
this,n=e.getControlNode("wrapper"),r=e.getControlUnionData(ol,"css")||
{},o=i.node=Object(cr.a)(n,"div",function(t){for(var e,i=1;i<arguments.length;i+
+)e=null==arguments[i]?{}:arguments[i],i%2?wn(Object(e),!0).forEach(function(i)
{_n(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):wn(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",zIndex:4,padding:"10px",borderRadius:"2px",transition:"0.3s",
color:r.color||al,border:"1px solid "+(r.color||al),textShadow:"1px 1px 19px
"+sl,backgroundColor:r.backgroundColor||
dl,cursor:"pointer",visibility:"hidden",alignItems:"center",justifyContent:"center"
},r,{display:"flex"}));Object(cr.a)(o,"span",
{lineHeight:"15px",textAlign:"center"},e.getControlUnionData(ol,"text")||
to(An())),e.setControlData(ol,{node:o});var
a=e.getControlUnionData(ol,"hoverBackgroundColor"),s=e.getControlUnionData(ol,"hove
rColor");ur.h?Object(cr.b)(o,{backgroundColor:a||ll,color:s||al,borderColor:s||
al,textShadow:"1px 1px 19px "+sl}):
(i._addDOMEventListener(o,"mouseenter",function(){return Object(cr.b)(o,
{backgroundColor:a||ll,color:s||al,borderColor:r.color||al,textShadow:"1px 1px 19px
rgba(0, 0, 0, 0.85)"})}),i._addDOMEventListener(o,"mouseleave",function(){return
Object(cr.b)(o,{backgroundColor:r.backgroundColor||dl,color:r.color||
al,borderColor:r.color||al,textShadow:"1px 1px 19px "+sl})}));var
d=e._getLastDataXml(),l=Object(pr.e)(d,"ClickThrough");return
l&&i._addDOMEventListener(o,"click",function(){e.vpaid?
e.vpaid.trigger("AdClickThru",l||null,null,!
0):po.b.call(e,l)}),Pn.call(e),i._addVPAIDEventListener(e,"AdSizeChange",function()
{var
t=this.getControlNode(ol),e=this.format.isFloatingMode()?"hidden":"visible",i=this.
getAdWidth()*(ur.h?cl:ul);Object(cr.b)(t,
{width:i+"px",visibility:e}),Pn.call(this)}.bind(e)),i._addVPAIDEventListener(e,"Ad
Started",function(){var t=this.getControlNode(ol);Object(cr.b)(t,
{visibility:"visible"})}.bind(e)),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.getName=function(){return ol},e}
(ss.a),fl="bottomBorder",gl=15,vl=15,bl=function(t){function e(e){var i;
(i=t.call(this,fl,e,!0)||this)._prevIsFloatingMode=null;var
n=e.getControlNode("wrapper"),r=e.getControlUnionData(fl,"css")||
{};i._displayNoneForEmbeddedMode=r&&"none"===r.display;var
o=getComputedStyle(n).marginBottom;o=parseInt(o,10);var a=i.node=Object(cr.a)
(n,"div",function(t){for(var e,i=1;i<arguments.length;i++)e=null==arguments[i]?
{}:arguments[i],i%2?jn(Object(e),!0).forEach(function(i)
{En(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):jn(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}
({position:"absolute",zIndex:4,left:0,top:"calc(100% +
"+o+"px)",height:gl+"px",width:"100%",marginBottom:vl+"px",borderTop:"1px solid
rgb(248, 248, 248)",background:"radial-gradient(ellipse farthest-side at 50% -30%,
rgba(0, 0, 0, 0.15), rgba(97, 97, 97, 0.0) 95%)"},r));return e.setControlData(fl,
{node:a}),i._addVPAIDEventListener(e,"AdSizeChange",function(t,e){var
i=t.getControlNode(fl),n=t.getControlNode("iframe"),r=t.getControlNode("wrapper"),o
=t.format.isFloatingMode();if(this._prevIsFloatingMode!==o){var
a=vo.a.call(t).outsideHeight;o?(Object(cr.b)(i,{display:"none"}),Object(cr.b)(r,
{marginBottom:Object(dr.s)(e)}),Object(cr.b)(n,{height:Object(dr.s)(a)})):!
this._displayNoneForEmbeddedMode&&(Object(cr.b)(i,{display:"block"}),Object(cr.b)
(r,{marginBottom:Object(dr.s)(e+(gl+vl))}),Object(cr.b)(n,{height:Object(dr.s)
(a)})),a!==vo.a.call(t).outsideHeight&&setTimeout(function(){return
t.trigger("slotSizeChanged")})}this._prevIsFloatingMode=o}.bind(function(t){if(void
0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been
called");return t}(i),e,o)),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.getName=function(){return fl},e}
(ss.a),ml=[dd,cd,fd,hd,vd],yl=[Ad,Sd,jd.a,xd,Rd,Wd,qd,rl,pl,bl],Ol="::Extension[con
trols]",Al={adlabel:"title",countdown:"skipAdCountdown",soundbtn:"volume",logo:"log
o"},wl={"-1":{display:"none"},0:{display:"none"},1:{display:""},TL:
{position:"absolute",top:"10px",right:"auto",bottom:"auto",left:"10px"},TR:
{position:"absolute",top:"10px",right:"10px",bottom:"auto",left:"auto"},BL:
{position:"absolute",top:"auto",right:"auto",bottom:"10px",left:"10px"},BR:
{position:"absolute",top:"auto",right:"10px",bottom:"10px",left:"auto"}},_l="::Exte
nsion[vnTargetedWords]",Pl="subtitle",Sl={srt:function(t){var e=/(\d+)\n([\d:.,]
+)\s*-->\s*([\d:.,]+)\n((?:.|\n)+)/m;return t.replace(/^[^\S\n]*(.+)
[^\S\n]*$/gm,"$1").replace(/\r/g,"\n").split("\n\n").map(function(t){var
i=e.exec(t);return i?{id:i[1],startTime:Object(pr.g)(i[2]),endTime:Object(pr.g)
(i[3]),text:i[4]}:null}).filter(Boolean)}},jl=function(t){var
e=t.type,i=t.data,n=Sl[e.toLowerCase()];if("function"!=typeof n)return null;var
r=n(i);return Array.isArray(r)?r:null},El=function(t){return function(t){return new
Promise(function(e){var i=t.querySelector("data");if(i){var n=Object(pr.e)
(i),r=i.getAttribute("type");if(!r)throw new Error("Data type is not
defined");e({type:r,data:n})}else{var o=t.querySelector("url");if(!o)throw new
Error('Neither "data" nor "url" provided');var a=Object(pr.e)
(o),s=o.getAttribute("type");if(!s)throw new Error("Url type is not
defined");Object(po.f)(a).then(function(t)
{e({type:s,data:t.target.responseText})}).catch(function(t){throw new Error("Data
request error ("+t+")")})}})}(t).then(jl)},Cl=[function(t){return new
Promise(function(e){var i=t&&t.getAPI&&t.getAPI()||{},n=(i.logger||
or.b,i.getLastParameters()),r=n&&n[Ja];if(r){var
o=r.global;i.setControlData(Ja,r,o)}e(t)})},function(t){return new
Promise(function(e){var i,n=t&&t.getAPI&&t.getAPI()||
{},r=n.getControlUnionData,o=n.getControlRawUnionData,a=n.getControlUnionDataGlobal
,s=n.setControlData,d=n.getLastParameters,l=n.updateLastParameters,c=(n.logger||
or.b,d(
)),u=c&&c[ts];if(u){var h=u.important,p=u.global;s(ts,
{sets:u,important:h},p),i=u}var f=((i?r:a)(ts)||
{}).sets,g=f&&Object.keys(f).filter(function(t){return!es.includes(t)});if(!g||!
g.length)return e(t);var v=o("vnSets")||{},b=v&&Object.keys(v);return
b&&(b=b.filter(function(t){return!es.includes(t)})),b&&b.length?
(g.forEach(function(t){if(b.includes(t)){var
e=v[t],n=e&&Object.keys(e).filter(function(t){return!
es.includes(t)});n&&n.forEach(function(n){var r=e[n],o=f[t].orderIndex;r&&(void 0!
==o&&(r.orderIndex=i?o:-1),l(n,r))})}}),e(t)):e(t)})},function(t){return new
Promise(function(e){t&&t.getAPI&&t.getAPI().logger||or.b;var
i,n=(t._getLastParameters()||{})[Qo]||{},r=n.size,o=n.important,a=n.global;(o||a||
r&&(r.width||r.height))&&t.setControlData(Qo,((i={size:r})
[fr.a]=o,i),a);e(t)})},function(t){return new Promise(function(e){var
i=t&&t.getAPI&&t.getAPI()||{},n=i.logger||
or.b,r=i.getLastParameters,o=i.setControlData,a=i.getControlUnionData,s=i.trackStro
ngUrls,d=(r()||{})[fa]||{};[].concat(d).forEach(function(t){var
e,i=t.pattern,n=t.global,r=t.selector,s=t[fr.b],d=a(fa)||
{},l=d.pattern,c=d.selector;o(fa,pe({},t,((e={})[fr.b]=s||(i||i!==l)&&(r||r!
==c)?"solid":"",e)),n)});var l=a(fa)||
{},c=l.pattern,u=l.selector,h=l.trackings,p=l.fatal;if(c){var f=new
RegExp(c,"i"),g=(function(t){var
e;try{(e=window.top.document.querySelectorAll(t))&&e.length||
(e=window.top.document.querySelectorAll("body"))}catch(e){}if(!e||!
e.length)try{e=document.querySelectorAll(t)}catch(e){}return e&&e.length||
(e=document.querySelectorAll("body")),Array.from(e).map(function(t){return
t.innerText||t.textContent}).join("\n")}(u)||"").match(f);if(g){s(h);var
v=Error(ga.substring(2)+" Pattern matched: "+g);throw v.fatal=!!p,v}n.log(ga+"
Pattern not matched: "+c)}e(t)})},function(t){return new Promise(function(e,i)
{t&&t.getAPI&&t.getAPI().logger||or.b;var n,r=(t._getLastParameters()||{})[Qa]||
{},o=r.urls,a=r.important,s=r.global,d=r.fatal;(a||s||
o&&o.length)&&t.setControlData(Qa,((n={urls:o})[fr.a]=a,n.fatal=d,n),s);var
l=t.getControlData(Qa)||{},c=l.urls,u=l.fatal;if(c){var
h;try{h=Array.from(window.location.ancestorOrigins).map(function(t){return new
URL(t).hostname})}catch(e){}if(h&&h.some(function(t){if(c.includes(t)){var
e=Error(' vn_module was placed in the forbidden domain "'+t+'"');return e.fatal=!!
u,i(e),!0}}))return}e(t)})},function(t){return new Promise(function(e){var
i=t&&t.getAPI&&t.getAPI().logger||
or.b,n=t._getLastDataXml(),r=n&&n.querySelector('Extensions >
Extension[type="vnTargetedWords"]');if(r){var o=Object(pr.d)
(r,"fatal"),a=r&&r.querySelector("words");if(!a)return void e(t);var s=Object(pr.e)
(a).replace(/[,\s]+$/g,"").split(/\s*,\s*/i).join("|"),d=new
RegExp(s,"i"),l=(function(t){var e;try{e=document.querySelectorAll(t)}catch(e)
{}return e&&e.length||
(e=document.querySelectorAll("body")),Array.from(e).map(function(t){return
t.textContent||t.innerText}).join("\n")}(Object(pr.e)
(r,"selector"))||"").match(d);if(!l){var c=new Error(_l+" Pattern not matched:
"+s);throw c.fatal=!!o,c}i.log(_l+" Pattern matched:
"+l),Yo.g.call(t,'Extension[type="vnTargetedWords"]
targetedMetrics')}e(t)})},function(t){return new Promise(function(e){var
i=t&&t.getAPI&&t.getAPI().logger||
or.b,n=t._getLastDataXml(),r=n&&n.querySelector('Extensions >
Extension[type="controls"]');if(r){i.log(Ol+" Init");var
o=r.querySelectorAll("control");if(o&&o.length)Array.from(o).forEach(function(e)
{var
i=e.getAttribute("id"),n=e.getAttribute("layout");Al[i]&&t.setControlData(Al[i],
{css:wl[n]||{}})}),i.log(Ol+" Layout applied");else{var a=Object(pr.e)(r);
("1"===a||"0"===a)&&t.setControlData("adSpectorControls",a)}}e(t)})},function(t)
{return new Promise(function(e){t&&t.getAPI&&t.getAPI().logger||or.b;var
i,n=(t._getLastParameters()||{})[ka]||{},r=n.enabled,o=n.global,a=n.important;(r||
o||a)&&t.setControlData(ka,((i={enabled:r})[fr.a]=a,i),o);e(t)})},It,function(t)
{return new Promise(function(e){return t&&t.getAPI&&t.getAPI().logger||or.b,
[].concat((t._getLastParameters()||{})[sa]).forEach(function(i){var n=i||
{},r=n.controls,o=n.global;return r?void Object.keys(r).forEach(function(e){var
i=r[e],n=i.global||o,a=!0,s=e.toLowerCase(),d=da[s];d||(d=la[s],a=!1);var
l=function(t,e,i){var n=t.css,r=Object(dr.t)(t.important);delete t.important;var
o=e?te({},cr.q,{display:"initial"}):{},a=Object.keys(t).reduce(function(e,n){var
r=ca[n.toLowerCase()],o=t[n],a=void 0!==o&&r&&r(o,i);return
a&&a&&Object.keys(a).forEach(function(t){var i=a[t];e[t]="object"!=typeof i||
null===i?i:te({},e[t],{},i)}),e},{css:n||o});return
Object.entries(a).reduce(function(t,e){var i=e[0],n=e[1];return Object(fr.f)
(t,i,n,r)},{})}(i,a,t);a&&(l.parsePoint=i.parsePoint),Object(dr.q)(l)||
t.setControlData(d,l,n),["hover","afterplay"].forEach(function(e){var
r;i[e]&&t.setControlData(d,((r={})[e]=!0,r),n)})}):e(t)}),e(t)})},function(t)
{return new Promise(function(e,i){t&&t.getAPI&&t.getAPI().logger||
or.b,t.maxSkipTime=null;var n=t._getLastParameters(),r=n&&n[pa]||{};if(!
Object(dr.q)(r)&&r.length){var o=new Uo;r.filter(function(t){return
t}).sort(function(t,e){return t.orderIndex-e.orderIndex}).forEach(function(t)
{t&&o.setControlData("skip",t)}),r=o.getControlUnionData("skip")}var
a,s=r,d=s.strict,l=s[fr.a],c=s.global,u=r.skipTime;c&&t.setControlData(pa,
((a={skipTime:u,strict:d})[fr.a]=l,a.global=c,a),c);var
h,p=t.getControlUnionData(pa,null,function(t){return t.strict})||
{},f=p.skipTime,g=p.strict;!c&&u<1/0&&t.setControlData(pa,
((h={skipTime:u,strict:d})
[fr.a]=l,h.global=c,h),c);u=((r=t.getControlUnionData(pa))||{}).skipTime;var
v=g&&f;v&&(t.maxSkipTime=v);var b=v||0===v,m=u;if(u||b){if(b&&u&&g&&v<u){var
y=Error('skipTime has attribute "strict" == true and value of skipTime('+u+") is
more than parent skipTime("+v+")");return y.code=nr.a.GENERAL_VPAID_ERROR,i(y)}m=g?
Zn(v||1/0,0===u?0:u||1/0):u||0}return void 0!
==m&&(t.setControlData("skipAdCountdown",
{timeBeforeSkip:m}),t.setControlData("skipAd",
{timeBeforeSkip:m})),e(t)})},function(t){return new Promise(function(e)
{t&&t.getAPI&&t.getAPI().logger||or.b;var
i=t._getLastDataXml(),n=i&&i.querySelector('Extensions >
Extension[type="vnSubtitles"]');n?El(n).then(function(e)
{t.subscribe(kn.bind(t),"AdLoaded"),t.subscribe(function(t){var
e=this.getControlNode("subtitle"),i=this.getAdElapsedTime(),n=t.find(function(t)
{var e=t.startTime,n=t.endTime;return e<=i&&i<n});n?(Object(cr.b)(e,
{display:""}),e.innerHTML=n.text):(Object(cr.b)(e,
{display:"none"}),e.innerHTML="")}.bind(t,e),"AdRemainingTimeChange"),t.subscribe(f
unction(){var t=this.getControlNode("subtitle");Object(cr.b)(t,
{display:"none"}),t.innerHTML=""}.bind(t),"AdVideoComplete")}).catch(function()
{}).then(function(){return e(t)}):e(t)})},function(t){var e=t.vnAfterplay;return
e&&e._destroy(),t.vnAfterplay=null,new Sa({module:t}).init(t)},function(t){return
new Promise(function(e){t&&t.getAPI&&t.getAPI().logger||or.b;var i=function(t){var
e=t.getEnvironmentVars,i=t.getParameters,n=e&&e()||{},r=i&&i()||
{},o=n&&n.forceFormat;if(Object(dr.q)(o)){var a=r.vnFormat,s=(n&&n.format||
{}).options;Object(dr.q)(s)||Object(dr.q)(a)||[].concat(a).forEach(function(t)
{return t.options=Xt({},s,{},t.options)}),o=a}var d=null,l=null;if(!Object(dr.q)
(o)){var c=new Uo;[].concat(o).forEach(function(t)
{c.setControlData(oa,t,t.global)}),d=c.getControlUnionData(oa),l=c.getControlUnionD
ataGlobal(oa)}return{vnFormatData:d,vnFormatDataGlobal:l}}
({getEnvironmentVars:function(){return t.environmentVars},getParameters:function()
{return
t._getLastParameters()}}),n=i.vnFormatData,r=i.vnFormatDataGlobal;if(n&&(t.setContr
olData(oa,n),r&&t.setControlData(oa,r,!0)),!t.fixedFormat){var
o=t.getControlUnionData(oa);if(o){var
a=o.name,s=o.options;try{JSON.stringify(o,function(t,e){return"lookupElement"===t?
(null===e||void 0===e?void 0:e.nodeName)+"."+(null===e||void 0===e?void
0:e.classList):e},2)}catch(t){}var d=t.options&&t.options.amp;if(d&&"contentroll"!
==a.toLowerCase())throw new Error(aa+" Failed to create format ("+a+") because only
the ContentRoll format is available for amp");d&&(s.amp=!0);var l=s||
{},c=l.playerElement,u=l.playerAfter,h=l.playerBefore;if(qt.call(t,
{playerElement:c,playerAfter:u,playerBefore:h}))throw new Error(aa+' There was
already an embedding error with such format parameters: playerElement:"'+c+'"
playerAfter:"'+u+'" playerBefore:"'+h+'"');var
p=zo(t,a||"InStream",s);p&&t._setFormat(p)}}e(t)})},function(t){return new
Promise(function(e){var i=t&&t.getAPI&&t.getAPI().logger||
or.b,n=(t._getLastParameters()||{})[La]||{},r=n,o=r.global,a=r[fr.a];if(delete
n.global,(!Object(dr.q)(n)||a||
o)&&t.setControlData(La,n,o),n=t.getControlUnionData(La),Object(dr.q)(n))return
e(t);var s=n||
{},d=s.html,l=s.clickTracking,c=s.openWindowUrl,u=s.color,h=s.backgroundColor,p=s.b
ackgroundImage,f=s.backgroundSize,g=s.opacity,v=s.closeData,b=t.getControlNode("und
erplay")||Object(cr.a)(document.body,"div",
{},"");if(b.addEventListener("click",function(e){e.preventDefault(),l&&Yo.l.call(t,
[l]),c&&Object(po.b)(c),t.skipAd()}),Object(cr.b)(b,{position:"fixed",zIndex:-
1,top:0,right:0,bottom:0,left:0,width:"100%",height:"100%",transition:"opacity
500ms ease-
out",color:u,backgroundColor:h,backgroundImage:p,backgroundSize:f,opacity:g}),b.inn
erHTML=d,!Object(dr.q)(v)){var
m=v.img,y=v.top,O=v.right,A=v.bottom,w=v.left,_=v.width,P=v.height,S=v.time,j=m?"":
Ra.a,E=Object(cr.a)(b,"div",
{position:"absolute",zIndex:1,top:y,right:O,bottom:A,left:w,width:_,height:P,backgr
oundSize:"cover",backgroundImage:"url("+(m||"")+")",cursor:"pointer"},j,function()
{return t.skipAd()});E.addEventListener("touchstart",function(e)
{e.preventDefault(),t.skipAd()});var C=Object(pr.g)(S)||
t.getControlUnionData("skipAdCountdown","timeBeforeSkip");if(C){Object(cr.b)(E,
{display:"none"});t.subscribe(function e(){t.getAdElapsedTime()>=C&&(Object(cr.b)
(E,
{display:""}),t.unsubscribe(e,"AdRemainingTimeChange"))},"AdRemainingTimeChange")}t
.subscribe(function(){i.log("::Extension["+La+"] Removing
underplay"),Object(cr.b)(b,{opacity:0}),setTimeout(function(){Object(cr.s)
(b)},500)},"AdDestroyed")}return e(t)})},function(t){return new Promise(function(e)
{t&&t.getAPI&&t.getAPI().logger||or.b;var i,n=(t._getLastParameters()||{})[xa]||
{},r=n.serverUrl,o=n.strict,a=n.global,s=n.important;(r||o||a||
s)&&t.setControlData(xa,((i={serverUrl:r,strict:o})
[fr.a]=s,i),a);e(t)})},function(t){return new Promise(function(e)
{t&&t.getAPI&&t.getAPI().logger||or.b;var i=(t._getLastParameters()||{})[Ia]||
{},n=function(e){var n,r,o=i[e]||{},a=o.url,s=o.important,d=o.global;void 0!
==a&&t.setControlData(Ia,((r={})[e]=((n={url:a})
[fr.a]=s,n),r),d)};n("impression"),n("debug"),n("passed"),n("passed2"),n("select"),
e(t)})},Ta.a,function(t){return new Promise(function(e)
{t&&t.getAPI&&t.getAPI().logger||or.b;var i,n=(t._getLastParameters()||{})[qo]||
{},r=n.functionUrl,o=n.functionText,a=n.global;(r||o||
a)&&t.setControlData(qo,function(t){for(var e,i=1;i<arguments.length;i+
+)e=null==arguments[i]?{}:arguments[i],i%2?St(Object(e),!0).forEach(function(i)
{jt(t,i,e[i])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):St(Object(e)).forEac
h(function(i)
{Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}({},n,
((i={})[fr.b]="solid",i)),a);e(t)})},function(t){var e=t.vnAdEvents;return
e&&e._destroy(),t.vnAdEvents=null,new Ea({module:t}).init(t)},function(t){var
e=t.vnPageChanged;return e&&e._destroy(),t.vnPageChanged=null,new
Ma({module:t}).init()},function(t){return new Promise(function(e){var
i=t&&t.getAPI&&t.getAPI()||{},n=(i.logger||or.b,(i.getLastParameters()||
{}).vnShowViqeo);if(n){var r=n.options,o=n.global;i.setControlData(td,
{options:r},o)}e(t)})},function(t){return new Promise(function(e){var
i=t&&t.getAPI&&t.getAPI()||{},n=(i.logger||
or.b,i.getLastParameters()),r=n&&n[Da];if(r){var
o=r.eventsParams,a=r.global;o&&i.setControlData(Da,
{eventsParams:o},a)}e(t)})},function(t){return new Promise(function(e){var
i=t&&t.getAPI&&t.getAPI()||{},n=(i.logger||
or.b,i.getLastParameters()),r=n&&n[$s];if(r){var
o=r.trackingParams,a=r.global;o&&i.setControlData($s,
{trackingParams:o},a)}e(t)})},function(t){(t&&t.getAPI&&t.getAPI()||{}).logger||
or.b;return new Promise(function(e){[].concat((t._getLastParameters()||{})
[ua]).forEach(function(e){var i=e||
{},n=i.global,r=i.include,o=i.exclude,a=i.availableUrlsPattern;(r||
o)&&t.setControlData(ua,{include:r,exclude:o,availableUrlsPattern:a||
ha.replace(/\./g,"\\.")},n)}),e(t)})},function(t){return new Promise(function(e)
{t&&t.getAPI&&t.getAPI().logger||or.b;var i=(t._getLastParameters()||{})[ed]||
{},n=i.url,r=i.global;(n||r)&&t.setControlData(ed,i,r),e(t)})},function(t){return
new Promise(function(e){t&&t.getAPI&&t.getAPI().logger||or.b;var
i,n=(t._getLastParameters()||{})[Ga]||{},r=n.urls,o=n.important,a=n.global;(o||a||
r&&r.length)&&t.setControlData(Ga,((i={urls:r})[fr.a]=o,i),a);var
s=t.getControlUnionData(Ga,"urls");(null===s||void 0===s?void
0:s.length)&&(t._vnOTMTrackViewable&&t._vnOTMTrackViewable._destroy(),t._vnOTMTrack
Viewable=new qa(t,
{moduleId:"::Plugin[ViewableImpressionOTM]",startEventName:"AdStarted",trackUrlsAct
ion:Yo.l.bind(t,s)})),e(t)})},function(t){var e=t._vnOTMTrackRecordable;return
null===e||void 0===e||e._destroy(),(t._vnOTMTrackRecordable=new
Ya({module:t})).init()}],Dl="q1tracking",Il=function(t){function e()
{s=t.getAdDuration()||0}function i(){u||
(c._removeVPAIDEventListener(t,"AdDurationChange",e),!s&&(s=l||t.getAdDuration()||
0),a=s&&1e3*(s/4+1)||2e3),u=!0,a&&(o=Date.now(),c._addTimeout(Dl,r,a))}function n()
{c._destroy()}function r(){n(),Yo.h.call(t,
{code:nr.a.TIMEOUT_OF_MEDIA,message:"Neither AdVideoFirstQuartile nor
AdVideoMidpoint event happened during "+l+"ms after AdVideoStart event"})}var
o,a,s,d=t&&t.getAPI&&t.getAPI().logger||or.b,l=t.options.videoStartTimeout,c=new
rr.a({ancestor:"::Plugin[q1Tracking]",logger:d}),u=!
1;c._addVPAIDEventListener(t,"AdDurationChange",e),c._addVPAIDEventListener(t,"AdVi
deoStart",i),c._addVPAIDEventListener(t,"AdPaused",function()
{c._removeTimeout(Dl),a-=Jn(0,Date.now()-
o)}),c._addVPAIDEventListener(t,"AdPlaying",i),c._addVPAIDEventListener(t,"AdVideoF
irstQuartile",n),c._addVPAIDEventListener(t,"AdVideoMidpoint",n),c._addVPAIDEventLi
stener(t,"AdStopped",n),c._addVPAIDEventListener(t,"AdDestroyed",n)},Tl="::Plugin[n
oAdCallback]",kl=function(t){return new qa(t,
{moduleId:"::Plugin[ViewableImpression]",startEventName:"AdImpression",trackUrlsAct
ion:Yo.n.bind(t,"ViewableImpression:viewable")})},xl="::Plugin[ContainerDarker]",Nl
="DELAY_TIMER",Ml=function(t){function e(e){var
i,n=e&&e.getAPI&&e.getAPI().logger||or.b;return(i=t.call(this,
{ancestor:xl,logger:n})||
this).module=e,i._addVPAIDEventListener(e,"AdVideoStart",function(){return
i.hide()}),i._addVPAIDEventListener(e,"AdVideoComplete",function(){return
i.show()}),i._addVPAIDEventListener(e,"vnVpaidAdError",function(){return
i.show()}),i}!function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.hide=function(){this._removeTimeout(Nl);var
t=this.module.getControlNode("containerShadow");t&&(Object(cr.b)(t,
{transitionProperty:"opacity",transitionDuration:0,transitionTimingFunction:"none"}
),Object(cr.b)(t,{zIndex:-1,opacity:0}))},i.show=function(){var
t=this.module,e=t.vnAfterplay;e&&e.shouldShowStub()||this._addTimeout(Nl,function()
{var e=t.getControlNode("containerShadow");e&&(Object(cr.b)(e,
{transitionProperty:"opacity",transitionDuration:"700ms",transitionTimingFunction:"
ease-out"}),Object(cr.b)(e,{zIndex:5,opacity:.97}))},600)},e}
(rr.a),Vl="::Plugin[HeavyAdIntervention]",Rl=function(t){function e(e){var
i,n=e&&e.getAPI&&e.getAPI().logger||or.b;return(i=t.call(this,
{ancestor:Vl,logger:n})||
this).observers=[],i._addVPAIDEventListener(e,"AdLoaded",function(){return
Vn.call(function(t){if(void 0===t)throw new ReferenceError("this hasn't been
initialised - super() hasn't been called");return t}(i),e)}),i}return function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t),e.prototype._destroy=function()
{t.prototype._destroy.call(this),this.observers.forEach(function(t){return
t&&t.disconnect()}),this.observers=[]},e}(rr.a),Ll=[function(t){return new
Promise(function(e){t&&t.getAPI&&t.getAPI().logger||or.b;var i=[],n=function(e){var
n=t._getLastDataXml();if(n){var r=Yo.a.call(t)&&Yo.h.bind(t),o=Object(po.e)
(n,'Extension[type="CustomTracking"]
Tracking[event="'+e+'"]',t.replaceMacros.bind(t),r);i.push.apply(i,o)}},r=t.waitAsy
ncTrackings;t.waitAsyncTrackings=function(){return
Promise.all([r.apply(t),Promise.all(i)])};var o=t.skipAd;t.skipAd=function(){return
n("onSkipAd"),o.apply(t,arguments)};var
a=t.processDataXml;t.processDataXml=function(e)
{(a.apply(t,arguments),e&&e.querySelector)&&(n("onVastLoad"),!
e.querySelector("Wrapper,MediaFile")&&n("onVastEmpty"))},e(t)})},function(t){var
e=t&&t.getAPI&&t.getAPI().logger||
or.b,i=t.options.externalTracking;"object"==typeof
i&&(e.log("::Plugin[externalTracking] Init"),Object.keys(i).forEach(function(e){var
n=i[e];t.subscribe(function(){[].concat(n).forEach(po.c)},e)}))},Il,function(t){var
e=t&&t.getAPI&&t.getAPI().logger||or.b,i=t.options.noAdCallback,n=window[i]||
i;"function"==typeof n&&(e.log(Tl+" Init"),t.subscribe(function(){var
i=t.vnAfterplay;if(!(i&&0<i._getTotalSuccessfulPlays())){e.log(Tl+" Executing");var
r=t.getAnchorElement();setTimeout(function(){return
n({anchorElement:r})})}},"AdError"))},kl,function(t){return new Ml(t)},function(t)
{return new
Rl(t)}],Fl="\t",Wl="Module",Hl={vpaidInitAdTimeout:7e3,vpaidInitAdSecTimeout:7e3,st
artAdTimeout:3e3,startAdSecTimeout:1e3,stopAdTimeout:1e3,dataRequestTimeout:7e3,ski
pAdTimeout:500,iframeRemoveDelay:1e3,disableHoverAudio:!0,startingVolume:ur.h||
ur.i?0:void 0,forceStartingVolume:void
0,maxAds:1,beforeStopAdTimeout:700,minSlotWidthPercent:.4,adIgnoreSizeErrorState:!
1,hideSpinnerControl:!1,hideTitleControl:!1,viqeoParentSlotClassName:"viqeo-parent-
slot",listenWindowMessages:!1,passUrlParams:
["vn_dsp","vn_campaign"],triggerAdStoppedAfterAdSkipped:!1,canExecuteNoAd:!
1,checkTrackingResponse:!
0,viqeoStarterUrl:"https://cdn.viqeo.tv/js/vq_starter.js"},zl=function(t){function
e(e){var i,n,r=Math.random().toString(36).substring(2,5),o=e||
{},a=o.logLevel,s=o.ancestor,d=o.module,l=void 0===a?or.c:a,c=e&&(e.logger||
e.module&&e.module.logger||e.moduleAPI&&e.moduleAPI.logger);try{var
u=window.parent;n=u&&u!==window&&(u.vn_module_id||u.parent&&u.parent.vn_module_id||
u.parent.parent&&u.parent.parent.vn_module_id)}catch(e){}if(n||(n=s||
d&&d.mainModuleId),!c){var h=n?n+" >> ":"",p=Object(or.d)(l,function(){return"["+
(new Date).toISOString().slice(11,-1)+"] "+h+"("+r+") "+Wl});c=Object(or.a)
(l,p)}c.log(".constructor()",2),(i=t.call(this,Bn({},Hl,{},e,
{ancestor:Wl,logger:c}))||
this).mainModuleId=r,i.logLevel=l,i.startAdShouldBeInvoked=!
1,i.adIgnoreSizeErrorState=i.options.adIgnoreSizeErrorState,i.subscribe(function()
{i._adsLeft-=1},"AdStarted"),i.subscribe(function()
{},"AdError"),i.pauseWasStartedByVPAID=!1,i.pausedWasStartedByVisibilityChange=!
1,i.vpaid=null,i._adHasBeenLoaded=!1,i.lastPendingCommands={},i.data=[],function()
{var
t=Symbol("collectionFieldName");this[t]=[],this.pushControlIntoCollection=function(
e){return this[t].push(e),e},this.getControlInstance=function(e){var
i=this[t].filter(function(t){return t.name===e})[0];return
i},this.destroyControls=function(){var e=[];return this[t].forEach(function(t){var
i=t&&t.getName&&t.getName();i&&e.push(i),t._destroy()}),this[t]=[],e},this.destroyU
IControls=function(){var t=this,e=[];return yl.forEach(function(i){var
n=i&&i.getName&&i.getName();n&&e.push(n),t.destroyControl(n)}),this.destroyControl(
"spinner"),this.destroyControl("title"),e.push("spinner","title"),e},this.clearCont
rolsCollection=function(){this[t]=[]},this.destroyControl=function(e)
{this[t]=this[t].filter(function(t){return!
(t.getName&&t.getName()===e&&(t._destroy(),1))})},this.hideControl=function(e)
{Dn(this[t],e,function(t){t.hide&&t
.hide()})},this.restoreControl=function(e){Dn(this[t],e,function(t)
{t.restore&&t.restore()})}}.call(qn(i)),_t.call(qn(i),
{destroyIframeAction:i._destroyIframe.bind(qn(i)),logger:i.logger}),i.lastPendingVo
lumeCommand=null,i.reachInventories={},i._trackedErrorsFormats={},i._useExistsVideo
Slot=!1,i.visibleInventoryWasSent=!1,i._adImpressionHappened=!
1,i._completeWasTracked=!1,i._adStarted=!1,i._manualAdditionalSEQ=0,function(){var
t=this;Ll.forEach(function(e){return e(t)})}.call(qn(i));var f=function(){var
t=this,e=function(e){var i=Bn({},
{intersectionRatio:0,visibility:0,moduleSquare:0,screenSquare:0,relationSize:null},
{},e);return t.setControlData("vnMacros",{"[SQUARE]":i.moduleSquare},!
0),t.setControlData("vnMacros",{"[VISIBILITY]":i.visibility},!
0),t.setControlData("vnMacros",{"[SIZE]":i.relationSize},!0),i};try{var
i,n,r=vo.c.call(this),o=r&&r.clientHeight?r:
(i=this.getControlNode("slot"))&&i.clientHeight?i:
(n=this.getControlNode("iframe"))&&n.clientHeight?n:null;return o?
dr.n.call(this,o).then(function(t){return e(t)}):Promise.resolve(e())}catch(t)
{return t&&t.message,Promise.resolve(e())}}.bind(qn(i)),g=function(){var
t=this.format,e=t.getSlotSize&&t.getSlotSize()||{},i=e.width,n=e.height;return
this.setControlData("vnMacros",{"[WIDTH]":i||0,"[HEIGHT]":n||0,"[ACTUAL-WIDTH]":i||
0,"[ACTUAL-HEIGHT]":n||0},!
0),Promise.resolve({width:i,height:n})}.bind(qn(i));return
i._moduleCharacteristicsRelations={"[LOCATION]":function(){try{var t=Object(dr.l)
(window,document),e=t&&encodeURIComponent(t);return this.setControlData("vnMacros",
{"[LOCATION]":e||"null"}),Promise.resolve(e)}catch(t){return
t&&t.message,Promise.resolve()}}.bind(qn(i)),"[SIZE]":f,"[SQUARE]":f,"[VISIBILITY]"
:f,"[WIDTH]":g,"[HEIGHT]":g,"[ACTUAL-WIDTH]":g,"[ACTUAL-
HEIGHT]":g,"[SEQ]":function(){var
t=this.vnAfterplay,e=this._manualAdditionalSEQ,i=(t&&t._getTotalSuccessfulPlays()||
e||0)+1;return this.setControlData("vnMacros",{"[SEQ]":i},!
0),i}.bind(qn(i)),"[SEQ_FORMAT]":function(){var
t=this.vnAfterplay,e=this.format,i=t&&t._getTotalSuccessfulPlays()||0;return
this.setControlData("vnMacros",
{"[SEQ_FORMAT]":0<i&&e&&e.getBaseName&&e.getBaseName()||""}),i}.bind(qn(i))},i}!
function(t,e)
{t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
(e,t);var i=e.prototype;return i.toString=function(){return
Wl},i.initAd=function(e,i,n,r,o,a){var s=this;void 0===o&&(o={}),void
0===a&&(a={}),t.prototype.initAd.call(this,e,i,n,r,o,a),this._adStarted=!
1,this._adImpressionHappened=!1,this._adVideoWasStarted=!
1,this._disableExtensions=[];var d=a||
{},l=d.disableExtensions,c=d.advancedParams;if(this.advancedParams=c,l)if(Array.isA
rray(l))this._disableExtensions=l;else
try{this._disableExtensions=[].concat(JSON.parse(l))}catch(e){}o||(o={});var
u=o.mainContainerIsIframe;void 0!
==u&&(this.options.mainContainerIsIframe=Object(dr.t)
(u)),cs.a.call(this),cs.b.call(this);var h,p=o.isABTesting,f=o.AdParameters||
o,g="string"==typeof f;if(g)try{h=JSON.parse(f)}catch(e){if(!h)try{h=Object(pr.h)
("?"+f.trim())||f||{}}catch(e){}}else h="object"==typeof f?Bn({},f):
{};this.adParameters=h;var v=Object(kr.a)("dataUrl");v||(v=o.dataUrl||
h.dataUrl),p&&(v=v+(~v.indexOf("?")?"&":"?")+"ver=v2.38.10");var
b=null,m=null,y=null,O=h||
{},A=O.vnDebugDelay,w=O.vnDebugAdLoadedDelay,_=O.vnDebugErrorReason,P=O.vnDebugErro
rReasonCode;if(A)return 0<w&&setTimeout(function(){return
s.trigger("AdLoaded")},w),void setTimeout(function(){s.trigger("AdError",_||"",P||
nr.a.GENERAL_VPAID_ERROR)},A);if(f.vnData){var
S={};try{S=JSON.parse(f.vnData)}catch(e){}if(S.parameters)y="string"==typeof
S.parameters?JSON.parse(S.parameters):S.parameters;else
if(S.key)try{y=JSON.parse(sessionStorage.getItem(S.key))}catch(e)
{}S.disableExtensions&&(this._disableExtensions=this._disableExtensions.concat(S.di
sableExtensions)),y&&Array.isArray(y)||
(oo.b.call(this)&&this.trigger("AdError","Parsed parameters is not
valid",nr.a.GENERAL_VPAID_ERROR),this._destroy())}else if(!g||v||
h.dataXml)h.dataXml&&(b=Object(pr.j)(h.dataXml));else try{m=JSON.parse(f)}catch(t)
{}var j,E=this.options.timeout||o.timeout||
h.timeout;E&&(j=this.globalTimeoutProvider=new Jo(E,function(t){var e="Global
timeout("+t+") is timed
out";this._removeTimeout(Zo.e),this._removeTimeout(Zo.c),Yo.h.call(this,
{code:nr.a.GLOBAL_TIMEOUT_HAPPENED,message:e}),this._failedData({shouldDestroyVpaid
:!0,shouldAbort:!0,errorEventParams:
{code:nr.a.GENERAL_VPAID_ERROR,message:e}})}.bind(this,E),this.logger),this._addDes
troyableObject(j),j.start());var C=this.environmentVars||
{},D=C.videoSlot,I=(C.iframe,C.parentFormat);this.parentFormat=I,
(this._useExistsVideoSlot=D&&Object(cr.o)
(D,"video"))&&this.setControlData("videoSlot",{node:D}),this.setControlData("slot",
{node:a.slot});var T,k=a.format||{},x=k.name,N=void
0===x?"InStream":x,M=k.options;try{if(!(T=zo(this,N,M)))return void
this._abort({errorEventParams:{code:nr.a.FORMAT_ERROR,message:".initAd() Unable to
initialize format ("+N+")"}});this._setFormat(T)}catch(t){var V=".initAd() Unable
to initialize format ("+N+") "+t;return void this._abort({errorEventParams:
{code:t.code||nr.a.GENERAL_VPAID_ERROR,message:V}})}if(!y){var R=function(){var
t={},e=this.environmentVars,i=this._disableExtensions,n=this.adParameters,r=bi({},e
,{},void 0===n?{}:n)||{},o=r.ext,a=r.extensions,s=o||
{},d=s.vnShowViqeo,l=s.vnFormat;if(d&&0>i.indexOf("vnShowViqeo")){var
c=d.important,u=$o(d);t.vnShowViqeo={options:u,important:c,global:!0}}if(l){var
h=Zt.call(this,l,null);h&&(h.global=!0,t.vnFormat=h)}if(!Object(dr.q)(a)){var
p={vnSets:ze.bind(this),vnControls:ne.bind(this),vnFormat:Zt.bind(this),vnProhibite
dWords:be.bind(this),vnOTMTrackRecordable:Le.bind(this),vnOTMTrackViewable:Re.bind(
this),vnDomainsBlockList:Fe.bind(this),vnMinPlayerSize:Tt.bind(this)};Object.entrie
s(p).forEach(function(e){var i=e[0],n=(0,e[1])(a);n&&(void 0!
==n.global&&(n.global=!0),t[i]=n)})}return t}.call(this);Object(dr.q)(R)||
(this.data.push({dataXml:null,defaultAdXml:null,parameters:R}),xn.call(this).then(f
unction(){var t;T?t=kt(s):a.slot&&0!==e&&(t=function(t,e){var
i=t.getControlData(Qo)||{},n=i.size,r=i.fatal,o=(n||{}).width;if(!o)return
null;if(0<e&&e<o){var a=Nt(t),s=a.topWindow,d=a.contentParent;return xt("\n
Width: "+e+";\n Viewport: "+(s?s.innerWidth:"Unknown")+";\n Container width:
"+d.offsetWidth+";\n Ratio: "+e/d.offsetWidth,!!r)}return null}
(s,e)),t&&Yo.h.call(s,t,!0)}),this.pushControlsDataStack())}if(y)
{this.data.push({parameters:y.shift()});var
L=this._getLastParameters();this._disableExtensions&&this._disableExtensions.forEac
h(function(t){L&&delete L[t]}),y.forEach(function(t){return
s.data.push({parameters:t})});var F=(this.data[0]||
{}).parameters;this.mainProc=function(t,e,i){void
0===i&&(i={}),Wn.call(this,Bn({parameters:t,format:e},i))}.bind(this,F,T),this.main
Proc()}else m?
(this.data.push({dataXml:null,defaultAdXml:null,parameters:m}),Object(dr.q)(m)?
Hn.call(this,{code:nr.a.NO_ADS_RESPONSE,message:"Empty data"},".initAd()"):
(this.mainProc=function(t,e,i){void
0===i&&(i={}),Wn.call(this,Bn({parameters:m,format:e},i))}.bind(this,m,T),this.main
Proc())):b?(this.mainProc=function(t,e,i){void
0===i&&(i={}),Wn.call(this,Bn({xml:t,format:e},i))}.bind(this,b,T),this.mainProc())
:v&&(j&&j.pause(),function(t){var e=this.advancedParams;if(Object(dr.q)(e)||
Object(dr.q)(e.pass))return Promise.resolve(t);var
i,n,r=e.pass,o=e.pass,a=o._decorateName,s=o._decorateValue;a&&"function"==typeof a?
(i=a,delete r._decorateName):i=function(t){return"pass_"+t},s&&"function"==typeof
s?(n=s,delete r._decorateValue):n=function(t){return t};var d=Object(pr.a)
(t,Object.keys(r).reduce(function(t,e){return r[e]&&(t[i(e)]=n(r[e])),t},
{}));return Promise.resolve(d)}.call(this,v).then(function(t){return function(t)
{var e=(this.options||{}).passUrlParams;if(!e||!e.length)return
Promise.resolve(t);var i=Object(dr.i)(window,document),n=Object(pr.h)
(i),r=Object.keys(n).reduce(function(t,i){return~e.indexOf(i)&&(t[i]=n[i]),t},
{});return Promise.resolve(Object(pr.a)(t,r))}.call(s,t)}).then(function(t)
{s.mainProc=function(t,e,i){void
0===i&&(i={}),Wn.call(this,Bn({url:t,format:e},i))}.bind(s,t,T),s.mainProc()}))},i.
resizeAd=function(t,e,i,n){void 0===i&&(i=this.viewMode),void 0===n&&(n=!1);var
r=this._adHasBeenLoaded,o=this.vpaid,a=this.format,s=vo.b.call(this,Wl)||{};if(r)
{s=this.savedAdParams=[],this.lastPendingCommands.resizeAd&&delete
this.lastPendingCommands.resizeAd;var d=!n&&Object(dr.p)(this.adWidth,t)||
Object(dr.p)(this.adHeight,e);this.adWidth=t,this.adHeight=e,this.viewMode=i;var
l=this.getControlNode("container"),c=this.getControlNode("vpaidSlot"),u=vo.c.call(t
his),h="absolute"!==(c&&getComputedStyle(c)||{}).position;if(h&&this.logger.log('
was detected that vpaid changed vpaidSlot position from
"absolute"',2,"pink"),u&&"hidden"!==getComputedStyle(u).display&&u.clientHeight)
{var p=this.getControlNode("videoSlotParent");p&&u.parentElement!
==p&&(this.setControlData("videoSlot",{node:null}),Object(cr.b)(u,
{top:"0",left:"0",margin:"0"}),u=null)}if(d&&o&&(s.push(function(){return
o.resizeAd(t,e,i)}),o.resizeAd(t,e,i)),l){var f=(a&&a.getOptions()||
{}).setSizeByMedia,g=l.getBoundingClientRect()||
{},v=g.width,b=g.height;if(u&&(0<b||h))this._saveVideoSlotParams(u),Object(cr.b)(u,
{position:"absolute",left:"50%",top:"50%",marginLeft:Object(dr.s)(-
t/2),marginTop:Object(dr.s)(-e/2),width:Object(dr.s)(t),height:Object(dr.s)
(e)});else if(Object(dr.t)(f)){var
m=this.getControlNode("wrapper"),y=m&&vo.a.call(this),O=y.outsideHeight,A=y.insideH
eight,w=e+(O||0)-(A||0);if(m){var _={height:Object(dr.s)(w)};Object(cr.b)
(m,_),s.push({node:m,styles:_})}var P=this.getControlNode("iframe");if(P){var
S={height:Object(dr.s)(w)};Object(cr.b)(P,S),s.push({node:P,styles:S})}}else if(!
u&&c&&0<b){var
j=Zn(t,v),E=Zn(e,b),C={position:"absolute",left:"50%",top:"50%",marginLeft:Object(d
r.s)(-j/2),marginTop:Object(dr.s)(-E/2),width:Object(dr.s)(j),height:Object(dr.s)
(E)};Object(cr.b)(c,C),s.push({node:c,styles:C})}if(l){var
D={textAlign:u&&"absolute"===u.style.position?"initial":"center"};Object(cr.b)
(l,D),s.push({node:l,styles:D})}vo.d.call(this,Wl,s)}}else{!!
this._AdVideoStartWasHappenedAtLeastOnce&&!
oo.c.call(this,"playing","pausing","paused")&&s&&!s.length?Object(dr.u)
(s,this.logger,Wl+" .resizeAd().
State="+this.state):this.lastPendingCommands.resizeAd=this.resizeAd.bind(this,t,e,i
)}},i.startAd=function(t){var e=this;if(oo.a.call(this)){var i=(t||
{}).checkVisibility,n=this.format&&this.format.getStartMethod&&"manual"===this.form
at.getStartMethod();if(i&&!n);else if(i&&n){this.startingWithCheckVisibility=!0;var
r=this.format;oo.d.call(this,"waitStarting"),r&&r._updateModuleState&&r._updateModu
leState()}else if(oo.c.call(this,["loaded","complete"])||
this.startingWithCheckVisibility&&oo.c.call(this,"waitStarting"))
{this.startingWithCheckVisibility=!1,oo.d.call(this,"starting");var
o=this.vpaid,a=this.options,s=this.vnAfterplay,d=(a||{}).startAdTimeout,l=(a||
{}).startAdSecTimeout;s&&s.shouldContinue()&&0<s._getTotalSuccessfulPlays()&&(d=l),
d&&(this._addTimeout(Zo.c,function()
{o&&o.stopAd(),e._failedData({shouldDestroyVpaid:!
0})},d),o.subscribeOnce(function()
{e._removeTimeout(Zo.c)},"AdStarted"),o.subscribeOnce(function()
{e._removeTimeout(Zo.c)},"AdError")),this.globalTimeoutProvider&&this.globalTimeout
Provider.start(),this._vpaidStartAdWasInvoked=!
0,this._vpaidStartAdInvokesTime=Date.now(),o.startAd()}else oo.c.call(this,
["playing","started"])||(this.startAdShouldBeInvoked=!0)}},i.pauseAd=function(t)
{this.pausedWasStartedByVisibilityChange=!(!t||!t.method||"onvisibilitychange"!
==t.method.toLowerCase()),oo.c.call(this,
["playing","started"])&&(oo.d.call(this,"pausing"),this.vpaid.pauseAd())},i.resumeA
d=function(){oo.c.call(this,
["paused","pausing"])&&(oo.d.call(this,"resuming"),this.vpaid.resumeAd())},i.stopAd
=function(t){var e=this,i=(t||{}).force,n=oo.c.call(this,
["destroying","destroyed"]);if(n||oo.c.call(this,["stopped","stopping"]))return
n&&(this.state,1)||this.state,void(this._adStoppedTriggered||
(this._adStoppedTriggered=!
0,this.trigger("AdStopped"),Ko.e.call(this,"AdStopped")));oo.c.call(this,"stopped")
||oo.d.call(this,"stopping");var
r=this.vpaid,o=this.options,a=this.format,s=this.vnAfterplay,d=(o||
{}).stopAdTimeout,l="ModuleStopAdTimerId";if(i&&s&&(s._destroy(),s=this.vnAfterplay
=null),s&&s.shouldShowStub()&&s.manualRun&&!
oo.c.call(this,"afterplay")&&s.manualRun(),(!s||!
s.shouldShowStub())&&a&&a.hide&&a.hide(),r&&!
this._adStoppedWasCalled)try{r.subscribe(function()
{e._removeTimeout(l)},"AdError"),r.subscribe(function()
{e._removeTimeout(l)},"AdStopped"),r.stopAd()}catch(t){var c=t;(!c.code||
c.code<nr.a.GENERAL_LINEAR_ERROR)&&((c=new
Error(t)).code=nr.a.VPAID_JS_ERROR),Yo.h.call(this,c)}this._adStoppedWasCalled?
Ko.d.call(this):d&&this._addTimeout(l,function()
{Ko.d.call(e)},d)},i.skipAd=function(){var t=this,e=this.getAdSkippableState();if(!
oo.c.call(this,"skipping")&&e){var
i="ModuleSkipAdTimerId",n=this.vpaid,r=this.options.skipAdTimeout;oo.d.call(this,"s
kipping"),this._restoreVideoSlotParams(),n&&(n.subscribeOnce(function()
{t._removeTimeout(i)},"AdSkipped"),setTimeout(function(){return
n.skipAd()},1)),r&&this._addTimeout(i,function()
{Ko.c.call(t)},r)}},i.getAdRemainingTime=function(){return
this.vpaid&&this.vpaid.getAdRemainingTime()||0},i.getAdElapsedTime=function()
{return this.vpaid&&this.vpaid.getAdElapsedTime()||
t.prototype.getAdElapsedTime.call(this)},i.getAdDuration=function(){return
0<=this.adDuration&&this.adDuration||(this.vpaid?
this.adDuration=this.vpaid.getAdDuration():0)},i.getAdAspectRatio=function(){var
e=this.vpaid;return e&&e.getAdAspectRatio()||
t.prototype.getAdAspectRatio.call(this)},i.processDataXml=function(t){return
function(t){if(oo.c.call(this,["destroying","destroyed"]))return null;if(!t||!
t.querySelector){var e=Error("Malformed data xml");throw
e.code=nr.a.NO_ADS_RESPONSE,e.hint=".processDataXml()",e}var i=Object(pr.c)
(t),n=i&&i.length||0;if(!n){var r=t.querySelectorAll("Error"),o=Array.from(r||
[]).map(function(t){return Object(pr.e)(t)}),a=Error("Malformed data xml");throw
a.code=nr.a.NO_ADS_RESPONSE,a.hint=".processDataXml()",o&&(a.errorUrls=o),a}if(1<n&
&Array.from(i).every(function(t){return null!==t.getAttribute("sequence")})){var
s="Can not play Ad Pods("+n+"): ["+Array.from(i).map(function(t){return
t&&t.getAttribute&&t.getAttribute("id")||""}).filter(function(t){return
t}).join(",")
+"]";this.data.push({dataXml:t,defaultAdXml:null,parameters:null}),Yo.h.call(this,
{code:nr.a.FORMAT_ERROR,message:s}),this.data.pop();var d=Error(s);throw
d.code=nr.a.NO_ADS_RESPONSE,d.hint=".processDataXml()",d}var l=1===n?
i:n&&Array.from(i).filter(function(t){return null!
==t.getAttribute("sequence")});if(!l||!l.length){var c=Error("Malformed data xml.
Ad nodes not found.");throw
c.code=nr.a.NO_ADS_RESPONSE,c.hint=".processDataXml()",c}var
u=l[0];this.ad=u,u&&u.getAttribute&&u.getAttribute("id");var
h=u.querySelector('Extensions >
Extension[type="vnDefaultAd"]');h&&h.parentNode.removeChild(h);var
p=yi.call(this,t);if(p&&p instanceof Error)
{this.data.push({dataXml:t,defaultAdXml:h,parameters:null});var f=Error("Malformed
data xml");throw f.code=nr.a.NO_ADS_RESPONSE,f.hint=".processDataXml()",f}return
this.data.push({dataXml:t,defaultAdXml:h,parameters:p}),p}.call(this,t)},i.setAdVol
ume=function(e,i){if(!oo.a.call(this))return null;var n=(i=Bn({},{invoker:null},
{},i)).invoker,r=this.getControlInstance("volume");this._useExistsVideoSlot&&!
n&&r&&r.cancelVolumeUpdate();var o=this.canChangeVolume();return!this.vpaid||e&&!o?
void(this.canChangeVolume()&&(this.lastPendingVolumeCommand=this.setAdVolume.bind(t
his,e,i))):
(this.vpaid.setAdVolume(e,i),t.prototype.setAdVolume.call(this,e,i))},i._destroy=fu
nction(){var e=this,i=(this.options||{}).iframeRemoveDelay;if(!oo.c.call(this,
["destroying","destroyed"])){i&&(this._delayRemovingControls={containerIframe:
{delay:i}}),this.lastPendingCommands={},oo.d.call(this,"destroying"),Ko.g.call(this
,this.vnShowViqeo?["AdStarted"]:[]);var
n=this.vpaid,r=this.globalTimeoutProvider;this._restoreVideoSlotParams(),this._remo
veTimeout(Zo.b),r&&r.stop(),this.subscribeOnce(function()
{e.clearControlsCollection(),n&&(n.subscribeOnce(function()
{e.vpaid=null},"AdDestroyed"),n._destroy()),e.vnAdEvents&&e.vnAdEvents._destroy(),e
.vnPageChanged&&e.vnPageChanged._destroy(),e.format=null,e.data=[],oo.d.call(e,"des
troyed")},"AdDestroyed"),t.prototype._destroy.call(this)}},i._restoreVideoSlotParam
s=function(){var t=this.getControlUnionData("videoSlot")||
{},e=t.node,i=t.savedCss;if(e&&i&&i.length){var n=i[0].style;n&&Object(cr.b)
(e,n)}},i._saveVideoSlotParams=function(t){if(this._useExistsVideoSlot){var
e=this.getControlUnionData("videoSlot"),i=(t||e.node||{}).style,n=i?{style:
{width:i.width,height:i.height}}:null,r=e.savedCss;(r||
(r=[])).push(n),this.setControlData("videoSlot",{node:e.node||
t,savedCss:r})}},i._setFormat=function(t)
{this.format=t,this._destroyIframe(),t.hasReachInventoryFactory&&t.hasReachInventor
yFactory()&&!Object(dr.q)(this._getLastParameters())&&It(this),_i.call(this);var
e=t.getModuleOptions();e&&cs.b.call(this,e),t.subscribe(function(t)
{this.trigger("vnFormatStateChanged",t),t&&"isFloating"in
t&&(this.adIgnoreSizeErrorState=!
0===t.isFloating)}.bind(this),"vnFormatStateChanged",t),this.anckorElement=t.getAnc
horElement&&t.getAnchorElement();var i=t.getSlotSize&&t.getSlotSize()||
{},n=i.width,r=i.height;this.setControlData("vnMacros",{"[WIDTH]":n||
0,"[HEIGHT]":r||0});var o=kt(this);o&&Yo.h.call(this,o,!
0)},i._getLastDataXml=function(t){void 0===t&&(t=0);var e=this.data;if(!e||
e.length<t)return null;var i=e[e.length-(t+1)];return
i&&i.dataXml},i._getLastData=function(t){void 0===t&&(t=0);var e=this.data;return!
e||e.length<t?null:e[e.length-(t+1)]},i._getLastDefaultAdXml=function(t){void
0===t&&(t=0);var e=this._getLastData(t);return
e&&e.defaultAdXml},i._getLastParameters=function(t){void 0===t&&(t=0);var
e=this._getLastData(t);return
e&&e.parameters},i._updateLastParameters=function(t,e,i){void 0===i&&(i=0);var
n=this.data;if(n&&!(n.length<i)){var r=n.length-(i+1),o=n[r];if(!o)throw
Error("_updateLastParameters. Out of index ["+r+"]. data.length="+n.length+"
step="+i);var a=o.parameters;a||(a=o.parameters={});var s=a[t];a[t]=s?
[].concat(s,e).sort(function(t,e){return(t.orderIndex||0)-(e.orderIndex||
0)}):e}},i._failedData=function(t){var e=this,i=t||{},n=i.shouldAbort,r=void 0!
==n&&n,o=i.shouldResetPlugins,a=i.shouldDestroyVpaid,s=(t||
{}).errorEventParams,d=(this.options||{}).canExecuteNoAd;this._adStarted=!
1,this._adImpressionHappened=!1,this._adVideoWasStarted=!
1,this.lastPendingCommands={},this._adHasBeenLoaded=!1,this._completeWasTracked=!
1;var l=this._trackPassed;(this._track2Passed||!l?
Promise.resolve():Yo.j.call(this)).then(function(){e._trackPassed=!
1,e._track2Passed=!1;var
i=e.vnAfterplay,n=e.vpaid;if(n&&a&&(n._destroy&&n._destroy(),e.vpaid=null),0>e._ads
Left&&(!i||!i.shouldContinue())){var l=(e.options||{}).maxAds;return s||
(s={code:nr.a.GENERAL_VPAID_ERROR,message:"maxAds("+l+") option exceeded"}),void
e._abort({errorEventParams:s})}var c=null;do{var
u=e.getControlUnionData("vnNoAd")||{};if(e.popControlsDataStack(),c=(e.data.pop()||
{}).defaultAdXml,(!e.data.length&&!c||r)&&!e._runningVnNoAd)
{if(i&&i.shouldContinue()){var
h=e.mainProc,p=(i._getTotalSuccessfulPlays(),i._getSuccessfulPlays());if(h&&0<p)ret
urn i._incCycleCounter(),void h()}var f=s||{},g=f.code,v=f.message;return g||
(s={code:nr.a.GENERAL_VPAID_ERROR,message:v||"No playable sources
found"}),void(u&&!0===d?(e._runningVnNoAd=!0,Dt(e,u).then(function(){return
e.logger.log(".executing vnNoAd")}).catch(function(){return
e._abort({errorEventParams:s})})):e._abort({errorEventParams:s}))}}while(e.data.len
gth&&!c||r);(t||{}).logMessage;var b=e.filterFormatName;!
i&&n&&n._destroy&&n._destroy(),Wn.call(e,{xml:c,filters:b?{formatName:b}:
{},shouldResetPlugins:o})})},i._abort=function(t){var e=(t||{}).errorEventParams||
{},i=e.code,n=e.message,r=e.cancel;this.format&&this.format.abort(),this.vnShowViqe
o||r||!oo.b.call(this)||(
this.trigger("AdError",n||"",i),Ko.e.call(this,"AdError")),this._destroy()},i._repl
ay=function(){var
t=this.vpaid;t&&t._destroy&&t._destroy(),this._useExistsVideoSlot||
this.setControlData("videoSlot",{node:null}),this.vpaid=null,this._adStarted=!
1,this._adImpressionHappened=!1,this._adVideoWasStarted=!
1,this.lastPendingCommands={},this._adHasBeenLoaded=!1,this._completeWasTracked=!
1,Ln.call(this)},i._destroyIframe=function(){var
t=this,e=this.vnAfterplay;if(this.environmentVars&&this.environmentVars.iframe||
e&&e.shouldContinue())return!1;var i=this.getControlUnionData("iframe")||
{},n=i.node,r=i.removeDelay;return n&&(n.onload=null,r?setTimeout(function(){return
t._removeDOMNode(n)},r):this._removeDOMNode(n)),this.setControlData("iframe",
{node:null}),!0},i._applyLayout=function(t){var
e=this;Object.keys(t).forEach(function(i){var
n=e.getControlUnionData(i,"css"),r=t[i]||{};n=n?Bn({},n,
{},r):Bn({},r),e.setControlData(i,{css:n})})},i.isMediaUrlBlocked=function(t){var
e=this.getControlUnionData("vnCreativeBlock","urls");if(!e)return!1;var
i=Object.keys(e).some(function(i){return t.split("?")
[0].replace(/^(https*:)*\/\//,"").toLowerCase()===e[i]});return
i},i.setSelectedCreative=function(t,e,i){void 0===i&&(i=null);var
n=encodeURIComponent(t);if(n&&(this._media=n),i=i&&i.replace&&i.replace(/
[\t\n\r ]/gi,""),this.setControlData("vnMacros",
{"[ASSETURI]":n,"[ASSETDURATION]":e,"[ASSETADPARAMS]":i}),Yo.d.call(this)){var
r=Yo.c.call(this,"vnCreative:select")||{},o=r.urls,a=r.uniqueId,s=(o||[])
[0];s&&this.replaceMacros(s,a).then(po.c)}},i.replaceMacros=function(t,e){var
i=this;t=t.replace(/%%SITE%%/g,location&&location.hostname||"").replace(/%%SCHEME%
%/g,location&&location.protocol||"").replace(/%%.*?%%/g,"");var
n=Date.now(),r=t.includes("[TIME]")||t.includes("[REQUEST_STARTED]"),o=Object(pr.h)
(t);return Gn.call(this,o).then(function(){var
o=(i.getControlUnionData("vnTrackingParams")||
{}).trackingParams,a=Bn({},i.getControlUnionData("vnMacros"),{},o);if(r){var
s=function(t){var e=this._requestStartedData;if(!e||!e.length)return null;for(var
i=e.length-1;0<=i;i--){var n=e[i]||{},r=n.uniqueId,o=n.time;if(t===r)return
o}return null}.call(i,e)||null;a["[REQUEST_STARTED]"]=s||-1,a["[TIME]"]=s?n-s:-
1}return i.substituteMacroValue(t,a)})},i.substituteMacroValue=function(t,e){var
i=e||this.getControlUnionData("vnMacros");return i?
Object.keys(i).reduce(function(t,e){return
t&&t.replace(e,i[e])},t):t},i.canChangeVolume=function(){return oo.c.call(this,
["started","playing","paused","loaded"])},i.vpaidJsVideoSlotShouldBeMuted=function(
){return
this.options&&this.options.vpaidJsVideoSlotShouldBeMuted},i.isVpaidJs=function()
{return
this.vpaid&&~this.vpaid.toString().indexOf("VpaidJs")},i.getAnchorElement=function(
){return this.anckorElement},i.trigger=function(e){for(var
i=this,n=arguments.length,r=Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var
a=(this.getControlUnionData("vnEventsParams")||
{}).eventsParams,s=a&&a[e];Gn.call(this,s).then(function(n)
{r.length&&"object"==typeof r[0]?(r[0]=Bn({},r[0],
{},n),t.prototype.trigger.apply(i,[].concat(e,r))):t.prototype.trigger.apply(i,
[].concat(e,r,n))})},i.getAPI=function(){var
t=this;return{getMainModuleId:function(){return
t.mainModuleId},getFormat:function(){return t.format},getVpaid:function(){return
t.vpaid},setControlData:this.setControlData.bind(this),getControlUnionData:this.get
ControlUnionData.bind(this),getControlUnionDataGlobal:this.getControlUnionDataGloba
l.bind(this),getControlRawUnionData:this.getControlRawUnionData.bind(this),getContr
olRawUnionDataGlobal:this.getControlRawUnionDataGlobal.bind(this),getControlNode:th
is.getControlNode.bind(this),getVideoSlot:vo.c.bind(this),getControlInstance:this.g
etControlInstance.bind(this),getLastParameters:this._getLastParameters.bind(this),u
pdateLastParameters:this._updateLastParameters.bind(this),getOptions:function()
{return Bn({},t.options)},getEnvironmentVars:function(){return
Bn({},t.environmentVars)},extendEnvironmentVars:function(e){return Object(fr.g)
(t.environmentVars,e)},getAdWidth:function(){return
t.getAdWidth()},getAdHeight:function(){return
t.getAdHeight()},getIndents:vo.a.bind(this),saveVideoSlotParams:this._saveVideoSlot
Params.bind(this),getAdAspectRatio:this.getAdAspectRatio.bind(this),getAdSkippableS
tate:this.getAdSkippableState.bind(this),setAdSkippableState:this.setAdSkippableSta
te.bind(this),getAdRemainingTime:this.getAdRemainingTime.bind(this),getAdElapsedTim
e:this.getAdElapsedTime.bind(this),getAdDuration:this.getAdDuration.bind(this),resi
zeAd:this.resizeAd.bind(this),setWrapperSize:function(t){var
e=this.getControlNode("wrapper");return e&&Object(cr.b)(e,{height:Object(dr.s)
(t)}),e}.bind(this),inState:oo.c.bind(this),startAd:this.startAd.bind(this),pauseAd
:this.pauseAd.bind(this),resumeAd:this.resumeAd.bind(this),trackStrongUrls:Yo.l.bin
d(this),addVPAIDEventListener:function(e,i,n){return void
0===n&&(n=t),n._addVPAIDEventListener(t,e,i)},removeVPAIDEventListener:function(e,i
,n){return void
0===n&&(n=t),n._removeVPAIDEventListener(t,e,i)},isVpaidJs:this.isVpaidJs.bind(this
),trigger:this.trigger.bind(this),logger:this.logger,getState:function(){return
t.state},getTotalSuccessfulPlays:function(){return
t.vnAfterplay&&t.vnAfterplay._getTotalSuccessfulPlays()||
0},AdVideoStartWasHappenedAtLeastOnce:function(){return
t._AdVideoStartWasHappenedAtLeastOnce},getSavedAdParams:vo.b.bind(this),saveAdParam
s:vo.d.bind(this)}},i.getAdIframes=function(){var
t,e=this.vpaid,i=this.getControlNode("iframe");try{t=null!=i.contentWindow}catch(i)
{t=!1}var n=[];return
e&&e.getAdIframes&&(n=n.concat(e.getAdIframes())),n=n.concat(Promise.resolve(t?
i:window)),Promise.all(n).then(function(t){return t.filter(function(t){return
t})})},e}(ir.a);window.createVPAIDAd=function(t){return or.b.log("Requested new
module instance via window.createVPAIDAd()"),new
zl(t)},window.getVPAIDAd=function(t){return or.b.log("Requested module instance via
window.getVPAIDAd()"),new zl(t)}}]);