!function n(o,s,r){function a(t,e){if(!s[t]){if(!o[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(d)return d(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}i=s[t]={exports:{}},o[t][0].call(i.exports,function(e){return a(o[t][1][e]||e)},i,i.exports,n,o,s,r)}return s[t].exports}for(var d="function"==typeof require&&require,e=0;e','class="app"',function(e){this._adInstance=this.opts.adInstance,this.adData=this._adInstance.getAdStore().getState();var t=this;this._adInstance.getActionHandler().on("ad-state-updated",function(){t.adData=t._adInstance.getAdStore().getState(),t.update()})})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==e&&void 0!==e.exports?(e=t("riot"),o(e)):o(n.riot)},{"./components/ad.tag":33,"./mixins/action-cuepoint.js":51,"./mixins/action-swipe.js":52,"./mixins/action-touch.js":53,"./mixins/action-transitions.js":54,"./mixins/action-user.js":55,"./mixins/action.js":56,"./mixins/background.js":57,"./mixins/base.js":58,"./mixins/media-interop.js":59,"./mixins/rect.js":60,"./mixins/resize.js":61,"./mixins/rotator.js":62,"./mixins/styles.js":63,"./mixins/teardown.js":64,"./mixins/transitions.js":65,"./mixins/video.js":66,"./mixins/weblab.js":67,"./mixins/zoolander.js":68,riot:120}],33:[function(t,e,i){var n,o;n=this,o=function(e){t("./child.tag"),e.tag("ad",'
','class="ad"',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("background")})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==e&&void 0!==e.exports?(e=t("riot"),o(e)):o(n.riot)},{"./child.tag":36,riot:120}],34:[function(e,t,i){var n,o;n=this,o=function(e){e.tag("alphalfa",'
',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("transitions"),this.mixin("teardown"),this.mixin("video"),this.mixin("action"),this.mixin("action-cuepoint"),this.mixin("action-transitions");var t=this;this.addLoopConfig=function(e){var t=this.opts.data.video,i=t.loop;return!0===i&&(e.loop=i,null!=t.maxLoops)&&(e.maxLoops=t.maxLoops),e},this.addStillFrame=function(e){var t=this.opts.data.video;return null!=t.stillFrameMS?e.stillFrameMS=t.stillFrameMS:!0===t.loop&&0!==t.maxLoops&&window.Tarnhelm.log("Warning: No stillFrameMS set on a non-infinitely looping Alphalfa. It will disappear after its last loop."),e},this.addMaskUrl=function(e){var t=this.opts.data.video;return null!=t.maskUrl&&(e.maskUrl=t.maskUrl),e},this.initAlphalfa=function(){var e,t=this.getVideoEl();t&&"function"==typeof t.play&&(this.opts.data.isInvisible&&(t.autoplay=""),this.bufferEl=this.root.getElementsByTagName("canvas")[0],this.outputEl=this.root.getElementsByTagName("canvas")[1],e={video:t,buffer:this.bufferEl,output:this.outputEl,colorCorrect:!!this.opts.data.video.colorCorrect,forceCanvas:!!this.opts.data.video.forceCanvas,horizontalStack:!!this.opts.data.video.horizontalStack},e=this.addLoopConfig(e),e=this.addStillFrame(e),e=this.addMaskUrl(e),this.alphalfaPlayer=new ad_design.AlphalfaPlayer(e),this.alphalfaPlayer.listen(),this.shouldAutoplay)&&this.doAutoplay(t)},this.initCuepointEngine=function(){var e=this.getVideoEl();e&&(this.cuepointEngine=new ad_design.CuepointEngine({media:e,cuepoints:this.getCuePoints(),observer:this}))},this.play=function(e){e&&e.userInitiated&&(t.isPausedByUser=!1);e=t.getVideoEl();e&&"function"==typeof e.play&&e.play()},this.pause=function(e){e&&e.userInitiated&&(t.isPausedByUser=!0);e=t.getVideoEl();e&&"function"==typeof e.pause&&e.pause()},this.mute=function(){window.Tarnhelm.log("Alphalfa does not support mute and unmute actions.")},this.unmute=this.mute,this.reset=function(){var e=t.getVideoEl();e&&"number"==typeof e.currentTime&&(e.currentTime=0)},this.fullscreen=function(){window.Tarnhelm.log("Alphalfa does not support fullscreen and normalscreen actions.")},this.normalscreen=this.fullscreen,this.on("mount",function(){this.setVideoEl(this.root.getElementsByTagName("video")[0]),this.initAlphalfa(),this.initCuepointEngine()}),this.on("unmount",function(){this.fireSyntheticMediaPlaybackEvent("pause","alphalfa"),this.alphalfaPlayer.teardown(),this.cuepointEngine.destroy()})})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==t&&void 0!==t.exports?(t=e("riot"),o(t)):o(n.riot)},{riot:120}],35:[function(i,e,t){var n,o;n=this,o=function(e){e.tag("animaniac",'
',function(e){var t=i("../../modules/objectUtils.js");this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("transitions"),this.mixin("action"),this.mixin("action-user"),this.mixin("action-transitions"),this.initted=!1,this.createAnimation=function(){var e=t.clone(this.opts.data.animaniacOptions);e.injectEl=this.root.getElementsByClassName("animaniac")[0],e.url=this.opts.data.source,e.spriteHeight=this.opts.data.rect.height,e.spriteWidth=this.opts.data.rect.width,e.sheetHeight=this.opts.data.spriteSheetDimensions.height,e.sheetWidth=this.opts.data.spriteSheetDimensions.width,this.animaniac=new ad_design.Animaniac(e),this.initted=!0},this.addActionListeners=function(){var t=this,e=this.getAdInstance().getActionHandler();e.on("animaniac:play",function(e){t.canTriggerAction(e.componentName)&&t.animaniac.play()}),e.on("animaniac:pause",function(e){t.canTriggerAction(e.componentName)&&t.animaniac.pause()}),e.on("animaniac:play-animation",function(e){t.canTriggerAction(e.componentName)&&t.animaniac.playAnimation(e.data.animationName)})},this.destroyAnimation=function(){this.animaniac.pause(),this.initted=!1,this.animaniac=null},this.canTriggerAction=function(e){return this.initted&&e===this.opts.data.name},this.on("mount",function(){this.createAnimation(),this.addActionListeners()}),this.on("unmount",function(){this.destroyAnimation()})})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==e&&void 0!==e.exports?(e=i("riot"),o(e)):o(n.riot)},{"../../modules/objectUtils.js":23,riot:120}],36:[function(t,e,i){var n,o;n=this,o=function(e){t("./alphalfa.tag"),t("./animaniac.tag"),t("./countdown.tag"),t("./countdown-number-text.tag"),t("./countdown-number-custom.tag"),t("./countdowner.tag"),t("./gallery.tag"),t("./graphic.tag"),t("./panel.tag"),t("./minimal-video.tag"),t("./reely.tag"),t("./rotator.tag"),t("./rotatorbutton.tag"),t("./slider-rotator.tag"),t("./youtube.tag"),e.tag("child",'','data-comp-name="{ this.opts.name }"',function(e){this.mixin("base");var t,i=this,o=(this.opts.name&&(t=this.getAdInstance().getAdStore(),this.componentData=t.getComponentState(this.opts.name),this.on("update",function(){this.componentData=t.getComponentState(i.opts.name)})),this.getType=function(e){var t=[];return this.componentData&&this.componentData.type===e&&!this.componentData.isHidden&&t.push({data:this.componentData}),t},["mount","unmount","premount","update","updated","init"]);this.on("all",function(e){if(e&&-1===o.indexOf(e))for(var t in this.tags)for(var i=0,n=this.tags[t].length;i',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.frames=[],this.options={},this.createFrames=function(){for(var e=0;e {getDisplayValue()} ',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.updateTextStyle=function(){this.addStyleRule("font-size",this.determinedRect.height)},this.pad=function(e){return 9
',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("background"),this.mixin("transitions"),this.mixin("action"),this.mixin("action-user"),this.triggerBackgroundState=function(){this.opts.data.remaining.totalMs||this.opts.data.useAlternateBackground||!this.opts.data.alternateBackground||this.getAdInstance().getActionHandler().trigger({actionName:"set-alternate-background",componentName:this.opts.data.name})},this.on("update",function(){this.triggerBackgroundState(),this.setBackground()})})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==t&&void 0!==t.exports?(t=e("riot"),o(t)):o(n.riot)},{riot:120}],40:[function(e,t,i){var n,o;n=this,o=function(e){e.tag("countdowner",'
',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("zoolander"),this.initCountdowner=function(){for(var e=this.root.getElementsByClassName("th-countdown-inject")[0],t=this.getAdIframeZoolander(),i={el:e,targetDate:new Date(this.opts.data.targetDate),zoolander:t},n=["splitChar","hideAfterRelease","periodContainerCss","periodCountCss","doPad","printLabels","labelsBelow","labels","labelsCss"],o=0;o',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("background"),this.mixin("rect"),this.mixin("action"),this.mixin("action-swipe"),this.mixin("action-transitions");var t=this;this.currentIndex=0,this.maxIndex=this.opts.data.imageUrls.length-1,this.prevButton=null,this.nextButton=null,this.getPhotoData=function(e){return{name:this.opts.data.name+e,source:this.opts.data.imageUrls[e],rect:{anchorX:"right",anchorY:"top",offsetX:0,offsetY:0,height:this.opts.data.rect.height,width:this.opts.data.rect.width}}},this.on("swipeleft",function(){this.incrementIndex(),this.emitTrackingObject("intent","swipeLeft")}),this.on("swiperight",function(){this.decrementIndex(),this.emitTrackingObject("intent","swipeRight")}),this.incrementIndex=function(){t.currentIndex++,t.currentIndex>t.maxIndex&&(t.currentIndex=0),t.update()},this.decrementIndex=function(){t.currentIndex--,t.currentIndex<0&&(t.currentIndex=t.maxIndex),t.update()},this.onPrevClick=function(){this.emitTrackingObject("click","clickPrev"),this.decrementIndex()},this.onNextClick=function(){this.emitTrackingObject("click","clickNext"),this.incrementIndex()},this.on("mount",function(){this.attachTouchActions(),this.prevButton=t.root.getElementsByClassName("prev")[0],this.nextButton=t.root.getElementsByClassName("next")[0],this.prevButton.addEventListener("click",t.onPrevClick),this.nextButton.addEventListener("click",t.onNextClick)}),this.on("unmount",function(){this.detachTouchActions(),this.prevButton.removeEventListener("click",t.onPrevClick),this.nextButton.removeEventListener("click",t.onNextClick)})})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==e&&void 0!==e.exports?(e=t("riot"),o(e)):o(n.riot)},{"./graphic.tag":42,riot:120}],42:[function(e,t,i){var n,o;n=this,o=function(e){e.tag("graphic",'
{this.opts.data.description}{this.opts.data.description}{this.opts.data.description}
{this.opts.data.description}
',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("transitions"),this.mixin("action"),this.mixin("action-user"),this.mixin("action-transitions")})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==t&&void 0!==t.exports?(t=e("riot"),o(t)):o(n.riot)},{riot:120}],43:[function(e,t,i){var n,o;n=this,o=function(e){e.tag("minimal-video",'
',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("teardown"),this.mixin("video"),this.mixin("action"),this.mixin("action-cuepoint"),this.mixin("action-transitions"),this.log=function(e){window.Tarnhelm.log("[minimal-video]: "+e)},this.mixin("weblab"),this.mixin("media-interop");var i=this;this.setupVideoAttributes=function(){var e=this.opts.data.video,t=this.getVideoEl();t&&"function"==typeof t.play&&(!1===e.autoplay||e.canplaythroughRequired||(this.shouldObeyMediaInteroperability()||(t.autoplay=!0),this.doAutoplay(t)),e.canplaythroughRequired&&t.addEventListener("canplaythrough",function(){i.requestPlayback({userInitiated:!1})}),e.loop)&&(t.loop=!0)},this.play=function(e){var e=!(!e||!e.userInitiated),t=(e&&(i.isPausedByUser=!1),i.getVideoEl());t&&"function"==typeof t.play&&i.requestPlayback({userInitiated:e})},this.pause=function(e){e&&e.userInitiated&&(i.isPausedByUser=!0);e=i.getVideoEl();e&&"function"==typeof e.pause&&(e.pause(),i.setMediaPaused())},this.mute=function(){var e=i.getVideoEl();e&&"boolean"==typeof e.muted&&(e.muted=!0)},this.unmute=function(){var e=i.getVideoEl();e&&"boolean"==typeof e.muted&&(e.muted=!1)},this.reset=function(){var e=i.getVideoEl();e&&"number"==typeof e.currentTime&&(e.currentTime=0)},this.fullscreen=function(){window.Tarnhelm.log("Minimal video does not support fullscreen and normalscreen actions.")},this.normalscreen=this.fullscreen,this.minimalVideoListen=function(){var e=this.getVideoEl();e&&"function"==typeof e.addEventListener&&e.addEventListener("play",this.makeVisible)},this.minimalVideoTeardown=function(){var e=this.getVideoEl();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("play",this.makeVisible)},this.initCuepointEngine=function(){var e=i.getVideoEl();e&&(this.cuepointEngine=new ad_design.CuepointEngine({media:e,cuepoints:this.getCuePoints(),observer:this}))},this.on("mount",function(){this.makeInvisible(),this.setVideoEl(this.root.getElementsByTagName("video")[0]),this.setupVideoAttributes(),this.minimalVideoListen(),this.initCuepointEngine()}),this.on("unmount",function(){this.fireSyntheticMediaPlaybackEvent("pause","minimal-video"),this.setMediaEnded(),this.minimalVideoTeardown(),this.cuepointEngine.destroy()})})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==t&&void 0!==t.exports?(t=e("riot"),o(t)):o(n.riot)},{riot:120}],44:[function(e,t,i){var n,o;n=this,o=function(e){e.tag("panel",'
',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("background"),this.mixin("transitions"),this.mixin("action"),this.mixin("action-user"),this.mixin("action-transitions")})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==t&&void 0!==t.exports?(t=e("riot"),o(t)):o(n.riot)},{riot:120}],45:[function(e,t,i){var n,o;n=this,o=function(e){e.tag("reely",'
',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("teardown"),this.mixin("video"),this.mixin("zoolander"),this.mixin("action"),this.mixin("action-cuepoint"),this.mixin("action-transitions");var t=this,i=window.Tarnhelm.getDeviceInfo().isMobileDevice?40:20;this.determineControlBarConfig=function(e){if(!e)return{};for(var t=Object.keys(e),i={},n=0;n',function(e){var t=o("../stores/delegators/wrap.js"),i=o("../stores/retrievers/rotator.js"),n=(this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("rotator"),this.mixin("background"),this.mixin("transitions"),this.mixin("action"),this.mixin("action-transitions"),this.getAdInstance().getAdStore());this.activeChildName=this.opts.data.childNames[this.opts.data.activeIndex],this.setActiveChildName=function(){var e,t=this.opts.data.childNames[this.opts.data.activeIndex];t!==this.activeChildName&&((e=this).activeChildName=void 0,window.setTimeout(function(){e.activeChildName=t,e.update()},1))},this.on("update",this.setActiveChildName),this.hasWrapConfig=function(){return!(!this.opts.data.wrapConfig||!this.opts.data.wrapConfig.enabled)},this.updateWrap=function(){this.hasWrapConfig()&&t.triggerRotatorWrapSwap(this.opts.data,n.getState())},this.resizeAdContainer=function(){var e,t;"expander"===this.opts.data.name&&(e=window.Tarnhelm.getAd(n.getAdId()),t=i.getActiveChildComponent(this.opts.data,n.getComponentLibrary()),e.resizeAdContainer(t.rect))},this.on("update",this.updateWrap),this.on("update",this.resizeAdContainer)})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){n(e)}):void 0!==e&&void 0!==e.exports?(e=o("riot"),n(e)):n(i.riot)},{"../stores/delegators/wrap.js":73,"../stores/retrievers/rotator.js":79,riot:120}],47:[function(t,e,i){var n,o;n=this,o=function(e){t("./graphic.tag"),e.tag("rotatorbutton",'
',function(e){var n=this;this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("transitions"),this.mixin("action"),this.mixin("action-user"),this.mixin("action-transitions"),this.handleRotatorbuttonClick=function(e){var t,i;this.isActive()||(t=n.opts.data).rotatorName&&(i={actionName:"route",data:{rotatorConfigs:[{name:t.rotatorName,index:t.rotatorIndex}]}},t.rotatorConfigs&&t.rotatorConfigs.length&&(i.data.rotatorConfigs=i.data.rotatorConfigs.concat(t.rotatorConfigs)),i.data.showComponents=t.showComponents,i.data.hideComponents=t.hideComponents,this.getAdInstance().getActionHandler().trigger(i))},this.handleClickAndRotatorbuttonClick=function(e){this.handleClick(e),this.handleRotatorbuttonClick(e),this.hasAction("click")||this.emitTrackingObject("click","click")},this.getGraphicData=function(){var e=this.opts.data,t={description:e.description,source:e.source,hoverSource:e.hoverSource,fullAdHoverSource:e.fullAdHoverSource,disabledSource:e.disabledSource,rect:{anchorX:"left",anchorY:"top",offsetX:0,offsetY:0,height:e.rect.height,width:e.rect.width}};return this.isActive()&&(t.source=e.activeSource),t},this.isActive=function(){var e=this.getAdInstance().getAdStore().getComponentState(this.opts.data.rotatorName);return e&&this.opts.data.rotatorIndex===e.activeIndex},this.setCursor=function(){this.isActive()?this.removeStyleRule("cursor"):this.addStyleRule("cursor","pointer")},this.setState=function(){this.graphicData=this.getGraphicData(),this.setCursor()},this.setState(),this.on("update",function(){this.setState()})})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==e&&void 0!==e.exports?(e=t("riot"),o(e)):o(n.riot)},{"./graphic.tag":42,riot:120}],48:[function(l,e,t){var i,n;i=this,n=function(e){e.tag("slider-rotator",'
',function(e){var t,o,s,r,i,a,n=l("../../modules/numberUtils.js"),d=(this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("background"),this.mixin("rotator"),this.mixin("action"),this.mixin("action-transitions"),this.mixin("action-touch"),this.resting=!0,this.on("indexChanged",function(){this.startVisibleLoop(),this.handleIndexChanged()}),this.handleIndexChanged=function(){var e={actionName:"video:pause-all:under-ancestor",ancestorName:this.opts.data.name};this.triggerActions([e])},window.Tarnhelm.getDeviceInfo().canTransitionTransforms);d||window.Tarnhelm.log("Slider NOT supporting touch actions; We've determined that we cannot transition transforms."),this.addStyleRule("overflow","hidden"),this.addStyleRule("white-space","nowrap");this.getRestingStateOffset=function(){return this.opts.data.activeIndex*this.opts.data.rect.width*-1},this.getSliderStateData=function(){return{activeIndex:this.opts.data.activeIndex,slideWidth:this.opts.data.rect.width,restingOffset:this.getRestingStateOffset()}},this.getTransitionString=function(e){return"transform "+e+"s cubic-bezier(0.215, 0.610, 0.355, 1.000)"},this.getOffsetString=function(e){return"translate3d("+(e+"px")+",0,0)"},this.getMaxOffset=function(e,t){return this.isAtBeginning()?e+.35*t:e+t},this.getMinOffset=function(e,t){return this.isAtEnd()?e-.35*t:e-t},this.isAtBeginning=function(){return 0===this.opts.data.activeIndex},this.isAtEnd=function(){var e=this.opts.data.childNames.length-1;return this.opts.data.activeIndex===e},this.setOffsetDivStyle=function(e,t){var i=this.root.getElementsByClassName("js-offset")[0];this.setOffsetDivTransition(t,i),i.style.transform=this.getOffsetString(e)},this.setOffsetDivTransition=function(e,t){t=t||this.root.getElementsByClassName("js-offset")[0];t.style.transition=null==e?"none":this.getTransitionString(e)},this.currAnimProps=null,this.sliderHandleTouchStart=function(e){clearTimeout(this.slideCompleteTimeout),this.setOffsetDivTransition(null);var t=this.getSliderStateData();this.currAnimProps={hasMovedOffset:!1,currTouchStartOffset:this.parseCurrentOffset(),maxPan:this.getMaxOffset(t.restingOffset,t.slideWidth),minPan:this.getMinOffset(t.restingOffset,t.slideWidth)},this.startVisibleLoop(),this.emitTrackingObject("intent","touchStart")},this.sliderHandleTouchMove=function(e){var t=this.currAnimProps;!e||e.isVerticalMove?t&&t.hasMovedOffset&&(this.returnToResting(),this.currAnimProps=null):(t.hasMovedOffset=!0,this.getSliderStateData(),e=e.totalDistance.x,e=t.currTouchStartOffset+e,e=n.clamp(e,t.minPan,t.maxPan),this.setOffsetDivStyle(e,null))},this.sliderHandleTouchEnd=function(e){var t,i,n,o;this.currAnimProps=null,e&&!e.isVerticalMove&&(this.emitTrackingObject("intent","touchEnd"),t=this.getSliderStateData(),o=this.parseCurrentOffset(),o=this.getOffsetFromResting(t,o),i=0!==e.velocity.x,o=o<0,n=e.velocity.x<0,!(i&&o!=n)&&(i=o,n=this.testNeedsIndexChange(t,e),o=i&&this.isAtEnd()||!i&&this.isAtBeginning(),n)&&!o?(this.doSlideChange(e,t,i),this.emitTrackingObject("intent","swipe"+(i?"Left":"Right"))):this.returnToResting())},this.doSlideChange=function(e,t,i){var n=i?-1*t.slideWidth:t.slideWidth,t=t.restingOffset+n,n=.85*e.transitionLengthFactor,e=this.determineTransitionLength(t,n),n=(this.setOffsetDivStyle(t,e),i?this.incrementIndex:this.decrementIndex);this.callIndexChangeAfterTransition(n.bind(this),e)},this.callIndexChangeAfterTransition=function(e,t){clearTimeout(this.slideCompleteTimeout),t?this.slideCompleteTimeout=setTimeout(e,1e3*t):(e(),this.stopVisibleLoop())},this.testNeedsIndexChange=function(e,t){var i=!1;return(i=15t.left)e.push(n);else if(o.left>t.right)break}return e},this.startVisibleLoop=function(){this.resting&&(this.resting=!1,a())},this.stopVisibleLoop=function(){this.resting||(this.resting=!0,i())},i=function(){isNaN(t)||t===this.opts.data.activeIndex||(this.tags.child[t].trigger("slideDeactivated"),this.tags.child[this.opts.data.activeIndex].trigger("slideActivated"),t=this.opts.data.activeIndex)}.bind(this),a=function(){for(var e=this.determineVisibleSlides(),t=Math.min(e[0],o[0]),i=Math.max(e[e.length-1],o[o.length-1]),n=t;n<=i;n++)-1===e.indexOf(n)&&-1!==o.indexOf(n)?this.tags.child[n].trigger("slideMoveOut"):-1!==e.indexOf(n)&&-1===o.indexOf(n)&&this.tags.child[n].trigger("slideMoveIn");o=e,this.resting||requestAnimationFrame(a)}.bind(this)})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){n(e)}):void 0!==e&&void 0!==e.exports?(e=l("riot"),n(e)):n(i.riot)},{"../../modules/numberUtils.js":22,riot:120}],49:[function(e,t,i){var n,o;n=this,o=function(e){e.tag("youtube",'
',function(e){this.mixin("base"),this.mixin("styles"),this.mixin("rect"),this.mixin("background"),this.mixin("transitions"),this.mixin("action"),this.mixin("action-user"),this.mixin("video"),this.mixin("resize"),this.firstStart=!0,this.actionHandler=this.getAdInstance().getActionHandler();var t=this;this.loadYoutubeAPI=function(){window.onYouTubeIframeAPIReady=function(){window.Tarnhelm.triggerGlobalAction({actionName:"api-ready:youtube"})};var e="tarnhelm_yt_script",t=document.getElementById(e);t||((t=document.createElement("script")).id=e,t.src="https://www.youtube.com/iframe_api",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e))},this.getAutoplayValue=function(){return t.opts.data.video.autoplay?1:0},this.initYoutubePlayer=function(){t.player=new YT.Player(t.root.firstChild.firstChild,{height:t.opts.data.rect.height,width:t.opts.data.rect.width,videoId:t.opts.data.video.id,playerVars:{autohide:1,autoplay:t.getAutoplayValue(),rel:0,showinfo:0,wmode:"transparent"},events:{onStateChange:function(e){e.data===YT.PlayerState.PLAYING&&t.firstStart&&(t.firstStart=!1,t.handleEvent(e,"videoStart")),e.data===YT.PlayerState.ENDED&&t.handleEvent(e,"videoComplete")}}})},this.play=function(){t.player.playVideo()},this.pause=function(){t.player.pauseVideo()},this.mute=function(){t.player.mute()},this.unmute=function(){t.player.unMute()},this.reset=function(){t.player.stopVideo()},this.on("mount",function(){this.initVideoActionReceivers(),this.registerTeardownFunction(this.teardownVideoActionReceivers),window.YT?this.initYoutubePlayer():(this.actionHandler.one("api-ready:youtube",this.initYoutubePlayer),"function"!=typeof window.onYouTubeIframeAPIReady&&this.loadYoutubeAPI())}),this.on("unmount",function(){t.player.destroy()}),this.on("resize",function(){t.player.getIframe().style.width=t.determinedRect.width,t.player.getIframe().style.height=t.determinedRect.height})})},"function"==typeof define&&void 0!==define.amd?define(["riot"],function(e){o(e)}):void 0!==t&&void 0!==t.exports?(t=e("riot"),o(t)):o(n.riot)},{riot:120}],50:[function(e,t,i){t.exports={MINIMAL_VIDEO_NAME:"minimal-video",INLINE20_SLOT_NAME:"inline20",GRANTED:"granted",DENIED:"denied",PENDING:"pending"}},{}],51:[function(e,t,i){var e=e("riot"),n={start:"10ms",firstQuartile:"25%",midpoint:"50%",thirdQuartile:"75%",complete:"90%"};e.mixin("action-cuepoint",{init:function(){if(this.cuePoints=[],this.hasCuePointActions()){var e,t=this.getCuePointActions(),i=t.length,n=0;for(this.opts.data.video.viconst;n=e.HAVE_FUTURE_DATA?this.shouldObeyMediaInteroperability&&this.shouldObeyMediaInteroperability()?this.requestPlayback({userInitiated:!1}):(e.play(),this.initialAutoplay=!0):e.addEventListener("canplay",this.boundHandleCanPlay)},fireSyntheticMediaPlaybackEvent:function(e,t){var i="";try{i=this.getAdInstance().getDomNode().ownerDocument.defaultView.name}catch(e){i="unknown"}window.top.mediaOrchestrator&&window.top.mediaOrchestrator.publish("mediaPlaybackEvent",{type:e,slotName:i,timestamp:Date.now(),dispatcher:t,targetElementId:this.getVideoEl()?this.getVideoEl().id:"unknown"})}})},{riot:120}],67:[function(e,t,i){var n=e("riot"),o=e("../constants").MINIMAL_VIDEO_NAME,e={getBridge:function(){return window.NativeWebBridge||(window.top.ad_utils&&window.top.ad_utils.mediaOrchestratorBridge?window.top.ad_utils.mediaOrchestratorBridge:void 0)},shouldObeyMediaInteroperability:function(){var e;return window.mediaInteroperabilitySlotObeyOverrides&&window.mediaInteroperabilitySlotObeyOverrides[this.getSlotId()]?(this.unsubscribeSlotFromMediaOrchestrator(),!1):(e=window.top.Tarnhelm.getDeviceInfo(),void 0===this.getBridge()||!e||this.isNonQualifyingVideoForMediaInterop()?(this.overrideMediaInteroperabilityObedienceForSlot(),!1):!!e.isIMDbApp||window.top.ad_utils&&window.top.ad_utils.isResponsive())},overrideMediaInteroperabilityObedienceForSlot:function(){window.mediaInteroperabilitySlotObeyOverrides||(window.mediaInteroperabilitySlotObeyOverrides={}),window.mediaInteroperabilitySlotObeyOverrides[this.getSlotId()]=!0,this.unsubscribeSlotFromMediaOrchestrator()},unsubscribeSlotFromMediaOrchestrator:function(){var e;this.hasSubscribed&&(this.hasSubscribed=!1,this.setMediaEnded(),e=this.getBridge())&&e.updateAssetFrameLocation&&e.updateAssetFrameLocation(this.getSlotId(),{x:0,y:0,width:0,height:0})},isNonQualifyingVideoForMediaInterop:function(){return void 0!==this.data.video.useMediaInterop?!this.data.video.useMediaInterop:this.data.type===o&&this.videoEl&&this.videoEl.duration<=10}};n.mixin("weblab",e),t.exports={WeblabMixin:e}},{"../constants":50,riot:120}],68:[function(e,t,i){e("riot").mixin("zoolander",{getAdIframeZoolander:function(){var e=this.getAdInstance().getContainerFrame().contentWindow.document;return new ad_design.Zoolander({document:e,id:this.opts.data.name,prefixId:"#"+this.opts.data.name})}})},{riot:120}],69:[function(i,e,t){var o=i("riot"),s=i("../modules/events/adEvent.js"),n=i("../modules/injectCSS.js"),r=i("../modules/url.js");function a(e,t,i){var n=e.getActionHandler(),t=(i?n.trigger({actionName:s.ASSET_PRELOAD_TIMEOUT}):t&&n.trigger({actionName:s.ASSET_PRELOAD_FINISH}),i=e,o.mount(i.getDomNode(),{adInstance:i}),i.initAfterMount(),n.trigger({actionName:s.AD_DISPLAYED}),e.getAdStore().getSecondaryAssetUrls());r.preloadUrls(t)}i("./app.tag"),e.exports={injectStyles:function(e){var t=i("../../css/ad.min.css.js");n.beforeNode(t,e)},mountAd:function(e){var t,i=e.getAdStore().getPrimaryAssetUrls();i&&i.length?(e.getActionHandler().trigger({actionName:s.ASSET_PRELOAD_START}),t=a.bind(null,e,!0),r.preloadUrlsWithCallback(i,t)):a(e)}}},{"../../css/ad.min.css.js":3,"../modules/events/adEvent.js":12,"../modules/injectCSS.js":18,"../modules/url.js":29,"./app.tag":32,riot:120}],70:[function(e,t,i){e("riot");var n=e("../../modules/countdownTimer.js"),r=e("../../modules/objectUtils.js"),o=e("./retrievers/asset.js"),s=e("./retrievers/background.js"),a=e("./retrievers/component.js"),d=e("./retrievers/dateRange.js"),l=e("./retrievers/rect.js"),u=(e("./retrievers/scale.js"),e("./retrievers/wrap.js")),c=e("./delegators/router.js"),h=(e("./delegators/transition.js"),e("./delegators/wrap.js")),p=["route","rotator:show-index","rotator:show-named-child","rotator:increment-index","rotator:decrement-index","minimize-ad","maximize-ad","hide-component","show-component"],m=["actions","background","css","defaultLink","frameProperties","frequencyCappedInit","id","isScalable","name","trackingConfigs"],f=["rect","frameProperties","spriteSheetDimensions"],g=["background","alternateBackground"],v="_orig",e="video",_="rotator",y="graphic",b="countdown",w={countdown:b,"countdown-number-text":b,"countdown-number-custom":b,rotator:_,"slider-rotator":_,graphic:y,rotatorbutton:y,reely:e,alphalfa:e,"minimal-video":e};function A(e,i,t){var n=this;this._adJson=e,this._options=t,this.actionHandler=i,this.componentNameIterator=0,this.setInitialState(e),this.initComponentTree(this._adJson),this.scaleAdToWidth(t.adWidth),this.initCountdownTimers(),i.on(p.join(" "),function(e,t){n.handleRoutingAction(t)}),i.on("set-wrap-background",function(e){e=n.state.wrapLibrary[e.wrapName];h.triggerWrapSwap(e)}),i.on("make-invisible",function(e){e=n.state.componentLibrary[e.componentName];e.isInvisible||(e.isInvisible=!0,i.trigger({actionName:"ad-state-updated"}))}),i.on("make-visible",function(e){e=n.state.componentLibrary[e.componentName];null!=e.isInvisible&&e.isInvisible&&(e.isInvisible=!1,i.trigger({actionName:"ad-state-updated"}))}),i.on("set-alternate-background",function(e){n.state.componentLibrary[e.componentName].useAlternateBackground=!0,i.trigger({actionName:"ad-state-updated"})}),i.on("unset-alternate-background",function(e){n.state.componentLibrary[e.componentName].useAlternateBackground=!1,i.trigger({actionName:"ad-state-updated"})}),i.on("scale-ad-to-width",function(e){e&&e.data&&e.data.width?n.scaleAdToWidth(e.data.width):window.Tarnhelm.log('Cannot scale ad, action "scale-ad-to-width" did not provide a valid width. Action:',e)}),i.on("enable-navigation-components",function(e){n.state.navigationComponentsDisabled&&(n.state.navigationComponentsDisabled=!1,i.trigger({actionName:"ad-state-updated"}))}),i.on("disable-navigation-components",function(e){n.state.navigationComponentsDisabled||(n.state.navigationComponentsDisabled=!0,i.trigger({actionName:"ad-state-updated"}))}),i.on("trigger-action-collection",function(e){var t;e.collectionName?(t=n.state.actions.collections[e.collectionName])&&t.length?i.triggerMany(t):window.Tarnhelm.log('Collection "'+e.collectionName+'" was not found in ad "'+n.state.name+'"'):window.Tarnhelm.log("Unable to trigger a collection of actions, missing collectionName")})}A.prototype={setInitialState:function(e){this.state=this.getStaticAdData(e),this.state.actions=this.state.actions||{},this.state.actions.collections=this.state.actions.collections||{},this.state.navigationComponentsDisabled=!1,this.state.scaleData={currentScale:1,currentWidth:this.state.frameProperties.width,pixelDensity:window.devicePixelRatio||1},this.state.countdownTimers={},this.state.componentLibrary={},this.state.componentNamesByType={},this.state.componentNamesByCategory={},this.state.activeSortedDateRanges=d.getActiveSortedDateRanges(window.Tarnhelm.getNowTime(),e.dateRanges),this.state.assetLibrary=this.buildAssetLibrary(),this.state.wrapLibrary=u.generateWrapLibrary(e.wraps,this.state.assetLibrary)},getStaticAdData:function(e){for(var t={},i=0;i=new Date(t[n].start).getTime()&&i.push(t[n]);return i.sort(this.compareDateRanges)}}},{}],78:[function(e,t,i){var l=e("./scale.js"),r=["offsetX","offsetY","width","height"],u={offsetX:"width",offsetY:"height",width:"width",height:"height"};t.exports={getDimensions:function(e){return{height:e.height,width:e.width}},getScaledRect:function(e,t){if("object"==typeof e){for(var i={},n=0;n=this.maxLoops&&(this.video.pause(),this.loopedNum=0))},freezeOrClear:function(){this.stillFrameInS?this.freezeOnStill(this.stillFrameInS):this.clearOnEnd()},freezeOnStill:function(e){this.video.pause(),this.boundFreezeFrameOnSeeked=this._freezeFrameOnSeeked.bind(this),this.video.addEventListener("seeked",this.boundFreezeFrameOnSeeked);var t=this.video.duration-.05;this.video.currentTime=t=this.maxLoops}},t.exports=n},{}],95:[function(e,t,i){function n(e){this.injectEl=e.injectEl,this.animations={},this.animationConfigs=e.animations,this.autoplayAnimationName=e.autoplay,this.pauseFrame=e.pauseFrame||0,this.sprites={width:e.spriteWidth,height:e.spriteHeight},this.sheet={width:e.sheetWidth,height:e.sheetHeight},this.url=e.url,this.ready=!1,this.init()}var l=e("./animaniac-animation.js");e("../polyfills/request-animation-frame.js");n.prototype={doDebug:!1,log:function(){var e;this.doDebug&&(e=["Animaniac: "].concat(arguments),window.console.log.apply(window.console,e))},init:function(){this.el=document.createElement("div"),this.el.className="animaniac",this.setInitialStyle(),this.prepareCoords()},setInitialStyle:function(){for(var e={display:"block",width:this.sprites.width+"px",height:this.sprites.height+"px",backgroundColor:"transparent",backgroundPosition:"0 0",backgroundRepeat:"no-repeat",backgroundSize:this.sheet.width+"px "+this.sheet.height+"px"},t=Object.keys(e),i=0;ithis.currentAnimation.frameSpeed?(this.nextFrame(),this.timeSince=0):(this.timeSince+=e-this.lastTS,this.lastTS=e),this.isPaused()?this.showCoords(this.pauseCell):window.requestAnimationFrame(this.boundHandleRequestAnimationFrame)},nextFrame:function(){var e=this.currentAnimation,t=e.currentFrame,i=e.frames[t];this.showCoords(i),this.hasNextFrame(e,t)?e.currentFrame++:e.loop&&!e.overMaxLoops()?(e.incrementLoopCount(),e.currentFrame=0):(i=e.onCompleteCallback,this.isValidCallback(i)&&(t=i.args||[],i.callback.apply(i.thisArg,t)),"string"==typeof e.onComplete?this.playAnimation(e.onComplete):this.pause())},isValidCallback:function(e){return!!e&&e.callback&&e.thisArg},hasNextFrame:function(e,t){return!!e.frames[t+1]},showCoords:function(e){var t=e;void 0!==e&&null!=e.x&&null!=e.y||(this.log('Bad coords object passed to "showCoords".'),t=this.pauseCell),this.el.style.backgroundPosition=t.x+"% "+t.y+"%"},setAnimationCoords:function(e){for(var t=0;t=t;)i.push(n);return i},getFrameSpeed:function(e){return 1e3/e}},t.exports=n},{"../polyfills/request-animation-frame.js":100,"./animaniac-animation.js":94}],96:[function(e,t,i){function n(e){e.targetDate||console.warn("Countdowner :: Required argument not provided."),this.el=e.el||document.createElement("div"),this.id="countdowner-"+Date.now()+Math.floor(1e4*Math.random()),this.init(e)}var o=e("./zoolander.js");n.prototype={defaults:{splitChar:"",doPad:!1,hideAfterRelease:!1,periods:["days","hours","minutes","seconds"],periodContainerCss:{display:"inline-block"},periodCountCss:{display:"inline-block"},labels:["Days","Hrs","Mins","Secs"],printLabels:!1,labelsBelow:!0,labelsCss:{display:"inline-block"}},classPrefix:"cd-",init:function(e){this.targetDate=this.determineTargetDate(e.targetDate),this.setConfig(e),e.hideAfterRelease&&this.timeRemaining()<=0||(this.zoo=e.zoolander||new o,this.injectCss(),this.initializeHtml(),this.printLabels&&this.initializeLabels(),this._render(),this.renderBind=this._render.bind(this),clearInterval(this.renderInterval),this.renderInterval=setInterval(this.renderBind,1e3))},setConfig:function(e){var t,i=this.addDefaults(e);for(t in delete i.targetDate,i)i.hasOwnProperty(t)&&(this[t]=i[t])},addDefaults:function(e){var t,i=e;for(t in this.defaults)!this.defaults.hasOwnProperty(t)||this.isDefined(e[t])||(i[t]=this.defaults[t]);return i},determineTargetDate:function(e){var t;return"object"==typeof e&&this.isDefined(e.month)?(t=e.date||e.day,t=new Date(e.year,e.month-1,t)):"object"==typeof e&&e instanceof Date?t=e:"string"==typeof e?t=new Date(e):console.warn("No date or invalid date provided. Aborting Countdowner."),t},makeEl:function(e,t){var t=this.isDefined(t)?t:"div",i=document.createElement(t);if("string"==typeof e)i.classList.add(this.classPrefix+e);else for(var n=0;ne?t:i;return i}function c(e){null!==t&&b(),void 0===(t=e)||"VIDEO"!==t.tagName&&"AUDIO"!==t.tagName||(y(),0t.time?1:0}function p(){var e;if(d&&0!==d.length){for(e=d.length-1;-1!==e;e--)d[e].adjustToDuration(t.duration);d.sort(h),o=u(t.currentTime)}}function m(){o&&(o.time,1)&&null!==o.time&&t&&(t.currentTime,1)&&null!==t.currentTime&&o.time<=t.currentTime&&(s=o,n||(s.trigger(t),i.notify(T.onCuepoint,[s,t])),o=u(t.currentTime)),r&&window.requestAnimationFrame(m)}function f(){o=u(t.currentTime)}function g(){r=!0,m()}function v(){r=!1}function _(){r&&"hidden"===document.visibilityState&&t.addEventListener("timeupdate",m),"hidden"!==document.visibilityState&&t.removeEventListener("timeupdate",m)}function y(){a||(a=!0,t.addEventListener("durationchange",p),t.addEventListener("seeked",f),t.addEventListener("playing",g),t.addEventListener("pause",v),t.addEventListener("ended",v),t.addEventListener("abort",v),t.addEventListener("emptied",v),t.addEventListener("error",v),t.addEventListener("stalled",v),t.addEventListener("waiting",v),document.addEventListener("visibilitychange",_))}function b(){a&&(a=!1,t.removeEventListener("durationchange",p),t.removeEventListener("seeked",f),t.removeEventListener("playing",g),t.removeEventListener("pause",v),t.removeEventListener("ended",v),t.removeEventListener("abort",v),t.removeEventListener("emptied",v),t.removeEventListener("error",v),t.removeEventListener("stalled",v),t.removeEventListener("waiting",v),t.removeEventListener("timeupdate",m),document.removeEventListener("visibilitychange",_))}function w(e){((e,t)=>{for(var i,n=!1,o=Object.keys(t),s=o.length,r=0;r{for(var t,i={},n=e.replace(/(\D{1,})([\d])/g,"$1,$2").split(","),o=0,s=n.length;o{var i;switch(!0){case"s"===t:i=e;break;case"%"===t:i=e/100;break;default:i=e/1e3}return i})(i,a),n.name=e.hasOwnProperty("name")?e.name:"Unnamed Cuepoint",n.type=e.hasOwnProperty("type")?e.type:"cuepoint",n.data=e.hasOwnProperty("data")?e.data:{},e.hasOwnProperty("callback")&&"function"==typeof e.callback&&(n.callback=e.callback),n.trigger=function(e){return n.callback&&n.callback(n,e),t.push(Date.now()),n},n.reset=function(){t=[]},n.getHistory=function(){return t},n.adjustToDuration=function(e){var t;return"%"===a&&(t=e*(i/100),n.time=t),n.endOffset&&(t=e+i/1e3,n.time=t),n},n}},{}],99:[function(e,t,i){e={AlphalfaPlayer:e("./alphalfa/alphalfa.js"),Animaniac:e("./animaniac/animaniac.js"),Countdowner:e("./countdowner.js"),CuepointEngine:e("./cuepoints/cuepoint-engine.js"),Reely:e("./reely/reely.js"),Uatu:e("./uatu.js"),Zoolander:e("./zoolander.js")};window.ad_design=e,t.exports=e},{"./alphalfa/alphalfa.js":88,"./animaniac/animaniac.js":95,"./countdowner.js":96,"./cuepoints/cuepoint-engine.js":97,"./reely/reely.js":111,"./uatu.js":112,"./zoolander.js":118}],100:[function(e,t,i){for(var s=0,n=["webkit","moz"],o=0;o=this.PROGRESS_TICKS_TO_SHOW)&&this.show()},onTimeUpdate:function(){this.progressTicks=0,this.hide()},hide:function(){this.isHidden||(this.isHidden=!0,o.add(this.el,o.HIDDEN),o.remove(this.spinner,o.TRANSPARENT))},show:function(){this.isHidden&&(this.isHidden=!1,o.remove(this.el,o.HIDDEN),o.remove(this.spinner,o.TRANSPARENT))},injectLoadingSpinnerCSS:function(){var e="loading-spinner-spin";this.zoo.insertKeyframes(e,this.getSpinnerKeyframes());var t=(t=[]).concat(this.getSpinnerStyles());this.zoo.insertRules(t),this.zoo.insertAnimation("."+o.LOADING_SPINNER,"animation",e+" 1.6s linear infinite")},getSpinnerKeyframes:function(){return{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(359deg)"}}},getSpinnerStyles:function(){return[["."+o.LOADING_SPINNER+"-outer-container",{position:"absolute",top:"50%",left:"50%",height:0,width:0}],["."+o.LOADING_SPINNER+"-inner-container",{display:"block",height:"64px",width:"64px",transform:"translate(-50%, -50%)"}],["."+o.LOADING_SPINNER,{display:"block","box-sizing":"border-box",height:"64px",width:"64px",background:"transparent","border-radius":"50%","border-top":"7px solid rgba(255, 255, 255, 1)","border-right":"7px solid rgba(255, 255, 255, 0.5)","border-bottom":"7px solid rgba(255, 255, 255, 0.5)","border-left":"7px solid rgba(255, 255, 255, 0.5)",transition:"opacity 1s ease-out"}]]}},t.exports=n},{"./reely-css-classes.js":103,"./reely-el-maker.js":104,"./reely-events.js":106}],108:[function(e,t,i){function n(e,t){this.eventBus=e.eventBus,this.spritesheet=e.spritesheet,this.spriteDimensions=e.spriteDimensions,this.slate=e.slate,this.zoo=e.zoo,this.loadingSpinner=new a(e),this.init(t)}var o=e("./reely-css-classes.js"),s=e("./reely-el-maker.js"),r=e("./reely-events.js"),a=e("./reely-loading-spinner.js");n.prototype={init:function(e){this.el=s.make("div",o.OVERLAY_CONTAINER),this.reely=e,this.isPlaying(!1),this.isEnded(!1),this.showSlate(),this.playReplay=s.createLargeTwoStateButton("overlay-play-pause",[{defaultIconName:"overlay-play",hoverIconName:"overlay-play-hover"},{defaultIconName:"overlay-replay",hoverIconName:"overlay-replay-hover"}]),this.el.appendChild(this.playReplay),this.el.appendChild(this.loadingSpinner.el),this.hide(),this.broadcastInteraction(),this.injectOverlayStyles(),this.listen()},hide:function(){o.add(this.playReplay,o.TRANSPARENT)},show:function(){o.remove(this.playReplay,o.TRANSPARENT)},hideSlate:function(){o.remove(this.el,o.OVERLAY_SLATE)},showSlate:function(){o.add(this.el,o.OVERLAY_SLATE)},listen:function(){this.eventBus.addEventListener(r.VID_CANPLAY,this.onCanPlay,this),this.eventBus.addEventListener(r.SCRUBBER_BAR_CLICK,this.onScrubberBarClick,this),this.eventBus.addEventListener(r.VID_PLAY,this.onPlay,this),this.eventBus.addEventListener(r.VID_PAUSE,this.onPause,this),this.eventBus.addEventListener(r.VID_ENDED,this.onVideoEnded,this)},teardown:function(){this.loadingSpinner.teardown(),this.el.removeEventListener("click",this.eventBus.triggers[r.PLAY_PAUSE_TOGGLE]),this.el.removeEventListener("mouseenter",this.eventBus.triggers[r.MOUSE_IN]),this.el.removeEventListener("mouseleave",this.eventBus.triggers[r.MOUSE_OUT]),this.el.removeEventListener("mousemove",this.eventBus.triggers[r.MOUSE_MOVE]),this.eventBus.removeEventListener(r.VID_CANPLAY,this.onLoadedMetadata,this),this.eventBus.removeEventListener(r.SCRUBBER_BAR_CLICK,this.onScrubberBarClick,this),this.eventBus.removeEventListener(r.VID_PLAY,this.onPlay,this),this.eventBus.removeEventListener(r.VID_PAUSE,this.onPause,this),this.eventBus.removeEventListener(r.VID_ENDED,this.onVideoEnded,this)},broadcastInteraction:function(){var e=this.eventBus.triggers[r.PLAY_PAUSE_TOGGLE],t=this;this.el.addEventListener("click",function(){return t.reely&&(t.reely.isPausedByUser=t.reely.isPlaying()),e()}),this.el.addEventListener("mouseenter",this.eventBus.triggers[r.MOUSE_IN]),this.el.addEventListener("mouseleave",this.eventBus.triggers[r.MOUSE_OUT]),this.el.addEventListener("mousemove",this.eventBus.triggers[r.MOUSE_MOVE])},onCanPlay:function(){this.isPlaying()||this.show()},onScrubberBarClick:function(){this.setToPlayIcon(),this.hideSlate()},onPlay:function(){this.setToPlayIcon(),this.isEnded(!1),this.isPlaying(!0),this.hide(),this.hideSlate()},onPause:function(){this.isPlaying(!1),this.show()},onVideoEnded:function(){this.setToReplayIcon(),this.isEnded(!0),this.show(),this.showSlate()},setToPlayIcon:function(){o.remove(this.playReplay,o.TOGGLED)},setToReplayIcon:function(){o.add(this.playReplay,o.TOGGLED)},isPlaying:function(e){return null!=e&&(this._isPlaying=e),this._isPlaying},isEnded:function(e){return null!=e&&(this._isEnded=e),this._isEnded},injectOverlayStyles:function(){var e=[];e=(e=(e=(e=e.concat(this.getContainerStyles())).concat(this.getSlateStyles())).concat(this.getButtonStyles())).concat(this.getHoverOverrideStyles()),this.zoo.insertRules(e)},getContainerStyles:function(){return[["."+o.OVERLAY_CONTAINER,{position:"absolute",top:0,left:0,display:"block",height:"100%",width:"100%",cursor:"pointer","text-align":"center"}],["."+o.OVERLAY_CONTAINER+" *",{visibility:"inherit"}]]},getSlateStyles:function(){return this.slate?[["."+o.OVERLAY_SLATE,{background:"url("+this.slate+") no-repeat center center transparent","background-size":"contain"}]]:[]},getButtonStyles:function(){return[["."+o.OVERLAY_CONTAINER+" ."+o.TWO_STATE_BUTTON,{top:"50%",left:"50%"}],["."+o.OVERLAY_CONTAINER+" ."+o.BUTTON_ICON_LARGE,{transform:"translate(-50%, -50%)"}],["."+o.BUTTON_ICON_LARGE,{height:this.spriteDimensions.overlaySpriteHeight+"px",width:this.spriteDimensions.overlaySpriteWidth+"px",padding:this.spriteDimensions.buttonPadding+"px"}]]},getHoverOverrideStyles:function(){var e=o;return[[["."+e.OVERLAY_CONTAINER+" ."+e.TWO_STATE_BUTTON+" ."+e.TWO_STATE_DEFAULT,"."+e.OVERLAY_CONTAINER+" ."+e.TWO_STATE_BUTTON+" ."+e.TWO_STATE_DEFAULT],{visibility:"inherit"}],[["."+e.OVERLAY_CONTAINER+" ."+e.BUTTON+" ."+e.ICON_DEFAULT,"."+e.OVERLAY_CONTAINER+":hover ."+e.BUTTON+" ."+e.ICON_HOVER],{opacity:1}],[["."+e.OVERLAY_CONTAINER+":hover ."+e.BUTTON+" ."+e.ICON_DEFAULT,"."+e.OVERLAY_CONTAINER+" ."+e.BUTTON+" ."+e.ICON_HOVER],{opacity:0}],[["."+e.OVERLAY_CONTAINER+":hover ."+e.BUTTON+" ."+e.ICON_DEFAULT,"."+e.OVERLAY_CONTAINER+" ."+e.BUTTON+" ."+e.ICON_HOVER],{transition:"opacity 0.2s linear"}],["."+e.OVERLAY_CONTAINER+":hover ."+e.BUTTON+" ."+e.ICON_DEFAULT,{transition:"opacity 0s linear 0.2s"}]]}},t.exports=n},{"./reely-css-classes.js":103,"./reely-el-maker.js":104,"./reely-events.js":106,"./reely-loading-spinner.js":107}],109:[function(e,t,i){function n(e){this.eventBus=e.eventBus,this.spritesheet=e.spritesheet,this.spriteDimensions=e.spriteDimensions,this.zoo=e.zoo,this.init()}var o=e("./reely-css-classes.js"),s=e("./reely-el-maker.js"),r=e("./reely-events.js");n.prototype={init:function(){this.el=s.make("div",o.SCRUBBER_CONTAINER),this.el.addEventListener("click",this.onScrubberClick.bind(this)),this.els=this.createScrubberBarEls(),this.appendEls(),this.injectScrubberStyles(),this.listen()},getEl:function(){return this.el},appendEls:function(){this.el.appendChild(this.els.bg),this.el.appendChild(this.els.buffered),this.el.appendChild(this.els.played),this.el.appendChild(this.els.thumb)},createScrubberBarEls:function(){var e={};return e.bg=s.createRepeatXSprite("scrubber-bg"),e.bg.style.width="100%",e.played=s.createRepeatXSprite("scrubber-played-bg"),e.played.style.width=0,e.buffered=s.createRepeatXSprite("scrubber-buffered-bg"),e.buffered.style.width=0,e.thumb=s.createButtonState({defaultIconName:"scrubber-tab",hoverIconName:"scrubber-tab-hover"},o.BUTTON+"-scrubber-tab"),e},listen:function(){this.eventBus.addEventListener(r.VID_TIMEUPDATE,this.onTimeUpdate,this),this.eventBus.addEventListener(r.VID_PLAY,this.onPlay,this)},teardown:function(){this.eventBus.removeEventListener(r.VID_TIMEUPDATE,this.onTimeUpdate,this),this.eventBus.removeEventListener(r.VID_PLAY,this.onPlay,this)},onPlay:function(e){this.lastUpdateMs=Date.now()},onTimeUpdate:function(e){var t,i=Date.now(),e=(this.lastUpdateMs&&(t=(i-this.lastUpdateMs)/1e3),e.target),n=e.currentTime/e.duration,n=(this.setScrubberBar(n,t),this.determineBufferedFraction(e.buffered,e.duration));this.setBufferBar(n),this.lastUpdateMs=i},setScrubberTransition:function(e){e?(this.els.played.style.transition="width "+e+"s linear",this.els.thumb.style.transition="left "+e+"s linear"):(this.els.played.style.transition="",this.els.thumb.style.transition="")},onScrubberClick:function(e){o.contains(e.target,"reely-icon")||(e=(void 0!==e.offsetX?e.offsetX:e.layerX)/this.el.clientWidth,this.eventBus.trigger(r.SCRUBBER_BAR_CLICK,{clickedFraction:e}))},setScrubberBar:function(e,t){this.playedFraction=e,this.transitionInS=t,this.setScrubberTransition(this.transitionInS||void 0);e=100*this.playedFraction;this.els.played.style.width=e+"%",this.els.thumb.style.left=e+"%"},setBufferBar:function(e){this.els.buffered.style.width=100*e+"%"},determineBufferedFraction:function(e,t){for(var i=0,n=0,o=0;o{var e,t="-webkit",i="-moz",n="-ms",s={"box-shadow":[t],transform:[t,n,i,"-o"],perspective:[t,n],"box-sizing":[t,n,i],"background-size":[t],"user-select":[t,i,n],animation:[t,i,"-o"],transition:[t,i,"-o"],filter:[t,i,n,"-o"]},o=[];for(e in s)s.hasOwnProperty(e)&&o.push(e);return{needsFixer:function(e){return-1!==o.indexOf(e)},prefixedProps:function(e){var t=[e];if(this.needsFixer(e))for(var i,n=s[e],o=0;o{for(var t={},i=0,n=["top","right","bottom","left"];ie.indexOf(O(0))<0?(e=e.replace(/\n|\r\n?/g,"\n"),function(){return e}):(e=e.replace(O(/\\{/g),"￰").replace(O(/\\}/g),"￱"),t=((i,e)=>{var n=[];return e.map(function(e,t){t=i.indexOf(e),n.push(i.slice(0,t),e),i=i.slice(t+e.length)}),i&&n.push(i),n})(e,Z(e,O(/{/),O(/}/))),e=2!==t.length||t[0]?"["+t.map(function(e,t){return t%2?Q(e,!0):'"'+e.replace(/\n|\r\n?/g,"\\n").replace(/"/g,'\\"')+'"'}).join(",")+'].join("")':Q(t[1]),new Function("d","return "+e.replace(/\uFFF0/g,O(0)).replace(/\uFFF1/g,O(1))+";")))(e)))(t)});function Q(e,t){return e=e.replace(/\n|\r\n?/g," ").replace(O(/^[{ ]+|[ }]+$|\/\*.+?\*\//g),""),/^\s*[\w- "']+ *:/.test(e)?"["+Z(e,/["' ]*[\w- ]+["' ]*:/,/,(?=["' ]*[\w- ]+["' ]*:)|}|$/).map(function(e){return e.replace(/^[ "']*(.+?)[ "']*: *(.+?),? *$/,function(e,t,i){return i.replace(/[^&|=!><]+/g,J)+'?"'+t+'":"",'})}).join("")+'].join(" ").trim()':J(e,t)}function J(e,t){return(e=e.trim())?"(function(v){try{v="+e.replace($,function(e,t,i){return i?'(("'+i+K+i+")":e})+"}catch(e){}return "+(!0===t?'!v&&v!==0?"":v':"v")+"}).call(d)":""}function Z(o,e,t){var s,r=0,a=[],e=new RegExp("("+e.source+")|("+t.source+")","g");return o.replace(e,function(e,t,i,n){!r&&t&&(s=n),(r+=t?1:-1)||null==i||a.push(o.slice(s,n+i.length))}),a}te={tr:"tbody",th:"tr",td:"tr",tbody:"table",col:"colgroup"},h="div",ee=G&&G<10;var ee,te,h,ie=function(e){var t,i,n,o=e&&e.match(/^\s*<([-\w]+)/),s=o&&o[1].toLowerCase(),r=p(te[s]||h);return r.stub=!0,ee&&s&&(o=s.match(H))?(t=r,i=e,s=s,o=!!o[1],n=p(h),o=o?"select>":"table>",n.innerHTML="<"+o+i+"{var n,e=new g(e,{root:t,parent:i},t.innerHTML),o=de(t),i=M(i);return e.parent=i,(n=i.tags[o])?(N(n)||(i.tags[o]=[n]),~i.tags[o].indexOf(e)||i.tags[o].push(e)):i.tags[o]=e,t.innerHTML="",e})(t,e,i)),e.isLoop||ce(e,i,[]))})}function re(e,t,n){function o(e,t,i){0<=t.indexOf(O(0))&&n.push(P({dom:e,expr:t},i))}k(e,function(n){var e=n.nodeType;if(3==e&&"STYLE"!=n.parentNode.tagName&&o(n,n.nodeValue),1==e)return(e=n.getAttribute("each"))?(oe(n,t,e),!1):(x(n.attributes,function(e){var t=e.name,i=t.split("__")[1];if(o(n,e.value,{attr:i||t,bool:i}),i)return L(n,t),!1}),!v(n)&&void 0)})}function g(o,e,t){var i,s=A.observable(this),r=(i=e.opts,_.prototype=i,new _||{}),a=ie(o.tmpl),d=e.parent,l=e.isLoop,u=e.hasImpl,c=le(e.item),h=[],n=[],p=e.root,m=o.fn,f=p.tagName.toLowerCase(),g={},v=[];function _(){}function y(){var t=(!u||!l)&&d||s;x(p.attributes,function(e){r[e.name]=D(e.value,t)}),x(Object.keys(g),function(e){r[e]=D(g[e],t)})}function b(t){var e;x(n,function(e){e[t?"mount":"unmount"]()}),d&&(e=t?"on":"off",(l?d:d[e]("update",s.update))[e]("unmount",s.unmount))}m&&p._tag&&p._tag.unmount(!0),this.isMounted=!1,p.isLoop=l,(p._tag=this)._id=U++,P(this,{parent:d,root:p,opts:r,tags:{}},c),x(p.attributes,function(e){var t=e.value;O(/{.*}/).test(t)&&(g[e.name]=t)}),a.innerHTML&&!/^(select|optgroup|table|tbody|tr|col(?:group)?)$/.test(f)&&(a.innerHTML=a.innerHTML.replace(/<(yield)\/?>(<\/\1>)?/gi,t||"")),this.update=function(e){if(e=le(e),s.parent&&l&&x(Object.keys(s.parent),function(e){var t=!~W.indexOf(e)&&~v.indexOf(e);typeof s[e]!==I&&!t||(t||v.push(e),s[e]=s.parent[e])}),e&&typeof c===C){var t,i=e;for(t in c)typeof s[t]!==I&&(s[t]=i[t]);c=e}var u;P(s,e),y(),s.trigger("update",e),u=s,x(h,function(e,t){var i,n,o,s,r=e.dom,a=e.attr,d=D(e.expr,u),l=e.dom.parentNode;e.bool?d=!!d&&a:null==d&&(d=""),l&&"TEXTAREA"==l.tagName&&(d=(""+d).replace(/riot-/g,"")),e.value!==d&&(e.value=d,a?(L(r,a),R(d)?(n=d,s=u,(o=r)[a]=function(e){var t=s._item,i=s.parent;if(!t)for(;i&&!t;)t=i._item,i=i.parent;e=e||w.event;try{e.currentTarget=o,e.target||(e.target=e.srcElement),e.which||(e.which=e.charCode||e.keyCode)}catch(e){}e.item=t,!0===n.call(s,e)||/radio|check/.test(o.type)||(e.preventDefault&&e.preventDefault(),e.returnValue=!1),e.preventUpdate||(t?M(i):s).update()}):"if"==a?(i=e.stub,l=function(){ae(r.parentNode,r,i)},d?i&&(ae(i.parentNode,i,r),r.inStub=!1,ue(r)||k(r,function(e){e._tag&&!e._tag.isMounted&&(e._tag.isMounted=!!e._tag.trigger("mount"))})):(i=e.stub=i||document.createTextNode(""),r.parentNode?l():(u.parent||u).one("updated",l),r.inStub=!0)):/^(show|hide)$/.test(a)?r.style.display=(d="hide"==a?!d:d)?"":"none":"value"==a?r.value=d:(l=E,a.slice(0,l.length)===l&&a!=S?d&&r.setAttribute(a.slice(E.length),d):e.bool&&!(r[a]=d)||typeof d!==C&&r.setAttribute(a,d))):r.nodeValue=""+d)}),s.trigger("updated")},this.mixin=function(){x(arguments,function(t){t=typeof t===T?A.mixin(t):t,x(Object.keys(t),function(e){"init"!=e&&(s[e]=R(t[e])?t[e].bind(s):t[e])}),t.init&&t.init.bind(s)()})},this.mount=function(){if(y(),m&&m.call(s,r),re(a,s,h),b(!0),o.attrs||u){for(var e,t=o.attrs,i=function(e,t){p.setAttribute(e,t)},n=/([-\w]+) ?= ?(?:"([^"]*)|'([^']*)|({[^}]*}))/g;e=n.exec(t);)i(e[1].toLowerCase(),e[2]||e[3]||e[4]);re(s.root,s,h)}if(s.parent&&!l||s.update(c),s.trigger("premount"),l&&!u)s.root=p=a.firstChild;else{for(;a.firstChild;)p.appendChild(a.firstChild);p.stub&&(s.root=p=d.root)}!s.parent||s.parent.isMounted?(s.isMounted=!0,s.trigger("mount")):s.parent.one("mount",function(){ue(s.root)||(s.parent.isMounted=s.isMounted=!0,s.trigger("mount"))})},this.unmount=function(e){var i,t=p,n=t.parentNode;if(n){if(d)i=M(d),N(i.tags[f])?x(i.tags[f],function(e,t){e._id==s._id&&i.tags[f].splice(t,1)}):i.tags[f]=F;else for(;t.firstChild;)t.removeChild(t.firstChild);e?n.removeAttribute("riot-tag"):n.removeChild(t)}s.trigger("unmount"),b(),s.off("*"),p._tag=null},se(a,this,n)}function ae(e,t,i){e&&(e.insertBefore(i,t),e.removeChild(t))}function x(e,t){for(var i,n=0,o=(e||[]).length;n{var n=y[t],t=e._innerHTML=e._innerHTML||e.innerHTML;if(e.innerHTML="",(n=n&&e?new g(n,{root:e,opts:i},t):n)&&n.mount)return n.mount(),_.push(n),n.on("unmount",function(){_.splice(_.indexOf(n),1)})})(e,i||e.getAttribute(S)||e.tagName.toLowerCase(),n))&&s.push(t)):e.length&&x(e,d)}return typeof i===C&&(n=i,i=0),e=typeof e===T?("*"===e?e=t=a():e+=r(e.split(",")),m(e)):e,"*"===i&&(i=t||a(),e=e.tagName?m(i,e):(o=[],x(e,function(e){o.push(m(i,e))}),o),i=0),e.tagName?d(e):x(e,d),s},A.update=function(){return x(_,function(e){e.update()})},A.mountTo=A.mount,A.util={brackets:O,tmpl:D},typeof j===C?B.exports=A:"function"==typeof define&&define.amd?define(function(){return w.riot=A}):w.riot=A},{}],121:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.collapseAd=function(e){s(e,"none")},i.collapseElement=function(e,t){o(e,t,"none")},i.uncollapseAd=function(e){s(e,"block")},i.uncollapseElement=function(e,t){o(e,t,"block")};let n=["_wrapper","_before","_after","_sponsored"];function o(e,t,i){e=e.document.getElementById(t);e&&(e.style.display=i)}function s(e,t){var i=e.id||e.parentElement.id;e.style.display=t;for(let e=0;e{c.listen(i,"iframe",function(){h[i]=(new Date).getTime(),o("bb",i,{wb:1}),r(`CSM uet() recording "bb" for "${i}" -- Timestamp: `+Date.now()),(0,n.logCSAWidgetEvent)(i,n.CSA_MARKERS.WIDGET_BEGIN),(0,n.logCSAWidgetEvent)(i,n.CSA_MARKERS.CLICK_TO_BODY_BEGIN)}),c.listen(i,"request",function(){p[i]=(new Date).getTime(),o("be",i,{wb:1}),r(`CSM uet() recording "be" for "${i}" -- Timestamp: `+Date.now()),(0,n.logCSAWidgetEvent)(i,n.CSA_MARKERS.WIDGET_END),(0,n.logCSAWidgetEvent)(i,n.CSA_MARKERS.CLICK_TO_BODY_END)}),c.listen(i,"tagdeliver",function(){m[i]=(new Date).getTime(),o("af",i,{wb:1})}),c.listen(i,"reflow",function(e){var t=(new Date).getTime();0===e.data.duration&&g&&(t=g+10),o("cf",i,{wb:1},f[i]=t)}),c.listen(i,"load",function(){var e,t;generic.monitoring&&(e=generic.monitoring.get_remnant_partner(i),t=i+"."+e,"none"!==e&&(o("bb",t,{wb:1},h[i]),o("be",t,{wb:1},p[i]),o("af",t,{wb:1},m[i]),o("cf",t,{wb:1},f[i]),s("ld",t,{wb:1})),s("ld",i,{wb:1}),r(`CSM uex() recording "ld" for "${i}" -- Timestamp: `+Date.now()),(0,n.logCSAWidgetEvent)(i,n.CSA_MARKERS.LOADED),(0,n.logCSAWidgetEvent)(i,n.CSA_MARKERS.CLICK_TO_LOADED))})})(l[d]);window.top.ad_utils.ads_header.on_done(function(){function e(e){var t,i=0;for(t in e)i=Math.max(i,e[t]);return i}var t=[];for(d=0;d{"function"==typeof window.consoleLog&&window.consoleLog(e,"ads-csa")},r={};i.logCSAWidgetEvent=(e,t)=>{n=e;var i,n=r[n]||(window&&window.csa?(r[n]=window.csa(o.CONTENT,{element:{slotId:n,type:o.WIDGET}}),r[n]):void s(`[getCsaLatencyPlugin] window.csa is not available for metrics for slot '${n}'`));n&&(i=Date.now(),n(o.MARK,t,i),s(`[logCSAWidgetEvent] CSA recording '${t}' for '${e}' -- Timestamp: `+i))}},{}],126:[function(e,t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default=new class{isFirefox(){return-1{function t(){if(!r)for(var e in r=!0,consoleLog("Finalized core ads on current page: "+o.join(",")),s)N.send(e)}var e,o=[],i=C.core_slots(),s={},r=!1;for(e in i)a.top.ad_utils.slot_events.listen(e,"iframe",function(e){o.push(e.slot),o.length===i.length&&t()});return _.on_document_ready(t),{send:function(e){var t,i,n=0;if(r){for(i=0;i{if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};if((t=ne(t))&&t.has(e))return t.get(e);var i,n,o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((n=s?Object.getOwnPropertyDescriptor(e,i):null)&&(n.get||n.set)?Object.defineProperty(o,i,n):o[i]=e[i]);return o.default=e,t&&t.set(e,o),o})(e("./zuko/httpZukoCallUtils"));function ne(e){var t,i;return"function"!=typeof WeakMap?null:(t=new WeakMap,i=new WeakMap,(ne=function(e){return e?i:t})(e))}function L(e){return e&&e.__esModule?e:{default:e}}function M(e){var t=A.getElementById(e);return(e=x.default.getSafeframeDiv(e))&&"IFRAME"!==e.tagName?e.getElementsByTagName("iframe")[0]:t}function oe(e,t,i){e.attachEvent?e.attachEvent("on"+t,function(){i.apply(e,arguments)}):e.addEventListener(t,i,!1)}function se(e){var i="";return jQuery.each(s[e],function(e,t){i+='"'+e+'":['+o(t[0])+","+o(t[1])+"],"}),'"'+e+'":{'+i.substr(0,i.length-1)+"}"}function re(){return"/"===A.location.pathname?"h":"n"}function P(e){consoleLog(e,"inject_ad")}function ae(e){return T[e]=T[e]||{}}w=window,A=document,t=w.ads_js_start?(new Date).getTime()-w.ads_js_start:null,i=navigator.userAgent,d=/MSIE|Trident\/\d+/.test(i),l=/Firefox/.test(i),E=w.generic,a={top_ad:"t",top_rhs:"tr"},u={injected_billboard:"top_ad",injected_navstrip:"top_ad",navboard:"top_ad"},c={top_ad:{width:"728px",height:"300px"},injected_billboard:{width:"970px",height:"500px"},top_rhs:{width:"988px",height:"320px"}},h={b:1,l:1,bl:1},p=1e16*Math.random(),m={},o=function(e){e=parseInt(e,10);return isFinite(e)?e:0},r={top_ad:"t",top_rhs:"tr",injected_navstrip:"in",injected_billboard:"ib",bottom_ad:"b",btf_rhs2:"br"},S={store:function(){E.on_document_ready(function(e){var o,t;try{var i=E.cookie.get("as");if(i)try{s=JSON.parse(i),n=n||s||{}}catch(e){n=n||(s={})}o=(s=s||{})[re()]||{},e.each(r,function(e,t){var i,n=(e=>e=0!==(e=$("#"+e)).length&&"IFRAME"!==e[0].tagName?e.find("iframe"):e)(e);0!==n.length&&(o[t]=[(t=n,i=w.top.ad_utils.get_ad_object(t[0]),"none"===t.css("display")?0:parseInt(i.w,10)),(t=n,i=e,n=0,e=w.top.ad_utils.get_ad_object(t[0]),e=parseInt(e.h,10),"top_ad"===i?jQuery("#nb20").hasClass("banner")?n=-5:jQuery("#nb20").hasClass("supertab")&&(n=-15):"injected_billboard"===i&&(n=20),t.id&&"swfAutoMaxHeight"in t[0].contentWindow&&(e=t[0].contentWindow.swfMinHeight),"none"===t.css("display")||0===e?0:e+n)])}),s[re()]=o,t="{",s&&("h"in s&&(t+=se("h")),"h"in s&&"n"in s&&(t+=","),"n"in s)&&(t+=se("n")),E.cookie.set("as",t+="}",E.days_to_midnight||1)}catch(e){consoleLog("Failed to store ad size cookie "+e.toString(),"ads")}})}},w.ad_size_cookie=S,(0,X.initializeResponsiveAdApi)(),O={inject_slot:function(e,t){var i,n,o,s,r=e.id,a='