!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",d=document.createElement("div");d.innerHTML='<p>x</p><style id="fit-vids-style">'+a+"</style>",r.appendChild(d.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));a=a.not("object object"),a=a.not(r),a.each(function(e){var i=t(this);if(!(i.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length)){i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16));var a="object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height(),d=isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10),o=a/d;if(!i.attr("id")){var h="fitvid"+e;i.attr("id",h)}i.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*o+"%"),i.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto);var initFeaturedVideoPlus;!function(t){"use strict";function a(){t(".has-post-video a>.featured-video-plus,.has-post-video a>.fvp-dynamic,.has-post-video a>.fvp-overlay,.has-post-video a>.wp-video,.has-post-video a>.wp-video-shortcode").unwrap(),t(".has-post-video .post-thumbnail>.post-thumbnail").removeClass("post-thumbnail"),t("a.post-thumbnail:empty").not(".fvp-dynamic, .fvp-overlay").remove()}function e(){fvpdata.fitvids&&t(".featured-video-plus.fvp-responsive").fitVids({customSelector:["iframe","object","embed"]})}function o(){if(fvpdata.width&&!fvpdata.fitvids){t(".fvp-local .wp-video").css({width:fvpdata.width,height:"auto"});var a=t(".fvp-local .wp-video .wp-video-shortcode");a.attr({width:fvpdata.width,height:fvpdata.width/a.attr("width")*a.attr("heigth")})}}function i(a){var e=t(a),o=e.children(".fvp-actionicon");return o.css({height:e.height(),width:e.width(),margin:e.css("margin")}),o}function d(a){var e=t(a.currentTarget).children("img"),o=i(a.currentTarget);o.toggleClass("play"),o.hasClass("play")?e.animate({opacity:fvpdata.opacity}):e.animate({opacity:1})}function n(o){o.preventDefault();var d=t(o.currentTarget),n=parseInt(d.attr("data-id"),10),r=i(o.currentTarget);r.addClass("load "+fvpdata.color),t.post(fvpdata.ajaxurl,{action:"fvp_get_embed",fvp_nonce:fvpdata.nonce,id:n},function(t){if(t.success){var o=d.parent();d.replaceWith(t.data),o.find(".wp-audio-shortcode, .wp-video-shortcode").mediaelementplayer(),e(),a()}r.removeClass("load "+fvpdata.color)})}function r(a){a.preventDefault();var e=t(a.currentTarget),i=parseInt(e.attr("data-id"),10);e.openDOMWindow({eventType:null,windowPadding:0,borderSize:0,windowBGColor:"transparent",overlayOpacity:100*fvpdata.opacity,width:"100%",height:"100%"}),s[i]?(t("#DOMWindow").html(s[i]),o(),t(window).trigger("scroll")):t.post(fvpdata.ajaxurl,{action:"fvp_get_embed",fvp_nonce:fvpdata.nonce,id:i},function(a){a.success&&(s[i]=a.data,t("#DOMWindow").html(a.data),o(),t(window).trigger("scroll"))})}function c(){var i=t(".featured-video-plus, .fvp-overlay, .fvp-dynamic");return!i.is(p)&&(p=i,a(),setTimeout(a,1e3),e(),o(),t(".fvp-overlay, .fvp-dynamic").off("mouseenter").on("mouseenter",d).off("mouseleave").on("mouseleave",d),t(".fvp-dynamic").off("click").on("click",n),void t(".fvp-overlay").off("click").on("click",r))}var p,s={},v=0;initFeaturedVideoPlus=function(){0===v?(c(),v=setTimeout(function(){},100)):(clearTimeout(v),v=setTimeout(c,100))},t(document).ready(function(){window.chrome&&t(".featured-video-plus iframe").each(function(){this.src=this.src}),[fvpdata.playicon,fvpdata.loadicon].forEach(function(a){t("body").append(t("<img/>",{src:a,alt:"preload image"}).hide())})})}(jQuery);/********************************************
	-	THEMEPUNCH TOOLS Ver. 1.0     -
	 Last Update of Tools 08.03.2018
*********************************************/


/*
* @fileOverview TouchSwipe - jQuery Plugin
* @version 1.6.9
*
* @author Matt Bryson http://www.github.com/mattbryson
* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
* @see http://labs.skinkers.com/touchSwipe/
* @see http://plugins.jquery.com/project/touchSwipe
*
* Copyright (c) 2010 Matt Bryson
* Dual licensed under the MIT or GPL Version 2 licenses.
*
*/



(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var y="1.6.9",p="left",o="right",e="up",x="down",c="in",A="out",m="none",s="auto",l="swipe",t="pinch",B="tap",j="doubletap",b="longtap",z="hold",E="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,C="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:true};f.fn.swipetp=function(H){var G=f(this),F=G.data(C);if(F&&typeof H==="string"){if(F[H]){return F[H].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+H+" does not exist on jQuery.swipetp")}}else{if(!F&&(typeof H==="object"||!H)){return w.apply(this,arguments)}}return G};f.fn.swipetp.version=y;f.fn.swipetp.defaults=n;f.fn.swipetp.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipetp.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:A};f.fn.swipetp.pageScroll={NONE:m,HORIZONTAL:E,VERTICAL:u,AUTO:s};f.fn.swipetp.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(F){if(F&&(F.allowPageScroll===undefined&&(F.swipe!==undefined||F.swipeStatus!==undefined))){F.allowPageScroll=m}if(F.click!==undefined&&F.tap===undefined){F.tap=F.click}if(!F){F={}}F=f.extend({},f.fn.swipetp.defaults,F);return this.each(function(){var H=f(this);var G=H.data(C);if(!G){G=new D(this,F);H.data(C,G)}})}function D(a5,aw){var aA=(a||d||!aw.fallbackToMouseEvents),K=aA?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",az=aA?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",V=aA?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",T=aA?null:"mouseleave",aE=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ah=0,aQ=null,ac=0,a2=0,a0=0,H=1,ar=0,aK=0,N=null;var aS=f(a5);var aa="start";var X=0;var aR=null;var U=0,a3=0,a6=0,ae=0,O=0;var aX=null,ag=null;try{aS.bind(K,aO);aS.bind(aE,ba)}catch(al){f.error("events not supported "+K+","+aE+" on jQuery.swipetp")}this.enable=function(){aS.bind(K,aO);aS.bind(aE,ba);return aS};this.disable=function(){aL();return aS};this.destroy=function(){aL();aS.data(C,null);aS=null};this.option=function(bd,bc){if(aw[bd]!==undefined){if(bc===undefined){return aw[bd]}else{aw[bd]=bc}}else{f.error("Option "+bd+" does not exist on jQuery.swipetp.options")}return null};function aO(be){if(aC()){return}if(f(be.target).closest(aw.excludedElements,aS).length>0){return}var bf=be.originalEvent?be.originalEvent:be;var bd,bg=bf.touches,bc=bg?bg[0]:bf;aa=g;if(bg){X=bg.length}else{be.preventDefault()}ah=0;aQ=null;aK=null;ac=0;a2=0;a0=0;H=1;ar=0;aR=ak();N=ab();S();if(!bg||(X===aw.fingers||aw.fingers===i)||aY()){aj(0,bc);U=au();if(X==2){aj(1,bg[1]);a2=a0=av(aR[0].start,aR[1].start)}if(aw.swipeStatus||aw.pinchStatus){bd=P(bf,aa)}}else{bd=false}if(bd===false){aa=q;P(bf,aa);return bd}else{if(aw.hold){ag=setTimeout(f.proxy(function(){aS.trigger("hold",[bf.target]);if(aw.hold){bd=aw.hold.call(aS,bf,bf.target)}},this),aw.longTapThreshold)}ap(true)}return null}function a4(bf){var bi=bf.originalEvent?bf.originalEvent:bf;if(aa===h||aa===q||an()){return}var be,bj=bi.touches,bd=bj?bj[0]:bi;var bg=aI(bd);a3=au();if(bj){X=bj.length}if(aw.hold){clearTimeout(ag)}aa=k;if(X==2){if(a2==0){aj(1,bj[1]);a2=a0=av(aR[0].start,aR[1].start)}else{aI(bj[1]);a0=av(aR[0].end,aR[1].end);aK=at(aR[0].end,aR[1].end)}H=a8(a2,a0);ar=Math.abs(a2-a0)}if((X===aw.fingers||aw.fingers===i)||!bj||aY()){aQ=aM(bg.start,bg.end);am(bf,aQ);ah=aT(bg.start,bg.end);ac=aN();aJ(aQ,ah);if(aw.swipeStatus||aw.pinchStatus){be=P(bi,aa)}if(!aw.triggerOnTouchEnd||aw.triggerOnTouchLeave){var bc=true;if(aw.triggerOnTouchLeave){var bh=aZ(this);bc=F(bg.end,bh)}if(!aw.triggerOnTouchEnd&&bc){aa=aD(k)}else{if(aw.triggerOnTouchLeave&&!bc){aa=aD(h)}}if(aa==q||aa==h){P(bi,aa)}}}else{aa=q;P(bi,aa)}if(be===false){aa=q;P(bi,aa)}}function M(bc){var bd=bc.originalEvent?bc.originalEvent:bc,be=bd.touches;if(be){if(be.length){G();return true}}if(an()){X=ae}a3=au();ac=aN();if(bb()||!ao()){aa=q;P(bd,aa)}else{if(aw.triggerOnTouchEnd||(aw.triggerOnTouchEnd==false&&aa===k)){bc.preventDefault();aa=h;P(bd,aa)}else{if(!aw.triggerOnTouchEnd&&a7()){aa=h;aG(bd,aa,B)}else{if(aa===k){aa=q;P(bd,aa)}}}}ap(false);return null}function ba(){X=0;a3=0;U=0;a2=0;a0=0;H=1;S();ap(false)}function L(bc){var bd=bc.originalEvent?bc.originalEvent:bc;if(aw.triggerOnTouchLeave){aa=aD(h);P(bd,aa)}}function aL(){aS.unbind(K,aO);aS.unbind(aE,ba);aS.unbind(az,a4);aS.unbind(V,M);if(T){aS.unbind(T,L)}ap(false)}function aD(bg){var bf=bg;var be=aB();var bd=ao();var bc=bb();if(!be||bc){bf=q}else{if(bd&&bg==k&&(!aw.triggerOnTouchEnd||aw.triggerOnTouchLeave)){bf=h}else{if(!bd&&bg==h&&aw.triggerOnTouchLeave){bf=q}}}return bf}function P(be,bc){var bd,bf=be.touches;if((J()||W())||(Q()||aY())){if(J()||W()){bd=aG(be,bc,l)}if((Q()||aY())&&bd!==false){bd=aG(be,bc,t)}}else{if(aH()&&bd!==false){bd=aG(be,bc,j)}else{if(aq()&&bd!==false){bd=aG(be,bc,b)}else{if(ai()&&bd!==false){bd=aG(be,bc,B)}}}}if(bc===q){ba(be)}if(bc===h){if(bf){if(!bf.length){ba(be)}}else{ba(be)}}return bd}function aG(bf,bc,be){var bd;if(be==l){aS.trigger("swipeStatus",[bc,aQ||null,ah||0,ac||0,X,aR]);if(aw.swipeStatus){bd=aw.swipeStatus.call(aS,bf,bc,aQ||null,ah||0,ac||0,X,aR);if(bd===false){return false}}if(bc==h&&aW()){aS.trigger("swipe",[aQ,ah,ac,X,aR]);if(aw.swipe){bd=aw.swipe.call(aS,bf,aQ,ah,ac,X,aR);if(bd===false){return false}}switch(aQ){case p:aS.trigger("swipeLeft",[aQ,ah,ac,X,aR]);if(aw.swipeLeft){bd=aw.swipeLeft.call(aS,bf,aQ,ah,ac,X,aR)}break;case o:aS.trigger("swipeRight",[aQ,ah,ac,X,aR]);if(aw.swipeRight){bd=aw.swipeRight.call(aS,bf,aQ,ah,ac,X,aR)}break;case e:aS.trigger("swipeUp",[aQ,ah,ac,X,aR]);if(aw.swipeUp){bd=aw.swipeUp.call(aS,bf,aQ,ah,ac,X,aR)}break;case x:aS.trigger("swipeDown",[aQ,ah,ac,X,aR]);if(aw.swipeDown){bd=aw.swipeDown.call(aS,bf,aQ,ah,ac,X,aR)}break}}}if(be==t){aS.trigger("pinchStatus",[bc,aK||null,ar||0,ac||0,X,H,aR]);if(aw.pinchStatus){bd=aw.pinchStatus.call(aS,bf,bc,aK||null,ar||0,ac||0,X,H,aR);if(bd===false){return false}}if(bc==h&&a9()){switch(aK){case c:aS.trigger("pinchIn",[aK||null,ar||0,ac||0,X,H,aR]);if(aw.pinchIn){bd=aw.pinchIn.call(aS,bf,aK||null,ar||0,ac||0,X,H,aR)}break;case A:aS.trigger("pinchOut",[aK||null,ar||0,ac||0,X,H,aR]);if(aw.pinchOut){bd=aw.pinchOut.call(aS,bf,aK||null,ar||0,ac||0,X,H,aR)}break}}}if(be==B){if(bc===q||bc===h){clearTimeout(aX);clearTimeout(ag);if(Z()&&!I()){O=au();aX=setTimeout(f.proxy(function(){O=null;aS.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(aS,bf,bf.target)}},this),aw.doubleTapThreshold)}else{O=null;aS.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(aS,bf,bf.target)}}}}else{if(be==j){if(bc===q||bc===h){clearTimeout(aX);O=null;aS.trigger("doubletap",[bf.target]);if(aw.doubleTap){bd=aw.doubleTap.call(aS,bf,bf.target)}}}else{if(be==b){if(bc===q||bc===h){clearTimeout(aX);O=null;aS.trigger("longtap",[bf.target]);if(aw.longTap){bd=aw.longTap.call(aS,bf,bf.target)}}}}}return bd}function ao(){var bc=true;if(aw.threshold!==null){bc=ah>=aw.threshold}return bc}function bb(){var bc=false;if(aw.cancelThreshold!==null&&aQ!==null){bc=(aU(aQ)-ah)>=aw.cancelThreshold}return bc}function af(){if(aw.pinchThreshold!==null){return ar>=aw.pinchThreshold}return true}function aB(){var bc;if(aw.maxTimeThreshold){if(ac>=aw.maxTimeThreshold){bc=false}else{bc=true}}else{bc=true}return bc}function am(bc,bd){if(aw.preventDefaultEvents===false){return}if(aw.allowPageScroll===m){bc.preventDefault()}else{var be=aw.allowPageScroll===s;switch(bd){case p:if((aw.swipeLeft&&be)||(!be&&aw.allowPageScroll!=E)){bc.preventDefault()}break;case o:if((aw.swipeRight&&be)||(!be&&aw.allowPageScroll!=E)){bc.preventDefault()}break;case e:if((aw.swipeUp&&be)||(!be&&aw.allowPageScroll!=u)){bc.preventDefault()}break;case x:if((aw.swipeDown&&be)||(!be&&aw.allowPageScroll!=u)){bc.preventDefault()}break}}}function a9(){var bd=aP();var bc=Y();var be=af();return bd&&bc&&be}function aY(){return !!(aw.pinchStatus||aw.pinchIn||aw.pinchOut)}function Q(){return !!(a9()&&aY())}function aW(){var bf=aB();var bh=ao();var be=aP();var bc=Y();var bd=bb();var bg=!bd&&bc&&be&&bh&&bf;return bg}function W(){return !!(aw.swipe||aw.swipeStatus||aw.swipeLeft||aw.swipeRight||aw.swipeUp||aw.swipeDown)}function J(){return !!(aW()&&W())}function aP(){return((X===aw.fingers||aw.fingers===i)||!a)}function Y(){return aR[0].end.x!==0}function a7(){return !!(aw.tap)}function Z(){return !!(aw.doubleTap)}function aV(){return !!(aw.longTap)}function R(){if(O==null){return false}var bc=au();return(Z()&&((bc-O)<=aw.doubleTapThreshold))}function I(){return R()}function ay(){return((X===1||!a)&&(isNaN(ah)||ah<aw.threshold))}function a1(){return((ac>aw.longTapThreshold)&&(ah<r))}function ai(){return !!(ay()&&a7())}function aH(){return !!(R()&&Z())}function aq(){return !!(a1()&&aV())}function G(){a6=au();ae=event.touches.length+1}function S(){a6=0;ae=0}function an(){var bc=false;if(a6){var bd=au()-a6;if(bd<=aw.fingerReleaseThreshold){bc=true}}return bc}function aC(){return !!(aS.data(C+"_intouch")===true)}function ap(bc){if(bc===true){aS.bind(az,a4);aS.bind(V,M);if(T){aS.bind(T,L)}}else{aS.unbind(az,a4,false);aS.unbind(V,M,false);if(T){aS.unbind(T,L,false)}}aS.data(C+"_intouch",bc===true)}function aj(bd,bc){var be=bc.identifier!==undefined?bc.identifier:0;aR[bd].identifier=be;aR[bd].start.x=aR[bd].end.x=bc.pageX||bc.clientX;aR[bd].start.y=aR[bd].end.y=bc.pageY||bc.clientY;return aR[bd]}function aI(bc){var be=bc.identifier!==undefined?bc.identifier:0;var bd=ad(be);bd.end.x=bc.pageX||bc.clientX;bd.end.y=bc.pageY||bc.clientY;return bd}function ad(bd){for(var bc=0;bc<aR.length;bc++){if(aR[bc].identifier==bd){return aR[bc]}}}function ak(){var bc=[];for(var bd=0;bd<=5;bd++){bc.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return bc}function aJ(bc,bd){bd=Math.max(bd,aU(bc));N[bc].distance=bd}function aU(bc){if(N[bc]){return N[bc].distance}return undefined}function ab(){var bc={};bc[p]=ax(p);bc[o]=ax(o);bc[e]=ax(e);bc[x]=ax(x);return bc}function ax(bc){return{direction:bc,distance:0}}function aN(){return a3-U}function av(bf,be){var bd=Math.abs(bf.x-be.x);var bc=Math.abs(bf.y-be.y);return Math.round(Math.sqrt(bd*bd+bc*bc))}function a8(bc,bd){var be=(bd/bc)*1;return be.toFixed(2)}function at(){if(H<1){return A}else{return c}}function aT(bd,bc){return Math.round(Math.sqrt(Math.pow(bc.x-bd.x,2)+Math.pow(bc.y-bd.y,2)))}function aF(bf,bd){var bc=bf.x-bd.x;var bh=bd.y-bf.y;var be=Math.atan2(bh,bc);var bg=Math.round(be*180/Math.PI);if(bg<0){bg=360-Math.abs(bg)}return bg}function aM(bd,bc){var be=aF(bd,bc);if((be<=45)&&(be>=0)){return p}else{if((be<=360)&&(be>=315)){return p}else{if((be>=135)&&(be<=225)){return o}else{if((be>45)&&(be<135)){return x}else{return e}}}}}function au(){var bc=new Date();return bc.getTime()}function aZ(bc){bc=f(bc);var be=bc.offset();var bd={left:be.left,right:be.left+bc.outerWidth(),top:be.top,bottom:be.top+bc.outerHeight()};return bd}function F(bc,bd){return(bc.x>bd.left&&bc.x<bd.right&&bc.y>bd.top&&bc.y<bd.bottom)}}}));

if(typeof(console) === 'undefined') {
    var console = {};
    console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = console.groupCollapsed = function() {};
}

if (window.tplogs==true)
	try {
		console.groupCollapsed("ThemePunch GreenSocks Logs");
	} catch(e) { }


var oldgs = window.GreenSockGlobals;
	oldgs_queue = window._gsQueue;
	
var punchgs = window.GreenSockGlobals = {};

if (window.tplogs==true)
	try {
		console.info("Build GreenSock SandBox for ThemePunch Plugins");
		console.info("GreenSock TweenLite Engine Initalised by ThemePunch Plugin");
	} catch(e) {}


/* TWEEN LITE */
/*!
 * VERSION: 1.19.1
 * DATE: 2017-01-17
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
!function(a,b){"use strict";var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a;if(!e.TweenLite){var f,g,h,i,j,k=function(a){var b,c=a.split("."),d=e;for(b=0;b<c.length;b++)d[c[b]]=d=d[c[b]]||{};return d},l=k("com.greensock"),m=1e-10,n=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},o=function(){},p=function(){var a=Object.prototype.toString,b=a.call([]);return function(c){return null!=c&&(c instanceof Array||"object"==typeof c&&!!c.push&&a.call(c)===b)}}(),q={},r=function(d,f,g,h){this.sc=q[d]?q[d].sc:[],q[d]=this,this.gsClass=null,this.func=g;var i=[];this.check=function(j){for(var l,m,n,o,p,s=f.length,t=s;--s>-1;)(l=q[f[s]]||new r(f[s],[])).gsClass?(i[s]=l.gsClass,t--):j&&l.sc.push(this);if(0===t&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=k(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(e[n]=c[n]=o,p="undefined"!=typeof module&&module.exports,!p&&"function"==typeof define&&define.amd)define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return o});else if(p)if(d===b){module.exports=c[b]=o;for(s in c)o[s]=c[s]}else c[b]&&(c[b][n]=o);for(s=0;s<this.sc.length;s++)this.sc[s].check()}},this.check(!0)},s=a._gsDefine=function(a,b,c,d){return new r(a,b,c,d)},t=l._class=function(a,b,c){return b=b||function(){},s(a,[],function(){return b},c),b};s.globals=e;var u=[0,0,1,1],v=t("easing.Ease",function(a,b,c,d){this._func=a,this._type=c||0,this._power=d||0,this._params=b?u.concat(b):u},!0),w=v.map={},x=v.register=function(a,b,c,d){for(var e,f,g,h,i=b.split(","),j=i.length,k=(c||"easeIn,easeOut,easeInOut").split(",");--j>-1;)for(f=i[j],e=d?t("easing."+f,null,!0):l.easing[f]||{},g=k.length;--g>-1;)h=k[g],w[f+"."+h]=w[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(h=v.prototype,h._calcEnd=!1,h.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},f=["Linear","Quad","Cubic","Quart","Quint,Strong"],g=f.length;--g>-1;)h=f[g]+",Power"+g,x(new v(null,null,1,g),h,"easeOut",!0),x(new v(null,null,2,g),h,"easeIn"+(0===g?",easeNone":"")),x(new v(null,null,3,g),h,"easeInOut");w.linear=l.easing.Linear.easeIn,w.swing=l.easing.Quad.easeInOut;var y=t("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});h=y.prototype,h.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],k=0;for(this!==i||j||i.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===k&&f.pr<e&&(k=g+1);h.splice(k,0,{c:b,s:c,up:d,pr:e})},h.removeEventListener=function(a,b){var c,d=this._listeners[a];if(d)for(c=d.length;--c>-1;)if(d[c].c===b)return void d.splice(c,1)},h.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var z=a.requestAnimationFrame,A=a.cancelAnimationFrame,B=Date.now||function(){return(new Date).getTime()},C=B();for(f=["ms","moz","webkit","o"],g=f.length;--g>-1&&!z;)z=a[f[g]+"RequestAnimationFrame"],A=a[f[g]+"CancelAnimationFrame"]||a[f[g]+"CancelRequestAnimationFrame"];t("Ticker",function(a,b){var c,e,f,g,h,k=this,l=B(),n=b!==!1&&z?"auto":!1,p=500,q=33,r="tick",s=function(a){var b,d,i=B()-C;i>p&&(l+=i-q),C+=i,k.time=(C-l)/1e3,b=k.time-h,(!c||b>0||a===!0)&&(k.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&k.dispatchEvent(r)};y.call(k),k.time=k.frame=0,k.tick=function(){s(!0)},k.lagSmoothing=function(a,b){p=a||1/m,q=Math.min(b,p,0)},k.sleep=function(){null!=f&&(n&&A?A(f):clearTimeout(f),e=o,f=null,k===i&&(j=!1))},k.wake=function(a){null!==f?k.sleep():a?l+=-C+(C=B()):k.frame>10&&(C=B()-p+5),e=0===c?o:n&&z?z:function(a){return setTimeout(a,1e3*(h-k.time)+1|0)},k===i&&(j=!0),s(2)},k.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void k.wake()):c},k.useRAF=function(a){return arguments.length?(k.sleep(),n=a,void k.fps(c)):n},k.fps(a),setTimeout(function(){"auto"===n&&k.frame<5&&"hidden"!==d.visibilityState&&k.useRAF(!1)},1500)}),h=l.Ticker.prototype=new l.events.EventDispatcher,h.constructor=l.Ticker;var D=t("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,W){j||i.wake();var c=this.vars.useFrames?V:W;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});i=D.ticker=new l.Ticker,h=D.prototype,h._dirty=h._gc=h._initted=h._paused=!1,h._totalTime=h._time=0,h._rawPrevTime=-1,h._next=h._last=h._onUpdate=h._timeline=h.timeline=null,h._paused=!1;var E=function(){j&&B()-C>2e3&&i.wake(),setTimeout(E,2e3)};E(),h.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},h.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},h.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},h.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},h.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},h.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},h.render=function(a,b,c){},h.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},h.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime(!0))>=c&&a<c+this.totalDuration()/this._timeScale},h._enabled=function(a,b){return j||i.wake(),this._gc=!a,this._active=this.isActive(),b!==!0&&(a&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!a&&this.timeline&&this._timeline._remove(this,!0)),!1},h._kill=function(a,b){return this._enabled(!1,!1)},h.kill=function(a,b){return this._kill(a,b),this},h._uncache=function(a){for(var b=a?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this},h._swapSelfInParams=function(a){for(var b=a.length,c=a.concat();--b>-1;)"{self}"===a[b]&&(c[b]=this);return c},h._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},h.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=p(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},h.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},h.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0),this):(this._dirty=!1,this._duration)},h.totalDuration=function(a){return this._dirty=!1,arguments.length?this.duration(a):this._totalDuration},h.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(a>this._duration?this._duration:a,b)):this._time},h.totalTime=function(a,b,c){if(j||i.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(J.length&&Y(),this.render(a,b,!1),J.length&&Y())}return this},h.progress=h.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio},h.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},h.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},h.timeScale=function(a){if(!arguments.length)return this._timeScale;if(a=a||m,this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/a}return this._timeScale=a,this._uncache(!1)},h.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},h.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(j||a||i.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var F=t("core.SimpleTimeline",function(a){D.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});h=F.prototype=new D,h.constructor=F,h.kill()._gc=!1,h._first=h._last=h._recent=null,h._sortChildren=!1,h.add=h.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},h._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},h.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},h.rawTime=function(){return j||i.wake(),this._totalTime};var G=t("TweenLite",function(b,c,d){if(D.call(this,c,d),this.render=G.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:G.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?U[G.defaultOverwrite]:"number"==typeof i?i>>0:U[i],(h||b instanceof Array||b.push&&p(b))&&"number"!=typeof b[0])for(this._targets=g=n(b),this._propLookup=[],this._siblings=[],e=0;e<g.length;e++)f=g[e],f?"string"!=typeof f?f.length&&f!==a&&f[0]&&(f[0]===a||f[0].nodeType&&f[0].style&&!f.nodeType)?(g.splice(e--,1),this._targets=g=g.concat(n(f))):(this._siblings[e]=Z(f,this,!1),1===i&&this._siblings[e].length>1&&_(f,this,null,1,this._siblings[e])):(f=g[e--]=G.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=Z(b,this,!1),1===i&&this._siblings.length>1&&_(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-m,this.render(Math.min(0,-this._delay)))},!0),H=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},I=function(a,b){var c,d={};for(c in a)T[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!Q[c]||Q[c]&&Q[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};h=G.prototype=new D,h.constructor=G,h.kill()._gc=!1,h.ratio=0,h._firstPT=h._targets=h._overwrittenProps=h._startAt=null,h._notifyPluginsOfEnabled=h._lazy=!1,G.version="1.19.1",G.defaultEase=h._ease=new v(null,null,1,1),G.defaultOverwrite="auto",G.ticker=i,G.autoSleep=120,G.lagSmoothing=function(a,b){i.lagSmoothing(a,b)},G.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(G.selector=c,c(b)):"undefined"==typeof d?b:d.querySelectorAll?d.querySelectorAll(b):d.getElementById("#"===b.charAt(0)?b.substr(1):b)};var J=[],K={},L=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,M=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?1===a?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m(b,this._target||c.t):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},N=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(L)||[],f=b.match(L)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=M,l},O=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isNaN(m)||!n&&isNaN(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=N(m,n?o.s+o.c:d,h||G.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parseFloat(m),n||(o.c=parseFloat(d)-o.s||0))),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},P=G._internals={isArray:p,isSelector:H,lazyTweens:J,blobDif:N},Q=G._plugins={},R=P.tweenLookup={},S=0,T=P.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},U={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},V=D._rootFramesTimeline=new F,W=D._rootTimeline=new F,X=30,Y=P.lazyRender=function(){var a,b=J.length;for(K={};--b>-1;)a=J[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);J.length=0};W._startTime=i.time,V._startTime=i.frame,W._active=V._active=!0,setTimeout(Y,1),D._updateRoot=G.render=function(){var a,b,c;if(J.length&&Y(),W.render((i.time-W._startTime)*W._timeScale,!1,!1),V.render((i.frame-V._startTime)*V._timeScale,!1,!1),J.length&&Y(),i.frame>=X){X=i.frame+(parseInt(G.autoSleep,10)||120);for(c in R){for(b=R[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete R[c]}if(c=W._first,(!c||c._paused)&&G.autoSleep&&!V._first&&1===i._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||i.sleep()}}},i.addEventListener("tick",D._updateRoot);var Z=function(a,b,c){var d,e,f=a._gsTweenID;if(R[f||(a._gsTweenID=f="t"+S++)]||(R[f]={target:a,tweens:[]}),b&&(d=R[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return R[f].tweens},$=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=G.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},_=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+m,l=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||aa(b,0,o),0===aa(h,j,o)&&(l[n++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2e-10||(l[n++]=h)));for(f=n;--f>-1;)if(h=l[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted){if(2!==d&&!$(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},aa=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*m>f-b?m:(f+=a.totalDuration()/a._timeScale/e)>b+m?0:f-b-m};h._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease;if(g.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,this._startAt=G.to(this.target,0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)T[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=G.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof v?k:"function"==typeof k?new v(k,g.easeParams):w[k]||G.defaultEase:G.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&G._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0},h._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;K[b._gsTweenID]&&Y(),this.vars.css||b.style&&b!==a&&b.nodeType&&Q.css&&this.vars.autoCSS!==!1&&I(this.vars,b);for(g in this.vars)if(l=this.vars[g],T[g])l&&(l instanceof Array||l.push&&p(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(Q[g]&&(j=new Q[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=O.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&_(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(K[b._gsTweenID]=!0),i)},h.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawPrevTime;if(a>=i-1e-7&&a>=0)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===m&&"isPause"!==this.data)&&j!==a&&(c=!0,j>m&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||j===a?a:m);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&j>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==m||"isPause"!==this.data)&&(c=!0),this._rawPrevTime=g=!b||a||j===a?a:m)),this._initted||(c=!0);else if(this._totalTime=this._time=a,this._easeType){var k=a/i,l=this._easeType,n=this._easePower;(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=j,J.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&a!==-1e-4&&this._startAt.render(a,b,c),b||(this._time!==h||d||c)&&this._callback("onUpdate")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&a!==-1e-4&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawPrevTime===m&&g!==m&&(this._rawPrevTime=0))}},h._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:G.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline;if((p(b)||H(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(G.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!$(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return i},h.invalidate=function(){return this._notifyPluginsOfEnabled&&G._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-m,this.render(Math.min(0,-this._delay))),this},h._enabled=function(a,b){if(j||i.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=Z(d[c],this,!0);else this._siblings=Z(this.target,this,!0)}return D.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?G._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},G.to=function(a,b,c){return new G(a,b,c)},G.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new G(a,b,c)},G.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new G(a,b,d)},G.delayedCall=function(a,b,c,d,e){return new G(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},G.set=function(a,b){return new G(a,0,b)},G.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:G.selector(a)||a;var c,d,e,f;if((p(a)||H(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(G.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else for(d=Z(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d},G.killTweensOf=G.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=G.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ba=t("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=ba.prototype},!0);if(h=ba.prototype,ba.version="1.19.0",ba.API=2,h._firstPT=null,h._addTween=O,h.setRatio=M,h._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},h._mod=h._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},G._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ba.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===ba.API&&(Q[(new a[b])._propName]=a[b]);return!0},s.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=t("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){ba.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new ba(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ba.activate([g]),g},f=a._gsQueue){for(g=0;g<f.length;g++)f[g]();for(h in q)q[h].func||a.console.log("GSAP encountered missing dependency: "+h)}j=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");
/* TIME LINE LITE */
/*!
 * VERSION: 1.17.0
 * DATE: 2015-05-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,s,r=this.vars;for(s in r)i=r[s],h(i)&&-1!==i.join("").indexOf("{self}")&&(r[s]=this._swapSelfInParams(i));h(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=s._internals={},o=n.isSelector,h=n.isArray,l=n.lazyTweens,_=n.lazyRender,u=[],f=_gsScope._gsDefine.globals,c=function(t){var e,i={};for(e in t)i[e]=t[e];return i},p=a.pauseCallback=function(t,e,i,s){var n,a=t._timeline,o=a._totalTime,h=t._startTime,l=0>t._rawPrevTime||0===t._rawPrevTime&&a._reversed,_=l?0:r,f=l?r:0;if(e||!this._forcingPlayhead){for(a.pause(h),n=t._prev;n&&n._startTime===h;)n._rawPrevTime=f,n=n._prev;for(n=t._next;n&&n._startTime===h;)n._rawPrevTime=_,n=n._next;e&&e.apply(s||a.vars.callbackScope||a,i||u),(this._forcingPlayhead||!a._paused)&&a.seek(o)}},m=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},d=s.prototype=new e;return s.version="1.17.0",d.constructor=s,d.kill()._gc=d._forcingPlayhead=!1,d.to=function(t,e,s,r){var n=s.repeat&&f.TweenMax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},d.from=function(t,e,s,r){return this.add((s.repeat&&f.TweenMax||i).from(t,e,s),r)},d.fromTo=function(t,e,s,r,n){var a=r.repeat&&f.TweenMax||i;return e?this.add(a.fromTo(t,e,s,r),n):this.set(t,r,n)},d.staggerTo=function(t,e,r,n,a,h,l,_){var u,f=new s({onComplete:h,onCompleteParams:l,callbackScope:_,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=m(t)),n=n||0,0>n&&(t=m(t),t.reverse(),n*=-1),u=0;t.length>u;u++)r.startAt&&(r.startAt=c(r.startAt)),f.to(t[u],e,c(r),u*n);return this.add(f,a)},d.staggerFrom=function(t,e,i,s,r,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,r,n,a,o)},d.staggerFromTo=function(t,e,i,s,r,n,a,o,h){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,r,n,a,o,h)},d.call=function(t,e,s,r){return this.add(i.delayedCall(0,t,e,s),r)},d.set=function(t,e,s){return s=this._parseTimeOrLabel(s,0,!0),null==e.immediateRender&&(e.immediateRender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=n;return o.add(a,0),a},d.add=function(r,n,a,o){var l,_,u,f,c,p;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&h(r)){for(a=a||"normal",o=o||0,l=n,_=r.length,u=0;_>u;u++)h(f=r[u])&&(f=new s({tweens:f})),this.add(f,l),"string"!=typeof f&&"function"!=typeof f&&("sequence"===a?l=f._startTime+f.totalDuration()/f._timeScale:"start"===a&&(f._startTime-=f.delay())),l+=o;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,n);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,p=c.rawTime()>r._startTime;c._timeline;)p&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},d.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&h(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},d._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},d.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},d.insert=d.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},d.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},d.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},d.addPause=function(t,e,s,r){var n=i.delayedCall(0,p,["{self}",e,s,r],this);return n.data="isPause",this.add(n,t)},d.removeLabel=function(t){return delete this._labels[t],this},d.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},d._parseTimeOrLabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&h(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parseTimeOrLabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexOf("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(n-1)+"1",10)*Number(e.substr(n+1)),e=n>1?this._parseTimeOrLabel(e.substr(0,n-1),0,s):this.duration()}return Number(e)+i},d.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},d.stop=function(){return this.paused(!0)},d.gotoAndPlay=function(t,e){return this.play(t,e)},d.gotoAndStop=function(t,e){return this.pause(t,e)},d.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,h,u=this._dirty?this.totalDuration():this._totalDuration,f=this._time,c=this._startTime,p=this._timeScale,m=this._paused;if(t>=u)this._totalTime=this._time=u,this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",h=!!this._timeline.autoRemoveChildren,0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(h=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=u+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",n=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(h=n=!0,o="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(h=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&n)for(s=this._first;s&&0===s._startTime;)s._duration||(n=!1),s=s._next;t=0,this._initted||(h=!0)}else this._totalTime=this._time=this._rawPrevTime=t;if(this._time!==f&&this._first||i||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onStart&&0!==this._time&&(e||this._callback("onStart")),this._time>=f)for(s=this._first;s&&(a=s._next,!this._paused||m);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||m);)(s._active||f>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;this._onUpdate&&(e||(l.length&&_(),this._callback("onUpdate"))),o&&(this._gc||(c===this._startTime||p!==this._timeScale)&&(0===this._time||u>=this.totalDuration())&&(n&&(l.length&&_(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},d._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},d.getChildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._startTime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getChildren(!0,e,s)),o=n.length))),a=a._next;return n},d.getTweensOf=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.getTweensOf(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},d.recent=function(){return this._recent},d._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},d.shiftChildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},d._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},d.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},d.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},d._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},d.totalTime=function(){this._forcingPlayhead=!0;var e=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},d.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},d.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>n&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):n=r._startTime,0>r._startTime&&!r._paused&&(s-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),n=0),i=r._startTime+r._totalDuration/r._timeScale,i>s&&(s=i),r=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},d.paused=function(e){if(!e)for(var i=this._first,s=this._time;i;)i._startTime===s&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},d.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},d.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},s},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=e())}("TimelineLite");
/* EASING PLUGIN*/
/*!
 * VERSION: 1.15.5
 * DATE: 2016-07-08
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e=_gsScope.GreenSockGlobals||_gsScope,f=e.com.greensock,g=2*Math.PI,h=Math.PI/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},o=l("Back",n("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getRatio=function(a){var b=a+(.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.SteppedEase",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=b.prototype=new a,q.constructor=b,q.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},q.config=b.config=function(a){return new b(a)},c=i("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?Math.random():1/l*n,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("Bounce",j("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("Circ",j("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),j("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),j("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(Math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},l("Elastic",d("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),d("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),d("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("Expo",j("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),j("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),j("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),l("Sine",j("SineOut",function(a){return Math.sin(a*h)}),j("SineIn",function(a){return-Math.cos(a*h)+1}),j("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),i("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),k(e.SlowMo,"SlowMo","ease,"),k(c,"RoughEase","ease,"),k(b,"SteppedEase","ease,"),o},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(){"use strict";var a=function(){return _gsScope.GreenSockGlobals||_gsScope};"function"==typeof define&&define.amd?define(["TweenLite"],a):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=a())}();
/* CSS PLUGIN */
/*!
 * VERSION: 1.19.1
 * DATE: 2017-01-17
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h=_gsScope._gsDefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.19.1",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",g.defaultSmoothOrigin=!0,j="px",g.suffixMap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontSize:j,padding:j,margin:j,perspective:j,lineHeight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,B=/([A-Z])/g,C=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(a,b){return b.toUpperCase()},F=/(?:Left|Right|Width)/i,G=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,J=/[\s,\(]/i,K=Math.PI/180,L=180/Math.PI,M={},N={style:{}},O=_gsScope.document||{createElement:function(){return N}},P=function(a,b){return O.createElementNS?O.createElementNS(b||"http://www.w3.org/1999/xhtml",a):O.createElement(a)},Q=P("div"),R=P("img"),S=g._internals={_specialProps:i},T=(_gsScope.navigator||{}).userAgent||"",U=function(){var a=T.indexOf("Android"),b=P("a");return m=-1!==T.indexOf("Safari")&&-1===T.indexOf("Chrome")&&(-1===a||parseFloat(T.substr(a+8,2))>3),o=m&&parseFloat(T.substr(T.indexOf("Version/")+8,2))<6,n=-1!==T.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),V=function(a){return x.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(a){_gsScope.console&&console.log(a)},X="",Y="",Z=function(a,b){b=b||Q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(Y=3===d?"ms":c[d],X="-"+Y.toLowerCase()+"-",Y+a):null},$=O.defaultView?O.defaultView.getComputedStyle:function(){},_=g.getStyle=function(a,b,c,d,e){var f;return U||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||$(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(B,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):V(a)},aa=S.convertToPixels=function(a,c,d,e,f){if("px"===e||!e)return d;if("auto"===e||!d)return 0;var h,i,j,k=F.test(c),l=a,m=Q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+_(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||O.body,i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(Q),h=parseFloat(Q[k?"offsetWidth":"offsetHeight"]),l.removeChild(Q),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=aa(a,c,d,e,!0))}return o&&(h/=100),n?-h:h},ba=S.calculateOffset=function(a,b,c){if("absolute"!==_(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=_(a,"margin"+d,c);return a["offset"+d]-(aa(a,b,parseFloat(e),e.replace(w,""))||0)},ca=function(a,b){var c,d,e,f={};if(b=b||$(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Da===e)&&(f[e.replace(C,E)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Ca===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(C,E)]=b[c]);return U||(f.opacity=V(a)),d=Ra(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Fa&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},da=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ba(a,g),void 0!==j[g]&&(h=new sa(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},ea={width:["Left","Right"],height:["Top","Bottom"]},fa=["marginLeft","marginRight","marginTop","marginBottom"],ga=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||$(a))[b]||0;if(a.getCTM&&Oa(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=ea[b],f=e.length;for(c=c||$(a,null);--f>-1;)d-=parseFloat(_(a,"padding"+e[f],c,!0))||0,d-=parseFloat(_(a,"border"+e[f]+"Width",c,!0))||0;return d},ha=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c<d.length;c++)a.push(ha(d[c]));return a.join(",")}return null==f?f="center"===e?"50%":"0":"center"===f&&(f="50%"),("center"===e||isNaN(parseFloat(e))&&-1===(e+"").indexOf("="))&&(e="50%"),a=e+" "+f+(d.length>2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(v,"")),b.oy=parseFloat(f.replace(v,"")),b.v=a),b||a},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},ka=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:L)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},la={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ma=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},na=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),la[a])c=la[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(a[3])),c[0]=ma(g+1/3,d,e),c[1]=ma(g,d,e),c[2]=ma(g-1/3,d,e);else c=a.match(s)||la.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=la.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},oa=function(a,b){var c,d,e,f=a.match(pa)||[],g=0,h=f.length?"":a;for(c=0;c<f.length;c++)d=f[c],e=a.substr(g,a.indexOf(d,g)-g),g+=e.length+d.length,d=na(d,b),3===d.length&&d.push(1),h+=e+(b?"hsla("+d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:"rgba("+d.join(","))+")";return h+a.substr(g)},pa="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(j in la)pa+="|"+j+"\\b";pa=new RegExp(pa+")","gi"),g.colorStringFilter=function(a){var b,c=a[0]+a[1];pa.test(c)&&(b=-1!==c.indexOf("hsl(")||-1!==c.indexOf("hsla("),a[0]=oa(a[0],b),a[1]=oa(a[1],b)),pa.lastIndex=0},b.defaultStringFilter||(b.defaultStringFilter=g.colorStringFilter);var qa=function(a,b,c,d){if(null==a)return function(a){return a};var e,f=b?(a.match(pa)||[""])[0]:"",g=a.split(f).join("").match(u)||[],h=a.substr(0,a.indexOf(g[0])),i=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=g.length,l=k>0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(o=a.replace(I,"|").split("|"),n=0;n<o.length;n++)o[n]=e(o[n]);return o.join(",")}if(b=(a.match(pa)||[f])[0],m=a.split(b).join("").match(u)||[],n=m.length,k>n--)for(;++n<k;)m[n]=c?m[(n-1)/2|0]:g[n];return h+m.join(j)+j+b+i+(-1!==a.indexOf("inset")?" inset":"")}:function(a){var b,f,m;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(f=a.replace(I,"|").split("|"),m=0;m<f.length;m++)f[m]=e(f[m]);return f.join(",")}if(b=a.match(u)||[],m=b.length,k>m--)for(;++m<k;)b[m]=c?b[(m-1)/2|0]:g[m];return h+b.join(j)+i}:function(a){return a}},ra=function(a){return a=a.split(","),function(b,c,d,e,f,g,h){var i,j=(c+"").split(" ");for(h={},i=0;4>i;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},sa=(S._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=Math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod(h.rotation,this.t):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d<c.l;d++)e+=c["xn"+d]+c["xs"+(d+1)];c[f]=e}}else c[f]=c.s+c.xs0;i=i._next}},function(a,b,c,d,e){this.t=a,this.p=b,this.v=c,this.r=e,d&&(d._prev=this,this._next=d)}),ta=(S._parseToProxy=function(a,b,c,d,e,f){var g,h,i,j,k,l=d,m={},n={},o=c._transform,p=M;for(c._transform=null,M=b,d=k=c.parse(a,b,d,e),M=p,f&&(c._transform=o,l&&(l._prev=null,l._prev&&(l._prev._next=null)));d&&d!==l;){if(d.type<=1&&(h=d.p,n[h]=d.s+d.c,m[h]=d.s,f||(j=new sa(d,"s",h,j,d.r),d.c=0),1===d.type))for(g=d.l;--g>0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new sa(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},S.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ta||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ua=function(a,b,c,d,e,f){var g=new ta(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},va=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ta(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&pa.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(D=D.join(" ").replace(I,", ").split(" "),E=E.join(" ").replace(I,", ").split(" "),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,pa.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m],x=parseFloat(p),x||0===x)h.appendXtra("",x,ia(u,x),u.replace(t,""),G&&-1!==u.indexOf("px"),!0);else if(e&&pa.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&U,p=na(p,C),u=na(u,C),y=p.length+u.length>6,y&&!U&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(U||(y=!1),C?h.appendXtra(y?"hsla(":"hsl(",p[0],ia(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ia(u[1],p[1]),"%,",!1).appendXtra("",p[2],ia(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(y?"rgba(":"rgb(",p[0],u[0]-p[0],",",!0,!0).appendXtra("",p[1],u[1]-p[1],",",!0).appendXtra("",p[2],u[2]-p[2],y?",":B,!0),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),pa.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n<v.length;n++)A=v[n],z=p.indexOf(A,o),h.appendXtra(p.substr(o,z-o),Number(A),ia(w[n],A),"",G&&"px"===p.substr(z+A.length,2),0===n),o=z+A.length;h["xs"+h.l]+=p.substr(o)}else h["xs"+h.l]+=h.l||h["xs"+h.l]?" "+u:u;if(-1!==d.indexOf("=")&&h.data){for(B=h.xs0+h.data.s,m=1;m<h.l;m++)B+=h["xs"+m]+h.data["xn"+m];h.e=B+h["xs"+m]}return h.l||(h.type=-1,h.xs0=h.e),h.xfirst||h},wa=9;for(j=ta.prototype,j.l=j.pr=0;--wa>0;)j["xn"+wa]=0,j["xs"+wa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ta(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var xa=function(a,b){b=b||{},this.p=b.prefix?Z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||qa(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.pr=b.priority||0},ya=S._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;d<f.length;d++)b.prefix=0===d&&b.prefix,b.defaultValue=c[d]||g,e=new xa(f[d],b)},za=S._registerPluginProp=function(a){if(!i[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";ya(a,{parser:function(a,c,d,e,f,g,j){var k=h.com.greensock.plugins[b];return k?(k._cssRegister(),i[d].parse(a,c,d,e,f,g,j)):(W("Error: "+b+" js file not loaded."),f)}})}};j=xa.prototype,j.parseComplex=function(a,b,c,d,e,f){var g,h,i,j,k,l,m=this.keyword;if(this.multi&&(I.test(c)||I.test(b)?(h=b.replace(I,"|").split("|"),i=c.replace(I,"|").split("|")):m&&(h=[b],i=[c])),i){for(j=i.length>h.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return va(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(_(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){ya(a,{parser:function(a,d,e,f,g,h,i){var j=new ta(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=!0;var Aa,Ba="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ca=Z("transform"),Da=X+"transform",Ea=Z("transformOrigin"),Fa=null!==Z("perspective"),Ga=S.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Fa?g.defaultForce3D||"auto":!1},Ha=_gsScope.SVGElement,Ia=function(a,b,c){var d,e=O.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Ja=O.documentElement||{},Ka=function(){var a,b,c,d=p||/Android/i.test(T)&&!_gsScope.chrome;return O.createElementNS&&!d&&(a=Ia("svg",Ja),b=Ia("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Ea]="50% 50%",b.style[Ca]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Fa),Ja.removeChild(a)),d}(),La=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Qa(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parseFloat(a.hasAttribute("x")?a.getAttribute("x"):a.hasAttribute("cx")?a.getAttribute("cx"):0)||0,y:parseFloat(a.hasAttribute("y")?a.getAttribute("y"):a.hasAttribute("cy")?a.getAttribute("cy"):0)||0,width:0,height:0}),b=ha(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Pa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j)),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},Ma=function(a){var b,c=P("svg",this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentNode,e=this.nextSibling,f=this.style.cssText;if(Ja.appendChild(c),c.appendChild(this),this.style.display="block",a)try{b=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ma}catch(g){}else this._originalGetBBox&&(b=this._originalGetBBox());return e?d.insertBefore(this,e):d.appendChild(this),Ja.removeChild(c),this.style.cssText=f,b},Na=function(a){try{return a.getBBox()}catch(b){return Ma.call(a,!0)}},Oa=function(a){return!(!(Ha&&a.getCTM&&Na(a))||a.parentNode&&!a.ownerSVGElement)},Pa=[1,0,0,1,0,0],Qa=function(a,b){var c,d,e,f,g,h,i=a._gsTransform||new Ga,j=1e5,k=a.style;if(Ca?d=_(a,Da,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(G),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,c&&Ca&&((h="none"===$(a).display)||!a.parentNode)&&(h&&(f=k.display,k.display="block"),a.parentNode||(g=1,Ja.appendChild(a)),d=_(a,Da,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&Va(k,"display"),g&&Ja.removeChild(a)),(i.svg||a.getCTM&&Oa(a))&&(c&&-1!==(k[Ca]+"").indexOf("matrix")&&(d=k[Ca],c=0),e=a.getAttribute("transform"),c&&e&&(-1!==e.indexOf("matrix")?(d=e,c=0):-1!==e.indexOf("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return Pa;for(e=(d||"").match(s)||[],wa=e.length;--wa>-1;)f=Number(e[wa]),e[wa]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Ra=S.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Ga:new Ga,n=m.scaleX<0,o=2e-5,p=1e5,q=Fa?parseFloat(_(a,Ea,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getCTM||!Oa(a)),m.svg&&(La(a,_(a,Ea,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),Aa=g.useSVGTransformAttr||Ka),f=Qa(a),f!==Pa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],M=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,M=E*-w+M*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,M=A*w+M*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),x=x*v+B*w,t=y*v+C*w,C=y*-w+C*v,D=z*-w+D*v,y=t),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),m.scaleX=(Math.sqrt(x*x+y*y)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+G*G)*p+.5|0)/p,m.scaleZ=(Math.sqrt(D*D+H*H)*p+.5|0)/p,m.rotationX||m.rotationY?m.skewX=0:(m.skewX=B||C?Math.atan2(B,C)*L+m.rotation:m.skewX||0,Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180))),m.perspective=M?1/(0>M?-M:M):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Fa||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*L:m.rotation||0,l=R||S?Math.atan2(R,S)*L+k:m.skewX||0,Math.abs(l)>90&&Math.abs(l)<270&&(n?(i*=-1,l+=0>=k?180:-180,k+=0>=k?180:-180):(j*=-1,l+=0>=l?180:-180)),m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Fa&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}m.zOrigin=q;for(h in m)m[h]<o&&m[h]>-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(Aa&&a.style[Ca]?b.delayedCall(.001,function(){Va(a.style,Ca)}):!Aa&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Sa=function(a){var b,c,d=this.data,e=-d.rotation*K,f=e+d.skewX*K,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(H,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||x.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),wa=0;4>wa;wa++)z=fa[wa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):aa(this.t,z,parseFloat(y),y.replace(w,""))||0,A=c!==d[z]?2>wa?-d.ieOffsetX:-d.ieOffsetY:2>wa?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===wa||2===wa?1:B)))+"px"}}},Ta=S.set3DTransformRatio=S.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,L=z.svg,M=z.perspective,N=z.force3D,O=z.skewY,P=z.skewX;if(O&&(P+=O,B+=O),((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||Aa&&L||!Fa)return void(B||P||L?(B*=K,x=P*K,y=1e5,c=Math.cos(B)*E,f=Math.sin(B)*E,d=Math.sin(B-x)*-F,g=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(b=Math.tan(x-O*K),b=Math.sqrt(1+b*b),d*=b,g*=b,O&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b)),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset,Aa&&(z.xPercent||z.yPercent)&&(q=this.t.getBBox(),H+=.01*z.xPercent*q.width,I+=.01*z.yPercent*q.height),q=1e-6,q>H&&H>-q&&(H=0),q>I&&I>-q&&(I=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+H+","+I+")",L&&Aa?this.t.setAttribute("transform","matrix("+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(q=1e-4,q>E&&E>-q&&(E=G=2e-5),q>F&&F>-q&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||P)B*=K,r=c=Math.cos(B),s=f=Math.sin(B),P&&(B-=P*K,r=Math.cos(B),s=Math.sin(B),"simple"===z.skewType&&(b=Math.tan((P-O)*K),b=Math.sqrt(1+b*b),r*=b,s*=b,z.skewY&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(D||C||1!==G||M||L))return void(A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=M?-1/M:0,p=z.zOrigin,q=1e-6,v=",",w="0",B=D*K,B&&(r=Math.cos(B),s=Math.sin(B),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),B=C*K,B&&(r=Math.cos(B),s=Math.sin(B),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==G&&(e*=G,h*=G,k*=G,o*=G),1!==F&&(d*=F,g*=F,j*=F,m*=F),1!==E&&(c*=E,f*=E,i*=E,l*=E),(p||L)&&(p&&(H+=e*-p,I+=h*-p,J+=k*-p+p),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset),q>H&&H>-q&&(H=w),q>I&&I>-q&&(I=w),q>J&&J>-q&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),C||D||1!==G?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Ca]=u};j=Ga.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,j.scaleX=j.scaleY=j.scaleZ=1,ya("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j,k=i.scale&&"function"==typeof i.scale?i.scale:0;"function"==typeof i[c]&&(j=i[c],i[c]=b),k&&(i.scale=k(r,a));var l,m,n,o,p,s,t,u,v,w=a._gsTransform,x=a.style,y=1e-6,z=Ba.length,A=i,B={},C="transformOrigin",D=Ra(a,e,!0,A.parseTransform),E=A.transform&&("function"==typeof A.transform?A.transform(r,q):A.transform);if(d._transform=D,E&&"string"==typeof E&&Ca)m=Q.style,m[Ca]=E,m.display="block",m.position="absolute",O.body.appendChild(Q),l=Ra(Q,null,!1),D.svg&&(s=D.xOrigin,t=D.yOrigin,l.x-=D.xOffset,l.y-=D.yOffset,(A.transformOrigin||A.svgOrigin)&&(E={},La(a,ha(A.transformOrigin),E,A.svgOrigin,A.smoothOrigin,!0),s=E.xOrigin,t=E.yOrigin,l.x-=E.xOffset-D.xOffset,l.y-=E.yOffset-D.yOffset),(s||t)&&(u=Qa(Q,!0),l.x-=s-(s*u[0]+t*u[2]),l.y-=t-(s*u[1]+t*u[3]))),O.body.removeChild(Q),l.perspective||(l.perspective=D.perspective),null!=A.xPercent&&(l.xPercent=ja(A.xPercent,D.xPercent)),null!=A.yPercent&&(l.yPercent=ja(A.yPercent,D.yPercent));else if("object"==typeof A){if(l={scaleX:ja(null!=A.scaleX?A.scaleX:A.scale,D.scaleX),scaleY:ja(null!=A.scaleY?A.scaleY:A.scale,D.scaleY),scaleZ:ja(A.scaleZ,D.scaleZ),x:ja(A.x,D.x),y:ja(A.y,D.y),z:ja(A.z,D.z),xPercent:ja(A.xPercent,D.xPercent),yPercent:ja(A.yPercent,D.yPercent),perspective:ja(A.transformPerspective,D.perspective)},p=A.directionalRotation,null!=p)if("object"==typeof p)for(m in p)A[m]=p[m];else A.rotation=p;"string"==typeof A.x&&-1!==A.x.indexOf("%")&&(l.x=0,l.xPercent=ja(A.x,D.xPercent)),"string"==typeof A.y&&-1!==A.y.indexOf("%")&&(l.y=0,l.yPercent=ja(A.y,D.yPercent)),l.rotation=ka("rotation"in A?A.rotation:"shortRotation"in A?A.shortRotation+"_short":"rotationZ"in A?A.rotationZ:D.rotation,D.rotation,"rotation",B),Fa&&(l.rotationX=ka("rotationX"in A?A.rotationX:"shortRotationX"in A?A.shortRotationX+"_short":D.rotationX||0,D.rotationX,"rotationX",B),l.rotationY=ka("rotationY"in A?A.rotationY:"shortRotationY"in A?A.shortRotationY+"_short":D.rotationY||0,D.rotationY,"rotationY",B)),l.skewX=ka(A.skewX,D.skewX),l.skewY=ka(A.skewY,D.skewY)}for(Fa&&null!=A.force3D&&(D.force3D=A.force3D,o=!0),D.skewType=A.skewType||D.skewType||g.defaultSkewType,n=D.force3D||D.z||D.rotationX||D.rotationY||l.z||l.rotationX||l.rotationY||l.perspective,n||null==A.scale||(l.scaleZ=1);--z>-1;)v=Ba[z],E=l[v]-D[v],(E>y||-y>E||null!=A[v]||null!=M[v])&&(o=!0,f=new ta(D,v,D[v],E,f),v in B&&(f.e=B[v]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return E=A.transformOrigin,D.svg&&(E||A.svgOrigin)&&(s=D.xOffset,t=D.yOffset,La(a,ha(E),l,A.svgOrigin,A.smoothOrigin),f=ua(D,"xOrigin",(w?D:l).xOrigin,l.xOrigin,f,C),f=ua(D,"yOrigin",(w?D:l).yOrigin,l.yOrigin,f,C),(s!==D.xOffset||t!==D.yOffset)&&(f=ua(D,"xOffset",w?s:D.xOffset,D.xOffset,f,C),f=ua(D,"yOffset",w?t:D.yOffset,D.yOffset,f,C)),E="0px 0px"),(E||Fa&&n&&D.zOrigin)&&(Ca?(o=!0,v=Ea,E=(E||_(a,v,e,!1,"50% 50%"))+"",f=new ta(x,v,0,0,f,-1,C),f.b=x[v],f.plugin=h,Fa?(m=D.zOrigin,E=E.split(" "),D.zOrigin=(E.length>2&&(0===m||"0px"!==E[2])?parseFloat(E[2]):m)||0,f.xs0=f.e=E[0]+" "+(E[1]||"50%")+" 0px",f=new ta(D,"zOrigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=D.zOrigin):f.xs0=f.e=E):ha(E+"",D)),o&&(d._transformType=D.svg&&Aa||!n&&3!==this._transformType?2:3),j&&(i[c]=j),k&&(i.scale=k),f},prefix:!0}),ya("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ya("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;j<y.length;j++)this.p.indexOf("border")&&(y[j]=Z(y[j])),m=l=_(a,y[j],e,!1,"0px"),-1!==m.indexOf(" ")&&(l=m.split(" "),m=l[0],l=l[1]),n=k=i[j],o=parseFloat(m),t=m.substr((o+"").length),u="="===n.charAt(1),u?(p=parseInt(n.charAt(0)+"1",10),n=n.substr(2),p*=parseFloat(n),s=n.substr((p+"").length-(0>p?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=aa(a,"borderLeft",o,t),w=aa(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=aa(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=va(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:qa("0px 0px 0px 0px",!1,!0)}),ya("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return va(a.style,c,this.format(_(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:qa("0px 0px",!1,!0)}),ya("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||$(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=_(a,"backgroundImage").replace(D,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),R.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-R.width:a.offsetHeight-R.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ha}),ya("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="",ha(-1===a.indexOf(" ")?a+" "+a:a)}}),ya("perspective",{defaultValue:"0px",prefix:!0}),ya("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),ya("transformStyle",{prefix:!0}),ya("backfaceVisibility",{prefix:!0}),ya("userSelect",{prefix:!0}),ya("margin",{parser:ra("marginTop,marginRight,marginBottom,marginLeft")}),ya("padding",{parser:ra("paddingTop,paddingRight,paddingBottom,paddingLeft")}),ya("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(_(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),ya("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),ya("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),ya("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=_(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parseFloat(h)/aa(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+_(a,"borderTopStyle",e,!1,"solid")+" "+_(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(pa)||["#000"])[0]}}),ya("borderWidth",{parser:ra("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),ya("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ta(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Ua=function(a){var b,c=this.t,d=c.filter||_(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!_(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};ya("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(_(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===_(a,"visibility",e)&&0!==b&&(h=0),U?f=new ta(i,"opacity",h,b-h,f):(f=new ta(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Ua),j&&(f=new ta(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Va=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(B,"-$1").toLowerCase())):a.removeAttribute(b))},Wa=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Va(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};ya("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ta(a,d,0,0,g,2),g.setRatio=Wa,g.pr=-11,c=!0,g.b=o,k=ca(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=da(a,k,ca(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Xa=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Ea:i[c].p),Va(g,c);e&&(Va(g,Ca),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(ya("clearProps",{parser:function(a,b,d,e,f){return f=new ta(a,d,0,0,f,2),f.setRatio=Xa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),wa=j.length;wa--;)za(j[wa]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=$(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,z,A=a.style;if(l&&""===A.zIndex&&(n=_(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=ca(a,e),A.cssText=t+";"+b,n=da(a,n,ca(a)).difs,!U&&y.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(z=3===this._transformType,Ca?m&&(l=!0,""===A.zIndex&&(w=_(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(z?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new ta(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Ca?Ta:Sa,x.data=this._transform||Ra(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b)n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g],h?c=h.parse(a,n,g,this,c,f,b):(m=_(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&A.test(n)?(s||(n=na(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=va(u,g,m,n,!0,"transparent",c,0,f)):s&&J.test(n)?c=va(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ga(a,g,e),o="px"):"left"===g||"top"===g?(j=ba(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(w,"")):(l=parseFloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&j&&(j=aa(a,g,j,o),"%"===p?(j/=aa(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=aa(a,g,1,p):"px"!==p&&(l=aa(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ta(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):W("invalid "+g+" tween value: "+b[g]):(c=new ta(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))),f&&c&&!c.plugin&&(c.plugin=f);return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=Math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next;else for(;e;){if(2!==e.type)if(e.r&&-1!==e.type)if(b=Math.round(e.s+e.c),e.type){if(1===e.type){for(d=e.l,c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}}else e.t[e.p]=b+e.xs0;else e.t[e.p]=e.e;else e.setRatio(a);e=e._next}},j._enableTransforms=function(a){this._transform=this._transform||Ra(this._target,e,!0),this._transformType=this._transform.svg&&Aa||!a&&3!==this._transformType?2:3};var Ya=function(a){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};j._addLazySet=function(a,b,c){var d=this._firstPT=new ta(a,b,0,0,this._firstPT,2);d.e=c,d.setRatio=Ya,d.data=this},j._linkCSSP=function(a,b,c,d){return a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next,d=!0),c?c._next=a:d||null!==this._firstPT||(this._firstPT=a),a._next=b,a._prev=c),a},j._mod=function(a){for(var b=this._firstPT;b;)"function"==typeof a[b.p]&&a[b.p]===Math.round&&(b.r=1),b=b._next},j._kill=function(b){var c,d,e,f=b;if(b.autoAlpha||b.alpha){f={};for(d in b)f[d]=b[d];f.opacity=1,f.autoAlpha&&(f.visibility=1)}for(b.className&&(c=this._classNamePT)&&(e=c.xfirst,e&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=c._next),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._classNamePT=null),c=this._firstPT;c;)c.plugin&&c.plugin!==d&&c.plugin._kill&&(c.plugin._kill(b),d=c.plugin),c=c._next;return a.prototype._kill.call(this,f)};var Za=function(a,b,c){var d,e,f,g;if(a.slice)for(e=a.length;--e>-1;)Za(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ca(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Za(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,Za(a,k,m),i.render(c,!0,!0),Za(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=da(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"function"==typeof define&&define.amd?define(["TweenLite"],b):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=b())}("CSSPlugin");
/* SPLIT TEXT UTIL */
/*!
 * VERSION: 0.5.6
 * DATE: 2017-01-17
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
 * SplitText is a Club GreenSock membership benefit; You must have a valid membership to use
 * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
 * This work is subject to the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;!function(a){"use strict";var b=a.GreenSockGlobals||a,c=function(a){var c,d=a.split("."),e=b;for(c=0;c<d.length;c++)e[d[c]]=e=e[d[c]]||{};return e},d=c("com.greensock.utils"),e=function(a){var b=a.nodeType,c="";if(1===b||9===b||11===b){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===b||4===b)return a.nodeValue;return c},f=document,g=f.defaultView?f.defaultView.getComputedStyle:function(){},h=/([A-Z])/g,i=function(a,b,c,d){var e;return(c=c||g(a,null))?(a=c.getPropertyValue(b.replace(h,"-$1").toLowerCase()),e=a||c.length?a:c[b]):a.currentStyle&&(c=a.currentStyle,e=c[b]),d?e:parseInt(e,10)||0},j=function(a){return a.length&&a[0]&&(a[0].nodeType&&a[0].style&&!a.nodeType||a[0].length&&a[0][0])?!0:!1},k=function(a){var b,c,d,e=[],f=a.length;for(b=0;f>b;b++)if(c=a[b],j(c))for(d=c.length,d=0;d<c.length;d++)e.push(c[d]);else e.push(c);return e},l=/(?:\r|\n|\t\t)/g,m=/(?:\s\s+)/g,n=55296,o=56319,p=56320,q=127462,r=127487,s=127995,t=127999,u=function(a){return(a.charCodeAt(0)-n<<10)+(a.charCodeAt(1)-p)+65536},v=f.all&&!f.addEventListener,w=" style='position:relative;display:inline-block;"+(v?"*display:inline;*zoom:1;'":"'"),x=function(a,b){a=a||"";var c=-1!==a.indexOf("++"),d=1;return c&&(a=a.split("++").join("")),function(){return"<"+b+w+(a?" class='"+a+(c?d++:"")+"'>":">")}},y=d.SplitText=b.SplitText=function(a,b){if("string"==typeof a&&(a=y.selector(a)),!a)throw"cannot split a null element.";this.elements=j(a)?k(a):[a],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=b||{},this.split(b)},z=function(a,b,c){var d=a.nodeType;if(1===d||9===d||11===d)for(a=a.firstChild;a;a=a.nextSibling)z(a,b,c);else(3===d||4===d)&&(a.nodeValue=a.nodeValue.split(b).join(c))},A=function(a,b){for(var c=b.length;--c>-1;)a.push(b[c])},B=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},C=function(a,b,c){for(var d;a&&a!==b;){if(d=a._next||a.nextSibling)return d.textContent.charAt(0)===c;a=a.parentNode||a._parent}return!1},D=function(a){var b,c,d=B(a.childNodes),e=d.length;for(b=0;e>b;b++)c=d[b],c._isSplit?D(c):(b&&3===c.previousSibling.nodeType?c.previousSibling.nodeValue+=3===c.nodeType?c.nodeValue:c.firstChild.nodeValue:3!==c.nodeType&&a.insertBefore(c.firstChild,c),a.removeChild(c))},E=function(a,b,c,d,e,h,j){var k,l,m,n,o,p,q,r,s,t,u,v,w=g(a),x=i(a,"paddingLeft",w),y=-999,B=i(a,"borderBottomWidth",w)+i(a,"borderTopWidth",w),E=i(a,"borderLeftWidth",w)+i(a,"borderRightWidth",w),F=i(a,"paddingTop",w)+i(a,"paddingBottom",w),G=i(a,"paddingLeft",w)+i(a,"paddingRight",w),H=.2*i(a,"fontSize"),I=i(a,"textAlign",w,!0),J=[],K=[],L=[],M=b.wordDelimiter||" ",N=b.span?"span":"div",O=b.type||b.split||"chars,words,lines",P=e&&-1!==O.indexOf("lines")?[]:null,Q=-1!==O.indexOf("words"),R=-1!==O.indexOf("chars"),S="absolute"===b.position||b.absolute===!0,T=b.linesClass,U=-1!==(T||"").indexOf("++"),V=[];for(P&&1===a.children.length&&a.children[0]._isSplit&&(a=a.children[0]),U&&(T=T.split("++").join("")),l=a.getElementsByTagName("*"),m=l.length,o=[],k=0;m>k;k++)o[k]=l[k];if(P||S)for(k=0;m>k;k++)n=o[k],p=n.parentNode===a,(p||S||R&&!Q)&&(v=n.offsetTop,P&&p&&Math.abs(v-y)>H&&"BR"!==n.nodeName&&(q=[],P.push(q),y=v),S&&(n._x=n.offsetLeft,n._y=v,n._w=n.offsetWidth,n._h=n.offsetHeight),P&&((n._isSplit&&p||!R&&p||Q&&p||!Q&&n.parentNode.parentNode===a&&!n.parentNode._isSplit)&&(q.push(n),n._x-=x,C(n,a,M)&&(n._wordEnd=!0)),"BR"===n.nodeName&&n.nextSibling&&"BR"===n.nextSibling.nodeName&&P.push([])));for(k=0;m>k;k++)n=o[k],p=n.parentNode===a,"BR"!==n.nodeName?(S&&(s=n.style,Q||p||(n._x+=n.parentNode._x,n._y+=n.parentNode._y),s.left=n._x+"px",s.top=n._y+"px",s.position="absolute",s.display="block",s.width=n._w+1+"px",s.height=n._h+"px"),!Q&&R?n._isSplit?(n._next=n.nextSibling,n.parentNode.appendChild(n)):n.parentNode._isSplit?(n._parent=n.parentNode,!n.previousSibling&&n.firstChild&&(n.firstChild._isFirst=!0),n.nextSibling&&" "===n.nextSibling.textContent&&!n.nextSibling.nextSibling&&V.push(n.nextSibling),n._next=n.nextSibling&&n.nextSibling._isFirst?null:n.nextSibling,n.parentNode.removeChild(n),o.splice(k--,1),m--):p||(v=!n.nextSibling&&C(n.parentNode,a,M),n.parentNode._parent&&n.parentNode._parent.appendChild(n),v&&n.parentNode.appendChild(f.createTextNode(" ")),b.span&&(n.style.display="inline"),J.push(n)):n.parentNode._isSplit&&!n._isSplit&&""!==n.innerHTML?K.push(n):R&&!n._isSplit&&(b.span&&(n.style.display="inline"),J.push(n))):P||S?(n.parentNode&&n.parentNode.removeChild(n),o.splice(k--,1),m--):Q||a.appendChild(n);for(k=V.length;--k>-1;)V[k].parentNode.removeChild(V[k]);if(P){for(S&&(t=f.createElement(N),a.appendChild(t),u=t.offsetWidth+"px",v=t.offsetParent===a?0:a.offsetLeft,a.removeChild(t)),s=a.style.cssText,a.style.cssText="display:none;";a.firstChild;)a.removeChild(a.firstChild);for(r=" "===M&&(!S||!Q&&!R),k=0;k<P.length;k++){for(q=P[k],t=f.createElement(N),t.style.cssText="display:block;text-align:"+I+";position:"+(S?"absolute;":"relative;"),T&&(t.className=T+(U?k+1:"")),L.push(t),m=q.length,l=0;m>l;l++)"BR"!==q[l].nodeName&&(n=q[l],t.appendChild(n),r&&n._wordEnd&&t.appendChild(f.createTextNode(" ")),S&&(0===l&&(t.style.top=n._y+"px",t.style.left=x+v+"px"),n.style.top="0px",v&&(n.style.left=n._x-v+"px")));0===m?t.innerHTML="&nbsp;":Q||R||(D(t),z(t,String.fromCharCode(160)," ")),S&&(t.style.width=u,t.style.height=n._h+"px"),a.appendChild(t)}a.style.cssText=s}S&&(j>a.clientHeight&&(a.style.height=j-F+"px",a.clientHeight<j&&(a.style.height=j+B+"px")),h>a.clientWidth&&(a.style.width=h-G+"px",a.clientWidth<h&&(a.style.width=h+E+"px"))),A(c,J),A(d,K),A(e,L)},F=function(a,b,c,d){var g,h,i,j,k,p,v,w,x,y=b.span?"span":"div",A=b.type||b.split||"chars,words,lines",B=(-1!==A.indexOf("words"),-1!==A.indexOf("chars")),C="absolute"===b.position||b.absolute===!0,D=b.wordDelimiter||" ",E=" "!==D?"":C?"&#173; ":" ",F=b.span?"</span>":"</div>",G=!0,H=f.createElement("div"),I=a.parentNode;for(I.insertBefore(H,a),H.textContent=a.nodeValue,I.removeChild(a),a=H,g=e(a),v=-1!==g.indexOf("<"),b.reduceWhiteSpace!==!1&&(g=g.replace(m," ").replace(l,"")),v&&(g=g.split("<").join("{{LT}}")),k=g.length,h=(" "===g.charAt(0)?E:"")+c(),i=0;k>i;i++)if(p=g.charAt(i),p===D&&g.charAt(i-1)!==D&&i){for(h+=G?F:"",G=!1;g.charAt(i+1)===D;)h+=E,i++;i===k-1?h+=E:")"!==g.charAt(i+1)&&(h+=E+c(),G=!0)}else"{"===p&&"{{LT}}"===g.substr(i,6)?(h+=B?d()+"{{LT}}</"+y+">":"{{LT}}",i+=5):p.charCodeAt(0)>=n&&p.charCodeAt(0)<=o||g.charCodeAt(i+1)>=65024&&g.charCodeAt(i+1)<=65039?(w=u(g.substr(i,2)),x=u(g.substr(i+2,2)),j=w>=q&&r>=w&&x>=q&&r>=x||x>=s&&t>=x?4:2,h+=B&&" "!==p?d()+g.substr(i,j)+"</"+y+">":g.substr(i,j),i+=j-1):h+=B&&" "!==p?d()+p+"</"+y+">":p;a.outerHTML=h+(G?F:""),v&&z(I,"{{LT}}","<")},G=function(a,b,c,d){var e,f,g=B(a.childNodes),h=g.length,j="absolute"===b.position||b.absolute===!0;if(3!==a.nodeType||h>1){for(b.absolute=!1,e=0;h>e;e++)f=g[e],(3!==f.nodeType||/\S+/.test(f.nodeValue))&&(j&&3!==f.nodeType&&"inline"===i(f,"display",null,!0)&&(f.style.display="inline-block",f.style.position="relative"),f._isSplit=!0,G(f,b,c,d));return b.absolute=j,void(a._isSplit=!0)}F(a,b,c,d)},H=y.prototype;H.split=function(a){this.isSplit&&this.revert(),this.vars=a=a||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var b,c,d,e=this.elements.length,f=a.span?"span":"div",g=("absolute"===a.position||a.absolute===!0,x(a.wordsClass,f)),h=x(a.charsClass,f);--e>-1;)d=this.elements[e],this._originals[e]=d.innerHTML,b=d.clientHeight,c=d.clientWidth,G(d,a,g,h),E(d,a,this.chars,this.words,this.lines,c,b);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},H.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var a=this._originals.length;--a>-1;)this.elements[a].innerHTML=this._originals[a];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},y.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(y.selector=c,c(b)):"undefined"==typeof document?b:document.querySelectorAll?document.querySelectorAll(b):document.getElementById("#"===b.charAt(0)?b.substr(1):b)},y.version="0.5.6"}(_gsScope),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"function"==typeof define&&define.amd?define([],b):"undefined"!=typeof module&&module.exports&&(module.exports=b())}("SplitText");try{window.GreenSockGlobals=null;window._gsQueue=null;window._gsDefine=null;delete(window.GreenSockGlobals);delete(window._gsQueue);delete(window._gsDefine)}catch(e){}
try{window.GreenSockGlobals=oldgs;window._gsQueue=oldgs_queue}catch(e){}
if(window.tplogs==!0)
try{console.groupEnd()}catch(e){}(function(e,t){e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};e.expr[":"].uncached=function(t){var n=document.createElement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitForImages=function(t,n,r){if(e.isPlainObject(arguments[0])){n=t.each;r=t.waitForAll;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isFunction(t)||!e.isFunction(n)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitForImages.hasImageProperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return!0}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new Image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return!1}});o.src=s.src})})}})(jQuery);!function(jQuery,undefined){"use strict";var version={core:"5.4.8","revolution.extensions.actions.min.js":"2.1.0","revolution.extensions.carousel.min.js":"1.2.1","revolution.extensions.kenburn.min.js":"1.3.1","revolution.extensions.layeranimation.min.js":"3.6.5","revolution.extensions.navigation.min.js":"1.3.5","revolution.extensions.parallax.min.js":"2.2.3","revolution.extensions.slideanims.min.js":"1.8","revolution.extensions.video.min.js":"2.2.2"};jQuery.fn.extend({revolution:function(i){var e={delay:9e3,responsiveLevels:4064,visibilityLevels:[2048,1024,778,480],gridwidth:960,gridheight:500,minHeight:0,autoHeight:"off",sliderType:"standard",sliderLayout:"auto",fullScreenAutoWidth:"off",fullScreenAlignForce:"off",fullScreenOffsetContainer:"",fullScreenOffset:"0",hideCaptionAtLimit:0,hideAllCaptionAtLimit:0,hideSliderAtLimit:0,disableProgressBar:"off",stopAtSlide:-1,stopAfterLoops:-1,shadow:0,dottedOverlay:"none",startDelay:0,lazyType:"smart",spinner:"spinner0",shuffle:"off",viewPort:{enable:!1,outof:"wait",visible_area:"60%",presize:!1},fallbacks:{isJoomla:!1,panZoomDisableOnMobile:"off",simplifyAll:"on",nextSlideOnWindowFocus:"off",disableFocusListener:!0,ignoreHeightChanges:"off",ignoreHeightChangesSize:0,allowHTML5AutoPlayOnAndroid:!0},parallax:{type:"off",levels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],origo:"enterpoint",speed:400,bgparallax:"off",opacity:"on",disable_onmobile:"off",ddd_shadow:"on",ddd_bgfreeze:"off",ddd_overflow:"visible",ddd_layer_overflow:"visible",ddd_z_correction:65,ddd_path:"mouse"},scrolleffect:{fade:"off",blur:"off",scale:"off",grayscale:"off",maxblur:10,on_layers:"off",on_slidebg:"off",on_static_layers:"off",on_parallax_layers:"off",on_parallax_static_layers:"off",direction:"both",multiplicator:1.35,multiplicator_layers:.5,tilt:30,disable_on_mobile:"on"},carousel:{easing:punchgs.Power3.easeInOut,speed:800,showLayersAllTime:"off",horizontal_align:"center",vertical_align:"center",infinity:"on",space:0,maxVisibleItems:3,stretch:"off",fadeout:"on",maxRotation:0,minScale:0,vary_fade:"off",vary_rotation:"on",vary_scale:"off",border_radius:"0px",padding_top:0,padding_bottom:0},navigation:{keyboardNavigation:"off",keyboard_direction:"horizontal",mouseScrollNavigation:"off",onHoverStop:"on",touch:{touchenabled:"off",touchOnDesktop:"off",swipe_treshold:75,swipe_min_touches:1,drag_block_vertical:!1,swipe_direction:"horizontal"},arrows:{style:"",enable:!1,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,tmp:"",rtl:!1,left:{h_align:"left",v_align:"center",h_offset:20,v_offset:0,container:"slider"},right:{h_align:"right",v_align:"center",h_offset:20,v_offset:0,container:"slider"}},bullets:{container:"slider",rtl:!1,style:"",enable:!1,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",h_align:"left",v_align:"center",space:0,h_offset:20,v_offset:0,tmp:'<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>'},thumbnails:{container:"slider",rtl:!1,style:"",enable:!1,width:100,height:50,min_width:100,wrapper_padding:2,wrapper_color:"#f5f5f5",wrapper_opacity:1,tmp:'<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,position:"inner",space:2,h_align:"left",v_align:"center",h_offset:20,v_offset:0},tabs:{container:"slider",rtl:!1,style:"",enable:!1,width:100,min_width:100,height:50,wrapper_padding:10,wrapper_color:"#f5f5f5",wrapper_opacity:1,tmp:'<span class="tp-tab-image"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,space:0,position:"inner",h_align:"left",v_align:"center",h_offset:20,v_offset:0}},extensions:"extensions/",extensions_suffix:".min.js",debugMode:!1};return i=jQuery.extend(!0,{},e,i),this.each(function(){var e=jQuery(this);i.minHeight=i.minHeight!=undefined?parseInt(i.minHeight,0):i.minHeight,i.scrolleffect.on="on"===i.scrolleffect.fade||"on"===i.scrolleffect.scale||"on"===i.scrolleffect.blur||"on"===i.scrolleffect.grayscale,"hero"==i.sliderType&&e.find(">ul>li").each(function(e){0<e&&jQuery(this).remove()}),i.jsFileLocation=i.jsFileLocation||getScriptLocation("themepunch.revolution.min.js"),i.jsFileLocation=i.jsFileLocation+i.extensions,i.scriptsneeded=getNeededScripts(i,e),i.curWinRange=0,i.rtl=!0,i.navigation!=undefined&&i.navigation.touch!=undefined&&(i.navigation.touch.swipe_min_touches=5<i.navigation.touch.swipe_min_touches?1:i.navigation.touch.swipe_min_touches),jQuery(this).on("scriptsloaded",function(){if(i.modulesfailing)return e.html('<div style="margin:auto;line-height:40px;font-size:14px;color:#fff;padding:15px;background:#e74c3c;margin:20px 0px;">!! Error at loading Slider Revolution 5.0 Extrensions.'+i.errorm+"</div>").show(),!1;_R.migration!=undefined&&(i=_R.migration(e,i)),punchgs.force3D=!0,"on"!==i.simplifyAll&&punchgs.TweenLite.lagSmoothing(1e3,16),prepareOptions(e,i),initSlider(e,i)}),e[0].opt=i,waitForScripts(e,i)})},getRSVersion:function(e){if(!0===e)return jQuery("body").data("tp_rs_version");var i=jQuery("body").data("tp_rs_version"),t="";for(var a in t+="---------------------------------------------------------\n",t+="    Currently Loaded Slider Revolution & SR Modules :\n",t+="---------------------------------------------------------\n",i)t+=i[a].alias+": "+i[a].ver+"\n";return t+="---------------------------------------------------------\n"},revremoveslide:function(r){return this.each(function(){var e=jQuery(this),i=e[0].opt;if(!(r<0||r>i.slideamount)&&e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&i&&0<i.li.length&&(0<r||r<=i.li.length)){var t=jQuery(i.li[r]),a=t.data("index"),n=!1;i.slideamount=i.slideamount-1,i.realslideamount=i.realslideamount-1,removeNavWithLiref(".tp-bullet",a,i),removeNavWithLiref(".tp-tab",a,i),removeNavWithLiref(".tp-thumb",a,i),t.hasClass("active-revslide")&&(n=!0),t.remove(),i.li=removeArray(i.li,r),i.carousel&&i.carousel.slides&&(i.carousel.slides=removeArray(i.carousel.slides,r)),i.thumbs=removeArray(i.thumbs,r),_R.updateNavIndexes&&_R.updateNavIndexes(i),n&&e.revnext(),punchgs.TweenLite.set(i.li,{minWidth:"99%"}),punchgs.TweenLite.set(i.li,{minWidth:"100%"})}})},revaddcallback:function(e){return this.each(function(){this.opt&&(this.opt.callBackArray===undefined&&(this.opt.callBackArray=new Array),this.opt.callBackArray.push(e))})},revgetparallaxproc:function(){return jQuery(this)[0].opt.scrollproc},revdebugmode:function(){return this.each(function(){var e=jQuery(this);e[0].opt.debugMode=!0,containerResized(e,e[0].opt)})},revscroll:function(i){return this.each(function(){var e=jQuery(this);jQuery("body,html").animate({scrollTop:e.offset().top+e.height()-i+"px"},{duration:400})})},revredraw:function(e){return this.each(function(){var e=jQuery(this);containerResized(e,e[0].opt)})},revkill:function(e){var i=this,t=jQuery(this);if(punchgs.TweenLite.killDelayedCallsTo(_R.showHideNavElements),t!=undefined&&0<t.length&&0<jQuery("body").find("#"+t.attr("id")).length){t.data("conthover",1),t.data("conthover-changed",1),t.trigger("revolution.slide.onpause");var a=t.parent().find(".tp-bannertimer"),n=t[0].opt;n.tonpause=!0,t.trigger("stoptimer");var r="resize.revslider-"+t.attr("id");jQuery(window).unbind(r),punchgs.TweenLite.killTweensOf(t.find("*"),!1),punchgs.TweenLite.killTweensOf(t,!1),t.unbind("hover, mouseover, mouseenter,mouseleave, resize");r="resize.revslider-"+t.attr("id");jQuery(window).off(r),t.find("*").each(function(){var e=jQuery(this);e.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),e.off("on, hover, mouseenter,mouseleave,mouseover, resize"),e.data("mySplitText",null),e.data("ctl",null),e.data("tween")!=undefined&&e.data("tween").kill(),e.data("kenburn")!=undefined&&e.data("kenburn").kill(),e.data("timeline_out")!=undefined&&e.data("timeline_out").kill(),e.data("timeline")!=undefined&&e.data("timeline").kill(),e.remove(),e.empty(),e=null}),punchgs.TweenLite.killTweensOf(t.find("*"),!1),punchgs.TweenLite.killTweensOf(t,!1),a.remove();try{t.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(e){}try{t.closest(".rev_slider_wrapper").remove()}catch(e){}try{t.remove()}catch(e){}return t.empty(),t.html(),n=t=null,delete i.c,delete i.opt,delete i.container,!0}return!1},revpause:function(){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&(e.data("conthover",1),e.data("conthover-changed",1),e.trigger("revolution.slide.onpause"),e[0].opt.tonpause=!0,e.trigger("stoptimer"))})},revresume:function(){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&(e.data("conthover",0),e.data("conthover-changed",1),e.trigger("revolution.slide.onresume"),e[0].opt.tonpause=!1,e.trigger("starttimer"))})},revstart:function(){var e=jQuery(this);if(e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&e[0].opt!==undefined)return e[0].opt.sliderisrunning?(console.log("Slider Is Running Already"),!1):((e[0].opt.c=e)[0].opt.ul=e.find(">ul"),runSlider(e,e[0].opt),!0)},revnext:function(){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&_R.callingNewSlide(e,1)})},revprev:function(){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&_R.callingNewSlide(e,-1)})},revmaxslide:function(){return jQuery(this).find(".tp-revslider-mainul >li").length},revcurrentslide:function(){var e=jQuery(this);if(e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length)return parseInt(e[0].opt.act,0)+1},revlastslide:function(){return jQuery(this).find(".tp-revslider-mainul >li").length},revshowslide:function(i){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&_R.callingNewSlide(e,"to"+(i-1))})},revcallslidewithid:function(i){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&_R.callingNewSlide(e,i)})}});var _R=jQuery.fn.revolution;jQuery.extend(!0,_R,{getversion:function(){return version},compare_version:function(e){var i=jQuery("body").data("tp_rs_version");return(i=i===undefined?new Object:i).Core===undefined&&(i.Core=new Object,i.Core.alias="Slider Revolution Core",i.Core.name="jquery.themepunch.revolution.min.js",i.Core.ver=_R.getversion().core),"stop"!=e.check&&(_R.getversion().core<e.min_core?(e.check===undefined&&(console.log("%cSlider Revolution Warning (Core:"+_R.getversion().core+")","color:#c0392b;font-weight:bold;"),console.log("%c     Core is older than expected ("+e.min_core+") from "+e.alias,"color:#333"),console.log("%c     Please update Slider Revolution to the latest version.","color:#333"),console.log("%c     It might be required to purge and clear Server/Client side Caches.","color:#333")),e.check="stop"):_R.getversion()[e.name]!=undefined&&e.version<_R.getversion()[e.name]&&(e.check===undefined&&(console.log("%cSlider Revolution Warning (Core:"+_R.getversion().core+")","color:#c0392b;font-weight:bold;"),console.log("%c     "+e.alias+" ("+e.version+") is older than requiered ("+_R.getversion()[e.name]+")","color:#333"),console.log("%c     Please update Slider Revolution to the latest version.","color:#333"),console.log("%c     It might be required to purge and clear Server/Client side Caches.","color:#333")),e.check="stop")),i[e.alias]===undefined&&(i[e.alias]=new Object,i[e.alias].alias=e.alias,i[e.alias].ver=e.version,i[e.alias].name=e.name),jQuery("body").data("tp_rs_version",i),e},currentSlideIndex:function(e){var i=e.c.find(".active-revslide").index();return i=-1==i?0:i},simp:function(e,i,t){var a=Math.abs(e)-Math.floor(Math.abs(e/i))*i;return t?a:e<0?-1*a:a},iOSVersion:function(){var e=!1;return navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)?navigator.userAgent.match(/OS 4_\d like Mac OS X/i)&&(e=!0):e=!1,e},isIE:function(e,i){var t=jQuery('<div style="display:none;"/>').appendTo(jQuery("body"));t.html("\x3c!--[if "+(i||"")+" IE "+(e||"")+"]><a>&nbsp;</a><![endif]--\x3e");var a=t.find("a").length;return t.remove(),a},is_mobile:function(){var e=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],i=!1;for(var t in e)1<navigator.userAgent.split(e[t]).length&&(i=!0);return i},is_android:function(){var e=["android","Android"],i=!1;for(var t in e)1<navigator.userAgent.split(e[t]).length&&(i=!0);return i},callBackHandling:function(e,t,a){try{e.callBackArray&&jQuery.each(e.callBackArray,function(e,i){i&&i.inmodule&&i.inmodule===t&&i.atposition&&i.atposition===a&&i.callback&&i.callback.call()})}catch(e){console.log("Call Back Failed")}},get_browser:function(){var e,i=navigator.appName,t=navigator.userAgent,a=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return a&&null!=(e=t.match(/version\/([\.\d]+)/i))&&(a[2]=e[1]),(a=a?[a[1],a[2]]:[i,navigator.appVersion,"-?"])[0]},get_browser_version:function(){var e,i=navigator.appName,t=navigator.userAgent,a=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return a&&null!=(e=t.match(/version\/([\.\d]+)/i))&&(a[2]=e[1]),(a=a?[a[1],a[2]]:[i,navigator.appVersion,"-?"])[1]},isSafari11:function(){var e=jQuery.trim(_R.get_browser().toLowerCase());return-1===jQuery.trim(navigator.userAgent.toLowerCase()).search("edge")&&"msie"!==e&&e.match(/safari|chrome/)},getHorizontalOffset:function(e,i){var t=gWiderOut(e,".outer-left"),a=gWiderOut(e,".outer-right");switch(i){case"left":return t;case"right":return a;case"both":return t+a}},callingNewSlide:function(e,i){var t=0<e.find(".next-revslide").length?e.find(".next-revslide").index():0<e.find(".processing-revslide").length?e.find(".processing-revslide").index():e.find(".active-revslide").index(),a=0,n=e[0].opt;e.find(".next-revslide").removeClass("next-revslide"),e.find(".active-revslide").hasClass("tp-invisible-slide")&&(t=n.last_shown_slide),i&&jQuery.isNumeric(i)||i.match(/to/g)?(a=1===i||-1===i?(a=t+i)<0?n.slideamount-1:a>=n.slideamount?0:a:(i=jQuery.isNumeric(i)?i:parseInt(i.split("to")[1],0))<0?0:i>n.slideamount-1?n.slideamount-1:i,e.find(".tp-revslider-slidesli:eq("+a+")").addClass("next-revslide")):i&&e.find(".tp-revslider-slidesli").each(function(){var e=jQuery(this);e.data("index")===i&&e.addClass("next-revslide")}),a=e.find(".next-revslide").index(),e.trigger("revolution.nextslide.waiting"),t===a&&t===n.last_shown_slide||a!==t&&-1!=a?swapSlide(e):e.find(".next-revslide").removeClass("next-revslide")},slotSize:function(e,i){i.slotw=Math.ceil(i.width/i.slots),"fullscreen"==i.sliderLayout?i.sloth=Math.ceil(jQuery(window).height()/i.slots):i.sloth=Math.ceil(i.height/i.slots),"on"==i.autoHeight&&e!==undefined&&""!==e&&(i.sloth=Math.ceil(e.height()/i.slots))},setSize:function(e){var i=(e.top_outer||0)+(e.bottom_outer||0),t=parseInt(e.carousel.padding_top||0,0),a=parseInt(e.carousel.padding_bottom||0,0),n=e.gridheight[e.curWinRange],r=0,o=-1===e.nextSlide||e.nextSlide===undefined?0:e.nextSlide;if(e.paddings=e.paddings===undefined?{top:parseInt(e.c.parent().css("paddingTop"),0)||0,bottom:parseInt(e.c.parent().css("paddingBottom"),0)||0}:e.paddings,e.rowzones&&0<e.rowzones.length)for(var s=0;s<e.rowzones[o].length;s++)r+=e.rowzones[o][s][0].offsetHeight;if(n=(n=n<e.minHeight?e.minHeight:n)<r?r:n,"fullwidth"==e.sliderLayout&&"off"==e.autoHeight&&punchgs.TweenLite.set(e.c,{maxHeight:n+"px"}),e.c.css({marginTop:t,marginBottom:a}),e.width=e.ul.width(),e.height=e.ul.height(),setScale(e),e.height=Math.round(e.gridheight[e.curWinRange]*(e.width/e.gridwidth[e.curWinRange])),e.height>e.gridheight[e.curWinRange]&&"on"!=e.autoHeight&&(e.height=e.gridheight[e.curWinRange]),"fullscreen"==e.sliderLayout||e.infullscreenmode){e.height=e.bw*e.gridheight[e.curWinRange];e.c.parent().width();var l=jQuery(window).height();if(e.fullScreenOffsetContainer!=undefined){try{var d=e.fullScreenOffsetContainer.split(",");d&&jQuery.each(d,function(e,i){l=0<jQuery(i).length?l-jQuery(i).outerHeight(!0):l})}catch(e){}try{1<e.fullScreenOffset.split("%").length&&e.fullScreenOffset!=undefined&&0<e.fullScreenOffset.length?l-=jQuery(window).height()*parseInt(e.fullScreenOffset,0)/100:e.fullScreenOffset!=undefined&&0<e.fullScreenOffset.length&&(l-=parseInt(e.fullScreenOffset,0))}catch(e){}}l=l<e.minHeight?e.minHeight:l,l-=i,e.c.parent().height(l),e.c.closest(".rev_slider_wrapper").height(l),e.c.css({height:"100%"}),e.height=l,e.minHeight!=undefined&&e.height<e.minHeight&&(e.height=e.minHeight),e.height=parseInt(r,0)>parseInt(e.height,0)?r:e.height}else e.minHeight!=undefined&&e.height<e.minHeight&&(e.height=e.minHeight),e.height=parseInt(r,0)>parseInt(e.height,0)?r:e.height,e.c.height(e.height);var c={height:t+a+i+e.height+e.paddings.top+e.paddings.bottom};e.c.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css(c),e.c.closest(".rev_slider_wrapper").css(c),setScale(e)},enterInViewPort:function(t){t.waitForCountDown&&(countDown(t.c,t),t.waitForCountDown=!1),t.waitForFirstSlide&&(swapSlide(t.c),t.waitForFirstSlide=!1,setTimeout(function(){t.c.removeClass("tp-waitforfirststart")},500)),"playing"!=t.sliderlaststatus&&t.sliderlaststatus!=undefined||t.c.trigger("starttimer"),t.lastplayedvideos!=undefined&&0<t.lastplayedvideos.length&&jQuery.each(t.lastplayedvideos,function(e,i){_R.playVideo(i,t)})},leaveViewPort:function(t){t.sliderlaststatus=t.sliderstatus,t.c.trigger("stoptimer"),t.playingvideos!=undefined&&0<t.playingvideos.length&&(t.lastplayedvideos=jQuery.extend(!0,[],t.playingvideos),t.playingvideos&&jQuery.each(t.playingvideos,function(e,i){t.leaveViewPortBasedStop=!0,_R.stopVideo&&_R.stopVideo(i,t)}))},unToggleState:function(e){e!=undefined&&0<e.length&&jQuery.each(e,function(e,i){i.removeClass("rs-toggle-content-active")})},toggleState:function(e){e!=undefined&&0<e.length&&jQuery.each(e,function(e,i){i.addClass("rs-toggle-content-active")})},swaptoggleState:function(e){e!=undefined&&0<e.length&&jQuery.each(e,function(e,i){jQuery(i).hasClass("rs-toggle-content-active")?jQuery(i).removeClass("rs-toggle-content-active"):jQuery(i).addClass("rs-toggle-content-active")})},lastToggleState:function(e){var t=0;return e!=undefined&&0<e.length&&jQuery.each(e,function(e,i){t=i.hasClass("rs-toggle-content-active")}),t}});var _ISM=_R.is_mobile(),_ANDROID=_R.is_android(),checkIDS=function(e,i){if(e.anyid=e.anyid===undefined?[]:e.anyid,-1!=jQuery.inArray(i.attr("id"),e.anyid)){var t=i.attr("id")+"_"+Math.round(9999*Math.random());i.attr("id",t)}e.anyid.push(i.attr("id"))},removeArray=function(e,t){var a=[];return jQuery.each(e,function(e,i){e!=t&&a.push(i)}),a},removeNavWithLiref=function(e,i,t){t.c.find(e).each(function(){var e=jQuery(this);e.data("liref")===i&&e.remove()})},lAjax=function(i,t){return!jQuery("body").data(i)&&(t.filesystem?(t.errorm===undefined&&(t.errorm="<br>Local Filesystem Detected !<br>Put this to your header:"),console.warn("Local Filesystem detected !"),t.errorm=t.errorm+'<br>&lt;script type="text/javascript" src="'+t.jsFileLocation+i+t.extensions_suffix+'"&gt;&lt;/script&gt;',console.warn(t.jsFileLocation+i+t.extensions_suffix+" could not be loaded !"),console.warn("Please use a local Server or work online or make sure that you load all needed Libraries manually in your Document."),console.log(" "),!(t.modulesfailing=!0)):(jQuery.ajax({url:t.jsFileLocation+i+t.extensions_suffix+"?version="+version.core,dataType:"script",cache:!0,error:function(e){console.warn("Slider Revolution 5.0 Error !"),console.error("Failure at Loading:"+i+t.extensions_suffix+" on Path:"+t.jsFileLocation),console.info(e)}}),void jQuery("body").data(i,!0)))},getNeededScripts=function(t,e){var i=new Object,a=t.navigation;return i.kenburns=!1,i.parallax=!1,i.carousel=!1,i.navigation=!1,i.videos=!1,i.actions=!1,i.layeranim=!1,i.migration=!1,e.data("version")&&e.data("version").toString().match(/5./gi)?(e.find("img").each(function(){"on"==jQuery(this).data("kenburns")&&(i.kenburns=!0)}),("carousel"==t.sliderType||"on"==a.keyboardNavigation||"on"==a.mouseScrollNavigation||"on"==a.touch.touchenabled||a.arrows.enable||a.bullets.enable||a.thumbnails.enable||a.tabs.enable)&&(i.navigation=!0),e.find(".tp-caption, .tp-static-layer, .rs-background-video-layer").each(function(){var e=jQuery(this);(e.data("ytid")!=undefined||0<e.find("iframe").length&&0<e.find("iframe").attr("src").toLowerCase().indexOf("youtube"))&&(i.videos=!0),(e.data("vimeoid")!=undefined||0<e.find("iframe").length&&0<e.find("iframe").attr("src").toLowerCase().indexOf("vimeo"))&&(i.videos=!0),e.data("actions")!==undefined&&(i.actions=!0),i.layeranim=!0}),e.find("li").each(function(){jQuery(this).data("link")&&jQuery(this).data("link")!=undefined&&(i.layeranim=!0,i.actions=!0)}),!i.videos&&(0<e.find(".rs-background-video-layer").length||0<e.find(".tp-videolayer").length||0<e.find(".tp-audiolayer").length||0<e.find("iframe").length||0<e.find("video").length)&&(i.videos=!0),"carousel"==t.sliderType&&(i.carousel=!0),("off"!==t.parallax.type||t.viewPort.enable||"true"==t.viewPort.enable||"true"===t.scrolleffect.on||t.scrolleffect.on)&&(i.parallax=!0)):(i.kenburns=!0,i.parallax=!0,i.carousel=!1,i.navigation=!0,i.videos=!0,i.actions=!0,i.layeranim=!0,i.migration=!0),"hero"==t.sliderType&&(i.carousel=!1,i.navigation=!1),window.location.href.match(/file:/gi)&&(i.filesystem=!0,t.filesystem=!0),i.videos&&void 0===_R.isVideoPlaying&&lAjax("revolution.extension.video",t),i.carousel&&void 0===_R.prepareCarousel&&lAjax("revolution.extension.carousel",t),i.carousel||void 0!==_R.animateSlide||lAjax("revolution.extension.slideanims",t),i.actions&&void 0===_R.checkActions&&lAjax("revolution.extension.actions",t),i.layeranim&&void 0===_R.handleStaticLayers&&lAjax("revolution.extension.layeranimation",t),i.kenburns&&void 0===_R.stopKenBurn&&lAjax("revolution.extension.kenburn",t),i.navigation&&void 0===_R.createNavigation&&lAjax("revolution.extension.navigation",t),i.migration&&void 0===_R.migration&&lAjax("revolution.extension.migration",t),i.parallax&&void 0===_R.checkForParallax&&lAjax("revolution.extension.parallax",t),t.addons!=undefined&&0<t.addons.length&&jQuery.each(t.addons,function(e,i){"object"==typeof i&&i.fileprefix!=undefined&&lAjax(i.fileprefix,t)}),i},waitForScripts=function(e,i){var t=!0,a=i.scriptsneeded;i.addons!=undefined&&0<i.addons.length&&jQuery.each(i.addons,function(e,i){"object"==typeof i&&i.init!=undefined&&_R[i.init]===undefined&&(t=!1)}),a.filesystem||"undefined"!=typeof punchgs&&t&&(!a.kenburns||a.kenburns&&void 0!==_R.stopKenBurn)&&(!a.navigation||a.navigation&&void 0!==_R.createNavigation)&&(!a.carousel||a.carousel&&void 0!==_R.prepareCarousel)&&(!a.videos||a.videos&&void 0!==_R.resetVideo)&&(!a.actions||a.actions&&void 0!==_R.checkActions)&&(!a.layeranim||a.layeranim&&void 0!==_R.handleStaticLayers)&&(!a.migration||a.migration&&void 0!==_R.migration)&&(!a.parallax||a.parallax&&void 0!==_R.checkForParallax)&&(a.carousel||!a.carousel&&void 0!==_R.animateSlide)?e.trigger("scriptsloaded"):setTimeout(function(){waitForScripts(e,i)},50)},getScriptLocation=function(e){var i=new RegExp("themepunch.revolution.min.js","gi"),t="";return jQuery("script").each(function(){var e=jQuery(this).attr("src");e&&e.match(i)&&(t=e)}),t=(t=(t=t.replace("jquery.themepunch.revolution.min.js","")).replace("jquery.themepunch.revolution.js","")).split("?")[0]},setCurWinRange=function(e,i){var t=9999,a=0,n=0,r=0,o=jQuery(window).width(),s=i&&9999==e.responsiveLevels?e.visibilityLevels:e.responsiveLevels;s&&s.length&&jQuery.each(s,function(e,i){o<i&&(0==a||i<a)&&(r=e,a=t=i),i<o&&a<i&&(a=i,n=e)}),a<t&&(r=n),i?e.forcedWinRange=r:e.curWinRange=r},prepareOptions=function(e,i){i.carousel.maxVisibleItems=i.carousel.maxVisibleItems<1?999:i.carousel.maxVisibleItems,i.carousel.vertical_align="top"===i.carousel.vertical_align?"0%":"bottom"===i.carousel.vertical_align?"100%":"50%"},gWiderOut=function(e,i){var t=0;return e.find(i).each(function(){var e=jQuery(this);!e.hasClass("tp-forcenotvisible")&&t<e.outerWidth()&&(t=e.outerWidth())}),t},initSlider=function(container,opt){if(container==undefined)return!1;container.data("aimg")!=undefined&&("enabled"==container.data("aie8")&&_R.isIE(8)||"enabled"==container.data("amobile")&&_ISM)&&container.html('<img class="tp-slider-alternative-image" src="'+container.data("aimg")+'">'),container.find(">ul").addClass("tp-revslider-mainul"),opt.c=container,opt.ul=container.find(".tp-revslider-mainul"),opt.ul.find(">li").each(function(e){var i=jQuery(this);"on"==i.data("hideslideonmobile")&&_ISM&&i.remove(),(i.data("invisible")||!0===i.data("invisible"))&&(i.addClass("tp-invisible-slide"),i.appendTo(opt.ul))}),opt.addons!=undefined&&0<opt.addons.length&&jQuery.each(opt.addons,function(i,obj){"object"==typeof obj&&obj.init!=undefined&&_R[obj.init](eval(obj.params))}),opt.cid=container.attr("id"),opt.ul.css({visibility:"visible"}),opt.slideamount=opt.ul.find(">li").not(".tp-invisible-slide").length,opt.realslideamount=opt.ul.find(">li").length,opt.slayers=container.find(".tp-static-layers"),opt.slayers.data("index","staticlayers"),1!=opt.waitForInit&&(container[0].opt=opt,runSlider(container,opt))},onFullScreenChange=function(){jQuery("body").data("rs-fullScreenMode",!jQuery("body").data("rs-fullScreenMode")),jQuery("body").data("rs-fullScreenMode")&&setTimeout(function(){jQuery(window).trigger("resize")},200)},runSlider=function(t,x){if(x.sliderisrunning=!0,x.ul.find(">li").each(function(e){jQuery(this).data("originalindex",e)}),x.allli=x.ul.find(">li"),jQuery.each(x.allli,function(e,i){(i=jQuery(i)).data("origindex",i.index())}),x.li=x.ul.find(">li").not(".tp-invisible-slide"),"on"==x.shuffle){var e=new Object,i=x.ul.find(">li:first-child");e.fstransition=i.data("fstransition"),e.fsmasterspeed=i.data("fsmasterspeed"),e.fsslotamount=i.data("fsslotamount");for(var a=0;a<x.slideamount;a++){var n=Math.round(Math.random()*x.slideamount);x.ul.find(">li:eq("+n+")").prependTo(x.ul)}var r=x.ul.find(">li:first-child");r.data("fstransition",e.fstransition),r.data("fsmasterspeed",e.fsmasterspeed),r.data("fsslotamount",e.fsslotamount),x.allli=x.ul.find(">li"),x.li=x.ul.find(">li").not(".tp-invisible-slide")}if(x.inli=x.ul.find(">li.tp-invisible-slide"),x.thumbs=new Array,x.slots=4,x.act=-1,x.firststart=1,x.loadqueue=new Array,x.syncload=0,x.conw=t.width(),x.conh=t.height(),1<x.responsiveLevels.length?x.responsiveLevels[0]=9999:x.responsiveLevels=9999,jQuery.each(x.allli,function(e,i){var t=(i=jQuery(i)).find(".rev-slidebg")||i.find("img").first(),a=0;i.addClass("tp-revslider-slidesli"),i.data("index")===undefined&&i.data("index","rs-"+Math.round(999999*Math.random()));var n=new Object;n.params=new Array,n.id=i.data("index"),n.src=i.data("thumb")!==undefined?i.data("thumb"):t.data("lazyload")!==undefined?t.data("lazyload"):t.attr("src"),i.data("title")!==undefined&&n.params.push({from:RegExp("\\{\\{title\\}\\}","g"),to:i.data("title")}),i.data("description")!==undefined&&n.params.push({from:RegExp("\\{\\{description\\}\\}","g"),to:i.data("description")});for(a=1;a<=10;a++)i.data("param"+a)!==undefined&&n.params.push({from:RegExp("\\{\\{param"+a+"\\}\\}","g"),to:i.data("param"+a)});if(x.thumbs.push(n),i.data("link")!=undefined){var r=i.data("link"),o=i.data("target")||"_self",s="back"===i.data("slideindex")?0:60,l=i.data("linktoslide"),d=l;l!=undefined&&"next"!=l&&"prev"!=l&&x.allli.each(function(){var e=jQuery(this);e.data("origindex")+1==d&&(l=e.data("index"))}),"slide"!=r&&(l="no");var c='<div class="tp-caption slidelink" style="cursor:pointer;width:100%;height:100%;z-index:'+s+';" data-x="center" data-y="center" data-basealign="slide" ',u=' data-frames=\'[{"delay":0,"speed":100,"frame":"0","from":"opacity:0;","to":"o:1;","ease":"Power3.easeInOut"},{"delay":"wait","speed":300,"frame":"999","to":"opacity:0;","ease":"Power3.easeInOut"}]\'';c="no"==l?c+u+" >":c+"data-actions='"+("scroll_under"===l?'[{"event":"click","action":"scrollbelow","offset":"100px","delay":"0"}]':"prev"===l?'[{"event":"click","action":"jumptoslide","slide":"prev","delay":"0.2"}]':"next"===l?'[{"event":"click","action":"jumptoslide","slide":"next","delay":"0.2"}]':'[{"event":"click","action":"jumptoslide","slide":"'+l+'","delay":"0.2"}]')+"'"+u+" >",c+='<a style="width:100%;height:100%;display:block"',c="slide"!=r?c+' target="'+o+'" href="'+r+'"':c,c+='><span style="width:100%;height:100%;display:block"></span></a></div>',i.append(c)}}),x.rle=x.responsiveLevels.length||1,x.gridwidth=cArray(x.gridwidth,x.rle),x.gridheight=cArray(x.gridheight,x.rle),"on"==x.simplifyAll&&(_R.isIE(8)||_R.iOSVersion())&&(t.find(".tp-caption").each(function(){var e=jQuery(this);e.removeClass("customin customout").addClass("fadein fadeout"),e.data("splitin",""),e.data("speed",400)}),x.allli.each(function(){var e=jQuery(this);e.data("transition","fade"),e.data("masterspeed",500),e.data("slotamount",1),(e.find(".rev-slidebg")||e.find(">img").first()).data("kenburns","off")})),x.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),x.autoHeight="fullscreen"==x.sliderLayout?"on":x.autoHeight,"fullwidth"==x.sliderLayout&&"off"==x.autoHeight&&t.css({maxHeight:x.gridheight[x.curWinRange]+"px"}),"auto"!=x.sliderLayout&&0==t.closest(".forcefullwidth_wrapper_tp_banner").length&&("fullscreen"!==x.sliderLayout||"on"!=x.fullScreenAutoWidth)){var o=t.parent(),s=o.css("marginBottom"),l=o.css("marginTop"),d=t.attr("id")+"_forcefullwidth";s=s===undefined?0:s,l=l===undefined?0:l,o.wrap('<div class="forcefullwidth_wrapper_tp_banner" id="'+d+'" style="position:relative;width:100%;height:auto;margin-top:'+l+";margin-bottom:"+s+'"></div>'),t.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+t.height()+'px"></div>'),t.parent().css({marginTop:"0px",marginBottom:"0px"}),t.parent().css({position:"absolute"})}if(x.shadow!==undefined&&0<x.shadow&&(t.parent().addClass("tp-shadow"+x.shadow),t.parent().append('<div class="tp-shadowcover"></div>'),t.parent().find(".tp-shadowcover").css({backgroundColor:t.parent().css("backgroundColor"),backgroundImage:t.parent().css("backgroundImage")})),setCurWinRange(x),setCurWinRange(x,!0),!t.hasClass("revslider-initialised")){t.addClass("revslider-initialised"),t.addClass("tp-simpleresponsive"),t.attr("id")==undefined&&t.attr("id","revslider-"+Math.round(1e3*Math.random()+5)),checkIDS(x,t),x.firefox13=!1,x.ie=!jQuery.support.opacity,x.ie9=9==document.documentMode,x.origcd=x.delay;var c=jQuery.fn.jquery.split("."),u=parseFloat(c[0]),p=parseFloat(c[1]);parseFloat(c[2]||"0");1==u&&p<7&&t.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+c+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>"),1<u&&(x.ie=!1);var j=new Object;j.addedyt=0,j.addedvim=0,j.addedvid=0,x.scrolleffect.on&&(x.scrolleffect.layers=new Array),t.find(".tp-caption, .rs-background-video-layer").each(function(e){var n=jQuery(this),i=n.data(),t=i.autoplayonlyfirsttime,a=i.autoplay,r=(i.videomp4!==undefined||i.videowebm!==undefined||i.videoogv,n.hasClass("tp-audiolayer")),o=i.videoloop,s=!0,l=!1;i.startclasses=n.attr("class"),i.isparallaxlayer=0<=i.startclasses.indexOf("rs-parallax"),n.hasClass("tp-static-layer")&&_R.handleStaticLayers&&(_R.handleStaticLayers(n,x),x.scrolleffect.on&&("on"===x.scrolleffect.on_parallax_static_layers&&i.isparallaxlayer||"on"===x.scrolleffect.on_static_layers&&!i.isparallaxlayer)&&(l=!0),s=!1);var d=n.data("noposteronmobile")||n.data("noPosterOnMobile")||n.data("posteronmobile")||n.data("posterOnMobile")||n.data("posterOnMObile");n.data("noposteronmobile",d);var c=0;if(n.find("iframe").each(function(){punchgs.TweenLite.set(jQuery(this),{autoAlpha:0}),c++}),0<c&&n.data("iframes",!0),n.hasClass("tp-caption")){var u=n.hasClass("slidelink")?"width:100% !important;height:100% !important;":"",p=n.data(),f="",h=p.type,g="row"===h||"column"===h?"relative":"absolute",v="";"row"===h?(n.addClass("rev_row").removeClass("tp-resizeme"),v="rev_row_wrap"):"column"===h?(f=p.verticalalign===undefined?" vertical-align:bottom;":" vertical-align:"+p.verticalalign+";",v="rev_column",n.addClass("rev_column_inner").removeClass("tp-resizeme"),n.data("width","auto"),punchgs.TweenLite.set(n,{width:"auto"})):"group"===h&&n.removeClass("tp-resizeme");var m="",y="";"row"!==h&&"group"!==h&&"column"!==h?(m="display:"+n.css("display")+";",0<n.closest(".rev_column").length?(n.addClass("rev_layer_in_column"),s=!1):0<n.closest(".rev_group").length&&(n.addClass("rev_layer_in_group"),s=!1)):"column"===h&&(s=!1),p.wrapper_class!==undefined&&(v=v+" "+p.wrapper_class),p.wrapper_id!==undefined&&(y='id="'+p.wrapper_id+'"');var w="";n.hasClass("tp-no-events")&&(w=";pointer-events:none"),n.wrap("<div "+y+' class="tp-parallax-wrap '+v+'" style="'+f+" "+u+"position:"+g+";"+m+";visibility:hidden"+w+'"><div class="tp-loop-wrap" style="'+u+"position:"+g+";"+m+';"><div class="tp-mask-wrap" style="'+u+"position:"+g+";"+m+';" ></div></div></div>'),s&&x.scrolleffect.on&&("on"===x.scrolleffect.on_parallax_layers&&i.isparallaxlayer||"on"===x.scrolleffect.on_layers&&!i.isparallaxlayer)&&x.scrolleffect.layers.push(n.parent()),l&&x.scrolleffect.layers.push(n.parent()),"column"===h&&(n.append('<div class="rev_column_bg rev_column_bg_man_sized" style="visibility:hidden"></div>'),n.closest(".tp-parallax-wrap").append('<div class="rev_column_bg rev_column_bg_auto_sized"></div>'));var b=n.closest(".tp-loop-wrap");jQuery.each(["pendulum","rotate","slideloop","pulse","wave"],function(e,i){var t=n.find(".rs-"+i),a=t.data()||"";""!=a&&(b.data(a),b.addClass("rs-"+i),t.children(0).unwrap(),n.data("loopanimation","on"))}),n.attr("id")===undefined&&n.attr("id","layer-"+Math.round(999999999*Math.random())),checkIDS(x,n),punchgs.TweenLite.set(n,{visibility:"hidden"})}var _=n.data("actions");_!==undefined&&_R.checkActions(n,x,_),checkHoverDependencies(n,x),_R.checkVideoApis&&(j=_R.checkVideoApis(n,x,j)),r||1!=t&&"true"!=t&&"1sttime"!=a||"loopandnoslidestop"==o||n.closest("li.tp-revslider-slidesli").addClass("rs-pause-timer-once"),r||1!=a&&"true"!=a&&"on"!=a&&"no1sttime"!=a||"loopandnoslidestop"==o||n.closest("li.tp-revslider-slidesli").addClass("rs-pause-timer-always")}),t[0].addEventListener("mouseenter",function(){t.trigger("tp-mouseenter"),x.overcontainer=!0},{passive:!0}),t[0].addEventListener("mouseover",function(){t.trigger("tp-mouseover"),x.overcontainer=!0},{passive:!0}),t[0].addEventListener("mouseleave",function(){t.trigger("tp-mouseleft"),x.overcontainer=!1},{passive:!0}),t.find(".tp-caption video").each(function(e){var i=jQuery(this);i.removeClass("video-js vjs-default-skin"),i.attr("preload",""),i.css({display:"none"})}),"standard"!==x.sliderType&&(x.lazyType="all"),loadImages(t.find(".tp-static-layers"),x,0,!0),waitForCurrentImages(t.find(".tp-static-layers"),x,function(){t.find(".tp-static-layers img").each(function(){var e=jQuery(this),i=e.data("lazyload")!=undefined?e.data("lazyload"):e.attr("src"),t=getLoadObj(x,i);e.attr("src",t.src)})}),x.rowzones=[],x.allli.each(function(e){var i=jQuery(this);x.rowzones[e]=[],i.find(".rev_row_zone").each(function(){x.rowzones[e].push(jQuery(this))}),"all"!=x.lazyType&&("smart"!=x.lazyType||0!=e&&1!=e&&e!=x.slideamount&&e!=x.slideamount-1)||(loadImages(i,x,e),waitForCurrentImages(i,x,function(){}))});var f=getUrlVars("#")[0];if(f.length<9&&1<f.split("slide").length){var h=parseInt(f.split("slide")[1],0);h<1&&(h=1),h>x.slideamount&&(h=x.slideamount),x.startWithSlide=h-1}t.append('<div class="tp-loader '+x.spinner+'"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>'),x.loader=t.find(".tp-loader"),0===t.find(".tp-bannertimer").length&&t.append('<div class="tp-bannertimer" style="visibility:hidden"></div>'),t.find(".tp-bannertimer").css({width:"0%"}),x.ul.css({display:"block"}),prepareSlides(t,x),("off"!==x.parallax.type||x.scrolleffect.on)&&_R.checkForParallax&&_R.checkForParallax(t,x),_R.setSize(x),"hero"!==x.sliderType&&_R.createNavigation&&_R.createNavigation(t,x),_R.resizeThumbsTabs&&_R.resizeThumbsTabs&&_R.resizeThumbsTabs(x),contWidthManager(x);var g=x.viewPort;x.inviewport=!1,g!=undefined&&g.enable&&(jQuery.isNumeric(g.visible_area)||-1!==g.visible_area.indexOf("%")&&(g.visible_area=parseInt(g.visible_area)/100),_R.scrollTicker&&_R.scrollTicker(x,t)),"carousel"===x.sliderType&&_R.prepareCarousel&&(punchgs.TweenLite.set(x.ul,{opacity:0}),_R.prepareCarousel(x,new punchgs.TimelineLite,undefined,0),x.onlyPreparedSlide=!0),setTimeout(function(){if(!g.enable||g.enable&&x.inviewport||g.enable&&!x.inviewport&&"wait"==!g.outof)swapSlide(t);else if(x.c.addClass("tp-waitforfirststart"),x.waitForFirstSlide=!0,g.presize){var e=jQuery(x.li[0]);loadImages(e,x,0,!0),waitForCurrentImages(e.find(".tp-layers"),x,function(){_R.animateTheCaptions({slide:e,opt:x,preset:!0})})}_R.manageNavigation&&_R.manageNavigation(x),1<x.slideamount&&(!g.enable||g.enable&&x.inviewport?countDown(t,x):x.waitForCountDown=!0),setTimeout(function(){t.trigger("revolution.slide.onloaded")},100)},x.startDelay),x.startDelay=0,jQuery("body").data("rs-fullScreenMode",!1),window.addEventListener("fullscreenchange",onFullScreenChange,{passive:!0}),window.addEventListener("mozfullscreenchange",onFullScreenChange,{passive:!0}),window.addEventListener("webkitfullscreenchange",onFullScreenChange,{passive:!0});var v="resize.revslider-"+t.attr("id");jQuery(window).on(v,function(){if(t==undefined)return!1;0!=jQuery("body").find(t)&&contWidthManager(x);var e=!1;if("fullscreen"==x.sliderLayout){var i=jQuery(window).height();"mobile"==x.fallbacks.ignoreHeightChanges&&_ISM||"always"==x.fallbacks.ignoreHeightChanges?(x.fallbacks.ignoreHeightChangesSize=x.fallbacks.ignoreHeightChangesSize==undefined?0:x.fallbacks.ignoreHeightChangesSize,e=i!=x.lastwindowheight&&Math.abs(i-x.lastwindowheight)>x.fallbacks.ignoreHeightChangesSize):e=i!=x.lastwindowheight}(t.outerWidth(!0)!=x.width||t.is(":hidden")||e)&&(x.lastwindowheight=jQuery(window).height(),containerResized(t,x))}),hideSliderUnder(t,x),contWidthManager(x),x.fallbacks.disableFocusListener||"true"==x.fallbacks.disableFocusListener||!0===x.fallbacks.disableFocusListener||(t.addClass("rev_redraw_on_blurfocus"),tabBlurringCheck())}},cArray=function(e,i){if(!jQuery.isArray(e)){var t=e;(e=new Array).push(t)}if(e.length<i){t=e[e.length-1];for(var a=0;a<i-e.length+2;a++)e.push(t)}return e},checkHoverDependencies=function(e,n){var i=e.data();("sliderenter"===i.start||i.frames!==undefined&&i.frames[0]!=undefined&&"sliderenter"===i.frames[0].delay)&&(n.layersonhover===undefined&&(n.c.on("tp-mouseenter",function(){n.layersonhover&&jQuery.each(n.layersonhover,function(e,i){var t=i.data("closestli")||i.closest(".tp-revslider-slidesli"),a=i.data("staticli")||i.closest(".tp-static-layers");i.data("closestli")===undefined&&(i.data("closestli",t),i.data("staticli",a)),(0<t.length&&t.hasClass("active-revslide")||t.hasClass("processing-revslide")||0<a.length)&&(i.data("animdirection","in"),_R.playAnimationFrame&&_R.playAnimationFrame({caption:i,opt:n,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"}),i.data("triggerstate","on"))})}),n.c.on("tp-mouseleft",function(){n.layersonhover&&jQuery.each(n.layersonhover,function(e,i){i.data("animdirection","out"),i.data("triggered",!0),i.data("triggerstate","off"),_R.stopVideo&&_R.stopVideo(i,n),_R.playAnimationFrame&&_R.playAnimationFrame({caption:i,opt:n,frame:"frame_999",triggerdirection:"out",triggerframein:"frame_0",triggerframeout:"frame_999"})})}),n.layersonhover=new Array),n.layersonhover.push(e))},contWidthManager=function(e){var i=_R.getHorizontalOffset(e.c,"left");if("auto"==e.sliderLayout||"fullscreen"===e.sliderLayout&&"on"==e.fullScreenAutoWidth)"fullscreen"==e.sliderLayout&&"on"==e.fullScreenAutoWidth?punchgs.TweenLite.set(e.ul,{left:0,width:e.c.width()}):punchgs.TweenLite.set(e.ul,{left:i,width:e.c.width()-_R.getHorizontalOffset(e.c,"both")});else{var t=Math.ceil(e.c.closest(".forcefullwidth_wrapper_tp_banner").offset().left-i);punchgs.TweenLite.set(e.c.parent(),{left:0-t+"px",width:jQuery(window).width()-_R.getHorizontalOffset(e.c,"both")})}e.slayers&&"fullwidth"!=e.sliderLayout&&"fullscreen"!=e.sliderLayout&&punchgs.TweenLite.set(e.slayers,{left:i})},cv=function(e,i){return e===undefined?i:e},hideSliderUnder=function(e,i,t){var a=e.parent();jQuery(window).width()<i.hideSliderAtLimit?(e.trigger("stoptimer"),"none"!=a.css("display")&&a.data("olddisplay",a.css("display")),a.css({display:"none"})):e.is(":hidden")&&t&&(a.data("olddisplay")!=undefined&&"undefined"!=a.data("olddisplay")&&"none"!=a.data("olddisplay")?a.css({display:a.data("olddisplay")}):a.css({display:"block"}),e.trigger("restarttimer"),setTimeout(function(){containerResized(e,i)},150)),_R.hideUnHideNav&&_R.hideUnHideNav(i)},containerResized=function(e,i){if(e.trigger("revolution.slide.beforeredraw"),1==i.infullscreenmode&&(i.minHeight=jQuery(window).height()),setCurWinRange(i),setCurWinRange(i,!0),!_R.resizeThumbsTabs||!0===_R.resizeThumbsTabs(i)){if(hideSliderUnder(e,i,!0),contWidthManager(i),"carousel"==i.sliderType&&_R.prepareCarousel(i,!0),e===undefined)return!1;_R.setSize(i),i.conw=i.c.width(),i.conh=i.infullscreenmode?i.minHeight:i.c.height();var t=e.find(".active-revslide .slotholder"),a=e.find(".processing-revslide .slotholder");removeSlots(e,i,e,2),"standard"===i.sliderType&&(punchgs.TweenLite.set(a.find(".defaultimg"),{opacity:0}),t.find(".defaultimg").css({opacity:1})),"carousel"===i.sliderType&&i.lastconw!=i.conw&&(clearTimeout(i.pcartimer),i.pcartimer=setTimeout(function(){_R.prepareCarousel(i,!0),"carousel"==i.sliderType&&"on"===i.carousel.showLayersAllTime&&jQuery.each(i.li,function(e){_R.animateTheCaptions({slide:jQuery(i.li[e]),opt:i,recall:!0})})},100),i.lastconw=i.conw),_R.manageNavigation&&_R.manageNavigation(i),_R.animateTheCaptions&&0<e.find(".active-revslide").length&&_R.animateTheCaptions({slide:e.find(".active-revslide"),opt:i,recall:!0}),"on"==a.data("kenburns")&&_R.startKenBurn(a,i,a.data("kbtl")!==undefined?a.data("kbtl").progress():0),"on"==t.data("kenburns")&&_R.startKenBurn(t,i,t.data("kbtl")!==undefined?t.data("kbtl").progress():0),_R.animateTheCaptions&&0<e.find(".processing-revslide").length&&_R.animateTheCaptions({slide:e.find(".processing-revslide"),opt:i,recall:!0}),_R.manageNavigation&&_R.manageNavigation(i)}e.trigger("revolution.slide.afterdraw")},setScale=function(e){e.bw=e.width/e.gridwidth[e.curWinRange],e.bh=e.height/e.gridheight[e.curWinRange],e.bh>e.bw?e.bh=e.bw:e.bw=e.bh,(1<e.bh||1<e.bw)&&(e.bw=1,e.bh=1)},prepareSlides=function(e,u){if(e.find(".tp-caption").each(function(){var e=jQuery(this);e.data("transition")!==undefined&&e.addClass(e.data("transition"))}),u.ul.css({overflow:"hidden",width:"100%",height:"100%",maxHeight:e.parent().css("maxHeight")}),"on"==u.autoHeight&&(u.ul.css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"}),e.css({maxHeight:"none"}),e.parent().css({maxHeight:"none"})),u.allli.each(function(e){var i=jQuery(this),t=i.data("originalindex");(u.startWithSlide!=undefined&&t==u.startWithSlide||u.startWithSlide===undefined&&0==e)&&i.addClass("next-revslide"),i.css({width:"100%",height:"100%",overflow:"hidden"})}),"carousel"===u.sliderType){u.ul.css({overflow:"visible"}).wrap('<div class="tp-carousel-wrapper" style="width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden;"></div>');var i='<div style="clear:both;display:block;width:100%;height:1px;position:relative;margin-bottom:-1px"></div>';u.c.parent().prepend(i),u.c.parent().append(i),_R.prepareCarousel(u)}e.parent().css({overflow:"visible"}),u.allli.find(">img").each(function(e){var i=jQuery(this),t=i.closest("li"),a=t.find(".rs-background-video-layer");a.addClass("defaultvid").css({zIndex:30}),i.addClass("defaultimg"),"on"==u.fallbacks.panZoomDisableOnMobile&&_ISM&&(i.data("kenburns","off"),i.data("bgfit","cover"));var n=t.data("mediafilter");n="none"===n||n===undefined?"":n,i.wrap('<div class="slotholder" style="position:absolute; top:0px; left:0px; z-index:0;width:100%;height:100%;"></div>'),a.appendTo(t.find(".slotholder"));var r=i.data();i.closest(".slotholder").data(r),0<a.length&&r.bgparallax!=undefined&&(a.data("bgparallax",r.bgparallax),a.data("showcoveronpause","on")),"none"!=u.dottedOverlay&&u.dottedOverlay!=undefined&&i.closest(".slotholder").append('<div class="tp-dottedoverlay '+u.dottedOverlay+'"></div>');var o=i.attr("src");r.src=o,r.bgfit=r.bgfit||"cover",r.bgrepeat=r.bgrepeat||"no-repeat",r.bgposition=r.bgposition||"center center";i.closest(".slotholder");var s=i.data("bgcolor"),l="";l=s!==undefined&&0<=s.indexOf("gradient")?'"background:'+s+';width:100%;height:100%;"':'"background-color:'+s+";background-repeat:"+r.bgrepeat+";background-image:url("+o+");background-size:"+r.bgfit+";background-position:"+r.bgposition+';width:100%;height:100%;"',i.data("mediafilter",n),n="on"===i.data("kenburns")?"":n;var d=jQuery('<div class="tp-bgimg defaultimg '+n+'" data-bgcolor="'+s+'" style='+l+"></div>");i.parent().append(d);var c=document.createComment("Runtime Modification - Img tag is Still Available for SEO Goals in Source - "+i.get(0).outerHTML);i.replaceWith(c),d.data(r),d.attr("src",o),"standard"!==u.sliderType&&"undefined"!==u.sliderType||d.css({opacity:0})}),u.scrolleffect.on&&"on"===u.scrolleffect.on_slidebg&&(u.allslotholder=new Array,u.allli.find(".slotholder").each(function(){jQuery(this).wrap('<div style="display:block;position:absolute;top:0px;left:0px;width:100%;height:100%" class="slotholder_fadeoutwrap"></div>')}),u.allslotholder=u.c.find(".slotholder_fadeoutwrap"))},removeSlots=function(e,i,t,a){i.removePrepare=i.removePrepare+a,t.find(".slot, .slot-circle-wrapper").each(function(){jQuery(this).remove()}),i.transition=0,i.removePrepare=0},cutParams=function(e){var i=e;return e!=undefined&&0<e.length&&(i=e.split("?")[0]),i},relativeRedir=function(e){return location.pathname.replace(/(.*)\/[^/]*/,"$1/"+e)},abstorel=function(e,i){var t=e.split("/"),a=i.split("/");t.pop();for(var n=0;n<a.length;n++)"."!=a[n]&&(".."==a[n]?t.pop():t.push(a[n]));return t.join("/")},imgLoaded=function(l,e,d){e.syncload--,e.loadqueue&&jQuery.each(e.loadqueue,function(e,i){var t=i.src.replace(/\.\.\/\.\.\//gi,""),a=self.location.href,n=document.location.origin,r=a.substring(0,a.length-1)+"/"+t,o=n+"/"+t,s=abstorel(self.location.href,i.src);a=a.substring(0,a.length-1)+t,(cutParams(n+=t)===cutParams(decodeURIComponent(l.src))||cutParams(a)===cutParams(decodeURIComponent(l.src))||cutParams(s)===cutParams(decodeURIComponent(l.src))||cutParams(o)===cutParams(decodeURIComponent(l.src))||cutParams(r)===cutParams(decodeURIComponent(l.src))||cutParams(i.src)===cutParams(decodeURIComponent(l.src))||cutParams(i.src).replace(/^.*\/\/[^\/]+/,"")===cutParams(decodeURIComponent(l.src)).replace(/^.*\/\/[^\/]+/,"")||"file://"===window.location.origin&&cutParams(l.src).match(new RegExp(t)))&&(i.progress=d,i.width=l.width,i.height=l.height)}),progressImageLoad(e)},progressImageLoad=function(a){3!=a.syncload&&a.loadqueue&&jQuery.each(a.loadqueue,function(e,i){if(i.progress.match(/prepared/g)&&a.syncload<=3){if(a.syncload++,"img"==i.type){var t=new Image;t.onload=function(){imgLoaded(this,a,"loaded"),i.error=!1},t.onerror=function(){imgLoaded(this,a,"failed"),i.error=!0},t.src=i.src}else jQuery.get(i.src,function(e){i.innerHTML=(new XMLSerializer).serializeToString(e.documentElement),i.progress="loaded",a.syncload--,progressImageLoad(a)}).fail(function(){i.progress="failed",a.syncload--,progressImageLoad(a)});i.progress="inload"}})},addToLoadQueue=function(t,e,i,a,n){var r=!1;if(e.loadqueue&&jQuery.each(e.loadqueue,function(e,i){i.src===t&&(r=!0)}),!r){var o=new Object;o.src=t,o.starttoload=jQuery.now(),o.type=a||"img",o.prio=i,o.progress="prepared",o.static=n,e.loadqueue.push(o)}},loadImages=function(e,a,n,r){e.find("img,.defaultimg, .tp-svg-layer").each(function(){var e=jQuery(this),i=e.data("lazyload")!==undefined&&"undefined"!==e.data("lazyload")?e.data("lazyload"):e.data("svg_src")!=undefined?e.data("svg_src"):e.attr("src"),t=e.data("svg_src")!=undefined?"svg":"img";e.data("start-to-load",jQuery.now()),addToLoadQueue(i,a,n,t,r)}),progressImageLoad(a)},getLoadObj=function(e,t){var a=new Object;return e.loadqueue&&jQuery.each(e.loadqueue,function(e,i){i.src==t&&(a=i)}),a},waitForCurrentImages=function(o,s,e){var l=!1;o.find("img,.defaultimg, .tp-svg-layer").each(function(){var e=jQuery(this),i=e.data("lazyload")!=undefined?e.data("lazyload"):e.data("svg_src")!=undefined?e.data("svg_src"):e.attr("src"),t=getLoadObj(s,i);if(e.data("loaded")===undefined&&t!==undefined&&t.progress&&t.progress.match(/loaded/g)){if(e.attr("src",t.src),"img"==t.type)if(e.hasClass("defaultimg"))_R.isIE(8)?defimg.attr("src",t.src):-1==t.src.indexOf("images/transparent.png")&&-1==t.src.indexOf("assets/transparent.png")||e.data("bgcolor")===undefined?e.css({backgroundImage:'url("'+t.src+'")'}):e.data("bgcolor")!==undefined&&e.css({background:e.data("bgcolor")}),o.data("owidth",t.width),o.data("oheight",t.height),o.find(".slotholder").data("owidth",t.width),o.find(".slotholder").data("oheight",t.height);else{var a=e.data("ww"),n=e.data("hh");e.data("owidth",t.width),e.data("oheight",t.height),a=a==undefined||"auto"==a||""==a?t.width:a,n=n==undefined||"auto"==n||""==n?t.height:n,!jQuery.isNumeric(a)&&0<a.indexOf("%")&&(n=a),e.data("ww",a),e.data("hh",n)}else"svg"==t.type&&"loaded"==t.progress&&(e.append('<div class="tp-svg-innercontainer"></div>'),e.find(".tp-svg-innercontainer").append(t.innerHTML));e.data("loaded",!0)}if(t&&t.progress&&t.progress.match(/inprogress|inload|prepared/g)&&(!t.error&&jQuery.now()-e.data("start-to-load")<5e3?l=!0:(t.progress="failed",t.reported_img||(t.reported_img=!0,console.warn(i+"  Could not be loaded !")))),1==s.youtubeapineeded&&(!window.YT||YT.Player==undefined)&&(l=!0,5e3<jQuery.now()-s.youtubestarttime&&1!=s.youtubewarning)){s.youtubewarning=!0;var r="YouTube Api Could not be loaded !";"https:"===location.protocol&&(r+=" Please Check and Renew SSL Certificate !"),console.error(r),s.c.append('<div style="position:absolute;top:50%;width:100%;color:#e74c3c;  font-size:16px; text-align:center; padding:15px;background:#000; display:block;"><strong>'+r+"</strong></div>")}if(1==s.vimeoapineeded&&!window.Vimeo&&(l=!0,5e3<jQuery.now()-s.vimeostarttime&&1!=s.vimeowarning)){s.vimeowarning=!0;r="Vimeo Api Could not be loaded !";"https:"===location.protocol&&(r+=" Please Check and Renew SSL Certificate !"),console.error(r),s.c.append('<div style="position:absolute;top:50%;width:100%;color:#e74c3c;  font-size:16px; text-align:center; padding:15px;background:#000; display:block;"><strong>'+r+"</strong></div>")}}),!_ISM&&s.audioqueue&&0<s.audioqueue.length&&jQuery.each(s.audioqueue,function(e,i){i.status&&"prepared"===i.status&&jQuery.now()-i.start<i.waittime&&(l=!0)}),jQuery.each(s.loadqueue,function(e,i){!0!==i.static||"loaded"==i.progress&&"failed"!==i.progress||("failed"==i.progress?i.reported||(i.reported=!0,console.warn("Static Image "+i.src+"  Could not be loaded in time. Error Exists:"+i.error)):!i.error&&jQuery.now()-i.starttoload<5e3?l=!0:i.reported||(i.reported=!0,console.warn("Static Image "+i.src+"  Could not be loaded within 5s! Error Exists:"+i.error)))}),l?punchgs.TweenLite.delayedCall(.18,waitForCurrentImages,[o,s,e]):punchgs.TweenLite.delayedCall(.18,e)},swapSlide=function(e){var i=e[0].opt;if(clearTimeout(i.waitWithSwapSlide),0<e.find(".processing-revslide").length)return i.waitWithSwapSlide=setTimeout(function(){swapSlide(e)},150),!1;var t=e.find(".active-revslide"),a=e.find(".next-revslide"),n=a.find(".defaultimg");if("carousel"!==i.sliderType||i.carousel.fadein||(punchgs.TweenLite.to(i.ul,1,{opacity:1}),i.carousel.fadein=!0),a.index()===t.index()&&!0!==i.onlyPreparedSlide)return a.removeClass("next-revslide"),!1;!0===i.onlyPreparedSlide&&(i.onlyPreparedSlide=!1,jQuery(i.li[0]).addClass("processing-revslide")),a.removeClass("next-revslide").addClass("processing-revslide"),-1===a.index()&&"carousel"===i.sliderType&&(a=jQuery(i.li[0])),a.data("slide_on_focus_amount",a.data("slide_on_focus_amount")+1||1),"on"==i.stopLoop&&a.index()==i.lastslidetoshow-1&&(e.find(".tp-bannertimer").css({visibility:"hidden"}),e.trigger("revolution.slide.onstop"),i.noloopanymore=1),a.index()===i.slideamount-1&&(i.looptogo=i.looptogo-1,i.looptogo<=0&&(i.stopLoop="on")),i.tonpause=!0,e.trigger("stoptimer"),i.cd=0,"off"===i.spinner&&(i.loader!==undefined?i.loader.css({display:"none"}):i.loadertimer=setTimeout(function(){i.loader!==undefined&&i.loader.css({display:"block"})},50)),loadImages(a,i,1),_R.preLoadAudio&&_R.preLoadAudio(a,i,1),waitForCurrentImages(a,i,function(){a.find(".rs-background-video-layer").each(function(){var e=jQuery(this);e.hasClass("HasListener")||(e.data("bgvideo",1),_R.manageVideoLayer&&_R.manageVideoLayer(e,i)),0==e.find(".rs-fullvideo-cover").length&&e.append('<div class="rs-fullvideo-cover"></div>')}),swapSlideProgress(n,e)})},swapSlideProgress=function(e,i){var t=i.find(".active-revslide"),a=i.find(".processing-revslide"),n=t.find(".slotholder"),r=a.find(".slotholder"),o=i[0].opt;o.tonpause=!1,o.cd=0,clearTimeout(o.loadertimer),o.loader!==undefined&&o.loader.css({display:"none"}),_R.setSize(o),_R.slotSize(e,o),_R.manageNavigation&&_R.manageNavigation(o);var s={};s.nextslide=a,s.currentslide=t,i.trigger("revolution.slide.onbeforeswap",s),o.transition=1,o.videoplaying=!1,a.data("delay")!=undefined?(o.cd=0,o.delay=a.data("delay")):o.delay=o.origcd,"true"==a.data("ssop")||!0===a.data("ssop")?o.ssop=!0:o.ssop=!1,i.trigger("nulltimer");var l=t.index(),d=a.index();o.sdir=d<l?1:0,"arrow"==o.sc_indicator&&(0==l&&d==o.slideamount-1&&(o.sdir=1),l==o.slideamount-1&&0==d&&(o.sdir=0)),o.lsdir=o.lsdir===undefined?o.sdir:o.lsdir,o.dirc=o.lsdir!=o.sdir,o.lsdir=o.sdir,t.index()!=a.index()&&1!=o.firststart&&_R.removeTheCaptions&&_R.removeTheCaptions(t,o),a.hasClass("rs-pause-timer-once")||a.hasClass("rs-pause-timer-always")?o.videoplaying=!0:i.trigger("restarttimer"),a.removeClass("rs-pause-timer-once");var c;if(o.currentSlide=t.index(),o.nextSlide=a.index(),"carousel"==o.sliderType)c=new punchgs.TimelineLite,_R.prepareCarousel(o,c),letItFree(i,r,n,a,t,c),o.transition=0,o.firststart=0;else{(c=new punchgs.TimelineLite({onComplete:function(){letItFree(i,r,n,a,t,c)}})).add(punchgs.TweenLite.set(r.find(".defaultimg"),{opacity:0})),c.pause(),_R.animateTheCaptions&&_R.animateTheCaptions({slide:a,opt:o,preset:!0}),1==o.firststart&&(punchgs.TweenLite.set(t,{autoAlpha:0}),o.firststart=0),punchgs.TweenLite.set(t,{zIndex:18}),punchgs.TweenLite.set(a,{autoAlpha:0,zIndex:20}),"prepared"==a.data("differentissplayed")&&(a.data("differentissplayed","done"),a.data("transition",a.data("savedtransition")),a.data("slotamount",a.data("savedslotamount")),a.data("masterspeed",a.data("savedmasterspeed"))),a.data("fstransition")!=undefined&&"done"!=a.data("differentissplayed")&&(a.data("savedtransition",a.data("transition")),a.data("savedslotamount",a.data("slotamount")),a.data("savedmasterspeed",a.data("masterspeed")),a.data("transition",a.data("fstransition")),a.data("slotamount",a.data("fsslotamount")),a.data("masterspeed",a.data("fsmasterspeed")),a.data("differentissplayed","prepared")),a.data("transition")==undefined&&a.data("transition","random"),0;var u=a.data("transition")!==undefined?a.data("transition").split(","):"fade",p=a.data("nexttransid")==undefined?-1:a.data("nexttransid");"on"==a.data("randomtransition")?p=Math.round(Math.random()*u.length):p+=1,p==u.length&&(p=0),a.data("nexttransid",p);var f=u[p];o.ie&&("boxfade"==f&&(f="boxslide"),"slotfade-vertical"==f&&(f="slotzoom-vertical"),"slotfade-horizontal"==f&&(f="slotzoom-horizontal")),_R.isIE(8)&&(f=11),c=_R.animateSlide(0,f,i,a,t,r,n,c),"on"==r.data("kenburns")&&(_R.startKenBurn(r,o),c.add(punchgs.TweenLite.set(r,{autoAlpha:0}))),c.pause()}_R.scrollHandling&&(_R.scrollHandling(o,!0,0),c.eventCallback("onUpdate",function(){_R.scrollHandling(o,!0,0)})),"off"!=o.parallax.type&&o.parallax.firstgo==undefined&&_R.scrollHandling&&(o.parallax.firstgo=!0,o.lastscrolltop=-999,_R.scrollHandling(o,!0,0),setTimeout(function(){o.lastscrolltop=-999,_R.scrollHandling(o,!0,0)},210),setTimeout(function(){o.lastscrolltop=-999,_R.scrollHandling(o,!0,0)},420)),_R.animateTheCaptions?"carousel"===o.sliderType&&"on"===o.carousel.showLayersAllTime?(jQuery.each(o.li,function(e){o.carousel.allLayersStarted?_R.animateTheCaptions({slide:jQuery(o.li[e]),opt:o,recall:!0}):o.li[e]===a?_R.animateTheCaptions({slide:jQuery(o.li[e]),maintimeline:c,opt:o,startslideanimat:0}):_R.animateTheCaptions({slide:jQuery(o.li[e]),opt:o,startslideanimat:0})}),o.carousel.allLayersStarted=!0):_R.animateTheCaptions({slide:a,opt:o,maintimeline:c,startslideanimat:0}):c!=undefined&&setTimeout(function(){c.resume()},30),punchgs.TweenLite.to(a,.001,{autoAlpha:1})},letItFree=function(e,i,t,a,n,r){var o=e[0].opt;"carousel"===o.sliderType||(o.removePrepare=0,punchgs.TweenLite.to(i.find(".defaultimg"),.001,{zIndex:20,autoAlpha:1,onComplete:function(){removeSlots(e,o,a,1)}}),a.index()!=n.index()&&punchgs.TweenLite.to(n,.2,{zIndex:18,autoAlpha:0,onComplete:function(){removeSlots(e,o,n,1)}})),e.find(".active-revslide").removeClass("active-revslide"),e.find(".processing-revslide").removeClass("processing-revslide").addClass("active-revslide"),o.act=a.index(),o.c.attr("data-slideactive",e.find(".active-revslide").data("index")),"scroll"!=o.parallax.type&&"scroll+mouse"!=o.parallax.type&&"mouse+scroll"!=o.parallax.type||(o.lastscrolltop=-999,_R.scrollHandling(o)),r.clear(),t.data("kbtl")!=undefined&&(t.data("kbtl").reverse(),t.data("kbtl").timeScale(25)),"on"==i.data("kenburns")&&(i.data("kbtl")!=undefined?(i.data("kbtl").timeScale(1),i.data("kbtl").play()):_R.startKenBurn(i,o)),a.find(".rs-background-video-layer").each(function(e){if(_ISM&&!o.fallbacks.allowHTML5AutoPlayOnAndroid)return!1;var i=jQuery(this);_R.resetVideo(i,o,!1,!0),punchgs.TweenLite.fromTo(i,1,{autoAlpha:0},{autoAlpha:1,ease:punchgs.Power3.easeInOut,delay:.2,onComplete:function(){_R.animcompleted&&_R.animcompleted(i,o)}})}),n.find(".rs-background-video-layer").each(function(e){if(_ISM)return!1;var i=jQuery(this);_R.stopVideo&&(_R.resetVideo(i,o),_R.stopVideo(i,o)),punchgs.TweenLite.to(i,1,{autoAlpha:0,ease:punchgs.Power3.easeInOut,delay:.2})});var s={};if(s.slideIndex=a.index()+1,s.slideLIIndex=a.index(),s.slide=a,s.currentslide=a,s.prevslide=n,o.last_shown_slide=n.index(),e.trigger("revolution.slide.onchange",s),e.trigger("revolution.slide.onafterswap",s),o.startWithSlide!==undefined&&"done"!==o.startWithSlide&&"carousel"===o.sliderType){for(var l=o.startWithSlide,d=0;d<=o.li.length-1;d++){jQuery(o.li[d]).data("originalindex")===o.startWithSlide&&(l=d)}0!==l&&_R.callingNewSlide(o.c,l),o.startWithSlide="done"}o.duringslidechange=!1;var c=n.data("slide_on_focus_amount"),u=n.data("hideafterloop");0!=u&&u<=c&&o.c.revremoveslide(n.index());var p=-1===o.nextSlide||o.nextSlide===undefined?0:o.nextSlide;o.rowzones!=undefined&&(p=p>o.rowzones.length?o.rowzones.length:p),o.rowzones!=undefined&&0<o.rowzones.length&&o.rowzones[p]!=undefined&&0<=p&&p<=o.rowzones.length&&0<o.rowzones[p].length&&_R.setSize(o)},removeAllListeners=function(e,i){e.children().each(function(){try{jQuery(this).die("click")}catch(e){}try{jQuery(this).die("mouseenter")}catch(e){}try{jQuery(this).die("mouseleave")}catch(e){}try{jQuery(this).unbind("hover")}catch(e){}});try{e.die("click","mouseenter","mouseleave")}catch(e){}clearInterval(i.cdint),e=null},countDown=function(e,i){i.cd=0,i.loop=0,i.stopAfterLoops!=undefined&&-1<i.stopAfterLoops?i.looptogo=i.stopAfterLoops:i.looptogo=9999999,i.stopAtSlide!=undefined&&-1<i.stopAtSlide?i.lastslidetoshow=i.stopAtSlide:i.lastslidetoshow=999,i.stopLoop="off",0==i.looptogo&&(i.stopLoop="on");var t=e.find(".tp-bannertimer");e.on("stoptimer",function(){var e=jQuery(this).find(".tp-bannertimer");e[0].tween.pause(),"on"==i.disableProgressBar&&e.css({visibility:"hidden"}),i.sliderstatus="paused",_R.unToggleState(i.slidertoggledby)}),e.on("starttimer",function(){i.forcepause_viatoggle||(1!=i.conthover&&1!=i.videoplaying&&i.width>i.hideSliderAtLimit&&1!=i.tonpause&&1!=i.overnav&&1!=i.ssop&&(1===i.noloopanymore||i.viewPort.enable&&!i.inviewport||(t.css({visibility:"visible"}),t[0].tween.resume(),i.sliderstatus="playing")),"on"==i.disableProgressBar&&t.css({visibility:"hidden"}),_R.toggleState(i.slidertoggledby))}),e.on("restarttimer",function(){if(!i.forcepause_viatoggle){var e=jQuery(this).find(".tp-bannertimer");if(i.mouseoncontainer&&"on"==i.navigation.onHoverStop&&!_ISM)return!1;1===i.noloopanymore||i.viewPort.enable&&!i.inviewport||1==i.ssop||(e.css({visibility:"visible"}),e[0].tween.kill(),e[0].tween=punchgs.TweenLite.fromTo(e,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:a,delay:1}),i.sliderstatus="playing"),"on"==i.disableProgressBar&&e.css({visibility:"hidden"}),_R.toggleState(i.slidertoggledby)}}),e.on("nulltimer",function(){t[0].tween.kill(),t[0].tween=punchgs.TweenLite.fromTo(t,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:a,delay:1}),t[0].tween.pause(0),"on"==i.disableProgressBar&&t.css({visibility:"hidden"}),i.sliderstatus="paused"});var a=function(){0==jQuery("body").find(e).length&&(removeAllListeners(e,i),clearInterval(i.cdint)),e.trigger("revolution.slide.slideatend"),1==e.data("conthover-changed")&&(i.conthover=e.data("conthover"),e.data("conthover-changed",0)),_R.callingNewSlide(e,1)};t[0].tween=punchgs.TweenLite.fromTo(t,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:a,delay:1}),1<i.slideamount&&(0!=i.stopAfterLoops||1!=i.stopAtSlide)?e.trigger("starttimer"):(i.noloopanymore=1,e.trigger("nulltimer")),e.on("tp-mouseenter",function(){i.mouseoncontainer=!0,"on"!=i.navigation.onHoverStop||_ISM||(e.trigger("stoptimer"),e.trigger("revolution.slide.onpause"))}),e.on("tp-mouseleft",function(){i.mouseoncontainer=!1,1!=e.data("conthover")&&"on"==i.navigation.onHoverStop&&(1==i.viewPort.enable&&i.inviewport||0==i.viewPort.enable)&&(e.trigger("revolution.slide.onresume"),e.trigger("starttimer"))})},vis=function(){var i,t,e={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(i in e)if(i in document){t=e[i];break}return function(e){return e&&document.addEventListener(t,e,{pasive:!0}),!document[i]}}(),restartOnFocus=function(){jQuery(".rev_redraw_on_blurfocus").each(function(){var e=jQuery(this)[0].opt;if(e==undefined||e.c==undefined||0===e.c.length)return!1;1!=e.windowfocused&&(e.windowfocused=!0,punchgs.TweenLite.delayedCall(.3,function(){"on"==e.fallbacks.nextSlideOnWindowFocus&&e.c.revnext(),e.c.revredraw(),"playing"==e.lastsliderstatus&&e.c.revresume()}))})},lastStatBlur=function(){jQuery(".rev_redraw_on_blurfocus").each(function(){var e=jQuery(this)[0].opt;e.windowfocused=!1,e.lastsliderstatus=e.sliderstatus,e.c.revpause();var i=e.c.find(".active-revslide .slotholder"),t=e.c.find(".processing-revslide .slotholder");"on"==t.data("kenburns")&&_R.stopKenBurn(t,e),"on"==i.data("kenburns")&&_R.stopKenBurn(i,e)})},tabBlurringCheck=function(){var e=document.documentMode===undefined,i=window.chrome;1!==jQuery("body").data("revslider_focus_blur_listener")&&(jQuery("body").data("revslider_focus_blur_listener",1),e&&!i?jQuery(window).on("focusin",function(){restartOnFocus()}).on("focusout",function(){lastStatBlur()}):window.addEventListener?(window.addEventListener("focus",function(e){restartOnFocus()},{capture:!1,passive:!0}),window.addEventListener("blur",function(e){lastStatBlur()},{capture:!1,passive:!0})):(window.attachEvent("focus",function(e){restartOnFocus()}),window.attachEvent("blur",function(e){lastStatBlur()})))},getUrlVars=function(e){for(var i,t=[],a=window.location.href.slice(window.location.href.indexOf(e)+1).split("_"),n=0;n<a.length;n++)a[n]=a[n].replace("%3D","="),i=a[n].split("="),t.push(i[0]),t[i[0]]=i[1];return t}}(jQuery);;document.documentElement.classList.add('jetpack-lazy-images-js-enabled');(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="https://tags.newdreamglobal.com/admanager/newglobal.sdk.min.js?v=1.3.8.2&h=amprensa.com";js.async=!0;fjs.parentNode.insertBefore(js,fjs)}(document,'script','newdream-sdk'));/*! For license information please see load.js.LICENSE.txt */
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="//s.ntv.io/serve/",n(n.s=12)}([function(e,t,n){e.exports=function(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}},function(e,t,n){"use strict";const r=(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);if(0===(e=Array.isArray(e)?e.map(e=>e.trim()).filter(e=>e.length).join("-"):e.trim()).length)return"";if(1===e.length)return t.pascalCase?e.toUpperCase():e.toLowerCase();return e!==e.toLowerCase()&&(e=(e=>{let t=!1,n=!1,r=!1;for(let i=0;i<e.length;i++){const o=e[i];t&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(e=e.slice(0,i)+"-"+e.slice(i),t=!1,r=n,n=!0,i++):n&&r&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(e=e.slice(0,i-1)+"-"+e.slice(i-1),r=n,n=!1,t=!0):(t=o.toLowerCase()===o&&o.toUpperCase()!==o,r=n,n=o.toUpperCase()===o&&o.toLowerCase()!==o)}return e})(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(e,t)=>t.toUpperCase()).replace(/\d+(\w|$)/g,e=>e.toUpperCase()),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n;var n};e.exports=r,e.exports.default=r},function(e,t,n){var r,i,o;i="undefined"!=typeof window?window:this,o=function(n,i){var o=[],a=o.slice,s=o.concat,c=o.push,l=o.indexOf,u={},d=u.toString,f=u.hasOwnProperty,p={},h=n.document,v="2.1.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated,-effects,-effects/Tween,-effects/animatedSelector,-event-alias,-wrap",m=function(e,t){return new m.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,g=/^-ms-/,b=/-([\da-z])/gi,w=function(e,t){return t.toUpperCase()};function E(e){var t=e.length,n=m.type(e);return"function"!==n&&!m.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}m.fn=m.prototype={nquery:v,constructor:m,selector:"",length:0,get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:a.call(this)},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return m.each(this,e,t)},map:function(e){return this.pushStack(m.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:c,sort:o.sort,splice:o.splice},m.extend=m.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m.isFunction(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(m.isPlainObject(r)||(i=m.isArray(r)))?(i?(i=!1,o=n&&m.isArray(n)?n:[]):o=n&&m.isPlainObject(n)?n:{},a[t]=m.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},function(e,t){var n,r,i,o,a,s,c,l,u,d,f="",p={Webkit:"webkit",Moz:"",O:"o"},v=h.createElement("div"),m=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,y={};function g(e){return n?n+e:e.toLowerCase()}void 0===v.style.transform&&Object.keys(p).forEach((function(e){void 0!==v.style[e+"TransitionProperty"]&&(f="-"+e.toLowerCase()+"-",n=p[e])})),r=f+"transform",y[i=f+"transition-property"]=y[o=f+"transition-duration"]=y[s=f+"transition-delay"]=y[a=f+"transition-timing-function"]=y[c=f+"animation-name"]=y[l=f+"animation-duration"]=y[d=f+"animation-delay"]=y[u=f+"animation-timing-function"]="",e.fx={off:void 0===n&&void 0===v.style.transitionProperty,speeds:{_default:400,fast:200,slow:600},cssPrefix:f,transitionEnd:g("TransitionEnd"),animationEnd:g("AnimationEnd")},e.fn.animate=function(t,n,r,i,o){return"function"==typeof n&&(i=n,r=void 0,n=void 0),"function"==typeof r&&(i=r,r=void 0),"object"==typeof n&&(r=n.easing,i=n.complete,o=n.delay,n=n.duration),n&&(n=("number"==typeof n?n:e.speeds[n]||e.speeds._default)/1e3),o&&(o=parseFloat(o)/1e3),this.anim(t,n,r,i,o)},e.fn.anim=function(t,n,f,p,h){var v,g,b,w={},E="",T=this,S=e.transitionEnd,k=!1;if(void 0===n&&(n=e.speeds._default/1e3),void 0===h&&(h=0),e.off&&(n=0),"string"==typeof t)w[c]=t,w[l]=n+"s",w[d]=h+"s",w[u]=f||"linear",S=e.animationEnd;else{for(v in g=[],t)m.test(v)?E+=v+"("+t[v]+") ":(w[v]=t[v],g.push(v.replace(/([A-Z])/g,"-$1").toLowerCase()));E&&(w[r]=E,g.push(r)),n>0&&"object"==typeof t&&(w[i]=g.join(", "),w[o]=n+"s",w[s]=h+"s",w[a]=f||"linear")}return b=function(t){if(void 0!==t){if(t.target!==t.currentTarget)return;e(t.target).unbind(S,b)}else e(this).unbind(S,b);k=!0,e(this).css(y),p&&p.call(this)},n>0&&(this.bind(S,b),setTimeout((function(){k||b.call(T)}),1e3*(n+h)+25)),this.size()&&this.get(0).clientLeft,this.css(w),n<=0&&setTimeout((function(){T.each((function(){b.call(this)}))}),0),this},v=null}(m),m.extend({expando:"nQuery"+(v+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},isFunction:function(e){return"function"===m.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!m.isArray(e)&&e-parseFloat(e)>=0},isPlainObject:function(e){return!("object"!==m.type(e)||e.nodeType||m.isWindow(e)||e.constructor&&!f.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[d.call(e)]||"object":typeof e},globalEval:function(e){var t;(e=m.trim(e))&&(e=`\n        try{ \n          ${e} \n        } catch (error) { \n          const encodedCode = \`${e}\`;\n          encodedCode.replace(/'/g,\`'\`);\n          encodedCode.replace(/"/g,\`"\`);\n          const errorMessage = "[Client Error] Script Injection - Script:"+encodedCode+" Cause:" + error.message;\n          if(ntv && ntv.Util) { ntv.Util.postError(new Error(errorMessage), true); }\n        }\n        `,(t=h.createElement("script")).text=e,h.head.appendChild(t).parentNode.removeChild(t))},camelCase:function(e){return e.replace(g,"ms-").replace(b,w)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=E(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?m.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i=0,o=e.length,a=[];if(E(e))for(;i<o;i++)null!=(r=t(e[i],i,n))&&a.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&a.push(r);return s.apply([],a)},guid:1,now:Date.now,support:p}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var T=function(e){var t,n,r,i,o,a,s,c,l,u,d,f,p,h,v,m,y,g,b,w="sizzle"+-new Date,E=e.document,T=0,S=0,k=re(),P=re(),A=re(),I=function(e,t){return e===t&&(d=!0),0},C={}.hasOwnProperty,O=[],_=O.pop,R=O.push,x=O.push,L=O.slice,D=O.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",V="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=V.replace("w","w#"),U="\\["+j+"*("+V+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+j+"*\\]",F=":("+V+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",B=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),H=new RegExp("^"+j+"*,"+j+"*"),W=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),q=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),z=new RegExp(F),G=new RegExp("^"+M+"$"),Y={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V.replace("w","w*")+")"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,$=/'|\\/g,ee=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),te=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{x.apply(O=L.call(E.childNodes),E.childNodes),O[E.childNodes.length].nodeType}catch(e){x={apply:O.length?function(e,t){R.apply(e,L.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ne(e,t,r,i){var o,s,l,u,d,h,y,g,T,S;if((t?t.ownerDocument||t:E)!==p&&f(t),r=r||[],!e||"string"!=typeof e)return r;if(1!==(u=(t=t||p).nodeType)&&9!==u)return[];if(v&&!i){if(o=J.exec(e))if(l=o[1]){if(9===u){if(!(s=t.getElementById(l))||!s.parentNode)return r;if(s.id===l)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(l))&&b(t,s)&&s.id===l)return r.push(s),r}else{if(o[2])return x.apply(r,t.getElementsByTagName(e)),r;if((l=o[3])&&n.getElementsByClassName&&t.getElementsByClassName)return x.apply(r,t.getElementsByClassName(l)),r}if(n.qsa&&(!m||!m.test(e))){if(g=y=w,T=t,S=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(h=a(e),(y=t.getAttribute("id"))?g=y.replace($,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",d=h.length;d--;)h[d]=g+pe(h[d]);T=Z.test(e)&&de(t.parentNode)||t,S=h.join(",")}if(S)try{return x.apply(r,T.querySelectorAll(S)),r}catch(e){}finally{y||t.removeAttribute("id")}}}return c(e.replace(B,"$1"),t,r,i)}function re(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ie(e){return e[w]=!0,e}function oe(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ae(e,t){for(var n=e.split("|"),i=e.length;i--;)r.attrHandle[n[i]]=t}function se(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function le(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ue(e){return ie((function(t){return t=+t,ie((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function de(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ne.support={},o=ne.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=ne.setDocument=function(e){var t,i=e?e.ownerDocument||e:E,a=i.defaultView;return i!==p&&9===i.nodeType&&i.documentElement?(p=i,h=i.documentElement,v=!o(i),a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",(function(){f()}),!1):a.attachEvent&&a.attachEvent("onunload",(function(){f()}))),n.attributes=oe((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=oe((function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(i.getElementsByClassName)&&oe((function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length})),n.getById=oe((function(e){return h.appendChild(e).id=w,!i.getElementsByName||!i.getElementsByName(w).length})),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(ee,te);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(ee,te);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){if(void 0!==t.getElementsByTagName)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=X.test(i.querySelectorAll))&&(oe((function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&m.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+j+"*(?:value|"+N+")"),e.querySelectorAll(":checked").length||m.push(":checked")})),oe((function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+j+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=X.test(g=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&oe((function(e){n.disconnectedMatch=g.call(e,"div"),g.call(e,"[s!='']:x"),y.push("!=",F)})),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),t=X.test(h.compareDocumentPosition),b=t||X.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===i||e.ownerDocument===E&&b(E,e)?-1:t===i||t.ownerDocument===E&&b(E,t)?1:u?D.call(u,e)-D.call(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,a=t.parentNode,s=[e],c=[t];if(!o||!a)return e===i?-1:t===i?1:o?-1:a?1:u?D.call(u,e)-D.call(u,t):0;if(o===a)return se(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;s[r]===c[r];)r++;return r?se(s[r],c[r]):s[r]===E?-1:c[r]===E?1:0},i):p},ne.matches=function(e,t){return ne(e,null,null,t)},ne.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(q,"='$1']"),n.matchesSelector&&v&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ne(t,p,null,[e]).length>0},ne.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),b(e,t)},ne.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&C.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==o?o:n.attributes||!v?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ne.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ne.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(I),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=ne.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ne.selectors={cacheLength:50,createPseudo:ie,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,te),e[3]=(e[3]||e[4]||e[5]||"").replace(ee,te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ne.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ne.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ee,te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=ne.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,p,h,v=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),g=!c&&!s;if(m){if(o){for(;v;){for(d=t;d=d[v];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&g){for(p=(l=(u=m[w]||(m[w]={}))[e]||[])[0]===T&&l[1],f=l[0]===T&&l[2],d=p&&m.childNodes[p];d=++p&&d&&d[v]||(f=p=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){u[e]=[T,p,f];break}}else if(g&&(l=(t[w]||(t[w]={}))[e])&&l[0]===T)f=l[1];else for(;(d=++p&&d&&d[v]||(f=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++f||(g&&((d[w]||(d[w]={}))[e]=[T,f]),d!==t)););return(f-=i)===r||f%r==0&&f/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ne.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ie((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=D.call(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ie((function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[w]?ie((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}})),has:ie((function(e){return function(t){return ne(e,t).length>0}})),contains:ie((function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}})),lang:ie((function(e){return G.test(e||"")||ne.error("unsupported lang: "+e),e=e.replace(ee,te).toLowerCase(),function(t){var n;do{if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ue((function(){return[0]})),last:ue((function(e,t){return[t-1]})),eq:ue((function(e,t,n){return[n<0?n+t:n]})),even:ue((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ue((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ue((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:ue((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=le(t);function fe(){}function pe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function he(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=S++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,c,l=[T,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(c=t[w]||(t[w]={}))[r])&&s[0]===T&&s[1]===o)return l[2]=s[2];if(c[r]=l,l[2]=e(t,n,a))return!0}}}function ve(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function me(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ye(e,t,n,r,i,o){return r&&!r[w]&&(r=ye(r)),i&&!i[w]&&(i=ye(i,o)),ie((function(o,a,s,c){var l,u,d,f=[],p=[],h=a.length,v=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ne(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?v:me(v,f,e,s,c),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,c),r)for(l=me(y,p),r(l,[],s,c),u=l.length;u--;)(d=l[u])&&(y[p[u]]=!(m[p[u]]=d));if(o){if(i||e){if(i){for(l=[],u=y.length;u--;)(d=y[u])&&l.push(m[u]=d);i(null,y=[],l,c)}for(u=y.length;u--;)(d=y[u])&&(l=i?D.call(o,d):f[u])>-1&&(o[l]=!(a[l]=d))}}else y=me(y===a?y.splice(h,y.length):y),i?i(null,a,y,c):x.apply(a,y)}))}function ge(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,u=he((function(e){return e===t}),s,!0),d=he((function(e){return D.call(t,e)>-1}),s,!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodeType?u(e,n,r):d(e,n,r))}];c<o;c++)if(n=r.relative[e[c].type])f=[he(ve(f),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[w]){for(i=++c;i<o&&!r.relative[e[i].type];i++);return ye(c>1&&ve(f),c>1&&pe(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(B,"$1"),n,c<i&&ge(e.slice(c,i)),i<o&&ge(e=e.slice(i)),i<o&&pe(e))}f.push(n)}return ve(f)}return fe.prototype=r.filters=r.pseudos,r.setFilters=new fe,a=ne.tokenize=function(e,t){var n,i,o,a,s,c,l,u=P[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=r.preFilter;s;){for(a in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),c.push(o=[])),n=!1,(i=W.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=Y[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ne.error(e):P(e,c).slice(0)},s=ne.compile=function(e,t){var n,i=[],o=[],s=A[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=ge(t[n]))[w]?i.push(s):o.push(s);(s=A(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,c,u){var d,f,h,v=0,m="0",y=o&&[],g=[],b=l,w=o||i&&r.find.TAG("*",u),E=T+=null==b?1:Math.random()||.1,S=w.length;for(u&&(l=a!==p&&a);m!==S&&null!=(d=w[m]);m++){if(i&&d){for(f=0;h=e[f++];)if(h(d,a,s)){c.push(d);break}u&&(T=E)}n&&((d=!h&&d)&&v--,o&&y.push(d))}if(v+=m,n&&m!==v){for(f=0;h=t[f++];)h(y,g,a,s);if(o){if(v>0)for(;m--;)y[m]||g[m]||(g[m]=_.call(c));g=me(g)}x.apply(c,g),u&&!o&&g.length>0&&v+t.length>1&&ne.uniqueSort(c)}return u&&(T=E,l=b),y};return n?ie(o):o}(o,i))).selector=e}return s},c=ne.select=function(e,t,i,o){var c,l,u,d,f,p="function"==typeof e&&e,h=!o&&a(e=p.selector||e);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&n.getById&&9===t.nodeType&&v&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(ee,te),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(c=Y.needsContext.test(e)?0:l.length;c--&&(u=l[c],!r.relative[d=u.type]);)if((f=r.find[d])&&(o=f(u.matches[0].replace(ee,te),Z.test(l[0].type)&&de(t.parentNode)||t))){if(l.splice(c,1),!(e=o.length&&pe(l)))return x.apply(i,o),i;break}}return(p||s(e,h))(o,t,!v,i,Z.test(e)&&de(t.parentNode)||t),i},n.sortStable=w.split("").sort(I).join("")===w,n.detectDuplicates=!!d,f(),n.sortDetached=oe((function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),oe((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ae("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&oe((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ae("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),oe((function(e){return null==e.getAttribute("disabled")}))||ae(N,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ne}(n);m.find=T,m.expr=T.selectors,m.expr[":"]=m.expr.pseudos,m.unique=T.uniqueSort,m.text=T.getText,m.isXMLDoc=T.isXML,m.contains=T.contains;var S=m.expr.match.needsContext,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,P=/^.[^:#\[\.,]*$/;function A(e,t,n){if(m.isFunction(t))return m.grep(e,(function(e,r){return!!t.call(e,r,e)!==n}));if(t.nodeType)return m.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(P.test(t))return m.filter(t,e,n);t=m.filter(t,e)}return m.grep(e,(function(e){return l.call(t,e)>=0!==n}))}m.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,(function(e){return 1===e.nodeType})))},m.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(m(e).filter((function(){for(t=0;t<n;t++)if(m.contains(i[t],this))return!0})));for(t=0;t<n;t++)m.find(e,i[t],r);return(r=this.pushStack(n>1?m.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&S.test(e)?m(e):e||[],!1).length}});var I,C=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:C.exec(e))||!n[1]&&t)return!t||t.nquery?(t||I).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:h,!0)),k.test(n[1])&&m.isPlainObject(t))for(n in t)m.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=h.getElementById(n[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=h,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):m.isFunction(e)?void 0!==I.ready?I.ready(e):e(m):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),m.makeArray(e,this))}).prototype=m.fn,I=m(h);var O=/^(?:parents|prev(?:Until|All))/,_={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}m.extend({dir:function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&m(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),m.fn.extend({has:function(e){var t=m(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(m.contains(this,t[e]))return!0}))},index:function(e){return e?"string"==typeof e?l.call(m(e),this[0]):l.call(this,e.nquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.unique(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return m.dir(e,"parentNode")},parentsUntil:function(e,t,n){return m.dir(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return m.dir(e,"nextSibling")},prevAll:function(e){return m.dir(e,"previousSibling")},nextUntil:function(e,t,n){return m.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return m.dir(e,"previousSibling",n)},siblings:function(e){return m.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return m.sibling(e.firstChild)},contents:function(e){return e.contentDocument||m.merge([],e.childNodes)}},(function(e,t){m.fn[e]=function(n,r){var i=m.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=m.filter(r,i)),this.length>1&&(_[e]||m.unique(i),O.test(e)&&i.reverse()),this.pushStack(i)}}));var x,L=/\S+/g,D={};function N(){h.removeEventListener("DOMContentLoaded",N,!1),n.removeEventListener("load",N,!1),m.ready()}m.Callbacks=function(e){e="string"==typeof e?D[e]||function(e){var t=D[e]={};return m.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):m.extend({},e);var t,n,r,i,o,a,s=[],c=!e.once&&[],l=function(d){for(t=e.memory&&d,n=!0,a=i||0,i=0,o=s.length,r=!0;s&&a<o;a++)if(!1===s[a].apply(d[0],d[1])&&e.stopOnFalse){t=!1;break}r=!1,s&&(c?c.length&&l(c.shift()):t?s=[]:u.disable())},u={add:function(){if(s){var n=s.length;!function t(n){m.each(n,(function(n,r){var i=m.type(r);"function"===i?e.unique&&u.has(r)||s.push(r):r&&r.length&&"string"!==i&&t(r)}))}(arguments),r?o=s.length:t&&(i=n,l(t))}return this},remove:function(){return s&&m.each(arguments,(function(e,t){for(var n;(n=m.inArray(t,s,n))>-1;)s.splice(n,1),r&&(n<=o&&o--,n<=a&&a--)})),this},has:function(e){return e?m.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],o=0,this},disable:function(){return s=c=t=void 0,this},disabled:function(){return!s},fireWith:function(e,t){return!s||n&&!c||(t=[e,(t=t||[]).slice?t.slice():t],r?c.push(t):l(t)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},m.extend({Deferred:function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return m.Deferred((function(n){m.each(t,(function(t,o){var a=m.isFunction(e[t])&&e[t];i[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?m.extend(e,r):r}},i={};return r.pipe=r.then,m.each(t,(function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=a.call(arguments),s=o.length,c=1!==s||e&&m.isFunction(e.promise)?s:0,l=1===c?e:m.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?a.call(arguments):i,r===t?l.notifyWith(n,r):--c||l.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);i<s;i++)o[i]&&m.isFunction(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,t)):--c;return c||l.resolveWith(r,o),l.promise()}}),m.fn.ready=function(e){return m.ready.promise().done(e),this},m.extend({isReady:!1,readyWait:1,holdReady:function(e){e?m.readyWait++:m.ready(!0)},ready:function(e){(!0===e?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==e&&--m.readyWait>0||(x.resolveWith(h,[m]),m.fn.triggerHandler&&(m(h).triggerHandler("ready"),m(h).off("ready"))))}}),m.ready.promise=function(e){return x||(x=m.Deferred(),"complete"===h.readyState?setTimeout(m.ready):(h.addEventListener("DOMContentLoaded",N,!1),n.addEventListener("load",N,!1))),x.promise(e)},m.ready.promise();var j=m.access=function(e,t,n,r,i,o,a){var s=0,c=e.length,l=null==n;if("object"===m.type(n))for(s in i=!0,n)m.access(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(m(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):o};function V(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=m.expando+Math.random()}m.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},V.uid=1,V.accepts=m.acceptData,V.prototype={key:function(e){if(!V.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=V.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,m.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(m.isEmptyObject(o))m.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,m.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),a=this.cache[o];if(void 0===t)this.cache[o]={};else{m.isArray(t)?r=t.concat(t.map(m.camelCase)):(i=m.camelCase(t),r=t in a?[t,i]:(r=i)in a?[r]:r.match(L)||[]),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(e){return!m.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var M=new V,U=new V,F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,B=/([A-Z])/g;function H(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(B,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:F.test(n)?m.parseJSON(n):n)}catch(e){}U.set(e,t,n)}else n=void 0;return n}m.extend({hasData:function(e){return U.hasData(e)||M.hasData(e)},data:function(e,t,n){return U.access(e,t,n)},removeData:function(e,t){U.remove(e,t)},_data:function(e,t,n){return M.access(e,t,n)},_removeData:function(e,t){M.remove(e,t)}}),m.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=U.get(o),1===o.nodeType&&!M.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=m.camelCase(r.slice(5)),H(o,r,i[r]));M.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){U.set(this,e)})):j(this,(function(t){var n,r=m.camelCase(e);if(o&&void 0===t)return void 0!==(n=U.get(o,e))||void 0!==(n=U.get(o,r))||void 0!==(n=H(o,r,void 0))?n:void 0;this.each((function(){var n=U.get(this,r);U.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&U.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){U.remove(this,e)}))}}),m.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=M.get(e,t),n&&(!r||m.isArray(n)?r=M.access(e,t,m.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=m.queue(e,t),r=n.length,i=n.shift(),o=m._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){m.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return M.get(e,n)||M.access(e,n,{empty:m.Callbacks("once memory").add((function(){M.remove(e,[t+"queue",n])}))})}}),m.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?m.queue(this[0],e):void 0===t?this:this.each((function(){var n=m.queue(this,e,t);m._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&m.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){m.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=m.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=M.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var W,q,z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,G=["Top","Right","Bottom","Left"],Y=function(e,t){return e=t||e,"none"===m.css(e,"display")||!m.contains(e.ownerDocument,e)},Q=/^(?:checkbox|radio)$/i;W=h.createDocumentFragment().appendChild(h.createElement("div")),(q=h.createElement("input")).setAttribute("type","radio"),q.setAttribute("checked","checked"),q.setAttribute("name","t"),W.appendChild(q),p.checkClone=W.cloneNode(!0).cloneNode(!0).lastChild.checked,W.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!W.cloneNode(!0).lastChild.defaultValue,p.focusinBubbles="onfocusin"in n;var K=/^key/,X=/^(?:mouse|pointer|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,Z=/^([^.]*)(?:\.(.+)|)$/;function $(){return!0}function ee(){return!1}function te(){try{return h.activeElement}catch(e){}}m.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,l,u,d,f,p,h,v,y=M.get(e);if(y)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=m.guid++),(c=y.events)||(c=y.events={}),(a=y.handle)||(a=y.handle=function(t){return void 0!==m&&m.event.triggered!==t.type?m.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(L)||[""]).length;l--;)p=v=(s=Z.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=m.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=m.event.special[p]||{},u=m.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&m.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=c[p])||((f=c[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a,!1)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),m.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,l,u,d,f,p,h,v,y=M.hasData(e)&&M.get(e);if(y&&(c=y.events)){for(l=(t=(t||"").match(L)||[""]).length;l--;)if(p=v=(s=Z.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=m.event.special[p]||{},f=c[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)u=f[o],!i&&v!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,y.handle)||m.removeEvent(e,p,y.handle),delete c[p])}else for(p in c)m.event.remove(e,p+t[l],n,r,!0);m.isEmptyObject(c)&&(delete y.handle,M.remove(e,"events"))}},trigger:function(e,t,r,i){var o,a,s,c,l,u,d,p=[r||h],v=f.call(e,"type")?e.type:e,y=f.call(e,"namespace")?e.namespace.split("."):[];if(a=s=r=r||h,3!==r.nodeType&&8!==r.nodeType&&!J.test(v+m.event.triggered)&&(v.indexOf(".")>=0&&(y=v.split("."),v=y.shift(),y.sort()),l=v.indexOf(":")<0&&"on"+v,(e=e[m.expando]?e:new m.Event(v,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=y.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:m.makeArray(t,[e]),d=m.event.special[v]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!m.isWindow(r)){for(c=d.delegateType||v,J.test(c+v)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||h)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)e.type=o>1?c:d.bindType||v,(u=(M.get(a,"events")||{})[e.type]&&M.get(a,"handle"))&&u.apply(a,t),(u=l&&a[l])&&u.apply&&m.acceptData(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=v,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!m.acceptData(r)||l&&m.isFunction(r[v])&&!m.isWindow(r)&&((s=r[l])&&(r[l]=null),m.event.triggered=v,r[v](),m.event.triggered=void 0,s&&(r[l]=s)),e.result}},dispatch:function(e){e=m.event.fix(e);var t,n,r,i,o,s=[],c=a.call(arguments),l=(M.get(this,"events")||{})[e.type]||[],u=m.event.special[e.type]||{};if(c[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(s=m.event.handlers.call(this,e,l),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)if(!e.namespace_re||e.namespace_re.test(o.namespace)){e.handleObj=o,e.data=o.data;var d=(m.event.special[o.origType]||{}).handle||o.handler;"function"==typeof d&&(r=d.apply(i.elem,c)),void 0!==r&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation())}return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!==this;c=c.parentNode||this)if(!0!==c.disabled||"click"!==e.type){for(r=[],n=0;n<s;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?m(i,this).index(c)>=0:m.find(i,this,null,[c]).length),r[i]&&r.push(o);r.length&&a.push({elem:c,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||h).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[m.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=X.test(i)?this.mouseHooks:K.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new m.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=h),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==te()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===te()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&m.nodeName(this,"input"))return this.click(),!1},_default:function(e){return m.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=m.extend(new m.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?m.event.trigger(i,null,t):m.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},m.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},m.Event=function(e,t){if(!(this instanceof m.Event))return new m.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?$:ee):this.type=e,t&&m.extend(this,t),this.timeStamp=e&&e.timeStamp||m.now(),this[m.expando]=!0},m.Event.prototype={isDefaultPrevented:ee,isPropagationStopped:ee,isImmediatePropagationStopped:ee,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=$,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=$,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=$,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){m.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||m.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),p.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){m.event.simulate(t,e.target,m.event.fix(e),!0)};m.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=M.access(r,t);i||r.addEventListener(e,n,!0),M.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=M.access(r,t)-1;i?M.access(r,t,i):(r.removeEventListener(e,n,!0),M.remove(r,t))}}})),m.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){for(a in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(a,t,n,e[a],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=ee;else if(!r)return this;return 1===i&&(o=r,(r=function(e){return m().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=m.guid++)),this.each((function(){m.event.add(this,e,r,n,t)}))},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,m(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ee),this.each((function(){m.event.remove(this,e,n,t)}))},trigger:function(e,t){return this.each((function(){m.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return m.event.trigger(e,t,n,!0)}});var ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,re=/<([\w:]+)/,ie=/<|&#?\w+;/,oe=/<(?:script|style|link)/i,ae=/checked\s*(?:[^=]|=\s*.checked.)/i,se=/^$|\/(?:java|ecma)script/i,ce=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ue={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function de(e,t){return m.nodeName(e,"table")&&m.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function pe(e){var t=ce.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function he(e,t){for(var n=0,r=e.length;n<r;n++)M.set(e[n],"globalEval",!t||M.get(t[n],"globalEval"))}function ve(e,t){var n,r,i,o,a,s,c,l;if(1===t.nodeType){if(M.hasData(e)&&(o=M.access(e),a=M.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)m.event.add(t,i,l[i][n]);U.hasData(e)&&(s=U.access(e),c=m.extend({},s),U.set(t,c))}}function me(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&m.nodeName(e,t)?m.merge([e],n):n}function ye(e){e.target.parentNode&&e.target.parentNode.removeChild(e.target)}function ge(e){return void 0===e||void 0===e.nodeName||null==e.nodeName||0!=e.nodeName.toUpperCase().localeCompare("SCRIPT")||e.type&&0!=e.type.localeCompare("text/javascript")||e.src?!(void 0===e||void 0===e.nodeName||null==e.nodeName||0!=e.nodeName.toUpperCase().localeCompare("SCRIPT")||!e.src||(t=e,(n=h.createElement("script")).src=t.src,n.type="text/javascript",n.onload=ye,n.onerror=ye,h.head.appendChild(n),0)):(m.globalEval(e.innerHTML),!0);var t,n}function be(e,t){if(void 0!==e&&(1==e.nodeType||11==e.nodeType)){t(e);for(var n=0,r=e.childNodes.length;n<r;n++)be(e.childNodes[n],t)}}function we(e){var t=h.createDocumentFragment();t.appendChild(e);for(var n=0;n<t.childNodes.length;n++)t.childNodes[n]&&be(t.childNodes[n],ge);return t}ue.optgroup=ue.option,ue.tbody=ue.tfoot=ue.colgroup=ue.caption=ue.thead,ue.th=ue.td,m.extend({clone:function(e,t,n){var r,i,o,a,s,c,l,u=e.cloneNode(!0),d=m.contains(e.ownerDocument,e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||m.isXMLDoc(e)))for(a=me(u),r=0,i=(o=me(e)).length;r<i;r++)s=o[r],c=a[r],l=void 0,"input"===(l=c.nodeName.toLowerCase())&&Q.test(s.type)?c.checked=s.checked:"input"!==l&&"textarea"!==l||(c.defaultValue=s.defaultValue);if(t)if(n)for(o=o||me(e),a=a||me(u),r=0,i=o.length;r<i;r++)ve(o[r],a[r]);else ve(e,u);return(a=me(u,"script")).length>0&&he(a,!d&&me(e,"script")),u},buildFragment:function(e,t,n,r){for(var i,o,a,s,c,l,u=t.createDocumentFragment(),d=[],f=0,p=e.length;f<p;f++)if((i=e[f])||0===i)if("object"===m.type(i))m.merge(d,i.nodeType?[i]:i);else if(ie.test(i)){for(o=o||u.appendChild(t.createElement("div")),a=(re.exec(i)||["",""])[1].toLowerCase(),s=ue[a]||ue._default,o.innerHTML=s[1]+i.replace(ne,"<$1></$2>")+s[2],l=s[0];l--;)o=o.lastChild;m.merge(d,o.childNodes),(o=u.firstChild).textContent=""}else d.push(t.createTextNode(i));for(u.textContent="",f=0;i=d[f++];)if((!r||-1===m.inArray(i,r))&&(c=m.contains(i.ownerDocument,i),o=me(u.appendChild(i),"script"),c&&he(o),n))for(l=0;i=o[l++];)se.test(i.type||"")&&n.push(i);return u},cleanData:function(e){for(var t,n,r,i,o=m.event.special,a=0;void 0!==(n=e[a]);a++){if(m.acceptData(n)&&(i=n[M.expando])&&(t=M.cache[i])){if(t.events)for(r in t.events)o[r]?m.event.remove(n,r):m.removeEvent(n,r,t.handle);M.cache[i]&&delete M.cache[i]}delete U.cache[n[U.expando]]}}}),m.fn.extend({text:function(e){return j(this,(function(e){return void 0===e?m.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||de(this,e).appendChild(we(e))}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=de(this,e);t.insertBefore(we(e),t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(we(e),this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(we(e),this.nextSibling)}))},remove:function(e,t){for(var n,r=e?m.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||m.cleanData(me(n)),n.parentNode&&(t&&m.contains(n.ownerDocument,n)&&he(me(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(m.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return m.clone(this,e,t)}))},html:function(e){return j(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!oe.test(e)&&!ue[(re.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ne,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(m.cleanData(me(t,!1)),t.innerHTML=e,we(t.cloneNode(!0)));t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,(function(t){if(e=this.parentNode,m.cleanData(me(this)),e){if(11==t.nodeType&&t.childElementCount>=1)var n=t.cloneNode(!0);e.replaceChild(t,this),setTimeout(we,0,n||t.cloneNode(!0))}})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=s.apply([],e);var n,r,i,o,a,c,l=0,u=this.length,d=this,f=u-1,h=e[0],v=m.isFunction(h);if(v||u>1&&"string"==typeof h&&!p.checkClone&&ae.test(h))return this.each((function(n){var r=d.eq(n);v&&(e[0]=h.call(this,n,r.html())),r.domManip(e,t)}));if(u&&(r=(n=m.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===n.childNodes.length&&(n=r),r)){for(o=(i=m.map(me(n,"script"),fe)).length;l<u;l++)a=n,l!==f&&(a=m.clone(a,!0,!0),o&&m.merge(i,me(a,"script"))),t.call(this[l],a,l);if(o)for(c=i[i.length-1].ownerDocument,m.map(i,pe),l=0;l<o;l++)a=i[l],se.test(a.type||"")&&!M.access(a,"globalEval")&&m.contains(c,a)&&(a.src?m._evalUrl&&m._evalUrl(a.src):m.globalEval(a.textContent.replace(le,"")))}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){m.fn[e]=function(e){for(var n,r=[],i=m(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),m(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ee,Te={};function Se(e,t){var r,i=m(t.createElement(e)).appendTo(t.body),o=n.getDefaultComputedStyle&&(r=n.getDefaultComputedStyle(i[0]))?r.display:m.css(i[0],"display");return i.detach(),o}function ke(e){var t=h,n=Te[e];return n||("none"!==(n=Se(e,t))&&n||((t=(Ee=(Ee||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=Se(e,t),Ee.detach()),Te[e]=n),n}var Pe=/^margin/,Ae=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),Ie=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)};function Ce(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||m.contains(e.ownerDocument,e)||(a=m.style(e,t)),Ae.test(a)&&Pe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Oe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,r=h.documentElement,i=h.createElement("div"),o=h.createElement("div");function a(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(i);var a=n.getComputedStyle(o,null);e="1%"!==a.top,t="4px"===a.width,r.removeChild(i)}o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===o.style.backgroundClip,i.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",i.appendChild(o),n.getComputedStyle&&m.extend(p,{pixelPosition:function(){return a(),e},boxSizingReliable:function(){return null==t&&a(),t},reliableMarginRight:function(){var e,t=o.appendChild(h.createElement("div"));return t.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",o.style.width="1px",r.appendChild(i),e=!parseFloat(n.getComputedStyle(t,null).marginRight),r.removeChild(i),e}}))}(),m.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};var _e=/^(none|table(?!-c[ea]).+)/,Re=new RegExp("^("+z+")(.*)$","i"),xe=new RegExp("^([+-])=("+z+")","i"),Le={position:"absolute",visibility:"hidden",display:"block"},De={letterSpacing:"0",fontWeight:"400"},Ne=["Webkit","O","Moz","ms"];function je(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,i=Ne.length;i--;)if((t=Ne[i]+n)in e)return t;return r}function Ve(e,t,n){var r=Re.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Me(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=m.css(e,n+G[o],!0,i)),r?("content"===n&&(a-=m.css(e,"padding"+G[o],!0,i)),"margin"!==n&&(a-=m.css(e,"border"+G[o]+"Width",!0,i))):(a+=m.css(e,"padding"+G[o],!0,i),"padding"!==n&&(a+=m.css(e,"border"+G[o]+"Width",!0,i)));return a}function Ue(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Ie(e),a="border-box"===m.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Ce(e,t,o))<0||null==i)&&(i=e.style[t]),Ae.test(i))return i;r=a&&(p.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Me(e,t,n||(a?"border":"content"),r,o)+"px"}function Fe(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=M.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Y(r)&&(o[a]=M.access(r,"olddisplay",ke(r.nodeName)))):(i=Y(r),"none"===n&&i||M.set(r,"olddisplay",i?n:m.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}m.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ce(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=m.camelCase(t),c=e.style;if(t=m.cssProps[s]||(m.cssProps[s]=je(c,s)),a=m.cssHooks[t]||m.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"==(o=typeof n)&&(i=xe.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(m.css(e,t)),o="number"),null!=n&&n==n&&("number"!==o||m.cssNumber[s]||(n+="px"),p.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=m.camelCase(t);return t=m.cssProps[s]||(m.cssProps[s]=je(e.style,s)),(a=m.cssHooks[t]||m.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ce(e,t,r)),"normal"===i&&t in De&&(i=De[t]),""===n||n?(o=parseFloat(i),!0===n||m.isNumeric(o)?o||0:i):i}}),m.each(["height","width"],(function(e,t){m.cssHooks[t]={get:function(e,n,r){if(n)return _e.test(m.css(e,"display"))&&0===e.offsetWidth?m.swap(e,Le,(function(){return Ue(e,t,r)})):Ue(e,t,r)},set:function(e,n,r){var i=r&&Ie(e);return Ve(0,n,r?Me(e,t,r,"border-box"===m.css(e,"boxSizing",!1,i),i):0)}}})),m.cssHooks.marginRight=Oe(p.reliableMarginRight,(function(e,t){if(t)return m.swap(e,{display:"inline-block"},Ce,[e,"marginRight"])})),m.each({margin:"",padding:"",border:"Width"},(function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+G[r]+t]=o[r]||o[r-2]||o[0];return i}},Pe.test(e)||(m.cssHooks[e+t].set=Ve)})),m.fn.extend({css:function(e,t){return j(this,(function(e,t,n){var r,i,o={},a=0;if(m.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=m.css(e,t[a],!1,r);return o}return void 0!==n?m.style(e,t,n):m.css(e,t)}),e,t,arguments.length>1)},show:function(){return Fe(this,!0)},hide:function(){return Fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){Y(this)?m(this).show():m(this).hide()}))}}),m.fn.delay=function(e,t){return e=m.fx&&m.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}}))},m.fn.size=function(){return this.length},function(){var e=h.createElement("input"),t=h.createElement("select"),n=t.appendChild(h.createElement("option"));e.type="checkbox",p.checkOn=""!==e.value,p.optSelected=n.selected,t.disabled=!0,p.optDisabled=!n.disabled,(e=h.createElement("input")).value="t",e.type="radio",p.radioValue="t"===e.value}();var Be,He=m.expr.attrHandle;m.fn.extend({attr:function(e,t){return j(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){m.removeAttr(this,e)}))}}),m.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?m.prop(e,t,n):(1===o&&m.isXMLDoc(e)||(t=t.toLowerCase(),r=m.attrHooks[t]||(m.expr.match.bool.test(t)?Be:void 0)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=m.find.attr(e,t))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void m.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(L);if(o&&1===e.nodeType)for(;n=o[i++];)r=m.propFix[n]||n,m.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&m.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),Be={set:function(e,t,n){return!1===t?m.removeAttr(e,n):e.setAttribute(n,n),n}},m.each(m.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=He[t]||m.find.attr;He[t]=function(e,t,r){var i,o;return r||(o=He[t],He[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,He[t]=o),i}}));var We=/^(?:input|select|textarea|button)$/i;m.fn.extend({prop:function(e,t){return j(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[m.propFix[e]||e]}))}}),m.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!m.isXMLDoc(e))&&(t=m.propFix[t]||t,i=m.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||We.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),p.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){m.propFix[this.toLowerCase()]=this}));var qe=/[\t\r\n\f]/g;m.fn.extend({addClass:function(e){var t,n,r,i,o,a,s="string"==typeof e&&e,c=0,l=this.length;if(m.isFunction(e))return this.each((function(t){m(this).addClass(e.call(this,t,this.className))}));if(s)for(t=(e||"").match(L)||[];c<l;c++)if(r=1===(n=this[c]).nodeType&&(n.className?(" "+n.className+" ").replace(qe," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=m.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0===arguments.length||"string"==typeof e&&e,c=0,l=this.length;if(m.isFunction(e))return this.each((function(t){m(this).removeClass(e.call(this,t,this.className))}));if(s)for(t=(e||"").match(L)||[];c<l;c++)if(r=1===(n=this[c]).nodeType&&(n.className?(" "+n.className+" ").replace(qe," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?m.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):m.isFunction(e)?this.each((function(n){m(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var t,r=0,i=m(this),o=e.match(L)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else"undefined"!==n&&"boolean"!==n||(this.className&&M.set(this,"__className__",this.className),this.className=this.className||!1===e?"":M.get(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(qe," ").indexOf(t)>=0)return!0;return!1}});var ze=/\r/g;m.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m.isFunction(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,m(this).val()):e)?i="":"number"==typeof i?i+="":m.isArray(i)&&(i=m.map(i,(function(e){return null==e?"":e+""}))),(t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=m.valHooks[i.type]||m.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ze,""):null==n?"":n:void 0}}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:m.trim(m.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,c=i<0?s:o?i:0;c<s;c++)if(((n=r[c]).selected||c===i)&&(p.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!m.nodeName(n.parentNode,"optgroup"))){if(t=m(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=m.makeArray(t),a=i.length;a--;)((r=i[a]).selected=m.inArray(r.value,o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),m.each(["radio","checkbox"],(function(){m.valHooks[this]={set:function(e,t){if(m.isArray(t))return e.checked=m.inArray(m(e).val(),t)>=0}},p.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){m.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),m.fn.extend({size:function(){return this.length}}),m.fn.andSelf=m.fn.addBack,m.each({margin:"",padding:"",border:"Width"},(function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+G[r]+t]=o[r]||o[r-2]||o[0];return i}},Pe.test(e)||(m.cssHooks[e+t].set=Ve)})),m.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},m.expr.filters.visible=function(e){return!m.expr.filters.hidden(e)};var Ge=/%20/g,Ye=/\[\]$/;function Qe(e,t,n,r){var i;if(m.isArray(t))m.each(t,(function(t,i){n||Ye.test(e)?r(e,i):Qe(e+"["+("object"==typeof i?t:"")+"]",i,n,r)}));else if(n||"object"!==m.type(t))r(e,t);else for(i in t)Qe(e+"["+i+"]",t[i],n,r)}m.param=function(e,t){var n,r=[],i=function(e,t){t=m.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(e)||e.nquery&&!m.isPlainObject(e))m.each(e,(function(){i(this.name,this.value)}));else for(n in e)Qe(n,e[n],t,i);return r.join("&").replace(Ge,"+")},m.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||h;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=m.buildFragment([e],t,i),i&&i.length&&m(i).remove(),m.merge([],r.childNodes))};var Ke=n.document.documentElement;function Xe(e){return m.isWindow(e)?e:9===e.nodeType&&e.defaultView}m.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,l=m.css(e,"position"),u=m(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),o=m.css(e,"top"),c=m.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+c).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),m.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):u.css(d)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){m.offset.setOffset(this,e,t)}));var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,m.contains(t,r)?(void 0!==r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=Xe(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===m.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),m.nodeName(e[0],"html")||(r=e.offset()),r.top+=m.css(e[0],"borderTopWidth",!0),r.left+=m.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-m.css(n,"marginTop",!0),left:t.left-r.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Ke;e&&!m.nodeName(e,"html")&&"static"===m.css(e,"position");)e=e.offsetParent;return e||Ke}))}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var r="pageYOffset"===t;m.fn[e]=function(i){return j(this,(function(e,i,o){var a=Xe(e);if(void 0===o)return a?a[t]:e[i];a?a.scrollTo(r?n.pageXOffset:o,r?o:n.pageYOffset):e[i]=o}),e,i,arguments.length,null)}})),m.each(["top","left"],(function(e,t){m.cssHooks[t]=Oe(p.pixelPosition,(function(e,n){if(n)return n=Ce(e,t),Ae.test(n)?m(e).position()[t]+"px":n}))})),m.each({Height:"height",Width:"width"},(function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){m.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return j(this,(function(t,n,r){var i;return m.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?m.css(t,n,a):m.style(t,n,r,a)}),t,o?r:void 0,o,null)}}))})),void 0===(r=function(){return m}.apply(t,[]))||(e.exports=r);var Je=n.nQuery,Ze=n.$;return m.noConflict=function(e){return n.$===m&&(n.$=Ze),e&&n.nQuery===m&&(n.nQuery=Je),m},void 0===i&&(n.nQuery=n.$=m),n.nQuery=m,m},"object"==typeof e.exports?e.exports=i.document?o(i,!0):function(e){if(!e.document)throw new Error("nQuery requires a window with a document");return o(e)}:o(i)},function(e,t){window.ntvLoadStart=(new Date).getTime()},function(e,t,n){"use strict";e.exports=n(5).polyfill()},function(e,t,n){(function(t,n){var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,o=void 0,a=void 0,s=function(e,t){h[i]=e,h[i+1]=t,2===(i+=2)&&(a?a(v):w())},c="undefined"!=typeof window?window:void 0,l=c||{},u=l.MutationObserver||l.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(v,1)}}var h=new Array(1e3);function v(){for(var e=0;e<i;e+=2)(0,h[e])(h[e+1]),h[e]=void 0,h[e+1]=void 0;i=0}var m,y,g,b,w=void 0;function E(e,t){var n=this,r=new this.constructor(k);void 0===r[S]&&D(r);var i=n._state;if(i){var o=arguments[i-1];s((function(){return x(i,r,o,n._result)}))}else _(n,r,e,t);return r}function T(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(k);return A(t,e),t}d?w=function(){return t.nextTick(v)}:u?(y=0,g=new u(v),b=document.createTextNode(""),g.observe(b,{characterData:!0}),w=function(){b.data=y=++y%2}):f?((m=new MessageChannel).port1.onmessage=v,w=function(){return m.port2.postMessage(0)}):w=void 0===c?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(v)}:p()}catch(e){return p()}}():p();var S=Math.random().toString(36).substring(2);function k(){}function P(t,n,r){n.constructor===t.constructor&&r===E&&n.constructor.resolve===T?function(e,t){1===t._state?C(e,t._result):2===t._state?O(e,t._result):_(t,void 0,(function(t){return A(e,t)}),(function(t){return O(e,t)}))}(t,n):void 0===r?C(t,n):e(r)?function(e,t,n){s((function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?A(e,n):C(e,n))}),(function(t){r||(r=!0,O(e,t))}),e._label);!r&&i&&(r=!0,O(e,i))}),e)}(t,n,r):C(t,n)}function A(e,t){if(e===t)O(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)C(e,t);else{var n=void 0;try{n=t.then}catch(t){return void O(e,t)}P(e,t,n)}var r,i}function I(e){e._onerror&&e._onerror(e._result),R(e)}function C(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(R,e))}function O(e,t){void 0===e._state&&(e._state=2,e._result=t,s(I,e))}function _(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=n,i[o+2]=r,0===o&&e._state&&s(R,e)}function R(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?x(n,r,i,o):i(o);e._subscribers.length=0}}function x(t,n,r,i){var o=e(r),a=void 0,s=void 0,c=!0;if(o){try{a=r(i)}catch(e){c=!1,s=e}if(n===a)return void O(n,new TypeError("A promises callback cannot return that same promise."))}else a=i;void 0!==n._state||(o&&c?A(n,a):!1===c?O(n,s):1===t?C(n,a):2===t&&O(n,a))}var L=0;function D(e){e[S]=L++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(k),this.promise[S]||D(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&C(this.promise,this._result))):O(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===T){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===E&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===j){var s=new n(k);a?O(s,o):P(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?O(r,n):this._result[t]=n),0===this._remaining&&C(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;_(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),j=function(){function t(e){this[S]=L++,this._result=this._state=void 0,this._subscribers=[],k!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){A(e,t)}),(function(t){O(e,t)}))}catch(t){O(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return j.prototype.then=E,j.all=function(e){return new N(this,e).promise},j.race=function(e){var t=this;return r(e)?new t((function(n,r){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},j.resolve=T,j.reject=function(e){var t=new this(k);return O(t,e),t},j._setScheduler=function(e){a=e},j._setAsap=function(e){s=e},j._asap=s,j.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=j},j.Promise=j,j},e.exports=r()}).call(this,n(6),n(7))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){function n(e,t,n){return this.each((function(){var r,i,o=this.firstChild,a=[];if(o)do{3===o.nodeType&&(i=(r=o.nodeValue).replace(e,t))!==r&&(!n&&/</.test(i)?($(o).before(i),a.push(o)):o.nodeValue=i)}while(o=o.nextSibling);a.length&&$(a).remove()}))}function r(e,t){for(var n=e,r=0;e=e[t];)n.tagName==e.tagName&&r++;return r}function i(e,t,n){var i,o=r(e,n);if("odd"==t||"even"==t)i=2,o-=!("odd"==t);else{var a=t.indexOf("n");a>-1?(i=parseInt(t,10)||parseInt(t.substring(0,a)+"1",10),o-=(parseInt(t.substring(a+1),10)||0)-1):(i=o+1,o-=parseInt(t,10)-1)}return(i<0?o<=0:o>=0)&&o%i==0}window.ntv=window.ntv||{},ntv.query=window.nQuery.noConflict(!0),window.prdom={query:ntv.query};var o={"first-of-type":function(e){return 0==r(e,"previousSibling")},"last-of-type":function(e){return 0==r(e,"nextSibling")},"only-of-type":function(e){return o["first-of-type"](e)&&o["last-of-type"](e)},"nth-of-type":function(e,t,n){return i(e,n[3],"previousSibling")},"nth-last-of-type":function(e,t,n){return i(e,n[3],"nextSibling")}};!function(e){e.fn.replaceText=n,e.extend(e.expr[":"],o)}(ntv.query)},function(e,t){!function(e){!function(e,t){!function(e,t){function n(t,n){var r,i,o,a=e.Events,s=e.Util,c=(0,e.query)(s.getTopWindow()),l=(s.is,t),u=n.adID,d=a.PubSub,f=a.Types.Tracking;function p(e,t){var n,a=function(e){var t;return{eventType:(t=e.type.split(":"))[2],contentType:t[3],NTVEvent:t[4]}}(e);if(n=a.contentType,!r&&n&&(r=n),function(e){return r==e}(a.contentType))switch(a.NTVEvent){case"click":c.trigger("ntvVideoClick",[u,e.data.volume]);break;case"videoStart":if(void 0!==i||void 0!==o||"boolean"==typeof i&&"boolean"==typeof o&&i&&!o)return;i=!0,o=!1,c.trigger("ntvVideoStart",[u,e.data.volume]);break;case"videoEnd":if("boolean"==typeof i&&"boolean"==typeof o&&!i&&o)return;i=!1,o=!0,c.trigger("ntvVideoComplete",[u,e.data.volume]);break;case"pause":c.trigger("ntvVideoPause",[u,e.data.volume]);break;case"mute":case"unmute":case"volumechange":c.trigger("ntvVideoVolumeChange",[u,e.data.volume]);break;case"resume":c.trigger("ntvVideoResume",[u,e.data.volume]);break;case"prerollAdCancel":c.trigger("ntvVideoCanceled",[u,e.data.volume]);break;case"percentile":switch(e.data.NTVEvent){case"25":c.trigger("ntvVideoFirstQuartile",[u,e.data.volume]);break;case"50":c.trigger("ntvVideoMidpoint",[u,e.data.volume]);break;case"75":c.trigger("ntvVideoThirdQuartile",[u,e.data.volume])}}}return{registerMOATEvents:function(){for(var t in f)for(var n in f[t])for(var r in f[t][n])d.subscribe(l.toString()+":"+e.Events.Types.Tracking[t][n][r],p);return this}}}t.MOAT=function(e,t){n(e,t).registerMOATEvents()}}(e,e.Video.Tracker||(e.Video.Tracker={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={}))},function(e,t){!function(e){!function(e,t){!function(e,t){function n(t,n){var r,i,o=!0,a=e.Events,s=e.Util,c=(s.is,[[],[],[]]),l=[],u=[],d=n,f=t,p=e.Events.PubSub,h=a.Types.Tracking;function v(t,n,r){var i,o;(t.firstPartyTrackingJoined.indexOf("68")>=0||t.firstPartyTrackingJoined.indexOf("845")>=0)&&r((function(e){e.state.viewableImpressionFired=!0})),e.Tracking.Record((i=t.firstPartyTrackingJoined,o=d.baseTrackingUrl+i,(d.adVersionPlacement.length>0||d.adID>=1e5)&&(o+="&"+e.CONSTS.AVP+"="+d.adVersionPlacement),(o+=s.setURLCache())+t.qs),t.third||"",1,null,n)}function m(e){if("object"!=typeof e||!d[e.eventType]||!d[e.eventType][e.contentType])return[];var t,n=d[e.eventType][e.contentType][e.progressSection]||d[e.eventType][e.contentType],r=[];if(!(n=n[e.NTVEvent]))return[];for(var i=0;i<n.length;i++)d.map[n[i]]&&((t=d.map[n[i]]).firstPartyTrackingJoined=t.first.join(","),r.push(t));return r}function y(e,t,n){setTimeout((function(){!function e(t,n,r,i,o){o[t]&&(1e3*i<=o[t].totalTime+o[t].duration()?(o.eventType=n,o.progressSection=r,o.NTVEvent=i,w(o,!0)):setTimeout((function(){e(t,n,r,i,o)}),100))}("tos_w_hidden","progress","userActiveCumulative",e,t)}),0)}function g(e){if(-1==u.indexOf(e.contentType)){var t=d.progress[e.contentType];!function(e,t){var n=0,r=e.length;do{if(e[n])for(var i in e[n])y(i,t)}while(++n<r)}([t.userActiveCumulative,t.cumulative],e),u.push(e.contentType)}}function b(e){e.playing&&("percentile"!==e.progressSection?(!function(e){var t=d.progress[e.contentType].position;for(var n in t)parseInt(n)<=Math.round(e.currentTime)&&e.currentTime!=e.duration&&Math.round(e.currentTime)<parseInt(n)+1&&(e.eventType="progress",e.progressSection="position",e.NTVEvent=n,w(e,!0))}(e),function(e){o?(r=l[l.length-1],o=!1):r=i?new Date:r||new Date;var t,n=(t=r,(new Date-t)/1e3),a=d.progress[e.contentType].continuous;for(var s in a)parseInt(s)<=n&&(e.eventType="progress",e.progressSection="continuous",e.NTVEvent=s,w(e,!0))}(e),g(e)):w(e,!0))}function w(e,t){var n=t?e:function(e){var t;return"object"==typeof e.data&&e.data.eventType&&"progress"==e.data.eventType?b(e.data):{eventType:(t=e.type.split(":"))[2],contentType:t[3],NTVEvent:t[4]}}(e);if(n){var r=[],i=[],o="",a=n instanceof Array?n:n instanceof Object?m.call(this,n):[];if(a.length){for(var s=0;s<a.length;s++)null===a[s].freq||c[a[s].freq].length&&-1!=c[a[s].freq].indexOf(a[s].firstPartyTrackingJoined)||(r.push(a[s].firstPartyTrackingJoined),a[s].third&&i.push(a[s].third),a[s].qs&&(o+=a[s].qs),a[s].rtv&&!isNaN(n.returnedMetricValue)&&(o+="&ntv_mv="+n.returnedMetricValue.toString(),delete n.returnedMetricValue),e.duration&&e.currentTime&&(o+="&ntv_duration="+e.duration+"&ntv_position="+e.currentTime),a[s].freq&&c[a[s].freq].push(a[s].firstPartyTrackingJoined));if(r.length){var l={placementID:d.placementID,adID:d.adID};v({firstPartyTrackingJoined:r.join(","),third:i.join(","),qs:o},l,e.callback)}}}}return{registerNativoEvents:function(){for(var t in h)for(var n in h[t])for(var r in h[t][n])p.subscribe(f.toString()+":"+e.Events.Types.Tracking[t][n][r],w);return this},bindTrackerHandlersToEvents:function(){return p.subscribe(f.toString()+":"+h.Events.Content.VIDEO_END,(function(){i=void 0,c[2].length=0})),p.subscribe(f.toString()+":"+h.Events.Content.VIDEO_START,(function(){i=!1,l.push(new Date)})),p.subscribe(f.toString()+":"+h.Events.Content.RESUME,(function(){i=!1,o=!0,l.push(new Date)})),p.subscribe(f.toString()+":"+h.Events.Content.CLICK,(function(){void 0===o&&(o=!0)})),p.subscribe(f.toString()+":"+h.Events.Content.PAUSE,(function(){i=!0})),p.subscribe(f.toString()+":"+h.Events.Preroll.VIDEO_START,(function(){0===l.length&&l.push(new Date)})),this}}}t.Nativo=function(e,t){n(e,t).registerNativoEvents().bindTrackerHandlersToEvents()}}(e,e.Video.Tracker||(e.Video.Tracker={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={}))},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"toDomElement",(function(){return m})),n.d(r,"isElement",(function(){return y})),n.d(r,"createScriptEvaluatingFragmentFromHTMLString",(function(){return g})),n.d(r,"htmlStringToFragment",(function(){return b})),n.d(r,"htmlStringToElement",(function(){return w})),n.d(r,"hide",(function(){return E})),n.d(r,"unhide",(function(){return T})),n.d(r,"show",(function(){return S})),n.d(r,"bindClick",(function(){return k})),n.d(r,"getFirstNonZeroHeightAncestor",(function(){return P})),n.d(r,"onImageLoad",(function(){return A}));n(3),n(4);window.performance||(window.performance={timing:{navigationStart:+new Date}}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},writable:!0,configurable:!0});n(8);var i="TOUT",o="topWindowScroll",a="topWindowReady",s="contentModalScroll",c={DOMAIN:"adserve.postrelease.com",JDOMAIN:"jadserve.postrelease.com",ASSETS_DOMAIN:"ntvassets-a.akamaihd.net",ASSETS_DOMAIN_DEV:"devntvassets-a.akamaihd.net",RESIZER_DOMAIN:"ntvcld-a.akamaihd.net",SCRIPTS_DOMAIN:"s.ntv.io",ASSETS_PREFIX:"s",VIS_ID:"prx_visitor",REQ_REDIRECT:"prx_r",REQ_KEY:"prx_rk",REQ_URL:"prx_url",REQ_URL_NTV:"ntv_url",PAGE_REF:"prx_referrer",IS_MOBILE:"prx_mobile",AT:"ntv_at",SUB_AT:"ntv_sat",FRAUD:"ntv_fr",CPM:"ntv_cpm",VALUE:"ntv_v",TOTAL_VALUE:"ntv_tv",US_PRIVACY:"us_privacy",OPT_OUT_SOURCE:"ntv_oos",US_PRIVACY_COOKIE:"ntv_as_us_privacy",GDPR:"gdpr",GDPR_QS_KEY:"ntv_gdpr_consent",GDPR_VENDOR_ID:263,ABA:"prx_adp",ARTICLE_TMPL:"prx_t",AVP:"ntv_a",ADV_ID:"prx_adv",PLC_ID:"prx_pl",ADV_FILTER:"prx_avtf",CMP_FILTER:"prx_ctf",AD_FILTER:"ntv_atf",PTD_FILTER:"ntv_ptd",REQ_OPTIONS:"prx_ro",RENDER_MODE:"prx_rm",OVERIDE_ARTICLE:"ntv_oat",PASS_PREVIEW:"ntv_tp",IP:"prx_userip",FORCE_JAVA:"ntv_jat",IS_TOUT:"ntv_it",FORCE_NET:"ntv_net",DEBUG_MODE:"ntv_dm",CLIENT_OPTIONS:"ntv_co",LEGACY_VIDEO_SUPPORT:"ntv_lvs",REDIRECT:"ntv_r",TRACK_MEDIATION:"ntv_med",SEEN_ADS:"ntv_sa",KEY_VALUE_PAIRS:"ntv_kv",PUBLISHER_IN_IFRAME:"ntv_iw",EXPERIMENT:"ntv_eg",SLIDE_ID:"ntv_sl",YOUTUBE_PLAYER:1,NATIVO_PLAYER:2,VAST_PLAYER:3,MAX_INT32_VALUE:2147483647,PB_ATT:806,PB_CPM_IMP:807,PB_NOT_FIL:808,PB_VCPM_IMP:809,PB_ATT_SKIP_LOG:812,USER_SESSION_ID:"ntv_usid",SESSION_PL_ID:"ntv_pl",USER_SESSION_DURATION:"ntv_usd",RESPONSIVENESS_1OO:"ntv_r1",RESPONSIVENESS_75:"ntv_r2",RESPONSIVENESS_50:"ntv_r3",RESPONSIVENESS_25:"ntv_r4",BEFORE_AUCTION:853,AFTER_AUCTION:854,VIDEO_ID_SELECTOR:"ntvVideo",VIDEO_ID_EDGE_SELECTOR:"prxVideo",NTV_PREFIX:"ntv",EDGE_PREFIX:"prx",NTV_UID:"_ntv_uid",DFP_INIT_LOAD:337,DFP_FIRST_RENDER:335,DFP_TOTAL_AVAILABLE:334,DFP_TOTAL_FILLED:336,CLP_VIEW_DEPTH_25_PERCENT:1016,CLP_VIEW_DEPTH_50_PERCENT:1017,CLP_VIEW_DEPTH_75_PERCENT:1018,CLP_VIEW_DEPTH_100_PERCENT:1019,CLP_VIEW_DEPTH_MAX:1020,CLP_SCROLL_INITIATED:1021,RETRY:"ntv_rtr",CPE_ENGAGEMENT_15s:29,CPE_SCROLL_50:29,CPE_CTA_CLICK:29,TOC_ENGAGEMENT_5S:38,TOC_ENGAGEMENT_15S:24,TOC_ENGAGEMENT_30S:57,CUSTOM_AUDIENCE_VENDOR:"ntv_vid",CUSTOM_AUDIENCE_SEGMENTS:"ntv_ca",CUSTOM_CTA_RANGE_START:1100,CUSTOM_CTA_RANGE_END:1110,CUSTOM_WIDGET_RANGE_START:1110,CUSTOM_WIDGET_RANGE_END:1120,HEAVY_AD_INTERVENTION:32,FLOC_ID:"ntv_floc_id",IFRAME_QS_ID:"ntv_ift",IFRAME_TYPES:{NONE:0,FRIENDLY:1,SAFE_W_API:2,SAFE_NO_API:3},BLOCK_QUERY_SELECTOR:"section.ntv-design-block",AD_LEVEL_TRACKING_PROPERTIES:["toutClick3rdPartyTracking","toutClickTracker","isProgrammatic"],DEPENDENCIES:{GALLERY_JS:"https://s.ntv.io/js/gallery.min.js",GALLERY_CSS:"https://s.ntv.io/css/gallery.css",STORIES_AD_CSS:"https://s.ntv.io/css/storiesAd.css",MODAL_CSS:"https://s.ntv.io/css/ntvModal.css"},COMPONENT_CLICK_EVENT:42,LIGHTBOX_CLICK_EVENT:44,LINK_CLICK_EVENT:45,PAGE_VIEW_EVENT:48,VIDEO_PLAY_EVENT:49,LIVE_RAMP_EIDS:"ntv_pb_eid",GPP:"gpp",GPP_STRING_KEY:"ntv_gpp_consent"},l=h();function u(e,t){return e.onload=t}function d(e,t){return e.onerror=t}function f(e,t,n){var r="".concat(e,"=").concat(t);if(!isNaN(n)){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),r+=";expires="+i.toUTCString()}r+=";path=/";try{document.cookie=r}catch(e){}}function p(e){try{var t=e+"=",n=document.cookie;if(n)for(var r=n.split(";"),i=0;i<r.length;i++){for(var o=r[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t)){var a=o.substring(t.length,o.length);return f(e,a,365),a}}return""}catch(e){return""}}function h(){for(var e=window,t=window;e.parent&&e!=e.parent;)try{(e=e.parent).document&&(t=e)}catch(e){}return t}l.onFocusEvents||(l.onFocusEvents=[]);var v=l.onFocusEvents;function m(e){if(e)return e instanceof DocumentFragment?e.firstElementChild:(e.length&&e.length>0&&(e=e[0]),y(e)?e:void 0)}function y(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function g(e){return document.createRange().createContextualFragment(e)}function b(e){return g(e)}function w(e){return b(e).firstElementChild}function E(e){var t=m(e),n=t.getAttribute("style");t.setAttribute("data-ntv-style-cache",n),t.setAttribute("style","\n    border: 0px;\n    vertical-align: bottom;\n    width: 0px !important;\n    height: 0px !important;\n    display: none !important;\n    visibility: hidden !important;\n  ".replace("\n"," ")),t.setAttribute("data-ntv-hidden","")}function T(e){var t=m(e),n=t.getAttribute("data-ntv-style-cache");n&&(t.removeAttribute("data-ntv-style-cache"),t.setAttribute("style",n),t.removeAttribute("data-ntv-hidden",""))}var S=T;function k(e,t){if(e||!t)try{var n=D.domQuery(e);if(!n)return void"bindClick() didn't find a valid element in the document for selector: \"".concat(e,'"');n.addEventListener("click",(function(){D.appendImage(t)}))}catch(e){D.postError(e)}}function P(e){var t=e.parentNode;if("BODY"!==t.tagName&&null!=t)return t.clientHeight>0?t:P(t)}function A(e,t){if(e.complete)t();else{e.addEventListener("load",(function n(){t(),e.removeEventListener("load",n)}))}}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var R=[],x={},L=window,D={getBaseUrl:function(){return D.getProtocol()+"//"+c.JDOMAIN+"/trk.gif?"},is:function(){return this.translateType=function(e){switch(e){case"u":return"undefined";case"b":return"boolean";case"s":return"string";case"f":return"function";case"n":return"number";case"o":return"object";default:return"undefined"}},"string"==typeof arguments[0]?typeof arguments[1]==this.translateType(arguments[0]):arguments[0]instanceof arguments[1]},getProtocol(){arguments.length>0&&void 0!==arguments[0]||window;return"https:"},hasWebProtocol:e=>0===e.indexOf("http://")||0===e.indexOf("https://"),applyProtocolToUrl:function(e){if(0!=e.indexOf("http")){var t=D.getProtocol();0!=e.indexOf("//")&&(t+="//"),e=t+e}return e},isFirefox:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},isChrome:function(){return navigator.userAgent.toLowerCase().indexOf("chrome")>-1},isEdge:function(){return navigator.userAgent.indexOf("Edge")>=0},runWithFirefoxIframeProtection:function(e,t,n){t(),n&&ntv.query(e).one("load",(function(){n()}))},match:function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>=0)return!0;return!1},getRandomInt:function(e,t){return Math.floor(Math.random()*((t||c.MAX_INT32_VALUE)-(e||0)))+(e||0)},getNodePositionAndDimensions:function(e){var t=e.getBoundingClientRect(),n={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y};return n.X=e.offsetLeft,n.Y=e.offsetTop,n},getElementDimensions:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e){var n,r=ntv.query,i=Math.floor,o=0,a=0;("IMG"!=(e=e[0]?e[0]:e).nodeName||e.complete||"prx_disclaimer_iframe"==e.id)&&(o=e.hasAttribute("height")?e.getAttribute("height"):e.style.height||e.clientHeight||0,a=e.hasAttribute("width")?e.getAttribute("width"):e.style.width||e.clientWidth||0,"string"==typeof o&&(o=o.indexOf("%")>0?r(e).height():parseInt(o.replace(/\g/gi,""))),"string"==typeof a&&(a=a.indexOf("%")>0?r(e).width():parseInt(a.replace(/\g/gi,""))),o&&!isNaN(o)||(o=r(e).height()),a&&!isNaN(a)||(a=r(e).width())),t&&"IMG"===e.nodeName&&(a=e.naturalWidth,o=e.naturalHeight);var s=function(){return n||(n=e.getBoundingClientRect()),n};return{w:i(a<0?s().width:a),h:i(o<0?s().height:o),aspectRatio:a/o}}(e)},setElementDimensions:function(e,t,n){if(!(isNaN(t.w)||isNaN(t.h)||t.w<=1||t.h<=1)){var r=ntv.query,i=r(e).attr("ntv-width"),o=r(e).attr("ntv-height");t.h>0&&t.w>0&&(i||(i=t.w,r(e).attr("ntv-width",i)),o||(o=t.h,r(e).attr("ntv-height",o)));var a=n?Math.min(n,i):i,s=o*a/i;(a!=t.w||s!=t.h&&a>0)&&(a+="px",s+="px",r(e).css("height",s).css("width",a))}},getScrollPos:function(e){var t=window,n=t.window,r=t.document,i=r.documentElement,o=r.body;return{top:Math.floor(n.pageYOffset?n.pageYOffset:i.scrollTop?i.scrollTop:o.scrollTop),left:Math.floor(n.pageXOffset?n.pageXOffset:i.scrollLeft?i.scrollLeft:o.scrollLeft),time:new Date,bottom:e?e.target.scrollingElement.scrollHeight==e.target.scrollingElement.offsetHeight+n.pageYOffset:null}},getSampleTimeArray:function(e){for(var t=[],n=0,r=0,i=0;i<e;)r+=2e3+90*n,t.push(r),n++,i+=r;return t},canExecute:function(e,t,n){return new Date-R["lastCheck"+t]<n?(0==R["missedCheck"+t]&&(R["missedCheck"+t]++,setTimeout(e,n)),!1):(R["lastCheck"+t]=new Date,R["missedCheck"+t]=0,!0)},appendImageUtil:function(e,t,n){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=t.createElement("img");return n.setAttribute("width",1),n.setAttribute("height",1),n.src=e,n}(e,l.document);u(r,(function(){u(r,null),d(r,null),t&&t()})),d(r,(function(){u(r,null),d(r,null),n&&n()}))},decodeIfEncrypt(e){var t=!1,n=e,r="";if(D.adBlocker&&e.indexOf(D.adBlockerDomain)>=0)try{var i=e.split("/");(n=D.decryptUrl(i[i.length-1])).startsWith("proxyTracking/")?n=n.replace("proxyTracking/",""):n.startsWith("https://proxyTracking/")&&(n=n.replace("https://proxyTracking/","")),t=!0,r=i[i.length-2]}catch(e){}return{decodedUrl:n,isDecoded:t,domain:r}},appendImage:function(e,t,n,r){if(null!=e){var i=ntv.PostRelease,o=!1,a=D.decodeIfEncrypt(e),s=a.decodedUrl;a.isDecoded,a.domain;(e=s).indexOf(D.getServerDomain())>0&&!t&&(o=!0,e.indexOf(c.PAGE_REF)<0&&document.referrer&&(e+="&"+c.PAGE_REF+"="+encodeURIComponent(document.referrer)),i&&i.tout&&(e+="&"+c.IS_TOUT));var l=function(e,t){var n="ntv_at="+t;return e.indexOf(n)>0&&(i.pageInventoryTracked||(i.pageInventoryTracked=!0,e=e.replace(n,n+",302"))),e};e=l(e,"46"),e=l(e,"303"),e=D.applyProtocolToUrl(e);var u=null;if(!i.firstPartyTracked&&o&&(u=function(){i.firstPartyTracked=!0}),t)return void ntv.Tracking.Record('<img src="'+e+'" />');D.appendImageUtil(e,(function(){null!=u&&u(),n&&n()}),(function(){r&&r()}))}},appendIframe:function(e,t){var n=document.createElement("iframe");n.src=e,n.addEventListener("load",(function(){n.parentElement.removeChild(n),t()})),document.body.appendChild(n)},removeElementFromArray:function(e,t){for(var n=-1,r=0;r<e.length;r++)t==e[r]&&(n=r);n>=0&&e.splice(n,1)},copyProperties:function(e,t){for(var n in e)"function"!=typeof e[n]&&(t[n]=e[n])},isNotValidHeadlineLink:function(e){var t=e.attr("class");return-1==(t=t||"").indexOf("prx_viewable_title")&&-1==t.indexOf("ntv-headline-anchor")||"#"==e.attr("href")||!e.attr("href")},xorWithKey:function(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t[r%t.length]^e.charCodeAt(r));return n},arrayBufferToBase64:function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;i<r;i++)t+=String.fromCharCode(n[i]);var o=btoa(t);return o=(o=o.replace(/[+]/g,"-")).replace(/[/]/g,"_")},encryptUrl(e,t){var n=[72,-124,36];t?n.push(50):n.push(new Date/864e5&255);var r=D.xorWithKey(e,n),i=n.concat(r);return this.arrayBufferToBase64(i)},decryptUrl(e){e=(e=e.replace(/[-]/g,"+")).replace(/[_]/g,"/");var t=atob(e),n=[];for(a=0;a<t.length;a++)n[a]=t.charCodeAt(a);var r=n.slice(0,4);e=t.substring(4);for(var i=D.xorWithKey(e,r),o="",a=0;a<i.length;a++)o+=String.fromCharCode(i[a]);return o},overrideAndEncodeRequest:function(e,t,n){var r=t.indexOf(e),i=t.substring(r+e.length+1),o="";return n?o=c.ASSETS_PREFIX:i=D.encryptUrl(i),t.substring(0,r)+o+D.adBlockerDomain+"/"+i},adBlockerValidation:function(e,t,n){return D.adBlocker&&-1==e.indexOf("data:")&&(e="proxyTracking/"+(e=D.decodeIfEncrypt(e).decodedUrl),e="//"+D.adBlockerDomain+"/"+D.encryptUrl(e)),e},appendScript:function(e,t,n,r,i){var o=(r=r||document).getElementsByTagName("head")[0]||r.documentElement;return D.appendScriptToContext(e,o,{id:n,doc:r,onReadyEvent:t,isSafeTracking:i})},appendScriptToContext(e,t,n){if(e&&this.is("s",e)&&t&&t.appendChild){var r=n.id,i=n.doc,o=void 0===i?document:i,a=n.onReadyEvent,s=n.isSafeTracking,c=D.domQuery("#".concat(r),t);if(c)return c;var l=D.decodeIfEncrypt(e),u=l.decodedUrl,d=l.isDecoded,f=l.domain;u=D.applyProtocolToUrl(u);var p=o.createElement("script");return p.type="text/javascript",p.src=D.adBlockerValidation(u,d,f),r&&(p.id=r),null!=a&&(p.readyState?p.onreadystatechange=function(){"complete"!=o.readyState&&"loaded"!=o.readyState||a(p)}:p.onload=function(){a(p)}),s||t.appendChild(p),p}},getServerDomain:function(){return D.adBlocker&&D.adBlockerDomain!==window.location.hostname?D.adBlockerDomain:c.JDOMAIN},buildImageResizerStyle(e,t,n,r,i){var o="";if(n>0&&(o+="w_"+Math.round(n)+","),r>0&&(o+="h_"+Math.round(r)+","),t)switch(t){case"crop":o+="c_fill";break;case"max":o+="c_fit";break;case"padding":case"pad":o+="c_pad"}return i&&(o+=",g_auto:text"),o+=",f_auto",e.toLowerCase().indexOf(".gif")<0&&(o+=",e_sharpen:80"),e.toLowerCase().indexOf(".png")>0&&(o+=",fl_lossy"),o},scaleToDeviceRatio:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=window.devicePixelRatio?e*window.devicePixelRatio:e,e=t?Math.round(e):e},applyImageResizer:function(e,t,n,r,i){if(n=this.scaleToDeviceRatio(n)||n,r=this.scaleToDeviceRatio(r)||r,D.adBlocker&&ntv.PostRelease.setting.isEdge){var o="nativo-inc-res.cloudinary.com/image/upload/"+D.buildImageResizerStyle(e,t,n,r,i)+"/assets",a=D.decodeIfEncrypt(e).decodedUrl;if(-1==a.indexOf("assets.postrelease.com")&&-1==a.indexOf(c.ASSETS_DOMAIN))return a;var s=a.replace(c.ASSETS_DOMAIN,o).replace(/(,,)/gi,",");return D.getProtocol()+"//"+D.adBlockerDomain+"/"+D.encryptUrl("proxyImage/"+s,!0)}var l="ntvcld-a.akamaihd.net/image/upload/"+D.buildImageResizerStyle(e,t,n,r,i)+"/assets";return this.applyResizerUrlReplacement(e,l).replace(/(,,)/gi,",")},applyImageResizerFlashTalking:function(e,t,n,r,i){if(n=this.scaleToDeviceRatio(n)||n,r=this.scaleToDeviceRatio(r)||r,D.adBlocker&&ntv.PostRelease.setting.isEdge){var o="//nativo-inc-res.cloudinary.com/image/fetch/"+D.buildImageResizerStyle(e,t,n,r,i),a=D.decodeIfEncrypt(e).decodedUrl,s=o+"/"+encodeURIComponent(a);return D.getProtocol()+"//"+D.adBlockerDomain+"/"+D.encryptUrl("proxyImage/"+s,!0)}var c="//ntvcld-a.akamaihd.net/image/fetch/"+D.buildImageResizerStyle(e,t,n,r,i);return D.getProtocol()+c+"/"+encodeURIComponent(e)},applyResizerUrlReplacement(e,t){var n;return(n=e.replace("assets.postrelease.com",t))!=e?n:(n=e.replace(c.ASSETS_DOMAIN_DEV,t))!=e?n=n.replace("/assets/","/devassets/"):e.replace(c.ASSETS_DOMAIN,t)},isAndroidTablet:function(){return navigator.userAgent.match(/Android/i)&&!navigator.userAgent.match(/Mobile/i)},isAndroidPhone:function(){return navigator.userAgent.match(/Android/i)&&navigator.userAgent.match(/Mobile/i)},isiOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isMobile:function(){return D.isiOS()||D.isAndroidTablet()},writeIframe:function(e,t,n,r){var i,o="<html ".concat(t,">\n      <head>\n        ").concat(n,"\n      </head>\n      <body>\n        ").concat(r,"\n      </body>\n    </html>");if(!e)return o;try{if("IFRAME"!==(i=m(e)).nodeName)throw new Error("Not a valid Iframe")}catch(e){return void D.postError(new Error("util.writeIframe failed. No valid Iframe target"))}var a=i.contentWindow.document;return a&&(D.isEdge()||a.open(),a.write(o),D.isEdge()||a.close()),a},ntvExtends:function(e,t){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},ntvAppendScript:function(e,t,n,r){return D.appendScript(e,t,n,r)},ntvAppendPixelImage:function(e){return D.appendImage(e)},ntvAppendStylesheet:function(e,t,n,r){return D.appendStylesheet(e,t,n,r)},appendStylesheet:function(e,t,n,r){var i=(n=n||document).getElementsByTagName("head")[0]||n.documentElement||n;return D.appendStylesheetToContext(t,i,{id:e,onComplete:r})},appendStylesheetToContext(e,t,n){if(e&&this.is("s",e)&&t&&t.appendChild){var r=n.id,i=n.onComplete,o=void 0===i?function(){}:i,a=n.doc,s=void 0===a?document:a,c=D.domQuery("#".concat(r),t);if(c)return c;e=D.applyProtocolToUrl(e),e=D.adBlockerValidation(e);var l=s.createElement("link");return l.type="text/css",l.rel="stylesheet",l.href=e,r&&(l.id=r),l.addEventListener("load",(function(){o(l)}),{once:!0}),t.appendChild(l),l}},ntvApplyImageResizer:function(e){return D.applyImageResizer(e)},ntvjQueryInit:function(e){e()},ntvXDomainRequest:function(e){var t;(t=window.XDomainRequest?new window.XDomainRequest:window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).open("GET",e,!1),t.send()},ntvRegexEscape:function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},ntvTrim:function(e){return e.replace(/^\s+|\s+$/gm,"")},ntvHexToRgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},ntvInitOnFocusTracking:function(){var e="hidden",t=l.document;if(e in t)t.addEventListener("visibilitychange",n);else if((e="mozHidden")in t)t.addEventListener("mozvisibilitychange",n);else if((e="webkitHidden")in t)t.addEventListener("webkitvisibilitychange",n);else if((e="msHidden")in t)t.addEventListener("msvisibilitychange",n);else if("onpageshow"in l&&"onpagehide"in l)l.onpageshow=l.onpagehide=n;else{if(!("onfocus"in l)||!("onblur"in l))return void(l.onFocus=!0);l.onfocus=l.onblur=n}function n(t){var n="visible",r="hidden",i={focus:n,focusin:n,pageshow:n,blur:r,focusout:r,pagehide:r};(t=t||window.event).type in i?l.onFocus="visible"==i[t.type]:l.onFocus=!this[e];for(var o=0;o<v.length;o++)v[o]();l.ntv&&ntv.query(l).trigger("ntvOnFocusChange")}n({type:"visible"==document.visibilityState?"focus":"blur"})},getCookie:p,setCookie:f,setURLCache:function(){return"&ord="+(new Date).getTime()},isMatchingDomains:function(e,t){return e.indexOf(t)>-1||t.indexOf(e)>-1},removeQueryParam(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t||!e)return e;var n=/(=)(.*)/gi,r=e.match(t.replace(n,""));if(null!==r)switch(""===e.charAt(r.index+1)||"&"===e.charAt(r.index+1)){case!0:e.replace(t,"");break;default:var i=e.split("?");i[1]=i[1].split("&").filter((function(e){return!e.match(t.replace(n,""))})).join("&"),e=i.join("?")}return e},generateWhitelistQueryString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(!e||!t)return e;var r=/(\?)/.test(e)||/(\#)/.test(e);return t.split(",").forEach((function(t){e=D.removeQueryParam(e,t)})),e=e.concat(r?"&":"?").concat(t.split(",").map((function(e,t,r){return e.concat("=").concat(encodeURIComponent(n)).concat(t<r.length-1?"&":"")})).join(""))},replaceQueryParams(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&t?-1==e.indexOf("?")?e.concat("?").concat(t):(t.split("&").forEach((function(t){e=D.removeQueryParam(e,t)})),e.concat(t?"&"+t:"")):e},filterScripts:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(e instanceof Array&&e.length&&t))return!!n.returnObject&&[];var r=document.createElement("div"),i=0,o=["script","iframe"],a=!1,s=/^((http(s*)(:))*)(\/\/)([^\/]*)/i,c=[];r.innerHTML=t;do{if(o.indexOf(r.children[i].tagName.toLowerCase())>-1&&r.children[i].src)e:for(var l=0;l<e.length;l++)if(s.test(r.children[i].src)){if(s.lastIndex=0,D.isMatchingDomains(s.exec(r.children[i].src)[6],e[l].domain||e[l])){var u=r.children[i].src;D.appendScript(u),s.lastIndex=0,a=!0,c.push({domain:e[l].domain||e[l],domainPosition:l,scriptPosition:i,thirdPartyScript:r.children[i]});break e}s.lastIndex=0}}while(++i<r.children.length);return r=null,n.returnObject?c:a},parseThirdPartyTrackingInfo:function(e,t){return t&&(e=decodeURIComponent(e)),/^((http(s*)(:))*)(\/\/)([^\/]*)/i.test(e)?{type:"url",value:e}:{type:"node",value:e}},appendThirdPartyTracking:function(e,t,n){var r=D.parseThirdPartyTrackingInfo(e,t);return"node"===r.type?D.adBlocker?function(e,t){var n=convertStringToNodes(e),r=[];n.forEach((function(e){r.push(M(e,document.location.hostName))})),r.forEach((function(e){try{j(e,t)}catch(e){}}))}(r.value,n):j(r.value,n):D.appendImage(r.value.replace("[timestamp]",+new Date)),r},handleThirdPartyTracking:function(e,t){var n=[],r=e.isFlashTalking;if(e.length&&!D.is("s",e))for(var i=0;i<e.length;i++)n.push(D.appendThirdPartyTracking(e[i],r,t));else n.push(D.appendThirdPartyTracking(e,r,t));return n},getTopWindow:h,wrap:function(e,t){e.parentNode.insertBefore(t,e),t.appendChild(e)},removeVideoSourceFromHTML:function(e){var t=document.createElement("span");return t.innerHTML=e,t.getElementsByTagName("video")[0].src="",t.getElementsByTagName("video")[0].type="",t.getElementsByTagName("video")[0].innerHTML="",t.innerHTML},generateUniqueId:function(e){var t=0,n="",r=0,i=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",1,2,3,4,5,6,7,8,9,0];if("alphanumeric"===e){do{(i[r=Math.floor(100*Math.random())]||i[r=Math.floor(10*Math.random())])&&(n+=i[r].toString())}while(++t<100&&n.length<30);return n+(new Date).valueOf()}return"number"==typeof e?Math.floor(Math.random()*e+1):Math.floor(1e6*Math.random()+1).toString().concat((new Date).valueOf())},isEmptyVideoTracking:function(e){return D.is("u",e.videoTracking.map)||D.is("o",e.videoTracking.map)&&!Object.keys(e.videoTracking.map).length},generateVideo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=ntv.Video,i=r.Manager,o=D.generateUniqueId();if(e.iframeBody=e.vastAsMainSource?D.removeVideoSourceFromHTML(e.iframeBody):e.iframeBody,e.videoTracking.baseTrackingUrl=e.baseTrackingUrl,e.videoTracking.adVersionPlacement=e.adVersionPlacement,e.videoTracking.adID=e.adID,e.videoTracking.placementID=e.placementID,e.renderingParams.videoNodeId=e.renderingParams.videoNodeId||"ntvVideo",!D.isEmptyVideoTracking(e))for(var a=0,s=n.length;a<s;a++)n[a](o,e.videoTracking);return new i(o,e,t)},trackReplacedNodeViewableImpression(e){var t,n;if("function"==typeof window.MutationObserver){(t=new MutationObserver((function(t){t.forEach((function(t){"childList"==t.type&&(!t.removedNodes.length&&t.addedNodes.length?n=t.addedNodes[0]:t.removedNodes.length&&-1!=Array.prototype.slice.apply(t.removedNodes).indexOf(e.selector)?(e.selector=t.addedNodes.length?t.addedNodes[0]:n,ntv.PostRelease["tracker"+e.placementID]||(ntv.PostRelease["tracker"+e.placementID]=new ntvViewableImpressionTracker(e))):n&&t.removedNodes.length&&-1!=Array.prototype.slice.apply(t.removedNodes).indexOf(n)&&(e.selector=t.addedNodes.length?t.addedNodes[0]:t.nextElementSibling,ntv.PostRelease["tracker"+e.placementID]||(ntv.PostRelease["tracker"+e.placementID]=new ntvViewableImpressionTracker(e))))}))}))).observe(e.selector.parentElement,{childList:!0}),setTimeout((function(){t.disconnect()}),2e3)}return ntv.PostRelease["tracker"+e.placementID]||(ntv.PostRelease["tracker"+e.placementID]=new ntvViewableImpressionTracker(e)),ntv.PostRelease["tracker"+e.placementID]},ajax:function(e){var t=new XMLHttpRequest;t.open(e.method,D.adBlockerValidation(e.url),!0),"POST"==e.method&&t.setRequestHeader("Content-type",e.contentType),e.credentials&&(t.withCredentials=!0),t.onload=function(){e.success&&e.success(function(e){var t;try{t=JSON.parse(e)}catch(e){t={}}return t}(t.responseText))},t.onerror=function(){e.error&&e.error(t.error)},t.send(e.val||null)},keyValuePairGenerator(){var e=[];return function(t,n){if(!D.is("s",t)||!D.is("s",n))return encodeURI(e.join(";"));e.push(t.trim()+"*"+n.trim())}},getKeyValuePairsFromMetaTags(){var e=Array.prototype.slice.apply(document.head.querySelectorAll('meta[name="ntv-kv"]'));if(!e.length)return!1;var t=D.keyValuePairGenerator();return e.forEach((function(e,n,r){var i=e.hasAttribute("ntv-key"),o=i?"ntv-key":"key",a=i?"ntv-values":"values";t(e.getAttribute(o),e.getAttribute(a))})),t()},getKeyValuePairsFromConfig(){if(void 0===L.ntvConfig||!D.is("o",L.ntvConfig)||!D.is("o",L.ntvConfig.keyValues)||!Object.keys(L.ntvConfig.keyValues).length)return!1;var e=L.ntvConfig.keyValues,t=D.keyValuePairGenerator();for(var n in e)t(n,e[n]);return t()},getKeyValuePairs(){var e=this.getKeyValuePairsFromConfig(),t=this.getKeyValuePairsFromMetaTags();return e?t&&(e+=";"+t):e=t,e},isPublisherLoadedInTopWindow(){try{return!(window.self!=window.top||!window.top.document)}catch(e){return!1}},getNodeArea(e){if(D.is("u",e))return 0;var t=window.getComputedStyle(e);return t.width.replace("px","")*t.height.replace("px","")},findLargestChild(e){var t,n=Array.prototype.slice.apply(e.children),r=0,i=D.getNodeArea;if(!n.length||!D.is("f",window.getComputedStyle))return e;do{i(n[r])>0&&i(n[r])>i(t)&&(t=n[r])}while(++r<n.length);return t||e},checkIfExistAndAppendQS:(e,t)=>e?"&"+t+"="+encodeURIComponent(e):"",debounce:function(e,t){var n;return function(r){if(!n)return n=setTimeout((function(){n=void 0}),t),e(r)}},filterOutNodesFromString(e,t){var n=document.createDocumentFragment();return n.appendChild(document.createElement("div")),n.childNodes[0].innerHTML=e.replace(/(<img)/gi,"<no-img"),Array.prototype.slice.apply(n.childNodes[0].querySelectorAll(t)).map((function(e){return e.outerHTML}))},filterOutImpressions(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=D.filterOutNodesFromString(t,"script,iframe"),i=0,o={returnObject:!0,selector:n};return D.filterScripts(e,t,o).forEach((function(e){r.splice(e.scriptPosition-i++,1)})),t=r.join("")},trackImpressionsInViewability(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.length&&t.length?(t instanceof Array?t.forEach((function(t,r,i){i[r]=D.filterOutImpressions(e,t,n)})):t=D.filterOutImpressions(e,t,n),t):t},getQS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D.applyProtocolToUrl(window.location.href),r=arguments.length>3?arguments[3]:void 0;e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i,o=r?new RegExp("[\\?&]"+e+"=([^&#]*)","g"):new RegExp("[\\?&]"+e+"=([^&#]*)");if(r)for(var a;a=o.exec(n);)i=a;else i=o.exec(n);return null==i?t:i[1]},fowardQS(e){var t=D.getQS(e);return""!=t?"&"+e+"="+t:""},removeQueryKeyValuePairs(e,t){e="string"==typeof e?[e]:e;var n=D.qetQueryStringParams(t);return e.forEach((function(e){n.params[e]&&delete n.params[e]})),D.buildQueryStringFromKeyValuePairs(n.params,n.base)},qetQueryStringParams(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href,t={base:"",params:{}};if(!e)return t;var n=e.indexOf("?");if(-1===n)return t.base=e,t;var r=e.substring(0,n);t.base=r;var i,o,a,s,c=e.substring(n+1),l={};return function e(t){t&&0!==t.length&&-1!==(i=t.indexOf("="))&&(o=t.substring(0,i),t=t.substring(i+1),a=t.indexOf("&"),s=t.indexOf("?"),-1===a||a>0&&s>0&&s<a?l[o]=t:(l[o]=t.substring(0,a),e(t.substring(a+1))))}(c),t.params=l,t},buildQueryStringFromKeyValuePairs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object.keys(e);return n.length?n.reduce((function(t,n,r){return(t+=0===r?"":"&")+"".concat(n,"=").concat(e[n])}),"".concat(t,"?")):t},modifyQSParamValues(e,t,n){if(e&&(t||n)){Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);var r=e.split("=")[1].split(",");return n&&(r=r.filter((function(e){return!n.includes(Number(e))})),t=t.filter((function(e){return!n.includes(Number(e))}))),[].concat(C(r),C(t))}},stripLeadingCharacters(e,t){if(D.is("s",e)&&0!==e.length)return t&&e[0]!==t?e:e.substring(1)},getUrlVars(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ntv_",t={},n=window.location;t.hash=n.hash.substring(1);var r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=O(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(new URLSearchParams(n.search).entries());try{for(i.s();!(r=i.n()).done;){var o=r.value;o[0].startsWith(e)&&(t[o[0]]=o[1])}}catch(e){i.e(e)}finally{i.f()}return t},ampModeHandler:e=>!(!e||void 0===window.context.noContentAvailable)&&(window.context.noContentAvailable(),!0),breakOutIframe(){var e=null,t=h();if(window!=t){for(var n,r=window;r.parent!==t&&r!==(n=r.parent);)r=n;t.ntv&&(ntv=t.ntv);for(var i=0;i<t.frames.length;i++)try{t.frames[i]==r&&(e=r.frameElement)}catch(e){}e&&(ntv.win=t)}return ntv.win=ntv.win||window,e},getWindow:e=>e?e.ownerDocument?e.ownerDocument.defaultView:e.defaultView?e.defaultView:e.constructor===Window?e:window:window,stepUpWindowContext(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;try{return e=this.getWindow(e),this.stepUpContext(e)}catch(t){return{context:e,success:!1}}},stepUpContext(e){try{var t=e.parent;return{context:t,success:e!==t}}catch(t){return{context:e,success:!1}}},getContainingIframe(e){var t,n;if(e&&D.isElement(e)&&D.resolveIframeType(e)===c.IFRAME_TYPES.FRIENDLY)return(null==e||null===(t=e.ownerDocument)||void 0===t||null===(n=t.defaultView)||void 0===n?void 0:n.frameElement)||e},isInIframe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;try{return e&&e instanceof Window||(e=D.isElement(e)?e.ownerDocument.defaultView:window),e.self!==e.top}catch(e){return!0}},resolveIframeType(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;try{e&&e instanceof Window||(e=e instanceof Node?e.ownerDocument.defaultView:window);e.parent.document;if(e.self!==e.top)return c.IFRAME_TYPES.FRIENDLY}catch(e){return c.IFRAME_TYPES.SAFE_NO_API}return c.IFRAME_TYPES.NONE},removeSubDomains(){var e=document.domain.split("."),t=e.length;return e[t-2]+"."+e[t-1]},postError(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={name:e.name||"",msg:e.message||"",stack:e.stack||"",href:encodeURIComponent(window.window.location.href)},r=JSON.stringify(n),i=Math.floor(20*Math.random());(t||!x[r]&&1===i)&&(x[r]=!0,D.ajax({method:"post",url:D.getProtocol()+"//"+c.JDOMAIN+"/clientErrorLogging",contentType:"application/json",val:JSON.stringify({errorType:n.name,errorMessage:n.msg,severityLevel:"Error",errorStacktrace:n.stack}),success:function(e){},error:function(e){}}))},setTimeout(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];setTimeout((function(){try{e.apply(null,r)}catch(e){D.postError(e)}}),t)},compose(e){var t=Array.prototype.slice.apply(arguments),n=t.length-1,r=e;if(1===t.length&&!D.is("f",e))return r;do{r=t[n](r)}while(n-->0);return r},getElementOffset(e){for(var t={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight};e.offsetParent;)e=e.offsetParent,t.top+=e.offsetTop,t.left+=e.offsetLeft;return t},buildExperimentUrl:(e,t)=>e?(t?"":"&")+c.EXPERIMENT+"="+e:"",parseCascadeValue(e,t){var n=t.reduce((function(e,t){return e[t]?e[t]:{undefined:!0}}),e);return"object"==typeof n&&n.undefined?null:n},getVideoSelectorName:()=>D.adBlocker?c.VIDEO_ID_EDGE_SELECTOR:c.VIDEO_ID_SELECTOR,getPrefix:()=>D.adBlocker?c.EDGE_PREFIX:c.NTV_PREFIX,attachFirstPartyCookieQS:e=>e?"&ntv_fpc="+e:"",onDOMContentLoaded(e){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()},isOnFocus:function(){return l.onFocus},setOnFocus:function(e){l.onFocus=e},onFocusEvents:v,rewriteAdBlockedAssets:function(){if(D.adBlocker){var e=new URL(D.applyProtocolToUrl(D.adBlockerDomain)).hostname,t=Object.getOwnPropertyDescriptor(Image.prototype,"src");Object.defineProperty(Image.prototype,"src",{set:function(n){try{n.startsWith("//")&&(n="https:"+n);var r=new URL(n).hostname;r.indexOf(e)>-1||n.indexOf("data:")>=0?t.set.call(this,[n]):t.set.call(this,[D.adBlockerValidation(n,!0,r)])}catch(e){t.set.call(this,[n])}}});var n=Element.prototype.appendChild;Element.prototype.appendChild=function(){var t=Array.prototype.slice.call(arguments);return t[0]=M(t[0],e),n.apply(this,t)}}},insertMacrosIntoString:(e,t)=>(Object.keys(t).forEach((function(n){e=e.replace(n,t[n])})),e),extractDomain:function(e){var t;t=e.indexOf("://")>-1?e.split("/")[2]:e.split("/")[0];t.indexOf("www.")>-1&&(t=t.split("www.")[1]);return t=(t=t.split(":")[0]).split("?")[0]},queryAllChildren:function(e,t){var n=[];return e.forEach((function(e){n.push.apply(n,C(Array.from(e.querySelectorAll(t))))})),n},loadFontFromBase64(e,t){var n=new FontFace(e,"url(".concat(t,")"),{style:"normal",weight:"normal"});document.fonts.add(n),n.load().then((function(){}),(function(e){}))},stripHtmlTags:e=>e&&e.replace?e.replace(/<(\/?[a-zA-Z0-9]*)\b[^>]*>/gi,""):e,decodeHtmlEntity:e=>e=(e=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}))).replace(/&(\w+);/g,(function(e,t){return N[t]||"&".concat(t,";")})),getOverflowDimensions(e){var t=P(e);return null!=t&&t.clientHeight<e.clientHeight?this.getElementDimensions(t):this.getElementDimensions(e)},domQuery(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(!t.querySelector)return null;try{return t.querySelector(e)}catch(r){var n=ntv.query(e,t);return 0===n.length?null:n[0]}},domQueryAll(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(!t.querySelectorAll)return[];try{return Array.from(t.querySelectorAll(e))}catch(n){return ntv.query.makeArray(ntv.query(e,t))}},domQueryUp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=this.domQuery(e,t);if(!n){var r=this.stepUpWindowContext(t);if(r.success)try{return this.domQueryUp(e,r.context.document)}catch(e){return n}}return n},injectQueryResults(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Array.isArray(n)||(n=[n]),this.hasIterationProtocol(e)?(t=n).push.apply(t,C(e)):n.push(e)},hasIterationProtocol:e=>null!==e&&Symbol.iterator in Object(e),isSimilarDOMContext(e,t){if(e===t)return!0;try{if(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)return!0}catch(e){}try{if(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINS)return!0}catch(e){}return!1},firePubSubEvent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];ntv.events.trigger(e,t),n&&ntv.Events&&ntv.Events.PubSub.publish(e,t)},retryQuery(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1e4,a=0;return new Promise((function(s,c){!function l(){"string"==typeof e?n instanceof Document?r=n[e](t):document[e](t,n):r=e(t,n),function(e){return!!e&&(!!(e.length&&e.length>0)||!!D.isElement(e))}(r)?s(r):(a+=i)>o?c():setTimeout(l,i)}()}))},removeDuplicates(e){try{return C(new Set(e))}catch(t){return e.filter((function(e,t,n){return n.indexOf(e)==t}))}},getActionTypesFromURL(e){if(!e||!this.is("s",e))return[];var t=e.match(/(ntv_at=)(\d*\,?)*/);return t?t[2].split(","):[]},doesArrayContainElements:(e,t)=>e.some((function(e){return t.indexOf(e)>=0})),runWhenDOMIsReady(e){var t=function(){return"complete"===document.readyState||"interactive"===document.readyState};t()?e():document.addEventListener("readystatechange",(function(){t()&&e()}))},keysToLowercase(e){var t;Object.keys(e).forEach((function(n){t=n.charAt(0).toLowerCase(),n.length>1&&(t+=n.slice(1)),n!==t&&(e[t]=e[n],delete e[n])}))},generateClickRedirect(e){if(null==e)return"";var t=D.qetQueryStringParams(e);t.params.hasOwnProperty(c.REDIRECT)&&delete t.params[c.REDIRECT];var n=D.buildQueryStringFromKeyValuePairs(t.params,t.base);return-1===t.base.indexOf(c.REDIRECT)&&(Object.keys(t.params).length>0&&(n+="&"),n+="".concat(c.REDIRECT,"=")),n},generateVideoSourcesFromData(e){if(e){var t={type:"@type",src:"@src"},n="";return Object.values(e).forEach((function(e){var r='<source src="@src" type="@type"></source>\n';Object.keys(t).forEach((function(n){e[n]&&(r=r.replace(t[n],e[n]))})),n+=r})),n}},pick(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 0===n.length?e:n.reduce((function(t,n){return t[n]=e[n],t}),{})},getDesignBlock:e=>null==e?void 0:e.closest(c.BLOCK_QUERY_SELECTOR),mergeObjectsWithTypeComparisions(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return r.forEach((function(n){Object.entries(n).forEach((function(n){var r=I(n,2),i=r[0],o=r[1];if(!e[i])return e[i]=o;var a=typeof e[i],s=typeof o,c=t[a];if(a===s&&c)return e[i]=c(e[i],o);e[i]=o}),{})})),e}};Object.assign(D,r);var N={quot:'"',apos:"'",amp:"&",lt:"<",gt:">",nbsp:"\t",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"-",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷"};function j(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r=V(n);Array.isArray(e)?(t=ntv.query(r)).append.apply(t,C(e)):ntv.query(r).append(e)}function V(e){if(!e)return D.domQuery("head");if("NTV-DIV"===e.nodeName)return e;e.length&&(e=e[0]);try{var t=e.querySelector("ntv-div")||e.querySelector("head");if(t)return t}catch(e){}return D.domQuery("head")}function M(e,t){if(e&&e.src){var n=new URL(e.src);if(-1===n.hostname.indexOf(t)&&-1===n.toString().indexOf("javascript:false")&&-1===n.toString().indexOf("about:blank")){var r=D.adBlockerValidation(e.src,!0,t);try{e.setAttribute("src",r)}catch(e){}}}if(e.children)for(var i in e.children)M(i,t);return e}function U(e,t){window.ntv.MRAID?mraid.open(e):window.open(e,t)}var F={generateAdPlacementId:function(e,t){return"".concat(t,"-").concat(e)}};D.clientUtils=F,L.ntvjQueryInit=D.ntvjQueryInit,L.ntvExtends=D.ntvExtends,L.ntvAppendStylesheet=D.ntvAppendStylesheet,L.ntvAppendScript=D.ntvAppendScript;var B=n(0),H=n.n(B);function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(H()(ntv,"PostRelease.ampMode")&&e&&t){var r=e.width,i=e.height,o=e.allowOverflow,a=void 0!==o&&o,s=n.success,c=void 0===s?function(){return!0}:s,l=n.failure,u=void 0===l?function(e){return D.postError(e)}:l;t.requestResize(r,i,a),t.onResizeSuccess((function(e,t){return c.call(null,e,t)})),t.onResizeDenied((function(e,t){return u.call(null,e,t)}))}}function q(e){return new z(e)}function z(e){this.isArticle=e}z.prototype.ntvStopWatch=function(e,t){return this.startTime=null,this.rval=0,this.event=e,this.triggerTime=t,this.eventFired=!1,this.stop=function(){return null!=this.startTime&&(this.rval+=new Date-this.startTime,this.startTime=null),this},this.reset=function(){return this.startTime=null,this.rval=0,this},this.resume=function(){if(!this.preventResume)return null==this.startTime&&(this.startTime=new Date,this.checkEvent()),this},this.duration=function(){var e=this.rval;return null!=this.startTime&&(e+=new Date-this.startTime),e},this.checkEvent=function(){if(null!=this.event&&null!=this.triggerTime)if(this.duration()>=this.triggerTime&&!this.eventFired)this.event(),this.eventFired=!0;else if(null!=this.startTime){var e=this;setTimeout((function(){e.checkEvent()}),50)}return this},this},z.prototype.ntvTimeOnContentStopWatch=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;"function"!=typeof this.ntvStopWatch&&this.ntvStopWatch(),this.parent=e,this.cap=6e5,this.totalTime=0,this.sampleTimes=D.getSampleTimeArray(this.cap),this.triggerTime=null,this.onLeaveTracked=!1,this.engagements=[{time:5e3,actionType:c.TOC_ENGAGEMENT_5S},{time:15e3,actionType:c.TOC_ENGAGEMENT_15S},{time:3e4,actionType:c.TOC_ENGAGEMENT_30S}],this.nextEngagement=function(){return n.engagements[0]||null},this.overridingActionType=t;var i=this;return this.onLeave=function(){if(i.onLeaveTracked||(i.onLeaveTracked=!0,i.totalTime>0&&i.trackTimeOnContent(!0)),D.isChrome())return""},this.init=function(){r.addEventListener("beforeunload",this.onLeave),r.addEventListener("pagehide",this.onLeave),r.addEventListener("unload",this.onLeave)},this.init(),this.checkEvent=function(){if(this.sampleTimes&&this.sampleTimes.length>=0){if(null==this.triggerTime){if(!(this.sampleTimes.length>0))return;this.triggerTime=this.sampleTimes.shift()}var e=this.nextEngagement();if(this.isArticle&&e&&this.totalTime+this.duration()>=e.time&&(this.engagements.shift(),this.trackEngagement(e)),this.duration()>=this.triggerTime)this.trackTimeOnContent(!1),this.triggerTime=null,this.resume();else if(null!=this.startTime){var t=this;setTimeout((function(){t.checkEvent()}),1e3)}}return this},this.trackEngagement=function(e){var t=D.is("a",e.actionType)?e.actionType.join():e.actionType,n=this.parent.tracker.getUrl(t);e.qsParams&&D.is("s",e.qsParams)&&(n=n.concat(e.qsParams)),D.appendImage(n)},this.trackTimeOnContent=function(e){if(this.parent.isPreRoll&&this.parent.prerollPlaying||this.parent.player&&"function"==typeof this.parent.player.getCurrentTime&&(isNaN(this.parent.player.getCurrentTime())||0==this.parent.player.getCurrentTime()))this.reset();else{var t=this.duration();if(this.totalTime+=t,this.totalTime>this.cap&&(t-=this.totalTime-this.cap,this.totalTime=this.cap),(!(t<=0)||e)&&(t<=0&&(t=0),!(t<=100&&0!=t)||e)){var n=this.parent.tracker.getUrl(this.overridingActionType||87);return n+="&"+c.VALUE+"="+t,e&&(n+="&"+c.TOTAL_VALUE+"="+this.totalTime),D.appendImage(n),this.reset(),this}}},this.stopAndTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.stop(),this.trackTimeOnContent(e),e&&(i.totalTime=0),this},this},z.prototype.addStopWatchEventHandlers=function(e){var t=this;return document.addEventListener("visibilitychange",(function(n){e.handler.call(t,n)}),!1),this};var G=!0;try{window.sessionStorage.getItem("foo")}catch(e){G=!1}var Y=function(e){return G?window.sessionStorage.getItem(e):p(e)},Q=function(e,t){G?window.sessionStorage.setItem(e,t):f(e,t,365)},K=n(1),X=n.n(K);function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ntv",t=h();return Z(e,t)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ntv",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return t.ntv=t.ntv||{},"ntv"===e?t.ntv:(t.ntv[e]=t.ntv[e]||{},t.ntv[e])}function $(e,t){e&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;n.ntv=n.ntv||{},n.ntv[e]=t}(e,t,h())}function ee(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data";function i(t,n){return d(),e[t]=n,e[t]}function o(t){return d(),e[t]}function a(t){return d(),e.hasOwnProperty(t)}function s(t){d(),a(t)&&delete e[t]}function c(){return d(),n}function l(){return d(),t}function u(){$(r,{})}function d(){e=J(r),t=Object.keys(e),n=t.length}return d(),{get:o,set:i,has:a,remove:s,getNumEntries:c,getEntryIds:l,clear:u}}var te={useObserverViewability:!1};function ne(e){return e?ee("resposneFlags").get(e)||{}:dp.setting.flags||te}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=D.checkIfExistAndAppendQS,se=D.getQS,ce=D.qetQueryStringParams,le=D.fowardQS,ue=function(e,t){t&&"object"==typeof t&&Object.keys(t).forEach((function(n){switch(n){case"ntvPubInjection":case"cfg.pubInjection":case"pubInjection":e.pubInjection=!0;break;case"ntvSetNoAutoStart":case"cfg.SetNoAutoStart":case"preventAutoStart":e.autoStart=!1;break;case"ntvArticle":case"ntvClickoutTracking":case"trackClickout":case"cfg.ClickOutTracking":e.measurement=de(t[n]);break;case"ntvRequestUrl":case"requestUrl":case"cfg.RequestUrl":e.requestUrl=D.ntvTrim(t[n]);break;case"ntvDebug":case"debug":case"cfg.Debug":e.debugMode=!0;break;case"ntvAmp":case"googleAmp":case"cfg.Amp":e.ampMode=!0;break;case"ntvServerDomain":case"adBlockerDomain":case"cfg.ServerDomain":D.adBlockerDomain=t[n],D.adBlocker=1;break;case"experiment":case"ntvExperiment":e.experiment=t[n];break;case"mraid":case"ntvMraid":e.MRAID=!0;break;case"ntvEdge":e.isEdge=!0;break;case"ntvAds":e.ads=de(t[n]);break;case"ptd":e.ptd=t[n];break;case"retry":e.retry=!0;break;case"customAudience":e.customAudience=t[n];break;case"liveRamp":e.liveRamp=t[n];break;case"ntvSdk":case"sdk":e.sdk=de(t[n]);break;case"flags":case"cfg.flags":e.flags=t}}))};function de(e){return"false"!==e.toLowerCase()}var fe=function(e,t){var n=ae(e.advid,c.ADV_ID)+ae(e.adversionplacementid,c.AVP)+ae(e.placementid,c.PLC_ID)+le(c.OVERIDE_ARTICLE)+le(c.ABA)+le(c.RENDER_MODE)+le(c.ARTICLE_TMPL)+le(c.PASS_PREVIEW)+le(c.IP)+t;30==e.rt&&(n+="&"+c.FRAUD),e.debugMode&&(n+="&"+c.DEBUG_MODE),document.referrer.length>0&&(n+=ae(document.referrer,c.PAGE_REF));var r,i=(r="",window.STR&&(r+="1,"),window._tlModuleLoader&&(r+="5,"),window.AdsNative&&(r+="21,"),window.Connatix&&(r+="2,"),r.length>0&&(r=r.substring(0,r.length-1)),r);i.length>0&&(n+="&"+c.TRACK_MEDIATION+"="+i),Y("ntvAds")&&(n+="&"+c.SEEN_ADS+"="+Y("ntvAds")),("playsInline"in document.createElement("video")||D.isAndroidPhone()&&"autoplay"in document.createElement("video")||D.isAndroidTablet())&&(n+="&ntv_mvi");var o=D.getKeyValuePairs();return o&&(n+="&"+c.KEY_VALUE_PAIRS+"="+o),D.isPublisherLoadedInTopWindow()||(n+="&"+c.PUBLISHER_IN_IFRAME+"=1"),e.experiment&&(n+="&"+c.EXPERIMENT+"="+e.experiment),e.retry&&e.ptd&&(n+="&"+c.RETRY+"&"+c.PTD_FILTER+"="+encodeURIComponent(e.ptd),delete e.ptd),n},pe=function(e){return e?Array.prototype.slice.apply(e.attributes).filter((function(e){return/(^ntv-)(.*)/.test(e.name)})).reduce((function(e,t){return e[X()(t.name)]=t.value,e}),{}):{}},he=function(){var e,t,n=(e=ce(),{autoStart:!0,requestUrl:window.location,rt:1,makeAdRequest:!0,debugMode:!1,ampMode:!1,experiment:"",MRAID:!1,adversionplacementid:"",placementid:"",retry:!1,ptd:"",baseURL:e.base,qs:e.params,pubInjection:!1,sdk:!1,recordEngagements:!0,useObserverViewability:!0,flags:te});return ntv.attrValues=function(){var e=D.domQuery("script[src*='//s.ntv.io/serve/load.js']")||D.domQuery("script[src*='//a.postrelease.com/serve/load.js']");if(!e)return{};var t=pe(e),n=e.dataset;return ie(ie({},t),n)}(),ue(n,ntv.attrValues),window._prx&&ue(n,(t=window._prx,Array.isArray(t)?t.reduce((function(e,t){return e[t[0]]=t[1]||"",e}),{}):t)),window.ntvConfig&&ue(n,window.ntvConfig),function(e){e.measurement&&(e.measurement=Boolean(e.qs[c.ARTICLE_TMPL]||e.qs[c.AVP])),e.makeAdRequest=function(e){var t;return e.measurement?!!e.ads&&e.ads:null===(t=e.ads)||void 0===t||t}(e)}(n),function(e){var t=se(c.ADV_ID),n=se(c.AVP),r=se(c.PLC_ID);t&&(e.advid=t),n&&(e.adversionplacementid=n),r&&(e.placementid=r),e.qs[c.FRAUD]&&(e.rt=30)}(n),n},ve=function(e){var t={};return t.selector=window,t.adVersionPlacement=e.adversionplacementid,t.baseTrackingUrl=D.getProtocol()+"//"+D.getServerDomain()+"/trk.gif?"+c.AT+"=",t.secondaryImpressionTags="",t.moatEnabled=!1,t.trackTimeOnContent=!0,t.recordType=1,t.clickoutTracking=1,t},me=[25,50,75,100],ye={},ge=[];var be={performance:new function(){this.set=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(new Date).getTime(),n={};n[e]=t,ge.push(n)},this.get=function(e){if(e){for(var t=ge.length-1;t>=0;t--)if(ge[t][e])return ge[t][e];return null}return ge},this.sendRequest=function(e,t){var n=2==t||Math.random()<=.1;dp.setting.experiment&&0==dp.setting.experiment.indexOf("1*")&&(n=!0),n&&D.appendImage(e)},this.validInt=function(e){return!isNaN(e)&&e>=0&&e<6e4},this.trackBeforeRender=function(e){if(!this.sentTrackBeforeRender){var t=this.get("getResponse"),n=this.get("sendRequest"),r=window.ntvLoadStart-window.performance.timing.navigationStart,i=this.get("init")-window.ntvLoadStart,o=t-n;if(dp.setting.isEdge&&(n||(o=0)),e){var a=e.trackingBaseUrl+"321,322,333&ntv_a="+e.adVersionPlacement+"&ntv_jlt="+r+"&ntv_jad="+o+"&ntv_jte="+i+D.buildExperimentUrl(dp.setting.experiment);o>=0&&this.validInt(o)&&this.validInt(r)&&this.validInt(i)&&(this.sentTrackBeforeRender=!0,this.sendRequest(a))}}},this.trackAfterRender=function(e,t){var n=this.get("getResponse"),r=new Date-n,i=e.trackingBaseUrl+(1==t?"323":"324")+"&ntv_a="+e.adVersionPlacement+"&"+(1==t?"ntv_jtr":"ntv_jar")+"="+r+D.buildExperimentUrl(dp.setting.experiment);dp.setting.isEdge&&(n||(r=0)),this.validInt(r)&&this.sendRequest(i,t)},this.setStart=function(){this.get("preStart")||this.set("preStart",new Date-this.get("init")),this.set("start")},this.responsivenessTracking=function(){var e=(new Date).getTime(),t=e-window.performance.timing.navigationStart;setTimeout((function(){!function n(r,i,o,a,s){var c=(new Date).getTime(),l=c-a-200;if(5===r){var u=s/r;if(me.forEach((function(n){ye[n]||(u<=n?ye[n]=o[0]-e-200+t:c-e>15e3&&(ye[n]=15e3))})),Object.keys(ye).length===me.length)return;var d=i.shift();i.push(l),o.shift(),o.push(c),setTimeout((function(){n(r,i,o,c,s-d+l)}),200)}else i.push(l),o.push(c),setTimeout((function(){n(r+1,i,o,c,s+l)}),200)}(0,[],[],e,0)}),200)},this.sendResponsivenessRequest=function(e,t){var n=this;if(t&&!this.sent)if(Object.keys(ye).length===me.length){var r=D.getBaseUrl()+c.AT+"=386,387,388,389&"+c.RESPONSIVENESS_1OO+"="+ye[100]+"&"+c.RESPONSIVENESS_75+"="+ye[75]+"&"+c.RESPONSIVENESS_50+"="+ye[50]+"&"+c.RESPONSIVENESS_25+"="+ye[25]+"&"+c.SESSION_PL_ID+"="+e+D.buildExperimentUrl(dp.setting.experiment);D.appendImage(r),this.sent=!0}else setTimeout((function(){return n.sendResponsivenessRequest(e,t)}),200)}}};function we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"))?o:String(o)),r)}var i,o}function Te(e,t,n){return t&&Ee(e.prototype,t),n&&Ee(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Se=window.win||window,ke=D.checkIfExistAndAppendQS,Pe=D.setURLCache,Ae=D.buildExperimentUrl,Ie=D.debounce;function Ce(e,t){t.containsInfScrollPlacements=!0,e.passbackHandler(t),PostRelease.ProcessResponse(t)}function Oe(e,t){t.hasNextNode()&&!e.processing&&(e.processing=!0,be.performance.set("sendRequest"),function(e,t){var n="https://".concat(D.getServerDomain()),r="".concat(c.PLC_ID,"=").concat(encodeURIComponent(e.placement)),i="".concat(c.PTD_FILTER,"=").concat(encodeURIComponent(e.placement)),o="".concat(c.REQ_URL_NTV,"=").concat(window.location.href),a="".concat(ke(PostRelease.adsToFilter.join(),c.AD_FILTER)),s="".concat(ke(PostRelease.campaignsToFilter.join(),c.CMP_FILTER)),l="".concat(ke(PostRelease.advertisersToFilter.join(),c.ADV_FILTER)),u=dp.setting.experiment,d=D.getKeyValuePairs()?c.KEY_VALUE_PAIRS+"="+D.getKeyValuePairs():"",f=D.attachFirstPartyCookieQS(dp.firstPartyCookie),p="".concat(n,"/t.json?").concat(r,"&").concat(i,"&").concat(o).concat(a).concat(s).concat(l)+"".concat(Ae(u),"&").concat(d).concat(f).concat(Pe());D.ajax({method:"get",url:p,success:function(e){t(e)},error:function(){t()},credentials:!0})}(t,(function(n){if(t.increaseInterval(),n&&n.placements&&n.placements.length){var r=n.placements.filter((function(e){return e.id===t.placement}));r.length&&((r=r[0]).selector=t.getSelector(),Ce(e,n))}else if(n&&n.hb&&n.hb.adUnits&&n.hb.adUnits.length){var i=n.hb.adUnits[0],o=t.getSelector(),a=i.bids.filter((function(e){return"nativo"===e.bidder}));a&&a.length&&(a[0].params.ad.selector=o),i.code=o,Ce(e,n)}e.processing=!1,Oe(e,t)})))}var _e=function(){function e(t,n,r,i){we(this,e),this.selector=t,this.currentPosition=n,this.placement=r,this.interval=i}return Te(e,[{key:"hasNextNode",value:function(){return!!ntv.query(this.getNextSelector())[0]}},{key:"getNextSelector",value:function(){return this.selector.replace("%p%",this.currentPosition+this.interval)}},{key:"getSelector",value:function(){return this.selector.replace("%p%",this.currentPosition)}},{key:"increaseInterval",value:function(){this.currentPosition+=this.interval}}]),e}(),Re=function(){function e(){we(this,e),this.ISManager={},this.nodesInserted=[]}return Te(e,[{key:"trackPlacement",value:function(e){var t=this,n=function(){Oe(t,t.ISManager[e])};Se.addEventListener("load",Ie(n,20)),dp.internalPubSub.subscribe(o,n),n()}},{key:"placementHandler",value:function(e){var t=this;e.placements.filter((function(e){return e.infScroll&&e.infScroll.interval>0&&e.selector.indexOf("%p%")>0})).forEach((function(n){t.setManager(n,e),e.containsInfScrollPlacements=!0}))}},{key:"hbHandler",value:function(e){var t=this,n=e.hb;n&&n.adUnits&&n.adUnits.forEach((function(n){for(var r=0;r<n.bids.length;r++){var i=n.bids[r];if("nativo"===i.bidder&&i.params&&i.params.ad&&i.params.ad.infScroll&&i.params.ad.selector.indexOf("%p%")>0&&(e.containsInfScrollPlacements=!0,t.setManager(i.params.ad,e)))return void(n.code=t.getManager(n.placement).getSelector())}}))}},{key:"passbackHandler",value:function(e){var t=this;e.passback&&e.containsInfScrollPlacements&&e.passback.Providers.forEach((function(e){e.Placements.filter((function(e){return t.ISManager[e.Placement]})).forEach((function(e){return e.Selector=t.ISManager[e.Placement].getSelector()}))}))}},{key:"setManagers",value:function(e){this.placementHandler(e),this.hbHandler(e),this.passbackHandler(e)}},{key:"setManager",value:function(e,t){var n=dp.infScrollReset,r=e.id,i=e.infScroll,o=e.selector;if(null==this.ISManager[r]){var a=i.position,s=i.interval,c=new _e(o,a,r,s);return t.placements.filter((function(e){return void 0!==e.ads})).forEach((function(e){return e.ads.filter((function(e){return void 0!==e.filteringLevel})).forEach((function(e){return dp.setFilteringByLevel({filteringLevel:e.filteringLevel,adId:e.id,campaignId:e.campaignID,advertiserId:e.advertiser.id})}))})),this.ISManager[r]=c,this.trackPlacement(r),e.selector=this.ISManager[r].getSelector(),!0}return n?this.ISManager[r].currentPosition=i.position:this.ISManager[r].increaseInterval(),e.selector=this.ISManager[r].getSelector(),!1}},{key:"getManager",value:function(e){if(!(this.ISManager[e]&&this.ISManager[e].interval<=0))return this.ISManager[e]}}]),e}();function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"))?o:String(o)),r)}var i,o}var Le=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.key=t,this.value=n}var t,n,r;return t=e,(n=[{key:"toString",value:function(){return null==this.key||null==this.value?"":"".concat(this.key,"=").concat(this.value)}}])&&xe(t.prototype,n),r&&xe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"))?o:String(o)),r)}var i,o}var Ne=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api,this.version,this.queryStringParameter=new Le(t),this.consentData={}}var t,n,r;return t=e,(n=[{key:"getConsentData",value:function(){}},{key:"consentDataToQueryValue",value:function(){return""}},{key:"getQueryString",value:function(){return this.getConsentData(),this.queryStringParameter.value=this.consentDataToQueryValue(),this.queryStringParameter.toString()}}])&&De(t.prototype,n),r&&De(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function je(){je=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function f(){}function p(){}function h(){}var v={};c(v,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==t&&n.call(y,o)&&(v=y);var g=h.prototype=f.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t((function(i,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function T(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Ve(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"))?o:String(o)),r)}var i,o}function Fe(e,t){return(Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=We(e);if(t){var i=We(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return He(this,n)}}function He(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function We(e){return(We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qe="tcfeuv2",ze="uspv1",Ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}(s,e);var t,n,r,i,o,a=Be(s);function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Me(this,s),(e=a.call(this,c.GPP_STRING_KEY)).name=c.GPP,e.api=t.__gpp,e.version=n.version,e.getConsentData(),e}return t=s,n=[{key:"getConsentData",value:function(){this.consentData=this.api("getGPPData")}},{key:"consentDataToQueryValue",value:function(){return this.consentData.gppString}},{key:"getSectionData",value:function(e){return this.api("hasSection",null,e)?this.api("getSection",null,e):{}}}],r=[{key:"Initialize",value:(i=je().mark((function e(){var t,n,r=arguments;return je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(t=r.length>0&&void 0!==r[0]?r[0]:window).__gpp){e.next=3;break}return e.abrupt("return",Promise.reject("GPP API not found"));case 3:return e.next=5,Ke(t.__gpp);case 5:return n=e.sent,e.abrupt("return",new s(t,{version:n.gppVersion}));case 7:case"end":return e.stop()}}),e)})),o=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){Ve(o,n,r,a,s,"next",e)}function s(e){Ve(o,n,r,a,s,"throw",e)}a(void 0)}))},function(){return o.apply(this,arguments)})}],n&&Ue(t.prototype,n),r&&Ue(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Ne);function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!e||!t.__gpp||"function"!=typeof t.__gpp)return Promise.reject();var n=t.__gpp;return Ke(n).then((function(){return new Promise((function(t,r){Qe(n,e).then((function(e){t(e)})).catch((function(){r("GPP section ".concat(e," is not supported"))}))}))})).catch((function(e){return Promise.reject(e)}))}function Qe(e,t){return e("hasSection",null,t)?Promise.resolve(e("getSection",null,t)):Promise.reject()}function Ke(e){var t=e("ping");return"error"===t.cmpStatus?Promise.reject():function(e,t){var n=t.cmpStatus,r=t.cmpDisplayStatus;if("stub"===n||"visible"===r)return new Promise((function(t,i){var o={listenerId:void 0,isLoaded:Xe(n),isAwaitingInput:Je(r),error:!1},a=e("addEventListener",(function(e){var n=e.eventName,r=e.listenerId,a=e.pingData;o.listenerId==r&&("error"!==n&&"error"!==a.cmpState?(!function(e,t){t.isLoaded=Xe(e.cmpStatus),t.isAwaitingInput=Je(e.cmpDisplayStatus)}(a,o),function(e){return e.isLoaded&&!e.isAwaitingInput}(o)&&t(a)):i())}));o.listenerId=a.listenerId}));return Promise.resolve()}(e,t)}function Xe(e){return"loaded"===e}function Je(e){return"visible"===e}function Ze(){Ze=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function f(){}function p(){}function h(){}var v={};c(v,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==t&&n.call(y,o)&&(v=y);var g=h.prototype=f.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t((function(i,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function T(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function $e(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"))?o:String(o)),r)}var i,o}function tt(e,t){return(tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=it(e);if(t){var i=it(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rt(this,n)}}function rt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}(s,e);var t,n,r,i,o,a=nt(s);function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,c.GDPR_QS_KEY)).name=c.GDPR,n.consentData=t.consentData||{},n}return t=s,n=[{key:"getConsentData",value:function(){return this.consentData}},{key:"consentDataToQueryValue",value:function(){return this.consentData.consentString}}],r=[{key:"Initialize",value:(i=Ze().mark((function e(){var t,n,r=arguments;return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:window,e.next=3,ct();case 3:return n=e.sent,e.abrupt("return",new s(t,{consentData:n}));case 5:case"end":return e.stop()}}),e)})),o=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){$e(o,n,r,a,s,"next",e)}function s(e){$e(o,n,r,a,s,"throw",e)}a(void 0)}))},function(){return o.apply(this,arguments)})}],n&&et(t.prototype,n),r&&et(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Ne),at=function(e,t){return!!st[e]&&st[e](t)},st={v1:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.__cmp&&"function"==typeof e.__cmp},v2:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.__tcfapi&&"function"==typeof e.__tcfapi}},ct=function(){var e=h();return new Promise((function(t,n){var r=setTimeout((function(){n()}),1e5);Ye(qe,e).then((function(e){return Promise.resolve({consentString:e.tcString,apiVersion:e.tcfPolicyVersion})})).catch((function(t){return dt(e)})).catch((function(t){return lt(e)})).catch((function(t){return ut(e)})).catch((function(e){n()})).then((function(e){clearTimeout(r),t(e)}))}))},lt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return new Promise((function(t,n){at("v1",e)?e.__cmp("getVendorConsents",[c.GDPR_VENDOR_ID],(function(e,r){r&&e&&e.gdprApplies&&e.vendorConsents[c.GDPR_VENDOR_ID]?t({consentString:e.metadata,apiVersion:1}):n()})):n()}))},ut=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return new Promise((function(t,n){at("v1",e)?e.__cmp("getVendorConsents",c.GDPR_VENDOR_ID,(function(e,r){r&&e&&e.gdprApplies&&e.vendorConsents[c.GDPR_VENDOR_ID]?t({consentString:e.metadata,apiVersion:1}):n()})):n()}))},dt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return new Promise((function(t,n){at("v2",e)?e.__tcfapi("getTCData",2,(function(e,r){r&&e&&e.gdprApplies&&e.vendor.consents[c.GDPR_VENDOR_ID]?t({consentString:e.tcString,apiVersion:2}):n()}),[c.GDPR_VENDOR_ID]):n()}))};function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht,vt={accountId:"",bidders:[],enabled:!0,timeout:1e3,adapter:"nativoServerBidAdapter",endpoint:"https://dev-prebid-server.internal.nativo.net/openrtb2/auction",syncEndpoint:"http://dev-prebid-elb.internal.nativo.net:8000/cookie_sync"},mt=window,yt=2e3,gt=[],bt=!0,wt=null;function Et(e){gt.push(e),function(){var e=this,t=D.domQuery('script[src*="'.concat("//s.ntv.io/js/prebid5.js",'"]'),mt.document);return new Promise((function(n){t&&n(),D.appendScript(D.getProtocol()+"//s.ntv.io/js/prebid5.js",n.bind(e),"ntv-ntvPbjs")}))}().then(Tt)}function Tt(){if(bt)bt=!1,wt=null,function(){var e=gt.pop(),t=(e.type,e.params),n=t.adUnits;n.forEach((function(e){e.bids.forEach((function(e){"nativo"===e.bidder&&(e.bidder="nativo_wrapper")}))})),t.tmax&&(yt=t.tmax);return n.forEach((function(e){if(0==e.sizes.length&&(e.sizes=[[300,250],[300,600]]),e.mediaTypes={video:{context:"outstream",playerSize:[640,480]},banner:{sizes:e.sizes}},e.videoDivID=""+e.placement,e.resultExtraQS=t.hbExtraQS||"",e.auctionTrackingExtraParams){var n=Pt(e.bids,c.BEFORE_AUCTION,e.auctionTrackingExtraParams);D.appendImage(n)}})),new Promise((function(t,n){(function(e){var t=e.params.adUnits||[],n=function(e){var t,n=e.params,r=n.gdpr,i=n.usp,o=n.adUnits,a=n.pbjsConfig,s=n.preBidGdpr,c=n.preBidUsp,l=a?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a):{};if("s2s"===e.type){var u,d=new Set,f=o.filter((function(e){return u=e.bids[0].bidder,!d.has(u)&&(d.add(u),!0)})).map((function(e){return e.bids[0].bidder}));l.s2sConfig=Object.assign(vt,{bidders:f})}var p=s||r;p&&function(){arguments.length>0&&void 0!==arguments[0]||window;Object.keys(st).some((function(e){return at(e)}))}(mt)&&((t=t||{}).gdpr={},t.gdpr.cmpApi=p.cmpApi,t.gdpr.timeout=p.timeout||yt,t.gdpr.allowAuctionWithoutConsent=!!p.allowAuctionWithoutConsent);var h=c||i;h&&((t=t||{}).usp={},t.usp.cmpApi=h.cmpApi,t.usp.timeout=h.timeout||yt);t&&(l.consentManagement=t);return l}(e),r=function(e){var t=e.params.pbjsBidderConfig;if(!t)return;var n=t.bidders;if(!(n&&Array.isArray(n)&&n.length>0))return;return t}(e);return new St(e,t,n,r)})(e).run().then((function(e){return e.processResponses()})).then(t).catch(n)}))}().then((function(){bt=!0})).catch((function(){bt=!0}));else{if(wt)return;wt=setTimeout((function(){return Tt()}),100)}}function St(e,t,n,r){var i=this;this.spec=e,this.type=e.type,this.adUnits=t,this.config=n,this.processed=!1,this.adUnits.forEach((function(e){if(!e.code){var t=e.bids.find((function(e){return"nativo_wrapper"===e.bidder}));t&&t.params&&t.params.ad&&(e.code=t.params.ad.selector)}})),(ht=mt.ntvPbjs||{}).que=ht.que||[],ht.que.push((function(){ht.setConfig(i.config),r&&ht.setBidderConfig(r)})),ht.trackWinningBid=function(e){var t=function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=0;n<ht.adUnits.length;n++){var r=ht.adUnits[n];if(r.code==e.adUnitCode)for(var i=0;i<r.bids.length;i++){var o=r.bids[i];if(!t||"nativo_wrapper"==o.bidder)return o.params}}}(e.ad,"hb"===i.type);if(t){var n=t.ad;n.id||(n.id=t.placementId);var r=n.tracking,o=kt(e.ad.bidder);!function(e,t,n,r,i,o){var a={primaryImpressionURL:n.trackingBaseUrl+c.PB_VCPM_IMP+",304&ntv_a="+n.adVersionPlacement+"&"+r+"="+i,selector:e[0],adID:n.vcpmParams.adID,placementID:t.id,checkMinimumAreaViewable:!0,checkOnFocus:!0,infiniteScroll:o,minimumAreaViewable:.5,minimumExposedTime:1e3,thirdPartyTrackingTags:""};D.trackReplacedNodeViewableImpression(a)}(e,n,r,c.SUB_AT,o,!!t.ad.infScroll)}}}function kt(e){for(var t=0;t<ht.adUnits.length;t++)for(var n=ht.adUnits[t],r=0;r<n.bids.length;r++){var i=n.bids[r];if(i.bidder==e)return i.bidderID}return 0}function Pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=r?e.filter((function(e){return"nativo_wrapper"===e.bidder})):e;if(i[0].params.ad){var o=i[0].params.ad.tracking,a=o.trackingBaseUrl,s=o.adVersionPlacement;return a+t+"&"+c.AVP+"="+s+n}}St.prototype.run=function(){var e=this;return new Promise((function(t){e.prebidTimeout=setTimeout((function(){t(e)}),yt+200),ht.que.push((function(){ht.addAdUnits(e.adUnits),ht.requestBids({timeout:yt,bidsBackHandler:function(){e.prebidTimeout&&clearTimeout(e.prebidTimeout),t(e)}})}))}))},St.prototype.processResponses=function(){this.processed||(this.processed=!0,this.setNativoTargetingAndRender())},St.prototype.setNativoTargetingAndRender=function(){var e=this,t=[];this.adUnits.forEach((function(n){var r=0;n.bids.forEach((function(t){"s2s"!==e.type&&"nativo_wrapper"!==t.bidder||(r=t.params.ad.injectionMode)})),e.targeting=ht.getNativoWinningBids(n.code),e.checkForSelectorAndRender(n,t,r)})),t.length&&this.renderClientAd(t)},St.prototype.checkForSelectorAndRender=function(e,t,n){if(this.targeting){var r=this.targeting.winner,i=e.auctionTrackingExtraParams,o=this.resolveSelector(e);if(o&&D.domQuery(o)&&("nativo_wrapper"===r.bidder?(t.push(r.ad),this.trackBidRendering(r,e)):(!function(e,t){if(t.passback){var n=t.passback.Providers||[],r=t.params.adUnits.filter((function(t){return t.code===e.adUnitCode})).map((function(e){return e.placement}))[0];n.forEach((function(e){e.Placements=e.Placements.filter((function(e){return e.Placement!=r}))})),t.passback.Providers=n.filter((function(e){return!0===e.PlacementSpecific}))}}(r,this.spec),r.adUnitCode=o,ht.onEvent("bidWon",this.trackBidRendering.bind(this,r,e),e.code),ht.renderNativoAd(r,n)),i)){var a=Pt(e.bids,c.AFTER_AUCTION,i);D.appendImage(a)}}},St.prototype.trackBidRendering=function(e,t){if("hb"===this.type){var n=D.getProtocol()+"//"+D.getServerDomain()+"/hb.gif";D.ajax({method:"POST",contentType:"application/x-www-form-urlencoded",url:n,val:t.resultExtraQS+"&t="+D.encryptUrl(JSON.stringify(this.targeting.auction))+D.buildExperimentUrl(dp.setting.experiment,!1)})}else{var r=kt(e.bidder),i=e.params[0].qsParams||"";i+="&"+c.SUB_AT+"="+r,this.firePrimaryImpression(t,i)}},St.prototype.resolveSelector=function(e){return"s2s"===this.type&&e.bids[0].params&&e.bids[0].params.ad?e.bids[0].params.ad.selector:e.code},St.prototype.renderClientAd=function(e){var t=this;if(e&&0!==e.length){var n={};n.placements=e,n.passback=this.spec.passback,n.passback&&n.passback.Providers.length&&n.passback.Providers[0].Placements.length>0&&n.passback.Providers[0].Placements[0].Locator&&function(e){e.passback.Providers.forEach((function(t){!function(e,t){e.Placements.forEach((function(e,n){t.placements[n].selector=e.Locator,t.placements[n].prebid=!0}))}(t,e)}))}(n),dp.ProcessResponse(n,!0)}else setTimeout((function(){return t.renderClientAd(e,t.spec)}),0)},St.prototype.firePrimaryImpression=function(e,t){D.appendImage(Pt(e.bids,c.PB_CPM_IMP,e.auctionTrackingExtraParams,!1)+"&".concat(t))};var At=function(e,t){var n={providerID:e.ProviderID,rateType:e.RateType,amount:e.Amount,adVersionPlacement:e.AdVersionPlacement,completed:!1,skipLog:e.SkipLog};return t&&(n.id=Math.round(1e3*Math.random()).toString().concat((new Date).valueOf().toString()),n.selector=t.Selector,n.locator=t.Locator,n.adVersionPlacement=t.AdVersionPlacement),n},It=function(e){var t=e.providerID;1!=t&&3!=t&&22!=t||(e.autoFillDetection=!0,ntv.query(window).bind("message",(function(t){var n=t.originalEvent&&t.originalEvent.origin?t.originalEvent.origin:t.origin;n&&n.indexOf("btlr.sharethrough.com")>=0&&setTimeout((function(){return function(e){var t=ntv.query(e.locator)[0];t&&("true"==t.getAttribute("data-str-visited-flag")&&(e.autoFillDetection=!0))}(e)}),200)})))},Ct=function(e,t,n){e==c.PB_ATT&&t.skipLog&&(e=c.PB_ATT_SKIP_LOG);var r="";return(e==c.PB_CPM_IMP&&2==t.rateType||e==c.PB_VCPM_IMP&&3==t.rateType)&&(r="&"+c.VALUE+"="+t.amount),t.skipLog&&e!=c.PB_ATT_SKIP_LOG&&(r="&"+c.REQ_OPTIONS+"=s"),n+e+"&"+c.AVP+"="+t.adVersionPlacement+"&"+c.SUB_AT+"="+t.providerID+r+D.setURLCache()},Ot=function(e,t,n){D.ntvAppendPixelImage(Ct(e,t,n))},_t=function e(t,n,r,i,o){r<0?Ot(c.PB_NOT_FIL,n,i):function(e,t){var n=!1,r=!1;if(e.locator){var i=D.domQuery(e.locator);if(i){var o=i.getBoundingClientRect(),a=o.width,s=o.height;a>0&&s>1?(n=!0,r=!0):e.autoFillDetection&&(n=!0,r=!1)}else n=!1,r=!1}else n=!0,r=!1;t(n,r)}(n,(function(a,s){a?s?(Ot(c.PB_CPM_IMP,n,i),function(e,t,n){var r={primaryImpressionURL:Ct(c.PB_VCPM_IMP,e,n),thirdPartyTrackingTags:"",selector:ntv.query(e.locator)[0],minimumAreaViewable:t.minimumAreaViewable,minimumExposedTime:t.minimumExposedTime,checkOnFocus:t.checkOnFocus,checkMinimumAreaViewable:t.checkMinimumAreaViewable,infiniteScroll:!1,placementID:t.placementID};D.trackReplacedNodeViewableImpression(r)}(n,o,i)):Ot(c.PB_NOT_FIL,n,i):setTimeout((function(){return e(t,n,r-1,i,o)}),100)}))},Rt=function(e,t,n,r,i){var o=At(t,n);It(o),function(e,t,n,r){var i;(i=t).selector=i.Selector,i.html=i.BodyTag,i.injectionMode=i.InjectionMode,e.isEdge&&0==e.index?Ot(c.PB_ATT,n,r):Ul(t,(function(e){t.injectNode=e,Ql(t),Ot(c.PB_ATT,n,r)}),50)}(e,n,o,r),_t(e,o,30,r,i)},xt=function(e,t,n){var r=e.Providers,i=r[e.index],o=At(i||r[0]);e.index!=r.length?(i.HeaderTag.length>0&&(e.isEdge&&0==e.index||ntv.query("head").append(i.HeaderTag)),i.Placements.length?i.Placements.forEach((function(r){Rt(e,i,r,t,n)})):Ot(c.PB_ATT,o,t),e.index+=1):Ot(c.PB_NOT_FIL,o,t)},Lt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){var r=e.TrackingUrl;void 0===e.index&&(e.index=0),n&&(e.isEdge=!0),xt(e,r,t)}};function Dt(e){return e.selector+(e.page?'[page="'.concat(e.page,'"]'):"")}var Nt=function e(t,n){var r=ntv.query(t.selector),i=t.cpmExtraQS||"";r.length||t.foundOnEdge?(t.inventoryTracked||(t.inventoryTracked=!0,D.appendImage(t.url+"303&"+c.AVP+"="+t.adVersionPlacement+D.setURLCache()+i),new ntvViewableImpressionTracker(t.vcpmParams),be.performance.trackAfterRender({adVersionPlacement:t.adVersionPlacement,trackingBaseUrl:t.url},1)),t.passback&&r.length&&(t.selector=r,t.passback.Providers.forEach((function(e){e.Placements.length>0&&!e.Placements[0].Selector&&(e.Placements[0].Selector=r)})),t.passback.TrackingUrl=t.url,n.hb||Lt(t.passback,t.vcpmParams))):"complete"!==document.readyState&&setTimeout((function(){return e(t,n)}),100)};function jt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mt(){Mt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function f(){}function p(){}function h(){}var v={};c(v,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==t&&n.call(y,o)&&(v=y);var g=h.prototype=f.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t((function(i,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function T(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Ut(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wt(r.key),r)}}function Ht(e,t,n){return t&&Bt(e.prototype,t),n&&Bt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function qt(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var zt="Don't render tout",Gt="Use response fallback data",Yt=new WeakSet,Qt=function(){function e(t){Ft(this,e),qt(this,Yt),this.config=t,this.assetRequestUrl=t.assetUrl,this.assets=void 0}var t,n;return Ht(e,[{key:"getAssets",value:(t=Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.reject());case 2:case"end":return e.stop()}}),e)})),n=function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){Ut(o,r,i,a,s,"next",e)}function s(e){Ut(o,r,i,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})}]),e}();var Kt,Xt,Jt,Zt=Ht((function e(){Ft(this,e),this.assets={},this.trackers={},this.params={}})),$t=function(){function e(){Ft(this,e),this.viewable=[],this.primary=[]}return Ht(e,[{key:"addTrackerByType",value:function(e,t){switch(e){case"viewable":this.addViewableTracker(t);break;case"primary":this.addPrimaryTracker(t);break;default:this[e]=t}}},{key:"addViewableTracker",value:function(e){if(Array.isArray(e)){var t,n=jt(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.viewable.push(r)}}catch(e){n.e(e)}finally{n.f()}}else this.viewable.push(e)}},{key:"addPrimaryTracker",value:function(e){this.primary.push(e)}}]),e}();Kt=$t,Jt={VIEWABLE:"viewable",PRIMARY:"primary"},(Xt=Wt(Xt="TRACKER_TYPES"))in Kt?Object.defineProperty(Kt,Xt,{value:Jt,enumerable:!0,configurable:!0,writable:!0}):Kt[Xt]=Jt;var en=function(e,t){throw new Error("Implement!")};function tn(){return{parseData:en}}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){on(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function on(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an={title:"title",url:"url",authorlogo:"authorlogo",image:"image",author:"author",preview:"preview"},sn=rn(rn({},an),{},{cta:"ctaLabel",video:"video",clicktrackers:"clicktrackers"});function cn(e){this.config=e}cn.prototype.setParser=function(e){var t=new e(this.config);if(!(!t instanceof tn))return this.parser=t,this.parser},cn.prototype.parseData=function(e){if(this.parser)return this.parser.parseData(e)},cn.prototype.checkForMissingAssets=function(e){return Object.keys(an).filter((function(t){return!e.hasOwnProperty(t)}))};var ln=1,un=2,dn=12,fn=1,pn=2,hn=3,vn=["assets","eventtrackers"];function mn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yn(){tn.call(this),this.assetMap={title:{name:function(){return sn.title},value:function(e){return e.text}},link:{name:function(){return"merge"},value:function(e){var t={};return t[sn.url]=e.url,e.clicktrackers&&(t[sn.clicktrackers]=e.clicktrackers),t}},img:{name:function(e){return e===fn||e===pn?sn.authorlogo:e===hn?sn.image:void 0},value:function(e){return e.url}},data:{name:function(e){return e===ln?sn.author:e===un?sn.preview:e===dn?sn.cta:void 0},value:function(e){return e.value}},video:{name:function(){return sn.video},value:function(e,t){return null!=t&&Object.assign(e,t),e}},ext:{name:function(e){if(e.mediaSource)return"videoSources"},value:function(e){return e.mediaSource?e.mediaSource:e}}}}function gn(e){return function(e){if(Array.isArray(e))return bn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}yn.prototype=Object.create(tn.prototype),yn.prototype.parseData=function(e){var t=e.assets,n=e.eventtrackers,r=mn(e,vn),i=new Zt;return i.params=r,t&&(i.assets=this.parseAssets(t)),n&&(i.trackers=this.parseEventTrackers(n)),function(e){var t=e.assets,n=e.trackers;if(!t.clicktrackers)return;n.clickTrackingData={url:t.url,clicktrackers:t.clicktrackers},delete e.clicktrackers}(i),i},yn.prototype.parseAssets=function(e){var t=this;if(e){var n,r,i,o={};return e.forEach((function(e){null!=e&&Object.keys(e).filter((function(e){return t.assetMap[e]})).forEach((function(a){if(r=e[a],n=t.assetMap[a].name(r.type||r)){if("string"==typeof(i=t.assetMap[a].value(r)))try{i=D.decodeHtmlEntity(i)}catch(e){}"merge"===n?Object.assign(o,i):o[n]=i}}))})),o}},yn.prototype.parseEventTrackers=function(e){var t=new $t;return e.forEach((function(e){var n=e.url;1===e.event?t.addPrimaryTracker(n):2===e.event&&t.addViewableTracker(n)})),t};var wn=function(){this.processedData={parsed:null,missing:null}};wn.prototype.setFallbackData=function(e){this.fallbackData=e},wn.prototype.processData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yn;if(null==e&&null==this.fallbackData)return this;this.assetProcessor=new cn(this.config),this.assetProcessor.setParser(t),this.processedData.config=this.assetProcessor.config,this.assetArrayProcessOrder=[];var n=this.getAssetArray(this.fallbackData);if(n&&n.length>0){this.assetArrayProcessOrder.push(n);var r=n[0].eventtrackers||[];n[0].eventtrackers=r.concat.apply(r,gn(this.fallbackData.eventtrackers))}var i,o=this.getAssetArray(e);for(kn(o)&&(Tn(o,n),this.assetArrayProcessOrder.unshift(o));!this.processedData.parsed&&this.assetArrayProcessOrder.length;)(i=this.getNextProcessedDataSet())&&(this.processedData.parsed=i.parsed,this.processedData.missing=i.missing);return this.tryToFillMissingAssets(this.processedData),this},wn.prototype.hasBeenProcessed=function(){return this.processedData.parsed&&this.processedData.parsed.length>0},wn.prototype.getAssetArray=function(e){if(e)return e.ads?e.ads:[{assets:e.assets,eventtrackers:e.eventtrackers}]},wn.prototype.getNextProcessedDataSet=function(){var e=this.assetArrayProcessOrder[0];return this.assetArrayProcessOrder.shift(),this.processAssetArrays(e)},wn.prototype.processAssetArrays=function(e){var t=this;if(e){var n,r=[],i=[];return e.forEach((function(e){n=t.assetProcessor.parseData(e),r.push(n),i.push(t.assetProcessor.checkForMissingAssets(n.assets))})),{parsed:r,missing:i}}},wn.prototype.tryToFillMissingAssets=function(e){var t=e.missing.reduce((function(e,t){return e||Boolean(t.length)}),!1);if(t&&this.assetArrayProcessOrder.length){var n=this.getNextProcessedDataSet().parsed[0].assets;e.missing.forEach((function(t,r){t.forEach((function(t){n[t]&&(e.parsed[r].assets[t]=n[t])}))})),t&&this.assetArrayProcessOrder.length&&tryToFillMissingAssets(e)}};var En=wn;function Tn(e,t){if(e&&e.length&&t&&t.length)for(var n=0;n<e.length;n++){if(n>=t.length)return;var r=e[n],i=t[n];r.eventtrackers=Sn(r,i)}}function Sn(e,t){if(e.eventtrackers||t.eventtrackers)return e.eventtrackers=e.eventtrackers||[],t.eventtrackers=t.eventtrackers||[],e.eventtrackers.concat(t.eventtrackers)}function kn(e){return!(null==e||!Array.isArray(e))&&e.some((function(e){var t;return null===(t=e.assets)||void 0===t?void 0:t.some((function(e){return null==e.link}))}))}function Pn(){Pn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function f(){}function p(){}function h(){}var v={};c(v,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==t&&n.call(y,o)&&(v=y);var g=h.prototype=f.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t((function(i,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function T(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function An(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function In(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cn(r.key),r)}}function Cn(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function On(e,t){return(On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ln(e);if(t){var i=Ln(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Rn(this,n)}}function Rn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xn(e)}function xn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ln(e){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dn(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Nn(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var jn=new WeakSet,Vn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&On(e,t)}(s,e);var t,n,r,i,o,a=_n(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Dn(xn(t=a.call(this,e)),jn),t.type="DCO",t}return t=s,(n=[{key:"getAssets",value:(i=Pn().mark((function e(t){var n=this,r=arguments;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.length>1&&void 0!==r[1]&&r[1],e.abrupt("return",Nn(this,jn,Mn).call(this,t).then((function(e){return n.parseResponse(e)})).catch((function(e){return n.parseResponse()})));case 2:case"end":return e.stop()}}),e,this)})),o=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){An(o,n,r,a,s,"next",e)}function s(e){An(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e){return o.apply(this,arguments)})},{key:"parseResponse",value:function(e){var t=new En;return t.setFallbackData(this.config.fallbackAssets),t.processData(e),t.processedData.parsed}}])&&In(t.prototype,n),r&&In(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Qt);function Mn(e){return new Promise((function(t,n){e?D.ajax({method:"get",url:e,credentials:!0,success:function(e){e&&Object.keys(e).length>0&&t(e),n(Gt)},error:function(){n(Gt)}}):n(Gt)}))}var Un={content:{name:function(){return sn.title},value:function(e){return e}},desc:{name:function(){return sn.preview},value:function(e){return e}},url:{name:function(){return sn.url},value:function(e){return e}},source_display_name:{name:function(){return sn.author},value:function(e){return e}},thumbnail:{name:function(){return sn.image},value:function(e){return D.hasWebProtocol(e.url)?e.url:D.getProtocol()+e.url}}},Fn={"on-viewed":{type:function(){return"viewable"},value:function(e){return e}},pixels:{type:function(){return"pixels"},value:function(e){return e}},jsTrackers:{type:function(){return"jsTrackers"},value:function(e){return e}}};function Bn(){tn.call(this),this.dynamicAssetData=[]}function Hn(){Hn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function f(){}function p(){}function h(){}var v={};c(v,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==t&&n.call(y,o)&&(v=y);var g=h.prototype=f.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t((function(i,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function T(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Wn(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zn(r.key),r)}}function zn(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Gn(e,t){return(Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kn(e);if(t){var i=Kn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Qn(this,n)}}function Qn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kn(e){return(Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Bn.prototype=Object.create(tn.prototype),Bn.prototype.parseData=function(e){if(null!=e){var t=e.doc;return t&&this.parseAssets(t),this.dynamicAssetData}},Bn.prototype.parseAssets=function(e){var t=this;e.forEach((function(e){var n=new Zt;n.assets=t.parseAssetData(e),n.trackers=t.parseTrackerData(e),t.dynamicAssetData.push(n)}))},Bn.prototype.parseAssetData=function(e){if(e){var t,n,r,i,o={};return Object.keys(Un).forEach((function(a){(t=e[a])&&(r=(n=Un[a]).name(t),i=n.value(t),o[r]=i)})),o}},Bn.prototype.parseTrackerData=function(e){if(e){var t,n,r,i,o=new $t;return Object.keys(Fn).forEach((function(a){t=e[a],r=(n=Fn[a]).type(t),i=n.value(t),o.addTrackerByType(r,i)})),o}};var Xn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gn(e,t)}(s,e);var t,n,r,i,o,a=Yn(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).type="OUTBRAIN",t}return t=s,n=[{key:"getAssets",value:(i=Hn().mark((function e(t){var n,r=this,i=arguments;return Hn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]?i[1]:{},t){e.next=3;break}return e.abrupt("return",Promise.reject(new Error("No Outbrain JS URL supplied")));case 3:return e.abrupt("return",s.injectOutbrainJS(t).then((function(e){return s.callOutbrainRequest(n)})).then((function(e){return r.verifyResponse(e)})).then((function(e){return r.parseResponse(e)})));case 4:case"end":return e.stop()}}),e)})),o=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){Wn(o,n,r,a,s,"next",e)}function s(e){Wn(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e){return o.apply(this,arguments)})},{key:"verifyResponse",value:function(e){return new Promise((function(t,n){0===(null==e?void 0:e.doc.length)&&n(zt),t(e)}))}},{key:"parseResponse",value:function(e){var t=new Bn;return this.assets=t.parseData(e),this.assets}}],r=[{key:"injectOutbrainJS",value:function(e){return new Promise((function(t,n){try{D.appendScript(e,(function(){t()}),"NTV_OutbrainJS")}catch(e){n(e)}}))}},{key:"callOutbrainRequest",value:function(e){return new Promise((function(t,n){if(void 0!==window.OBR)try{OBR.extern.callRecs(e,(function(e){t(e)}))}catch(e){n(e)}else n("OBR doesn't exist on the window context")}))}}],n&&qn(t.prototype,n),r&&qn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Qt);function Jn(e,t,n){return n.replace(e,t)}var Zn=function(e,t,n){if(!e)return n;var r=function(e,t){return Object.keys(e).filter((function(n){return t[n]&&e[n]})).map((function(n){return t[n](e[n])})).reduce((function(e,t){return e.concat(t)}),[])}(e,t);return r?function(e,t){return e.reduce((function(e,t){return Jn(t.pattern,t.value,e)}),t)}(r,n):n};function $n(e){return e=(e=(e=(e=e.replaceAll('"',"\\u0022")).replaceAll("'","\\u0027")).replaceAll("<","\\u003c")).replaceAll(">","\\u003e")}var er={title:function(e){return[{pattern:/"@Title"/gi,value:'"'.concat(e,'"')},{pattern:/@Title/gi,value:"<ntv-title>".concat(e,"</ntv-title>")}]},url:function(e){return[{pattern:/@Url/gi,value:e}]},authorlogo:function(e){return[{pattern:/@authorlogo/gi,value:e}]},image:function(e){return[{pattern:/@Image/gi,value:e}]},author:function(e){return[{pattern:/(@Author)(?!Logo)/gi,value:e}]},preview:function(e){return[{pattern:/@Preview/gi,value:"<ntv-preview>".concat(e,"</ntv-preview>")}]},viewableImpTrackers:function(e){return[{pattern:/@dco_viewable_imp_tracker/gi,value:$n(e)}]},viewable:function(e){return[{pattern:/@dco_viewable_imp_tracker/gi,value:$n(e)}]}};function tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nr(r.key),r)}}function nr(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var rr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rawHtml=t,this.html=t}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.html=this.rawHtml}},{key:"fillTokensFromData",value:function(e){this.html=Zn(e,er,this.html)}},{key:"cleanTokens",value:function(){this.html=Jn(/(@dco_primary_imp_tracker|@dco_viewable_imp_tracker|@Author|@FullTitle|@Url|@Title|@Image|@Sponsored|@Preview|@authorlogo)/gi,"",this.html)}}])&&tr(t.prototype,n),r&&tr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,or(r.key),r)}}function or(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ar(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function sr(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var cr=new WeakSet,lr=new WeakSet,ur=new WeakSet,dr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ar(this,ur),ar(this,lr),ar(this,cr),this.tokenizedHtml=new rr(t)}var t,n,r;return t=e,(n=[{key:"html",get:function(){return this.tokenizedHtml.html}},{key:"applyDynamicAsset",value:function(e){this.applyDynamicAssetData(e.assets),this.applyDynamicAssetTrackers(e.trackers),this.cleanUpUnusedTokens()}},{key:"applyDynamicAssetData",value:function(e){void 0!==e&&this.tokenizedHtml.fillTokensFromData(e)}},{key:"applyDynamicAssetTrackers",value:function(e){var t=this;void 0!==e&&Object.keys(e).forEach((function(n){var r=e[n];switch(n){case $t.TRACKER_TYPES.VIEWABLE:sr(t,cr,fr).call(t,r);break;case $t.TRACKER_TYPES.PRIMARY:sr(t,lr,pr).call(t,r);break;default:sr(t,ur,hr).call(t,r)}}))}},{key:"cleanUpUnusedTokens",value:function(){this.tokenizedHtml.cleanTokens()}}])&&ir(t.prototype,n),r&&ir(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function fr(e){this.tokenizedHtml.fillTokensFromData({viewable:e.join("")})}function pr(e){e.forEach((function(e){return D.appendThirdPartyTracking(e)}))}function hr(e){e&&e.length&&D.handleThirdPartyTracking(e)}function vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mr(r.key),r)}}function mr(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function yr(e,t){gr(e,t),t.add(e)}function gr(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function br(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,Tr(e,t,"get"))}function wr(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function Er(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,Tr(e,t,"set"),n),n}function Tr(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}var Sr=new WeakMap,kr=new WeakSet,Pr=new WeakSet,Ar=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yr(this,Pr),yr(this,kr),function(e,t,n){gr(e,t),t.set(e,n)}(this,Sr,{writable:!0,value:void 0}),Object.assign(this,D.pick(t,"clickTrackerRedirect","previewImageResizer","authorImageResizer","allowHeadLineTrimming","maxHeadLineLength","maxPreviewLength","usePreviewResizerForAssets")),Er(this,Sr,{image:function(e){return e=D.hasWebProtocol(e)?e:D.getProtocol()+e,n.usePreviewResizerForAssets?wr(n,kr,Ir).call(n,e,n.previewImageResizer):e},authorlogo:function(e){return wr(n,kr,Ir).call(n,e,n.authorImageResizer)},title:function(e){return n.allowHeadLineTrimming?wr(n,Pr,Cr).call(n,e,n.maxHeadLineLength):e},preview:function(e){return wr(n,Pr,Cr).call(n,e,n.maxPreviewLength)},url:function(e){return e=D.hasWebProtocol(e)?e:D.getProtocol()+e,null==n.clickTrackerRedirect?e:n.clickTrackerRedirect+encodeURIComponent(e)}})}var t,n,r;return t=e,(n=[{key:"conform",value:function(e,t){return br(this,Sr).hasOwnProperty(e)&&void 0!==t?br(this,Sr)[e](t):t}}])&&vr(t.prototype,n),r&&vr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ir(e,t){return t&&e&&t?t+encodeURIComponent(e):e}function Cr(e,t){return e&&t?e.length<t?e:e.substring(0,t):e}function Or(e,t){if(e)for(var n=new Ar(t),r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];e[o]=n.conform(o,e[o])}}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rr(r.key),r)}}function Rr(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function xr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function Lr(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,Nr(e,t,"get"))}function Dr(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,Nr(e,t,"set"),n),n}function Nr(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function jr(e,t,n){for(var r in n)null==e[r]&&Mr(e,r,Vr(t,n[r]))}function Vr(e,t){var n=Hr(e,t);if(null!=n)return n.value}function Mr(e,t,n){if(null!=n){var r=Hr(e,t);if(null!=r)return r.value=n,r.value}}var Ur=new WeakMap,Fr=new WeakMap,Br=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xr(this,Ur,{writable:!0,value:void 0}),xr(this,Fr,{writable:!0,value:void 0}),Dr(this,Ur,t),Dr(this,Fr,n)}var t,n,r;return t=e,(n=[{key:"value",get:function(){return Lr(this,Ur)[Lr(this,Fr)]},set:function(e){Lr(this,Ur)[Lr(this,Fr)]=e}}])&&_r(t.prototype,n),r&&_r(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hr(e,t){if(null!=t&&"string"==typeof t)return function e(t,n){if(null==t||null==n||!Array.isArray(n))return;if(1===n.length)return new Br(t,n[0]);var r=n.shift();if(!t.hasOwnProperty||!t.hasOwnProperty(r))return;return e(t[r],n)}(e,t.split("."))}var Wr=["assetUrl","requestConfig"],qr=["dcoEndpointUrl","assets","eventtrackers"];function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Xr="OUTBRAIN",Jr="DCO",Zr="CAROUSEL",$r=[Jr,Xr,Zr],ei=[Jr,Zr,Xr];var ti=function(e){var t,n=ni(e);if(!n)return Promise.reject("No flashtalk/dco data in ad");var r={ads:n.ads,eventtrackers:n.eventtrackers},i=n.adType,o=e.toutClickTracker,a=null===(t=n.config)||void 0===t?void 0:t.ctaLink;return n.config.clickTrackerRedirect=function(e,t,n){var r=$r.includes(e)||!n?t:n;return D.generateClickRedirect(r)}(i,o,a),new Promise((function(t,o){try{var a=n.assetUrl,s=n.requestConfig,c=Kr(n,Wr),l=function(e,t){return e===Xr?new Xn(t):new Vn(t)}(i,{fallbackAssets:r});n.config.usePreviewResizerForAssets="DCO"===i,l.getAssets(a,s).then((function(r){try{!function(e){if(!Array.isArray(e))throw"Dynamic Asset Data is not an Array";if(0===e.length)throw"No Dynamic Asset Data"}(r)}catch(e){return void o(e)}var a,s=Yr(r);try{for(s.s();!(a=s.n()).done;){var l=a.value;jr(l,e,{"assets.authorlogo":"advertiser.logo"}),Or(l.assets,n.config)}}catch(e){s.e(e)}finally{s.f()}if(ei.includes(i)){var u=new dr(e.html);u.applyDynamicAsset(r[0]),e.html=u.html}t({type:i,config:c,content:r})})).catch((function(e){o(e)}))}catch(e){D.postError(e),o(e)}}))};var ni=function(e){if(e)return e.dynamicAssets?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){Gr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.dynamicAssets):e.dcoResponse?ri(e.dcoResponse):void 0},ri=function(e){var t=e.dcoEndpointUrl,n=void 0===t?"":t,r=e.assets,i=void 0===r?[]:r,o=e.eventtrackers;return{adType:"DCO",assetUrl:n,ads:[{assets:i}],eventtrackers:void 0===o?{}:o,config:Kr(e,qr)}};function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ai=window.ntv||{};function si(e,t,n){var r=e,i=t,o=!0,a=!1,s=void 0,c=n.initialTimeout||100,l=n.lastTimeout||750,u=n.timeoutThreshold,d=null==n.scrollIncrement?15:n.scrollIncrement,f=n.startWaitTime,p=n.isPreview,h=n.customArgs,v=n.listenToMouse,m=n.isOverlay,y=n.heightRatio;function g(e){var t=!1;o&&(t=p?function(){var e=function(){var e=0,t=0,n=i.getBoundingClientRect(),o=.25*r.innerHeight,a=n.top-o,s=r.innerHeight+r.document.body.scrollTop;Math.abs(a)>d&&r.document.body.scrollHeight>s&&(t=a<0?-d:d);n.right>r.innerWidth&&(e=d);return{x:e,y:t}}(),t=e.x,n=e.y;if(0!=t||0!=n)return r.scrollBy(t,n),c=c<u?u:c*=.55,!1;if(!(!r||!r.document||"complete"!==r.document.readyState||a))return a=!0,c=l,!1;var o=i.dataset.prevStyle||"";return delete i.dataset.prevStyle,i.setAttribute("style",o),c=-1,!0}():function(){var e=h[0];if(!e)return;var t=i.children()[0],n=D.getOverflowDimensions(e).h*y,o=li(e,i,m,y).width;if(d&&function(e){var t=D.getElementViewability(e);if(t.visibleArea/t.totalArea<.5)return!1;return!0}(t)){var a=r.scrollTop,l=r.clientHeight,u=r.scrollHeight,f=a+d;f+l>=u?(f=0,c=2e3):c=100,r.scrollTop=f}n!=s&&(s=n);return t.setAttribute("style","width: "+o+" !important; height: "+s+"px !important; top: 0px !important; visibility: visible; border: none; position: relative;"),!1}()),!t&&c>0?D.setTimeout((function(){return g(e)}),c):e&&e()}return{execute:function(e){var t=ai.query;v&&(t(i).mouseover((function(){return o=!1})),t(i).mouseout((function(){return o=!0}))),D.setTimeout((function(){return g(e)}),f||0)}}}var ci=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.document,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{initialTimeout:150,startWaitTime:500,scrollIncrement:40,timeoutThreshold:15,lastTimeout:750,isPreview:!0};return new Promise((function(o){if("complete"===r.readyState){if(t){var a=t;if(a.length&&(a=a.length>1?a[0].parentNode:a[0]),a=D.isInIframe(a)?a.ownerDocument.defaultView.frameElement||a:D.findLargestChild(a)){var s=D.getTopWindow();if(-1!==n.indexOf("h")){var c=a.getAttribute("style");a.setAttribute("style","box-shadow: 0px 0px 0px 10000px rgba(0,0,0,0.2); outline: 5px dashed lightblue; z-index: 9999999; position: relative;"+c),a.dataset.prevStyle=c}si(s,a,i).execute(o)}}}else D.setTimeout((function(){return e(t,n)}),0)}))};function li(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.4,i=e.ownerDocument.defaultView.getComputedStyle(e),o=e.parentNode.ownerDocument.defaultView.getComputedStyle(e.parentNode);if(t.css("paddingLeft","calc(".concat(i.paddingLeft," + ").concat(o.paddingLeft,")")),t.css("paddingRight","calc(".concat(i.paddingRight," + ").concat(o.paddingRight,")")),t.css("paddingTop","calc(".concat(i.paddingTop," + ").concat(o.paddingTop,")")),n){var a=D.getOverflowDimensions(e).h;t.css("position","absolute"),t.css("top",Math.ceil(a*(1-r))),t.css("height",Math.ceil(a*r)),t.css("left",0)}else t.css("height","auto"),t.css("visibility","visible");return t.css("zIndex",1),i}var ui=function(e,t,n,r){if(!mi(e)){var i=e.selector;if(i&&!mi(e=D.domQueryUp("".concat(i,":not(.").concat("ntv-isi-activated",")"))))return void D.postError(new Error("activateISI() target node not found. targetSelector:".concat(i,", isi_id:").concat(t)))}var o,a=function(e){if(!e)return;if(!e.length)return e.dataset.ntvIsi="true",e;for(var t=0;t<e.length&&e[t].dataset.ntvIsi;t++);if(t>=e.length)return;return e[t].dataset.ntvIsi="true",e[t]}(e);a&&(a.classList.add("ntv-isi-activated"),("IMG"===(o=a.tagName)?di:"VIDEO"===o?fi:pi)(a,t,n,r))};function di(e,t,n,r){A(e,(function(){var i=vi(e);hi(e,t,n,r,i)}))}function fi(e,t,n,r){hi(e,t,n,r,vi(e))}function pi(e,t,n,r){hi(e,t,n,r,e.parentNode)}function hi(e,t,n,r,i){var o=e.ownerDocument;i=i||e.parentNode;var a=r.isOverlay,s=void 0===a||a,c=r.heightRatio,l=isNaN(c)?s?.4:.5:c,u=prdom.query("#"+t+"-wrapper",o),d=D.getOverflowDimensions(e,e.parentNode).h*l,f=prdom.query("#"+t,o)[0],p=li(e,u,s,l);if(null!=f.getAttribute("data-ntv-body")){i.appendChild(u[0]),f.setAttribute("style","width: "+p.width+" !important; height: "+d+"px !important; top:0px !important; visibility: visible; border: none; position: relative;");var h=D.writeIframe(f,"",unescape(f.getAttribute("data-ntv-header")),unescape(f.getAttribute("data-ntv-body")));f.removeAttribute("data-ntv-header"),f.removeAttribute("data-ntv-body"),si(h.querySelector("#ntv-isi-content",o),u,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach((function(t){oi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({listenToMouse:!0,startWaitTime:500,scrollIncrement:n,customArgs:[e],heightRatio:l},r)).execute()}}function vi(e){var t=P(e);return"static"===getComputedStyle(t).position&&(t.style.position="relative"),t}function mi(e){return!(null==e||e.hasOwnProperty("length")&&0===e.length)}var yi=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e,r=0,i=n?n-1:0,o=0,a=o===r,s=o===i,c=o,l=!1,u=0,d=t;function f(){return u=1,h(o+1)}function p(){return u=-1,h(o-1)}function h(e){return e=d?e>i?r:e<0?i:e:Math.max(Math.min(e,i),r),a=!d&&e===r,s=!d&&e===i,e}function v(e){return e!=o?(l=!0,c=o,o=e):(l=!1,u=0),o}return{curIndex:function(){return o},prevIndex:function(){return c},direction:function(){return u},atStart:function(){return a},atEnd:function(){return s},hasChanged:function(){return l},next:function(){return v(f())},prev:function(){return v(p())},go:function(e){return v(h(e))},length:function(){return n}}},gi=function(e){return new Promise((function(t,n){e||n();!function n(){bi(e)?t():requestAnimationFrame((function(){n()}))}()}))},bi=function(e){return e.naturalWidth>0&&e.naturalHeight>0};function wi(e){return function(e){if(Array.isArray(e))return Ei(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ei(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ti(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Si(r.key),r)}}function Si(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var ki={autoAdvance:!0,autoAdvanceWaitDuration:5e3,autoAdvanceTimeoutID:null,animated:!0,looped:!0,cta:"Shop Now",stylesId:"ntv-native-carousel-styles",stylesUrl:"https://s.ntv.io/css/native-carousel.css"},Pi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=t.id,this.slideData=t.slideData,this.config=Object.assign(ki,t.config),this.mediaElements=[],this.state={resizing:!1,userInteracted:!1},this.ratio=this.config.previewImageHeight&&this.config.previewImageWidth?this.config.previewImageHeight/this.config.previewImageWidth:0,this.ready=t.ready||function(){},this.update=t.update||function(){},this.state={slideIterator:new yi(t.slideData.length,this.config.looped),ui:{}},this.navigationActions={next:this.navigateNext,prev:this.navigatePrevious,click:this.clickOut},this.element=this.config.document.createElement("div"),this.element.classList.add("ntv-carousel"),this.element.style="\n      overflow: hidden;\n      position: absolute;\n      width: 100%;\n      height: auto;\n      top: 0;\n      bottom: 0;\n      left: 0;\n      ",this.iframe=document.createElement("iframe"),this.iframe.id=this.id,this.iframe.classList.add("ntv-carousel-iframe"),this.iframe.setAttribute("scrolling","no"),this.iframe.style="\n        border: 0;\n        position: absolute;\n        left: 0;\n        top: 0;\n        width: 100%;\n        height: 100%;\n    ",this.iframe.addEventListener("load",this.init.bind(this),{once:!0}),this.iframe.src="about:blank",this.element.appendChild(this.iframe)}var t,n,r;return t=e,(n=[{key:"init",value:function(){var e,t,n,r=this;this.document=D.writeIframe(this.iframe,"",this.generateStyles(),""),this.body=D.domQuery("body",this.document),this.anchor=document.createElement("a"),this.anchor.setAttribute("target","_blank"),this.frameContainer=this.document.createElement("div"),this.frameContainer.classList.add("ntv-carousel-container"),this.anchor.appendChild(this.frameContainer),this.body.appendChild(this.anchor),this.createMediaElements().then((function(e){gi(e).then((function(){r.setIframeRatio(e),r.setupNavigationUI(),r.updateUI(),r.ready()})).catch((function(){}))})).catch((function(){})),t=(e={focus:function(e){return r.resume()},blur:function(e){return r.pause()}}).focus,n=e.blur,D.onFocusEvents.push((function(){return D.isOnFocus()&&t?t():n?n():void 0}))}},{key:"createMediaElements",value:function(){var e=this;return new Promise((function(t,n){var r,i=!1;e.setIframeRatio.bind(e),e.slideData.forEach((function(o,a){if((r=e.document.createElement(o.asset.tag)).classList.add("ntv-carousel-item"),0===a){if(!bi(r))switch(i=!0,o.asset.tag){case"img":r.addEventListener("load",(function(){t(this)}),{once:!0}),r.addEventListener("error",(function(e){n(e)}),{once:!0})}}else r.classList.add("right");r.src=o.asset.src,e.frameContainer.appendChild(r),e.mediaElements.push(r)})),i||t()}))}},{key:"pause",value:function(){this.stopAnimation(),this.pauseAutoAdvance()}},{key:"resume",value:function(){this.resumeAutoAdvance()}},{key:"stopAnimation",value:function(){this.config.animated,this.mediaElements.forEach((function(e){e.classList.remove("animated")}))}},{key:"setIframeRatio",value:function(e){this.iframe.width=e.width,this.iframe.height=e.height,this.ratio=e.height/e.width}},{key:"generateStyles",value:function(){return'<link rel="stylesheet" id='.concat(this.config.stylesId," href=").concat(this.config.stylesUrl,"></link>")}},{key:"setupNavigationUI",value:function(){var e;this.state.uiContainer=this.document.createElement("div"),this.state.uiContainer.id="ntv-carousel-ui",this.state.uiContainer.style.zIndex=100,this.state.ui.navPrev=this.generateOverlayButton(this.generateSVGPathElement("0 0 6 6",12,12,"m 4 1 l -2 2 l 2 2"),this.handleInteraction.bind(this,"prev"),"prev"),this.state.ui.navNext=this.generateOverlayButton(this.generateSVGPathElement("0 0 6 6",12,12,"m 2 1 l 2 2 l -2 2"),this.handleInteraction.bind(this,"next"),"next"),this.state.ui.navButton=this.generateOverlayButton(this.ctaLabelText(0),this.handleInteraction.bind(this,"click"),"click","ntv-carousel-click-label"),(e=this.state.uiContainer).append.apply(e,wi(Object.values(this.state.ui))),this.body.append(this.state.uiContainer)}},{key:"generateSVGPathElement",value:function(e,t,n,r){var i=this.document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox",e),i.setAttribute("width","".concat(t,"px")),i.setAttribute("height","".concat(n,"px"));var o=this.document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",r),o.setAttribute("fill","none"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-linecap","round"),i.appendChild(o),i}},{key:"generateOverlayButton",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"div",i=this.document.createElement(r);i.classList.add("label"),i.append(e);var o=this.document.createElement("div");return o.href="#",o.addEventListener("click",t),o.classList.add("ntv-carousel-nav"),n&&o.classList.add(n),o.appendChild(i),o}},{key:"updateState",value:function(){var e=this;this.updateUI();var t=this.state.slideIterator.curIndex(),n=this.state.slideIterator.prevIndex(),r=this.state.slideIterator.direction();this.hideSlide(n,r,this.config.animated),this.resetSlide(t).then((function(){e.showSlide(t,r,e.config.animated)})),this.state.complete||this.state.userInteracted||this.startSlideTimer(),this.update({curIndex:t,prevIndex:n})}},{key:"hideSlide",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.mediaElements[e];r.style.zIndex=5,setTimeout((function(){r.style.zIndex=1}),250),r.classList.add(t>0?"left":"right"),n&&!this.state.resizing&&r.classList.add("animated")}},{key:"showSlide",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.mediaElements[e];i.style.zIndex=50,i.classList.remove("animated","left","right"),0!==t&&i.classList.add(t>0?"right":"left"),requestAnimationFrame((function(){i.classList.remove("right","left"),r&&!n.state.resizing&&i.classList.add("animated")}))}},{key:"resetSlide",value:function(e){var t=this;return new Promise((function(n){t.mediaElements[e].classList.remove("show","left","right","animated"),requestAnimationFrame(n)}))}},{key:"updateUI",value:function(){if(this.state.ui.navNext&&this.state.ui.navNext.setAttribute("disabled",this.state.slideIterator.atEnd()),this.state.ui.navPrev&&this.state.ui.navPrev.setAttribute("disabled",this.state.slideIterator.atStart()),this.state.ui.navButton){var e=this.ctaLabelText(this.state.slideIterator.curIndex());this.state.ui.navButton.style.display=e?"block":"none",this.state.ui.navButton.querySelector(".label").textContent=e||this.config.cta}this.anchor.href=this.slideData[this.state.slideIterator.curIndex()].cta.url}},{key:"ctaLabelText",value:function(e){return this.slideData[e].cta.label}},{key:"handleInteraction",value:function(e,t){t.stopPropagation(),t.preventDefault(),this.state.userInteracted=!0,this.navigate(e)}},{key:"navigate",value:function(e){this.clearSlideTimer(),this.navigationActions[e]&&this.navigationActions[e].call(this)}},{key:"navigateNext",value:function(){this.state.slideIterator.next(),this.state.slideIterator.hasChanged()&&this.updateState()}},{key:"navigatePrevious",value:function(){this.state.slideIterator.prev(),this.state.slideIterator.hasChanged()&&this.updateState()}},{key:"clickOut",value:function(){U(this.slideData[this.state.slideIterator.curIndex()].cta.url,"_blank")}},{key:"clearSlideTimer",value:function(){this.config.autoAdvanceTimeoutID&&clearTimeout(this.config.autoAdvanceTimeoutID)}},{key:"startSlideTimer",value:function(){this.config.autoAdvance&&(this.clearSlideTimer(),this.state.slideIterator.atEnd()?this.state.complete=!0:this.config.autoAdvanceTimeoutID=setTimeout(this.navigateNext.bind(this),this.config.autoAdvanceWaitDuration))}},{key:"pauseAutoAdvance",value:function(){this.clearSlideTimer()}},{key:"resumeAutoAdvance",value:function(){this.config.autoAdvance&&this.startSlideTimer()}}])&&Ti(t.prototype,n),r&&Ti(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ci={title:[{tag:"ntv-title",attribute:""},{tag:"a",attribute:"title"},{tag:"img",attribute:"title"},{tag:"span",attribute:"title"}],url:[{tag:"a",attribute:"href"}],authorlogo:[{tag:"img",attribute:"src"}],image:[{tag:"img",attribute:"src"}],author:[{tag:"a",attribute:"title"},{tag:"img",attribute:"alt"}],preview:[{tag:"ntv-preview",attribute:""}],cta:[{tag:"",attribute:""}]},Oi=function(e){var t,n={};return Object.keys(e).forEach((function(r){t=e[r],Ci[r]&&(n[r]={value:t,usage:Ci[r].map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){Ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)}))},n[r].usage.forEach((function(e){e.selector="".concat(e.tag).concat(e.attribute&&""!=e.attribute?"[".concat(e.attribute,'*="').concat(t,'"]'):"")})))})),n},_i=(D.getTopWindow(),1),Ri=2;function xi(e,t,n,r,i){var o,a,s,c=(a=null==(o=i)?void 0:o.adID,s=null==o?void 0:o.placementID,null==a&&null==s?{}:Eh(D.clientUtils.generateAdPlacementId(a,s))||{}),l={},u=function(){var t;try{switch(n){case Ri:t=D.appendScript(e);break;case _i:default:t=D.appendImage(e)}return{type:n,data:t}}catch(e){}},d=function(){var e;try{if(t.length){var n=i&&(i.node||dp.adsMap[i.placementID+" "+i.adID]&&dp.adsMap[i.placementID+" "+i.adID].node);e=D.handleThirdPartyTracking(t,n)}return e}catch(e){}},f=(null==c?void 0:c.isProgrammatic)||!1,p=Math.floor(1e16*Math.random());f||p>5e15?(l.third=d(),l.first=u()):(l.first=u(),l.third=d());var h=function(e){return/(ntv_at=)([0-9,]+)/gi.test(e)?e.match(/(ntv_at=)([0-9,]+)/gi)[0].split("=")[1]:""}(e);return i&&"object"==typeof i?(i.actionType=h,l.additionalInfo=i):(!isNaN(h)||isNaN(h)&&h.split(",").length)&&(l.additionalInfo={actionType:h}),l}function Li(){var e;return arguments.length<=2?e=Cp.apply(this,arguments):(e=xi.apply(this,arguments),ntv.Events.PubSub.publish("tracking",e.additionalInfo)),e}function Di(e){var t=this,n=e.baseTrackingUrl,r=e.adID,i=e.adVersionPlacement,o=e.thirdPartyTrackers,a=void 0===o?[]:o,s=e.params,l=void 0===s?{}:s;this.baseTrackingUrl=n,this.adID=r,this.adVersionPlacement=i,this.thirdPartyTrackers=a,this.slideID=l.slideID||void 0,this.extraQS=l.extraQS||"",this.fired={},this.slideID&&-1===this.extraQS.indexOf(c.SLIDE_ID)&&(this.extraQS+="&".concat(c.SLIDE_ID,"=").concat(this.slideID)),this.fireViewTracker=function(){t.sendTrackingData([mh.gallery])}}function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){Vi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vi(e,t,n){return(t=Ui(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ui(r.key),r)}}function Ui(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}D.insertTracking=xi,Di.prototype.sendTrackingData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((!this.fired[e]||n)&&void 0!==this.baseTrackingUrl){var r=yh(this.baseTrackingUrl,e.join(),this.adID,this.adVersionPlacement);r+=this.extraQS,this.fired[e]=r;var i="";e.forEach((function(e){t.thirdPartyTrackers[e]&&(i+=t.thirdPartyTrackers[e])})),xi(r,i,1)}};var Fi={document:window.slideElement?D.getTopWindow().document:window.document,resizeTimeoutDuration:100},Bi=function(){function e(t){var n=this,r=t.node,i=void 0===r?null:r,o=t.ad,a=void 0===o?null:o,s=t.content,c=void 0===s?{}:s,l=t.config,u=void 0===l?{}:l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=ji(ji({ad:a},Fi),u),this.config.node=i||this.config.document,this.state={ui:{},complete:!1,resizing:!1,resizeTimeout:null},this.slideData=c,this.slideData.forEach((function(e){e.assetUsage=Oi(e.assets)}));var d,f=(d=a.response)&&gh.get(d)||{};if(this.trackers=this.slideData.map((function(e){return new Di({baseTrackingUrl:f.trackingBaseUrl,adID:a.id,adVersionPlacement:a.adVersionPlacement||f.adVersionPlacement,params:e.params})})),this.previewElement=this.getPreviewElement(),this.previewElement){this.state.parentSyncElement=this.determineParentSyncElement(this.previewElement),this.mediaCarousel=new Pi({id:"ntv-native-carousel-".concat(a.id),slideData:this.slideData.map((function(e){return{asset:{tag:"img",src:e.assets.image},cta:{label:e.assets.cta,url:e.assets.url},slideID:e.params?e.params.slideID:void 0}})),config:this.config,update:this.updateState.bind(this),ready:function(){n.fireViewTracker(),gi(n.previewElement).then((function(){n.swapPreviewToGallery()})).catch((function(){}))}}),""===this.config.node.style.position&&(this.config.node.style.position="relative"),this.config.node.append(this.mediaCarousel.element),this.mediaCarousel.element.style.visibility="hidden";var p=this.config.node.querySelector(".ntv-disc");p&&!p.style.zIndex&&(p.style.zIndex=1),this.config.node.addEventListener("mouseenter",this.mediaCarousel.pauseAutoAdvance.bind(this.mediaCarousel)),this.config.node.addEventListener("mouseleave",this.mediaCarousel.resumeAutoAdvance.bind(this.mediaCarousel)),function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;D.getElementViewability(t).visible?n&&"function"==typeof n&&n():setTimeout((function(){e(t,n)}),r)}(this.config.node,this.mediaCarousel.startSlideTimer.bind(this.mediaCarousel)),window.addEventListener("resize",this.handleResize.bind(this))}}var t,n,r;return t=e,(n=[{key:"swapPreviewToGallery",value:function(){this.syncWithPreview(),this.previewElement.style.visibility="hidden",this.mediaCarousel.element.style.visibility="visible"}},{key:"determineParentSyncElement",value:function(e){var t=e.parentNode,n=getComputedStyle(t),r=D.getElementDimensions(t);return"A"!=t.tagName&&"inline"!==n.display&&r.w>0&&r.h>0?t:t.id&&t.id.indexOf("ntv".concat(this.config.ad.placement))?this.previewElement:this.determineParentSyncElement(t)}},{key:"handleResize",value:function(){var e=this;this.state.resizing||(this.state.resizing=!0,this.mediaCarousel.stopAnimation(),this.mediaCarousel.resizing=!0),this.state.resizeTimeout&&clearTimeout(this.state.resizeTimeout),this.state.resizeTimeout=setTimeout((function(){e.state.resizing=!1,e.mediaCarousel.state.resizing=!1}),this.config.resizeTimeoutDuration),this.syncWithPreview()}},{key:"syncWithPreview",value:function(){var e=this.config.node.getBoundingClientRect(),t=this.previewElement.getBoundingClientRect();this.mediaCarousel.element.style.left="".concat(t.left-e.left,"px"),this.mediaCarousel.element.style.top="".concat(t.top-e.top,"px"),this.mediaCarousel.frameContainer.style.width="".concat(this.previewElement.width,"px"),this.mediaCarousel.frameContainer.style.height="".concat(this.previewElement.height,"px");var n=this.getSyncDimensions();this.mediaCarousel.element.style.width="".concat(n.w,"px"),this.mediaCarousel.element.style.height="".concat(n.h,"px"),this.mediaCarousel.state.uiContainer.style.width="".concat(n.w,"px"),this.mediaCarousel.state.uiContainer.style.height="".concat(n.h,"px"),this.mediaCarousel.element.style.overflow=n.h<this.previewElement.height?"hidden":"auto"}},{key:"getSyncDimensions",value:function(){var e=D.getElementDimensions(this.state.parentSyncElement),t=D.getElementDimensions(this.previewElement);return(0===e.w||e.w>t.w)&&(e.w=t.w),(0===e.h||e.h>t.h)&&(e.h=t.h),e}},{key:"getPreviewElement",value:function(){return this.slideData[0].assetUsage.image?this.config.node.querySelector(this.slideData[0].assetUsage.image.usage[0].selector):void 0}},{key:"fireViewTracker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.trackers[e];t&&t.fireViewTracker()}},{key:"updateState",value:function(e){this.updateContent(e),this.fireViewTracker(e.curIndex)}},{key:"updateContent",value:function(e){var t=this,n=this.slideData[e.curIndex].assetUsage,r=this.slideData[e.prevIndex].assetUsage;Object.keys(n).forEach((function(e){if("image"!==e&&"cta"!==e){var i=n[e],o=r[e],a=i.usage,s=o.usage;a.forEach((function(e,n){if(s[n].selector&&o.value!==i.value){var r=e.attribute;t.config.node.querySelectorAll(s[n].selector).forEach((function(e){r&&""!=r?e.setAttribute(r,e.getAttribute(r).replace(o.value,i.value)):e.textContent=e.textContent.replace(o.value,i.value)}))}}))}}))}}])&&Mi(t.prototype,n),r&&Mi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Hi={src:"",sources:""};function Wi(e,t){var n={};return Object.keys(e).forEach((function(r){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t,n){n[e]=t},r={preview:function(e,t){t.text=e},html:function(e,t){t.html=e,t.type="html"},image:function(e,n){t.lazyLoad?n.src='data-splide-lazy="'.concat(e,'"'):n.src='src="'.concat(e,'"'),n.type="image"},video:function(e,t){e&&"string"==typeof e&&(t.src='src="'.concat(e,'"'),t.type="video")},videoSources:function(e,t){t.sources=Yi(e),t.type="video"},url:function(e,t){null!=e&&"string"==typeof e&&""!==e.trim()&&(t.ctaLink=e)}};return r[e]||n}(r,t)(e[r],n)})),function(e){void 0===e.type&&(e.type="html",e.html=e.text,e.text="")}(n),function(e){var t;!e.ctaLink&&null!==(t=e.link)&&void 0!==t&&t.url&&(e.ctaLink=e.link.url)}(n),n}var qi=/(@)(\w+)/g;function zi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:templates,n=t.slide,r=t.media,i=e.type;return void 0!==r[i]&&(e.media=Gi(e,r[i])),Gi(e,n)}function Gi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(t,r,i){var o,a,s=null!==(o=null!==(a=e[i])&&void 0!==a?a:e[n[i]])&&void 0!==o?o:Hi[i];return void 0!==s?s:r+i};return t.replaceAll(qi,r)}function Yi(e){if(e&&"object"==typeof e)return Object.values(e).reduce((function(e,t,n){return"".concat(e).concat(0!==n?"\n":"").concat((r=t.src,i=t.type,'<source src="'.concat(r,'" type="').concat(i,'">')));var r,i}),"")}function Qi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||Ki(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ki(e,t){if(e){if("string"==typeof e)return Xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xi(e,t):void 0}}function Xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ji(e){var t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",e),t.firstElementChild}function Zi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:DCO_REPLACEMNT_MAP;if(e)return Ji(e=Gi(t,e,n))}function $i(e,t){var n=e;D.adBlocker&&(n=n.replace(c.ASSETS_PREFIX+D.getServerDomain(),D.getServerDomain())),-1==e.indexOf("fetch")&&(e.indexOf(c.ASSETS_DOMAIN)>=0&&(n=e.replace("//".concat(c.ASSETS_DOMAIN,"/"),"")),e.indexOf(c.ASSETS_DOMAIN_DEV)>=0&&(n=e.replace("//".concat(c.ASSETS_DOMAIN_DEV,"/"),"")),n=n.replace(/(^\w+:|^)/,""));var r=t.querySelector('img[src*="'.concat(n,'"]'));return r||(r=t.querySelector('img[src*="'.concat(encodeURIComponent(n),'"]'))),r?{element:r,attribute:"src"}:{element:r=t.querySelector('[data-img-src*="'.concat(n,'"]')),attribute:"data-img-src"}}function eo(e){D.onFocusEvents.push(e)}function to(e,t){try{var n=new URL(t),r=n.searchParams,i={};r.has(c.REDIRECT)&&(i[c.REDIRECT]=r.get(c.REDIRECT),r.delete(c.REDIRECT)),r.has(c.SLIDE_ID)?r.set(c.SLIDE_ID,e):r.append(c.SLIDE_ID,e);for(var o=0,a=Object.entries(i);o<a.length;o++){var s=Qi(a[o],2),l=s[0],u=s[1];r.append(l,u)}return n.href}catch(e){return t}}function no(e){var t=D.domQuery(e);t||(t=D.domQuery("body"));var n=t.getElementsByTagName("a");if(n){var r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ki(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(n);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.getAttribute("href");o.getAttribute("target")&&-1!==a.indexOf("javascript:")&&o.setAttribute("target","_self")}}catch(e){i.e(e)}finally{i.f()}}}function ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,io(r.key),r)}}function io(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var oo=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=io(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"clear",(function(){t.map.clear()})),this.map=new ao,this.trigger=this.publish,this.on=this.subscribe,this.off=this.unsubscribe}var t,n,r;return t=e,(n=[{key:"subscribe",value:function(e,t,n){this.map.addPubSubEntry(e,t,n)}},{key:"unsubscribe",value:function(e,t,n){this.map.removePubSubEntry(e,t,n)}},{key:"publish",value:function(e,t){this.map.getPubSubscribers(e).forEach((function(e){"function"==typeof e&&e(t)}))}}])&&ro(t.prototype,n),r&&ro(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ao(){var e=this,t={};this.addPubSubEntry=function(e,n,r){t.hasOwnProperty(e)||(t[e]={}),r?t[e][r]=n:t[e][n]=n},this.removePubSubEntry=function(e,n,r){t.hasOwnProperty(e)&&t[e].hasOwnProperty(n)&&(r?delete t[e][r]:delete t[e][n])},this.removePub=function(e){t.hasOwnProperty(e)&&delete t[e]},this.getPubSubscribers=function(e){return t.hasOwnProperty(e)?Object.values(t[e]):[]},this.hasSubscribers=function(t){e.getPubSubscribers(t).length},this.clear=function(){t={}}}var so=oo;function co(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uo="style",fo="js",po=function(e){var t=e.id,n=e.url,r=e.onComplete,i=void 0===r?function(){}:r,o=e.target,a=void 0===o?document:o;return new Promise((function(r){D.appendScript(n,(function(t){e.element=t,i(),r()}),t,a)}))},ho=function(e){var t=e.id,n=e.url,r=e.target,i=void 0===r?document:r;return new Promise((function(r){D.ntvAppendStylesheet(t,n,i,(function(t){e.element=t,r()}))}))};function vo(e){var t=[];if(e&&Array.isArray(e)&&e.length>0){var n,r,i=co(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.push(((r=o.type)===uo?ho:r===fo?po:void 0)(o))}}catch(e){i.e(e)}finally{i.f()}return Promise.all(t)}}var mo={OPEN:"open",OPEN_COMPLETE:"openComplete",CLOSE:"close",CLOSE_COMPLETE:"closeComplete"};function yo(e){var t=e.id,n=e.selectorPrefix,r=void 0===n?"ntv":n,i=e.attributes;this.modal=function(e){var t=document.createElement("div");Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}));var n=document.createElement("div");return n.classList.add("ntv-modal-content"),t.append(n),{element:t,content:n}}(i);var o="".concat(r,"-modal");this.modal.element.classList.add(o,"ntv-modal"),this.modal.element.id="".concat(r,"-modal-").concat(t),this.modal.content.id="".concat(this.modal.element.id,"-content");var a=document.createElement("div");a.style.position.absolute,a.append(this.modal.element),this.element=a,this.modalContent=this.modal.content,this.state={open:!1,hasBeenOpen:!1,autoClose:!1},this.autoCloseTimeout=0,Object.defineProperty(this,"isOpen",{get(){return this.state.open}}),this.AddVendorEvents(),this.pubSub=new so,this.dependencies=[{id:"ntvModalCss",type:"style",url:c.DEPENDENCIES.MODAL_CSS,target:a}],vo(this.dependencies)}yo.prototype.AddVendorEvents=function(){var e=this;!function(e,t,n){[n.toLowerCase(),"webkit".concat(n),"MS".concat(n),"o".concat(n)].forEach((function(n){return e.addEventListener(n,t,!1)}))}(this.modal.element,(function(t){t.target===e.modal.element&&(e.modal.element.classList.contains("closed")?(e.modal.element.style.display="none",e.modal.element.classList.remove("closed"),e.modal.element.classList.remove("animated"),e.pubSub.publish(mo.CLOSE_COMPLETE)):e.modal.element.classList.contains("open")&&e.pubSub.publish(mo.OPEN_COMPLETE))}),"TransitionEnd")},yo.prototype.appendContent=function(e){this.modalContent.append(e)},yo.prototype.on=function(e,t){this.pubSub.subscribe(e,t)},yo.prototype.off=function(e,t){this.pubSub.unsubscribe(e,t)},yo.prototype.open=function(){var e=this;this.clearAutoClose(),this.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.state.open=!0,this.modal.element.style.display="block",this.pubSub.publish(mo.OPEN,this.state.hasBeenOpen),this.state.hasBeenOpen=!0,setTimeout((function(){e.state.open&&(e.modal.element.classList.add("animated"),e.modal.element.classList.remove("closed"),e.modal.element.classList.add("open"))}),100)},yo.prototype.close=function(){this.clearAutoClose(),document.body.style.overflow=this.bodyOverflow,this.state.open=!1,this.modal.element.classList.remove("open"),this.modal.element.classList.add("closed"),this.pubSub.publish(mo.CLOSE)},yo.prototype.startAutoClose=function(){var e=this;this.state.autoClose=!0,this.autoCloseTimeout=setTimeout((function(){e.close()}),6e3)},yo.prototype.clearAutoClose=function(){this.state.autoClose=!1,this.autoCloseTimeout&&clearTimeout(this.autoCloseTimeout)};var go={adId:-1,adVersionPlacement:"",content:{advertiser:"",advertiserLogo:"",sponsoredLabel:"Sponsored",ctaLink:"",ctaLabel:"Learn More"},baseTrackingUrl:"",adWrapperClass:"",stories:[],autoCloseTimeout:15,thirdPartyTrackers:{},previewImage:"",elementId:"ntv-stories-modal",stylesId:"ntv-stories-styles",dependencies:[{id:"storiesCss",type:"style",url:c.DEPENDENCIES.STORIES_AD_CSS}],storiesIcon:"//s.ntv.io/img/story-icon.svg",closeIcon:"//s.ntv.io/img/close-icon.svg",slideViewCallback:function(e){},useGestures:!0,useBackgroundBlur:!1},bo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.visible=e.visible||!1,this.totalArea=e.totalArea||0,this.ratioInView=e.ratioInView||0,this.xInView=e.xInView||0,this.yInView=e.yInView||0},wo={VIEWABLE_CHANGE:"VIEWABLE_CHANGE"};function Eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,To(r.key),r)}}function To(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var So=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tracker=t,this.id=this.tracker.id,this.element=this.tracker.element,this.checkOnFocus=this.tracker.checkOnFocus,this.selector=this.tracker.selector,this.isInvTracking=this.tracker.isInvTracking,this.minimumAreaViewable=this.tracker.minimumAreaViewable,this.checkMinimumAreaViewable=this.tracker.checkMinimumAreaViewable,this.pubsub=new so}var t,n,r;return t=e,(n=[{key:"addViewableEventListener",value:function(e,t){null!=wo[e]&&this.pubsub.subscribe(wo[e],t)}},{key:"removeViewableEventListener",value:function(e,t){null!=wo[e]&&this.pubsub.unsubscribe(wo[e],t)}},{key:"dispose",value:function(){this.pubsub.clear()}},{key:"isInFocus",value:function(){return!this.checkOnFocus||D.isOnFocus()}},{key:"isInView",value:function(){return!0}}])&&Eo(t.prototype,n),r&&Eo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ko(e){return function(e){if(Array.isArray(e))return Po(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Po(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Po(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Po(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ao(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Io(r.key),r)}}function Io(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Co(){return(Co="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Oo(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function Oo(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Lo(e)););return e}function _o(e,t){return(_o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lo(e);if(t){var i=Lo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xo(this,n)}}function xo(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Lo(e){return(Lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Do=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_o(e,t)}(o,e);var t,n,r,i=Ro(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).type="ElementViewability",t.elements=[],dp.viewableImpressionTrackers.push(t.tracker),No(),t}return t=o,(n=[{key:"isInView",value:function(e){return this.getDefaultViewability(e)}},{key:"dispose",value:function(){Co(Lo(o.prototype),"dispose",this).call(this),D.removeElementFromArray(dp.viewableImpressionTrackers,this.tracker),0==dp.viewableImpressionTrackers.length&&jo()}},{key:"getDefaultViewability",value:function(e){var t=0,n=0,r=!0;if(this.elements||(this.elements=[]),0==this.elements.length){if(this.elements=D.isElement(this.selector)?[this.selector]:ko(D.domQueryAll(this.selector)),0===this.elements.length){var i=dp.referencePlacementPositions[this.selector];this.elements=i?ko(i):[]}0==this.elements.length&&(this.elements=ko(D.domQueryAll(this.selector,D.getTopWindow().document)))}var o=this.elements;if(o.length>0){this.isInvTracking&&(o=[o[0]]);for(var a=[],s=0;s<o.length;s++)try{var c=o[s];c.level=1,this.getValidViewableElement(c,a)}catch(l){}if(0==a.length){var l=o[0];ntv.query(l).is(":hidden")&&(l=ntv.query(l).next()[0]||ntv.query(l).parent()[0]),a.push(l)}for(s=0;s<a.length;s++){var u=Uo(a[s],e);t+=u.totalArea,n+=u.ratioInView,r&=u.visible}return n/a.length>=this.minimumAreaViewable||!this.checkMinimumAreaViewable&&0==t&&r}return!1}},{key:"getValidViewableElement",value:function(e,t){if(D.isInIframe(e)){var n=D.breakOutIframe();if(n)return void t.push(n)}if(e.offsetWidth>0&&e.offsetHeight>0)t.push(e);else{var r=this;ntv.query(e).children().each((function(){this.level=e.level+1,this.level<=5&&r.getValidViewableElement(this,t)}))}}}])&&Ao(t.prototype,n),r&&Ao(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(So),No=function(){if(null==dp||!dp.viwabilityEventsCreated){var e=dp.internalPubSub;e.subscribe(a,Vo),e.subscribe(o,Vo),dp.viwabilityEventsCreated=!0}},jo=function(){var e=dp.internalPubSub;e.unsubscribe(a,Vo),e.unsubscribe(o,Vo),dp.viwabilityEventsCreated=!1},Vo=function(e){var t=dp.viewableImpressionTrackers,n=t.length;if(0!==n)for(var r,i=0;i<n;i++)(r=t[i])&&r.checkViewability(e)},Mo=ntv.query;function Uo(e,t,n){try{if(dp.safeFrame&&dp.safeFrame.api)return dp.safeFrame.api.getViewability()}catch(e){}if(!e)return new bo;var r,i,o,a,s,c,l,u;Object.getPrototypeOf(e).nquery&&(e=e[0]);try{var d=function(e){if(!e||!e.getBoundingClientRect)return{};if(!dp.setting.sdk)return e.getBoundingClientRect();if(!dp.sdkAPI.scrollRect)return;var t=e.getBoundingClientRect();return{y:t.y-dp.sdkAPI.scrollRect.y,y:t.x,top:t.top-dp.sdkAPI.scrollRect.y,right:t.right,bottom:t.bottom-dp.sdkAPI.scrollRect.y,left:t.left,width:t.width,height:t.height}}(e);r={top:d.top,right:d.right,bottom:d.bottom,left:d.left,width:d.width,height:d.height,x:d.x,y:d.y}}catch(e){return new bo}if(r.width||(r.width=e.offsetWidth),r.height||(r.height=e.offsetHeight),0==r.top&&0==r.right&&0==r.bottom&&0==r.left&&0==r.width&&0==r.height&&0==r.x&&0==r.y)return new bo;o=(i=Fo(e)).width,a=i.height+(n||0),s=0,c=0,s=r.top>=0?r.bottom>a?r.height-(r.bottom-a):r.height:r.height+r.top,r.left>=0?c=r.right>o?r.width-(r.right-o):r.width:(r.right>o&&(c=r.width-(r.right-o)),c+=r.width+r.left),l=0,c>0&&s>0&&(l=c*s),u=l>0||(r.top>=0&&r.top<=a||r.bottom>=0&&r.bottom<=a)&&(r.left>=0&&r.left<=o||r.right>=0&&r.right<=o)||void 0!==t&&void 0!==t.target&&void 0!==t.target.scrollingElement&&t.target.scrollingElement.scrollTop+i.height>=r.top&&t.target.scrollingElement.scrollTop+i.height<=r.top+i.height&&t.target.scrollingElement.scrollTop-i.height<r.top&&t.target.scrollingElement.scrollLeft+i.width>=r.left&&t.target.scrollingElement.scrollLeft+i.width<=r.left+i.width&&t.target.scrollingElement.scrollLeft-i.width<r.left&&0==e.offsetHeight;var f=r.width*r.height;return new bo({visible:u,totalArea:f,ratioInView:l/f,xInView:c>0?c/r.width:0,yInView:s>0?s/r.height:0})}function Fo(e){var t=screen&&screen.availWidth,n=screen&&screen.availHeight,r=e&&e.ownerDocument?e.ownerDocument.defaultView:window,i=r.innerWidth?r.innerWidth:Mo(r).width(),o=r.innerHeight?r.innerHeight:Mo(r).height();return{width:t?Math.min(t,i):i,height:n?Math.min(n,o):o}}function Bo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,n=e.left,r=void 0===n?.5:n,i=e.right,o=void 0===i?.5:i;if(r+o>1){var a=r+o;r/=a,o/=a}var s,c=!1;function l(){s=Fo(),c=!1}function u(e){var n=t.getBoundingClientRect(),r=e.x-n.x,i=e.y-n.y;return{x:r/n.width,y:i/n.height}}function d(e){return{x:e.x/s.width,y:e.y/s.height}}return window.addEventListener("resize",(function(){c=!0})),l(),function(e){c&&l();var n=t?u(e):d(e),i=n.x;n.y;return i<=r?"left":i>=1-o?"right":"center"}}function Ho(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}window.ntvGetElementViewability=Uo,D.getElementViewability=Uo;var qo="swipe",zo="swipeLeft",Go="swipeRight",Yo="swipeUp",Qo="swipeDown",Ko="hold",Xo="longHold",Jo="holdRelease",Zo="longHoldRelease",$o="click",ea="clickLeft",ta="clickRight";function na(e){var t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.useGestures,c=void 0===s||s,l=a.longHoldDuration,u=void 0===l?6e3:l,d=a.holdDuration,f=void 0===d?200:d,p=a.leftClickWidth,h=void 0===p?.2:p,v=a.rightClickWidth,m=void 0===v?.2:v,y=Bo({element:e,left:h,right:m}),g=new so,b=!1,w={interactionStart:function(e){i=setTimeout(w.hold,f),o=setTimeout(w.longHold,u),n=Date.now(),t=e.position,g.publish(Ko)},interactionMove:function(e){var i=Date.now();if(r=oa(t,e.position),n){var o=i-n;r.velocity={x:r.x/o,y:r.y/o}}n=i,t=e.position},interactionEnd:function(e){i&&clearTimeout(i),o&&clearTimeout(o),g.publish(Jo),b&&g.publish(Zo),r&&(T(Object.assign({},r)),b=!1,r=void 0)},hold:function(e){b=!0,g.publish(Ko)},longHold:function(e){b=!0,g.publish(Xo)},click:function(e){var t=y(e.position);"left"!==t?"right"!==t?g.publish($o):g.publish(ta):g.publish(ea)}};function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w.hasOwnProperty(e)&&w[e](t)}var T=function(e){Math.abs(e.y)>Math.abs(e.x)?k(e.y,e.velocity.y):S(e.x,e.velocity.x)},S=function(e,t){if(!(t&&Math.abs(t)<.15||Math.abs(e)<5)){if(e>0)return g.publish(qo,{direction:"left"}),void g.publish(zo);g.publish(qo,{direction:"right"}),g.publish(Go)}},k=function(e,t){if(!(t&&Math.abs(t)<.15||Math.abs(e)<2)){if(e>0)return g.publish(qo,{direction:"down"}),void g.publish(Qo);g.publish(qo,{direction:"up"}),g.publish(Yo)}};function P(e){E("interactionMove",{position:ia(e)})}var A={default:{touchstart:function(e){E("interactionStart",{position:ia(e)})},touchend:function(e){E("interactionEnd",{position:ia(e)})},mousedown:function(t){e.addEventListener("mousemove",P),E("interactionStart",{position:ia(t)})},mouseup:function(t){e.removeEventListener("mousemove",P),E("interactionEnd",{position:ia(t)})},click:function(e){E("click",{position:ia(e)})}},gestures:{touchmove:function(e){E("interactionMove",{position:ia(e)})}}};function I(e){Object.entries(A.default).forEach((function(t){var n=Ho(t,2),r=n[0],i=n[1];e.addEventListener(r,i)})),c&&Object.entries(A.gestures).forEach((function(t){var n=Ho(t,2),r=n[0],i=n[1];e.addEventListener(r,i)}))}function C(e,t,n){g.subscribe(e,t,n)}function O(e,t,n){g.unsubscribe(e,t,n)}return I(e),{on:C,off:O}}var ra=function(e,t){this.x=e,this.y=t};function ia(e){if(e instanceof TouchEvent){var t=e.touches[0];return"touchend"===e.type&&(t=e.changedTouches[0]),new ra(t.clientX,t.clientY)}return new ra(e.clientX,e.clientY)}function oa(e,t){if(e&&t)return{x:t.x-e.x,y:t.y-e.y}}var aa={baseTrackingUrl:void 0,adId:void 0,adVersionPlacement:void 0,thirdPartyTrackers:{},extraQS:""};function sa(e){Object.assign(this,aa,e)}function ca(e){var t=e.element,n=e.isInView,r=void 0===n?function(){}:n;Object.defineProperty(this,"inView",{get:()=>r()&&!(null==t||!t.offsetParent)})}sa.prototype.fireTracking=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=yh(this.baseTrackingUrl,e.join(),this.adId,this.adVersionPlacement);this.extraQS&&D.is("s",this.extraQS)&&(r=r.concat(this.extraQS)),n&&D.is("s",n)&&(r=r.concat(n));var i="";e.forEach((function(e){t.thirdPartyTrackers[e]&&(i+=t.thirdPartyTrackers[e])})),xi(r,i,1)};var la={firstViewTracked:!1},ua={},da=!1;function fa(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pa(),this.modalComponent=e,this.viewableComponent=new ca({element:e.modalContent,isInView:function(){return e.isOpen}}),this.config={},Object.assign(this.config,la,r),this.tracker=new sa(t),e.on("open",(function(){n.config.firstViewTracked||(n.tracker.fireTracking(ua.FIRST_VIEW),n.config.firstViewTracked=!0)}))}function pa(){da||(ua.FIRST_VIEW=[mh.secondaryImpressionActionType,mh.clickActionType,mh.articlePageViewActionType,mh.gallery],da=!0)}function ha(e,t){if(t){var n=!1,r=$i(e,t),i=r.element,o=r.attribute;if(i&&o)return i.onload=function(){if(!n){var e=i.attributes[o].value.split("assets"),t="".concat(e[0]).concat("l_story_icon/assets").concat(e[1]);i.attributes[o].value=t,n=!0}},i}}function va(e,t){var n;e.adWrapperClass&&""!==e.adWrapperClass||(e.adWrapperClass=t.element.id),e.toutSelector=(n=e.adWrapperClass,".".concat(n)),""===e.previewImage&&(e.previewImage="https://".concat(CONSTS.RESIZER_DOMAIN,"/image/upload/"))}function ma(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.children[0]}function ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ga(r.key),r)}}function ga(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var ba={READY:"ready",INITITALIZED:"initialized",SLIDE_VIEW:"slideView",SLIDE_CHANGE:"slideChange"},wa="ready",Ea="initialized",Ta="slideIndex",Sa="next",ka="prev",Pa=["uid","selectorPrefix","slideshowConfig","thumbnailConfig","slideshowTemplate"];function Aa(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ca(r.key),r)}}function Ca(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Oa(){return(Oa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=_a(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function _a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Na(e)););return e}function Ra(e,t){return(Ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Na(e);if(t){var i=Na(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return La(this,n)}}function La(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Da(e)}function Da(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Na(e){return(Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ja={[ba.SLIDE_VIEW]:"moved",[ba.SLIDE_CHANGE]:"move"},Va=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ra(e,t)}(o,e);var t,n,r,i=xa(o);function o(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n=i.call(this);var r,a,s=t.uid,l=t.selectorPrefix,u=void 0===l?"":l,d=t.slideshowConfig,f=void 0===d?{}:d,p=t.thumbnailConfig,h=void 0===p?{}:p,v=(t.slideshowTemplate,Aa(t,Pa)),m="".concat(u,"-").concat("splide"),y=e.map((function(e){return e.element}));return n.components=e,n.slideshowConfig=f,n.thumbnailConfig=h,n.eventHandlers=[],n.options=v||{},n.id=s||D.getRandomInt(),n.domId=(r=n.id,"splide-".concat(r)),n.selector="#"===(a=n.domId)[0]?a:"#".concat(a),n.element=function(e){var t,n=ma('<div class="splide">\n    <div class="splide__track ntv-splide-track">\n      <ul class="splide__list ntv-splide-list">\n      </ul>\n    </div>\n  </div>'),r=n.querySelector(".splide__list"),i=ma('<li class="splide__slide ntv-splide-slide"></li>');return e.forEach((function(e){(t=i.cloneNode()).append(e),r.append(t)})),n}(y),n.element.id=n.domId,n.element.classList.add(m),n.slideshowConfig.hasMultipleSlidesPerPage&&n.element.classList.add("multi-slide-per-page"),Object.defineProperty(Da(n),"activeSlideComponent",{get(){return this.splide.Components.Slides.getAt(this.splide.index)}}),n.dependencies=[{id:"ntvGalleryJS",type:"js",url:c.DEPENDENCIES.GALLERY_JS}],n.ready=vo(n.dependencies).then((function(){return n.init()})),n}return t=o,(n=[{key:"init",value:function(){var e=this;return new Promise((function(t,n){e.updateSlideIndex=function(){e.setState(Ta,e.splide.index)};try{e.splide=new Splide(e.element,e.slideshowConfig),e.splide.on("mounted",(function(){e.updateSlideIndex(),e.slideListElement=e.splide.Components.Elements.list,e.preventArrowClickPropagation(),e.setState(wa,!0),e.splide.emit(ba.READY),t()})),e.setState(Ea,!0),e.eventHandlers.forEach((function(t){e.splide.on(t.eventName,t.eventHandler)})),e.splide.mount()}catch(e){D.postError(e),n(e)}}))}},{key:"goToNext",value:function(){this.splide&&(Oa(Na(o.prototype),"goToNext",this).call(this),this.splide.go(">"),this.updateSlideIndex())}},{key:"goToPrev",value:function(){this.splide&&(Oa(Na(o.prototype),"goToPrev",this).call(this),this.splide.go("<"),this.updateSlideIndex())}},{key:"onView",value:function(){this.splide&&(this.splide.Components.Move.reposition(),this.components[this.splide.index].onView())}},{key:"onHide",value:function(){this.splide&&(Oa(Na(o.prototype),"onHide",this).call(this),this.splide.go(0),this.updateSlideIndex())}},{key:"on",value:function(e,t){var n=ja[e]||e;this.getState(Ea)?this.splide.on(n,t):this.eventHandlers.push({eventName:n,eventHandler:t})}},{key:"preventArrowClickPropagation",value:function(){this.element.querySelectorAll(".splide__arrow").forEach((function(e){return e.addEventListener("click",(function(e){e.stopPropagation()}))}))}}])&&Ia(t.prototype,n),r&&Ia(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.state={[wa]:!1,[Ea]:!1,[Ta]:void 0},this.direction=Sa}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.setState(Ea,!0)}},{key:"goToNext",value:function(){this.direction=Sa}},{key:"goToPrev",value:function(){this.direction=ka}},{key:"onView",value:function(){}},{key:"onHide",value:function(){}},{key:"index",get:function(){return this.getState(Ta)}},{key:"setState",value:function(e,t){this.state.hasOwnProperty(e)&&(this.state[e]=t)}},{key:"getState",value:function(e){if(this.state.hasOwnProperty(e))return this.state[e]}}])&&ya(t.prototype,n),r&&ya(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Ma(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ua(r.key),r)}}function Ua(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Fa="view",Ba="hide",Ha=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.element,r=t.index,i=t.params,o=t.data;if(this.id="slide-".concat(i.slideID),this.index=r,this.element=n,this.data=o,this.params=i,this.contentElement=D.domQuery(".ntv-stories__item-content",this.element),null==this.data.text||""===this.data.text.trim()){var a=D.domQuery(".ntv-stories__item--text-block",this.element);a&&(a.style.display="none")}this.state={inView:!1},Object.defineProperty(this,"inView",{get(){return this.state.inView}}),this.pubSub=new so,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"href";e&&t&&D.domQueryAll(n,t).forEach((function(t){var n=t.getAttribute(r),i=to(e,n);t.setAttribute(r,i)}))}(i.slideID,this.element)}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t){this.pubSub.subscribe(e,t)}},{key:"off",value:function(e,t){this.pubSub.unsubscribe(e,t)}},{key:"once",value:function(e,t){var n=this;this.on(e,(function(){t(),n.off(e,t)}))}},{key:"onView",value:function(){this.element.classList.add("to_highlight"),this.pubSub.publish(Fa,this.index),this.state.inView=!0}},{key:"onBeforeView",value:function(){this.element.classList.add("to_highlight")}},{key:"onHideStart",value:function(){}},{key:"onHide",value:function(){this.element.classList.remove("to_highlight"),this.pubSub.publish(Ba,this.index),this.state.inView=!1}},{key:"clearStyles",value:function(){this.element.classList.remove("to_highlight")}}])&&Ma(t.prototype,n),r&&Ma(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qa(r.key),r)}}function qa(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function za(e,t){return(za=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ga(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qa(e);if(t){var i=Qa(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ya(this,n)}}function Ya(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qa(e){return(Qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ka=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&za(e,t)}(o,e);var t,n,r,i=Ga(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).type="html",t}return t=o,n&&Wa(t.prototype,n),r&&Wa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(Ha);function Xa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Za(r.key),r)}}function Ja(e,t,n){return t&&Xa(e.prototype,t),n&&Xa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Za(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var $a=Ja((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.width=t,this.height=n,this.aspectRatio=this.width/this.height,Object.freeze(this)}));function es(e){return function(e){if(Array.isArray(e))return ts(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ts(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ts(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rs(r.key),r)}}function rs(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var is=new Map;is.set("IMG",(function(e){return new $a(e.naturalWidth,e.naturalHeight)})),is.set("VIDEO",(function(e){return new $a(e.videoWidth,e.videoHeight)}));var os=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null!=t&&(this.element=t,this.type=this.element.nodeName,is.has(this.type)&&(this.getDimensions=is.get(this.type).bind(this,this.element),this.element.addEventListener("load",(function(e){n.updateDimensions()}))))}var t,n,r;return t=e,(n=[{key:"updateDimensions",value:function(){var e,t,n,r;this.dimensions=this.getDimensions(),e=this.element,t=this.dimensions,r=t.aspectRatio>=1?as.HORIZONTAL:as.VERTICAL,(n=e.classList).remove.apply(n,es(Object.keys(as))),e.classList.add(r)}}])&&ns(t.prototype,n),r&&ns(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),as={HORIZONTAL:"horizontal",VERTICAL:"vertical"};function ss(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cs(r.key),r)}}function cs(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ls(){return(ls="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=us(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function us(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hs(e)););return e}function ds(e,t){return(ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hs(e);if(t){var i=hs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ps(this,n)}}function ps(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function hs(e){return(hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vs="metadata",ms="unmute",ys=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ds(e,t)}(o,e);var t,n,r,i=fs(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).type="video",t.videoElement=t.element.querySelector("video"),t.aspectHandler=new os(t.videoElement),t.videoElement.addEventListener("loadedmetadata",(function(){t.params.duration=t.videoElement.duration,t.pubSub.publish(vs,{index:t.index,duration:t.params.duration}),t.aspectHandler.updateDimensions()})),t.unmuteButton=t.element.querySelector(".ntv-stories__unmute-icon"),t.unmuteButton&&t.unmuteButton.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.unmuteVideo(),t.videoElement.play(),t.pubSub.publish(ms,{index:t.index})})),t}return t=o,(n=[{key:"pause",value:function(){this.videoElement.pause()}},{key:"resume",value:function(){this.videoElement.play()}},{key:"reset",value:function(){this.videoElement.pause(),this.videoElement.currentTime=0}},{key:"onView",value:function(){ls(hs(o.prototype),"onView",this).call(this),this.videoElement.play()}},{key:"onHideStart",value:function(){ls(hs(o.prototype),"onHideStart",this).call(this),this.reset()}},{key:"onHide",value:function(){ls(hs(o.prototype),"onHide",this).call(this),this.reset()}},{key:"unmuteVideo",value:function(){this.videoElement.muted=!1,this.videoElement.volume=1,this.videoElement.removeAttribute("muted"),this.videoElement.classList.remove("muted"),this.unmuteButton.style.visibility="hidden"}}])&&ss(t.prototype,n),r&&ss(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ha);function gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bs(r.key),r)}}function bs(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ws(e,t){return(ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ss(e);if(t){var i=Ss(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ts(this,n)}}function Ts(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ss(e){return(Ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ks=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ws(e,t)}(o,e);var t,n,r,i=Es(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).type="image",t.imageElement=t.element.querySelector("img"),t.aspectHandler=new os(t.imageElement),t}return t=o,n&&gs(t.prototype,n),r&&gs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(Ha);function Ps(e,t){var n=this,r={fireEngagements:!0,autoStart:!1,trackTimeCap:15e4,baseTrackingUrl:void 0,actionType:void 0,adID:void 0,adVersionPlacement:void 0};this.config=Object.assign(r,e),this.params=Object.assign({extraQS:""},t),this.shouldResume=function(){return!0},this.tracker=q(!0).ntvStopWatch().ntvTimeOnContentStopWatch(this,mh.timeOnContent).addStopWatchEventHandlers({node:D.getTopWindow(),type:"visibilitychange",handler:function(){D.getTopWindow().document.hidden?n.tracker.stop():n.tracker.totalTime<n.config.trackTimeCap&&n.shouldResume()&&n.tracker.resume()}}),this.config.fireEngagements||(this.tracker.engagements={}),this.tracker.getUrl=function(e){var t=n.config,r=t.baseTrackingUrl,i=t.adID,o=t.adVersionPlacement,a=n.params.extraQS;if(!(e&&r&&i&&o))return"";var s=yh(r,e,i,o);return s+=a||""},this.resume=function(){n.tracker.resume()},this.stop=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e?n.tracker.stopAndTrack():n.tracker.stop()},this.autoStart&&this.resume()}var As={},Is=!1;function Cs(e,t,n){var r=this;!function(){if(Is)return;As.FIRST_VIEW=[mh.gallery],Is=!0}(),this.slideComponenet=e,this.params={},Object.assign(this.params,n),this.tracker=new sa(t),this.hasBeenTracked=!1,this.tracked={},this.viewableComponent=new ca({element:this.element,isInView:function(){return r.slideComponenet.inView}}),this.tocTracker=function(e,t,n){var r=new Ps(t,n);return r.shouldResume=function(){return e.inView},r}(this.viewableComponent,t,n),Object.keys(As).forEach((function(e){return r.tracked[As[e]]=!1})),e.on(Fa,(function(){r.onView()})),e.on(Ba,(function(){r.onHide()}))}Cs.prototype.onView=function(){this.tocTracker.resume(),this.hasBeenTracked||(this.tracker.fireTracking(As.FIRST_VIEW,this.params.extraQS),this.hasBeenTracked=!0,this.tracked[As.FIRST_VIEW]=!0)},Cs.prototype.onHide=function(){this.tocTracker.stop()},Cs.prototype.setHasBeenTracked=function(){var e=this;this.hasBeenTracked=!0,Object.keys(As).forEach((function(t){return e.tracked[As[t]]=!0}))};var Os={},_s=!1,Rs={videoViewTracked:!1};function xs(e,t,n){var r=this;"video"===e.type&&(!function(){if(_s)return;Os.VIDEO_END=[mh.videoEndActionType],_s=!0}(),this.slideComponentTracker=new Cs(e,t,n),this.slideVideo=e.video,this.config={},Object.assign(this.config,Rs,n),!this.slideVideo||this.config.videoViewTracked||this.slideComponentTracker.hasBeenTracked||this.slideVideo.addEventListener("ended",(function(){r.slideComponentTracker.tracker.fireTracking(Os.VIDEO_END,r.config.extraQS),r.tracked[As.FIRST_VIEW]=!0})),this.tracked={},Object.keys(Os).forEach((function(e){return r.tracked[Os[e]]=!1})))}function Ls(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,js(r.key),r)}}function Ns(e,t,n){return t&&Ds(e.prototype,t),n&&Ds(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function js(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}xs.prototype.onView=function(){this.slideComponentTracker.onView()},xs.prototype.onHide=function(){this.slideComponentTracker.onHide()},xs.prototype.hasBeenTracked=function(e){return this.tracked[e]};var Vs="timerEnd",Ms="timerStart",Us=function(){function e(t){var n=this;Ls(this,e),t&&Array.isArray(t)&&(this.pubSub=new so,this.currentIndex=0,this.timingIndicatorElements=[t.length],this.timingIndicators=t.map((function(e,t){var r=new zs({index:t,duration:e.duration,id:e.id});return r.element.addEventListener("animationend",(function(){n.pubSub.publish(Vs,r.index)}),!1),n.timingIndicatorElements[t]=r.element,r})),this.maxIndex=this.timingIndicators.length-1)}return Ns(e,[{key:"setTimerDuration",value:function(e,t){this.inBounds(e)&&this.timingIndicators[e].setDuration(t)}},{key:"setTimerDurationSeconds",value:function(e,t){this.inBounds(e)&&this.timingIndicators[e].setDuration(t,!0)}},{key:"onHide",value:function(){this.reset()}},{key:"onView",value:function(){this.start()}},{key:"reset",value:function(){this.timingIndicators.forEach((function(e){return e.state=Fs.IDLE}))}},{key:"start",value:function(){this.inBounds(this.currentIndex)&&this.startActiveTimer()}},{key:"pause",value:function(){if(this.inBounds(this.currentIndex)){var e=this.timingIndicators[this.currentIndex];e.state.pause&&(e.state.pause(),this.pubSub.publish(Ms,e.index))}}},{key:"inBounds",value:function(e){return e>=0&&e<=this.maxIndex}},{key:"startActiveTimer",value:function(){if(this.inBounds(this.currentIndex)){var e=this.timingIndicators[this.currentIndex];e.state=Fs.ACTIVE,this.pubSub.publish(Ms,e.index)}}},{key:"setActiveTimer",value:function(e){if(null!=e){var t=e-this.currentIndex;Math.sign(t)>0?this.progressTimersForwards(t):this.progressTimersBackwards(t)}}},{key:"progressTimersForwards",value:function(e){if(e){var t=this.currentIndex+e;t=Math.min(t,this.maxIndex);for(var n=this.currentIndex;n<t;n++)this.timingIndicators[n].state=Fs.SEEN;this.currentIndex=t}}},{key:"progressTimersBackwards",value:function(e){if(e){var t=this.currentIndex+e;t=Math.max(t,0);for(var n=this.currentIndex;n>=t;n--)this.timingIndicators[n].state=Fs.IDLE;this.currentIndex=t}}},{key:"on",value:function(e,t){this.pubSub.subscribe(e,t)}},{key:"off",value:function(e,t){this.pubSub.unsubscribe(e,t)}}]),e}(),Fs={IDLE:function(e){return e.reset(),{value:"idle",start:function(){return e.state=Fs.ACTIVE},end:function(){return e.state=Fs.SEEN}}},ACTIVE:function(e){return e.start(),{value:"active",pause:function(){return e.pause()},start:function(){return e.start()},end:function(){return e.state=Fs.SEEN}}},SEEN:function(e){return e.end(),{value:"seen",start:function(){return e.state=Fs.ACTIVE},reset:function(){return e.state=Fs.IDLE}}}},Bs="active",Hs="seen",Ws="paused",qs=function(e){return"animation-duration:".concat(e,"s;")},zs=function(){function e(t){var n=t.index,r=t.id,i=t.duration,o=t.type,a=t.isActive,s=void 0!==a&&a,c=t.isSeen,l=void 0!==c&&c;Ls(this,e),this.id=r,this.index=n,this.type=o,this.duration=i/1e3;var u='\n<span \n  class="'.concat(l?"seen":""," ").concat(s?"active":"",'" \n    data-index="').concat(this.index,'" \n    data-item-id="').concat(this.id,'"\n>\n  <b style="').concat(qs(this.duration),'"></b>\n</span>');this.element=Ji(u),this.animatedElement=this.element.querySelector("b"),this.curState=Fs.IDLE(this),Object.defineProperty(this,"state",{get(){return this.curState},set(e){e&&(this.curState=e(this))}})}return Ns(e,[{key:"setDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.duration=t?e:e/1e3,this.animatedElement.setAttribute("style",qs(this.duration))}},{key:"reset",value:function(){this.element.classList.remove(Hs),this.element.classList.remove(Ws),this.element.classList.remove(Bs)}},{key:"start",value:function(){this.element.classList.remove(Hs),this.element.classList.remove(Ws),this.element.classList.add(Bs)}},{key:"end",value:function(){this.element.classList.add(Hs),this.element.classList.remove(Ws),this.element.classList.remove(Bs)}},{key:"pause",value:function(){this.element.classList.add(Ws)}}]),e}();function Gs(e){return function(e){if(Array.isArray(e))return Ys(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ys(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ys(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ys(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ks(r.key),r)}}function Ks(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Xs="closeClicked",Js=function(){function e(t){var n,r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=Ks(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"startActive",void 0);var i=t.element,o=t.timers;this.element=i,this.pubSub=new so;var a=this.element.querySelector(".".concat("ntv-stories__close"));a&&a.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),r.pubSub.publish(Xs)})),this.hidden=!1,this.timingIndicators=this.element.querySelector(".".concat("ntv-stories__timers")),this.timingIndicatorWrapper=this.element.querySelector(".".concat("ntv-stories__timers__wrapper")),this.timers=new Us(o),this.timingIndicatorWrapper&&(n=this.timingIndicatorWrapper).append.apply(n,Gs(this.timers.timingIndicatorElements))}var t,n,r;return t=e,(n=[{key:"setTimerDurationSeconds",value:function(e,t){this.timers.setTimerDurationSeconds(e,t)}},{key:"hide",value:function(){this.element.classList.add("hide"),this.hideTimingIndicators(),this.hidden=!0}},{key:"show",value:function(){this.element.classList.remove("hide"),this.showTimingIndicators(),this.hidden=!1}},{key:"hideTimingIndicators",value:function(){this.timingIndicators&&this.timingIndicators.classList.add("hide")}},{key:"showTimingIndicators",value:function(){this.timingIndicators&&this.timingIndicators.classList.remove("hide")}},{key:"onView",value:function(){this.timers.onView()}},{key:"onHide",value:function(){this.timers.onHide()}}])&&Qs(t.prototype,n),r&&Qs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Zs(e,t){Object.keys(t).forEach((function(n){e.on(n,(function(){var r=arguments,i=t[n];i.forEach((function(t){return t.apply(e,r)}))}))}))}function $s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ec(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ec(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ec(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nc(r.key),r)}}function nc(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var rc="expand",ic="collapse",oc="expanded",ac="collapsed",sc={[oc]:"See Less",[ac]:"See More"},cc=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==t)throw new Error("ISI html is undefined");this.element=w("<div>".concat(t,"</div>")),this.element.classList.add("ntv-isi-component"),this.expandButton=this.element.querySelector(".ntv-isi-expand-button"),this.expandButtonLabel=this.expandButton.querySelector(".ntv-isi-expand-label"),this.expandButtonLabel.textContent=sc[ac],this.contentBox=this.element.querySelector(".ntv-story-isi-content"),this.contentBox.dataset.expanded=!1,this.collapsedStyle={height:this.contentBox.style.height,top:this.contentBox.style.top},this.pubSub=new so,this.setupExpand()}var t,n,r;return t=e,(n=[{key:"setupExpand",value:function(){var e=this;!this.contentBox&&this.expandButton||(this.expandButton.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.handleExpandClick(e.isExpanded())})),window.addEventListener("resize",(function(){e.collapse()})))}},{key:"handleExpandClick",value:function(e){e?this.collapse():this.expand()}},{key:"isExpanded",value:function(){return"true"===this.expandButton.dataset.expanded}},{key:"expand",value:function(){if(!this.isExpanded()){var e=this.contentBox.getBoundingClientRect(),t=e.top-80,n=t+e.height;this.contentBox.style.top="-".concat(t,"px"),this.contentBox.style.height="".concat(n,"px"),this.expandButton.classList.add(oc),this.expandButton.dataset.expanded=!0,this.expandButtonLabel.textContent=sc[oc],this.pubSub.publish(rc)}}},{key:"collapse",value:function(){if(this.isExpanded()){for(var e=0,t=Object.entries(this.collapsedStyle);e<t.length;e++){var n=$s(t[e],2),r=n[0],i=n[1];this.contentBox.style[r]=i}this.expandButton.classList.remove(oc),this.expandButton.dataset.expanded=!1,this.expandButtonLabel.textContent=sc[ac],this.pubSub.publish(ic)}}}])&&tc(t.prototype,n),r&&tc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function lc(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pc(r.key),r)}}function fc(e,t,n){return t&&dc(e.prototype,t),n&&dc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pc(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var hc=function(){function e(t){if(uc(this,e),!t)throw new Error("No template passed to CTAComponent");if(this.element="string"==typeof t?ma(t):t,!D.isElement(this.element))throw new Error("CTA Component template doesn't resolve to an element");this.element.classList.add("ntv-cta-component"),this.ctaAnchor=this.element.querySelector('a[href="'.concat("@ctaLink",'"]'));var n=document.evaluate('//div[normalize-space(text()) = "'.concat("@ctaLabel",'"]'),this.element,null,XPathResult.ANY_TYPE,null);if(n)var r=n.iterateNext();null!==r&&(this.labelElement=r)}return fc(e,[{key:"setUrl",value:function(e){this.ctaAnchor.href=e}},{key:"setLabel",value:function(e){this.labelElement&&(this.labelElement.textContent=e)}},{key:"setLabelAndUrl",value:function(e,t){this.setLabel(e),this.setUrl(t)}},{key:"setCTAData",value:function(e){this.setLabel(e.label),this.setUrl(e.url)}}]),e}(),vc=fc((function e(t,n){uc(this,e),this.url=t,this.label=n})),mc=new WeakSet,yc=function(){function e(t,n){uc(this,e),lc(this,mc),this.ctaComponent=new hc(t),this.element=this.ctaComponent.element,this.dataArray=n,this.showIndex(0)}return fc(e,[{key:"showIndex",value:function(e){(function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n})(this,mc,gc).call(this,e)||this.ctaComponent.setCTAData(this.dataArray[e])}}]),e}();function gc(e){return e<0||e>=this.dataArray.length}function bc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wc(e,t)}function wc(e,t){return(wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ec(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sc(e);if(t){var i=Sc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Tc(this,n)}}function Tc(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sc(e){return(Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ac(r.key),r)}}function Pc(e,t,n){return t&&kc(e.prototype,t),n&&kc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ac(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Ic(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Cc=function(){},Oc=Pc((function e(t){var n=t.onThreshold,r=t.onAnyThreshold;Ic(this,e),this.onThreshold="function"==typeof n?n:Cc,this.onAnyThreshold="function"==typeof r?r:Cc})),_c=function(){function e(t){Ic(this,e),this.targetOptions=new Map,this.observer=new IntersectionObserver(this.handleElementIntersection.bind(this),t)}return Pc(e,[{key:"handleElementIntersection",value:function(e,t){var n=this;e.forEach((function(e){var t=n.targetOptions.get(e.target);t.onAnyThreshold(e,n),e.isIntersecting&&t.onThreshold(e,n)}))}},{key:"addTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};D.isElement(e)&&(this.targetOptions.set(e,t),this.observer.observe(e))}},{key:"removeTarget",value:function(e){D.isElement(e)&&(this.targetOptions.delete(e),this.observer.unobserve(e))}}]),e}(),Rc=function(e){bc(n,e);var t=Ec(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{threshold:[.5]};return Ic(this,n),t.call(this,e)}return Pc(n)}(_c),xc=function(e){bc(n,e);var t=Ec(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{threshold:[.01],rootMargin:"200% 0% 200% 0%"},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"50% 0% 50% 0%";return Ic(this,n),(e=t.call(this,r)).groupingRange=i,e}return Pc(n)}(_c),Lc="autoPlay",Dc="iab viewability",Nc="pixel in view",jc={["smartLoad"]:xc,[Lc]:Rc,[Dc]:function(e){bc(n,e);var t=Ec(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{threshold:[.01,.5]};return Ic(this,n),t.call(this,e)}return Pc(n)}(_c),[Nc]:function(e){bc(n,e);var t=Ec(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{threshold:[.01]};return Ic(this,n),t.call(this,e)}return Pc(n)}(_c)};function Vc(e){var t=ee("intersectionObservers");return t.has(e)||t.set(e,new jc[e]),t.get(e)}var Mc=["slideConfig","slideshowConfig","config"],Uc=["templates"];function Fc(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hc(r.key),r)}}function Hc(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Wc(e,t,n){return(Wc=qc()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&zc(i,n.prototype),i}).apply(null,arguments)}function qc(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function zc(e,t){return(zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Gc={duration:6e3},Yc="ready",Qc="closeRequest",Kc="timersComplete",Xc="slideChange",Jc="slideView",Zc={video:ys,image:ks,html:Ka},$c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);t.node;var r=t.content,i=t.config,o=t.ad,a=t.uid,s=t.autoStart,c=void 0===s||s;t.closable;this.uid=a,i.link=i.link.url;var l=i.slideConfig,u=i.slideshowConfig,d=i.config,f=Fc(i,Mc),p=l.templates,h=Fc(l,Uc);this.params=f,this.storyConfig=Object.assign(go,f,h,d),va(this.storyConfig,o),this.element=document.createElement("ntv-stories-viewer"),this.element.id="".concat("ntv-stories-viewer","-").concat(this.uid);var v=new Oc({onAnyThreshold:function(e){var t=e.isIntersecting;n.inView=t}});this.intersectionObserver=Vc(Nc),this.intersectionObserver.addTarget(this.element,v),this.pubSub=new so;var m=D.pick(this.storyConfig,"baseTrackingUrl","adVersionPlacement","adID","thirdPartyTrackers");m.fireEngagements=!1,this.data={slideNumberTracked:-1,document:window.frameElement?D.getTopWindow().document:window.document},this.numSlides=r.length,this.maxSlideIndex=this.numSlides-1,this.closeTimeout=0;var y=D.mergeObjectsWithTypeComparisions(this.params,{string:function(e,t){return t||e}},this.storyConfig.content,D.pick(this.storyConfig,"ctaLabel","ctaLink","closeIcon","advertiser","advertiserLogo")),g=u.lazyLoad&&""!==u.lazyLoad;if(this.slideComponents=function(e,t,n,r){if(!(e&&Array.isArray(e)&&e.length>0))return[];var i,o,a,s,c=[e.length];return e.forEach((function(e,l){var u;(i=Wi(Object.assign({},t,e.assets),r)).index=l,i.id=e.params.slideID,o=i.type,i.ctaLink=to(i.id,i.ctaLink),a=zi(i,n),(null!==(u=o)&&void 0!==u?u:Zc.hasOwnProperty(o))&&(s=new Zc[o]({index:l,params:Object.assign({},Gc,e.params),element:ma(a),data:i}),c[l]=s)})),c}(r,y,p,{lazyLoad:g}),u.hasMultipleSlidesPerPage=null!=u.perPage&&u.perPage>1||null!=u.fixedWidth&&"100%"!==u.fixedWidth&&"100vw"!==u.fixedWidth,this.slideComponentTrackers=function(e,t){if(!(e&&Array.isArray(e)&&e.length>0))return[];var n=[e.length];return e.forEach((function(e){var r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Wc("video"===e?xs:Cs,n)}(e.type,e,t,e.params);n.push(r)})),n}(this.slideComponents,m),this.slideComponentTrackers.forEach((function(e,t){n.data.slideNumberTracked>0&&t<=n.data.slideNumberTracked&&e.setHasBeenTracked()})),this.slideshowEventHandlers={},Object.keys(ba).forEach((function(e){return n.slideshowEventHandlers[ba[e]]=[]})),p.viewHeader){var b=Object.assign(d,f);this.createStoriesHeader(b,p.viewHeader)}if(this.storyBody=document.createElement("div"),this.storyBody.classList.add("ntv-story-body"),this.element.appendChild(this.storyBody),this.slideshowComponent=function(e,t){var n=new Va(e,{selectorPrefix:"ntv",slideshowConfig:t});return n.element.classList.add("ntv-slideshow-component"),n}(this.slideComponents,u),this.slideshowComponent.id=this.uid,this.storyBody.appendChild(this.slideshowComponent.element),h.isiHtml)try{this.isiComponent=new cc(h.isiHtml),this.storyBody.appendChild(this.isiComponent.element),this.isiComponent.pubSub.subscribe(rc,(function(){n.pauseSlideshow()})),this.isiComponent.pubSub.subscribe(ic,(function(){n.resumeSlideshow()}))}catch(e){D.postError(e)}if(p.cta){var w=this.slideComponents.map((function(e){return new vc(e.data.ctaLink,e.data.ctaLabel)}));try{if(u.hasMultipleSlidesPerPage)for(var E=this.slideComponents.map((function(e){return e.contentElement})),T=0;T<E.length;T++){var S=E[T],k=new hc(p.cta);k.setCTAData(w[T]),S.appendChild(k.element)}else this.ctaComponent=new yc(p.cta,w),this.storyBody.appendChild(this.ctaComponent.element)}catch(e){D.postError(e)}}this.slideshowComponent&&(this.slideshowEventHandlers[ba.SLIDE_VIEW].push((function(e,t,r){n.inView&&(n.slideComponents[e].onView(),n.pubSub.publish(Jc,{storiesId:n.uid,slideIndex:e}))})),this.slideshowEventHandlers[ba.SLIDE_CHANGE].push((function(e,t,r){n.slideComponents.forEach((function(e){return e.clearStyles()})),n.slideComponents[t].onHide(),n.slideComponents[e].onBeforeView(),n.ctaComponent&&n.ctaComponent.showIndex(e),n.isiComponent&&n.isiComponent.collapse(),n.pubSub.publish(Xc,{id:n.uid,nextSlideIndex:e,currentSlideIndex:t})})),Zs(this.slideshowComponent,this.slideshowEventHandlers),this.dependencies=this.storyConfig.dependencies,this.setStyleDependencyTargetToElement(),Promise.all([this.slideshowComponent.ready,vo(this.storyConfig.dependencies)]).then((function(){n.pubSub.publish(Yc)})).catch((function(e){D.postError(e)})),c&&this.onView())}var t,n,r;return t=e,(n=[{key:"setStyleDependencyTargetToElement",value:function(){var e=this;this.dependencies=this.dependencies.map((function(t){return(t.type="style")&&(t.target=e.element),t}))}},{key:"onView",value:function(){this.slideshowComponent.onView(),this.headerViewComponent&&this.headerViewComponent.onView()}},{key:"onHideStart",value:function(){this.slideComponents[this.slideshowComponent.index].onHideStart()}},{key:"onHide",value:function(){this.slideshowComponent.onHide(),this.headerViewComponent&&this.headerViewComponent.onHide(),this.isiComponent&&this.isiComponent.collapse()}},{key:"on",value:function(e,t){this.pubSub.subscribe(e,t)}},{key:"off",value:function(e,t){this.pubSub.unsubscribe(e,t)}},{key:"goToNext",value:function(){this.slideshowComponent.goToNext()}},{key:"goToPrev",value:function(){this.slideshowComponent.goToPrev()}},{key:"pauseSlideshow",value:function(){this.pauseTimers();var e=this.slideshowComponent.index,t=this.slideComponents[e];t.pause&&t.pause()}},{key:"resumeSlideshow",value:function(){this.resumeTimers();var e=this.slideshowComponent.index,t=this.slideComponents[e];t.resume&&t.resume()}},{key:"pauseTimers",value:function(){this.headerViewComponent&&this.headerViewComponent.timers.pause()}},{key:"resumeTimers",value:function(){this.headerViewComponent&&this.headerViewComponent.timers.start()}},{key:"hideHeader",value:function(){this.headerViewComponent&&this.headerViewComponent.hide()}},{key:"showHeader",value:function(){this.headerViewComponent&&this.headerViewComponent.show()}},{key:"createStoriesHeader",value:function(e,t){var n=this;this.headerViewComponent=new Js({element:Zi(t,e,{link:"ctaLink"}),timers:this.slideComponents.map((function(e){return{id:e.id,duration:e.params.duration}}))}),this.headerViewComponent.pubSub.subscribe(Xs,(function(){n.pubSub.publish(Qc,{id:n.uid})})),this.element.appendChild(this.headerViewComponent.element),this.videoSlideComponents=this.slideComponents.filter((function(e){return"video"===e.type})),this.videoSlideComponents.forEach((function(e){e.on(vs,(function(e){n.headerViewComponent.setTimerDurationSeconds(e.index,e.duration)})),e.on(ms,(function(e){n.videoSlideComponents.forEach((function(e){e.unmuteVideo()}))}))})),this.headerViewComponent.timers.on(Vs,(function(e){e===n.maxSlideIndex&&n.pubSub.publish(Kc,{id:n.uid}),n.slideshowComponent.goToNext()})),this.slideshowEventHandlers[ba.SLIDE_VIEW].push((function(e,t,r){n.headerViewComponent.timers.startActiveTimer()})),this.slideshowEventHandlers[ba.SLIDE_CHANGE].push((function(e,t,r){n.headerViewComponent.timers.setActiveTimer(e)}))}}])&&Bc(t.prototype,n),r&&Bc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();var el=["slideConfig","slideshowConfig","config"],tl=["templates"];function nl(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rl(e){var t=this,n=(e.node,e.content,e.config),r=e.ad,i=e.uid;n.link=n.link.url;var o=n.slideConfig,a=(n.slideshowConfig,n.config),s=nl(n,el),c=(o.templates,nl(o,tl));this.params=s,this.storyConfig=Object.assign(go,s,c,a),va(this.storyConfig,r),this.options={slideViewCallback:this.storyConfig.slideViewCallback};var l=D.pick(this.storyConfig,"baseTrackingUrl","adVersionPlacement","adID","thirdPartyTrackers");l.fireEngagements=!1;var u,d,f,p,h=window.frameElement?D.getTopWindow():window;if(this.data={slideNumberTracked:-1,window:h,document:h.document},this.modalComponent=((d=new yo({id:u=i,selectorPrefix:"ntv",attributes:{style:"display: none;",class:"with-effects",tabIndex:"0",oncontextmenu:"return false;"}})).id=u,d),e.closable=!0,e.autoStart=!1,this.storiesViewer=new $c(e),this.modalComponent.appendContent(this.storiesViewer.element),this.storyConfig.customCss&&this.modalComponent.modal.element.append((f=this.storyConfig.customCss,(p=document.createElement("style")).textContent=f,p)),this.storiesViewer.on(Qc,(function(){t.modalComponent.close()})),this.storiesViewer.on(Jc,(function(e){var n=e.slideIndex;t.options.slideViewCallback&&t.options.slideViewCallback(n)})),this.storiesViewer.on(Xc,(function(){t.modalComponent.clearAutoClose()})),this.storiesViewer.on(Kc,(function(){t.modalComponent.startAutoClose()})),this.modalEventHandlers={},Object.keys(mo).forEach((function(e){return t.modalEventHandlers[mo[e]]=[]})),this.storiesViewer&&this.modalComponent){this.modalTracker=new fa(this.modalComponent,l,{firstViewTracked:this.data.slideNumberTracked>=0}),this.modalEventHandlers[mo.OPEN_COMPLETE].push((function(){t.storiesViewer.onView()})),this.modalEventHandlers[mo.CLOSE].push((function(){t.storiesViewer.onHideStart()})),this.modalEventHandlers[mo.CLOSE_COMPLETE].push((function(){t.storiesViewer.onHide()})),Zs(this.modalComponent,this.modalEventHandlers);var v={[Qo]:function(){t.modalComponent.close()},[ea]:function(){t.storiesViewer.goToPrev()},[ta]:function(){t.storiesViewer.goToNext()},[Ko]:function(){t.storiesViewer.pauseTimers()},[Xo]:function(){t.storiesViewer.hideHeader()},[Jo]:function(){t.storiesViewer.showHeader(),t.storiesViewer.resumeTimers()}};!function(e,t){var n,r=(i=e,new na(i,{holdDuration:4e3}));var i;Object.keys(t).forEach((function(e){n=t[e],r.on(e,n)}))}(this.modalComponent.modal.element,v),function(e){var t=e.doc,n=void 0===t?document:t,r=e.selector,i=e.previewImage;if(n&&r&&i)if("loading"!==n.readyState){var o=D.domQueryUp(r,n);ha(i,o)}else n.addEventListener("DOMContentLoaded",(function(){var e=D.domQueryUp(r,n);ha(i,e)}))}({doc:document,selector:this.storyConfig.toutSelector,previewImage:this.storyConfig.previewImage}),no(this.storyConfig.toutSelector),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document,t=e.createElement("meta");t.id="ntv-mobile-scale-tag",t.name="viewport",t.content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,viewport-fit=cover",e.getElementsByTagName("head")[0].appendChild(t)}(this.data.document),eo((function(){window.onFocus||t.modalComponent.state.open&&t.modalComponent.close()})),this.data.document.body.append(this.modalComponent.element);var m={open:function(){t.modalComponent.open()},close:function(){t.modalComponent.close()}};return function(e,t){if(e&&t){var n=ee("StoriesAds"),r=n.get("instances")||{};r[e]=t,n.set("instances",r)}}(this.storyConfig.adWrapperClass,m),m}}var il=["slideConfig","slideshowConfig","config"],ol=["templates"];function al(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ll(r.key),r)}}function cl(e,t,n){return t&&sl(e.prototype,t),n&&sl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ll(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var ul={CAROUSEL:Bi,STORIES:rl,STORIES_IFU:cl((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);t.node,t.content;var r=t.config,i=t.ad;t.uid;r.link=r.link.url;var o=r.slideConfig,a=r.slideshowConfig,s=r.config,c=al(r,il),l=(o.templates,al(o,ol));this.params=c,this.storyConfig=Object.assign(go,c,l,s),va(this.storyConfig,i),D.pick(this.storyConfig,"baseTrackingUrl","adVersionPlacement","adID","thirdPartyTrackers").fireEngagements=!1,this.data={slideNumberTracked:-1,document:window.frameElement?D.getTopWindow().document:window.document};var u=D.domQuery(this.storyConfig.toutSelector,this.data.document),d=$i(this.storyConfig.previewImage,u).element;if(a.heightRatio<0){var f=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;if(!(isNaN(n)&&isNaN(r)||0===r))return r/n}(d);f>0&&(a.heightRatio=f)}t.autoStart=!0,this.storiesViewer=new $c(t);var p={[ea]:function(){n.storiesViewer.goToPrev()},[ta]:function(){n.storiesViewer.goToNext()},[Ko]:function(){n.storiesViewer.pauseTimers()},[Xo]:function(){n.storiesViewer.hideHeader()},[Jo]:function(){n.storiesViewer.showHeader(),n.storiesViewer.resumeTimers()}};if(function(e,t){var n,r=(i=e,new na(i,{holdDuration:4e3}));var i;Object.keys(t).forEach((function(e){n=t[e],r.on(e,n)}))}(this.storiesViewer.element,p),eo((function(){window.onFocus?n.storiesViewer.resumeTimers():n.storiesViewer.pauseTimers()})),d){var h=function e(t){var n=t.parentElement,r=n.tagName.toUpperCase();if("BODY"!==r)return"A"===r?n:e(n)}(d);void 0===h&&(h=d,this.storiesViewer.element.classList=d.classList,this.storiesViewer.element.setAttribute("style",d.getAttribute("style"))),h.after(this.storiesViewer.element),D.hide(this.storiesViewer.element),this.storiesViewer.on(Yc,(function(){D.hide(h),D.unhide(n.storiesViewer.element)}))}}))},dl=D.getRandomInt(),fl=function(e,t,n){if(n){var r={node:e,ad:t,content:n.content,config:n.config,uid:dl++};ul[n.type]&&new ul[n.type](r)}};var pl=1,hl={0:function(e,t){return t.before(e)},1:function(e,t){return t.replaceWith(e)},2:function(e,t){return t.after(e)},3:function(e,t){return t.prepend(e)},4:function(e,t){t.before(e),D.hide(t)}};function vl(e){var t=e.node,n=e.target,r=e.mode;if(void 0===t)throw new Error("Injection node is not defined");if(void 0===n)throw new Error("Injection target is not defined");if(void 0===r)throw new Error("Injection mode is not defined");if(!hl[r])throw new Error("Injection mode ".concat(r," is not supported"));return hl[r](t,n),t}function ml(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return yl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yl(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function yl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gl(e){var t=bl(e);if(null!=t){var n=e.querySelectorAll("a");if(0!==n.length){var r,i=t.url,o=ml(Array.from(n).filter((function(e){return function(e,t){return e===t||(e.indexOf(t)>0||!!e.indexOf(encodeURIComponent(t)>0))}(e.href,i)})));try{for(o.s();!(r=o.n()).done;){var a=r.value;a.dataset.ntvDynamicElementId=e.id,a.addEventListener("click",wl)}}catch(e){o.e(e)}finally{o.f()}}}}function bl(e){var t=Eh(e.dataset.ntvId);if(null!=(null==t?void 0:t.dynamicAdTracking)){var n=Number(e.dataset.ntvDynamicAssetIndex);if(null!=n)return t.dynamicAdTracking[n].clickTrackingData}}function wl(e){var t=e.currentTarget.dataset.ntvDynamicElementId,n=D.domQuery("#".concat(t));if(null!=n){var r=bl(n);if(null!=r){var i,o=ml(r.clicktrackers);try{for(o.s();!(i=o.n()).done;){var a=i.value;D.appendImage(a)}}catch(e){o.e(e)}finally{o.f()}}}}function El(e){return function(e){if(Array.isArray(e))return Tl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Tl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sl="EDGE",kl="SAFEFRAME",Pl="EXTENDED",Al="DEFAULT",Il={[Sl]:50,[kl]:100,[Pl]:250,[Al]:100},Cl=function(e){return dp.setting.isEdge?Sl:dp.inSafeFrame?kl:_l(e)?Pl:Al},Ol=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Il[Cl(e)]},_l=function(e){return e>=300},Rl=function(e){var t=e.selector,n=Eh(e.adPlacementId),r=n.toutClickTracker;if(window.Nativo){if(null!=r){var i=r;Nativo.tpc&&Nativo.tpc[t]?n.toutClickTracker=Nativo.tpc[t]+r:Nativo.thirdPartyClickUrl&&(n.toutClickTracker=Nativo.thirdPartyClickUrl+r);var o=new RegExp(D.ntvRegexEscape(i).replace(/(ord=)[^\&]+/,"$1[^\\&]+").replace(/(ntv_az=)[^\&]+/,"$1[^\\&]+").replace(/(ntv_al=)[^\&]+/,"$1[^\\&]+").replace(/(ntv_ak=)[^\&]+/,"$1[^\\&]+").replace(/(ntv_enc_pr=)[^\&]+/,"$1[^\\&]+"),"g");e.html=e.html.replace(o,n.toutClickTracker)}Nativo.atf&&Nativo.atf.indexOf(e.id)<0&&Nativo.atf.push(e.id)}},xl=function(e){if(D.isiOS()){var t=[];for(Y("ntvAds")&&(t=Y("ntvAds").split(",")),t.push(e);t.length>10;)t.shift();Q("ntvAds",t.join(","))}},Ll=function(e){var t=e.selector,n=e.dfpType,r=e.parentCount,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var o,a=document;try{if(2==n){var s=D.breakOutIframe();a=s.document}o=D.domQuery(t,a)}catch(e){D.postError(new Error("getInjectNode() Injection node not found. Selector:".concat(t," in context").concat(a,", Cause:").concat(e.message)))}if(Dl(r,n)){var c=D.breakOutIframe();c&&(o=c);for(var l=r;o.parentNode&&l>0;)l--,o=o.parentNode}return o||(i&&dp.safeFrame&&dp.safeFrame.api&&(o=document.body),o)}};function Dl(e,t){return e&&2!=t}var Nl,jl,Vl,Ml,Ul=function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!(i>6e4)){var o=_l(i),a=Ll(t,o);if(i+=r,a)return n(a);D.setTimeout((function(){e(t,n,Ol(i),i)}),r)}},Fl=function(e){e.viewableWhiteList&&(dp.viewableWhiteList[e.placementId]=e.viewableWhiteList)},Bl=function(e,t,n){dp.topWindow.ntvToutAds||(dp.topWindow.ntvToutAds={});var r=D.clientUtils.generateAdPlacementId(t,e);dp.topWindow.ntvToutAds[r]=n},Hl=function(e){return dp.topWindow.ntvToutAds[e]},Wl=(Nl=[],jl=0,Vl=0,Ml=0,{renderInit:function(e,t){jl=(Nl=t).length,Vl=e},renderComplete:function(e,t,n){if(Nl){var r=Nl.indexOf(n);-1!==r&&(Ml+=e?0:1,Nl.splice(r,1),function(e,t,n){D.firePubSubEvent("adRenderingComplete",{success:e,placement:t,id:n})}(e,t,n),0===Nl.length&&function(){if(D.firePubSubEvent("allAdsRenderingComplete",{success:0===Ml,adCount:jl,placementCount:Vl}),ntv.postAdsRenderingCallbacks&&Array.isArray(ntv.postAdsRenderingCallbacks))for(;ntv.postAdsRenderingCallbacks.length>0;)ntv.postAdsRenderingCallbacks.pop()()}())}}});function ql(e,t){var n=D.clientUtils.generateAdPlacementId(e.id,t.id);e.timestamp=Date.now(),e.adPlacementId=n,e.uid="".concat(e.adPlacementId,"-").concat(e.timestamp),e.responseId=t.responseId}var zl=function(e){var t=!1;D.onDOMContentLoaded((function(){var n=Ll(e);e.injectNode=n,function(){if(!t){var n,r=null==e||null===(n=e.injectNode)||void 0===n?void 0:n.length,i={id:e.id,adLocation:e.selector,injectNode:r?e.injectNode[0]:null};setTimeout((function(){D.firePubSubEvent("noAd",i),D.firePubSubEvent("noad",i)}),0),t=!0}}()}))},Gl=function(e,t){D.ampModeHandler(dp.ampMode)||(zl(e),!e.isABA&&e.tracking&&function(e,t){dp.inventoryTrackers.push(e);for(var n=0;n<dp.inventoryTrackers.length;n++){var r=dp.inventoryTrackers[n];dp.inventoryTrackersHistory[r.placementID+"_"+r.selector]||(Nt(r,t),dp.inventoryTrackersHistory[r.placementID+"_"+r.selector]=!0)}}(function(e,t){var n=e.tracking||{},r=n.vcpmParams||{},i={};return r.thirdPartyTrackingTags="",r.selector=Dt(e),r.placementID=e.id,r.isInvTracking=!0,i.url=n.trackingBaseUrl,i.selector=Dt(e),i.placementID=e.id,i.prebid=e.prebid,i.adVersionPlacement=n.adVersionPlacement,i.passback=t.passback?t.passback:e.passback,i.vcpmParams=r,i.cpmExtraQS=e.tracking?e.tracking.cpmExtraQS:"",i.foundOnEdge=e.foundOnEdge,i}(e,t),t))},Yl=function e(t){var n,r,i=[],o=[];if(!(t instanceof HTMLElement))return i;r=t.getBoundingClientRect(),n={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,getBoundingClientRect:function(){return r}};for(var a=0;a<t.children.length;a++)o.push.apply(o,El(e(t.children[a])));return n.children=function(){return o},i.push(n),i},Ql=function(e){var t;try{dp.referencePlacementPositions[e.selector]=Yl(D.domQuery(e.selector)),t=w(e.html),Kl(e),Xl(e);try{vl({mode:e.injectionMode,target:e.injectNode,node:t})}catch(e){return void D.postError(e)}if(e.element=D.toDomElement(t),dp.isPreviewReq&&!dp.autoScrolling){var n=D.getQS(c.CLIENT_OPTIONS);-1!==n.indexOf("s")&&(dp.autoScrolling=!0,ci(t,n).then((function(){dp.autoScrolling=!1})))}e.toRegister&&(dp.adsMap[D.clientUtils.generateAdPlacementId(e.id,e.placementId)]={responseId:e.responseId,node:e.element,type:"ad"}),e.element.dataset.ntvId=e.adPlacementId,Wl.renderComplete(void 0!==e.element,e.placementId,e.id)}catch(e){D.postError(e)}finally{return t}};function Kl(e){Dl(e.parentCount,e.dfpType)&&1==e.injectionMode&&1==e.injectionMode&&(e.injectionMode=4)}function Xl(e){e.injectNode.length&&(e.injectNode=e.injectNode[0])}var Jl=function(e){return new Promise((function(t){Ul(e,(function(n){e.injectNode=n,t(Ql(e))}),Ol())}))},Zl=function(e){var t,n,r,i,o=e.tracking;(t=e).thirdPartyJSViewableImpTrackers=D.trackImpressionsInViewability(t.viewableWhiteList,t.thirdPartyJSViewableImpTrackers,t.selector),t.thirdpartyJSImpTrackers=D.trackImpressionsInViewability(t.viewableWhiteList,t.thirdpartyJSImpTrackers,t.selector),function(e){e.viewableWhiteList&&(dp.viewableWhiteList=e.viewableWhiteList),e.whiteListedThirdpartyDomains&&(e.thirdPartyJSViewableImpTrackers&&(dp.thirdPartyJSViewableImpTrackers[e.placementId]={whitelist:e.whiteListedThirdpartyDomains,thirdparty:e.thirdPartyJSViewableImpTrackers}),e.thirdpartyJSImpTrackers&&e.thirdpartyJSImpTrackers.length&&D.filterScripts(e.whiteListedThirdpartyDomains,e.thirdpartyJSImpTrackers))}(e),o&&be.performance.trackAfterRender(o,1),n=D.domQueryAll(".ntvClickOut",dp.topWindow.document),r=D.queryAllChildren(n,"a"),i=D.queryAllChildren(n,".ntv_clickout_icon"),dp.setupClickOut(El(r),El(i))},$l=function(e){var t=dp.PlacementResponseCache[e];if(t)return t.ads?(t.responseId=D.generateUniqueId(1e7),void tu.renderAds(t)):void Et({type:"s2s",params:{adUnits:[t]}})},eu=function(e){if("function"==typeof e)return void 0===ntv.postAdsRenderingCallbacks&&(ntv.postAdsRenderingCallbacks=[]),ntv.postAdsRenderingCallbacks.push(e)},tu={renderAds:function(e){e.ads.forEach((function(t){var n=!e.infScroll;ql(t,e),n&&dp.adsMap[t.adPlacementId]&&e.responseId&&dp.adsMap[t.adPlacementId].responseId&&dp.adsMap[t.adPlacementId].responseId!==e.responseId||(!function(e){e.adId=e.id,e.campaignId=e.campaignID,e.advertiserId=e.advertiser.id,e.html=e.preview.html}(t),function(e,t){e.placementId=t.id,e.selector=t.selector,e.injectionMode=t.injectionMode,t.infScroll||(e.parentCount=t.parentCount),e.dfpType=t.dfpType||0,e.tracking=t.tracking}(t,e),t.type=i,t.toRegister=n,wh(t.adPlacementId,D.pick.apply(D,[t].concat(El(c.AD_LEVEL_TRACKING_PROPERTIES))),t.responseId),dp.setFilteringByLevel(t),Rl(t),Bl(e.id,t.id,t),Fl(t),tu.renderAd(t),xl(t.id))}))},renderAd:function(e){ti(e).then((function(t){!function(e,t){var n=Eh(e);if(n&&Array.isArray(t)){var r=t.map((function(e){return e.trackers}));n.dynamicAdTracking=r}}(e.adPlacementId,t.content),Jl(e).then((function(n){if("DCO"!==t.type){var r=Object.assign(t,{id:e.id,placement:e.placementId});fl(D.toDomElement(n),e,r)}var i=m(n);i.dataset.ntvDynamicAssetIndex=0,gl(i)}))})).catch((function(t){t!==zt&&Jl(e)}))}};function nu(e){return function(e){if(Array.isArray(e))return ru(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ru(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ru(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iu(e){!function(e){var t,n=D.getTopWindow();ntv.PostRelease.pubIframeData||(ntv.PostRelease.pubIframeData=[]);(t=ntv.PostRelease.pubIframeData).push.apply(t,nu(e)),e.forEach((function(e){n.postMessage({action:"ntv-pub-inject",payload:e},n.location.origin)}))}(function(e){var t,n,r=[],i=function(e,i){if(e.querySelectorAll){var o=nu(e.querySelectorAll("iframe")).filter((function(e){return!!e.getAttribute("src")&&"about:blank"!==e.getAttribute("src")})).map((function(e){n=[];for(var r,o="ntv-iframe-parent-".concat(i),a=0;a<e.attributes.length;a++)r=e.attributes.item(a),n.push({name:r.name,value:r.value});return n.push({name:"ntv-pub-injected",value:""}),t={element:"iframe",attributes:n,classes:nu(e.classList).join(),id:e.id,selector:".".concat(o)},e.parentNode.classList.add(o),e.parentNode.removeChild(e),t}));r.push.apply(r,nu(o))}};if(e.length)for(var o=0;o<e.length;o++)i(e[o],o);else i(e,0);return r}(e))}function ou(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return au(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return au(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function au(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function su(e,t){this.ad=t,this.selector=e.Selector,this.fragmentTemplate=e.FragmentTemplate,this.html=void 0,this.type=e.Type,this.injectionMode=e.Mode,this.injectNode=void 0}var cu=function(e){e.injectNode||function(e){return D.retryQuery(D.domQueryUp.bind(D),e.selector,document,10,3e5)}(e).then((function(t){e.injectNode=t,du(e),function(e){e.html=function(e){var t,n=!1,r=ou(lu);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(e.includes(i)){n=!0;break}}}catch(e){r.e(e)}finally{r.f()}n&&(e=e.replaceAll("domQuery","domQueryUp"));return e}(e.html);var t=b(e.html);dp.setting.pubInjection&&iu(t);var n=fu(e);if(null!=n){var r,i=ou(t.children);try{for(i.s();!(r=i.n()).done;){r.value.classList.add(n)}}catch(e){i.e(e)}finally{i.f()}}try{vl({mode:e.injectionMode,target:e.injectNode,node:t})}catch(e){D.postError(e)}}(e)})).catch((function(t){D.postError(new Error('Failed to get article fragment inject node "'.concat(e.selector,'"')))}))};var lu=["initializeFBWidget"];var uu=function(e){return e.fragmentTemplate.indexOf("@Content")>-1};var du=function(e){e.html=function(e,t){if(null==t)return e;var n='<img src="'+t.advertiser.logo+'" border="0">';return e.replace(/@Title/g,t.article.title).replace(/@Datetime/g,t.articleTemplate.displayDate).replace(/@AuthorLogo/g,n).replace(/@Author/g,t.advertiser.name).replace(/@Preview/g,t.preview.text).replace(/@Content/g,'<div id="'+t.id+'" class="'+t.id+'">'+t.article.body+"</div>").replace(/@BottomArticle/g,"").replace(/@TopArticle/g,"").replace(/@RightRail/g,"")}(e.fragmentTemplate,e.ad)},fu=function(e){if(t=e,new RegExp("\\bTOP\\b|\\bRIGHTRAIL\\b|\\bBOTTOMb\\b").test(t.type)&&1!=t.injectionMode){if(3===e.injectionMode&&new RegExp("\\bTOP\\b").test(e.type))return"ntv-companion"}else if("SLIDEMETADATA"==e.type)return"ntv-gallery-metadata";var t};var pu=function(e){var t=e.fragments,n=e.ad;if(t&&n){for(var r,i=t.length,o=0,a=!1,s=0;s<i;s++){var c,l=new su(t[s],n);cu(l),uu(l)&&(r=null===(c=D.domQuery("#"+n.id))||void 0===c?void 0:c.parentNode),o++}o===i&&(a=!0),e.prxContainerElement=r,e.replaced=a}};function hu(e){try{var t=document.cookie.split(";").filter((function(t){return t.indexOf(e+"=")>-1}));return t.length?t[0].split("=")[1]:"{}"}catch(e){return"{}"}}var vu="localStorage",mu="cookie";function yu(e,t){var n=this;this.name=e;var r=function(){D.setCookie(n.name,hu(n.name)),n.storageType=mu};try{!function(e){e===vu?(localStorage.getItem(n.name)||localStorage.setItem(n.name,"{}"),n.storageType=vu):r()}(t)}catch(e){r()}this.saveData=function(e){switch(this.storageType){case mu:D.setCookie(this.name,JSON.stringify(e));break;case vu:localStorage.setItem(this.name,JSON.stringify(e))}},this.getData=function(){switch(this.storageType){case mu:return JSON.parse(hu(this.name));case vu:return JSON.parse(localStorage.getItem(this.name))}}}function gu(e){e=e||window.location.origin+window.location.pathname;var t="ntv-session-".concat(e),n=new Date;this.engagementStorage=new yu(t,vu),this.existingSession=this.engagementStorage.getData(),0===Object.keys(this.existingSession).length&&(this.existingSession=bu(this.engagementStorage,wu(t,n))),Boolean(this.existingSession.sessionExperation<n.getTime())&&(this.existingSession=bu(this.engagementStorage,wu(t,n)))}function bu(e,t){return t?(e.saveData(t),t):{}}function wu(e,t){var n=new Date(t.getTime());return n.setHours(n.getHours()+1),{url:window.location.origin,id:e,lastInteraction:t.getTime(),sessionStart:t.getTime(),sessionExperation:n.getTime()}}function Eu(){(new gu).incrementRefreshes()}gu.prototype.incrementRefreshes=function(){if(!this.existingSession.hasOwnProperty("refreshes"))return this.existingSession.refreshes=0,void(this.existingSession=bu(this.engagementStorage,this.existingSession));this.existingSession.refreshes>=3?dp.setting.recordEngagements=!1:(this.existingSession.refreshes++,this.existingSession=bu(this.engagementStorage,this.existingSession))};var Tu=D.setTimeout;function Su(e){this.ad=e,this.article=e.article,this.responseId=e.responseId,this.preview=e.preview,this.advertiser=e.advertiser,this.articleTemplate=e.articleTemplate,this.replaced=!1,this.prxContainerElement=void 0,this.adId=e.id,this.isWebview=e.isWebview,this.adPlacementId=e.adPlacementId,e.article&&(this.paginationNextUrl=e.article.paginationNextUrl,this.paginationPreviousUrl=e.article.paginationPreviousUrl,this.title=e.article.title,this.body=e.article.body),e.articleTemplate&&(this.removals=e.articleTemplate.removals,this.fragments=e.articleTemplate.fragments)}function ku(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0;r<e.length;r++){var i=e[r],o=D.domQuery(i.Selector);if(o)switch(i.Type){case 1:o.remove();break;case 2:o.style.display="none"}else n.push(i)}n.length>0&&t>0&&(t--,Tu((function(){return xu.executeRemoval(n,t)}),100))}function Pu(e,t){e&&(t&&""!=t?(e.setAttribute("href",t),e.setAttribute("style","display:inline-block")):e.setAttribute("style","display:none"))}function Au(e){var t=e.type,n=e.selector,r=e.rangeStart,i=e.articleId,o=D.domQueryAll(n,document);if(o&&0!==o.length)for(var a,s=Eh(i),c=0,l=function(){a=o[c];var e=Number(a.dataset.ntvCustomCta||a.dataset.ntvCustomWidget);if(isNaN(e))return"break";if(e+=r,"cta"===t||!s)return"A"===a.nodeName?(Iu(a,e),"continue"):(a.querySelectorAll("a").forEach((function(t){return Iu(t,e)})),"continue");var n=function(){D.appendImage(s.baseTrackingUrl+e)};a.addEventListener("click",n,!0),D.domQueryAll("iframe",a).forEach((function(e){!function(e){var t=e.frame,n=e.callback,r=e.once,i={isMouseOver:!1,fired:!1},o=function(){i.isMouseOver&&r&&!1===i.fired&&(n(),i.fired=!0,r&&l())},a=function(){i.isMouseOver=!0},s=function(){i.isMouseOver=!1},c=!1;function l(){D.getTopWindow().removeEventListener("blur",o),t.removeEventListener("mouseover",a),t.removeEventListener("mouseout",s)}c||(D.getTopWindow().addEventListener("blur",o),t.addEventListener("mouseover",a),t.addEventListener("mouseout",s),c=!0)}({frame:e,callback:n})}))};c<o.length;c++){var u=l();if("break"===u)break}}function Iu(e,t){e.href=e.href.replace(/(ntv_at)=(\d*\,?)*/,(function(e){return"ntv_at=".concat(D.removeDuplicates(D.modifyQSParamValues(e,String(t),mh.cta)).join())}))}function Cu(e){arguments.length>1&&void 0!==arguments[1]||window;if(Ou(e),e.removals&&e.removals.length>0)try{ku(e.removals,100)}catch(e){}up(e.ad.id)}function Ou(e){e&&(!function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=t.paginationNextUrl,o=t.paginationPreviousUrl;if(!(void 0!==n&&n<100&&++n>=100)){if(i||o){var a=D.domQuery("a.prx_pagination_next"),s=D.domQuery("a.prx_pagination_previous");return a||s?(Pu(a,i),void Pu(s,o)):void Tu((function(){return e(t)}),100)}var c=D.domQuery(".prx_pagination_wrapper");if(c||0!=/loaded|complete/.test(r.readyState)){if(!c&&/loaded|complete/.test(r.readyState))return void 0===n&&(n=0),void Tu((function(){return e(t,n)}),100);c.setAttribute("style","display:none !important")}else Tu((function(){return e(t)}),100)}}(e),Tu((function(){Au({type:"cta",selector:".ntv-body a[data-ntv-custom-cta]",rangeStart:c.CUSTOM_CTA_RANGE_START,articleId:e.adPlacementId,responseId:e.responseId}),Au({type:"widget",selector:"[data-ntv-custom-widget]",rangeStart:c.CUSTOM_WIDGET_RANGE_START,articleId:e.adPlacementId,responseId:e.responseId})}),0))}var _u=function(e){if(e&&!dp.articleCache.has(e.adPlacementId)){wh(e.adPlacementId,e.tracking),Eu();var t=new Su(e);Ru(t.ad.adPlacementId,t.ad),D.isChrome()?function(e){var t=D.getTopWindow();!0!==t["post-message-render-article-listener"]&&(t.addEventListener("message",(function(n){n.origin===t.location.origin&&"processPlacements"===n.data&&xu.render(e)}),!1),t["post-message-render-article-listener"]=!0);t.postMessage("processPlacements",t.location.origin)}(t):xu.render(t)}};function Ru(e,t){dp.articleCache.set(e,t)}var xu={render:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;t.title=e.title,pu(e),e.replaced&&Cu(e),/loading|interactive|initialize/.test(t.readyState)&&!e.replaced?Tu((function(){return xu.render(e)}),50):e.replaced||Cu(e)},executeRemoval:ku},Lu=function(e,t){!function(e,t){e.placements.length||D.ampModeHandler(t)}(e,t),Wl.renderInit(e.placements.length,e.placements.filter((function(e){return e.selector&&e.ads&&e.ads.length})).map((function(e){return e.ads[0].id}))),e.placements.forEach((function(t){if(t.responseId=e.responseId,t.selector||t.parentCount)!function(e,t){dp.tout=!0,e.ads&&e.ads.length>0?tu.renderAds(e):Gl(e,t)}(t,e);else{var n=t.ads.pop();if(!n)return;ql(n,t),n.tracking=t.tracking,n.isWebview=e.isWebview||!1,_u(n)}be.performance.trackBeforeRender(t.tracking)}))},Du={true:"Y",false:"N"};function Nu(){Nu=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function f(){}function p(){}function h(){}var v={};c(v,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==t&&n.call(y,o)&&(v=y);var g=h.prototype=f.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t((function(i,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function T(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function ju(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mu(r.key),r)}}function Mu(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Uu(e,t){return(Uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hu(e);if(t){var i=Hu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Bu(this,n)}}function Bu(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hu(e){return(Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uu(e,t)}(s,e);var t,n,r,i,o,a=Fu(s);function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,c.US_PRIVACY)).name="usprivacy",n.consentData=t.consentString||"",n}return t=s,n=[{key:"getConsentData",value:function(){return this.consentData}},{key:"consentDataToQueryValue",value:function(){return this.consentData}}],r=[{key:"Initialize",value:(i=Nu().mark((function e(){var t,n,r=arguments;return Nu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:window,e.next=3,Xu();case 3:return n=e.sent,e.abrupt("return",new s(t,{consentString:n}));case 5:case"end":return e.stop()}}),e)})),o=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){ju(o,n,r,a,s,"next",e)}function s(e){ju(o,n,r,a,s,"throw",e)}a(void 0)}))},function(){return o.apply(this,arguments)})}],n&&Vu(t.prototype,n),r&&Vu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Ne),qu={VERSION:0,EXPLICIT_NOTICE:1,OPT_OUT_SALE:2,LSPA_COVERED:3},zu=function(){var e=h();return new Promise((function(t,n){var r=setTimeout((function(){n()}),100);return Ye(ze,e).then((function(e){clearTimeout(r),t(Yu(e.uspString))})).catch((function(e){n()}))}))},Gu=function(){var e=h();return new Promise((function(t,n){if(e.__uspapi&&"function"==typeof e.__uspapi){var r=setTimeout((function(){n()}),100);e.__uspapi("getUSPData",1,(function(e,i){clearTimeout(r),i?t(Yu(e.uspString)):n()}))}else n()}))};function Yu(e){return Ku(e),e}var Qu=function(){p(c.US_PRIVACY_COOKIE)},Ku=function(e){f(c.US_PRIVACY_COOKIE,e,365)},Xu=function(){return function(){h();return zu().catch((function(){return Gu()})).catch((function(){return Qu()})).then((function(e){if(e)return e}))}().then((function(e){if(e){if("-"===function(e){return e[qu.OPT_OUT_SALE]}(e))return e;if(function(e){var t=e[qu.OPT_OUT_SALE],n=e[qu.LSPA_COVERED];return"Y"===t||"N"===n}(e))return dp.setting.oos=0,e;var t,n,r=navigator.globalPrivacyControl;return r?(dp.setting.oos=1,t=e,(n=r)?t.substr(0,qu.OPT_OUT_SALE)+Du[n]+t.substr(qu.OPT_OUT_SALE+1):t):e}}))};function Ju(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Zu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $u=function(e){var t=e.consentUrl;if(t){var n=[],r=[],i={};!function(e,t,n){var r=e.usPrivacyApplies,i=e.gdprApplies;e.gppApplies?ed(Ge.Initialize,c.GPP,e.gppConsentString,t,n):(r&&ed(Wu.Initialize,c.US_PRIVACY,e.usPrivacyConsent,t,n),i&&ed(ot.Initialize,c.GDPR,e.gdprConsentString,t,n))}(e,n,i),Promise.allSettled(n).then((function(e){var n,o=Ju(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;"fulfilled"===a.status&&r.push(a.value)}}catch(e){o.e(e)}finally{o.f()}if(0!==r.length){var s=function(e,t){var n=e.filter((function(e){var n=e.consentDataToQueryValue();return""!==n&&!function(e,t,n){return null!=n[t]&&n[t]===e}(n,e.name,t)})).map((function(e){return e.getQueryString()}));if(0===n.length)return;for(var r=n[0],i=1;i<n.length;i++)r+="&".concat(n[i]);return r}(r,i);if(void 0!==s)!function(e){D.ajax({method:"get",url:e,success:function(e){},error:function(t){D.postError(new Error("Failed to send consent strings to ad server. ".concat(e)))}})}(t+s)}}))}};function ed(e,t,n,r,i){r.push(e());var o=n;o&&(i[t]=o)}function td(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||nd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nd(e,t){if(e){if("string"==typeof e)return rd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rd(e,t):void 0}}function rd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function id(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ad(r.key),r)}}function od(e,t,n){return(t=ad(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ad(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var sd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),od(this,"params",new Map),od(this,"qsparams",void 0),od(this,"url",void 0)}var t,n,r;return t=e,(n=[{key:"addParams",value:function(e){for(var t in e)this.params.set(t,e[t])}},{key:"addParam",value:function(e,t){this.params.set(e,t)}},{key:"removeParams",value:function(e){for(var t in e)this.params.delete(t)}},{key:"removeParam",value:function(e){this.params.delete(e)}},{key:"addQSParams",value:function(e,t){if(t){this.containsRedirectParams()||(this.qsParams=t,this.addParams(t)),t=D.stripLeadingCharacters(t,"&");var n=D.qetQueryStringParams("?".concat(t)),r=D.qetQueryStringParams(e);this.addParams(Object.assign(n.params,r.params)),this.url=r.base,this.qsParams=t}}},{key:"clearQSParams",value:function(){delete this.url,this.removeParams(this.qsParams),delete this.qsParams}},{key:"containsRedirectParams",value:function(){return this.params.has(c.REDIRECT)||this.params.has(c.REQ_REDIRECT)}},{key:"setUrl",value:function(e){this.url=e}},{key:"clearUrl",value:function(){delete this.url}},{key:"makeRequest",value:function(){var e=this;return this.url||(this.url="".concat(D.getProtocol(),"//").concat(c.JDOMAIN,"/t.json?")),this.appendParams(),new Promise((function(t){fetch(e.url).then((function(e){return e.json()})).then((function(e){t(e)})).catch((function(e){D.postError(e)}))}))}},{key:"appendParams",value:function(){var e,t=[],n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=nd(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(this.params);try{for(n.s();!(e=n.n()).done;){var r=td(e.value,2),i=r[0],o=r[1];t.push("".concat(i,"=").concat(o))}}catch(e){n.e(e)}finally{n.f()}t.push("ntv_url=".concat(document.location.href)),this.url=this.url.concat(t.join("&"))}}])&&id(t.prototype,n),r&&id(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function cd(e){return function(e){if(Array.isArray(e))return dd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ud(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ld(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ud(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ud(e,t){if(e){if("string"==typeof e)return dd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dd(e,t):void 0}}function dd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hd(r.key),r)}}function pd(e,t,n){return(t=hd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hd(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var vd=[.01],md=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pd(this,"batch",[]),pd(this,"atf",[]),pd(this,"config",{}),pd(this,"placements",[]),pd(this,"smartLoadObserver",void 0),pd(this,"initialized",!1),this.resizeListener=this.resizeListener.bind(this)}var t,n,r;return t=e,(n=[{key:"init",value:function(e){var t,n,r=this;if(!this.initialized&&e.hasOwnProperty("lazyLoadingConfig")&&e.hasOwnProperty("placements")){this.initialized=!0,this.config=e.lazyLoadingConfig,this.placements=e.placements,this.config.triggerThreshold.value=Number(null===(t=this.config.triggerThreshold)||void 0===t?void 0:t.value),this.config.groupingRange.value=Number(null===(n=this.config.groupingRange)||void 0===n?void 0:n.value);var i=this.constructMarginString(this.config.triggerThreshold),o=this.convertGroupingRange(this.config.triggerThreshold,this.config.groupingRange),a=new Oc({onThreshold:this.handlePlacementIntersection.bind(this)});this.smartLoadObserver=new xc({threshold:[.01],rootMargin:i},o),window.addEventListener("resize",this.resizeListener),this.placements.map((function(e){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return new Promise((function(n){if(t.querySelector(e))return n(t.querySelector(e));var r=new MutationObserver((function(i){t.querySelector(e)&&(n(t.querySelector(e)),r.disconnect())}));r.observe(t,{childList:!0,subtree:!0})}))})(e.selector).then((function(t){t&&(t.placementId=e.id,r.smartLoadObserver.addTarget(t,a))}))}))}}},{key:"release",value:function(){window.removeEventListener("resize",this.resizeListener)}},{key:"resizeListener",value:function(){this.smartLoadObserver.groupingRange=convertGroupingRange(this.config.triggerThreshold,this.config.groupingRange)}},{key:"constructMarginString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{value:1.5,unit:"viewport"};switch(e.unit){case"viewport":var t=100*e.value;return"".concat(t,"% 0% ").concat(t,"% 0%");case"pixel":return"".concat(e.value,"px 0px ").concat(e.value,"px 0px");case"percentage":return"".concat(e.value,"% 0% ").concat(e.value,"% 0%")}}},{key:"convertGroupingRange",value:function(e,t){var n={value:0,unit:"pixel"};return"viewport"===t.unit?n.value+=this.viewportToPixel(t.value):"percent"===t.unit?n.value+=this.percentToPixel(t.value):n.value+=t.value,"viewport"===e.unit?n.value+=this.viewportToPixel(e.value):"percent"===e.unit?n.value+=this.percentToPixel(e.value):n.value+=e.value,n}},{key:"handlePlacementIntersection",value:function(e,t){var n=this.constructMarginString(t.groupingRange);if(t.removeTarget(e.target),t.primaryObserver)t.primaryObserver.removeTarget(e.target);else{var r=Array.from(t.primaryObserver?t.primaryObserver.targetOptions.keys():t.targetOptions.keys());if(r.length>0){var i=new Oc({onThreshold:this.handlePlacementIntersection.bind(this)}),o=new xc({THRESHOLD:vd,rootMargin:n},t.groupingRange);o.primaryObserver=t.primaryObserver?t.primaryObserver:t,r.map((function(e){o.addTarget(e,i)})),setTimeout((function(){o.observer.disconnect()}),500)}}this.addToBatch(e.target.placementId)}},{key:"viewportToPixel",value:function(e){return window.innerHeight*e}},{key:"percentToPixel",value:function(e){return window.innerHeight*(.01*e)}},{key:"startBatch",value:function(e){var t=this;setTimeout((function(){var e=t.generateBatchList(t.batch),n=t.generateBatchList(t.atf),r=new sd,i={};i[c.AD_FILTER]=n,i[c.PTD_FILTER]=e;var o=D.getKeyValuePairs();o&&(i[c.KEY_VALUE_PAIRS]=o),r.addParams(i),r.makeRequest().then((function(e){return t.processBatchResponse(e)})),t.batch=[]}),e)}},{key:"addToBatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;0===this.batch.length&&this.startBatch(t),this.batch.push(e)}},{key:"processBatchResponse",value:function(e){e.smartLoading=!0;var t,n=ld(e.placements);try{for(n.s();!(t=n.n()).done;){var r,i=ld(t.value.ads);try{for(i.s();!(r=i.n()).done;){var o=r.value;this.atf&&this.atf.indexOf(o.id)<0&&this.atf.push(o.id)}}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}Zd(e)}},{key:"generateBatchList",value:function(e){return cd(new Set(e)).join(",")}}])&&fd(t.prototype,n),r&&fd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());function yd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gd(r.key),r)}}function gd(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function bd(e,t){return(bd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Td(e);if(t){var i=Td(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ed(this,n)}}function Ed(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Td(e){return(Td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bd(e,t)}(o,e);var t,n,r,i=wd(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this)}return t=o,(n=[{key:"publish",value:function(e,t){this.map.getPubSubscribers(e).forEach((function(n){"function"==typeof n&&n(new Event(e),t)}))}}])&&yd(t.prototype,n),r&&yd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(so),kd=window.win||window;ntv.events||(ntv.events=new Sd,"function"!=typeof kd.Object.create&&(kd.Object.create=function(e){function t(){}return t.prototype=e,new t}));var Pd=D.getTopWindow().document,Ad=Pd.createElement("div"),Id=[],Cd={PubSub:{subscribe(e,t){var n=this;(e=e.split(" ")).forEach((function(e){-1==(n.unpublishList||Id).indexOf(e)&&(D.is(t,Array)?t.forEach((function(t){(n.univNode||Ad).addEventListener(e,t,!1)})):(n.univNode||Ad).addEventListener(e,t,!1))}))},unsubscribe(e,t){(this.univNode||Ad).removeEventListener(e,t,!1)},publish(e,t){D.is("f",Event)&&"Event"==Event.prototype.constructor.name&&Event.hasOwnProperty("BUBBLING_PHASE")?this.publish=function(e,t){if(-1==(this.unpublishList||Id).indexOf(e)){var n=new Event(e);n.data=t||{},(this.univNode||Ad).dispatchEvent(n,t)}}:this.publish=function(e,t){if(-1==(this.unpublishList||Id).indexOf(e)){var n=Pd.createEvent("Event");n.data=t||{},n.initEvent(e,!0,!0),(this.univNode||Ad).dispatchEvent(n,t)}},this.publish(e,t)},unpublish(e){Id.push(e)}},SecurePubSub(){function e(){this.doc=D.getTopWindow().document,this.univNode=Pd.createElement("div"),this.unpublishList=[]}return e.prototype.subscribe=Cd.PubSub.subscribe,e.prototype.unsubscribe=Cd.PubSub.unsubscribe,e.prototype.on=e.prototype.subscribe,e.prototype.publish=Cd.PubSub.publish,e.prototype.trigger=e.prototype.publish,new e},Types:{Player:{Publish:{Preroll:{ADHEADLINE_CLICK:"player:preroll:adHeadlineCick",VIDEO_END:"player:preroll:videoEnd",VIDEO_START:"player:preroll:videoStart",PROGRESS:"player:preroll:progress",PAUSE:"player:preroll:pause",CLICK:"player:preroll:click",CTA_CLICK:"player:preroll:ctaClick",VOLUME_CHANGE:"player:preroll:volumechange",IGNORE_FIRST_CLICK:"player:preroll:ignoreFirstclick",MUTE:"player:preroll:mute",UNMUTE:"player:preroll:unmute",RESUME:"player:preroll:resume",FULLSCREEN:"player:preroll:fullscreen",EXIT_FULLSCREEN:"player:preroll:exitFullscreen",PREROLL_FETCH_AD_REQUEST:"player:preroll:prerollAdRequest",PREROLL_FETCH_AD_RETURNED:"player:preroll:prerollAdReturned",PREROLL_FETCH_AD_CANCEL:"player:preroll:prerollAdCancel",PREROLL_FETCH_AD_ERROR:"player:preroll:prerollAdError",PREROLL_AD_CANCELED:"player:preroll:videoCanceled",PREROLL_AD_ERROR:"player:preroll:videoError",RESIZE:"player:preroll:resize",BUFFERING:"player:preroll:buffering"},Content:{ADHEADLINE_CLICK:"player:content:adHeadlineCick",VIDEO_END:"player:content:videoEnd",VIDEO_START:"player:content:videoStart",PROGRESS:"player:content:progress",PAUSE:"player:content:pause",CLICK:"player:content:click",VOLUME_CHANGE:"player:content:volumechange",IGNORE_FIRST_CLICK:"player:content:ignoreFirstclick",MUTE:"player:content:mute",UNMUTE:"player:content:unmute",RESUME:"player:content:resume",FULLSCREEN:"player:content:fullscreen",EXIT_FULLSCREEN:"player:content:exitFullscreen",RESIZE:"player:content:resize",BUFFERING:"player:content:buffering",CAN_PLAY:"player:content:canPlay",REPLAY:"player:content:replay"},General:{PLAYER_READY:"player:general:playerReady",USER_ACTIVE:"player:general:userAcitve",USER_INACTIVE:"player:general:userInacitve"}},Subscribe:{RENDER_VIDEO_PLAYER:"player:cmd:renderVideoPlayer",VOLUME_CHANGE:"player:cmd:volumeChange",SEEK:"player:seek",PLAY:"player:cmd:play",PAUSE:"player:cmd:pause",RESUME:"player:cmd:resume",RESET:"player:cmd:reset",MUTE:"player:cmd:mute",UNMUTE:"player:cmd:unmute",TOGGLE:"player:cmd:toggle",USER_ACTIVE:"player:cmd:userAcitve",USER_INACTIVE:"player:cmd:userInacitve",Preroll:{LEARN_MORE_CLICKED:"player:cmd:prerollLearnMorenClicked"},Content:{LEARN_MORE_CLICKED:"player:cmd:learnMorenClicked"},PREROLL_LEARN_MORE_CLICKED:"player:cmd:prerollLearnMorenClicked"}},Tracking:{Events:{Preroll:{ADHEADLINE_CLICK:"tracking:events:preroll:adheadlineCick",VIDEO_END:"tracking:events:preroll:videoEnd",VIDEO_START:"tracking:events:preroll:videoStart",PAUSE:"tracking:events:preroll:pause",CLICK:"tracking:events:preroll:click",CTA_CLICK:"tracking:events:preroll:ctaClick",VOLUME_CHANGE:"tracking:events:preroll:volumechange",IGNORE_FIRST_CLICK:"tracking:events:preroll:ignoreFirstclick",MUTE:"tracking:events:preroll:mute",UNMUTE:"tracking:events:preroll:unmute",RESUME:"tracking:events:preroll:resume",FULLSCREEN:"tracking:events:preroll:fullscreen",EXIT_FULLSCREEN:"tracking:events:preroll:exitFullscreen",PREROLL_FETCH_AD_REQUEST:"tracking:events:preroll:prerollAdRequest",PREROLL_FETCH_AD_RETURNED:"tracking:events:preroll:prerollAdReturned",PREROLL_FETCH_AD_CANCEL:"tracking:events:preroll:prerollAdCancel",PREROLL_FETCH_AD_ERROR:"tracking:events:preroll:prerollAdError",PREROLL_AD_CANCELED:"tracking:events:preroll:videoCanceled",PREROLL_AD_ERROR:"tracking:events:preroll:videoError"},Content:{ADHEADLINE_CLICK:"tracking:events:content:adheadlineCick",VIDEO_END:"tracking:events:content:videoEnd",VIDEO_START:"tracking:events:content:videoStart",PAUSE:"tracking:events:content:pause",CLICK:"tracking:events:content:click",VOLUME_CHANGE:"tracking:events:content:volumechange",IGNORE_FIRST_CLICK:"tracking:events:content:ignoreFirstclick",MUTE:"tracking:events:content:mute",UNMUTE:"tracking:events:content:unmute",RESUME:"tracking:events:content:resume",FULLSCREEN:"tracking:events:content:fullscreen",EXIT_FULLSCREEN:"tracking:events:content:exitFullscreen"}},Progress:{Preroll:{CUMULATIVE:"tracking:progress:preroll:cumulative",POSITION:"tracking:progress:preroll:position",PERCENTILE:"tracking:progress:preroll:percentile",USERACTIVECUMULATIVE:"tracking:progress:preroll:userActiveCumulative",CURRENT_TIME:"tracking:progress:preroll:currentTime"},Content:{CUMULATIVE:"tracking:progress:content:cumulative",POSITION:"tracking:progress:content:position",PERCENTILE:"tracking:progress:content:percentile",USERACTIVECUMULATIVE:"tracking:progress:content:userActiveCumulative",CURRENT_TIME:"tracking:progress:content:currentTime"}}},Modules:{EXECUTE:"modules:execute"},Skin:{READY:"skin:ready",INITIALIZED:"skin:initialized",UPDATE_INFO_BAR:"skin:updateInfoBar",SHOW_INFO_BAR:"skin:showInfoBar",HIDE_INFO_BAR:"skin:hideInfoBar",SHOW_CONTROL_BAR:"skin:showControlBar",HIDE_CONTROL_BAR:"skin:hideControlBar",SHOW_OVERLAY:"skin:showOverlay",HIDE_OVERLAY:"skin:hideOverlay",HIDE_ALL_OVERLAYS:"skin:hideAllOverlays",FULLSCREEN:"skin:fullscreen",EXIT_FULLSCREEN:"skin:exitFullscreen",HIDE_PREVIEW_IMAGE:"skin:hidePreviewImage",SHOW_VIDEO_END_IMAGE:"skin:showVideoEndImage",HIDE_VIDEO_END_IMAGE:"skin:hideVideoEndImage",INFO_BAR_CLICK:"skin:infoBarClicked",CLICK:"skin:click",PAUSE:"skin:pause",PREVIEW_IMAGE_CLICK:"skin:previewImageClick",RENDER_PREROLL_SKIN:"skin:renderPrerollSkin",REMOVE_PREROLL_SKIN:"skin:removePrerollSkin",PLAY:"skin:play",USER_ACTIVE:"skin:userActive",USER_INACTIVE:"skin:userInactive",RESUME:"skin:resume",INFO_BAR_SHOWN:"skin:infoBarShown",INFO_BAR_HIDDEN:"skin:infoBarHidden",OVERLAY_SHOWN:"skin:overlayShown",OVERLAY_HIDDEN:"skin:overlayHidden",PREVIEW_IMAGE_VIDEO_END_SHOWN:"skin:previewImageVideoEndShown",FULLSCREEN_CHANGED:"skin:fullScreenChanged",INFO_BUTTON_CLICKED:"skin:infoButtonClicked",CONTROLBAR_HIDDEN:"skin:controlbarHidden",CONTROLBAR_SHOWN:"skin:controlbarShown",PREVIEW_IMAGE_HIDDEN:"skin:previewImageHidden",ALL_OVERLAYS_HIDDEN:"skin:allOverlayHidden",PREROLL_SKIN_RENDERED:"skin:preRollSkinRendered",PREROLL_SKIN_REMOVED:"skin:preRollSkinRemoved",VIDEO_RESUMED:"skin:videoResumed",RESIZE:"skin:resize",TOGGLE_LEARN_MORE:"skin:toggleLearnMore",Preroll:{LEARN_MORE_CLICKED:"skin:prerollLearnMorenClicked"},Content:{LEARN_MORE_CLICKED:"skin:learnMorenClicked"},PREROLL_LEARN_MORE_CLICKED:"skin:prerollLearnMorenClicked",YouTube:{INITIALIZED:"skin:youTube:initialized",READY:"skin:youTube:ready"},Mobile:{INITIALIZED:"skin:mobile:initialized",READY:"skin:mobile:ready",MOBILE_SHARE_CLOSED:"skin:mobileShareClosed",MOBILE_SHARE_OPENED:"skin:mobileShareOpened",CLOSE_MOBILE_SHARE:"skin:closeMobileShare",OPEN_MOBILE_SHARE:"skin:openMobileShare"}},IFU:{READY:"ifu:ready",INITIALIZED:"ifu:initialized",EXPANDED:"ifu:expanded",COLLAPSED:"ifu:collapsed",TOGGLE_VIDEO:"ifu:toggleVideo",ANCHOR_CLICK:"ifu:anchorClick",COLLAPSE:"ifu:collapse",EXPAND:"ifu:expand",CLICK:"ifu:click",ADHEADLINE_CLICK:"ifu:adHeadlinClick"},Manager:{TOGGLE_VIDEO:"manager:toggleVideo",PLAY:"manager:play",RESUME:"manager:resume",PAUSE:"manager:pause",USER_ACTIVE:"manager:userActive",USER_INACTIVE:"manager:userInactive",PREVIEW_IMAGE_CLICK:"manager:previewImageClick",CLICK:"manager:click",MUTE:"manager:mute",UNMUTE:"manager:unmute",RESET:"manager:reset",ClEAN_UP:"manager:cleanUpRemainingLogic"}},Data:{PLAY_BUTTON:"player:button:play",PAUSE_BUTTON:"player:button:pause",SEEK_BAR:"player:button:seek",VOLUME_SLIDER:"player:slider:volume",MUTE_BUTTON:"player:button:mute",UNMUTE_BUTTON:"player:button:unmute",FULLSCREEN_BUTTON:"player:button:fullscreen",EXIT_FULLSCREEN_BUTTON:"player:button:exitFullscreen",INFO_BUTTON:"player:button:info"}};Object.freeze(Cd);var Od={viewabilityTimeout:[],impressionTracked:null,clickTracked:null},_d={adInitialized:0,mraidState:"none",orientationState:null,placement:{currentPosition:null,screenSize:null,expandedInfo:null,isViewable:null}};function Rd(e){Od.impressionTracked&&(e.data&&D.is("b",e.data)?function(){if(ntv.MRAID.adInfo)for(var e=function(e){var t=ntv.MRAID.adInfo[e],n=t.videoDimensions,r=t.primaryImpressionURL,i=t.thirdPartyTrackingTags,o=t.placementID,a=t.adID,s=t.minimumExposedTime,c=t.startTracking;t.tracked||c||(ntv.MRAID.adInfo[e].startTracking=!0,Od.viewabilityTimeout.push(setTimeout((function(){!D.is("o",n)||isNaN(n.width)||isNaN(n.height)||ntv.MRAID.adInfo[e].tracked||(r+="&ntv_vw="+n.width+"&ntv_vh="+n.height),vh.Record(r,i,1,null,{placementID:o,adID:a}),ntv.MRAID.adInfo[e].tracked=!0}),s)))},t=0;t<ntv.MRAID.adInfo.length;t++)e(t)}():!e.data&&D.is("b",e.data)&&function(){for(var e=0;e<Od.viewabilityTimeout.length;e++)clearTimeout(Od.viewabilityTimeout[e]),ntv.MRAID.adInfo[e].startTracking=!1;Od.viewabilityTimeout=[]}())}function xd(){Od.impressionTracked||(Od.impressionTracked=!0)}function Ld(){Od.clickTracked||(Od.clickTracked=!0)}function Dd(){ntv.MRAID&&(Cd.PubSub.subscribe("mraidViewabilityChange",Rd),Cd.PubSub.subscribe("mraidImpression",xd),Cd.PubSub.subscribe("mraidClick",Ld))}function Nd(){jd({type:"stateChange"})}function jd(e){!function(e){switch("object"==typeof e){case!0:for(var t in e)Od[t]=e[t];default:switch(Od.mraidState=mraid.getState(),Od.placement.expandedInfo=mraid.getExpandProperties(),Od.placement.isViewable=mraid.isViewable(),window.orientation){case 0:case 180:Od.orientationState="portrait";break;case 90:case-90:Od.orientationState="landscape"}}}()}function Vd(e,t){jd()}var Md=["placementForTracking","trackUserSessionTime"];function Ud(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Fd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hd(Object(n),!0).forEach((function(t){qd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zd=D.setTimeout,Gd=new Re;$("infiniteScrollManager",Gd);var Yd=function(e){e.safeIframe&&ntv.Tracking.Record()},Qd=function(e){if(e){var t=e.gdprConsentUrl;t&&(D.breakOutIframe(),ct().then((function(e){D.appendImage(t+(e.consentString||"")+"&ntv_gdpr_version=".concat(e.apiVersion))})).catch((function(e){D.appendImage(t)})))}},Kd=function e(t){var n=t.trackingCode;if(n){var r=ntv.query("body");r.length?r.append(n):zd((function(){return e(t)}),100)}},Xd=function(e){var t={};return e.passback&&(t.passback=e.passback),e.hb?Wd({type:"hb",params:e.hb},t):e.s2s?Wd({type:"s2s",params:e.s2s},t):void 0},Jd={useMraidViewability:function(){null==ntv.MRAID&&null!=window.mraid&&((Od=Object.assign(Od,_d)).adInitialized=1,window.ntv.MRAID=window.ntv.MRAID||{},Dd(),function(){Cd.PubSub.publish("mraidImpression"),mraid.isViewable()&&Cd.PubSub.publish("mraidViewabilityChange",mraid.isViewable());Cd&&mraid.addEventListener("viewableChange",(function(e){Cd.PubSub.publish("mraidViewabilityChange",e)}));document.addEventListener("click",(function(e){"a"==e.target.tagName.toLowerCase()&&e.href.match(/^(((http|https):)?\/\/)/gi)&&(e.preventDefault(),mraid.open(e.href))}))}(),function(){switch(mraid.getState()){case"loading":mraid.addEventListener("ready",Nd);break;default:Nd()}mraid.addEventListener("error",Vd),mraid.addEventListener("stateChange",Nd)}())}};function Zd(e,t){try{var n=ntv.PostRelease,r=n.ampMode,i=n.MRAID;!function(e){var t=e.placementForTracking,n=e.trackUserSessionTime,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r||i||!t||dp.sessionMgmt.initializeSession(t,n)}(e,r,i),e.responseId=D.generateUniqueId(1e7),ntv.query(document).ready((function(){e.hasOwnProperty("smartLoading")||md.init(e)})),be.performance.sendResponsivenessRequest(e.placementForTracking,e.trackUserSessionTime),t||be.performance.set("getResponse"),bh(e.responseId,e.tracking),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&t){var n=ee("resposneFlags");n.set(e,Object.assign({},te,t))}}(e.responseId,e.flags),function(e){if(null!=e)for(var t=0,n=Object.entries(e);t<n.length;t++){var r=Fd(n[t],2),i=r[0],o=r[1];Jd[i]&&Jd[i](o)}}(e.flags),Yd(e),a=e,Gd.setManagers(a),Lu(e,r),Kd(e),(o=Xd(e))&&o.params.adUnits&&o.params.adUnits.length&&Et(o),function(e){var t=e.responseConsent;if(!t)return;$u(t),Qd(t),!t.usPrivacyApplies||Gu().catch((function(e){}))}(e)}catch(e){D.postError(e)}var o,a,s,c,l,u,d,f;c=(s=e).placements,l=s.isHeaderBidding,u=void 0!==l&&l,d=s.containsInfScrollPlacements,f=void 0!==d&&d,0!==c.length&&(!(0===c.filter((function(e){return e.ads&&e.ads.length})).length)||u||f||D.onDOMContentLoaded((function(){var e=c.length;D.firePubSubEvent("noAds",e),D.firePubSubEvent("noads",e)})))}function $d(e){bh(e.setup.id,e.tracking);var t=e.tracking,n=t.placementForTracking,r=t.trackUserSessionTime,i=Ud(t,Md);be.performance.sendResponsivenessRequest(n,r),be.performance.set("getResponse"),Yd(i),Kd(i),Qd(i),i.responseConsent.usPrivacyApplies&&Gu().catch((function(e){}))}var ef=function(e){e.isDFP=function(e){var t=dp.viewableImpressionTrackers,n=0,r=e.placementID+"-"+e.adID;if(t instanceof Array&&t.length)do{if(window.ntvToutAds&&r in window.ntvToutAds&&window.ntvToutAds[r].dfpType&&window.ntvToutAds[r].ParentCount)return!0}while(++n<t.length);return!1}(e),e.ampMode=dp.ampMode,function(e){D.adBlocker&&(e.playerCssUrl&&e.renderingParams&&e.renderingParams.cssUrl&&(e.renderingParams.cssUrl=e.renderingParams.cssUrl.replace("sharing-skin-v5.css","sharing-skin-v5.1.css")),e.iframeBody&&(e.iframeBody=e.iframeBody.replace(/ntvVideo/g,"prxVideo"),e.renderingParams.iframeTag&&(e.renderingParams.iframeTag=e.renderingParams.iframeTag.replace(/ntvVideo/g,"prxVideo")),ntv.query("iframe[id^='ntvVideo']").each((function(e,t){t.id=t.id.replace("ntv","prx")}))))}(e);var t,n=e.renderingParams,r=ntv.query,i=r(dp.topWindow.document).find("."+n.outerCssClass);if(0==i.size()&&(i=r(document).find("."+n.outerCssClass)),r(i).find("a.prx_viewable_title"+e.placementID).click((function(){e.titleClicked=!0})),r(i).find("a.ntv-headline-anchor"+e.placementID).click((function(){e.titleClicked=!0})),8==n.videoExecution){i.find(".ntv-play-overlay").remove(),D.adBlocker&&(n.previewImage=n.previewImage.replace(c.ASSETS_PREFIX+D.getServerDomain(),D.getServerDomain()));var o=n.previewImage;-1==n.previewImage.indexOf("fetch")&&(o=(o=n.previewImage.replace("//"+c.ASSETS_DOMAIN+"/","")).replace(/(^\w+:|^)/,""));var a=i.find("img[src*='"+o+"']");0==a.length&&(a=i.find("img[src*='"+encodeURIComponent(o)+"']")),a.length>1&&(a=r(a[0])),a.parent().parent().is("a")&&a.parent().parent().replaceWith(a.parent()),a.parent().is("a")&&a.parent().replaceWith(a),a.replaceWith(n.iframeTag)}var s=ntv.Video,l=s.Player,u=s.Render,d=s.Tracker;switch(e.playerType){case c.YOUTUBE_PLAYER:t=D.generateVideo(e,[l.YouTube,u.IFU,u.Skin,u.YouTubeSkin,u.Mobile],[s.Tracker.Nativo]);break;case c.NATIVO_PLAYER:case c.VAST_PLAYER:t=D.generateVideo(function(e){var t=e.captionUrl||"",n=ntv.query(e.iframeBody),r=n.find("video");return""!==t&&(r[0].setAttribute("crossorigin","anonymous"),r.append('<track kind="captions" src="'.concat(t,'" srclang="en" label="English">'))),e.iframeBody=n[0].outerHTML,e}(e),[l.Nativo,u.IFU,u.Skin,u.Mobile],[d.Nativo,d.MOAT])}dp.videoPlayers.push(t);var f=i.find("."+n.linkCssClass);t.clickedBeforeRendering=!1,f.map((function(){var e=r(this);D.isNotValidHeadlineLink(e)&&(e.click((function(){return t.clickedBeforeRendering=!0,!1})),e.removeAttr("href").css("cursor","pointer"))}))};function tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nf(r.key),r)}}function nf(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var rf=new yu("ntvSession"),of=["click","keypress","focus"],af=function(e,t,n){return"&"+c.USER_SESSION_ID+"="+e+"&"+c.SESSION_PL_ID+"="+t+D.buildExperimentUrl(n)},sf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.trackUserSessionTime=!1,this.baseTrackingUrl=D.getBaseUrl()}var t,n,r;return t=e,(n=[{key:"initializeSession",value:function(e,t){this.requestNewSessionIfExpired(e,t),this.bindEvents()}},{key:"didSessionEnd",value:function(){var e=rf.getData(),t=!e||!Object.keys(e).length,n=e&&(new Date).getTime()>=e.sessionEndDate,r=e&&(new Date).getTime()-e.lastInteraction>18e5;return!!t||!(!n&&!r)&&(this.recordSession(),!0)}},{key:"createSession",value:function(e,t){try{var n=new Date;localStorage.removeItem(rf.name);var r=D.generateUniqueId(1e7),i=dp.setting.experiment||"";rf.saveData({id:r,placementID:e,lastInteraction:n.getTime(),sessionStart:n.getTime(),sessionEndDate:new Date(n.getFullYear(),n.getMonth(),n.getDate()+1).getTime(),trackUserSessionTime:t,experiment:i}),D.appendImage(this.baseTrackingUrl+c.AT+"=394"+af(r,e,i))}catch(e){}}},{key:"recordSession",value:function(){if(rf.getData().trackUserSessionTime){var e=rf.getData(),t=e.lastInteraction-e.sessionStart,n=this.baseTrackingUrl+c.AT+"=395&"+c.USER_SESSION_DURATION+"="+t+af(e.id,e.placementID,e.experiment);D.appendImage(n)}}},{key:"bindEvents",value:function(){var e=this,t=function t(){D.debounce((function(){var n=rf.getData(),r=n.placementID,i=n.trackUserSessionTime;e.requestNewSessionIfExpired(r,i)||(n.lastInteraction=(new Date).getTime(),rf.saveData(n)),dp.internalPubSub.unsubscribe(o,t)}),200)};of.forEach((function(e){document.addEventListener(e,t)})),dp.internalPubSub.subscribe(o,t)}},{key:"requestNewSessionIfExpired",value:function(e,t){return!!this.didSessionEnd()&&(this.createSession(e,t),!0)}}])&&tf(t.prototype,n),r&&tf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function cf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.open;n(e,t,"status=1,width=600,height=400")}var lf=function(e){return cf(e,"share_facebook")},uf=function(e){return cf(e,"share_twitter")},df=function(e){return cf(e,"share_linkedin")},ff=function(e){return cf(e,"share_google")},pf=function(e){return cf(e,"share_pinterest")},hf=function(e){return cf(e,"share_stumbleupon")},vf=function(e,t){return window.location="mailto:?subject="+encodeURIComponent(e)+"&body="+encodeURIComponent(t)},mf={17000001:"permutive"};function yf(){if(!dp.setting||!dp.setting.customAudience)return"";var e=dp.setting.customAudience;if(Array.isArray(e)){var t="&".concat(c.CUSTOM_AUDIENCE_SEGMENTS,"=");return e.length<1?"":t.concat(e.join())}if(!e||!D.is("n",e)&&!D.is("s",e))return"";var n=function(e){var t=mf[e],n=t&&ntvConfig&&ntvConfig.keyValues&&ntvConfig.keyValues[t];if(n)return n.substr(1,n.length-2)}(e);return n?"&".concat(c.CUSTOM_AUDIENCE_VENDOR,"=").concat(e,"&").concat(c.CUSTOM_AUDIENCE_SEGMENTS,"=").concat(n):""}function gf(){if(!dp.setting||!dp.setting.liveRamp)return"";var e=function(){try{var e=decodeURIComponent(document.cookie.match("(^|;) *_lr_env=([^;]*)")[2]);return(e=JSON.parse(atob(e)).envelope||window.localStorage.getItem("_lr_env"))&&(e=[{source:"liveramp.com",uids:[{id:e,atype:1}]}]),e=JSON.stringify(e),e=btoa(e)}catch(e){D.postError(e)}}();return e?"&".concat(c.LIVE_RAMP_EIDS,"=").concat(e):""}function bf(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];dp.isPageScrollHandled||(e||wf(),dp.isPageScrollHandled=!0)}function wf(){if(!dp.isPageScrollHandled)try{D.getTopWindow().document.addEventListener("scroll",Sf,!1),D.getTopWindow().document.addEventListener("ampScroll",Sf,!1)}catch(e){}}function Ef(e,t,n){void 0!==e&&null!=t&&null!=n&&n.scrollTo&&(!function(){try{D.getTopWindow().document.removeEventListener("scroll",Sf,!1),D.getTopWindow().document.removeEventListener("ampScroll",Sf,!1)}catch(e){}}(),setTimeout((function(){n.scrollTo(e,t),wf()}),0))}function Tf(e,t,n,r){n-=r,dp.sdkAPI.viewportDimensions={width:window.screen?screen.width:window.clientWidth,height:e},dp.sdkAPI.scrollRect={x:0,y:n,left:0,top:n,right:0,bottom:n+e,width:0,height:t},dp.sdkAPI.contentOffsetY=n,dp.sdkAPI.contentHeight=t,kf()}var Sf=D.debounce(kf,100);function kf(e){dp.internalPubSub.publish(o,e)}function Pf(){var e=this;this.viewportDimensions={},this.scrollRect={},this.ext={scroll:Tf},Object.defineProperty(this,"clientHeight",{get:function(){return e.viewportDimensions.height}}),Object.defineProperty(this,"scrollHeight",{get:function(){return e.viewportDimensions.height}})}function Af(){dp.internalPubSub.subscribe("tracking-fired-viewableImpression",(function e(){!function(e,t){if(window.webkit){return void window.webkit.messageHandlers[e].postMessage(t||"")}if(!window.nativoSDK)return;(0,window.nativoSDK[e])(t)}(If.TRACKING_STOPPED),dp.internalPubSub.unsubscribe("tracking-fired-viewableImpression",e)}))}Pf.prototype.getBoundingClientRect=function(){return{x:0,y:-this.contentOffsetY,left:0,top:-this.contentOffsetY,right:0,bottom:-this.contentOffsetY+this.viewportDimensions.height,width:0,height:this.contentHeight}};var If={TRACKING_STOPPED:"stoptrack"};function Cf(e){return function(e){if(Array.isArray(e))return Rf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Of(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _f(e,t){if(e){if("string"==typeof e)return Rf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rf(e,t):void 0}}function Rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xf="".concat("https://s.ntv.io","/iframes/modalContent.html"),Lf="#ntv-lightbox",Df='\n  <link href="//s.ntv.io/css/clp2.css?v=4.2.8.4" type="text/css" rel="stylesheet">\n  <style>\n    #ntv-content-modal {\n      background-color: rgba(255,255,255,1);\n      width: 100%;\n      position: absolute;\n      top: 0;\n      left: 0;\n      z-index: 2147483647;\n      height: 100vh;\n      overflow-y: scroll;\n\n      display: block;\n      opacity: 1;\n      transition: opacity 0.3s, display 0.3s;\n      font-family: Arial, Helvetica, sans-serif;\n      font-size: 16px;\n    }\n\n    #ntv-content-modal.'.concat("hidden"," {\n      display: none;\n      opacity: 0;\n      will-change: opacity;\n    }\n  </style>\n"),Nf='\n  <div id="ntv-content-modal" class="'.concat("hidden",'"></div>\n');eu((function(){var e,t=Of(window.document.getElementsByClassName("ntv-amp-ad"));try{for(t.s();!(e=t.n()).done;){var n,r=Of(e.value.getElementsByTagName("a"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.getAttribute("onclick");o&&o.includes("PostRelease.OpenContentModal")&&i.removeAttribute("target")}}catch(e){r.e(e)}finally{r.f()}}}catch(e){t.e(e)}finally{t.f()}}));var jf=function(){var e,t=function(){var e=window.location.hash.replace(Lf,""),t=[],n=ee("adsMap");if(void 0!==n)if(e.length>0){var r=n.get(e);r&&t.push(r)}else{var i,o=Of(n.getNumEntries());try{for(o.s();!(i=o.n()).done;){var a=i.value;t.push(n.get(a))}}catch(e){o.e(e)}finally{o.f()}}return 0===t.length&&t.push(document),t}(),n=Of(t);try{for(n.s();!(e=n.n()).done;){var r,i=Of(e.value.querySelectorAll("a"));try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.getAttribute("onclick");if(a&&a.includes("PostRelease.OpenContentModal"))return void o.click()}}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}};function Vf(e){if(!ntv.contentModal||!ntv.contentModal.state.open){void 0===ntv.storedModals&&(ntv.storedModals={}),void 0===ntv.forwardModalCallback&&(ntv.forwardModalCallback=function(e){ntv.contentModalHash&&(window.location.hash=ntv.contentModalHash,delete ntv.contentModalHash),D.getUrlVars().hash.includes(Lf)&&jf()},addEventListener("popstate",ntv.forwardModalCallback));var t=e.clickTracker,n=e.adPlacementId,r=e.selector,i=e.context,o=e.event,a=e.useIframe,s=void 0!==a&&a,c=e.renderOnTop,l=void 0!==c&&c,u=e.HeaderBuffer,d=e.CopyStyles,f=e.MaxIndex,p=e.SeparateContext;i.href="javascript:;";var h=t.indexOf("ntv_at="),v=t.substring(0,h+"ntv_at=".length)+"2"+t.substring(h+"ntv_at=".length+1);D.appendImage(v);var m=null==o?void 0:o.target;if(n in ntv.storedModals){ntv.contentModal=ntv.storedModals[n],ntv.contentModal.state.ad=m;var y=D.getTopWindow().document;ntv.contentModal.state.pageTitle=y.title,ntv.contentModal.resumeArticleTracking()}else{var g=function(e){if(window.ntvToutAds&&window.ntvToutAds[e])return window.ntvToutAds[e];var t=D.getTopWindow();if(t.ntvToutAds&&t.ntvToutAds[e])return t.ntvToutAds[e]}(n);if(!g)return;ntv.contentModal=new Ff({selector:r,renderOnTop:l,HeaderBuffer:u,SeparateContext:p,CopyStyles:d,MaxIndex:f,type:s?"iframe":"standard",ad:m}),ntv.storedModals[n]=ntv.contentModal,ntv.contentModal.state.adPlacementId=n,function(e,t,n){if(r=t,null!==(i=r.dataset)&&void 0!==i&&i.ntvFired)return;var r,i;e&&D.appendImage(e);Zf(n),Jf(t)}(t,i,g),ntv.contentModal.buildContentFromCachedData(g)}setTimeout((function(){var e,t;e=ntv.contentModal.modal,(t=e.querySelector(".ntv_share"))&&t.remove(),ntv.contentModal.open()}),0)}}function Mf(){ntv.contentModal&&(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(e.location&&e.location.toString){var t=e.location.toString();if(t.indexOf("#")>0){var n=t.substring(0,t.indexOf("#"));e.history.replaceState({},document.title,n)}}}(window),ntv.contentModal.close())}function Uf(e){return"string"==typeof e&&(e=function(e){var t;switch(null==e||null===(t=e.toLowerCase())||void 0===t?void 0:t.trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case null:case void 0:return!1;default:return JSON.parse(e)}}(e)),e}function Ff(e){var t=e.selector,n=e.renderOnTop,r=e.type,i=e.zIndex,o=e.ad,a=e.MaxIndex,s=e.HeaderBuffer,c=e.SeparateContext,l=e.CopyStyles,u=e.filterDuplicates;this.topWin=D.getTopWindow(),this.topDoc=this.topWin.document;var d,f={iframe:this.createModalIframe,standard:this.createModalElement};a=Uf(a),s=Uf(s),c=Uf(c),l=Uf(l),this.state={open:!1,hasContent:!1,adPlacementId:void 0,tracker:void 0,headerSelector:void 0,bodyPosition:void 0,bodyWidth:void 0,pageTitle:this.topDoc.title,articleTitle:void 0,wrapperFragmentFound:!1,renderOnTop:n,zIndex:i,ad:o,maxIndex:a,copyStyles:l,separateContext:c,headerBuffer:s,filterDuplicates:u},t=this.processSelector(t),this.state.headerSelector=t,this.injectionNode=function(e,t){return e&&""!==e.trim()&&"@selector"!==e.trim()&&(D.domQuery(e,t)||D.domQuery(e,document))||D.domQuery("body",t)}(t,this.topWin.document),this.injectionNode===this.topWin.document.body&&(t=""),this.state.headerSelector&&this.state.separateContext&&(this.state.renderOnTop=!0);do{var p;null===(p=d=this.topDoc.getElementById("ntv-content-modal"))||void 0===p||p.remove()}while(d);if(this.topDoc.head.insertAdjacentHTML("beforeend",Df),t){this.state.header=this.topDoc.querySelector(t);var h=function(e){var t={computed:{},current:{}},n=D.getTopWindow(),r=document.createElement("div");return Gf((function(e){t.computed[e]=r.style,t.current[e]=r.style;var i=n.getComputedStyle(e);Array.from(i).forEach((function(n){t.computed[e].setProperty(n,i.getPropertyValue(n),i.getPropertyPriority(n))})),t.current[e]=e.style}),e),t}(this.state.header);this.state.computedHeaderStyles=h.computed,this.state.oldHeaderStyles=h.current}this.state.renderOnTop&&(this.moveInjectionNodeInit(),this.moveInjectionNodeToTop()),this.injectionNode.insertAdjacentHTML("afterend",Nf),this.preventHashMovement=this.preventHashMovement.bind(this),this.modal=this.injectionNode.parentElement.querySelector("#ntv-content-modal"),this.state.header&&(this.state.maxIndex||(this.injectionNode.style.zIndex?this.modal.style.setProperty("z-index",this.injectionNode.style.zIndex,"important"):this.modal.style.setProperty("z-index","auto","important")),this.modal.style.setProperty("position","relative","important")),this.modal.addEventListener("scroll",Yf,!1),this.type=r,this.creationMethod=f[r],this.hashRemovalDetector=new Bf({hash:"#",context:this.topWin,callback:this.close.bind(this)}),this.lockBodyScrolling=this.lockBodyScrolling.bind(this),this.unlockBodyScrolling=this.unlockBodyScrolling.bind(this)}function Bf(e){var t=e.hash,n=e.callback,r=e.context,i=void 0===r?window:r;function o(e){-1!==e.oldURL.indexOf(t)&&n&&n()}return{enable:function(){i.addEventListener("hashchange",o,!1)},disable:function(){i.removeEventListener("hashchange",o,!1)}}}D.getUrlVars().hash.includes(Lf)&&eu(jf),Ff.prototype.moveInjectionNodeInit=function(){this.placeholder=this.topDoc.createElement("div"),this.injectionNodeSavedPosition=this.injectionNode.style.position,this.injectionNodeSavedZIndex=this.injectionNode.style.zIndex,this.dummyBody=this.topWin.document.createElement("div"),this.dummyBody.style.width="100vw",this.dummyBody.style.height="100vh",this.dummyBody.style.backgroundColor="white"},Ff.prototype.moveInjectionNodeToTop=function(){this.injectionNode.replaceWith(this.placeholder),this.state.header&&this.state.copyStyles&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["font-family","font-size","font-style","color"];Gf((function(t){var r=e[t];r&&(t.savedStyle={},n?n.forEach((function(e){r[e]&&(t.savedStyle[e]={value:t.style.getPropertyValue(e),priority:t.style.getPropertyPriority(e)},t.style.setProperty(e,r.getPropertyValue(e),r.getPropertyPriority(e)))})):Array.from(r).forEach((function(e){t.savedStyle[e]={value:t.style.getPropertyValue(e),priority:t.style.getPropertyPriority(e)},t.style.setProperty(e,r.getPropertyValue(e),r.getPropertyPriority(e))})))}),t)}(this.state.computedHeaderStyles,this.state.header),this.dummyBody.prepend(this.injectionNode),this.topWin.document.head.after(this.dummyBody),this.injectionNode.style.zIndex="2147483647",this.injectionNode.style.position="relative"},Ff.prototype.moveInjectionNodeBack=function(){this.injectionNode.style.zIndex=this.injectionNodeSavedZIndex,this.injectionNode.style.position=this.injectionNodeSavedPosition,this.placeholder.replaceWith(this.injectionNode),this.dummyBody.remove(),this.state.header&&Gf((function(e){e.savedStyle&&Array.from(e.savedStyle).forEach((function(t){e.style.setProperty(t,e.savedStyle.value,e.savedStyle.priority)}))}),this.state.header)},Ff.prototype.processSelector=function(e){return e.includes("%")&&(this.state.renderOnTop=!0),e=e.replace(/%/g,"")},Ff.prototype.buildContentFromCachedData=function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.tracking,r=e.placement,i=D.getTopWindow();i.document;i.ntvContentModalFragments||(i.ntvContentModalFragments=[]);var o,a={id:r,injectionMode:2,ads:[e],tracking:n,type:0},s=!1,c=Of(a.ads);try{for(c.s();!(o=c.n()).done;){var l=o.value;l.articleTemplate.fragments&&l.articleTemplate.fragments.length>0&&"WRAPPER"===l.articleTemplate.fragments[0].Type&&(s=!0),l.articleTemplate.fragments=zf(l.articleTemplate.fragments),t&&(l.articleTemplate.fragments=l.articleTemplate.fragments.filter((function(e){var t,n=!1,r=Of(i.ntvContentModalFragments);try{for(r.s();!(t=r.n()).done;){if(Wf(t.value,e)){n=!0;break}}}catch(e){r.e(e)}finally{r.f()}return!n&&(i.ntvContentModalFragments.push(e),!0)})))}}catch(e){c.e(e)}finally{c.f()}return{placements:[a],placementForTracking:r,usp:1,isWebview:!1,wrapperFragmentFound:s}}(e,this.state.filterDuplicates);this.state.wrapperFragmentFound=t.wrapperFragmentFound,this.setArticleIdentification(t),this.creationMethod(t),setTimeout(this.processCerosIframes.bind(this)(),0),this.state.hasContent=!0},Ff.prototype.processCerosIframes=function(){var e=this,t=new MutationObserver((function(){var n=e.modal.getElementsByClassName("ceros-experience"),r=(n=Cf(n)).length,i=0,o={};e.modal.addEventListener("scroll",(function t(){var a,s=Of(n);try{for(s.s();!(a=s.n()).done;){var c=a.value;D.getElementViewability(c).visible&&!o[c]&&(o[c]=!0,c.replaceWith(c),i++)}}catch(e){s.e(e)}finally{s.f()}i>=r&&e.modal.removeEventListener("scroll",t)})),t.disconnect()}));t.observe(this.modal,{attributes:!1,childList:!0,subtree:!0})},Ff.prototype.createModalElement=function(e){var t=this,n=function(){var e,n,r,i=t.modal.querySelector("#ntv-content-modal-close-btn");if(i&&(i.setAttribute("onclick","PostRelease.CloseContentModal()"),i.style.zIndex="2147483647",i.style.setProperty("color","black","important"),i.style.setProperty("top","".concat(20,"px"))),t.state.header){var o=t.modal.querySelector("#ntv-content-modal-header-buffer"),a=t.modal.querySelector("#ntv-content-modal-head"),s=t.modal.querySelector("#ntv-content-modal-body-wrapper");if(t.state.headerBuffer){for(var c=0,l=t.state.header;l;)isNaN(l.offsetHeight)||l.style&&"hidden"===l.style.visibility||(c+=l.offsetHeight),l=l.previousSibling;for(var u=0,d=t.state.header;d;)isNaN(d.offsetHeight)||d.style&&"hidden"===d.style.visibility||(u+=d.offsetHeight),d=d.nextSibling;var f=c<u?c:u;i.style.setProperty("top","".concat(20+f,"px"),"important"),o.style.height=f+20+"px";var p=t.topWin.getComputedStyle(t.state.header);!p||"fixed"!==p.position&&"sticky"!==p.position||(o.remove(),a.append(o))}var h=t.modal.querySelector("#ntv-content-modal-title");!h||(e=i,n=h.getBoundingClientRect(),r=e.getBoundingClientRect(),n.right<r.left||n.left>r.right||n.bottom<r.top||n.top>r.bottom)||(s.style.paddingTop="".concat(i.clientHeight+5,"px"))}var v=t.modal.querySelector("#ntv-content-modal-sidebar");v&&(v.style.width="100%",v.style.height="100%");var m=t.modal.querySelector("#ntv-content-modal-topbar");m&&(m.style.width="100%",m.style.height="100%");var y=t.modal.querySelector("#ntv-content-modal-footer");y&&(y.style.width="100%",y.style.height="100%")};this.state.wrapperFragmentFound?setTimeout(n.bind(this),100):(this.modal.insertAdjacentHTML("beforeend",'\n  <style>\n    .ntv-content-modal-top-bar {\n      display: flex;\n      flex-direction: row;\n      font-size: 0.9em;\n\n      position: fixed;\n      right: 0;\n      top: 10px;\n\n      background-color: rgba(255, 255, 255, 0.50);\n\n      z-index: 1;\n    }\n\n    .ntv-content-modal-top-bar-title {\n      flex-grow: 1;\n    }\n\n    .ntv-content-modal-close-btn {\n      flex-grow: 0;\n      cursor: pointer;\n\n      display: flex;\n      align-items: center;\n      padding-right: 10px;\n      margin-right: 5px;\n      font-family: "Roboto", Arial, Helvetica, sans-serif;\n\n      position: fixed;\n      right: 0;\n\n      box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);\n      border: solid 1px #c2c2c2;\n      background-color: rgba(243, 243, 243, 0.8);\n      border-radius: 2px;\n\n      z-index: 1;\n    }\n\n    .ntv-content-modal-close-btn-label {\n      margin: 10px 0px 10px 10px;\n    }\n\n    .ntv-content-modal-close-btn svg {\n      width: 20px;\n      height: 20px;\n      margin: 5px;\n    }\n\n    .ntv-content-modal-close-btn path {\n      fill: #000000;\n    }\n\n    #ntv-content-modal-body-wrapper {\n      display: flex;\n      flex-direction: column;\n      padding: 16px;\n    }\n\n    #ntv-content-modal-header-buffer {\n      display: block;\n      width: 100%;\n    }\n\n    @media screen and (min-width: 769px) {\n      .ntv-content-modal-close-btn {\n        margin-right: 34px;\n      }\n\n      #ntv-content-modal-body-wrapper {\n        display: grid;\n        grid-template-columns: auto 300px;\n        grid-column-gap: 30px;\n        grid-template-rows: auto;\n        grid-template-areas:\n        "topbar topbar"\n        "body sidebar"\n        "footer footer"\n        "buffer buffer";\n        max-width: 1200px;\n        margin: auto;\n      }\n\n      #ntv-content-modal-topbar-container {\n        grid-area: topbar;\n        margin-bottom: 20px;\n      }\n\n      #ntv-content-modal-topbar {\n        width: 100%;\n        height: 100%;\n      }\n\n      #ntv-content-modal-body {\n        grid-area: body;\n      }\n\n      #ntv-content-modal-sidebar-container {\n        grid-area: sidebar;\n      }\n\n      #ntv-content-modal-sidebar {\n        width: 100%;\n        height: 100%;\n      }\n\n      #ntv-content-modal-footer-container {\n        grid-area: footer;\n      }\n\n      #ntv-content-modal-footer {\n        width: 100%;\n        height: 100%;\n      }\n\n      #ntv-content-modal-header-buffer {\n        grid-area: buffer;\n      }\n\n      #ntv-content-modal-body {\n        max-width: 100%;\n      }\n    }\n  </style>\n\n  <div id="ntv-content-modal-head"></div>\n    \x3c!------------------ CLOSE ICON START ------------------\x3e\n    <div id=\'ntv-content-modal-close-btn\' class=\'ntv-content-modal-close-btn\'>\n     <div class="ntv-content-modal-close-btn-label">CLOSE</div>\n      <?xml version="1.0"?>\n      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg\n        xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="512px" id="Layer_1"\n        style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px"\n        xml:space="preserve">\n        <path\n          d="M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4  L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1  c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1  c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z" />\n      </svg>\n    </div>\n    \x3c!------------------ CLOSE ICON END ------------------\x3e\n  <div id="ntv-content-modal-body-wrapper">\n    <div id="ntv-content-modal-topbar-container">\n      <div id="ntv-content-modal-topbar"></div>\n    </div>\n    <div id="ntv-content-modal-body"></div>\n    <div id="ntv-content-modal-sidebar-container">\n      <div id="ntv-content-modal-sidebar"></div>\n    </div>\n    <div id="ntv-content-modal-footer-container">\n      <div id="ntv-content-modal-footer"></div>\n    </div>\n    <div id="ntv-content-modal-header-buffer"></div>\n  </div>\n'),n());var r=this.topDoc.querySelector("title");if(r){var i=new MutationObserver((function(){t.state.articleTitle=t.topDoc.title,i.disconnect()}));i.observe(r,{childList:!0})}Zd(e)},Ff.prototype.createModalIframe=function(e){var t=this;this.iframe=document.createElement("iframe"),this.iframe.src="".concat(xf,"?ntvModalId=").concat(this.adPlacementId),this.modal.append(this.iframe),this.iframe.addEventListener("load",(function(){t.iframeWindow=t.iframe.contentWindow;var n={action:"content",data:e};t.iframeWindow.postMessage(JSON.stringify(n),"https://s.ntv.io")})),this.topWin.addEventListener("message",(function(e){if("https://s.ntv.io"===e.origin){var t=function(e){try{return JSON.parse(e)}catch(e){return{}}}(e.data),n=t.action,r=t.id;Hf.hasOwnProperty(n)&&Hf[n](r)}}))},Ff.prototype.setArticleIdentification=function(e){var t=e.placements[0].ads[0];this.adId=t.id,this.articleTrackerName="ntvAT".concat(t.id)},Ff.prototype.clearArticleIdentification=function(){this.adId=void 0,this.articleTrackerName="ntvAT".concat(void 0)},Ff.prototype.preventHashMovement=function(e){e.preventDefault(),window.location.hash="".concat(Lf).concat(this.state.adPlacementId)},Ff.prototype.open=function(){var e=this;this.state.hasContent&&(this.state.preventClose=!0,setTimeout((function(){e.state.preventClose=!1}),500),this.topWin.addEventListener("hashchange",this.preventHashMovement),this.state.articleTitle&&(this.topDoc.title=this.state.articleTitle),Ef(0,0,this.modal),document.body.style.overflow="hidden",this.modal.classList.remove("hidden"),this.state.open=!0,this.scrollPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return{x:e.scrollX,y:e.scrollY}}(this.topWin),this.pageHeight=this.topDoc.body.scrollHeight,this.topWin.scrollTo({left:0,top:0,behavior:"instant"}),this.lockBodyScrolling(),D.getUrlVars().hash.includes(Lf)||this.topWin.history.pushState({type:Lf},"","".concat(window.location.toString()).concat(Lf).concat(this.state.adPlacementId)),this.hashRemovalDetector.enable(),this.state.header&&(this.state.headerMarginBottomSaved=this.state.header.style.marginBottom,this.state.header.style.marginBottom="0px"),this.state.renderOnTop&&(this.bodyDisplaySaved=this.topDoc.body.style.display,this.topDoc.body.style.display="none",this.state.afterFirstOpen?this.moveInjectionNodeToTop():this.state.afterFirstOpen=!0))},Ff.prototype.close=function(){var e=this;if(this.state.open&&!this.state.preventClose){this.topWin.removeEventListener("hashchange",this.preventHashMovement);var t=function(){ntv.contentModalHash=window.location.hash,document.body.style.overflow="auto",e.topDoc.title=e.state.pageTitle,e.modal.classList.add("hidden"),e.stopArticleTracking(),e.state.open=!1,e.hashRemovalDetector.disable(),e.state.header&&(e.state.header.style.marginBottom=e.state.headerMarginBottomSaved),e.state.renderOnTop&&(e.topDoc.body.style.display=e.bodyDisplaySaved,e.moveInjectionNodeBack())};if(this.unlockBodyScrolling(),this.state.ad){var n,r,i,o=this.modal.style.position;this.modal.style.position="fixed",this.state.header&&(n=this.modal.style.top,r=this.state.header.style.position,i=this.state.header.style.top,this.modal.style.top="".concat(this.state.header.offsetHeight,"px"),this.state.header.style.position="sticky",this.state.header.style.top="0px"),ci(this.state.ad,[],this.topDoc,{initialTimeout:1,startWaitTime:0,scrollIncrement:200,timeoutThreshold:1,lastTimeout:100,isPreview:!0}).then((function(){t(),e.modal.style.position=o,e.state.header&&(e.modal.style.top=n,e.state.header.style.position=r,e.state.header.style.top=i)}))}else this.topWin.scrollTo({top:this.topDoc.body.scrollHeight-this.pageHeight+this.scrollPosition.y,left:this.scrollPosition.x,behavior:"instant"}),t()}},Ff.prototype.resumeArticleTracking=function(){var e=this.state.tracker;e&&(window[this.articleTrackerName]=e,e.disabled=!1,e.resume(),e.onArticleExpand())},Ff.prototype.stopArticleTracking=function(){var e=window[this.articleTrackerName];e&&(this.state.tracker=e,e.onArticleCollapse(),e.stop(),window[this.articleTrackerName]=void 0)},Ff.prototype.clearContent=function(){if(this.state.hasContent){for(;this.modal.children.length;)this.modal.children[0].remove();this.state.hasContent=!1}},Ff.prototype.lockBodyScrolling=function(){var e=D.getTopWindow().document.body.parentElement;this.state.bodyPosition=e.style.position,this.state.bodyWidth=e.style.width,e.style.setProperty("position","fixed","important"),e.style.width="100vw"},Ff.prototype.unlockBodyScrolling=function(){var e=D.getTopWindow().document.body.parentElement;e.style.position=this.state.bodyPosition,e.style.width=this.state.bodyWidth};var Hf={close:Mf};function Wf(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=e[n[i]],a=t[n[i]],s=qf(o)&&qf(a);if(s&&!Wf(o,a)||!s&&o!==a)return!1}return!0}function qf(e){return null!=e&&"object"==typeof e}function zf(e){var t,n=Of(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;r&&(r.Selector&&!r.Selector.includes("#ntv-content-modal")&&(r.Selector="#ntv-content-modal ".concat(r.Selector)))}}catch(e){n.e(e)}finally{n.f()}var i=function(e){return e&&e.Type&&("TOP"===e.Type||"RIGHTRAIL"===e.Type||"BOTTOM"===e.Type)?1:0};return e.sort((function(e,t){return i(e)-i(t)})),e}function Gf(e,t){e(t);var n,r=Of(t.children);try{for(r.s();!(n=r.n()).done;){Gf(e,n.value)}}catch(e){r.e(e)}finally{r.f()}}var Yf=D.debounce((function(e){dp.internalPubSub.publish(s,e)}),100);var Qf=D.setTimeout;D.getTopWindow();function Kf(e,t,n){var r=function(e){if(e.dataset.ntvClickTracker){var t=e.dataset.ntvClickTracker;return delete e.dataset.ntvClickTracker,t}return e.href}(t),i=D.getWindow(t)||window;if(e.obfuscateTracking){var o;o=ntv.MRAID?"<script>mraid.open(".concat(r,")<\/script>"):"<script>window.open(".concat(r,", '_blank')<\/script>"),ntv.Tracking.Record(o)}else{if(n&&n.preventDefault(),t.target)return void i.open(r,t.target);switch(D.resolveIframeType(t)){case c.IFRAME_TYPES.FRIENDLY:tp(t,dp.topWindow.document.domain);break;case c.IFRAME_TYPES.SAFE_NO_API:case c.IFRAME_TYPES.SAFE_W_API:t.target="_blank"}i.open(r,t.target||"_top")}}function Xf(e,t,n,r){var i,o=Eh(r),a=(n.attributes["sync-tracking"]||{}).value,s=o?o.toutClick3rdPartyTracking:[],l=event||((null===(i=top)||void 0===i?void 0:i.event)||dp.topWindow.event),u=l.type;if(a){if(n.isClicked)return;"_blank"!=n.target&&n.addEventListener("click",(function(e){e.preventDefault()}));var d=!1,f=0;n.isClicked=!0,l&&l.preventDefault(),s.push(a);var p=s.length,h=function(){++f===p&&(d=!0,n.href=e,Kf(o,n,l))};s.forEach((function(e){D.appendIframe(e,h)})),Qf((function(){d||(n.href=e,Kf(o,n,l))}),2e3)}else{if(n.dataset.ntvFired)return void("click"==u&&Kf(o,n,l));switch(u){case"onclick":case"click":if(r&&o){Jf(n),Zf(o);var v=n.getAttribute("ntv-click-bypass");if(v)return void D.appendImage(v,o.obfuscateTracking);Kf(o,n,l)}return!1;default:var m=t?e+(D.isOnFocus()?"":"&"+c.FRAUD):e,y=this.clickThrough?m.replace(/@redirectUrl/gi,this.clickThrough):m;-1===n.href.indexOf("tel:")?n.dataset.ntvClickTracker=m:(n.setAttribute("target","_self"),n.setAttribute("ntv-click-bypass",y))}}}function Jf(e){e&&e.setAttribute&&e.setAttribute("data-ntv-fired",!0)}function Zf(e,t){var n=e.toutClick3rdPartyTracking,r=e.obfuscateTracking;if(n)for(var i=0;i<n.length;i++)D.appendImage(n[i],r)}function $f(e,t,n,r,i){var o;if(e&&(!e.hasOwnProperty("length")||0!==e.length)){e=D.toDomElement(e),t=D.toDomElement(t);var a=n+"-"+r;null!==(o=e)&&void 0!==o&&o.insertBefore&&(e.insertBefore(t.parentNode,e.childNodes[0]),t.style.position="absolute",t.style.zIndex="9998",t.classList.add(a),t.style.right="0px",t.style.top="0px",Qf((function(){return t.style.visibility="visible"}),5e3),"undefined"==!i&&(ntv.query(window).on(" ready load resize",$f(e,t,n,r,!0)),ntv.query(e).ready((function(){return $f(e,t,n,r,!0)})),ntv.query(document).ready((function(){return $f(e,t,n,r,!0)})),Qf((function(){"undefined"!=ntv.PostRelease.adChoiceTracksNodeCount&&document.body.children.length==ntv.PostRelease.adChoiceTracksNodeCount||(ntv.PostRelease.adChoiceTracksNodeCount=document.body.children.length,$f(e,t,n,r,!0))}),150)))}}var ep=function(e,t){e&&e.length&&e.length>0&&e.forEach((function(e){tp(e)}))},tp=function(e,t){if(e.hasAttribute&&!e.hasAttribute("ntv-force-target")){var n=D.extractDomain(D.getQS("ntv_r","",e.href));n||(n=D.extractDomain(e.href)),e.setAttribute("aria-label","3rd party ad, opens in a new window"),(t||document.domain).indexOf(n)>=0?e.setAttribute("target","_top"):e.setAttribute("target","_blank")}};function np(e){this.infScrollReset=!1,e&&e instanceof Object&&(this.infScrollReset=e.infScrollReset||!1,delete e.infScrollReset);var t=!!this.setting.adversionplacementid;this.ampMode=this.setting.ampMode,this.MRAID=this.setting.MRAID,this.requestUrl=this.setting.requestUrl,dp.inventoryTrackersHistory={},dp.inventoryTrackers=[],dp.viewableImpressionTrackers=[],dp.adsMap={},this.setting.makeAdRequest||this.setting.MRAID?(!function(e,t){var n=function(e,t){return fe(e,function(e){var t="";if(void 0!==e)for(var n in e)t+="&ntv_"+n+"="+e[n];return t}(t))}(dp.setting,e);Xu().then((function(e){dp.setting.usprivacy=e,function(e,t,n,r){var i=e.ampMode&&e.requestUrl&&document.referrer.toString().includes(e.requestUrl)?document.referrer:e.requestUrl.toString();if(r&&r.length>0&&(i=D.removeQueryKeyValuePairs(r,i)),0===i.indexOf("http://webcache.googleusercontent.com"))try{i=D.domQuery("div#google-cache-hdr div a").href}catch(e){}var o=D.getServerDomain(),a="https://".concat(o,"/t?");a+="".concat(c.REQ_URL_NTV,"=").concat(encodeURIComponent(i)),a+=t,a+=D.attachFirstPartyCookieQS(n),a+=e.usprivacy?"&".concat(c.US_PRIVACY,"=").concat(e.usprivacy):"",a+=void 0!==e.oos?"&".concat(c.OPT_OUT_SOURCE,"=").concat(e.oos):"",a+=yf()||"",a+=dp.floc.buildFlocQS(),a+=dp.setting.recordEngagements?"":"&prx_ro=s",a+=gf()||"",D.appendScript(a,(function(){})).addEventListener("error",(function(){D.firePubSubEvent("adRequestError")})),be.performance.set("sendRequest")}(dp.setting,n,dp.firstPartyCookie,t)}))}(e,this.setting.measurement?[c.ARTICLE_TMPL,c.AVP]:[]),this.setting.measurement&&ntv.Tracking.startTrackingArticle(ve(this.setting))):t&&ntv.Tracking.startTrackingArticle(ve(this.setting))}var rp={0:function(e){dp.advertisersToFilter.indexOf(e)<0&&dp.advertisersToFilter.push(e)},1:function(e){dp.campaignsToFilter.indexOf(e)<0&&dp.campaignsToFilter.push(e)},2:function(e){dp.adsToFilter.indexOf(e)<0&&dp.adsToFilter.push(e)}},ip={0:"advertiserId",1:"campaignId",2:"adId"},op=function(e){var t=e.filteringLevel;if(ip[t]){var n=e[ip[t]];ap(n)&&n&&sp(t,n)}},ap=function(e){return D.is("s",e)||D.is("n",e)},sp=function(e,t){rp[e]&&rp[e](t)};function cp(e){f(c.NTV_UID,e,365)}function lp(){f(c.NTV_UID,"",-1)}function up(e){dp.executeShares&&"function"==typeof dp.executeShares[e]&&dp.executeShares[e]()}var dp=ntv.PostRelease||new function(){try{this.setting=he(),this.ntvUrlVars=D.getUrlVars(),this.firstPartyCookie=p(c.NTV_UID),this.adsToFilter=[],this.campaignsToFilter=[],this.advertisersToFilter=[],this.viewableImpressionTrackers=[],this.videoViewableTrackers=[],this.inventoryTrackers=[],this.videoPlayers=[],this.articleCache=ee("articles"),this.ampMode=!1,this.MRAID=!1,this.requestUrl="",this.referencePlacementPositions=[],this.inventoryTrackersHistory={},this.thirdPartyJSViewableImpTrackers=[],this.viewableWhiteList={},this.isPreviewReq="s"===D.getQS(c.REQ_OPTIONS),this.InsertAd=Ql,this.PlacementResponseCache={},this.LazyRenderPlacement=$l,this.postRender=Zl,this.articlePostRender=Ou,this.activateISI=ui,this.CloseContentModal=Mf,this.getTopWindow=D.getTopWindow,this.topWindow=D.getTopWindow(),this.GetHrefUrl=Xf.bind(this),this.positionAdChoice=$f,this.OpenShareFacebook=lf,this.OpenShareTwitter=uf,this.OpenShareLinkedIn=df,this.OpenShareGoogle=ff,this.OpenSharePinterest=pf,this.OpenShareStumbleUpon=hf,this.OpenShareEmail=vf,this.OpenContentModal=Vf,this.ProcessResponse=Zd,this.setupClickOut=ep,this.setupVideo=ef,this.checkIsAdVisible=Vo,this.setFilteringByLevel=op,this.filterAdByFilteringLevel=sp,this.Start=np.bind(this),this.sessionMgmt=new sf,this.Passback=Lt,this.trackFirstPartyCookie=cp,this.deleteFirstPartyCookie=lp,this.adsMap={},this.sdkAPI=new Pf,this.internalPubSub=Cd.SecurePubSub(),this.id=D.generateUniqueId(1e7),this.disableAdsFromElement=function(){}}catch(e){D.postError(e)}};function fp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pp(r.key),r)}}function pp(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var hp=0,vp=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startPosition=0,this.scrollInitiated=!1,this.trackScrollInit=function(){},this.trackScrollDepth=function(e){},this.trackScrollDepthCheckpoint=function(e){},Object.assign(this,t),this.colorIndex=hp,hp++,this.window=D.getTopWindow(),this.document=this.window.document;this.viewElement=dp.setting.sdk?dp.sdkAPI:n.document.scrollingElement||n.document.documentElement,this.viewHeight=this.viewElement.clientHeight;if(this.trackElement=dp.setting.sdk?dp.sdkAPI:n.trackElement?n.trackElement:n.viewElement,this.setInitVars(),this.scrollPercentageDeltaThreshold=5,this.scrollTimeoutDuration=100,this.isScrolling=null,this.resizeTimeoutDuration=100,this.isResizing=null,this.heightSettleTime=0,this.heightSettleIntervalDuration=100,this.heightSettleTimeout=1e3,this.nextScrollDepthCheckpoint=function(){return n.scrollDepthCheckpoints[0]||null},this.scrollHandler=this.onScroll.bind(this),this.resizeHandler=this.onResize.bind(this),this.enable(),this.init(),!dp.setting.sdk){var r=function e(t){"loading"!==n.document.readyState&&(n.document.removeEventListener("readystatechange",e),n.checkInitScroll())},i=this.getContentHeight(),o=this.getContentHeight();"interactive"!==this.document.readyState&&"complete"!==this.document.readyState?this.document.addEventListener("readystatechange",r):function e(t){setTimeout((function(){if(n.heightSettleTime+=n.heightSettleIntervalDuration,i=n.getContentHeight(),o!==i&&n.heightSettleTime<n.heightSettleTimeout)return o=i,void e(t);n.lockState(),t()}),n.heightSettleIntervalDuration)}(r)}}var t,n,r;return t=e,(n=[{key:"setInitVars",value:function(){this.contentHeight=0,this.contentLocked=!1,this.scrollViewDepth=0,this.scrollViewDepthPercentage=0,this.maxScrollViewDepth=0,this.maxScrollViewDepthPercentage=0,this.scrollViewDepthDelta=0,this.scrollViewDepthDeltaPercentage=0,this.scrollDepthCheckpoints=[{value:25,buffer:0},{value:50,buffer:0},{value:75,buffer:0},{value:100,buffer:100}],this.scrollInitTracked=!1,this.scrollCompletionTracked=!1,this.enabled=!1}},{key:"enable",value:function(){dp.internalPubSub.subscribe(o,this.scrollHandler),dp.internalPubSub.subscribe(s,this.scrollHandler),this.window.addEventListener("resize",this.resizeHandler),this.enabled=!0}},{key:"disable",value:function(){this.window.removeEventListener("resize",this.resizeHandler),this.enabled=!1,this.scrollInitiated&&this.stopScrollTracking()}},{key:"stopScrollTracking",value:function(){dp.internalPubSub.unsubscribe(o,this.scrollHandler),dp.internalPubSub.unsubscribe(s,this.scrollHandler)}},{key:"init",value:function(){this.scrollDepthCheckpoints=this.scrollDepthCheckpoints.sort((function(e,t){return e.value-t.value}))}},{key:"checkInitScroll",value:function(){this.checkScrollState(),100===this.scrollViewDepthPercentage&&this.disable()}},{key:"reset",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setInitVars(),this.init(),e&&this.enable()}},{key:"unlockState",value:function(){this.contentLocked=!1}},{key:"lockState",value:function(){this.contentLocked=!0}},{key:"checkScrollState",value:function(){this.calculateViewDimensions(),this.updateScrolTracking()}},{key:"calculateViewDimensions",value:function(){this.viewHeight=this.viewElement.clientHeight}},{key:"updateElementRect",value:function(){this.trackElementRect=this.trackElement.getBoundingClientRect()}},{key:"getRawScrollDistance",value:function(){return this.updateElementRect(),this.trackElementRect.top}},{key:"getScrollDistance",value:function(){return this.getRawScrollDistance()-this.startPosition}},{key:"getContentHeight",value:function(){return this.contentLocked||(this.updateElementRect(),this.contentHeight=Math.max(this.trackElementRect.height,this.trackElement.scrollHeight)),this.contentHeight+this.startPosition}},{key:"updateScrollData",value:function(){this.scrollDistance=this.getScrollDistance(),this.scrollViewDepth=this.viewHeight-this.scrollDistance,this.scrollViewDepthPercentage=this.toElementPercentage(this.scrollViewDepth)}},{key:"toElementPercentage",value:function(e){return function(e,t){return isNaN(e)?t:e}(Math.ceil(100*function(e){return Math.max(0,Math.min(1,e))}(e/this.getContentHeight())),0)}},{key:"updateScrolTracking",value:function(){this.updateScrollData(),this.scrollViewDepthPercentage-this.maxScrollViewDepthPercentage<this.scrollPercentageDeltaThreshold&&(100!==this.scrollViewDepthPercentage||100===this.maxScrollViewDepthPercentage)||(this.calculateDeltaAndMax(),this.triggerScrollDepthTracking(),this.checkScrollDepthCheckpoints(),100==this.maxScrollViewDepthPercentage&&(this.scrollCompletionTracked=!0,this.disable()))}},{key:"calculateDeltaAndMax",value:function(){this.scrollViewDepthDelta=this.scrollViewDepth-this.maxScrollViewDepth,this.scrollViewDepthDeltaPercentage=this.scrollViewDepthPercentage-this.maxScrollViewDepthPercentage,this.maxScrollViewDepth=isNaN(this.scrollViewDepthDelta)?this.maxScrollViewDepth:this.scrollViewDepthDelta,this.maxScrollViewDepthPercentage=isNaN(this.scrollViewDepthDelta)?this.maxScrollViewDepthPercentage:this.scrollViewDepthPercentage}},{key:"onScroll",value:function(){this.viewHeight||this.calculateViewDimensions(),this.trackInitScroll(),this.scrollInitiated=!0,this.enabled||this.stopScrollTracking(),clearTimeout(this.isScrolling),this.isScrolling=setTimeout(this.updateScrolTracking.bind(this),this.scrollTimeoutDuration)}},{key:"onResize",value:function(){clearTimeout(this.isResizing),this.isResizing=setTimeout(this.onResizeStop.bind(this),this.resizeTimeoutDuration)}},{key:"onResizeStop",value:function(){this.checkScrollState()}},{key:"checkScrollDepthCheckpoints",value:function(){var e=this.nextScrollDepthCheckpoint();if(e){var t=this.toElementPercentage(e.buffer);e&&this.maxScrollViewDepthPercentage>=e.value-t&&(this.triggerScrollDepthCheckpoint(e.value),this.scrollDepthCheckpoints.shift(),this.checkScrollDepthCheckpoints())}}},{key:"trackInitScroll",value:function(){this.scrollInitTracked||(this.scrollInitTracked=!0,this.trackScrollInit&&this.fire(this.trackScrollInit()))}},{key:"triggerScrollDepthTracking",value:function(){this.trackScrollDepth&&this.fire(this.trackScrollDepth(this.scrollViewDepthDeltaPercentage))}},{key:"triggerScrollDepthCheckpoint",value:function(e){this.trackScrollDepthCheckpoint&&this.fire(this.trackScrollDepthCheckpoint(e))}},{key:"fire",value:function(e){D.appendImage(e)}}])&&fp(t.prototype,n),r&&fp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mp(e){return function(e){if(Array.isArray(e))return yp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return yp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yp(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gp=function(e,t,n){for(var r=["ntv_az","ntv_ak","ntv_al"],i=[],o=/(ntv_at=)(\d*\,?)*/,a=[mh.cta,mh.companionCta],s=c.CUSTOM_CTA_RANGE_START+1;s<=c.CUSTOM_CTA_RANGE_END;s++)a.push(s);for(s=c.CUSTOM_WIDGET_RANGE_START+1;s<=c.CUSTOM_WIDGET_RANGE_END;s++)a.push(s);var l=new RegExp("(ntv_at=)((?:(?:".concat(a.join("|"),"),?)+)")),u=!1,d=!1,f=!1,p=!1,h=function(){return f&&p},v=function(e,t){return e=e.replace("ntv_at=".concat(t),"ntv_at=".concat(t,",").concat(c.CPE_SCROLL_50)),n&&(e=e.concat(n)),e};function m(){this.fired=!1,this.CPEEngagementEnabled=!!e,this.CPEEngagementEnabled&&(this.defaultEngagementHandler=e.trackEngagement.bind(e)),this.CPEScrollEnabled=!!t,this.CPEScrollEnabled&&(this.defaultScrollInitHandler=t.trackScrollInit.bind(t),this.defaultScrollDepthPercentageHandler=t.trackScrollDepthCheckpoint.bind(t))}return m.prototype.initializeTrackingCPEMetrics=function(){u||(this.CPEEngagementEnabled&&this.addEngagementMetric(),this.CPEScrollEnabled&&this.addScrollMetric(),u=!0)},m.prototype.initializeDOMCPEMetrics=function(){d||(this.addCTAMetric(),d=!0)},m.prototype.removeAllCPEMetrics=function(){this.removeCTAMetric(),this.CPEEngagementEnabled&&this.removeEngagementMetric(),this.CPEScrollEnabled&&this.removeScrollMetric()},m.prototype.addCTAMetric=function(){var e=this;if(!this.fired){var t=a.map((function(e){return String(e)})),r=[String(c.CPE_CTA_CLICK)],o=D.domQueryUp(".ntv-body");if(null!=o){var s=o.ownerDocument;(i=mp(D.domQueryAll("a",s)).filter((function(e){var n=D.getActionTypesFromURL(e.href),i=D.doesArrayContainElements(n,t),o=D.doesArrayContainElements(n,r);return i&&!o}))).forEach((function(t){t.href=t.href.replace(l,(function(e){return"".concat(e,",").concat(c.CPE_CTA_CLICK)})),t.href=function(e,t){if(!t)return e;if(-1===e.indexOf("ntv_r=")&&-1===e.indexOf("prx_r="))return e.concat(t);t=D.stripLeadingCharacters(t,"&");var n=D.qetQueryStringParams("?".concat(t)),r=D.qetQueryStringParams(e);return D.buildQueryStringFromKeyValuePairs(Object.assign(n.params,r.params),r.base)}(t.href,n),t.handleCTAFired=e.handleCTAMetricFired.bind(e),t.addEventListener("click",t.handleCTAFired,{once:!0})}))}}},m.prototype.removeCTAMetric=function(){i&&(i.forEach((function(e){e.href=e.href.replace(o,(function(e){return"ntv_at=".concat(D.modifyQSParamValues(e,[],[c.CPE_CTA_CLICK]).join())})),e.href=D.removeQueryKeyValuePairs(r,e.href),e.removeEventListener("click",e.handleCTAFired,{once:!0}),delete e.handleCTAFired})),i=[])},m.prototype.handleCTAMetricFired=function(){var e=this;this.fired||(this.fired=!0,requestAnimationFrame((function(){e.removeAllCPEMetrics()})))},m.prototype.addEngagementMetric=function(){var t=this;this.fired||(e.trackEngagement=function(e){var r=function(e){if(15e3===e.time)return e.actionType=[e.actionType,c.CPE_ENGAGEMENT_15s],n&&(e.qsParams=n),!0;return!1}(e);t.defaultEngagementHandler(e),r&&(t.fired=!0,t.removeAllCPEMetrics())})},m.prototype.removeEngagementMetric=function(){e.trackEngagement=this.defaultEngagementHandler},m.prototype.addScrollMetric=function(){var e=this;this.fired||(t.trackScrollInit=function(){f=!0;var t=e.defaultScrollInitHandler();return h()?(e.fired=!0,e.removeAllCPEMetrics(),v(t,c.CLP_SCROLL_INITIATED)):t},t.trackScrollDepthCheckpoint=function(t){var n=e.defaultScrollDepthPercentageHandler(t);return 50===t&&(p=!0,h())?(e.fired=!0,e.removeAllCPEMetrics(),v(n,c.CLP_VIEW_DEPTH_50_PERCENT)):n})},m.prototype.removeScrollMetric=function(){t.trackScrollInit=this.defaultScrollInitHandler,t.trackScrollDepthCheckpoint=this.defaultScrollDepthPercentageHandler},new m};function bp(e,t,n){if(e&&!e.getAttribute("src"))try{var r=e.contentWindow;if(!r||!r.ReportingObserver)return;var i=t+c.HEAVY_AD_INTERVENTION;n&&(i+="&".concat(c.AVP,"=").concat(n));var o=r.document;"loading"===o.readyState?o.addEventListener("DOMContentLoaded",wp.bind(this,r,i)):wp(r,i),e.setAttribute("ntv-haio","")}catch(e){}}function wp(e,t){var n=!1;new e.ReportingObserver((function(e,r){n||(n=!0,function(e){D.appendScript(e)}(t))}),{types:["intervention"],buffered:!0}).observe()}function Ep(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tp(r.key),r)}}function Tp(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Sp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.trackClickComponent=function(){},this.trackClickLightbox=function(){},this.trackClickLink=function(){},this.trackViewPage=function(){},this.trackPlayVideo=function(){},Object.assign(this,t),this.window=D.getTopWindow(),this.document=this.window.document,this.analyticsHandler=this.analyticsHandler.bind(this),this.setInitVars(),this.enable()}var t,n,r;return t=e,(n=[{key:"setInitVars",value:function(){this.enabled=!1}},{key:"analyticsHandler",value:function(e){switch(e.detail.eventType){case"component-click":this.trackComponentClick();break;case"lightbox-click":this.trackLightboxClick();break;case"link-click":this.trackLinkClick();break;case"page-view":this.trackPageView();break;case"video-play":this.trackVideoPlay()}}},{key:"enable",value:function(){this.document.body.addEventListener("ceros-analytics-event",this.analyticsHandler),this.enabled=!0}},{key:"disable",value:function(){this.document.body.removeEventListener("ceros-analytics-event",this.analyticsHandler),this.enabled=!1}},{key:"reset",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setInitVars(),e&&this.enable()}},{key:"trackComponentClick",value:function(){this.trackClickComponent&&this.fire(this.trackClickComponent())}},{key:"trackLightboxClick",value:function(){this.trackClickLightbox&&this.fire(this.trackClickLightbox())}},{key:"trackLinkClick",value:function(){this.trackClickLink&&this.fire(this.trackClickLink())}},{key:"trackPageView",value:function(){this.trackViewPage&&this.fire(this.trackViewPage())}},{key:"trackVideoPlay",value:function(){this.trackPlayVideo&&this.fire(this.trackPlayVideo())}},{key:"fire",value:function(e){D.appendImage(e)}}])&&Ep(t.prototype,n),r&&Ep(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function kp(e){var t=D.toDomElement(e);return!!t&&(!function(e){return null!=e&&null!=e.classList&&e.classList.contains("ntv-do-not-resize")}(t)&&!function(e){if(null==e||null==e.closest)return!1;e.closest(c.BLOCK_QUERY_SELECTOR)}(t))}function Pp(e){return function(e){if(Array.isArray(e))return Ip(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ap(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ap(e,t){if(e){if("string"==typeof e)return Ip(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ip(e,t):void 0}}function Ip(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cp(e,t){D.copyProperties(e,this),this.parent=t,this.secondaryImpressionActionType=2,this.clickActionType=3,this.videoStartActionType=56,this.videoEndActionType=23,this.videoProgress25PercentActionType=39,this.videoProgress50PercentActionType=40,this.videoProgress75PercentActionType=41,this.videoHeadlineClick=48,this.clickToUnMute=55,this.readAndClickActionTypes="2,3",this.articlePageViewActionType=52,this.videoView=22,this.videoBillableView=58,this.videoPlayed15SecondsType=60,this.videoPlayed30SecondsType=61,this.prerollVideoStartType=62,this.prerollVideoEndType=63,this.optVideoByClick=65,this.getUrl=function(e){var t=this.baseTrackingUrl+e;return(this.adVersionPlacement.length>0||this.adID>=1e5)&&(t+="&"+c.AVP+"="+this.adVersionPlacement),t+=D.setURLCache()}}function Op(e){D.copyProperties(e,this),this.element=null,this.tracker=new Cp(e,this),this.resetTimeOnContentVars(),this.maxArticleWidth=0,this.trackType="article",this.init()}function _p(e,t){var n=e.getAttribute("data-original");n&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{cropMode:null,width:null,height:null};n.width>0&&(t=D.applyImageResizer(t,n.cropMode,n.width),e.setAttribute("src",t),e.style.width="auto",e.style.height="auto",e.removeAttribute("data-original"))}(e,n,t)}function Rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xp(r.key),r)}}function xp(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Lp(){return(Lp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Dp(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function Dp(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mp(e)););return e}function Np(e,t){return(Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mp(e);if(t){var i=Mp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Vp(this,n)}}function Vp(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mp(e){return(Mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Op.prototype.resetTimeOnContentVars=function(){this.trackTimeOnContent&&(this.tos_w_hidden=q(!0).ntvStopWatch().ntvTimeOnContentStopWatch(this,34).addStopWatchEventHandlers({node:D.getTopWindow(),type:"visibilitychange",handler:function(){this.preventResume=D.getTopWindow().document.hidden,D.getTopWindow().document.hidden&&this.stop(),D.getTopWindow().document.hidden||this.resume()}}))},Op.prototype.init=function(){ntv.query||(ntv.query=nQuery.noConflict(!0));var e=this.selector;"string"==typeof this.selector&&(e=(e=this.selector.match(/prdom.query\('([^'\)]*)/))&&e.length?e[1]:this.selector),this.adPlacementId=D.clientUtils.generateAdPlacementId(this.adID,this.placementID),this.element=e===window?e:ntv.query(e)[0],this.contextWin=window,this.contextDoc=document,this.element||(this.element=D.domQuery(e,D.getTopWindow().document),this.contextWin=D.getTopWindow(),this.contextDoc=this.contextWin.document);var t,n,r=this;if(r.videoPlayers={},this.element){t=ntv.query,this.trackTimeOnContent&&dp.internalPubSub.subscribe(o,(function(){r.trackTime()})),t(this.contextWin).bind("resize",(function(){r.resize()})),n=0,t("iframe",this.contextDoc).map((function(e){var i=t(this,this.contextDoc);"prx_full_ad_video"==i.attr("id")||i.hasClass("prx_full_ad_video")||i.hasClass("ntvCLPVideo")?"prx_full_ad_video"==i.attr("id")||i.hasClass("prx_full_ad_video")?r.postProcessIframe(r.renderYouTubeVideo(i,++n)):r.postProcessIframe(r.renderNativoVideo(i,++n)):r.postProcessIframe(i)})),t("ntv-video",this.contextDoc).map((function(e){var i=t(this,this.contextDoc);r.renderNativoVideo(i,++n)})),this.trackTime(),this.trackScroll(),this.trackCeros(),this.resize(),this.processArticleImages(),this.cpe=new gp(r.tos_w_hidden,r.scrollTracker,this.cpeSpentQS),this.cpe.initializeTrackingCPEMetrics();D.runWhenDOMIsReady((function(){r.resize(),r.cpe.initializeDOMCPEMetrics()})),setTimeout((function(){r.resize()}),0)}else setTimeout((function(){r.init()}),100)},Op.prototype.processArticleImages=function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ap(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(Pp(document.getElementsByClassName("ntv-body")).map((function(e){return Pp(e.getElementsByTagName("IMG"))})).flat());try{for(t.s();!(e=t.n()).done;){_p(e.value,{width:this.maxArticleWidth})}}catch(e){t.e(e)}finally{t.f()}},Op.prototype.resume=function(){this.disabled||(this.trackTimeOnContent=this.resumeTrackTimeOnContent,this.tos_w_hidden.resume(),this.scrollTracker&&this.scrollTracker.enable())},Op.prototype.stop=function(){this.resumeTrackTimeOnContent=this.trackTimeOnContent,this.trackTimeOnContent=!1,this.tos_w_hidden.stopAndTrack(),this.tos_w_hidden.reset(),this.scrollTracker&&(this.scrollTracker.disable(),this.scrollTracker.stopScrollTracking()),this.cerosTracker&&this.cerosTracker.disable(),this.disabled=!0},Op.prototype.postProcessIframe=function(e){!e||void 0!==e.length&&0===e.length||(e.length&&(e=e[0]),D.isChrome()&&bp(e,this.baseTrackingUrl,this.adVersionPlacement))},Op.prototype.renderNativoVideo=function(e,t){e.css("visibility","visible"),e.css("display","block"),this.setMaxArticleWidth();var n,r,i,o,a=Math.floor(1e6*Math.random()+1),s="video-wrapper"+this.adID+"_"+a,l=D.getVideoSelectorName()+this.adID+"_"+a,u=e.attr("ntv-video-sources"),d=e.attr("video-closed-caption"),f=e.attr("src"),p=D.getElementDimensions(e),h=ntv.query.extend(!0,{},this);h.trackTimeOnContent=!1,h.tos=null,kp(e)&&(p=function(e,t){var n=t.w,r=(t.h,t.aspectRatio),i=Math.min(n,e);return{w:i,h:i/r,aspectRatio:r}}(this.maxArticleWidth,p));try{i=JSON.parse(u)}catch(e){i=[]}if((o=document.createElement("div")).setAttribute("class","ntv-video-wrapper"+this.adID+" "+s+" ntv-video-wrapper"),D.wrap(e[0],o),e.attr("allowfullscreen",!0).attr("id",l).attr("frameborder","0"),h.renderingParams={outerCssClass:s,previewImage:e.attr("video-preview-img")?e.attr("video-preview-img"):"",resizeMode:e.attr("resize-mode")?e.attr("resize-mode"):"max",applySmartCropping:!e.attr("apply-smart-cropping")||e.attr("apply-smart-cropping"),article:1,iframeId:l,videoNodeId:"".concat(l).concat("-node")},(n=document.createElement("video")).id=h.renderingParams.videoNodeId,i.forEach((function(e){var t=document.createElement("source");t.src=window.location.protocol+e.url,t.type=e["content-type"],n.width=p.w,n.height=p.h,n.appendChild(t),t=null})),n.width=p.w,n.height=p.h,n.classList.add("video-js"),d){var v=document.createElement("track");v.src=d,v.label="English",v.kind="captions",v.srclang="en",n.appendChild(v),n.crossOrigin="anonymous"}h.iframeBody='<div class="video-wrapper">',h.iframeBody+=h.renderingParams.previewImage?"<div class='video-preview-img' style='height:100%;'><a href='#'></a></div>":"",h.iframeBody+=n.outerHTML+"</div>",h.iframeHead="<style>body{top:0px;left:0px;margin:0;}</style>",h.renderingParams.cssUrl=h.sharingSkinUrl,h.vastUrl="",h.rootNode=D.toDomElement(e),h.renderingParams.videoExecution=8,h.renderingParams.autoplay=!1,h.renderingParams.ntvCLPVideo=!0,h.renderingParams.mobile=D.isMobile(),0===e.contents().find("body").length&&e.append(n),h.ntvVideoCLP=!0,(f&&f.indexOf("&autoplay=1")>0||e.attr("data-ntvautoplay")&&"true"==e.attr("data-ntvautoplay"))&&(h.autoPlayParams={},h.renderingParams.videoExecution=8),h.iframeIndex=t,h.playerType=c.NATIVO_PLAYER,h.contextWin=this.contextWin,h.contextDoc=this.contextDoc,r=ntv.Video;var m=D.generateVideo(h,[r.Player.Nativo,r.Render.IFU,r.Render.Skin,r.Render.Mobile],[r.Tracker.Nativo]);return this.videoPlayers[a]=m,m.iframe.first()},Op.prototype.renderYouTubeVideo=function(e,t){e.css("visibility","visible");var n=Math.floor(1e6*Math.random()+1),r="ntv-video-wrapper"+this.adID+"_"+n,i=D.getVideoSelectorName()+"Iframe"+r,o=e.attr("src"),a=D.getElementDimensions(e),s=a.w,l=a.h;e.replaceWith('<div class="ntv-video-wrapper'+this.adID+" "+r+' ntv-video-wrapper"><iframe id="'+i+'" width="'+s+'" height="'+l+'"   frameborder="0" allowfullscreen></iframe></div>');var u=ntv.query.extend(!0,{},this);u.trackTimeOnContent=!1,u.tos=null,o&&o.indexOf("&autoplay=1")>0&&(o=o.replace("&autoplay=1",""),u.playerVarsAutoPlay=1),u.renderingParams={outerCssClass:r,previewImage:e.attr("video-preview-img")?e.attr("video-preview-img"):"",resizeMode:e.attr("resize-mode")?e.attr("resize-mode"):"max",applySmartCropping:!e.attr("apply-smart-cropping")||e.attr("apply-smart-cropping"),article:1,iframeId:i,videoNodeId:"".concat(i).concat("-node")},u.iframeBody='<div class="video-wrapper">',u.iframeBody+=u.renderingParams.previewImage?"<div class='video-preview-img' style='height:100%;'><a href='#'></a></div>":"",u.iframeBody+='<iframe class="ntvVideo'+n+'" frameborder="0" width="'+s+'" height="'+l+'" ntv-aspect-ratio="16:9" id="'+u.renderingParams.videoNodeId+'" src="'+o+'&showsearch=0&showinfo=0&modestbranding=1&autohide=1&egm=0&rel=0&wmode=opaque" type="text/html" style="float:none;clear:both;width:100%;height:100%;max-width:1200px;max-height:'+l+'px" !important" allowfullscreen ></iframe></div>',u.iframeHead="<style>body{top:0px;left:0px;margin:0;}</style>",(o&&o.indexOf("&autoplay=1")>0||e.attr("data-ntvautoplay")&&"true"==e.attr("data-ntvautoplay"))&&(u.autoPlayParams={},u.renderingParams.videoExecution=8);var d=ntv.Video;u.iframeIndex=t,u.playerType=c.YOUTUBE_PLAYER,function(e){window.addEventListener("resize",(function(t){ntv.query("iframe."+D.getVideoSelectorName()+e).css("max-height",ntv.query("iframe."+D.getVideoSelectorName()+e).width()/(16/9)+"px")}),!1)}(n),this.videoPlayers[n]=D.generateVideo(u,[d.Player.YouTube,d.Render.IFU,d.Render.YouTubeSkin,d.Render.Mobile],[d.Tracker.Nativo])},Op.prototype.trackTime=function(){if(!this.disabled){var e=this;if(D.canExecute((function(){e.trackTime}),"ntvArticleTrackerTrackTime",100))if(this.trackTimeOnContent){if(this.expandableUnit)return;this.tos_w_hidden.resume(),this.trackSecondaryImpression()}else this.trackSecondaryImpression()}},Op.prototype.trackSecondaryImpression=function(){if(!this.trackedSecondaryImpression){this.trackedSecondaryImpression=!0;var e=null,t=null;null!=(e=this.expandableUnit?[this.tracker.readAndClickActionTypes,this.tracker.articlePageViewActionType]:this.clickoutTracking?[this.tracker.secondaryImpressionActionType,this.tracker.articlePageViewActionType]:this.trackTimeOnContent?[this.tracker.articlePageViewActionType]:null)&&(dp.setting.isEdge&&!e.includes(this.secondaryImpressionActionType)&&this.tracker.baseTrackingUrl.indexOf("ntv_tpvcs")>0&&e.push(this.tracker.secondaryImpressionActionType),t=this.tracker.getUrl(e.join())),D.insertTracking(t,this.secondaryImpressionTags,1)}},Op.prototype.articleUrlChange=function(){this.disabled||(this.urlActive?(this.trackTime(),this.executeMoat(!0)):(this.tos_w_hidden.onLeave(),this.resetTimeOnContentVars(),this.trackedSecondaryImpression=!1,this.executeMoat(!1)))},Op.prototype.executeMoat=function(e){try{if(this.moatEnabled)var t=D.domQuery("."+this.moatClass)(e)?t.initMoatTracking():t.stopMoatTracking()}catch(e){}},Op.prototype.setMaxArticleWidth=function(){var e=ntv.query(this.element);this.maxArticleWidth=e.width();var t=!window.orientation||90!=window.orientation&&-90!=window.orientation?screen.width:screen.height;(-20==this.maxArticleWidth||this.maxArticleWidth>t)&&(this.maxArticleWidth=t-20),this.maxArticleWidth>1200&&(this.maxArticleWidth=1200),this.maxArticleWidth=Math.ceil(this.maxArticleWidth)},Op.prototype.resize=function(){if(!this.disabled){this.setMaxArticleWidth();var e=this,t=ntv.query;if(t(this.element).find('iframe:not([class*="ntv-do-not-resize"])').map((function(){if(!this.closest(c.BLOCK_QUERY_SELECTOR)){var n=t(this);n.css("float","none").css("clear","both");var r=n.parent(),i=0===r.length?e.maxArticleWidth:Math.min(e.maxArticleWidth,r.width()),o=D.getElementDimensions(this);if(0==o.w&&i>0)e.setVideoSize(this,i);else{var a=n.attr("id");if(a&&0==a.indexOf(D.getVideoSelectorName()+"Iframe"))return void D.setElementDimensions(n,o,i);if(a&&0==a.indexOf(D.getVideoSelectorName()))return D.setElementDimensions(n,o,i),void D.setElementDimensions(t(this.contentWindow.document).find("#".concat(a).concat("-node")),o,i);D.setElementDimensions(this,o,i)}e.setVideoContainerSize(this),t(this).show()}})).get(),t(this.element).find("video").map((function(){this.closest(c.BLOCK_QUERY_SELECTOR)||(0==D.getElementDimensions(this).w&&e.maxArticleWidth>0&&e.setVideoSize(this,e.maxArticleWidth),e.setVideoContainerSize(this))})).get(),t(this.element).find("img").map((function(){_p(this,{width:e.maxArticleWidth})})).get(),t(this.element).find("ntv-shadow-video").map((function(){if(kp(this)){var t=this.shadowRoot.querySelector("#ntvVideo");0==D.getElementDimensions(this).w&&e.maxArticleWidth>0&&e.setVideoSize(t,e.maxArticleWidth),e.setVideoContainerSize(this.parentElement)}})).get(),e.videoPlayers)for(var n in e.videoPlayers)e.videoPlayers[n].videoRendering&&e.videoPlayers[n].videoRendering.resizeIframe();ntv.Events.PubSub.publish("articleResizerExecuted",[])}},Op.prototype.setVideoSize=function(e,t){var n=null!=(n=ntv.query(e).attr("ntv-aspect-ratio"))?n.split(":"):[16,9],r=t,i=Math.ceil(n[1]*t/n[0]);ntv.query(e).attr("height",i).attr("width",r).width(r).height(i)},Op.prototype.setVideoContainerSize=function(e){var t=(e=ntv.query(e)).parent();if(t.attr("class")&&t.attr("class").indexOf("ntv-video-wrapper")>=0){var n=e.attr("height"),r=e.attr("width");n>0&&r>0&&t.width(r).height(n)}},Op.prototype.onArticleExpand=function(){for(var e in this.scrollTracker?this.scrollTracker.enable():this.trackScroll(),this.cerosTracker?this.cerosTracker.enable():this.trackCeros(),this.tos_w_hidden.resume(),this.trackSecondaryImpression(),this.videoPlayers)this.videoPlayers[e].privateEvent.publish(ntv.Events.Types.Manager.PLAY)},Op.prototype.onArticleCollapse=function(){for(var e in this.scrollTracker&&this.scrollTracker.disable(),this.tos_w_hidden.stopAndTrack(),this.videoPlayers){this.videoPlayers[e];this.videoPlayers[e].executePlayerCommand("getCurrentTime")>0&&this.videoPlayers[e].privateEvent.publish(ntv.Events.Types.Manager.PAUSE)}},Op.prototype.trackScroll=function(){var e=this;this.scrollTracker=new vp({trackElement:this.element.self?null:this.element,trackScrollInit:function(){return e.tracker.getUrl(c.CLP_SCROLL_INITIATED)},trackScrollDepth:function(t){var n=e.tracker.getUrl(c.CLP_VIEW_DEPTH_MAX);return n=n.replace("ntv_at=".concat(c.CLP_VIEW_DEPTH_MAX),"ntv_mat=".concat(c.CLP_VIEW_DEPTH_MAX,"*").concat(t))},trackScrollDepthCheckpoint:function(t){var n=c["CLP_VIEW_DEPTH_".concat(t,"_PERCENT")];if(n)return e.tracker.getUrl(n)+"&ntv_av=".concat(t)}})},Op.prototype.trackCeros=function(){var e=this;this.cerosTracker=new Sp({trackClickComponent:function(){return e.tracker.getUrl(c.COMPONENT_CLICK_EVENT)},trackClickLightbox:function(){return e.tracker.getUrl(c.LIGHTBOX_CLICK_EVENT)},trackClickLink:function(){return e.tracker.getUrl(c.LINK_CLICK_EVENT)},trackViewPage:function(){return e.tracker.getUrl(c.PAGE_VIEW_EVENT)},trackPlayVideo:function(){return e.tracker.getUrl(c.VIDEO_PLAY_EVENT)}})},window.ntvArticleTracker=Op;var Up=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Np(e,t)}(o,e);var t,n,r,i=jp(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).type="SafeFrameViewability",dp.viewableImpressionTrackers.push(t.tracker),t}return t=o,(n=[{key:"isInView",value:function(){var e=dp.safeFrame.api.getViewability();return e.ratioInView>=this.minimumAreaViewable||!this.checkMinimumAreaViewable&&0==e.totalArea&&e.viewable}},{key:"dispose",value:function(){Lp(Mp(o.prototype),"dispose",this).call(this),D.removeElementFromArray(dp.viewableImpressionTrackers,this.tracker),dp.safeFrame&&dp.safeFrame.api&&dp.safeFrame.api.removeHandlers(this.id)}}])&&Rp(t.prototype,n),r&&Rp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(So);function Fp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bp(r.key),r)}}function Bp(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Hp(){return(Hp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Wp(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function Wp(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Yp(e)););return e}function qp(e,t){return(qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yp(e);if(t){var i=Yp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Gp(this,n)}}function Gp(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Yp(e){return(Yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kp(r.key),r)}}function Kp(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Xp(){return(Xp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Jp(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function Jp(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=th(e)););return e}function Zp(e,t){return(Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=th(e);if(t){var i=th(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eh(this,n)}}function eh(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function th(e){return(th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nh="AmpViewability",rh="SafeFrameViewability",ih="ObserverViewability",oh="ElementViewability",ah={[nh]:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qp(e,t)}(o,e);var t,n,r,i=zp(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).type="AmpViewability",t}return t=o,(n=[{key:"isInView",value:function(){return!!dp.checkAmpViewability&&dp.checkAmpViewability()>=this.minimumAreaViewable}},{key:"dispose",value:function(){Hp(Yp(o.prototype),"dispose",this).call(this)}}])&&Fp(t.prototype,n),r&&Fp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(So),[rh]:Up,[ih]:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zp(e,t)}(o,e);var t,n,r,i=$p(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).type="ObserverViewability",t.viewabilityData=new bo;var n=new Oc({onAnyThreshold:function(e){var n,r,i,o,a;t.viewabilityData=(o=(n=e).boundingClientRect,a=n.intersectionRect,new bo({visible:n.isIntersecting,totalArea:(r=o.width,i=o.height,r*i),ratioInView:n.intersectionRatio,xInView:a.width,yInView:a.height})),t.pubsub.publish(wo.VIEWABLE_CHANGE,t.viewabilityData)}});return t.observer=function(e){if(.01===e)return Vc(Nc);if(.5===e)return new Vc(Dc);return new Vc(Dc)}(t.minimumAreaViewable),t.observer.addTarget(t.element,n),t}return t=o,(n=[{key:"dispose",value:function(){Xp(th(o.prototype),"dispose",this).call(this)}},{key:"isInView",value:function(){return this.viewabilityData.visible}}])&&Qp(t.prototype,n),r&&Qp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(So),[oh]:Do};function sh(e){return dp.ampMode?nh:dp.safeFrame&&dp.safeFrame.api?rh:null!=window.IntersectionObserver&&"function"==typeof window.IntersectionObserver&&e.useObserverViewability?ih:oh}function ch(e){dh.call(this,e)}ch.prototype=Object.create(dh.prototype),ch.prototype.init=function(e){var t=this,n=e.selector,r=e.id,i=e.handlers,o=void 0===i?{}:i;Object.keys(o).forEach((function(e){t.addHandler(r,e,o[e])})),this.startListening(n),this.ready=!0},ch.prototype.startListening=function(e){var t=this;if(!this.listening){this.initialSize={w:1,h:1};try{var n,r=D.getTopWindow().document;e&&(n=r.querySelector(e)),n||(n=r.documentElement);var i=D.getElementDimensions(n);this.initialSize.w=Math.max(this.initialSize.w,i.w),this.initialSize.h=Math.max(this.initialSize.h,i.h)}catch(e){}this.api.ext.register(this.initialSize.w,this.initialSize.h,(function(e,n){if("geom-update"===e)for(var r in t.eventHandlers[lh.size])t.eventHandlers[lh.size][r]();if("focus-change"===e&&t.eventHandlers[lh.focus])for(var i in t.eventHandlers[lh.focus])t.eventHandlers[lh.focus][i](t.api.ext.winHasFocus)})),this.listening=!0}},ch.prototype.stopListening=function(){},ch.prototype.getViewability=function(){return this.ready?(this.currentGeom=this.api.ext.geom().self,new bo({visible:this.currentGeom.iv>0,ratioInView:this.currentGeom.iv,totalArea:this.currentGeom.w*this.currentGeom.h})):new bo},ch.prototype.getFocus=function(){if(this.ready)return $sf.winHasFocus};var lh={size:"size-change",focus:"focus-change"};var uh=function(e){if(e&&D.isInIframe()){var t={};return t.check=function(e){var t=0;return new Promise((function(n,r){!function i(){var o=e.$sf||D.getTopWindow().$sf;o&&o.ext?n(o):(t+=50)>300?r():setTimeout(i,50)}()}))}(e).then((function(e){var n=e.ext.getVersion?e.ext.getVersion():1;t.api=function(e,t){return 1==t?new ch(e):void 0}(e,n)})).catch((function(){})),t}};function dh(e){var t=this;this.api=e,this.listening=!1,this.eventHandlers={},Object.keys(lh).forEach((function(e){t.eventHandlers[lh[e]]={}}))}dh.prototype.addHandler=function(e,t,n){e&&this.eventHandlers[t]&&(this.eventHandlers[t][e]=n)},dh.prototype.removeHandlers=function(e){for(var t in this.eventHandlers)for(var n in this.eventHandlers[t])n===e&&delete this.eventHandlers[t][e]},dh.prototype.startListening=function(e){},dh.prototype.stopListening=function(){},dh.prototype.getViewability=function(){},dh.prototype.getFocus=function(){};var fh=["47","304","809"];function ph(e){var t=this;if(ntv.MRAID)return ntv.MRAID.adInfo=ntv.MRAID.adInfo||[],ntv.MRAID.adInfo.push({placementID:e.placementID,adID:e.adID,primaryImpressionURL:e.primaryImpressionURL,thirdPartyTrackingTags:e.thirdPartyTrackingTags,videoDimensions:this.getVideoDimensions(),minimumExposedTime:e.minimumExposedTime,startTracking:!1}),ntv.Events.PubSub.publish("mraidViewabilityChange",mraid.isViewable()),void Cd.PubSub.publish("mraidViewabilityChange",mraid.isViewable());D.copyProperties(e,this),this.id="".concat(this.adID,"-").concat(this.placementID,"-").concat(this.minimumAreaViewable,"-").concat(this.minimumExposedTime),this.element=D.domQueryUp(this.selector),this.adPlacementId=D.clientUtils.generateAdPlacementId(this.adID,this.placementID);var n=dp.thirdPartyJSViewableImpTrackers,r=dp.viewableWhiteList[e.placementID],i=.01===e.minimumAreaViewable&&1===e.minimumExposedTime,o=this.element.querySelector("ntv-div")||D.domQuery("ntv-div"),a=D.getActionTypesFromURL(e.primaryImpressionURL).some((function(e){return fh.indexOf(e)>=0}));i||(this.thirdPartyTrackingTags=D.trackImpressionsInViewability(r,this.thirdPartyTrackingTags,this.selector)),this.stopWatch=q().ntvStopWatch((function(){var r=t.getVideoDimensions();!D.is("o",r)||isNaN(r.width)||isNaN(r.height)||(t.primaryImpressionURL+="&ntv_vw="+r.width+"&ntv_vh="+r.height),t.primaryImpressionURL+=a?"&".concat(c.IFRAME_QS_ID,"=").concat(function(){try{var e;return null!=dp&&null!==(e=dp.safeFrame)&&void 0!==e&&e.api?c.IFRAME_TYPES.SAFE_W_API:D.resolveIframeType()}catch(e){D.postError(new Error("resolveViewableIframeType(), Cause:".concat(e.message)))}}()):"",Li(t.primaryImpressionURL,t.thirdPartyTrackingTags,1,null,{placementID:e.placementID,adID:e.adID,is70Percent:i,node:o||t.element}),a&&dp.internalPubSub.publish("tracking-fired-viewableImpression"),n[t.placementID]&&n[t.placementID].whitelist instanceof Array&&n[t.placementID].thirdparty&&D.filterScripts(n[t.placementID].whitelist,n[t.placementID].thirdparty),t.viewabilityMethod.dispose()}),this.minimumExposedTime),this.lastCheck=new Date,this.missedCheck=0,this.checkOnFocus&&D.onFocusEvents.push((function(){D.isOnFocus()||t.stopWatch.reset()})),dp.safeFrame?dp.safeFrame.check.then((function(){if(dp.safeFrame.api.init)try{dp.safeFrame.api.init({selector:e.selector,id:t.id,handlers:{[lh.size]:dp.checkIsAdVisible,[lh.focus]:function(e){e||t.stopWatch.reset()}}})}catch(e){D.postError(new Error("SafeFrame API failed to init for id ".concat(t.id)))}})).catch((function(){})).finally((function(){t.setupViewabilityTrackingMethod()})):this.setupViewabilityTrackingMethod()}function hh(e){if(void 0!==e){var t=e.primaryImpressionURL,n=e.thirdPartyTrackingTags,r=e.placementID,i=e.adID;if(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return void 0===e}))}(t,n,r,i))D.postError(new Error("ntvStandardImpressionTracker: missing required params"));else{Li(t,n,_i,!1,{placementID:r,adID:i})}}}ph.prototype.setupViewabilityTrackingMethod=function(){var e=this;this.viewabilityMethod=function(e){var t=Eh(e.adPlacementId),n=sh(ne(null==t?void 0:t.responseId)),r=ah[n];if(null!=r)return new r(e)}(this),this.viewabilityMethod.addViewableEventListener(wo.VIEWABLE_CHANGE,(function(){e.checkViewability()})),this.checkViewability()},ph.prototype.getVideoDimensions=function(){var e=ntv.query(this.selector).find("iframe");if(e.length&&e[0].contentWindow){if(e[0].src){if(e[0].src.length>0&&(/ntv_at=47/gi.test(this.primaryImpressionURL)||/ntv_at=.*809/gi.test(this.primaryImpressionURL))){var t=ntv.query(e[0]);return{width:t.width(),height:t.height()}}return!1}var n=ntv.query("video",e[0].contentWindow.document);return!(!n.length||!/ntv_at=47/gi.test(this.primaryImpressionURL)&&!/ntv_at=.*809/gi.test(this.primaryImpressionURL))&&{width:n[0].width,height:n[0].height}}return!1},ph.prototype.checkViewability=function(e){if(null!=this.viewabilityMethod){var t=this.viewabilityMethod.isInView(e),n=this.viewabilityMethod.isInFocus();t&&n?this.stopWatch.resume():this.stopWatch.reset()}},window.ntvViewableImpressionTracker=ph;var vh={startTrackingArticle(e){new Op(e)},startScrollTracking(e){new vp(e)},startCerosTracking(e){new Sp(e)},Record:Li,Time:q,TrackImpression:ph,Viewability:Uo,TrackingUrl:Cp},mh={secondaryImpressionActionType:2,clickActionType:3,cta:4,readAndClickActionTypes:"2,3",videoView:22,videoEndActionType:23,timeOnContent:34,videoProgress25PercentActionType:39,videoProgress50PercentActionType:40,videoProgress75PercentActionType:41,videoHeadlineClick:48,articlePageViewActionType:52,gallery:54,clickToUnMute:55,videoStartActionType:56,videoBillableView:58,companionCta:59,videoPlayed15SecondsType:60,videoPlayed30SecondsType:61,prerollVideoStartType:62,prerollVideoEndType:63,optVideoByClick:65};function yh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=e+t;return(r.length>0||n>=1e5)&&(i+="&"+c.AVP+"="+r),i+=D.setURLCache()}var gh=ee("trackingMap");function bh(e,t){e&&t&&gh.set(e,t)}function wh(e,t,n){e&&t&&(gh.set(e,t),n&&(gh.get(e).responseId=n))}function Eh(e){return e&&gh.get(e)||{}}function Th(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.startTime=(new Date).getTime(),this.tracker=q(!0).ntvStopWatch().ntvTimeOnContentStopWatch(this,mh.timeOnContent).addStopWatchEventHandlers({node:D.getTopWindow(),type:"visibilitychange",handler:function(){var t=(new Date).getTime()-r.startTime;r.tracker.preventResume=D.getTopWindow().document.hidden,D.getTopWindow().document.hidden&&r.tracker.stop(),!D.getTopWindow().document.hidden&&e.isOpen&&t<e.trackTimeCap&&r.storiesModalElement.content.offsetParent&&r.tracker.resume()}}),i||(this.tracker.engagements={}),this.tracker.getUrl=function(e){return yh(t.baseTrackingUrl,e,t.adID,t.adVersionPlacement)+(n?"&".concat(c.SLIDE_ID,"=").concat(n):"")},this.resume=function(){r.tracker.resume()},this.stop=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e?r.tracker.stopAndTrack():r.tracker.stop()},o&&this.resume()}function Sh(e,t,n){var r=n.querySelectorAll('[data-index="'.concat(t,'"]')),i=r[0],o=r[1];switch(e){case"active":i.classList.remove("seen"),o.classList.remove("seen"),i.classList.add("active"),o.classList.add("active");break;case"seen":i.classList.add("seen"),o.classList.add("seen"),i.classList.remove("active"),o.classList.remove("active");break;case"reset":i.classList.remove("seen"),o.classList.remove("seen"),i.classList.remove("active"),o.classList.remove("active")}}function kh(e,t){if(t){var n=!1,r=function(e,t){var n=e;D.adBlocker&&(n=n.replace(c.ASSETS_PREFIX+D.getServerDomain(),D.getServerDomain())),-1==e.indexOf("fetch")&&(e.indexOf(c.ASSETS_DOMAIN)>=0&&(n=e.replace("//".concat(c.ASSETS_DOMAIN,"/"),"")),e.indexOf(c.ASSETS_DOMAIN_DEV)>=0&&(n=e.replace("//".concat(c.ASSETS_DOMAIN_DEV,"/"),"")),n=n.replace(/(^\w+:|^)/,""));var r=t.querySelector('img[src*="'.concat(n,'"]'));return r||(r=t.querySelector('img[src*="'.concat(encodeURIComponent(n),'"]'))),r?{element:r,attribute:"src"}:{element:r=t.querySelector('[data-img-src*="'.concat(n,'"]')),attribute:"data-img-src"}}(e,t),i=r.element,o=r.attribute;if(i&&o)return i.onload=function(){if(!n){var e=i.attributes[o].value.split("assets"),t="".concat(e[0]).concat("l_story_icon/assets").concat(e[1]);i.attributes[o].value=t,n=!0}},i}}var Ph=function(e){var t=e.elementId;return'\n  <div\n    id="'.concat(t,'" \n    class="with-effects"\n    style="display: none;"\n    tabIndex="0"\n  >\n    <div id="ntv-stories-modal-content">\n      <div\n        id="ntv-stories-modal-slider" \n        class="slider"\n      >\n      </div>\n    </div>\n  </div>\n')};var Ah=function(e){var t=e.advertiser,n=e.advertiserLogo,r=e.sponsoredLabel,i=e.link,o=e.closeIcon;return'\n  <div \n    class="story-viewer"\n    data-story-id="'.concat(t,'"\n  >\n    <div class="ntv-stories__head-bg"></div>\n\n    <div class="ntv-stories__head head">\n      <a \n        class="ntv-stories__user"\n        href="').concat(i,'"\n        rel="noopener" \n        target="_blank"\n      >\n        <div class="ntv-stories__user-img">\n          <img\n            lazy="eager"\n            class="profilePhoto"\n            src="').concat(n,'" \n          />\n        </div>\n        <div class="ntv-stories__user-info">\n          <span class="ntv-stories__user-info-name">\n            ').concat(t,'\n          </span>\n          <span class="ntv-stories__user-info-sponsored">\n            ').concat(r,'\n          </span>\n        </div>\n      </a>\n\n      <div class="ntv-stories__close" tabIndex="2">\n        <img src="').concat(o,'" />\n      </div>\n    </div>\n\n    <div class="ntv-stories__timers">\n      <div class="ntv-stories__timers__wrapper"></div>\n    </div>\n  </div>\n')},Ih=function(e){var t=e.index,n=e.id,r=e.length,i=e.isActive,o=e.isSeen,a=e.type;return'\n  <span \n    class="\n      '.concat(o?"seen":""," \n      ").concat(i?"active":"",'" \n      data-index="').concat(t,'" \n      data-item-id="').concat(n,'"\n      data-type="').concat(a,'"\n  >\n    <b style="animation-duration:').concat(""===r?"6":r,'s"></b>\n  </span>')},Ch={src:function(e){return[{pattern:/@src/gi,value:e}]},type:function(e){return[{pattern:/@type/gi,value:e}]},id:function(e){return[{pattern:/@id/gi,value:e}]}};var Oh={fullscreen:function(e){return[{pattern:/@fullscreen/gi,value:e?"no-fullscreen":""}]},src:function(e){return[{pattern:/@src/gi,value:e}]},type:function(e){return[{pattern:/@type/gi,value:e}]}};var _h={src:function(e){return[{pattern:/@src/gi,value:Rh(e)}]},type:function(e){return[{pattern:/@type/gi,value:e}]}};function Rh(e){var t,n,r=(t=e,(n=document.createElement("a")).href=t,n),i="image/upload/e_blur:3000/assets"+r.pathname;return r.host=c.RESIZER_DOMAIN,r.pathname=i,r.href}function xh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dh(e,t){var n=t.useGestures,r=null,i=null;var o={default:{touchstart:function(t){r=t.touches[0].clientX,i=t.touches[0].clientY,e.onTouchStart(t)},touchend:function(t){e.onTouchEnd(t,r)},mousedown:function(t){e.onTouchStart(t)},click:function(t){e.onTouchEnd(t,null,!0)}},gestures:{touchmove:function(t){e.onTouchMove(t),function(t){if(null!==r&&null!==i){var n=t.touches[0].clientX,o=t.touches[0].clientY,a=r-n,s=i-o;Math.abs(a)>Math.abs(s)?a>2?e.onSwipeLeft(t):a<-2&&e.onSwipeRight(t):s>5?e.onSwipeUp(t):s<-5&&e.onSwipeDown(t),r=null,i=null}}(t)}}};function a(e){Object.entries(o.default).forEach((function(t){var n=xh(t,2),r=n[0],i=n[1];e.addEventListener(r,i)})),n&&Object.entries(o.default).forEach((function(t){var n=xh(t,2),r=n[0],i=n[1];e.addEventListener(r,i)}))}return a(e),{addInteractionHandlers:a}}function Nh(e){return function(e){if(Array.isArray(e))return jh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return jh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vh(e){var t=e.adID,n=e.currentItem,r=e.storyItems,i=e.options,o=void 0===i?{useGestures:!0,useBackgroundBlur:!1}:i,a=ma(Mh()),s=o.useGestures,c=o.useBackgroundBlur,l="",u={};r.forEach((function(e,r){var i="stories-slide-".concat(t,"-").concat(r),o=e.type,a=e.media,s=e.link,d=e.description?e.description.html:"",f=e.linkText,p=n===r,h=e.isFullscreen,v=e.seen,m=e.backgroundColor,y=document.createElement("div");y.innerHTML=e.description?e.description.html:"";var g=y.childNodes[0]&&"#comment"===y.childNodes[0].nodeName?y.childNodes[0].nodeValue:"";l+=Uh({index:r,id:i,type:o,src:a,text:d,link:s,linkText:f,isSeen:v,isActive:p,isFullscreen:h,customStyles:g,useBackgroundBlur:c,backgroundColor:m},u),e.id=i})),a.onTouchStart=function(e){},a.onTouchEnd=function(e){},a.onTouchMove=function(e){},a.onSwipeLeft=function(e){},a.onSwipeRight=function(e){},a.onSwipeUp=function(e){},a.onSwipeDown=function(e){},a.onUnmuteTouchEnd=function(e){};var d=new Dh(a,{useGestures:s}),f=document.createRange().createContextualFragment(l);a.appendChild(f),function(e,t,n){e.querySelectorAll(".ntv-slide-iframe").forEach((function(e){var r,i=e.id;if(t[i]){var o=t[i],a=document.createElement("iframe");(r=a.classList).add.apply(r,Nh(e.classList)),a.classList.add("ntv-stories__item-html"),a.id=i,a.setAttribute("frameBorder","0"),a.setAttribute("sandbox","allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-popups"),e.replaceWith(a);a.onload=function(){D.writeIframe(a,"","<head>".concat("<style>\n        html { overflow: hidden; }\n        body { \n          margin: 0;\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n        #ntv-slide__content {\n          width: 100%;\n        }\n      </style>\n      ","</head>"),"<body><div id='ntv-slide__content'>".concat(o,"</div></body>")),n.addInteractionHandlers(this.contentWindow.document.body)}}}))}(a,u,d),a.videoElem=a.querySelector("video");for(var p=a.getElementsByClassName("ntv-stories__unmute-icon"),h=0;h<p.length;h++)p[h].addEventListener("touchend",(function(e){e.stopImmediatePropagation(),a.onUnmuteTouchEnd(e)}),!1),p[h].addEventListener("click",(function(e){e.stopImmediatePropagation(),a.onUnmuteTouchEnd(e)}),!1);return a}var Mh=function(){return'\n  <div class="ntv-stories-slides slides">\n  </div>\n'},Uh=function(e,t){var n,r=e.index,i=e.id,o=e.type,a=e.isSeen,s=e.isActive,c=e.src,l=e.text,u=e.customStyles,d=e.isFullscreen,f=e.useBackgroundBlur,p=e.backgroundColor;switch((u?JSON.parse(u.replace(";","")):{}).position){case"top":n="flex-start";break;case"center":n="center";break;case"bottom":n="flex-end"}var h=function(e){var t=e.fullscreen,n=e.backgroundBlur,r=e.id,i=e.type,o=e.src;if(!o&&!i)return;var a=Fh[i];return a?a({fullscreen:t,backgroundBlur:n,id:r,type:i,src:o}):""}({fullscreen:d,backgroundBlur:f,id:i,type:o,src:c});if(!h&&"string"==typeof l){var v="ntv-slide-iframe-".concat(r);t[v]=decodeURIComponent(l),h="<span class='ntv-slide-iframe' id=".concat(v,"></span>")}var m=function(e){var t=e.type,n=e.text;return t?n:""}({type:o,text:l}),y="ntv-stories__item--text-block";return""===m&&(y+=" ntv-stories__hidden"),'\n  <div \n    class="ntv-stories__item \n    '.concat(a?"seen":""," \n    ").concat(s?"active":"",'" \n    data-type="').concat(o,'" \n    data-index="').concat(r,'" \n    data-item-id="').concat(i,'"\n  >\n    <div class="ntv-stories__item-media" style="').concat(p?"background-color: ".concat(p,";"):"",'">\n      <div class="ntv-stories__item-media-container">\n        ').concat(h,'\n      </div>\n    </div>\n    <div \n      class="').concat(y,'"\n      style="align-items: ').concat(n,';"\n    >\n      <div class="ntv-stories__item--text" >\n        <span>').concat(m,"</span>\n      </div>\n    </div>\n  </div>\n")},Fh={video:function(e){return Zn(e,Ch,'\n<video \n  class="ntv-stories__item-video"\n  muted\n  webkit-playsinline\n  playsinline\n  preload="auto"\n  src="@src"\n  @type\n  oncontextmenu="return false;"\n  data-video-id=@id\n></video>\n<img \n  class="ntv-stories__unmute-icon" \n  src="//s.ntv.io/img/unmute-icon.svg" \n/>')},photo:function(e){var t=Zn(e,Oh,'\n<img\n  loading="auto"\n  class="ntv-stories__item-img @fullscreen"\n  src="@src" \n  @type\n  oncontextmenu="return false;"\n/>');return e.backgroundBlur&&(t=function(e){return Zn(e,_h,'\n<img\n  loading="auto"\n  class="ntv-stories__item-media__bg"\n  src="@src" \n  @type\n  oncontextmenu="return false;"\n/>')}(e)+"\n"+t),t}};function Bh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Hh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hh(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Hh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(n),!0).forEach((function(t){zh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zh(e,t,n){return(t=Yh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yh(r.key),r)}}function Yh(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Qh={adID:-1,adVersionPlacement:"",advertiser:"",advertiserLogo:"",sponsoredLabel:"",ctaLink:"",ctaLabel:"Learn More",baseTrackingUrl:"",adWrapperClass:"",stories:[],autoCloseTimeout:15,thirdPartyTrackers:{},previewImage:"",elementId:"ntv-stories-modal",stylesId:"ntv-stories-styles",stylesUrl:"//s.ntv.io/css/stories.css",storiesIcon:"//s.ntv.io/img/story-icon.svg",closeIcon:"//s.ntv.io/img/close-icon.svg",slideViewCallback:function(e){},useGestures:!0,useBackgroundBlur:!1},Kh=0,Xh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=qh(qh(qh({},Qh),t),{},{stories:t.stories}),this.data={[this.options.advertiser]:this.options,currentStory:this.options.advertiser,currentItem:0,currentVideoElement:null,hasBeenOpened:!1,hasBeenUnmuted:!1,isOpen:!1,startTime:0,slideNumberTracked:-1,trackTimeCap:15e4,document:window.frameElement?D.getTopWindow().document:window.document,appliedAnchorSlideIds:!1},this.initializeSlideTracking(),this.setupHeaderElements(),this.setupTimeTracker(),this.setupFocusHandler(),this.storiesModalElement=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.document;return D.domQueryAll("#".concat(e)).length<1&&n.body.appendChild(t),t}(this.options.elementId,function(e){var t=e.elementId,n=ma(Ph({elementId:t})),r=n.children[0];n.content=r;var i=r.children[0];return n.slider=i,function(e,t,n){[n.toLowerCase(),"webkit".concat(n),"MS".concat(n),"o".concat(n)].forEach((function(n){return e.addEventListener(n,t,!1)}))}(n,(function(){n.classList.contains("closed")&&(n.style.display="none",n.classList.remove("closed"),n.classList.remove("animated"))}),"TransitionEnd"),n}({elementId:this.options.elementId}),this.data.document),this.createStoryViewer(),this.injectStoryIconToAd(),this.setupVideoDurations(),this.setupVideoTracking(),this.prepAdWrapperLinks()}var t,n,r;return t=e,r=[{key:"_instances",get:function(){var e=ee("StoriesAds");return e.get("instances")||e.set("instances",{})}}],(n=[{key:"prepAdWrapperLinks",value:function(){var e=D.domQuery(".".concat(this.options.adWrapperClass));e||(e=D.domQuery("body"));var t=e.getElementsByTagName("a");if(t){var n,r=Bh(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.getAttribute("href");i.getAttribute("target")&&-1!==o.indexOf("javascript:")&&i.setAttribute("target","_self")}}catch(e){r.e(e)}finally{r.f()}}}},{key:"initializeSlideTracking",value:function(){var e=this;this.options.stories.map((function(t,n){var r=e.data.slideNumberTracked>0&&n<=e.data.slideNumberTracked;return t.metricsTracked={},t.metricsTracked[mh.gallery]=r,"video"===t.type&&(t.metricsTracked[mh.videoEndActionType]=r),t}))}},{key:"handleSlideTracked",value:function(e){this.data.slideNumberTracked=Math.max(this.data.slideNumberTracked,e),this.options.slideViewCallback&&this.options.slideViewCallback(e)}},{key:"open",value:function(){var e=this;this.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.data.isOpen=!0,window.context&&H()(ntv,"PostRelease.ampMode")&&W({width:H()(window,"context.initialIntersection.boundingClientRect.width"),height:H()(window,"context.initialIntersection.rootBounds.height",0)-H()(window,"context.initialIntersection.intersectionRect.height",0),allowOverflow:!1},context);var t=this.data[this.data.currentStory].stories[0];!this.data.hasBeenOpened&&this.data.slideNumberTracked<0?(this.sendTrackingData([mh.secondaryImpressionActionType,mh.clickActionType,mh.articlePageViewActionType,mh.gallery],t),this.handleSlideTracked(0),this.data.hasBeenOpened=!0,this.data.startTime=(new Date).getTime()):this.initializeSlideTracking(),this.storiesModalElement.style.display="block",(new Date).getTime()-this.data.startTime<this.data.trackTimeCap&&this.data.isOpen&&this.storiesModalElement.content.offsetParent&&(this.timeTracker.resume(),this.startSlideTimeTracking(t)),setTimeout((function(){e.storiesModalElement.classList.add("animated"),Sh("active",0,e.storiesModalElement);var t=e.options.stories[0];e.updateElementsPerSlide(t),e.playVideoItem(e.storyViewer)}),10)}},{key:"close",value:function(){document.body.style.overflow=this.bodyOverflow,this.data.isOpen=!1,function(e,t,n){for(var r=e.querySelectorAll("[data-index]"),i=0;i<r.length;i++)r[i].classList.remove("seen","active");t&&(t.style.transform="translate3d(0vw,0,0)"),n.currentItem=0}(this.storyViewer,this.modalSlides,this.data),!window.context&&H()(ntv,"PostRelease.ampMode")&&W({width:H()(window,"context.initialLayoutRect.width"),height:H()(window,"context.initialLayoutRect.height"),allowOverflow:!1},context),this.timeTracker.stop();var e=this.currentSlideToCTracker;e&&e.stop(),this.currentSlideToCTracker=null;for(var t=this.storyViewer.querySelectorAll("video"),n=0;n<t.length;n++)t[n].pause(),t[n].currentTime=0;this.storiesModalElement.classList.add("closed")}},{key:"setupTimeTracker",value:function(){this.timeTracker=new Th(this.data,this.options)}},{key:"startSlideTimeTracking",value:function(e){this.currentSlideToCTracker&&this.currentSlideToCTracker.stop(),e.timeTracker?e.timeTracker.resume():e.timeTracker=new Th(this.data,this.options,e.slideID,!1,!0),this.currentSlideToCTracker=e.timeTracker}},{key:"playVideoItem",value:function(e){var t=this.getActiveItem(),n=t.timer,r=t.storyElement,i=n.dataset.index;if(!r||!n)return!1;var o=this.data.currentVideoElement;if(o&&o.pause(),"video"===r.getAttribute("data-type")){var a=r.getElementsByTagName("video")[0],s=r.getElementsByTagName("img")[0];if(!a)return this.data.currentVideoElement=!1,!1;e.classList.contains("paused")||0===parseInt(i)||(a.currentTime=0),this.data.currentVideoElement=a,this.data.currentMuteIcon=s,this.data.hasBeenUnmuted||(a.muted=!0),a.play().catch((function(){}))}else this.data.currentVideoElement=!1}},{key:"pauseVideoItem",value:function(){var e=this.data.currentVideoElement;if(e)try{e.pause()}catch(e){}}},{key:"createStoryViewer",value:function(){var e=this,t=this.options.stories,n={useGestures:this.options.useGestures,useBackgroundBlur:this.options.useBackgroundBlur},r=this.data.currentItem||0,i=Vh({adID:this.options.adID,currentItem:r,storyItems:t,options:n});this.modalSlides=i,this.storyViewer=function(e){var t=e.advertiser,n=e.advertiserLogo,r=e.sponsoredLabel,i=e.link,o=e.closeIcon,a=e.currentItem,s=e.storyItems,c=(e.video,ma(Ah({advertiser:t,advertiserLogo:n,sponsoredLabel:r,link:i,closeIcon:o}))),l="";s.forEach((function(e,n){var r=t+"-"+n,i=e.duration||6,o=a===n,s=e.seen;l+=Ih({index:n,id:r,length:i,isSeen:s,isActive:o,type:e.type})})),c.querySelector(".ntv-stories__timers__wrapper").innerHTML=l,c.onClose=function(){};var u=c.querySelector(".ntv-stories__close"),d=c.querySelector(".ntv-stories__close img");function f(e){e.preventDefault(),e.stopImmediatePropagation(),c.onClose()}return u.addEventListener("touchend",f,!1),d.addEventListener("touchend",f,!1),u.addEventListener("click",f,!1),d.addEventListener("click",f,!1),c.onDurationEnd=function(){},c.querySelectorAll(".ntv-stories__timers b").forEach((function(e){e.addEventListener("animationend",(function(){c.onDurationEnd()}),!1)})),c}({advertiser:this.options.advertiser,advertiserLogo:this.options.advertiserLogo,sponsoredLabel:this.options.sponsoredLabel,link:this.options.ctaLink,closeIcon:this.options.closeIcon,currentItem:r,storyItems:t,video:i.videoElem}),this.storyViewer.appendChild(i),this.storyViewer.onClose=function(){e.close()},this.storyViewer.onDurationEnd=function(){e.nextItem(!1,i)},i.onSwipeLeft=function(){e.nextItem(!1,i)},i.onSwipeRight=function(){e.nextItem("previous",i)},i.onSwipeDown=function(){e.close()};var o,a,s,c,l,u,d,f=!1;i.onTouchStart=function(t){if("A"===t.target.nodeName)return!0;D.isiOS()&&t.preventDefault(),f=!1,e.storyViewer&&e.storyViewer.classList.add("paused"),o=setTimeout((function(){e.storyViewer.classList.add("longPress")}),600),a=setTimeout((function(){clearInterval(a),a=!1}),250),e.pauseVideoItem()},i.onTouchMove=function(e){f=!0},i.onTouchEnd=function(t,n,r){if("A"===t.target.nodeName)return!0;t.preventDefault(),o&&clearInterval(o);var s=!1;if(a&&(clearInterval(a),a=!1,!f))if(s=!0,r){var c=t.target;c.offsetWidth/2>t.clientX-c.getBoundingClientRect().left?e.nextItem("previous",i):e.nextItem(!1,i)}else n>D.getTopWindow().innerWidth/2?e.nextItem(!1,i):e.nextItem("previous",i);e.storyViewer&&(e.storyViewer.classList.remove("longPress"),e.storyViewer.classList.remove("paused"),s&&f||!e.data.isOpen||e.playVideoItem(e.storyViewer))},i.onUnmuteTouchEnd=function(t){var n,r;n=e.data.currentVideoElement,r=e.storyViewer,n.muted=!1,n.volume=1,n.removeAttribute("muted"),n.play(),n.paused&&(n.muted=!0,n.play()),r&&r.classList.remove("paused"),e.data.currentMuteIcon.style.opacity="0",e.data.hasBeenUnmuted=!0},this.storiesModalElement.slider.appendChild(this.storyViewer),this.storiesModalElement.slider.appendChild(ma((s={ctaLink:this.options.ctaLink,ctaLabel:this.options.ctaLabel},c=s.ctaLink,l=void 0===c?"":c,u=s.ctaLabel,"\n  ".concat((d=void 0===u?"Learn More":u)?'\n      <div class="ntv-stories__item-link">\n        <a\n          class="ntv-stories__item-link__wrapper"\n          href="'.concat(l,'" \n          rel="noopener" \n          target="_blank"\n        >\n          <div class="ntv-stories__item-link__tag">\n            ').concat(d,"\n          </div>\n        </a>\n      </div>"):"","\n"))))}},{key:"nextItem",value:function(e,t){var n=this;clearTimeout(Kh);var r=this.data.currentStory,i=this.data.currentItem,o=(this.data[r].stories[i],"previous"===e?-1:1);if(!this.storyViewer||1===this.storyViewer.touchMove)return!1;var a=i+o,s=this.storyViewer.querySelectorAll('[data-index="'.concat(a,'"]')),c=s[0],l=s[1];if(this.storyViewer&&c&&l){if("previous"===e)!function(e,t,n){var r=e-1;Sh("reset",e,t);var i="-".concat(100*r,"vw");n&&(n.style.transform="translate3d(".concat(i,",0,0)")),Sh("active",r,t)}(i,this.storyViewer,t);else{var u=function(e,t,n){var r=e+1;Sh("seen",e,t);var i="-".concat(100*r,"vw");return n&&(n.style.transform="translate3d(".concat(i,",0,0)")),Sh("active",r,t),r}(i,this.storyViewer,t),d=this.data[r].stories[u];d.metricsTracked[mh.gallery]||(this.sendTrackingData([mh.gallery],d),this.handleSlideTracked(u))}this.data.currentItem=i+o;var f=this.options.stories[this.data.currentItem];this.playVideoItem(this.storyViewer),this.updateElementsPerSlide(f),this.startSlideTimeTracking(f)}else Kh=setTimeout((function(){n.data.isOpen&&n.close(),clearTimeout(Kh)}),1e3*this.options.autoCloseTimeout)}},{key:"updateElementsPerSlide",value:function(e){this.setCtaData(e.ctaLabel||this.options.ctaLabel,this.composeCtaLink(this.options.ctaLink,e)),this.setAnchorSlideId(e.slideID)}},{key:"setAnchorSlideId",value:function(e){var t=this,n=new RegExp("(".concat(c.SLIDE_ID,"=)(\\d*)"));D.domQueryAll("a:not(".concat(".ntv-stories__item-link__wrapper",")"),this.storiesModalElement).forEach((function(r){t.data.appliedAnchorSlideIds?r.href=r.href.replace(n,(function(t,n){return"".concat(n).concat(e)})):r.href=r.href+="&".concat(c.SLIDE_ID,"=").concat(e)})),this.data.appliedAnchorSlideIds=!0}},{key:"sendTrackingData",value:function(e,t){var n=this,r=yh(this.options.baseTrackingUrl,e.join(),this.options.adID,this.options.adVersionPlacement);t.slideID&&(r+="&".concat(c.SLIDE_ID,"=").concat(t.slideID));var i="";e.forEach((function(e){n.options.thirdPartyTrackers[e]&&(i+=n.options.thirdPartyTrackers[e])})),xi(r,i,1),e.forEach((function(e){t.metricsTracked.hasOwnProperty(e)&&(t.metricsTracked[e]=!0)}))}},{key:"setupHeaderElements",value:function(){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document,t=e.createElement("meta");t.id="ntv-mobile-scale-tag",t.name="viewport",t.content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,viewport-fit=cover",e.getElementsByTagName("head")[0].appendChild(t)}(this.data.document),D.ntvAppendStylesheet(this.options.stylesId,this.options.stylesUrl,this.data.document)}},{key:"setupFocusHandler",value:function(){var e=this;D.onFocusEvents.push((function(){window.onFocus||e.data.isOpen&&e.close(),setTimeout((function(){for(var t=e.storyViewer.querySelectorAll("video"),n=0;n<t.length;n++)t[n].pause()}),100)}))}},{key:"injectStoryIconToAd",value:function(){var e=this;if("loading"!==this.data.document.readyState){var t=D.domQuery("."+this.options.adWrapperClass,this.data.document);kh(this.options.previewImage,t)}else this.data.document.addEventListener("DOMContentLoaded",(function(){var t=D.domQuery("."+e.options.adWrapperClass,e.data.document);kh(e.options.previewImage,t)}))}},{key:"setupVideoDurations",value:function(){for(var e=this.storyViewer.querySelectorAll('span[data-type="video"]'),t=this.storyViewer.querySelectorAll('div[data-type="video"]'),n=function(n){var r=t[n].getElementsByTagName("video");r.length>0&&r[0].addEventListener("loadedmetadata",(function(){!function(e,t){["animationDuration","webkitAnimationDuration","MSAnimationDuration","oAnimationDuration"].forEach((function(n){e[n]=t}))}(e[n].getElementsByTagName("b")[0].style,"".concat(r[0].duration,"s"))}))},r=0;r<t.length;r++)n(r)}},{key:"setupVideoTracking",value:function(){var e=this;this.options.stories.map((function(t,n){if("video"===t.type&&!t.metricsTracked[mh.videoEndActionType]){var r=D.domQuery("[data-video-id=".concat(t.id,"]"));r&&r.addEventListener("ended",(function(){e.sendTrackingData([mh.videoEndActionType],t)}))}}))}},{key:"getActiveItem",value:function(){return{timer:this.storyViewer.querySelector('span[data-index="'.concat(this.data.currentItem,'"].active')),storyElement:this.storyViewer.querySelector('div[data-index="'.concat(this.data.currentItem,'"].active'))}}},{key:"setCtaData",value:function(e,t){e&&(this.storiesModalElement.querySelector(".ntv-stories__item-link__tag").textContent=e),t&&this.storiesModalElement.querySelector(".ntv-stories__item-link__wrapper").setAttribute("href",t)}},{key:"composeCtaLink",value:function(e,t){return t.slideID&&(e+="&".concat(c.SLIDE_ID,"=").concat(t.slideID)),""!==t.ctaLink.trim()&&(e=D.removeQueryKeyValuePairs("ntv_r",e),e+="&".concat(c.REDIRECT,"=").concat(encodeURIComponent(t.ctaLink))),e}}])&&Gh(t.prototype,n),r&&Gh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jh(e){for(this.isNtvWrapper=!0,this.push=function(e){return e()};e.length>0;)try{var t=e.shift();"function"==typeof t&&t()}catch(e){}}function Zh(){window.ntv.cmd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.isNtvWrapper||(e=new Jh(e)),e}(window.ntv.cmd)}var $h="https://".concat(c.JDOMAIN,"/trk.gif?");function ev(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4,n=(new Date).getTime()-e;return isNaN(t)?n:Math.min(n,t)}function tv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;t.ntv=window.ntv||{},t.ntv.cmd=window.ntv.cmd||[],t.ntv.cmd.push((function(){var t="ntv_mat="+Object.keys(e).reduce((function(t,n,r){return t+"".concat(r>0?";":"").concat(n,"*").concat(e[n])}),"");ntv.Util.appendImage($h+t+ntv.Util.buildExperimentUrl(ntv.PostRelease.setting.experiment))}))}function nv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;t.ntv.dfpInitLoadFlag=!0,tv({[c.DFP_INIT_LOAD]:e},t)}function rv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;t.ntv.renderTimeFlag=!0,tv({[c.DFP_FIRST_RENDER]:e},t)}function iv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;n.ntv.trackFillFlag=!0,tv({[c.DFP_TOTAL_AVAILABLE]:e,[c.DFP_TOTAL_FILLED]:t},n)}function ov(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(!e.ntv.processDfpTracking&&ntv.PostRelease.setting.isEdge||"1*101"==ntv.PostRelease.setting.experiment){var t=e.performance.timing.navigationStart;if(e.googletag&&!e.ntv.dfpInitLoadFlag&&nv(ev(t)),e.googletag&&e.googletag.apiReady){e.ntv.processDfpTracking=!0;var n=googletag.pubads().getSlots().length,r=0,i={};e.googletag.pubads().addEventListener("slotRenderEnded",(function(o){if(e.ntv.renderTimeFlag||rv(ev(t)),!i[o.slot.getSlotElementId()]){var a={};i[o.slot.getSlotElementId()]=a,a.isRendered=!o.isEmpty,a.isRendered&&r++,n!=r||e.ntv.trackFillFlag||iv(n,n)}})),setTimeout((function(){e.ntv.trackFillFlag||iv(r,n)}),3e4)}else setTimeout(ov,100)}}var av=D.getTopWindow(),sv=window.Nativo||av.Nativo||{},cv=window,lv=function(e){e.processed=!0;var t=(ntv.MRAID?"https:":D.getProtocol()||D.getProtocol(av)||"https:")+"//"+D.getServerDomain()+"/display.js?",n=e.a?"prx_a="+e.a:e.c?"prx_c="+e.c:e.b?"ntv_b="+e.b:"",r=e.mode||0;e.doc=e.doc||cv.document,av.Nativo=av.Nativo||cv.Nativo,n+="&ntv_m="+r,n+=e.z?"&ntv_z="+e.z:"",e.au&&(n+="&ntv_au="+e.au,e.clk&&(sv.tpc["#"+e.au]=e.clk)),sv.pageURL?n+="&prx_url="+encodeURIComponent(sv.pageURL):3!=r&&(n+="&prx_url="+encodeURIComponent(av.location.href)),!e.a&&sv.atf.length>0&&(n+="&ntv_atf="+sv.atf.join()),e.pau&&(n+="&ntv_pau="+encodeURIComponent(e.pau)),e.pkv&&(n+="&ntv_pkv="+encodeURIComponent(e.pkv)),e.im&&(n+="&ntv_im="+encodeURIComponent(e.im)),e.w&&(n+="&ntv_dfpw="+encodeURIComponent(e.w)),e.h&&(n+="&ntv_dfph="+encodeURIComponent(e.h)),n+=D.attachFirstPartyCookieQS(dp.firstPartyCookie),n+="&rand="+1e9*Math.random(),Xu().then((function(r){D.appendScript(t+n+(r?"&".concat(c.US_PRIVACY,"=").concat(r):""),void 0,void 0,e.doc),be.performance.set("sendRequest")}))};ntv.MRAID||(sv.tpc=sv.tpc||{},sv.atf=sv.atf||[],sv.ads=sv.ads||[],sv.ads._push=sv.ads._push||sv.ads.push,sv.ads.push=function(e){return lv(e),this._push(e)});for(var uv=0;uv<sv.ads.length;uv++){var dv=sv.ads[uv];dv.processed||lv(dv)}var fv={},pv=function(e){e.data.adContentWidgetID&&fv[e.data.adContentWidgetID]&&(hv(e.data.adContentWidgetID,e.data.eventID),e.stopPropagation())},hv=function(e,t){if(e&&t){var n=fv[e],r=t,i=n.eventMap[r.toString()]||"";D.insertTracking(n.baseTrackingUrl+r,i,1)}};function vv(e){var t=JSON.parse(D.decryptUrl(e)),n=JSON.parse(t.data),r=n.adContentWidgetID;for(var i in t.injectionMode=t.injectionMode||0,fv[r]=t,n.inputs)n.inputs[i]=n.inputs[i].replace(/<\/script>/gi,"<\\/script>");var o="";2==t.injectionMode?o+="<script>ntv.Widget"+r+" = ntv.Widget"+r+" || {}; ntv.Widget"+r+".data="+JSON.stringify(n.inputs)+";ntv.Widget"+r+".data.adContentWidgetID="+n.adContentWidgetID+";ntv.Widget"+r+".trackEvent = function(id) { ntv.Widget.trackEvent(ntv.Widget"+r+".data.adContentWidgetID, id)};<\/script>":o+="<style>body{top:0px;left:0px;margin:0;}"+t.css+"</style><script>ntv.Widget = ntv.Widget || {}; ntv.Widget.data="+JSON.stringify(n.inputs)+";ntv.Widget.data.adContentWidgetID="+n.adContentWidgetID+";<\/script>",t.js.length>0&&(o+="<script>"+t.js+"<\/script>");var a="#ntvContentWidget"+r,s=D.domQuery(a);if(0==t.injectionMode||1==t.injectionMode){0==t.injectionMode&&s.sandbox.forEach(s.sandbox.remove);var c="<html><head>"+o+"</head><body>"+t.template+"</body>";s.contentWindow.postMessage(c,"https://s.ntv.io"),s.removeAttribute("onload"),window.addEventListener("message",pv,!0)}else 2==t.injectionMode&&(ntv.Widget=ntv.Widget||{},ntv.Widget.trackEvent=hv,ntv.Widget.receiveMessage=pv,ntv.query(a).append(o+t.template))}function mv(e,t){if(e)try{yv(e,t)}catch(n){e.addEventListener("readystatechange",(function n(){"interactive"!==e.readyState&&"complete"!==e.readyState||(e.removeEventListener("readystatechange",n),yv(e,t))}))}}function yv(e,t){var n=e.contentWindow.document,r=new gv(t);Object.keys(r).forEach((function(e){n.addEventListener(e,r[e],!1)})),checkForCrossdomainIframeClick({frame:e,callback:r.click.callback,once:!0})}function gv(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{allowMultipleClicks:!1},r=!1,i=function(t){r&&!n.allowMultipleClicks||(D.appendImage(e),r=!0,t&&t.currentTarget&&l(t.currentTarget))},o=function(){t=!1},a=function(){t=!0},s=function(n){if(!t){if(D.appendImage(e),!n||!n.currentTarget)return;l(n.currentTarget)}},c={click:i,touchstart:o,touchmove:a,touchend:s},l=function(e){Object.keys(c).forEach((function(t){e.removeEventListener(t,c[t])}))};return c}function bv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tv(r.key),r)}}function Ev(e,t){kv(e,t),t.add(e)}function Tv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Sv(e,t,n){kv(e,t),t.set(e,n)}function kv(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Pv(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,Iv(e,t,"get"))}function Av(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,Iv(e,t,"set"),n),n}function Iv(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}var Cv="ready",Ov="started",_v="completed",Rv="timedOut",xv=new WeakMap,Lv=new WeakMap,Dv=new WeakMap,Nv=new WeakMap,jv=new WeakMap,Vv=new WeakMap,Mv=new WeakSet,Uv=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4;bv(this,e),Ev(this,Mv),Sv(this,xv,{writable:!0,value:void 0}),Sv(this,Lv,{writable:!0,value:void 0}),Sv(this,Dv,{writable:!0,value:void 0}),Sv(this,Nv,{writable:!0,value:void 0}),Sv(this,jv,{writable:!0,value:void 0}),Sv(this,Vv,{writable:!0,value:void 0}),Av(this,Nv,t),Av(this,Vv,new oo),this.state=Cv,Object.defineProperty(this,"renderTime",{get(){return Pv(this,Dv)}})}var t,n,r;return t=e,(n=[{key:"start",value:function(){if(this.state===Cv)return Av(this,xv,Date.now()),Av(this,jv,setTimeout(function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,Mv,Fv).bind(this),Pv(this,Nv))),this.state=Ov,Pv(this,xv)}},{key:"complete",value:function(){if(this.state===Ov)return clearTimeout(Pv(this,jv)),Av(this,Lv,Date.now()),Av(this,Dv,Pv(this,Lv)-Pv(this,xv)),this.state=_v,Pv(this,Vv).publish(e.EVENT.COMPLETE),Pv(this,Dv)}},{key:"on",value:function(e,t){Pv(this,Vv).subscribe(e,t)}}])&&wv(t.prototype,n),r&&wv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Fv(){this.state!==_v&&(this.state=Rv,clearTimeout(Pv(this,jv)),Pv(this,Vv).publish(Uv.EVENT.TIMEOUT))}function Bv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wv(r.key),r)}}function Hv(e,t,n){return t&&Bv(e.prototype,t),n&&Bv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wv(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}!function(e,t,n){(t=Tv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Uv,"EVENT",{COMPLETE:"complete",TIMEOUT:"timeout"});var qv=Hv((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=t,this.tracking=n,this.renderStatus=new Uv,this.handlers={},this.iframeElement=void 0})),zv="https://".concat(c.SCRIPTS_DOMAIN),Gv="".concat(zv,"/safeFrame/").concat("1-1-1"),Yv="".concat(Gv,"/js/host.js"),Qv="".concat(Gv,"/html/safeFrame.html");function Kv(e){var t=D.getTopWindow(),n=t.document,r=e.id,i=e.target,o=e.head,a=e.body,s=e.width,c=e.height,l=e.ntvSafeFrame;if(i&&D.isElement(i)&&null!=o&&D.is("s",o)&&null!=a&&D.is("s",a)){var u={scriptInjected:!1,bootloaded:!1,configured:!1,rendered:!1};return function(){var e=Date.now();function r(i){if(Date.now()-e>=3e5&&i(!1),!(void 0!==t.$sf&&null!=t.$sf)||!u.scriptInjected){var o;if(null==t||null===(o=t.$sf)||void 0===o?void 0:o.host)return void i(!0);var a=n.getElementById("ntv-safeframe-host");return a||(a=D.appendScript(Yv,void 0,"ntv-safeframe-host",D.getTopWindow().document)),a.addEventListener("load",(function(){i(!0)})),void(u.scriptInjected=!0)}setTimeout(r,50)}return new Promise((function(e,t){r((function(n){n?e():t()}))}))}().then((function(){u.bootloaded=!0,t.$sf.host.Config()||new t.$sf.host.Config({renderFile:Qv,positions:{},onEndPosRender:Xv}),u.configured=!0;var e=d(),n=e.id;return t.$sf.host.render(e),l.renderStatus.start(),new Promise((function(e,t){l.renderStatus.on(Uv.EVENT.COMPLETE,(function(){var t=Jv(n);e(t)})),l.renderStatus.on(Uv.EVENT.TIMEOUT,(function(){t(new Error("IAB SafeFrame Render Timeout"))}))}))})).catch((function(e){return e instanceof Error||(e=new Error("IAB SafeFrame Bootload Failed")),Promise.reject(e)}))}function d(){var e,n={w:s||i.getAttribute("width"),h:c||i.getAttribute("height")},l=D.breakOutIframe()||i,u=document.createElement("div");!function(e,t,n){if(!e||!D.isElement(e))return;t&&(e.style.width=t,e.setAttribute("width",t));n&&(e.style.height=n,e.setAttribute("height",n))}(u,n.w,n.h),u.id=r,l!==i&&i.replaceWith(u),l.style.display="none",l.parentNode.insertBefore(u,l),n.id=r,n.dest=r,n.css=(e=o)&&D.is("s",e)?e.replaceAll("<style>","").replaceAll("</style>",""):"";var d=t.$sf.host,f={id:r},p={core:dp.id},h=new d.PosMeta(f,"ntv",p),v=new d.PosConfig(n);return new d.Position(v,a,h)}}function Xv(e){var t=Jv(e);t.wrapper.classList.contains("iab_sf")&&(t.wrapper.style.display="inline-block");var n=ee("ntvSafeFrames");if(n.has(e)){var r=n.get(e);r.renderStatus.complete(),r.iframeElement=t.frame}}function Jv(e){var t=D.getTopWindow(),n=t.document,r=t.$sf,i=r.host,o=r.lib,a=i.get(e),s=o.lang.ParamHash(a.meta,"&","=",!1,!0),c=+s.non_shared.ntv.core,l=n.querySelector('[id*="'.concat(e,'"]')),u=l.querySelector("iframe");return{posData:a,meta:s,coreId:c,wrapper:l,frame:u}}function Zv(e){var t=ee("ntvSafeFrames");if(t.has(e))return t.get(e)}var $v={renderComplete:function(e){var t=Zv(e);t&&function(e){var t=e.id,n=e.tracking;if(null==t||null==n)return;var r=n.viewableImpressions;if(!function(e){return null!=e&&(!!Array.isArray(e)&&0!=e.length)}(r))return;r.forEach((function(e){e.selector="#".concat(t);var n=new ph(e);dp[n.id]=n})),dp.checkIsAdVisible()}(t)},recordStandardImpression:function(e){var t=Zv(e);t&&function(e){var t=e.tracking;if(null==t)return;var n=t.standardImpression;if(!function(e){return null!=e&&("object"==typeof e&&0!=Object.keys(e).length)}(n))return;hh(n)}(t)}},em=["0","1"];function tm(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nm(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return rm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rm(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function rm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function im(e){var t,n="",r=nm(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n+='window.ntv.iframe["'.concat(i,'"] = postMessageCall.bind(this, "').concat(i,'");\n')}}catch(e){r.e(e)}finally{r.f()}return n}var om=["sfgate.com","sporcle.com"];var am=function(){if(D.resolveIframeType()===c.IFRAME_TYPES.SAFE_NO_API)return!1;var e=window.location.hostname.replace("www.","");return-1!==om.indexOf(e)};function sm(e){e.safe=!0,cm(e)}function cm(e){var t=e.selector,n=e.width,r=e.height,i=e.content,o=e.tracking,a=e.safe;if(t&&i){var s;try{(s=D.domQuery(t,document))||(s=D.domQuery(t,D.getTopWindow().document))}catch(e){D.postError("createIframe selector: ".concat(t,", causing breaking error"))}if(s)return um(s,function(e){try{return D.decryptUrl(e)}catch(t){return e}}(i),{width:n,height:r,tracking:o,safe:a})}}function lm(e){var t=e.target,n=e.head,r=e.body,i=e.tracking,o=e.width,a=e.height,s=i.clickTrackerUrl,c=D.getTopWindow(),l="ntv-safe-"+D.getRandomInt(),u="<ntv-safe-creative>\n".concat(r,"\n").concat(function(e){return'<ntv-div style="display: none">\n    '.concat(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=D.getTopWindow(),n=im(e);return'<script>\n    (function() {\n      function postMessageCall(type) {\n        const payload = { type: "'.concat("ntv-iframe-message",'", args: arguments };\n        window.top.postMessage(JSON.stringify(payload), "').concat(t.location.origin,'");\n      };\n\n      if(window.ntv === undefined) {\n        window.ntv = {};\n        window.ntv.iframe = {}\n        ').concat(n,"\n      }\n    })();\n  <\/script>")}(["renderComplete","recordStandardImpression","click"]),"\n    ").concat(function(e){return"<script>\n    ".concat(dm("renderComplete",e),";\n  <\/script>")}(e),"\n    ").concat(function(e){return"<script>\n    ".concat(dm("recordStandardImpression",e),"\n  <\/script>")}(e),"\n    ").concat(function(e){return'<script>\n    document.body.addEventListener("click", () => {\n      '.concat(dm("click",e),"\n    });\n  <\/script>")}(e),"\n  </ntv-div>")}(l),"\n</ntv-safe-creative>"),d=ee("ntvSafeFrames");c.ntv.PostRelease.hasSafeFrameListener||(c.addEventListener("message",(function(e){if(e.origin==zv){var t;try{t=JSON.parse(e.data)}catch(e){return}var n=t,r=n.type,i=n.args;if("ntv-iframe-message"===r){var o=i[0],a=i[1],s=tm(i,em),c=Zv(a).handlers[o];if(c){var l=Object.values(s);c.apply(void 0,[a].concat(l))}}}})),c.ntv.PostRelease.hasSafeFrameListener=!0);var f=new qv(l,i);return f.handlers=Object.assign($v,new gv(s)),d.set(l,f),Kv({id:l,target:t,head:n,body:u,width:o,height:a,ntvSafeFrame:f}).then((function(e){var t;i.viewableImpressions||(t=e,dp.viewableImpressionTrackers.forEach((function(e){e.elements?e.elements.push(t.wrapper):e.elements=[t.wrapper]})),dp.checkIsAdVisible())}))}function um(e,t,n){if(e&&t&&D.isElement(e)){var r,i=n.tracking,o=n.width,a=n.height,s=n.safe,c={target:e,head:"<style>body{-ms-overflow-style: none;}body,div,span,a,img,video,p,li,ul,em,b,i{padding: 0px 0px 0px 0px !important;margin: 0px 0px 0px 0px !important;}body,div,a,ul,li,p{}</style>",body:t,tracking:i,width:o,height:a};if(void 0===s||s)r=lm(c);else{if("IFRAME"!==c.target.nodeName){var l=function(e,t,n){var r=document.createElement("iframe");return r.setAttribute("width",t),r.setAttribute("height",n),r.setAttribute("style","border: none; outline: none;"),e.appendChild(r),r}(c.target,o,a);c.target=l}r=function(e){var t=e.target,n=e.head,r=e.body,i=e.tracking.clickTrackerUrl,o="ntv-friendly-"+D.getRandomInt();try{if(t.nodeName)var a=ntv.Util.writeIframe(t,"",n,r)}catch(t){return Promise.reject({config:e})}t.setAttribute("data-enc-script",""),ntv.contentModal&&t.setAttribute("data-ntv-script","");var s=a.defaultView.frameElement;return s.id=o,mv(s,i),Promise.resolve({frameDoc:a,config:e})}(c)}return r.catch((function(e){D.postError(e,!0)})),r}}function dm(e,t,n){return n?"window.ntv.iframe.".concat(e,'("').concat(t,'",').concat(JSON.stringify(n),")"):"window.ntv.iframe.".concat(e,'("').concat(t,'")')}function fm(e,t){if(e){var n=function(e){if(e&&0!==e.length)return e;if(!e.selector)return;var t=D.getTopWindow().document,n=ntv.query(e.selector,t);if(0!==n.length)return n;var r=ntv.win.document.querySelector(e.selector);return ntv.query(r)}(e);if(n&&0!==n.length){var r=D.toDomElement(n);if(r)if(r.getAttribute("data-enc-script")){var i=D.decryptUrl(r.getAttribute("data-enc-script"));um(r,i,{tracking:{clickTrackerUrl:t},safe:am()})}else{if(r.getAttribute("data-ntv-script")&&ntv.contentModal){var o=decodeURIComponent(r.getAttribute("data-ntv-script"));um(r,o,{tracking:{clickTrackerUrl:t},safe:!0})}mv(e,t)}}else D.postError(new Error("bindClickIframe() target iframe not found. iframe:".concat(JSON.stringify(e),", clickTrackerUrl:").concat(JSON.stringify(t))))}}function pm(){var e=ntv.query;function t(t){t.setAttribute("sandbox","allow-same-origin allow-popups allow-popups-to-escape-sandbox");var n=t.contentWindow.document,r=e(n.body),i=function e(t){for(var n=0;n<t.children.length;){if(/img|body|div|iframe/.test(t.children[n].tagName.toLowerCase())&&0!=t.children[n].getBoundingClientRect().width)return t.children[n];if(/iframe/.test(t.children[n].tagName.toLowerCase())&&void 0!==window.getComputedStyle&&""==window.getComputedStyle(t.children[n]).width)return e(t.children[n].contentWindow.document.body);if(/iframe/.test(t.children[n].tagName.toLowerCase())&&void 0!==window.getComputedStyle&&""!=window.getComputedStyle(t.children[n]).width)return t.children[n];if(/iframe/.test(t.children[n].tagName.toLowerCase())&&(void 0===t.children[n].style.width||""==t.children[n].style.width))return e(t.children[n].contentWindow.document.body);if(t.children[n]instanceof HTMLElement&&/div|span|ul/.test(t.children[n].tagName.toLowerCase())&&t.children[n].children.length>0)return e(t.children[n]);if(t.children[n]instanceof HTMLElement&&/img|body|div/.test(t.children[n].tagName.toLowerCase()))return e(t.children[n]);n++}return t.children[n]}(r[0]),o=new RegExp("complete");t.style.display="block",0!=r.length&&(null==i&&(i=e(n.body).children()[0]),r[0].scrollHeight>1&&o.test(n.readyState)?(t.style.height=r[0].scrollHeight+"px",t.style.width=r[0].scrollWidth+"px"):(t.style.width=i.scrollWidth?i.scrollWidth+"px":i.style.width,t.style.height=i.scrollHeight?i.scrollHeight+"px":i.style.height,function e(t){if(t.checkSizeTimeout&&clearTimeout(t.checkSizeTimeout),"iframe"!=t.tagName.toLowerCase()||t.contentWindow){var n=ntv.query(t.contentWindow.document),r=n.width(),i=n.height();if(r>1&&i>1&&r!==i)return t.style.width=r+"px",void(t.style.height=i+"px");Date.now()-t.renderingStart>6e3||(t.checkSizeTimeout=setTimeout((function(){e(t)}),500))}}(t)),!ntv.Util.is("u",i)&&i.getBoundingClientRect().height&&ntv.query(r).find("iframe").length&&i.getBoundingClientRect().height>t.style.height.replace("px","")&&i.getBoundingClientRect().height&&(t.style.height=ntv.Util.is("u",window.getComputedStyle)||isNaN(window.getComputedStyle(i).height)?i.style.height?i.style.height+"px":i.getBoundingClientRect().height+"px":window.getComputedStyle(i).height+"px"))}e.each(e(".ntv-adunit"),(function(n,r){var i,o;r.hasAttribute("ntv-companion-processed")||(r.checkSizeTimeout,r.renderingStart=Date.now(),r.setAttribute("scrolling","no"),void 0===r.rendered&&(!function(t){var n;t.getAttribute("data-enc-script")?n=ntv.Util.decryptUrl(t.getAttribute("data-enc-script")):t.getAttribute("data-ntv-script")&&(n=decodeURIComponent(t.getAttribute("data-ntv-script")),t.contentWindow.ntv=ntv),ntv.Util.writeIframe(e(t),"","<style>body{-ms-overflow-style: none;}body,div,span,a,img,video,p,li,ul,em,b,i{padding: 0px 0px 0px 0px !important;margin: 0px 0px 0px 0px !important;}body,div,a,ul,li,p{}</style>",n)}(r),r.rendered=!0),r.setAttribute("sandbox","allow-same-origin"),t(r),r.addEventListener("load",(function(){t(r)})),(o=(i=r).attributes["ntv-click-tracker"]?i.attributes["ntv-click-tracker"].value:void 0)&&fm(i,o),r.setAttribute("ntv-companion-processed",!0))}))}function hm(e){ntv.Util.copyProperties(e,this),e.slideshow.slides.forEach((function(e){ntv.Util.keysToLowercase(e)}));var t={metadata:"ntv-gallery-metadata",footer:"ntv-gallery-footer",headline:"ntv-gallery-headline",currentSlide:"ntv-gallery-current-slide",totalSlides:"ntv-gallery-total-slides",description:"ntv-gallery-description",date:"ntv-gallery-date",photoCredit:"ntv-gallery-photo-credit",detailInfo:"ntv-gallery-detailinfo"},n={string:!0,number:!0},r=void 0===n[typeof this.slideshowID]?"":"ntv-gallery-".concat(this.slideshowID),i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&t[e]?a(t[e],n," "):"".concat(n).concat(r)},o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&t[e]?a(t[e],n):"".concat(n).concat(r)},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return""===r?"".concat(t).concat(e):"".concat(t).concat(r).concat(n).concat(t).concat(e)},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return""===r?"".concat(t).concat(e):"".concat(t).concat(e).concat(n).concat(t).concat(r)};ntv.Util.adBlocker&&ntv.query("iframe[id^='ntv']").each((function(e,t){t.id=t.id.replace("ntv","prx")}));var c,l=this,u=ntv.query,d=ntv.CONSTS,f=ntv.Util.getProtocol(),p=ntv.Util.adBlockerValidation(f+"//s.ntv.io/css/gallery-footer.css"),h="iframe#"+"".concat(ntv.Util.getPrefix(),"-slideshow").concat(void 0!==n[typeof this.slideshowID]?"-".concat(this.slideshowID):""),v=u(this.outerCssClass).size()>0?u(this.outerCssClass):document,m=u(v).find(h);if(0!==m.length&&!m.attr("ntv-slideshow-initialized")){m.attr("ntv-slideshow-initialized",!0),this.galleryJS=ntv.Util.adBlockerValidation(f+"//s.ntv.io/js/gallery.min.js"),this.galleryCss=ntv.Util.adBlockerValidation(f+"//s.ntv.io/css/gallery.css"),this.thumbnailOptions=k(l.secondarySlideParams),this.galleryOptions=k(l.optionalParams);this.init=function(){for(var e=0;e<l.slideshow.slides.length;e++){var t=l.slideshow.slides[e];t.headline&&(l.showHeadline=!0),t.description&&(l.showDesc=!0),t.date&&(l.showDate=!0),t.photoCredit&&(l.showCredit=!0)}if(l.useLegacyFooter){var n=ntv.Util.getElementDimensions(m);m.replaceWith('<div id="'.concat(s("gallery-wrapper","","-"),'">')+m.prop("outerHTML")+'<div class="'.concat(i("footer"),'">')+function(e){return'\n      <table style="width: 100%"><tbody><tr>\n      <td class="'.concat(i("date"),'"></td>\n      <td style="text-align: right" class="').concat(i("photoCredit"),'"></td>\n    </tr></tbody><tbody><tr>\n        <td class="').concat(i("headline"),'"></td>\n        <td style="text-align: right" class="').concat(i("currentSlide"),'">\n        <span class="').concat(i("currentSlide"),'"></span> / <span class="').concat(i("totalSlides"),'"></span></td>\n      </tr></tbody></table>\n      <p class="').concat(i("description"),'"></p>\n      <table class="').concat(i("detailInfo"),'" ').concat(e.showDate||e.showCredit?"":'style="display: none;"',"></table>\n      ")}(l)+"</div></div>"),m=u(h,v),ntv.Util.setElementDimensions(m,n);m.width();u("#".concat(s("gallery-wrapper","","-")),v).css("margin-left",m[0].style.marginLeft).css("margin-right",m[0].style.marginRight).css("text-align","center"),m.css("width","100%"),m.css("display","inline-block"),c=u("".concat(o("footer",".")),v),ntv.Util.ntvAppendStylesheet("ntv-gallery",p),S()}else D.retryQuery(u,"".concat(o("metadata",".")),v,50,2e3).then((function(e){c=e})).finally((function(){S()}))},ntv.Util.runWithFirefoxIframeProtection(m,(function(){l.init(),bp(m[0],l.baseTrackingUrl,l.adVersionPlacement)}))}function y(e,t){var n=l.baseTrackingUrl+e+"&"+d.AVP+"="+l.adVersionPlacement+ntv.Util.setURLCache();return t&&(n+="&"+d.REDIRECT+"="+t),n}function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=D.hasWebProtocol(e.image)?e.image:location.protocol+e.image,r="";if(e.clickUrl){var i=ntv.Util.isiOS()?",'location=no'":"";r="onclick=\"window.open('".concat(y(4,e.clickUrl),"','_blank'").concat(i,');"')}var o=t?'data-splide-lazy="'.concat(n,'"'):'src="'.concat(n,'"');return'\n      <li class="'.concat("splide__slide",'" style="').concat(""!==r?"cursor: pointer;":"",'" ').concat(r,'>\n        <img class="ntv-image" ').concat(o,"></img> \n      </li>\n\n      ")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=l.thumbnailOptions,r=n.width,i=void 0===r?100:r,o=n.height,a=void 0===o?60:o,s=D.applyImageResizer(e.image,null,i,a);s=D.applyProtocolToUrl(s);var c=t?'data-splide-lazy="'.concat(s,'"'):'src="'.concat(s,'"');return'\n      <li class="'.concat("splide__slide",'">\n        <img ').concat(c,"></img> \n      </li>\n\n      ")}function w(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="",i=0;i<e.length;i++){var o=e[i];o.enabled&&(r+=n?b(o,!!l.thumbnailOptions.lazyLoad):g(o,!!l.galleryOptions.lazyLoad))}var a=t?'id="'.concat(t,'"'):"";return"<div ".concat(a,' class="').concat("splide",'"><div class="').concat("splide__track",'"><ul class="').concat("splide__list",'">').concat(r,"</ul></div></div>")}function E(e,t){return ntv.query(t,e).andSelf().filter(t)}function T(){var e=ntv.Util.getElementDimensions(m);ntv.Util.setElementDimensions(m,e,m.parent().width())}function S(){m.attr("frameBorder",0).attr("scrolling","no").attr("border","1px solid #000");var e=m.contents()[0]||m[0].contentWindow.document;e.open();var t='<link rel="stylesheet" type="text/css" href="'.concat(l.galleryCss,'"/>\n       <style>\n        body {\n          margin: 0;\n          padding: 0;\n        }\n       </style>\n      ');l.customCss&&(t+="<style>"+l.customCss+"</style>");var n=w(l.slideshow.slides,"ntv-gallery-main");l.secondarySlideParams&&(n+=w(l.slideshow.slides,"ntv-gallery-thumbnail",!0)),e.write('<html style="overflow: hidden"><head>'.concat(t,"</head><body>").concat(n,"</body></html>")),e.close();var r=e.defaultView||e.parentWindow;ntv.Util.appendScript(l.galleryJS,(function(){var e=ntv.MediaExtra.initializeGallery("#ntv-gallery-main",l.galleryOptions,"#ntv-gallery-thumbnail",l.thumbnailOptions);ntv.MediaExtra.onSlideChange(e,P,l),u(r).bind("resize",T),function(e){P(e,!0),T()}(e)}),"ntv-gallery",e)}function k(e){if(e)try{return JSON.parse(e)}catch(e){}}function P(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.index,r=l.slideshow.slides[n];if(c&&I(n,r),ntv.Util.insertTracking(y(mh.gallery),l.thirdPartyTracking,1),t&&l.refreshCompanionAssets){var i=ntv.PostRelease.articleCache.get(l.adVersionPlacement);if(u(".ntv-companion").remove(),A(i))for(var o=0;o<i.articleTemplate.fragments.length;o++){var a=i.articleTemplate.fragments[o];if(new RegExp("\\bTOP\\b|\\bRIGHTRAIL\\b|\\bBOTTOMb\\b").test(a.Type)){if(1==a.Mode&&(a.InjectNode=ntv.query(a.Selector).first()),3==a.Mode&&"object"==typeof a.RenderHtml&&void 0!==a.RenderHtml.length&&a.RenderHtml.length>0){var s="",d=0;for(a.RenderHtml.length;d<a.RenderHtml.length;d++)s+=void 0!==a.RenderHtml[d]&&a.RenderHtml[d]instanceof HTMLElement?a.RenderHtml[d].outerHTML:a.RenderHtml[d].data;a.RenderHtml=s}ntv.PostRelease.InsertAd(a)}}}if("function"==typeof onNativoSlideChange)try{onNativoSlideChange()}catch(e){window.console&&window.console.log&&window.console.log(e.message)}}function A(e){var t,n;return!(null===(t=adResponse)||void 0===t||null===(n=t.articleTemplate)||void 0===n||!n.fragments)}function I(e,t){l.showHeadline&&E(c,"".concat(o("headline","."))).html(t.headline),E(c,"".concat(o("currentSlide","."))).html(e+1),E(c,"".concat(o("totalSlides","."))).html(l.slideshow.slides.length),l.showDesc&&E(c,"".concat(o("description","."))).html(t.description).children(":not([style*=text-align])").each((function(e,t){t.style.textAlign="left"})),l.showDate||l.showCredit?(l.showDate&&E(c,"".concat(o("date","."))).html(t.date),l.showCredit&&E(c,"".concat(o("photoCredit","."))).html(t.photoCredit)):E(c,"".concat(o("detailInfo","."))).css("display","none")}}function vm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mm(r.key),r)}}function mm(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function ym(e){return function(e){if(Array.isArray(e))return gm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gm(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){!function(e,t){t.Manager=function(){var n=Cd.Types,r=D.runWithFirefoxIframeProtection;function i(){var t=this.playerType==e.CONSTS.NATIVO_PLAYER||this.playerType==e.CONSTS.VAST_PLAYER,n=this.playerType==e.CONSTS.YOUTUBE_PLAYER;this.state={firstClick:!1,firstPauseIgnored:!1,firstPauseButtonClick:null,isAutoPlay:!!this.autoPlayParams,isPaused:null,isPlaying:null,isPreRollPaused:null,isPreRollPlaying:null,isStarted:null,isEnded:null,isMuted:null,isFullScreen:null,isVideoInView:null,videoPlaying:null,vastAsMainSource:this.vastAsMainSource,canPlayInline:this.renderingParams.mobile&&e.Util.is("b",document.createElement("video").playsInline),isPreRoll:void 0!==this.vastUrl&&this.vastUrl.length>0&&!this.vastAsMainSource,prerollPlaying:null,mainContentPlaying:null,currentPreRollAdFetchState:null,ignoreResumeForMoat:null,preRollUnMuteTrackedOnMainContent:null,previousVolumeLevel:null,unMuteOnReplay:null,resume_pause_check_UserClickedOnPlayer:null,fullscreenButtonClickedWhileMuted:null,preloadingVastState:null,preloadVastStateBeginTimestamp:null,preloadVastStateEndTimestamp:null,returnedMetricValue:null,firstClickOnAutoPlayVideo:null,autoPlayTracker:null,pauseButtonFirstClicked:null,userInteracted:null,onAutoPlayerUserInteraction:null,minViewableArea:.5,clickedBeforeRendering:null,NativoPlayer:t,YouTubePlayer:n,dontShowOverlay:null,ignoredFirstPaused:null,ignoredFirstPause:null,ignoreFistPlay:null,ignoreFirstClick:!0,ignoreFirstResume:!0,autoPlayCheck:!1,autoPlayOn:!1,defaultVolume:0,autoPlayStopWatch:null,initializedModules:[],preRollFetchStatus:null,videoRenderingInitialized:!1,windowScrollHandler:null,renderVideoDelayOffset:800,currentTime:null,duration:null,viewableImpressionFired:!1,isDFP:this.isDFP?this.isDFP:!!this.renderingParams.isDFP&&this.renderingParams.isDFP,IFU:{showHiddenWrappers:this.renderingParams.autoplay&&this.renderingParams.article,isExpandableTogglable:!!this.autoPlayParams,useIframeId:this.renderingParams.autoplay&&this.renderingParams.article&&this.NativoPlayer},Skin:{useIframeId:this.NativoPlayer&&this.renderingParams.article,permanentlyShowControls:1==this.renderingParams.article,isNativoPlayer:t,isYouTubePlayer:n,showPreviewImageAtEnd:t},Player:{previousPrerollVolume:null},MRAID:{firstClicked:!1}},Object.seal(this.state)}function a(t){this.stopWatch.reset(),function(t){if(!t.adID||0===t.adID)return;if(t.trackTimeOnContent){var n=PostRelease.ampMode?e.Util.getTopWindow():dp.topWindow;t.tos_w_hidden=(new e.Tracking.Time).ntvStopWatch().ntvTimeOnContentStopWatch(t,34).addStopWatchEventHandlers({node:PostRelease.ampMode?n:n.document,type:"visibilitychange",handler:function(){this.preventResume=n.document.hidden,n.document.hidden&&this.stop(),!n.document.hidden&&this.parent.state.isPlaying&&this.resume()}})}}(this),this.player=D.is("o",t.data)?t.data:null;var n=this.parameters;n.clickedBeforeRendering=this.state.clickedBeforeRendering,n.renderingParams.IFU=this.state.IFU,n.renderingParams.Skin=this.state.Skin,n.renderingParams.Player=this.state.Player,this.privateEvent.publish(e.Events.Types.Modules.EXECUTE,n)}function s(){var e=void 0;switch(this.playerType){case c.YOUTUBE_PLAYER:e=this.player.element;break;case c.VAST_PLAYER:case c.NATIVO_PLAYER:e=this.player.el_||this.player.L}var t,n={"[video_width]":e.clientWidth,"[video_height]":e.clientHeight},r=this.tracker.videoTracking.map;Object.keys(this.tracker.videoTracking.map).forEach((function(e){(t=r[e]).hasOwnProperty("third")&&(t.third=D.insertMacrosIntoString(t.third,n))}))}function l(e){e.privateEvent.subscribe(n.Player.Publish.General.PLAYER_READY,(function(t){a.call(e,t),s.call(e,t)}))}function u(t){!function(t){t.iframe=t.iframe.length>0?t.iframe:prdom.query("iframe#"+e.Util.getVideoSelectorName()+"Iframe"+t.adID),t.renderingParams.article&&!isNaN(t.iframeIndex)&&t.iframe[t.iframeIndex]&&(t.iframe=e.query(t.iframe[t.iframeIndex]))}(t),t.iframeDoc=e.Util.writeIframe(t.iframe,'style="overflow: hidden"',t.iframeHead+"<style>.VPAIDContainer iframe{display:none !important;}</style>",t.iframeBody),t.iframe.attr("scrolling","no"),t.iframeContent=e.query(t.iframeDoc),t.iframeBodyElement=t.iframeContent.find("body")}function d(t){var n=t||this;(function(t){var n=t||this,r=e.query(n.iframe.contents()[0]||n.iframe[0].contentWindow.document).find("body");return 0==e.query(r).length||0==e.query(r).children().length})(n)&&m(n)}function f(e){var t=e.parameters;if(t.isPreRoll=e.state.isPreRoll,t.isAutoPlay=e.state.isAutoPlay,t.iframeContent=e.iframeContent,t.iframe=e.iframe,t.iframeBodyElement=e.iframeBodyElement,t.isShadow=!!e.isShadow,t.inDesignBlock=null!=e.designBlock,e.state.videoRenderingInitialized=!0,e.privateEvent.publish(n.Player.Subscribe.RENDER_VIDEO_PLAYER,t),t.renderingParams.autoplay){var r=t.iframe[0].contentDocument.body.querySelector("video");r&&(r.setAttribute("playsinline",""),r.setAttribute("muted",""))}}function p(e){dp.internalPubSub.unsubscribe(o,e.state.windowScrollHandler)}function h(e){e.state.windowScrollHandler=v.bind(e),dp.internalPubSub.subscribe(o,e.state.windowScrollHandler)}function v(e){!this.state.videoRenderingInitialized&&D.getElementViewability(this.iframe[0],e,this.state.renderVideoDelayOffset).visible?(f(this),p(this)):this.state.videoRenderingInitialized&&p(this)}function m(e){var t=e||this;try{u(t),function(e){D.getElementViewability(e.iframe[0],{target:window},e.state.renderVideoDelayOffset).visible&&!e.state.videoRenderingInitialized?f(e):h(e)}(t)}catch(e){setTimeout(m,100,t)}}function y(t){var n=t||this;!function(t){var n=t||this;n.doc=e.query(e.Util.getTopWindow().document).find("."+n.renderingParams.outerCssClass),n.iframe=1==n.renderingParams.article?n.doc.find("iframe[id='"+n.renderingParams.iframeId+"']"):n.doc.find("iframe[id='"+e.Util.getVideoSelectorName()+"Iframe"+n.adID+"']")}(n),l(n),r(n.iframe,m.bind(n),d.bind(n))}function g(t){var n=t||this;l(n),function(t){var n,r=D.toDomElement(t.rootNode);if(!r)return;var i=document.createElement("ntv-shadow-video"),o=i.attachShadow({mode:"open"}),a=document.createElement("div");b.forEach((function(e){r.hasAttribute(e)&&a.setAttribute(e,r.getAttribute(e))})),(n=a.classList).add.apply(n,ym(r.classList.values())),o.appendChild(a);var s=document.createRange().createContextualFragment(t.iframeBody);a.insertAdjacentHTML("beforeend",t.iframeHead),a.append(s),r.replaceWith(i),t.isShadow=!0,t.iframe=e.query(o.firstChild),t.iframeContent=e.query(a),t.iframeBodyElement=t.iframeContent}(n),f(n)}var b=["width","height"];return function(){function r(n,o,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.id=n,D.copyProperties(o,this),this.parameters=o,i.call(this),this.createPubSubs(),this.setupBusinessLogic(t.Logic.Business),this.registerDependencies(a),this.stopWatch=(new e.Tracking.Time).ntvStopWatch(),this.tracker=new e.Tracking.TrackingUrl(this,this),this.designBlock=D.getDesignBlock(this.rootNode),this.setupVideoByType()}var o,a,s;return o=r,(a=[{key:"setupVideoByType",value:function(){var e,t=null===(e=this.rootNode)||void 0===e?void 0:e.tagName;t&&"NTV-VIDEO"===t?g(this):y(this)}},{key:"registerDependencies",value:function(e){var t=this;(e instanceof Array||Array.isArray(e))&&e.forEach((function(e){"function"==typeof e&&e(t.privateEvent)}))}},{key:"registerSubscription",value:function(e,t){this.privateEvent.subscribe(e,t)}},{key:"setupBusinessLogic",value:function(e){var t=this;e.forEach((function(e){!function(e,t){var n=e;e.registerSubscription(t.event,function(e,n){if(function(e,t,n){if(n.handlers)for(var r=0;r<n.handlers.length&&!n.handlers[r](e,t,n);r++);}(this,e,t),"a"==e.tagName&&e.target.getAttribute&&(null==e.target.getAttribute("href")||!e.target.getAttribute("href")||"#"==e.target.getAttribute("href"))){if("function"!=typeof e.preventDefault)return!1;e.preventDefault()}}.bind(n))}(t,e)}))}},{key:"createPubSubs",value:function(){this.publicEvent=e.Events.PubSub,this.privateEvent=e.Events.SecurePubSub()}},{key:"executePlayerCommand",value:function(e,t){return this.player?this.executePlayerCommand=function(e,t){if(!D.is("u",this.player[e])){var n=this.player[e](t);return n||!isNaN(n)&&0==n?n:void 0}}:this.executePlayerCommand=function(e,t){this.privateEvent.publish(n.Player.Subscribe[e.toUpperCase()],t)},this.executePlayerCommand(e,t)}},{key:"canShowRenderingOverlays",value:function(){return!this.state.autoPlayTracker||this.state.pauseButtonFirstClicked||this.state.userInteracted}}])&&vm(o.prototype,a),s&&vm(o,s),Object.defineProperty(o,"prototype",{writable:!1}),r}()}()}(e,e.Video||(e.Video={}))}(ntv||(ntv={}));var bm=1,wm=3;function Em(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tm(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sm(e){return function(e){if(Array.isArray(e))return km(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return km(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return km(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function km(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){!function(e,t){!function(e,t){t.Behavior=function(){var t=Cd.Types,n=Cd.Data,r=e.query;function i(){if(this.lastIntersection&&!(this.autoPlayParams.onOutOfScreen===wm&&this.state.viewableImpressionFired||this.state.firstPauseButtonClick&&!this.state.firstClick&&this.player.paused())){var e=this.lastIntersection.intersectionRatio;e>=this.state.minViewableArea&&D.isOnFocus()?(this.state.isVideoInView=!0,this.state.firstClick||!this.state.autoPlayOn||this.state.isPlaying||f.play(this,null,!0),this.state.autoPlayStopWatch.resume(),this.state.isVideoInView=!0):this.state.autoPlayStopWatch.reset(),!(e<=.5)&&D.isOnFocus()||(this.state.autoPlayStopWatch.eventFired=!1,(this.state.isPlaying||this.player.playing)&&(this.state.isVideoInView=!1,l.onPlayerOutOfScreen(this)))}}function o(e){!function(e){e.state.onAutoPlayerUserInteraction=i.bind(e);var t=new Oc({onAnyThreshold:c.bind(e)});Vc(Lc).addTarget(e.iframeBodyElement[0],t),r(D.getTopWindow()).unbind("ready.autoPlay load.autoPlay ntvOnFocusChange.autoPlay").bind("ready.autoPlay load.autoPlay ntvOnFocusChange.autoPlay",e.state.onAutoPlayerUserInteraction)}(e),function(e){setTimeout(i.bind(e),100)}(e)}function a(e){return e.type.toLowerCase().split(":")}function s(e){var t=e.isIntersecting,n=e.intersectionRatio;this.lastIntersection={isIntersecting:t,intersectionRatio:n}}function c(e){s.call(this,e),i.call(this)}var l={checkAutoplay(e){if(l.isNotAutoPlay(e)||e.ampMode)return!0},updatePlayerReference(e,t){D.is("u",e.player)&&D.is("f",t.data.play)&&(e.player=t.data)},setAutoPlayState(e){e.state.autoPlayCheck=!0,e.state.isAutoPlay=!0,e.executePlayerCommand("mute"),f.setMutedState(e)},isAutoPlay:e=>e.state.autoPlayCheck&&e.state.isAutoPlay,verifyAutoPlayIsOff:e=>!l.isAutoPlay(e),bindHandlers(e){switch(p.isMRAID()){case!0:p.visibiltyHandler(e);break;default:o(e)}},hidePreviewImage(e){e.iframeBodyElement.find(".video-preview-img").css("visibility","hidden")},isNotAutoPlay:e=>!e.autoPlayParams||8!=e.renderingParams.videoExecution,copyParamsToScope(e){e.lastVolume=e.player?e.player.getVolume():.5,e.autoPlayParams&&(e.autoPlayParams.playerElement=e.iframe[0],e.state.autoPlayOn=!0),D.copyProperties(e.autoPlayParams,this)},notShowEndScreenOrShowEndScreenAndDidntPlayOnce(e){var t=1;return e.onVideoEnd!=t||e.onVideoEnd==t&&!playedOnce},stopWatch(t,n){var r=t.player&&"function"==typeof t.player.play?t.player:D.is("o",n.data)&&"function"==typeof n.data.play?n.data:null;t.state.autoPlayStopWatch=e.Tracking.Time().ntvStopWatch((function(){l.notShowEndScreenOrShowEndScreenAndDidntPlayOnce(t)&&(!r.userInteracted&&r.videoRendering&&r.videoRendering.hideControlBar(),r.play())}),t.autoPlayParams?t.autoPlayParams.minViewableAreaTime:0)},onPlayerOutOfScreen(e){f.pause(e)},turnOffAutoPlay(e,n){e.state.firstPauseButtonClick&&!e.state.firstClick||!e.state.autoPlayOn||(!function(e){Vc(Lc).removeTarget(e.iframeBodyElement[0]),r(D.getTopWindow()).unbind("ready.autoPlay load.autoPlay ntvOnFocusChange.autoPlay",e.state.onAutoPlayerUserInteraction),e.state.onAutoPlayerUserInteraction=null}(e),e.state.autoPlayOn=!1,n.data&&(!n.data||n.data.keepMuted)||n.type==t.Player.Publish.Content.VIDEO_END?n.type==t.Player.Publish.Content.VIDEO_END&&(e.state.unMuteOnReplay=!0):(e.player.setVolume(e.state.defaultVolume),e.privateEvent.publish(t.Manager.UNMUTE)),n.type!=t.Player.Publish.Content.VIDEO_END&&e.privateEvent.publish(t.Manager.PLAY))},firstClick(e,t){var n=e.state;if(!n.firstClickOnAutoPlayVideo&&n.isAutoPlay)return n.firstClickOnAutoPlayVideo=!0,e.executePlayerCommand("unmute"),!0},ignoreFirstClick(e,t){if(t.data&&"button"==t.data.tagName.toLowerCase()&&e.state.isAutoPlay&&e.state.NativoPlayer&&!e.state.ignoredFirstPaused&&t.data.classList.contains("vjs-playing"))return e.state.ignoredFirstPause=!0,e.state.dontShowOverlay=!0,!0},checkShowOverlay(t,n){if(-1!=t.state.initializedModules.indexOf(e.Events.Types.Skin.INITIALIZED))return t.state.dontShowOverlay?(t.state.dontShowOverlay=!1,!0):!(!t.state.isPlaying||!t.state.autoPlayOn||p.isMRAID())||void 0},checkClick(e,t){if(e.state.autoPlayCheck){if(D.is("s",t.data)&&t.data==n.PAUSE_BUTTON)return e.state.firstPauseButtonClick=!0,!0;e.state.firstClick=!0,e.player.setVolume(1)}},checkPause(e,t){if(e.state.isEnded||e.player.ended&&e.player.ended())return!0;if(e.state.autoPlayCheck&&e.state.autoPlayOn){if(e.autoPlayParams.onOutOfScreen===bm&&e.isAutoPlayTriggered)return!1;if(e.state.isPreRoll&&!e.state.prerollPlaying&&e.state.firstPauseButtonClick&&e.state.ignoreFirstClick)return e.state.ignoreFirstClick=!1,!1;if(e.state.firstPauseButtonClick&&e.state.ignoreFirstClick)return e.state.ignoreFirstClick=!1,!0;if(!e.state.firstPauseButtonClick&&!e.state.firstClick)return!0}else{if(e.state.firstClick&&!e.state.autoPlayOn&&!e.state.firstPauseIgnored&&!e.state.firstPauseButtonClick)return e.state.firstPauseIgnored=!0,!0;if(e.state.isPreRoll&&!e.state.prerollPlaying&&e.state.isPlaying)return!0;if(!e.executePlayerCommand("duration")&&0==e.executePlayerCommand("duration"))return!0}},checkResume(e,t){if(e.state.autoPlayCheck){if(e.autoPlayParams.onOutOfScreen===bm&&e.isAutoPlayTriggered)return!1;if(!e.state.firstPauseButtonClick&&!e.state.firstClick)return!0;if(e.state.ignoreFirstResume)return e.state.ignoreFirstResume=!1,!0;if(!D.is("u",t.data)&&t.data instanceof HTMLElement&&t.data.classList.contains("learn-more-control-hover"))return!0}else if(e.vastAsMainSource&&(!e.executePlayerCommand("getCurrentTime")||null===e.executePlayerCommand("getCurrentTime")))return!0}},u={trackPreRollAdFetch(e,t,n){var r=e.state;r.preloadingVastState=t,r.preloadVastStateEndTimestamp=(new Date).valueOf(),r.returnedMetricValue=r.preloadVastStateEndTimestamp-r.preloadVastStateBeginTimestamp},preRollAdRequest(e,t){e.state.preRollFetchStatus="sending",u.trackPreRollAdFetch(e,"sending","PREROLL_FETCH_AD_REQUEST")},disableVastPlugin(e){e.player.vastPlayer.disable()},prerollAdReturned(e,t){e.state.preRollFetchStatus="done",u.trackPreRollAdFetch(e,"done","PREROLL_FETCH_AD_RETURNED")},prerollAdCancel(t,n){t.state.isPreRoll&&(e.query(e.Util.getTopWindow()).trigger("ntvVideoCanceled",[t.adID,t.player.getVolume()]),u.disableVastPlugin(t)),t.state.preRollFetchStatus="cancelled",u.trackPreRollAdFetch(t,"cancelled","PREROLL_FETCH_AD_CANCEL")},prerollAdError(e,t){e.state.isPreRoll&&u.disableVastPlugin(e),e.state.preRollFetchStatus="error",u.trackPreRollAdFetch(e,"error","PREROLL_FETCH_AD_ERROR")},fullscreen(e,n){e.privateEvent.publish(t.Skin.FULLSCREEN,!0)},exitFullscreen(e,n){e.privateEvent.publish(t.Skin.EXIT_FULLSCREEN,!1)},renderPreRollSkin(n,r){r.data&&r.data.clickthrough&&(r.data.clickThrough=function(t,n){return t.tracker.getUrl(95)+"&"+e.CONSTS.REDIRECT+"="+n}(n,r.data.clickthrough)),n.privateEvent.publish(t.Skin.RENDER_PREROLL_SKIN,r.data)},removePreRollSkin(e,n){e.privateEvent.publish(t.Skin.REMOVE_PREROLL_SKIN,n.data)},disabledTracking(e,t){e.trackingEnabled=!e.vastAsMainSource},enableTracking(e,t){e.trackingEnabled=e.vastAsMainSource},preRollLearnMoreClicked(e,n){e.privateEvent.publish(t.Player.Subscribe.Preroll.LEARN_MORE_CLICKED,n.data)},setPreRollPlaying(e,t){e.state.prerollPlaying=!0},unsetPreRollPlaying(e,t){e.state.prerollPlaying=!1,e.state.AOLPlayer||(e.state.Player.previousPrerollVolume=e.executePlayerCommand("getVolume"))},trackAsVastAsMainSource(e,t){if(f.isVastAsMainSource(e))return e.privateEvent.publish(t.type.replace("preroll","content"),t.data),!0},checkMuteForPlay(e,t){if(e.state.autoPlayCheck){if(!e.state.firstClick&&!e.state.firstClickOnAutoPlayVideo&&!e.state.pauseButtonFirstClicked&&e.state.ignoreFirstClick&&e.state.isPreRoll)return!0}else{if(e.state.preRollFetchStatus&&("cancelled"==e.state.preRollFetchStatus||"error"==e.state.preRollFetchStatus)&&e.state.isPreRoll&&0==e.executePlayerCommand("getCurrentTime"))return!0;if(e.state.isPreRoll&&!e.state.prerollPlaying&&e.state.preRollFetchStatus&&"done"==e.state.preRollFetchStatus)return!0}},isVpaidStart:e=>e.state.NativoPlayer&&!e.executePlayerCommand("isMuted")&&!e.executePlayerCommand("getCurrentTime")&&e.state.isPreRoll&&"done"===e.state.preRollFetchStatus&&e.player.vast&&e.player.vast.adUnit&&"VPAID"===e.player.vast.adUnit.type,isVpaidAutoplayStart:e=>u.isVpaidStart(e)&&e.state.isAutoPlay,checkUnmuteForPlay:(e,t)=>!(!e.state.preRollFetchStatus||"cancelled"!=e.state.preRollFetchStatus&&"error"!=e.state.preRollFetchStatus||!e.state.isPreRoll||0!=e.executePlayerCommand("getCurrentTime"))||(u.isVpaidAutoplayStart(e)?(e.executePlayerCommand("mute"),!0):void 0)},d={showOverlay(e,n){null==e.state.dontShowOverlay||l.checkShowOverlay(e,n)?e.state.dontShowOverlay=!1:e.privateEvent.publish(t.Skin.SHOW_OVERLAY)},showVideoEndImage(e,n){e.privateEvent.publish(t.Skin.SHOW_VIDEO_END_IMAGE)},hideVideoEndImage(e,n){e.privateEvent.publish(t.Skin.HIDE_VIDEO_END_IMAGE)},fullscreen(e,n){e.privateEvent.publish(t.Skin.FULLSCREEN,!0)},exitFullscreen(e,n){e.privateEvent.publish(t.Skin.EXIT_FULLSCREEN,!1)},setVideoStateToPlaying(e,t){isNaN(e.state.Player.previousPrerollVolume)||!e.state.Player.previousPrerollVolume||e.player.isMuted()||e.executePlayerCommand("setVolume",e.state.Player.previousPrerollVolume),e.state.mainContentPlaying=!0},unsetVideoStateToPlaying(e,t){e.state.mainContentPlaying=!1},checkVideoIsPlaying(e,t){if(!e.state.mainContentPlaying)return!0},checkVideoStart(e,t){var n=e.state;if(n.NativoPlayer&&n.isPreRoll&&"done"===n.preRollFetchStatus&&null===n.prerollPlaying)return!0},checkVastAsMainSourceMOATTracking(t,n){t.state.NativoPlayer&&t.state.vastAsMainSource&&n.data.vastAsMainSource&&e.Video.Tracker.InstantiateMOAT&&e.Video.Tracker.InstantiateMOAT(n.data.videoUrl)},checkLearnMore(e,n){e.ctaUrl&&!/(ntv_r=null)/gi.test(e.ctaUrl)||e.privateEvent.publish(t.Skin.TOGGLE_LEARN_MORE,"hide")}},f={fireVideoMangerEvent(e,n){var r=n.type.split(".");r=r[r.length-1],e.privateEvent.publish(t.Manager[r],e)},setPlayingState(e,t){e.state.isPlaying=t},toggleVideo(e,t){e.executePlayerCommand("toggle",e.state.isPlaying)},checkVastPreloadState:(e,t)=>(e.player&&e.player.preloadVastExecuted&&null==e.state.preRollFetchStatus||e.state.preRollFetchStatus&&"sending"==e.state.preRollFetchStatus)&&e.state.isPreRoll,play:function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t,o=n;i.isAutoPlayTriggered=r,f.checkVastPreloadState(i,o)?setTimeout(e,0,i,o):i.state.vastAsMainSource&&!D.is("u",i.executePlayerCommand("getCurrentTime"))&&0===i.executePlayerCommand("getCurrentTime")?i.executePlayerCommand("triggerPlay"):i.state.isAutoPlay&&i.state.isPreRoll||i.executePlayerCommand("play")},pause(e,t){e.executePlayerCommand("pause")},resume(e,t){e.executePlayerCommand("resume")},reset(e,t){e.executePlayerCommand("reset")},click(e,t){e.executePlayerCommand("click")},mute(e,t){e.executePlayerCommand("mute"),f.setMutedState(e)},unmute(e,t){e.executePlayerCommand("unmute"),f.unsetMutedState(e)},hidePreviewImage(e,n){e.privateEvent.publish(t.Skin.HIDE_PREVIEW_IMAGE)},showInfoBar(e,n){e.privateEvent.publish(t.Skin.SHOW_INFO_BAR)},hideInfoBar(e,n){D.is("s",n.data)&&"fast"==n.data?e.privateEvent.publish(t.Skin.HIDE_INFO_BAR,"fast"):e.privateEvent.publish(t.Skin.HIDE_INFO_BAR)},hideInfoBarFast(e,n){e.privateEvent.publish(t.Skin.HIDE_INFO_BAR,"fast")},setUserActive(e){e.privateEvent.publish(t.Player.Subscribe.USER_ACTIVE,!0)},setUserInactive(e){e.privateEvent.publish(t.Player.Subscribe.USER_INACTIVE,!1)},verifyThatVideoStarted:(e,t)=>null==e.state.isPlaying,startTimeTracking(e,t){f.setPlayingState(e,!0),e.parameters.trackTimeOnContent&&(e.tos&&e.tos.resume(),e.tos_w_hidden&&e.tos_w_hidden.resume(),e.stopWatch.resume())},stopTimeTracking(e,t){f.setPlayingState(e,!1),e.parameters.trackTimeOnContent&&(e.tos&&e.tos.stopAndTrack(),e.tos_w_hidden&&e.tos_w_hidden.stopAndTrack("content"==a(t)[1]&&e.state.isEnded),e.stopWatch.stop())},isVastAsMainSource(e){if(e.state.vastAsMainSource)return!0},forceResize(e,n){e.executePlayerCommand("isFullscreen")&&e.privateEvent.publish(t.Skin.RESIZE)},checkAnchorClick(n,r){var i=r.data;if(D.isNotValidHeadlineLink(r.data)){if(!n.state.isPlaying)return;return n.privateEvent.publish(t.IFU.TOGGLE_VIDEO,n.state.isPlaying),i.removeAttr("href").css("cursor","pointer"),!0}D.isNotValidHeadlineLink(i)||(e.query(i).attr("data-ntv-redirect","true"),n.privateEvent.publish(t.IFU.ADHEADLINE_CLICK,i[0]))},updatePlayingState(e,t){var n=Em(a(t),3),r=(n[0],n[1]),i=n[2];switch(i){case"videoend":case"pause":switch(e.state.isPlaying=!1,i){case"videoend":e.state.isEnded=!0,e.state.isPaused=!1,e.state.isPreRollPlaying=("preroll"!==r||!e.state.isPreRoll)&&null;break;case"pause":e.state.isPaused=!0,e.state.isPreRollPaused=!("preroll"!==r||!e.state.isPreRoll)||null}break;case"videostart":case"resume":case"progress":e.state.isPlaying=!0,e.state.isEnded=!1,e.state.isPaused=!1,e.state.isPreRollPlaying=!("preroll"!==r||!e.state.isPreRoll)||null,e.state.isPreRollPaused=("preroll"!==r||!e.state.isPreRoll)&&null,isNaN(t.data.currentTime)||isNaN(t.data.duration)||(e.state.currentTime=Math.ceil(t.data.currentTime),e.state.duration=Math.floor(t.data.duration))}},openMobileShare(e){e.mobileShareParams&&e.privateEvent.publish(t.Skin.Mobile.OPEN_MOBILE_SHARE,[])},closeMobileShare(e){e.mobileShareParams&&e.privateEvent.publish(t.Skin.Mobile.CLOSE_MOBILE_SHARE,[])},toggleMobileShare(e,n){switch(n.type){case t.Skin.Mobile.MOBILE_SHARE_OPENED:e.state.isPlaying&&e.executePlayerCommand("pause");break;case t.Skin.Mobile.MOBILE_SHARE_CLOSED:}},checkReplayState(e,t){e.state.unMuteOnReplay&&(e.executePlayerCommand("unmute"),e.state.unMuteOnReplay=!1)},checkToggle(e,t){if((e.mobile||!e.autoplay)&&e.state.YouTubePlayer)return!0},hideOverlay(e,n){e.privateEvent.publish(t.Skin.HIDE_OVERLAY)},moduleInitialized(e,t){e.state.initializedModules.push(t.type)},setMutedState(e,t){e.state.isMuted=!0},unsetMutedState(e,t){e.state.isMuted=!1},notifyToCleanUp(e,n){var r=e;setTimeout((function(){r.privateEvent.publish(t.Manager.ClEAN_UP,r)}),1e3)},adHeadlineClickRedirect(e,t){var n=t.data;!n.dataset.ntvFired&&n.dataset.ntvRedirect&&n.target&&"_blank"==n.target&&U(n.href,n.target)}},p=function(){function t(){return"object"==typeof e.MRAID}function n(e,t){var n=t||this;l.isAutoPlay(n)&&n.state.autoPlayOn&&(e.data&&D.is("b",e.data)?(n.state.isVideoInView=!0,n.state.firstClick||f.play(n),n.state.autoPlayStopWatch.resume()):(n.state.isPlaying||n.player.playing)&&(n.state.autoPlayStopWatch.reset(),n.state.isVideoInView=!1,l.onPlayerOutOfScreen(n)))}function r(e){(function(e){var n=e.executePlayerCommand("isFullscreen");return t()&&!e.state.MRAID.firstClick&&"booleean"==typeof n&&!n})(e)&&(e.state.MRAID.firstClick=!0)}return{isMRAID:t,visibiltyHandler(t){!function(t){n({data:window.mraid.isViewable()},t),e.Events.PubSub.subscribe("mraidViewabilityChange",n.bind(t))}(t)},click(e){t()&&(!D.isiOS()||e.state.isFullscreen||e.state.MRAID.firstClicked||e.player.toggleFullscreen(),e.state.MRAID.firstClicked=!0,r(e))}}}();return{autoPlay:l,preRoll:u,content:d,general:f,mraid:p}}()}(e,e.Video.Logic||(e.Video.Logic={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={})),function(e){!function(e,t){!function(e,t){var n=Cd.Types,r=n.Tracking.Events.Preroll,i=n.Tracking.Events.Content,o=n.Tracking.Progress;function a(e){return e.player.isMuted()?0:e.executePlayerCommand("getVolume")}function s(e,t,n){return{NTVEvent:e,contentType:t,eventType:n,volume:a(this)}}function c(e,t){switch(t){case"u":return e.toUpperCase();case"l":return e.toLowerCase();case"c":return(e=e.split(""))[0]=e[0].toUpperCase(),e.join("")}}function l(e,t,n){"object"==typeof t.data&&(t.data.contentType=n,t.data.tos=e.tos,t.data.tos_w_hidden=e.tos_w_hidden,t.data.volume=a(e),t.data.callback=function(t){t(e)},function(e,t){if(!D.isEmptyVideoTracking(e)){var n=e.videoTracking.progress[t.contentType].percentile;for(var r in n)parseInt(r)<=Math.round(100*t.currentTime)/Math.round(t.duration)&&t.currentTime!=t.duration&&(t.eventType="progress",t.progressSection="percentile",t.NTVEvent=r,t.volume=a(e),e.publicEvent.publish(e.id+":"+o[c(t.contentType,"c")].PERCENTILE,t))}}(e,t.data),function(e,t){t.eventType="progress",t.progressSection="currentTime",e.publicEvent.publish(e.id+":"+o[c(t.contentType,"c")].CURRENT_TIME,t)}(e,t.data))}t.Tracking=function(){var e=[{metric:"pause",event:"PAUSE"},{metric:"videoStart",event:"VIDEO_START"},{metric:"videoEnd",event:"VIDEO_END"},{metric:"click",event:"CLICK"},{metric:"adHeadlineClick",event:"ADHEADLINE_CLICK"},{metric:"resume",event:"RESUME"},{metric:"mute",event:"MUTE"},{metric:"unmute",event:"UNMUTE"},{metric:"volumechange",event:"VOLUME_CHANGE"},{metric:"fullscreen",event:"FULLSCREEN"},{metric:"exitFullscreen",event:"EXIT_FULLSCREEN"}],t={prerollFetchAdRequest(e,t){var n;switch(e.state.preloadingVastState){case"sending":n="PREROLL_FETCH_AD_REQUEST";break;case"done":n="PREROLL_FETCH_AD_RETURNED";break;case"cancelled":n="PREROLL_FETCH_AD_CANCEL";break;case"error":n="PREROLL_FETCH_AD_ERROR"}e.publicEvent.publish(e.id+":"+r[n],[e.state.returnedMetricValue])},progress(e,t){l(e,t,"preroll")}};e.forEach((function(e){t[e.metric]=function(t,n){t.publicEvent.publish(t.id+":"+r[e.event],s.call(t,e.metric,"preroll","events"))}}));var n={progress(e,t){l(e,t,"content")}};e.forEach((function(e){n[e.metric]=function(t,n){t.publicEvent.publish(t.id+":"+i[e.event],s.call(t,e.metric,"content","events"))}}));var o={click(e,t){e.publicEvent.publish(e.id+":"+i.CLICK,s.call(e,"click","content","events"))},adHeadlineClick(e,r){e.state.isPreRoll&&e.state.prerollPlaying?t.adHeadlineClick(e,r):n.adHeadlineClick(e,r)},notifyPublicPlayerIsReady(e,t){e.publicEvent.publish("ntvVideoRenderingReady",[e.placementID+"_"+e.adID,e.iframeContent])},notifyPublicMobilePlayerIsReady(e,t){e.publicEvent.publish("ntvMobileShareReady")},checkVideoEnd(e){if(null===e.state.currentTime||isNaN(e.state.currentTime)||isNaN(e.state.duration)||e.state.currentTime<e.state.duration-1)return!0}};return{autoPlay:{},preRoll:t,content:n,general:o}}()}(0,e.Video.Logic||(e.Video.Logic={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={})),function(e){!function(e,t){!function(e,t){var n=Cd.Types,r=Cd.Types.Player.Publish,i=r.Content,o=r.Preroll,a=r.General,s=Cd.Types.Manager,c=n.IFU,l=n.Skin,u=e.Video.Logic.Behavior,d=e.Video.Logic.Tracking,f=[{event:o.PREROLL_FETCH_AD_REQUEST,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.preRollAdRequest,d.preRoll.prerollFetchAdRequest]},{event:o.PREROLL_FETCH_AD_RETURNED,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.prerollAdReturned,d.preRoll.prerollFetchAdRequest]},{event:o.PREROLL_FETCH_AD_CANCEL,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.prerollAdCancel,d.preRoll.prerollFetchAdRequest]},{event:o.PREROLL_FETCH_AD_ERROR,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.prerollAdError,d.preRoll.prerollFetchAdRequest]},{event:o.ADHEADLINE_CLICK,handlers:[u.preRoll.trackAsVastAsMainSource,u.autoPlay.firstClick,u.general.toggleVideo]},{event:o.VIDEO_END,handlers:[u.preRoll.trackAsVastAsMainSource,u.general.stopTimeTracking,u.preRoll.disabledTracking,u.preRoll.removePreRollSkin,u.preRoll.unsetPreRollPlaying,u.general.updatePlayingState,u.general.openMobileShare,d.general.checkVideoEnd,d.preRoll.videoEnd]},{event:o.VIDEO_START,handlers:[u.preRoll.trackAsVastAsMainSource,u.general.hidePreviewImage,u.preRoll.enableTracking,u.preRoll.renderPreRollSkin,u.preRoll.setPreRollPlaying,u.general.updatePlayingState,u.general.closeMobileShare,d.preRoll.videoStart]},{event:o.PROGRESS,handlers:[u.preRoll.trackAsVastAsMainSource,u.general.hideOverlay,u.general.updatePlayingState,d.preRoll.progress]},{event:o.PAUSE,handlers:[u.preRoll.trackAsVastAsMainSource,u.general.updatePlayingState,u.autoPlay.checkPause,u.general.openMobileShare,d.preRoll.pause]},{event:o.BUFFERING,handlers:[]},{event:o.CLICK,handlers:[u.preRoll.trackAsVastAsMainSource,u.autoPlay.checkClick,u.autoPlay.turnOffAutoPlay,d.preRoll.click,u.mraid.click]},{event:o.CTA_CLICK,handlers:[u.preRoll.trackAsVastAsMainSource]},{event:o.VOLUME_CHANGE,handlers:[u.preRoll.trackAsVastAsMainSource,d.preRoll.volumechange]},{event:o.IGNORE_FIRST_CLICK,handlers:[u.preRoll.trackAsVastAsMainSource]},{event:o.MUTE,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.checkMuteForPlay,d.preRoll.mute]},{event:o.UNMUTE,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.checkUnmuteForPlay,d.preRoll.unmute]},{event:o.RESUME,handlers:[u.preRoll.trackAsVastAsMainSource,u.general.hidePreviewImage,u.autoPlay.checkResume,u.general.updatePlayingState,u.general.closeMobileShare,d.preRoll.resume]},{event:o.FULLSCREEN,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.fullscreen,d.preRoll.fullscreen]},{event:o.EXIT_FULLSCREEN,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.exitFullscreen,d.preRoll.exitFullscreen]},{event:o.PREROLL_AD_CANCELED,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.disabledTracking]},{event:o.PREROLL_AD_ERROR,handlers:[u.preRoll.trackAsVastAsMainSource,u.preRoll.disabledTracking]},{event:o.RESIZE,handlers:[u.general.forceResize]},{event:i.ADHEADLINE_CLICK,handlers:[]},{event:i.VIDEO_END,handlers:[u.content.showVideoEndImage,u.autoPlay.turnOffAutoPlay,u.content.checkVideoIsPlaying,u.content.unsetVideoStateToPlaying,u.general.updatePlayingState,u.general.stopTimeTracking,u.general.openMobileShare,d.content.videoEnd]},{event:i.VIDEO_START,handlers:[u.content.checkVideoStart,u.general.hidePreviewImage,u.general.hideOverlay,u.content.checkLearnMore,u.content.setVideoStateToPlaying,u.general.checkReplayState,u.general.updatePlayingState,u.general.closeMobileShare,d.content.videoStart]},{event:i.REPLAY,handlers:[u.content.hideVideoEndImage]},{event:i.PROGRESS,handlers:[u.general.verifyThatVideoStarted,u.general.startTimeTracking,u.general.hideOverlay,u.general.updatePlayingState,d.content.progress]},{event:i.PAUSE,handlers:[u.content.showOverlay,u.general.hideInfoBarFast,u.general.stopTimeTracking,u.general.updatePlayingState,u.autoPlay.checkPause,u.general.openMobileShare,d.content.pause]},{event:i.BUFFERING,handlers:[u.general.stopTimeTracking]},{event:i.CLICK,handlers:[u.autoPlay.checkClick,u.autoPlay.turnOffAutoPlay,d.content.click,u.mraid.click]},{event:i.VOLUME_CHANGE,handlers:[d.content.volumechange]},{event:i.IGNORE_FIRST_CLICK,handlers:[]},{event:i.MUTE,handlers:[u.preRoll.checkMuteForPlay,d.content.mute]},{event:i.UNMUTE,handlers:[u.preRoll.checkUnmuteForPlay,d.content.unmute]},{event:i.RESUME,handlers:[u.general.hidePreviewImage,u.autoPlay.checkResume,u.general.updatePlayingState,u.general.closeMobileShare,d.content.resume]},{event:i.FULLSCREEN,handlers:[u.content.fullscreen,d.content.fullscreen]},{event:i.EXIT_FULLSCREEN,handlers:[u.content.exitFullscreen,d.content.exitFullscreen]},{event:i.RESIZE,handlers:[u.general.forceResize]},{event:i.CAN_PLAY,handlers:[u.content.checkVastAsMainSourceMOATTracking]},{event:a.PLAYER_READY,handlers:[u.autoPlay.checkAutoplay,u.autoPlay.updatePlayerReference,u.autoPlay.copyParamsToScope,u.autoPlay.setAutoPlayState,u.autoPlay.stopWatch,u.autoPlay.bindHandlers,u.autoPlay.hidePreviewImage]},{event:a.USER_ACTIVE,handlers:[u.general.showInfoBar]},{event:a.USER_INACTIVE,handlers:[u.general.hideInfoBar]},{event:l.INITIALIZED,handlers:[u.general.moduleInitialized]},{event:l.INFO_BAR_CLICK,handlers:[u.general.toggleVideo]},{event:l.CLICK,handlers:[u.autoPlay.turnOffAutoPlay,u.general.click]},{event:l.PLAY,handlers:[u.general.play]},{event:l.PAUSE,handlers:[u.general.pause]},{event:l.RESUME,handlers:[u.general.resume]},{event:l.USER_INACTIVE,handlers:[u.general.setUserInactive]},{event:l.USER_ACTIVE,handlers:[u.general.setUserActive]},{event:l.PREVIEW_IMAGE_CLICK,handlers:[d.general.click]},{event:l.Preroll.LEARN_MORE_CLICKED,handlers:[u.preRoll.preRollLearnMoreClicked]},{event:l.READY,handlers:[d.general.notifyPublicPlayerIsReady]},{event:l.USER_ACTIVE,handlers:[u.general.setUserActive]},{event:l.Mobile.MOBILE_SHARE_CLOSED,handlers:[]},{event:l.Mobile.MOBILE_SHARE_OPENED,handlers:[u.general.toggleMobileShare]},{event:c.INITIALIZED,handlers:[]},{event:c.READY,handlers:[]},{event:c.EXPANDED,handlers:[u.general.play]},{event:c.COLLAPSED,handlers:[u.general.pause,u.general.hideOverlay]},{event:c.TOGGLE_VIDEO,handlers:[u.general.toggleVideo,u.autoPlay.turnOffAutoPlay,u.autoPlay.verifyAutoPlayIsOff]},{event:c.CLICK,handlers:[u.general.fireVideoMangerEvent]},{event:c.ANCHOR_CLICK,handlers:[u.general.checkAnchorClick]},{event:c.ADHEADLINE_CLICK,handlers:[d.general.adHeadlineClick,u.general.adHeadlineClickRedirect]},{event:s.PLAY,handlers:[u.general.play]},{event:s.PAUSE,handlers:[u.general.pause]},{event:s.RESUME,handlers:[u.general.resume]},{event:s.RESET,handlers:[u.general.reset]},{event:s.MUTE,handlers:[u.general.mute]},{event:s.UNMUTE,handlers:[u.general.unmute]},{event:s.TOGGLE_VIDEO,handlers:[u.general.toggleVideo]},{event:s.USER_INACTIVE,handlers:[u.general.setUserInactive]},{event:s.USER_ACTIVE,handlers:[u.general.setUserActive]},{event:s.PREVIEW_IMAGE_CLICK,handlers:[d.general.click]},{event:s.ClEAN_UP,handlers:[]}];t.Business=f,Object.seal(t.Business)}(e,e.Video.Logic||(e.Video.Logic={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={}));function Pm(e,t){e.addEventListener("click",(function(){var e=t.vastClickTrackings;e&&e.forEach((function(e){D.appendImage(e)}))}))}!function(e){!function(e,t){!function(e,t){t.Nativo=function(){var t=Cd.Types,n=t.Player.Publish,r=t.Player.Subscribe;function i(i){var o,a,s,l=i,u=e.query,d=e.Events.Data,f={bigPlayButton:!1,textTrackSettings:!1,controlBar:{playToggle:{},progressControl:{seekBar:{mouseTimeDisplay:!1,playProgressBar:{timeTooltip:!1}}},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},volumePanel:{inline:!1},fullscreenToggle:{},liveDisplay:!1,seekToLive:!1,remainingTimeDisplay:!1,pictureInPictureToggle:!1,subsCapsButton:!0,children:["playToggle","progressControl","currentTimeDisplay","timeDivider","durationDisplay","subsCapsButton","volumePanel","fullscreenToggle"]},inactivityTimeout:1e3};function p(e){void 0!==this.titleClicked&&this.titleClicked&&e.play()}function h(){var e=o.player;e.getVolume=function(){return o.player.volume()},e.setVolume=function(e){o.player.volume(e)},e.toggle=function(){o.playing?o.player.pause():o.player.play()},e.resume=o.player.play,e.unMute=function(){o.player.muted(!1)},e.unmute=o.player.unMute,e.mute=function(){o.player.muted(!0)},e.isMuted=function(){return o.player.muted()},e.reset=o.player.reset,e.triggerPlay=function(){o.player.trigger("play")},e.toggleFullscreen=function(){return e.isFullscreen()?e.exitFullscreen():e.requestFullscreen(),e.isFullscreen()},e.getCurrentTime=function(){return o.player.vpaidProgress?o.player.vpaidProgress:o.player.vpaidEnded&&o.player.vpaidEndTime?o.player.vpaidEndTime:o.player.currentTime()}}function v(e,t){D.is("b",o.prerollPlaying)&&o.prerollPlaying?l.publish(n.Preroll[e],t):l.publish(n.Content[e],t)}function y(){return o.renderingParams.mobile&&D.is("b",document.createElement("video").playsInline)}function g(e){var t=e.target.classList.contains("vjs-playing");e.target.classList.contains("vjs-icon-placeholder")&&(t=e.target.parentNode.classList.contains("vjs-playing")),v("CLICK",t?d.PAUSE_BUTTON:null)}function b(e){o.startX=e.touches[0].pageX||document.body.scrollTop,o.startY=e.touches[0].pageY||document.body.scrollLeft}function w(e){o.endX=e.touches[0].pageX||document.body.scrollTop,o.endY=e.touches[0].pageY||document.body.scrollLeft,o.touchMoved=!0}function E(e){(o.startX==o.endX&&o.startY==o.endY||!o.touchMoved)&&g(e),o.endX=0,o.endY=0,o.startX=0,o.startY=0,o.touchMoved=!1}function T(){if(void 0===o.previousPosition){if(o.previousPosition=o.player.currentTime(),isNaN(o.player.currentTime()))return!0}else{if(o.previousPosition==o.player.currentTime()&&o.buffering)return!0;o.buffering=!1}return o.previousPosition=o.player.currentTime(),!1}function S(){return!isNaN(o.player.duration())&&o.player.duration()>0}function k(){o.playerStarted=!0,o.playerEnded=!1}function P(){o.playerStarted=!1,o.playerEnded=!0}function A(){return D.is("b",o.playerStarted)&&o.playerStarted}function I(){return D.is("b",o.playerEnded)&&o.playerEnded}function C(e,t){var n=u(o.iframeBodyElement[0]).find("div.video-js");e.data?(n.removeClass("vjs-user-inactive").addClass("vjs-user-active"),o.player.trigger("useractive"),o.player.userActive(e.data),t&&t.active.forEach((function(e){e.classNames.forEach((function(t){e.node.classList.add(t)}))}))):(n.removeClass("vjs-user-active").addClass("vjs-user-inactive"),o.player.trigger("userinactive"),t&&t.inactive.forEach((function(e){e.classNames.forEach((function(t){e.node.classList.remove(t)}))})))}function O(){l.subscribe(t.Player.Subscribe.PLAY,o.player.play),l.subscribe(t.Player.Subscribe.USER_ACTIVE,C),l.subscribe(t.Player.Subscribe.USER_INACTIVE,C)}function _(){l.publish(t.Player.Publish.General.PLAYER_READY,o.player)}function R(){return o.vastAsMainSource}function x(){return o.isPreRoll}function L(){return o.vpaidPlaying}function N(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.prerollPlaying=e,o.vpaidPlaying=t}function j(){var e=[],t=m(o.iframe);e.push.apply(e,Sm(t.contentWindow.document.getElementsByTagName("video")));for(var n=0,r=e;n<r.length;n++){r[n].setAttribute("preload","auto")}if(!o.vastUrl||0==o.vastUrl.length){o.vastUrl=void 0;var i=o.vastXML;o.vastXML=function(e){setTimeout((function(){e(null,i)}),0)}}}function V(){var e=""!==document.createElement("video").canPlayType('video/webm; codecs="vp8, vorbis"'),t=D.getElementDimensions(o.iframe),n={adTagUrl:D.is("s",o.vastUrl)&&o.vastUrl.length?o.vastUrl.replace("[video_width]",t.w).replace("[video_height]",t.h):null,adTagXML:o.vastXML,playAdAlways:!0,isPreRoll:x(),adsEnabled:!0,autoResize:!0,timeout:4e6,ntvVastAsMainSource:o.vastAsMainSource};e&&(n.preferredTech="video/webm"),o.vastPlayer=o.player.vastClient(n)}function M(){(o.vastUrl||o.vastXML&&o.vastAsMainSource)&&o.vastPlayer&&o.vastPlayer.preLoadVast&&(o.pubsub=l,o.preRollRequestEvents=e.Events.Types.Player.Publish.Preroll,o.player.preloadVastExecuted=!0,o.player.vastPlayer=o.vastPlayer,o.vastPlayer.preLoadVast(o))}function U(e){if(D.is("s",e.advertiser))return e.advertiser;if(!(e.ads instanceof Array&&e.ads.length))return"Advertisement";var t=e.ads.filter((function(e){return inLine&&inLine.advertiser}));return t&&t.length?t[0].inLine.advertiser:void 0}function F(){o.vastAsMainSource&&o.player.on("canplay",(function(e){l.publish(n.Content.CAN_PLAY,{vastAsMainSource:o.vastAsMainSource,videoUrl:o.player.src()})}))}function B(){var t=this,i=this,o=(i.iframeContent,i.player);if(i.playing=!1,i.trackingEnabled=!i.vastAsMainSource,i.resize&&i.resize(),h(),i.vastUrl.length>0||i.vastXML){j(),V(),F(),M();var s=D.domQuery(".ntv-headline");s&&Pm(s,i),o.on("vast.adStart",(function(t){o.on("timeupdate",(function t(){var s;if(o.off("progress",t),N(),o.isPreRoll=!0,o.vast.vastResponse.clickThrough?s=o.vast.vastResponse.clickThrough:o.vast.vastResponse.clickThroughURLTemplate&&(s=VASTUtil.resolveURLTemplates([o.vast.vastResponse.clickThroughURLTemplate],{CACHEBUSTER:Math.round(1e10*Math.random()),CONTENTPLAYHEAD:o.vastTracker.progressFormated()})[0]),s){PostRelease.clickThrough=s;for(var c=e.Util.domQueryAll(".ntvClickOut a",i.context),u=e.Util.domQuery("#".concat(e.Util.getVideoSelectorName(),"Iframe").concat(i.adID),i.context).contentWindow.document,d=e.Util.domQueryAll("a",u),f=[],p=0;p<c.length;p++)f.push(c[p]);for(var h=0;h<d.length;h++)f.push(d[h]);f.forEach((function(e){e&&e.getAttribute("href")&&e.setAttribute("href",e.getAttribute("href").replace(/@redirectUrl/gi,s))}))}var v=e.Util.domQuery(".learn-more-control-hover",a);v&&Pm(v,i),k(),l.subscribe(r.Preroll.LEARN_MORE_CLICKED,(function(){o.vastTracker.trackURLs([clicktrackers])})),R()?l.publish(n.Content.VIDEO_START):l.publish(n.Preroll.VIDEO_START,{clickThrough:i.player.vast.vastResponse.clickThrough,advertiser:U(i.player.vast.vastResponse),ad:i.player.vast.vastResponse.ads[0],clickthrough:s,clickTrackers:o.vast.vastResponse.clickTrackers})}))})),o.on("vast.adsCanceled",(function(){N(!1),l.publish(n.Preroll.PREROLL_AD_CANCELED,{playerElement:o.el()})})),o.on("vast.adError",(function(){i.autoPlayParams?(o.pause(),o.play()):(k(),l.publish(n.Content.VIDEO_START)),l.publish(n.Preroll.PREROLL_AD_ERROR,{playerElement:o.el()})})),o.on("vast.adEnd",(function(){o.isPreRoll=!1,N(!1),i.playerStarted=!1,R()?(P(),l.publish(n.Content.VIDEO_END),i.vastAsMainSourceEnded=!0):l.publish(n.Preroll.VIDEO_END,{playerElement:o.el()});var e=o.L||o.el();"video"==e.tagName.toLowerCase()||(e=e.firstElementChild),e.setAttribute("playsinline","true"),e.setAttribute("muted","true"),e.onloadstart=function(e){i.autoPlayParams&&(e.target.volume=0,e.target.muted=!0),i.wasMuted||(e.target.volume=1,e.target.muted=!1),e.target.play()}})),o.on("vast.contentStart",(function(e){i.wasMuted&&o.mute()})),o.on("vpaid.AdClickThru",(function(e){o.trigger("click"),e.target.children[0].pause()}));o.lastTimeupdate=null,o.on("vpaid.AdVideoStart",(function(r){i.vpaidVideoUrl=o.src(),o.isPreRoll=!0,N(!0,!0);var a=i.iframe[0].contentWindow.document,s=a.querySelector(".vjs-control-bar"),c=e.Util.domQuery(".VPAID-Container",a),u=[],d={active:[{node:s.parentElement,classNames:["vjs-has-started"]}],inactive:[{node:s.parentElement,classNames:["vjs-has-started"]}]},f=function(){C({data:!0},d)};Array.prototype.slice.call(c.querySelectorAll("iframe")).forEach((function(e,n){e.contentWindow.document.body.addEventListener("mousemove",f.bind(t,u,n))})),k(),l.publish(n.Preroll.VIDEO_START,{clickThrough:i.player.vast.vastResponse.clickThrough,advertiser:U(i.player.vast.vastResponse),ad:i.player.vast.vastResponse.ads[0],clickthrough:"",clickTrackers:o.vast.vastResponse.clickTrackers})})),o.on("vpaid.AdVideoComplete",(function(e){i.vpaidVideoUrl&&o.src(i.vpaidVideoUrl),o.isPreRoll=!1,N(!1),o.vpaidEnded=!0,o.vpaidEndTime=o.lastTimeupdate,o.lastTimeupdate=null})),o.on("vpaid.AdPaused",(function(e){i.playing=!1,v("PAUSE",{playing:!1,vpaid:!0})})),o.on("vpaid.AdPlaying",(function(e){i.playing=!0,v("RESUME",{playing:!0,vpaid:!0})})),o.on("vpaid.AdTimeupdate",(function(e){!isNaN(o.vpaidProgress)&&o.vpaidProgress>0&&o.vpaidProgress<=o.vpaidDuration&&!isNaN(o.vpaidProgress)&&(null==o.lastTimeupdate||o.lastTimeupdate!=o.vpaidProgress)&&(v("PROGRESS",{playing:i.playing,duration:o.vpaidDuration,currentTime:o.vpaidProgress}),o.lastTimeupdate=o.vpaidProgress),o.lastTimeupdate==o.vpaidProgress&&v("BUFFERING")}))}!function(t){if(!t.bound){t.bound=!0,O();var r=t.player;r.muted()&&(t.wasMuted=!0),r.on("volumechange",(function(){S()&&(r.muted()?(v("MUTE"),t.wasMuted=!0):r.muted()||1!=t.wasMuted||(v("UNMUTE"),t.wasMuted=!1),v("VOLUME_CHANGE"))})),r.on("play",(function(){if(0!=r.duration()||!R()){u(t.iframeContent).click(g);var e=r.currentTime();t.playing=!0,I()&&v("REPLAY"),!isNaN(e)&&0!=e&&e!=t.player.duration()&&A()||R()?L()||v("RESUME"):(k(),l.publish(n.Content.VIDEO_START)),this.isFullscreen()&&v("RESIZE")}})),r.on("pause",(function(){t.playing=!1,L()||v("PAUSE",{playing:!1})})),r.on("ended",(function(){R()&&!t.vastAsMainSourceEnded||(t.playing=!1,t.autoPlayTracker&&t.autoPlayParams&&t.autoPlayTracker.turnOffAutoPlay(!0,!0),x()&&!t.firstClickOnAutoPlayVideo&&t.autoPlayParams?r.muted()?r.muted(!0):r.muted(!1):!x()||t.firstClickOnAutoPlayVideo||t.autoPlayParams||t.clickToMute||(r.muted()?r.muted(!0):r.muted(!1)),P(),v("VIDEO_END",{playing:!1}))})),t.player.on("timeupdate",(function(){T()||(t.prerollPlaying&&(Math.ceil(t.curpos)<Math.floor(r.currentTime())&&t.player.currentTime(t.curpos),Math.floor(t.curpos)>Math.ceil(r.currentTime())&&r.currentTime(t.curpos),t.curpos=r.currentTime()),!isNaN(r.currentTime())&&r.currentTime()>0&&r.currentTime()<r.duration()&&v("PROGRESS",{playing:t.playing,duration:r.duration(),currentTime:r.currentTime()}))})),r.on("useractive",(function(e){l.publish(n.General.USER_ACTIVE)})),r.on("userinactive",(function(){l.publish(n.General.USER_INACTIVE)})),r.on("fullscreenchange",e.Util.debounce((function(){r.isFullscreen()?v("FULLSCREEN"):v("EXIT_FULLSCREEN")}),100)),r.on("prerollAdRequest",(function(){l.publish(n.Preroll.PREROLL_FETCH_AD_REQUEST)})),r.on("prerollAdReturned",(function(){l.publish(n.Preroll.PREROLL_FETCH_AD_RETURNED)})),r.on("prerollAdCancel",(function(){l.publish(n.Preroll.PREROLL_FETCH_AD_CANCEL)})),r.on("prerollAdError",(function(){l.publish(n.Preroll.PREROLL_FETCH_AD_ERROR)})),t.player.on("touchstart",b),t.player.on("touchmove",w),t.player.on("touchend",E),t.player.on("click",g),t.player.on("waiting",(function(){t.buffering=!0,v("BUFFERING")})),t.player.on("stalled",(function(){t.buffering=!0,v("BUFFERING")})),t.player.on("suspend",(function(){t.buffering=!0,v("BUFFERING")}))}}(i),function(e,t){setTimeout((function(){var e=t.el().querySelector(".vjs-duration-display"),n=e.childNodes&&e.childNodes.length>1?t.el().querySelector(".vjs-duration-display").childNodes[1].textContent:t.el().querySelector(".vjs-duration-display").textContent;"0:00"==(n=n.trim())&&t.duration()>0&&t.duration(Math.floor(t.duration()))}),0)}(0,o),p.call(i,o),_()}function H(){var e,t;s=s||window;var n=this,r=n.renderingParams.videoNodeId,i=s.document.getElementById(r);i||(i=null==n?void 0:n.iframeBodyElement[0].querySelector("#".concat(r))),D.is("u",null===(e=i)||void 0===e||null===(t=e.attributes)||void 0===t?void 0:t.controls)&&i.setAttribute("controls",!0),y()&&!D.is("u",n.autoPlayParams)&&(i.setAttribute("playsinline",!0),i.setAttribute("muted",!0)),s.ntv_videojs(i,f).ready((function(e){n.player=this,n.isShadow&&function(e){var t=e.renderingParams.iframeId,n=D.domQuery(".vjs-styles-defaults"),r=D.domQueryAll(".vjs-styles-dimensions").filter((function(e){return-1!==e.textContent.indexOf(t)}))[0];W(e.iframeContent,n),W(e.iframeContent,r)}(n),D.adBlocker&&n.player.hls&&function(e){e.player.hls.xhr.beforeRequest=function(e){var t=e.uri.replace(D.adBlockerDomain,c.ASSETS_DOMAIN);return e.uri="https://".concat(D.adBlockerDomain,"/").concat(D.encryptUrl("proxyTracking/".concat(t))),e}}(n),D.is("b",this.el().children[0].playsInline)&&this.pause(),B.call(n)}))}function W(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t&&e.append(t.cloneNode(n))}return{init:function(e){(o=e.data).preRollRequest=l,o.context=D.toDomElement(o.iframe).ownerDocument,D.loadFontFromBase64("VideoJS","data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA=="),o.isShadow?function(e){var t=e.iframeContent[0];e.playerCssUrl&&D.appendStylesheetToContext(e.playerCssUrl,t,"ntvPlayerCss"),D.appendScriptToContext(e.videojsUrl,t,{onReadyEvent:H.bind(e),id:"ntv-videojs"})}(o):function(e){a=e.iframeContent[0],s=a.defaultView||a.parentWindow,e.playerCssUrl&&ntvAppendStylesheet("ntvPlayerCss",e.playerCssUrl,a),D.appendScript(e.videojsUrl,H.bind(e),"ntv-videojs",a)}(o)}}}return function(e){var n=i(e);e.subscribe(t.Player.Subscribe.RENDER_VIDEO_PLAYER,n.init.bind(this))}}()}(e,e.Video.Player||(e.Video.Player={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={})),function(e){!function(e,t){!function(e,t){t.YouTube=function(){var t=Cd.Types,n=t.Player.Publish;t.Player.Subscribe;function r(r){var i,o,a,s,c,l=r,u=e.Util,d=e.query;function f(){l.publish(t.Player.Publish.General.PLAYER_READY,i)}function p(e,t){e.data==YT.PlayerState.ENDED&&(c=!0,l.publish(n.Content.VIDEO_END),function(e){e.clearProgressTimeout=!0,setTimeout((function(){e.clearProgressTimeout=!1}))}(t))}function h(e,t){e.data==YT.PlayerState.PLAYING&&(s?(s=!1,l.publish(n.Content.RESUME),t.mouseover&&l.publish(n.Content.CLICK)):(u.is("u",s)||c)&&(c=!1,l.publish(n.Content.VIDEO_START),function e(t){s||c||t.getCurrentTime()==t.getDuration()||l.publish(n.Content.PROGRESS,{playing:!0,duration:t.getDuration(),currentTime:t.getCurrentTime()}),t.clearProgressTimeout||setTimeout(e,0,t)}(t)))}function v(e){h(e,this),function(e){e.data,YT.PlayerState.BUFFERING}(e),p(e,this),function(e,t){e.data==YT.PlayerState.PAUSED&&(s=YT.PlayerState.PAUSED,l.publish(n.Content.PAUSE),t.mouseover&&l.publish(n.Content.CLICK))}(e,this)}function m(e){a.addEventListener("onStateChange",v.bind(i),!1)}function y(){l.subscribe(t.Player.Subscribe.PLAY,i.play)}function g(){i.isPaused=function(){return i.isPlayerPaused},i.play=function(){a.playVideo(),i.videoPlaying=!0},i.resume=i.play,i.pause=function(){a.pauseVideo(),i.videoPlaying=!0},i.reset=function(){a.seekTo(0),a.pauseVideo()},i.toggle=function(e){i.togglePlayState(e)},i.togglePlayState=function(e){e&&isNaN(i.getCurrentTime())?i.play():e?i.pause():i.play()},i.isSeeking=function(){return 2!=state},i.isFullScreen=function(){return!1},i.setUserActive=function(e){e?i.triggerEvent("ntvUserActive"):i.triggerEvent("ntvUserInactive")},i.getCurrentTime=function(){return a.getCurrentTime()||NaN},i.getDuration=function(){return a.getDuration()||NaN},i.mute=function(){i.clickToMute=!0,a.mute()},i.unMute=function(){i.clickToMute=!1,a.unMute()},i.unmute=i.unMute,i.setVolume=function(e){a.setVolume(100*e)},i.getVolume=function(){return a.getVolume?a.getVolume()/100:100},i.isMuted=function(){return!i.getVolume()},i.bindAutoPlayerUserInteraction=function(e){o.bind("ntvUserInteracted",e)},i.unbindAutoPlayerUserInteraction=function(){o.unbind("ntvUserInteracted")}}function b(){var e=this;u.is("u",a)&&(e.element=d(o).find("#".concat(e.renderingParams.videoNodeId))[0],a=new YT.Player(e.element,{height:"390",width:"640",events:{onReady:function(t){g(),m(),y(),f(),function(e){d(e.iframe).on("mouseenter mouseover",(function(){l.publish(n.General.USER_ACTIVE),e.mouseover=!0})),d(e.iframe).on("mouseout mouseleave",(function(){l.publish(n.General.USER_INACTIVE,"fast"),e.mouseover=!1}))}(e),function(e){e.element.style.visibility="visible"}(e)}}}))}function w(){"undefined"!=typeof YT?YT.ready(b.bind(this)):setTimeout(w.bind(this),100)}function E(e){o=e.iframeContent[0],o.defaultView||o.parentWindow,e.playerCssUrl&&ntvAppendStylesheet("ntvPlayerCss",e.playerCssUrl,o),u.appendScript("https://www.youtube.com/player_api",w.bind(e),"ntv-yt-api")}return{init:function(e){E(i=e.data)}}}return function(e){var n=r(e);e.subscribe(t.Player.Subscribe.RENDER_VIDEO_PLAYER,n.init.bind(this))}}()}(e,e.Video.Player||(e.Video.Player={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={})),function(e){!function(e,t){!function(e,t){t.IFU=function(){var t=Cd.Types;function n(n){var r,i,o,a,s,c,l,u=n,d=e.Util,f=e.query,p=4,h=8,v=f(d.getTopWindow().document);function m(){l.css("visibility","visible")}function y(){r.hasClass("ntvExpanded")?(r.removeClass("ntvExpanded"),u.publish(t.IFU.COLLAPSED,[])):(r.addClass("ntvExpanded"),setTimeout((function(){r.hasClass("ntvExpanded")?u.publish(t.IFU.EXPANDED,[]):u.publish(t.IFU.COLLAPSED,[])}),1e3),u.publish(t.IFU.EXPANDED,[])),u.publish(t.IFU.CLICK)}function g(){r.addClass("ntvExpanded"),u.publish(t.IFU.EXPANDED,[])}function b(){r.removeClass("ntvExpanded"),u.publish(t.IFU.COLLAPSED,[])}return{init:function(n){switch(i=n.data,r=v.find("."+i.renderingParams.outerCssClass),o=r.find("."+i.renderingParams.linkCssClass),a=i.iframe?i.iframe:i.renderingParams.IFU.useIframeId?v.find("iframe[id='"+i.renderingParams.iframeId+"']"):v.find("iframe[id='"+e.Util.getVideoSelectorName()+"Iframe"+i.adID+"']"),s=a.contents()[0],s.defaultView||s.parentWindow,c=s.body,l=r.find(".ntv-video-wrapper"+i.adID),i.renderingParams.videoExecution){case h:m(),o.map((function(){var e=f(this);e.attr("target","_blank"),e.click((function(){return u.publish(t.IFU.ANCHOR_CLICK,e),!1}))})),i.clickedBeforeRendering&&u.publish(t.IFU.TOGGLE_VIDEO,[]),f(c).click((function(e){u.publish(t.IFU.CLICK,e.target)}));break;case p:!function(){r.addClass("ntvExpandable").find(".ntv-video-frame").css("transition-duration",i.renderingParams.expandSpeed).css("-webkit-transition-duration","width "+i.expandSpeed);var e=l.parent();"ntv-video-container"==e.attr("class")&&e.css("height","inherit").css("padding-bottom","inherit"),m(),o.map((function(){var e=f(this);d.isNotValidHeadlineLink(e)&&e.removeAttr("onclick").click((function(){return y(),!1}))})),i.clickedBeforeRendering&&y()}()}i.renderingParams.IFU.showHiddenWrappers&&(m(),u.publish(t.IFU.EXPANDED,[])),u.subscribe(t.IFU.EXPAND,g),u.subscribe(t.IFU.COLLAPSE,b),u.publish(t.IFU.READY,i)}}}return function(e){var r=n(e);e.subscribe(t.Modules.EXECUTE,r.init.bind(this)),e.publish(t.IFU.INITIALIZED,["initialized"])}}()}(e,e.Video.Render||(e.Video.Render={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={})),function(e){!function(e,t){!function(e,t){t.Mobile=function(){var t=Cd.Types;function n(n){var r,i,o,a,s=0,c="",l=n,u=e.query,d=e.Util,f=d.getTopWindow().document;function p(e){90==window.orientation||-90==window.orientation?f.body.scrollTop=s:e.preventDefault()}function h(e){u(i.contentWindow.document.body)[e]("touchmove",p)}function v(n){h("unbind"),u(i).css("display","none"),u("body").css("overflow","inherit"),u("head").find("meta[name=viewport]").length||u("head").find("meta[name=viewport]").attr("content",c),f.querySelector("#"+e.Util.getVideoSelectorName()+"Iframe"+r.adID).scrollIntoView(!0),f.body.scrollTop-=window.screen.availHeight/2,l.publish(t.Skin.Mobile.MOBILE_SHARE_CLOSED)}function m(){!function(){if(u("head").find("meta[name=viewport]").length)return;var e=u("head").find("meta[name=viewport]");0==e.size()?u("head").append(u('<meta name="viewport" id="ntvviewport" content="">')):c=u(e[0]).attr("content")}(),s=f.body.scrollTop,h("bind"),u("head").find("meta[name=viewport]").length||u("head").find("meta[name=viewport]").attr("content","width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"),u("body").css("overflow","hidden"),u(i).css("display","block"),l.publish(t.Skin.Mobile.MOBILE_SHARE_OPENED)}return{init:function(n){n.data.mobileShareParams&&(!function(e){r=e.data,r.iframe,r.iframeWindow,r.iframeContent;var t=d.getTopWindow().document;i=d.domQuery("#ntvShareIframe"+r.adID,t)||r.iframeContent.find("#ntvShareIframe"+r.adID)[0]}(n),d.getTopWindow().document.body.appendChild(i),o=d.writeIframe(u(i),"",r.mobileShareParams.headHtml,r.mobileShareParams.bodyHtml),u(o).find("a#ntv_cancel").click(v),u(o).find("#ntv-share-background").click(v),(a=u(o).find("body")).find("#ntv_video, .ntv_video-title, .fa-play").click((function(){v()})),l.subscribe(t.Skin.Mobile.CLOSE_MOBILE_SHARE,v),l.subscribe(t.Skin.Mobile.OPEN_MOBILE_SHARE,m),l.publish(t.Skin.Mobile.READY),e.Events.PubSub.publish("ntvMobileShareReady",[r.placementID+"_"+r.adID,a]),u(r.iframeContent).trigger("ntvMobileShareReady",[r.placementID+"_"+r.adID,a]))}}}return function(e){var r=n(e);e.subscribe(t.Modules.EXECUTE,r.init.bind(this)),e.publish(t.Skin.Mobile.INITIALIZED,["initialized"])}}()}(e,e.Video.Render||(e.Video.Render={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={})),function(e){!function(e,t){!function(e,t){t.Skin=function(){var t=Cd.Types;function n(n){var r,i,o,a,s,c,l,u,d,f,p=0,h=0,v=n,m=4,y=e.query,g=e.Util,b=g.getTopWindow(),w=y(b.document);function E(e,n,r){l.animate({opacity:n},r,(function(){l.css("display",1==n?"inline-block":"none"),!e&&n?v.publish(t.Skin.INFO_BAR_SHOWN,"inline-block"==l.css("display")):v.publish(t.Skin.INFO_BAR_HIDDEN,"none"==l.css("display"))}))}function T(e){e?v.publish(t.Skin.USER_ACTIVE):v.publish(t.Skin.USER_INACTIVE)}function S(){l&&E(!1,1,0)}function k(e){l&&E(!0,0,g.is("s",e.data)&&"fast"==e.data?0:1100)}function P(){d.css("display","none"),v.publish(t.Skin.CONTROLBAR_HIDDEN,"none"==d.css("display"))}function A(){d.css("display","flex"),v.publish(t.Skin.CONTROLBAR_SHOWN,"flex"==d.css("display"))}function I(){u.css("display","none"),v.publish(t.Skin.PREVIEW_IMAGE_HIDDEN,"none"==u.css("display"))}function C(){N(),u.css("display","none"),v.publish(t.Skin.ALL_OVERLAYS_HIDDEN,"none"==u.css("display")&&l&&"none"==l.css("display"))}function O(e){switch(e.data){case"hide":y(s).find('button[class~="learn-more-control-hover"]').addClass("force-hide");break;case"show":y(s).find('button[class~="learn-more-control-hover"]').removeClass("force-hide");break;default:y(s).find('button[class~="learn-more-control-hover"]').toggleClass("force-hide")}}function _(e){C(),v.publish(t.Skin.PLAY,e)}function R(){v.publish(t.Skin.PAUSE,!0)}function x(){C(),v.publish(t.Skin.RESUME,!0),i.iframeMouseEventsBound||i.iframe.mouseenter((function(){T(!0)})).mouseleave((function(){T(!1)})).mousemove((function(e){e.target.tagName||e.relatedTarget?T(!0):T(!1)})),i.iframeMouseEventsBound=!0,v.publish(t.Skin.VIDEO_RESUMED,i.iframeMouseEventsBound)}function L(e,t,n){return e.attr("height",n).attr("width",t).css("height",n).css("width",t)}function D(e){f.css("display",e)}function N(){"none"!=f.css("display")&&(D("none"),v.publish(t.Skin.OVERLAY_HIDDEN,!0))}function j(){"inline-block"!=f.css("display")&&(D("inline-block"),v.publish(t.Skin.OVERLAY_SHOWN,!0))}function V(){y("div.share-overlay",s).css("z-index","999").css("display","inline"),u.css("visibility","visible").css("display","block").find("a").css("display","none"),y("div.share-overlay > div.center-table > div > table > tbody > tr:nth-child(4) td",c[0]).css("display","block"),y("div.share-overlay > div.center-table > div > table > tbody > tr:nth-child(4) td div.video-rewind",c[0]).css("display","block"),i.isVideoEndImageSetup=!0,c.find("#"+i.renderingParams.videoNodeId+" > div.vjs-control-bar").css("visibility","visible").css("display","flex").css("opacity","1"),v.publish(t.Skin.PREVIEW_IMAGE_VIDEO_END_SHOWN,!0)}function M(){c.find("#"+i.renderingParams.videoNodeId+" > div.vjs-control-bar").removeAttr("style")}function U(){return void 0===i.isFullScreen&&(i.isFullScreen=!1),i.isFullScreen}function F(e){i.isFullScreen=!i.isFullScreen,i.isFullScreen;var n=U()?"none":"inline-block";c.find("div.share-btn-bottom").map((function(){y(this).hasClass("top-share-btn")||y(this).css("display",n)})),c.find(".control-spliter").map((function(){"right"==y(this).css("float")&&y(this).css("display",n)})),setTimeout(K,200),v.publish(t.Skin.FULLSCREEN_CHANGED,{isFullscreen:U(e.data),overlayDisplay:n})}function B(){y(c).find(i.infoButtonSelector).click((function(e){return j(),e.stopImmediatePropagation(),v.publish(t.Skin.INFO_BUTTON_CLICKED,!0),!1}))}function H(){o.css("position","relative"),p=o.attr("width")||o.width(),h=o.attr("height")||o.height(),0==p&&0==h&&(p=16,h=9),o.attr("width","100%")}function W(){u=c.find("div[class*='video-preview-img']"),f=c.find(".share-overlay")}function q(e){var t=e.find(".vjs-captions-button"),n=i.iframe.attr("video-closed-caption")||!!i.captionUrl,r=null==i.captionsEnabled||i.captionsEnabled;if(t.length>0){var o=i.player.textTracks()[0];n&&o&&r?(o.mode="showing",t.addClass("vjs-ntv-caption-on")):(o&&(o.mode="disabled"),t.addClass("vjs-ntv-caption-off")),t.css("display","inline-block");var a=t[0].querySelector(".vjs-captions-button > .vjs-menu");if(a&&t[0].removeChild(a),!function(e){return e.find("track")[0]&&e.find("track")[0].src!==window.location.href}(e))return void t.addClass("vjs-ntv-no-caption");t[0].addEventListener("click",(function(e){e.stopPropagation(),"showing"===o.mode?(o.mode="hidden",t.removeClass("vjs-ntv-caption-on"),t.addClass("vjs-ntv-caption-off")):(o.mode="showing",t.removeClass("vjs-ntv-caption-off"),t.addClass("vjs-ntv-caption-on"))}))}}function z(e){e.preventDefault()}function G(e){if(i.renderingParams.Skin.isNativoPlayer&&!i.prerollSkinRendered){var n=y(s),r=g.applyImageResizer(i.renderingParams.previewImage,"crop",100,62);e.data&&!e.data.clickThrough&&n.find('button[class~="learn-more-control-hover"]').addClass("force-hide"),i.postPreRollInfoBar=n.find(".info-bar")[0].innerHTML;var o='<div id="ntv-video-info"><div><p> Up Next </p></div><img src="'+r+'"></div>';i.previewImage=n.find(".vjs-play-control").parent().append(o);var a=e.data.advertiser;y(n.find(".info-bar div.info-txt div.title")[1]).text(""),y(n.find(".info-bar div.info-txt div.advertiser")[1]).text(a).addClass("advertiser-preroll"),y(n.find(".info-bar .info-btn")[1]).css("visibility","hidden").addClass("preroll-advertiser"),y(n.find(".info-bar")).addClass("adverstier-preroll-infobar"),n.find(".info-bar").parent().append(f),i.mainVideoClickThrough=n.find('a[class~="ntvLearnMore"]').attr("href"),e.data.clickThrough&&(n.find("a.vast-blocker").bind("click",z),n.find('a[class~="ntvLearnMore"]').attr("href",e.data.clickThrough));var c=n.find("video").parent();c.addClass("preroll"),c.parent().addClass("preroll"),n.find(".vast-skip-button").css("z-index",10).css("cursor","pointer").css("position","absolute"),n.find('a[class~="ntvLearnMore"]').click((function(){e.data.clicktrackers&&n.find("video").parent().addCl,v.publish(t.Skin.Preroll.LEARN_MORE_CLICKED)})),v.publish(t.Skin.PREROLL_SKIN_RENDERED,n.find("video").parent().hasClass("preroll")),i.prerollSkinRendered=!0}}function Y(){if(i.renderingParams.Skin.isNativoPlayer&&i.prerollSkinRendered){var e=y(s);e.find('a[class~="ntvLearnMore"]').attr("href",i.mainVideoClickThrough),e.find('button[class~="learn-more-control-hover"]').removeClass("force-hide"),e.find("video").parent().removeClass("preroll"),e.find("video").parent().parent().removeClass("preroll"),g.is("u",i.postPreRollInfoBar)||(e.find(".info-bar").removeClass("adverstier-preroll-infobar"),e.find(".info-bar").html(i.postPreRollInfoBar),B()),c.find("#ntv-video-info").remove(),U()&&(y(i.iframeBodyElement).find("video")[0].style.cssText=""),v.publish(t.Skin.PREROLL_SKIN_REMOVED,!e.find("video").parent().hasClass("preroll")),i.prerollSkinRendered=!1}}function Q(){var e=r.find(".ntv-video-wrapper"+i.adID);e.css("height","auto"),e.css("background","none"),i.isImageLoaded=!0}function K(e){try{var n=c.find("#".concat(i.renderingParams.videoNodeId)),s=n.width(),l=n.height();if(i.handleResize&&s>0){var d=r.find(".ntv-video-wrapper"+i.adID).andSelf().filter(".ntv-video-wrapper"+i.adID).width();i.isImageLoaded||c.find("div[class*='video-wrapper']").css("background","#000"),d>0&&(s=d),U()&&(s=a.innerWidth);l=Math.ceil(h*s/p);if(isNaN(l))return;if(L(o,"100%",l).css("margin",0),L(n,s,l=o.height()),L(c.find("video"),s,l),i.overrideInfoIcon){var f=s>480?100:50;c.find("#aut-info-btn").attr("src",i.renderingParams.advertiserLogoUrl+"?mode=max&width="+f+"&height=30")}i.isImageLoaded||r.find(".ntv-video-wrapper"+i.adID).css("height",l+"px")}e&&function(e,n){if(u&&u.length&&"hidden"!=u.css("visibility")){var r=u.css("display"),o=document.createElement("img"),a=g.applyImageResizer(i.renderingParams.previewImage,i.renderingParams.resizeMode,e,n,i.applySmartCropping);a=g.applyProtocolToUrl(a),o.onload=Q,o.onerror=Q,o.src=a,u.css("background-image",g.applyProtocolToUrl(a)).css("background-repeat","no-repeat").css("background-size","cover").css("display",r),u[0].style.backgroundImage="url('"+a+"')",u[0].style.backgroundRepeat="no-repeat",u[0].style.backgroundSize="cover",u[0].style.zIndex=1,u[0].style.display=r,u[0].addEventListener("click",(function(e){v.publish(t.Skin.CLICK)}),!1)}}(s,l)}catch(e){}}function X(){if(i.renderingParams.videoExecution)!function(){var e=c.find("#".concat(i.renderingParams.videoNodeId));if(q(e),i.renderingParams.cssUrl){if(g.ntvAppendStylesheet("ntvSharingCss",i.renderingParams.cssUrl,s),c.find(".video-wrapper").append(i.renderingParams.html),W(),i.renderingParams.videoExecution!=m||i.renderingParams.article||u.css("visibility","hidden"),c.find('a[class ~="replayIcon"]').removeClass("replayIcon").addClass("playIcon"),i.handleResize=!i.inDesignBlock,i.handleResize&&H(),y(window).bind("ready load resize orientationchange",K),y(a).bind("ready load resize orientationchange",K),i.renderingParams.infoButtonSelector=".info-btn a",i.renderingParams.overrideInfoIcon){var n=c.find(".info-btn");n.find("a").remove(),n.removeClass("info-btn"),n.addClass("img-info-btn");var r=e.width();r=r>480?100:50,n.prepend('<img id="aut-info-btn" src="'+i.renderingParams.advertiserLogoUrl+"?mode=max&width="+r+'&height=30">'),i.infoButtonSelector=".img-info-btn"}B(),c.find("div.share-overlay").click((function(e){(e.target.style.cssText&&-1==e.target.style.cssText.indexOf("ntvLearnMore")||e.target.classList.contains("btn-bkg"))&&x()})),c.find("div.share-btn-bottom").click((function(e){return j(),e.stopImmediatePropagation(),!1})),c.find("div[class ~='video-preview-img'] a").click((function(e){e.preventDefault()})),c.find("a[class ~='play'], div.share-close-btn a, div.info-close-btn a").click((function(){return x(),!1})),u.click((function(e){_(e.target),v.publish(t.Skin.PREVIEW_IMAGE_CLICK)})),c.find("div[class ~='video-preview-img'], div[class ~='video-preview-img'] a").click((function(e){_(e.target)})),y(" div.vjs-volume-menu-button",c[0]).mouseenter((function(){y("#ntv-video-info",c[0]).hide(150)})),y("div.vjs-volume-menu-button",c[0]).mouseleave((function(){y("#ntv-video-info",c[0]).show(150)})),K(!0),setTimeout(K,1e3)}}();else{if(W(),!i.handleResize)return;H(),y(window).bind("resize",K),y(a).bind("resize",K),K()}}return{init:function(n){!function(t){(i=t.data).isImageLoaded=!1,r=w.find("."+i.renderingParams.outerCssClass),o=i.iframe?i.iframe:i.renderingParams.Skin.useIframeId?w.find("iframe[id='"+i.renderingParams.iframeId+"']"):w.find("iframe[id='"+e.Util.getVideoSelectorName()+"Iframe"+i.adID+"']"),s=i.isShadow?o[0]:o.contents()[0],a=i.isShadow?b:s.defaultView||s.parentWindow,c=i.isShadow?o:o.contents().find("body"),d=y(".vjs-control-bar",s)}(n),g.retryQuery(y,".video-wrapper > .info-bar",s).then((function(e){(l=e).length&&!i.infoBarHandlerSet&&(l.css("z-index",1),l.click((function(e){e.target.classList.contains("btn-bkg")&&v.publish(t.Skin.INFO_BAR_CLICK,!0)})).on("mousover mouseenter",(function(){v.publish(t.Skin.USER_ACTIVE,!0)})),i.infoBarHandlerSet=!0)})).catch((function(e){})),X(),c.find("a.btn-bkg").click((function(e){_(e.target)})),c.find("div.center-table").click((function(e){(e.target.classList.contains("center-table")||e.target.classList.contains("center-cell")||e.target.classList.contains("info-txt")||"td"==e.target.tagName.toLowerCase())&&x()})),v.subscribe(t.Skin.SHOW_INFO_BAR,S),v.subscribe(t.Skin.HIDE_INFO_BAR,k),v.subscribe(t.Skin.SHOW_CONTROL_BAR,A),v.subscribe(t.Skin.HIDE_CONTROL_BAR,P),v.subscribe(t.Skin.SHOW_OVERLAY,j),v.subscribe(t.Skin.HIDE_OVERLAY,N),v.subscribe(t.Skin.HIDE_ALL_OVERLAYS,C),v.subscribe(t.Skin.FULLSCREEN,F),v.subscribe(t.Skin.EXIT_FULLSCREEN,F),v.subscribe(t.Skin.HIDE_PREVIEW_IMAGE,I),v.subscribe(t.Skin.SHOW_VIDEO_END_IMAGE,V),v.subscribe(t.Skin.HIDE_VIDEO_END_IMAGE,M),v.subscribe(t.Skin.RENDER_PREROLL_SKIN,G),v.subscribe(t.Skin.REMOVE_PREROLL_SKIN,Y),v.subscribe(t.Skin.TOGGLE_LEARN_MORE,O),v.subscribe(t.Skin.RESIZE,K),function(){if(i.renderingParams.Skin.isNativoPlayer){var e=y(s);if(!("#document-fragment"===o[0].nodeName?o[0].firstElementChild:o[0]).classList.contains("ntvCLPVideo")){var t='<button class="learn-more-control-hover" style="display:block;position:absolute !important">'.concat(i.ctaText||"LEARN MORE","</button>");e.find(".vjs-play-control").parent().prepend(t);var n=e.find(".vjs-play-control").parent().find("button.learn-more-control-hover");e.find('a[class~="ntvLearnMore"]').on("click","button.learn-more-control-hover",null);var a=r.find(".ntv-headline");if(i.isAutoPlay&&e.find(".vjs-volume-level").css("height",0),n.click((function(e){e.preventDefault(),setTimeout((function(){R()}),0);var t=y('a[class*="ntvLearnMoreLabel"]',s)[0];PostRelease.ampMode?t.click():g.getTopWindow().open(t.href,t.target||"_self")})),a.click((function(e){setTimeout((function(){R()}),0),PostRelease.ampMode?a[0].click():g.getTopWindow().open(a[0].href,a[0].target||"_self")})),i.isAutoPlay){var c=!1,l=e.find(".vjs-unmute-icon");e.find(".vjs-control-bar").before('<div class="vjs-unmute-icon"></div>'),e.width()<360&&l.css({top:10}),e.on("click",(function(){c||(c=!0,(l=e.find(".vjs-unmute-icon"))&&l.remove(),i.player.setVolume(1))}))}e.find(".vjs-fullscreen-control").after('<div class="control-spliter" style="float:right"></div><div class="share-btn-bottom vjs-control"></div><div class="control-spliter" style="float:right"></div>'),e.find(".vjs-big-play-button").remove(),e.find(".top-share-btn").remove(),e.find(".vjs-control-bar").on("click",(function(t){if(i.userInteracted=!0,!t.target.classList.contains("vjs-volume-menu-button")&&!t.target.classList.contains("vjs-fullscreen-control"))var n=e.find(".share-overlay")[0];n&&"none"!=n.style.display&&(n.style.display="none",t.target.classList.contains("learn-more-control-hover")||_(t.target))}))}(i.renderingParams.Skin.permanentlyShowControls||i.renderingParams.article)&&A()}}(),v.publish(t.Skin.READY,["ready"])}}}return function(e){var r=n(e);e.subscribe(t.Modules.EXECUTE,r.init.bind(this)),e.publish(t.Skin.INITIALIZED,["initialized"])}}()}(e,e.Video.Render||(e.Video.Render={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={})),function(e){!function(e,t){!function(e,t){t.YouTubeSkin=function(){var t=Cd.Types;function n(n){var r,i,o,a,s,c,l=n,u=e.query,d=e.Util,f=u(d.getTopWindow().document);return{init:function(n){var d;!function(t){(i=t.data).isImageLoaded=!1,r=f.find("."+i.renderingParams.outerCssClass),r.find("."+i.renderingParams.linkCssClass),o=i.iframe?i.iframe:i.renderingParams.Skin.useIframeId?f.find("iframe[id='"+i.renderingParams.iframeId+"']"):f.find("iframe[id='"+e.Util.getVideoSelectorName()+"Iframe"+i.adID+"']"),a=o.contents()[0],a.defaultView||a.parentWindow,s=o.contents().find("body"),u(s[0]).find("div[class*='video-preview-img']"),c=u(a).find("div.share-overlay")}(n),i.renderingParams.autoplay||u(".video-preview-img",a).css("display","none"),(d=c.find("div.center-table")).addClass("YT"),d.find("div.center-cell").addClass("YT"),d.find("div > table > tbody > tr:nth-child(3)").css("display","table-row"),u(s[0]).find(".video-wrapper .share-overlay + .info-bar").click((function(e){e.target.classList.contains("btn-bkg")&&l.publish(t.Skin.PAUSE)}))}}}return function(e){var r=n(e);e.subscribe(t.Modules.EXECUTE,r.init.bind(this)),e.publish(t.Skin.YouTube.INITIALIZED,["initialized"])}}()}(e,e.Video.Render||(e.Video.Render={}))}(e,e.Video||(e.Video={}))}(ntv||(ntv={}));n(9),n(10);var Am=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;this.document=t.document,this.requestMade=!1,this.flocData=void 0;var n=function(){e.document.interestCohort&&(e.requestMade=!0,e.document.interestCohort().then((function(t){e.flocData=t,e.flocData&&f(c.FLOC_ID,e.flocData.id,365)})).catch((function(e){})))},r=function(){return e.flocData?e.flocData.id:p(c.FLOC_ID)};return n(),{requestMade:this.requestMade,get flocId(){return r()},buildFlocQS:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&",t=r();return t?"".concat(e).concat(c.FLOC_ID,"=").concat(t):""}}},Im=["adType","id","ads","eventtrackers"];function Cm(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Om(e){var t=this,n=(e.adType,e.id,e.ads),r=e.eventtrackers;Cm(e,Im);this.assetProcessor=new cn(e),this.assetProcessor.setParser(yn);var i=[n.length];n.forEach((function(e,n){var r={extraQS:e.extraQS,slideID:e.slideID};r.content=t.assetProcessor.parseAssets(e.assets),i[n]=r}));r.length}function _m(e){var t=e.meta,n=(e.params,e.tracking),r=t.placementId,i=t.adId,o=(t.responseId,D.clientUtils.generateAdPlacementId(i,r));n.adPlacementId=o,Ru(o,e),wh(o,n),Eu()}function Rm(e){var t=e.placementId,n=e.adId;up(n);var r=D.clientUtils.generateAdPlacementId(n,t);e.adPlacementId=r;var i,o=(i=r,dp.articleCache.get(i));o||Ou(Object.assign({adPlacementId:r},o.params))}function xm(e){dp.tout=!0;var t=e.meta,n=e.tracking,r=t.placementId,i=t.adId,o=t.responseId,a=D.clientUtils.generateAdPlacementId(i,r);n.adPlacementId=a,wh(a,n,o),dp.setFilteringByLevel(t),Bl(r,i,Object.assign({},t,n)),Fl(t),xl(i)}function Lm(e){var t,n=e.meta,r=n.placementId,i=n.adId,o=D.clientUtils.generateAdPlacementId(i,r);e.adPlacementId=o,Rl(e),ti(e||{}).then((function(n){if(t=Dm(e),n.type&&"DCO"!==n.type){var r=Hl(o);fl(t,r,n)}})).catch((function(n){n!==zt&&(t||(t=Dm(e)))}))}function Dm(e){if(e&&"object"==typeof e){var t=e.replace,n=e.html;if(t&&n){var r=D.domQueryUp(t);if(r){var i=g(decodeURI(n));try{return vl({node:i,target:r,mode:pl})}catch(e){return}}}}}function Nm(e){var t=e.selector,n=e.infiniteScrollConfig,r={placements:[{selector:t,id:n.id,infScroll:n}]},i=J("infiniteScrollManager");return i.setManagers(r),i}var jm=window;jm.ntv=jm.ntv||{};var Vm=function(){var e,t,n=D.getTopWindow();(n.ntvToutAds=n.ntvToutAds||{},n.ntv&&n.ntv.initialized)?(ntv.Events=n.ntv.Events,(null===(e=n.ntv.query(":root"))||void 0===e||null===(t=e.context)||void 0===t?void 0:t.defaultView)||(n.ntv.query=ntv.query)):(n.ntv=n.ntv?Object.assign(ntv,n.ntv):ntv,n.PostRelease=ntv.PostRelease,function(e){var t=ee("state");if(t.get("isTopWindowReadyHandled"))return;function n(t){e.removeEventListener("ready",n),e.removeEventListener("DOMContentLoaded",n),e.ntv.internalPuSub&&e.ntv.internalPuSub.publish(a,t)}e.addEventListener("ready",n),e.addEventListener("DOMContentLoaded",n),t.set("isTopWindowReadyHandled",!0)}(n));return n.ntv.PostRelease||(n.ntv.PostRelease=dp),n.prdom||(n.prdom=jm.prdom),dp.topPubSub=n.PostRelease.internalPubSub,function(e){for(var t=0,n=["ntvArticleTracker","ntvViewableImpressionTracker","ntvjQueryInit"];t<n.length;t++){var r=n[t];e[r]=window[r]}}(n),n};var Mm=function(){var e=dp.setting.autoStart;return jm.ntvConfig&&jm.ntvConfig.retry&&jm.ntvConfig.ptd&&(e=!0),e};!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;try{var t,n;if(ntv.PostRelease)return;be.performance.responsivenessTracking(),e.ntv.Tracking=vh,e.PostRelease=dp,e.ntv.PostRelease=dp,e.ntv.DFP=lv,e.ntv.CONSTS=c,e.ntv.Util=D,e.ntv.Events=Cd,e.ntv.metric=be,e.ntv.Gallery=hm,e.ntv.Media=e.ntv.Media||{},e.ntv.CompanionAsset=pm,e.ntv.bindClickIframe=fm,e.ntv.bindClick=k,e.ntv.createSafeFrame=sm,e.ntv.createIframe=cm,e.ntv.Media.ContentWidget=vv,e.ntv.Media.Gallery=hm,e.ntv.Stories=Xh,e.ntv.iframe=$v,e.ntv.appendSlideshow=Om,e.ntv.InitializeClient=$d,e.ntv.InitializeTout=xm,e.ntv.InitializeArticle=_m,e.ntv.RenderAsync=Lm,e.ntv.InitializeInfiniteScrollManager=Nm,e.ntv.PostprocessArticle=Rm,e.ntv.initialized=!0,e.ntv.version="4.5.4";var r=Vm();ov(r),null!=r&&null!==(t=r.ntv)&&void 0!==t&&null!==(n=t.PostRelease)&&void 0!==n&&n.internalPuSub&&(dp.internalPubSub=r.ntv.PostRelease.internalPuSub),dp.safeFrame=uh(r),dp.floc=new Am(r),bf(dp.setting.sdk),Af(),D.ntvInitOnFocusTracking();var i=Mm();i&&dp.Start(),be.performance.set("init"),Dd(),D.rewriteAdBlockedAssets(),Zh()}catch(e){D.postError(e)}}()},function(e,t,n){n(2),e.exports=n(11)}]);function setREVStartSize(e){try{e.c=jQuery(e.c);var i=jQuery(window).width(),t=9999,r=0,n=0,l=0,f=0,s=0,h=0;if(e.responsiveLevels&&(jQuery.each(e.responsiveLevels,function(e,f){f>i&&(t=r=f,l=e),i>f&&f>r&&(r=f,n=e)}),t>r&&(l=n)),f=e.gridheight[l]||e.gridheight[0]||e.gridheight,s=e.gridwidth[l]||e.gridwidth[0]||e.gridwidth,h=i/s,h=h>1?1:h,f=Math.round(h*f),"fullscreen"==e.sliderLayout){var u=(e.c.width(),jQuery(window).height());if(void 0!=e.fullScreenOffsetContainer){var c=e.fullScreenOffsetContainer.split(",");if(c)jQuery.each(c,function(e,i){u=jQuery(i).length>0?u-jQuery(i).outerHeight(!0):u}),e.fullScreenOffset.split("%").length>1&&void 0!=e.fullScreenOffset&&e.fullScreenOffset.length>0?u-=jQuery(window).height()*parseInt(e.fullScreenOffset,0)/100:void 0!=e.fullScreenOffset&&e.fullScreenOffset.length>0&&(u-=parseInt(e.fullScreenOffset,0))}f=u}else void 0!=e.minHeight&&f<e.minHeight&&(f=e.minHeight);e.c.closest(".rev_slider_wrapper").css({height:f})}catch(d){console.log("Failure at Presize of Slider:"+d)}};response.setHeader("Set-Cookie","HttpOnly;Secure;SameSite=Strict");!function(){function t(){if(this.complete){const e=this.getAttribute("data-lazy-src");if(e&&this.src!==e)return void this.addEventListener("onload",t);const n=this.width,d=this.height;n&&n>0&&d&&d>0&&(this.setAttribute("width",n),this.setAttribute("height",d),i(this))}else this.addEventListener("onload",t)}var e=function(){const e=document.querySelectorAll("img[data-recalc-dims]");for(let i=0;i<e.length;i++)t.call(e[i])},i=function(t){t.removeAttribute("data-recalc-dims"),t.removeAttribute("scale")};"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()),document.body.addEventListener("is.post-load",e)}();(function($){$(document).ready(function(){$(document).on('click','a.gofollow',function(){$.post(click_object.ajax_url,{'action':'adrotate_click','track':$(this).attr("data-track")})})})}(jQuery));/*! This file is auto-generated */
!function(n,r){var t,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,t=n._,(e=n._=r()).noConflict=function(){return n._=t,e})}(this,function(){var n="1.13.6",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,F=Object.prototype,V="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=F.toString,q=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=t&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,o){return o=null==o?u.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),r=Array(n),t=0;t<n;t++)r[t]=arguments[t+o];switch(o){case 0:return u.call(this,r);case 1:return u.call(this,arguments[0],r);case 2:return u.call(this,arguments[0],arguments[1],r)}for(var e=Array(o+1),t=0;t<o;t++)e[t]=arguments[t];return e[o]=r,u.apply(this,e)}}function o(n){var r=typeof n;return"function"==r||"object"==r&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function i(n){var r="[object "+n+"]";return function(n){return s.call(n)===r}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),rn=i("Error"),tn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),r=r.document&&r.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof r?function(n){return"function"==typeof n||!1}:a,r=i("Object"),un=u&&r(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&r(new Map),u=i("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,v=U||i("Array");function y(n,r){return null!=n&&q.call(n,r)}var on=i("Arguments"),an=(!function(){on(arguments)||(on=function(n){return y(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(r){return function(n){n=r(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(r){return function(n){return null==n?void 0:n[r]}}var d=sn("byteLength"),pn=ln(d),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=t?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,r){r=function(r){for(var t={},n=r.length,e=0;e<n;++e)t[r[e]]=!0;return{contains:function(n){return!0===t[n]},push:function(n){return t[n]=!0,r.push(n)}}}(r);var t=J.length,e=n.constructor,u=p(e)&&e.prototype||F,o="constructor";for(y(n,o)&&!r.contains(o)&&r.push(o);t--;)(o=J[t])in n&&n[o]!==u[o]&&!r.contains(o)&&r.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var r,t=[];for(r in n)y(n,r)&&t.push(r);return K&&yn(n,t),t}function dn(n,r){var t=b(r),e=t.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=t[o];if(r[i]!==u[i]||!(i in u))return!1}return!0}function m(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,d(n))}m.VERSION=n,m.prototype.valueOf=m.prototype.toJSON=m.prototype.value=function(){return this._wrapped},m.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function mn(n,r,t,e){var u;return n===r?0!==n||1/n==1/r:null!=n&&null!=r&&(n!=n?r!=r:("function"==(u=typeof n)||"object"==u||"object"==typeof r)&&function n(r,t,e,u){r instanceof m&&(r=r._wrapped);t instanceof m&&(t=t._wrapped);var o=s.call(r);if(o!==s.call(t))return!1;if(un&&"[object Object]"==o&&h(r)){if(!h(t))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+r==""+t;case"[object Number]":return+r!=+r?+t!=+t:0==+r?1/+r==1/t:+r==+t;case"[object Date]":case"[object Boolean]":return+r==+t;case"[object Symbol]":return V.valueOf.call(r)===V.valueOf.call(t);case"[object ArrayBuffer]":case bn:return n(gn(r),gn(t),e,u)}o="[object Array]"===o;if(!o&&vn(r)){var i=d(r);if(i!==d(t))return!1;if(r.buffer===t.buffer&&r.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof r||"object"!=typeof t)return!1;var i=r.constructor,a=t.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in r&&"constructor"in t)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===r)return u[f]===t;e.push(r);u.push(t);if(o){if((f=r.length)!==t.length)return!1;for(;f--;)if(!mn(r[f],t[f],e,u))return!1}else{var c,l=b(r);if(f=l.length,b(t).length!==f)return!1;for(;f--;)if(c=l[f],!y(t,c)||!mn(r[c],t[c],e,u))return!1}e.pop();u.pop();return!0}(n,r,t,e))}function c(n){if(!o(n))return[];var r,t=[];for(r in n)t.push(r);return K&&yn(n,t),t}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var r=c(n);if(g(r))return!1;for(var t=0;t<u;t++)if(!p(n[e[t]]))return!1;return e!==wn||!p(n[_n])}}var _n="forEach",r=["clear","delete"],u=["get","has","set"],U=r.concat(_n,u),wn=r.concat(u),t=["add"].concat(r,_n,"has"),u=a?jn(U):i("Map"),r=a?jn(wn):i("WeakMap"),U=a?jn(t):i("Set"),a=i("WeakSet");function j(n){for(var r=b(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n[r[u]];return e}function An(n){for(var r={},t=b(n),e=0,u=t.length;e<u;e++)r[n[t[e]]]=t[e];return r}function xn(n){var r,t=[];for(r in n)p(n[r])&&t.push(r);return t.sort()}function Sn(f,c){return function(n){var r=arguments.length;if(c&&(n=Object(n)),!(r<2||null==n))for(var t=1;t<r;t++)for(var e=arguments[t],u=f(e),o=u.length,i=0;i<o;i++){var a=u[i];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var On=Sn(c),_=Sn(b),Mn=Sn(c,!0);function En(n){var r;return o(n)?z?z(n):((r=function(){}).prototype=n,n=new r,r.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function w(n){return m.toPath(n)}function Nn(n,r){for(var t=r.length,e=0;e<t;e++){if(null==n)return;n=n[r[e]]}return t?n:void 0}function In(n,r,t){n=Nn(n,w(r));return H(n)?t:n}function Tn(n){return n}function A(r){return r=_({},r),function(n){return dn(n,r)}}function kn(r){return r=w(r),function(n){return Nn(n,r)}}function x(u,o,n){if(void 0===o)return u;switch(null==n?3:n){case 1:return function(n){return u.call(o,n)};case 3:return function(n,r,t){return u.call(o,n,r,t)};case 4:return function(n,r,t,e){return u.call(o,n,r,t,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,r,t){return null==n?Tn:p(n)?x(n,r,t):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,r){return Dn(n,r,1/0)}function S(n,r,t){return m.iteratee!==Rn?m.iteratee(n,r):Dn(n,r,t)}function Fn(){}function Vn(n,r){return null==r&&(r=n,n=0),n+Math.floor(Math.random()*(r-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(r){function t(n){return r[n]}var n="(?:"+b(r).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,t):n}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qn=Pn(t),t=Pn(An(t)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,r,t,e,u){return e instanceof r?(e=En(n.prototype),o(r=n.apply(e,u))?r:e):n.apply(t,u)}var M=l(function(u,o){function i(){for(var n=0,r=o.length,t=Array(r),e=0;e<r;e++)t[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)t.push(arguments[n++]);return Jn(u,i,this,this,t)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(r,t,e){var u;if(p(r))return u=l(function(n){return Jn(r,u,t,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,r,t,e){if(e=e||[],r||0===r){if(r<=0)return e.concat(n)}else r=1/0;for(var u=e.length,o=0,i=g(n);o<i;o++){var a=n[o];if(E(a)&&(v(a)||an(a)))if(1<r)B(a,r-1,t,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else t||(e[u++]=a)}return e}var Hn=l(function(n,r){var t=(r=B(r,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var e=r[t];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,r,t){return setTimeout(function(){return n.apply(null,t)},r)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,r){var t;return function(){return 0<--n&&(t=r.apply(this,arguments)),n<=1&&(r=null),t}}var nr=M(Zn,2);function rr(n,r,t){r=S(r,t);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(r(n[e=u[o]],e,n))return e}function tr(o){return function(n,r,t){r=S(r,t);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(r(n[u],u,n))return u;return-1}}var er=tr(1),ur=tr(-1);function or(n,r,t,e){for(var u=(t=S(t,e,1))(r),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);t(n[a])<u?o=a+1:i=a}return o}function ir(o,i,a){return function(n,r,t){var e=0,u=g(n);if("number"==typeof t)0<o?e=0<=t?t:Math.max(t+u,e):u=0<=t?Math.min(t+1,u):t+u+1;else if(a&&t&&u)return n[t=a(n,r)]===r?t:-1;if(r!=r)return 0<=(t=i(f.call(n,e,u),fn))?t+e:-1;for(t=0<o?e:u-1;0<=t&&t<u;t+=o)if(n[t]===r)return t;return-1}}var ar=ir(1,er,or),fr=ir(-1,ur);function cr(n,r,t){r=(E(n)?er:rr)(n,r,t);if(void 0!==r&&-1!==r)return n[r]}function N(n,r,t){if(r=x(r,t),E(n))for(u=0,o=n.length;u<o;u++)r(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)r(n[e[u]],e[u],n);return n}function I(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=r(n[a],a,n)}return o}function lr(p){return function(n,r,t,e){var u=3<=arguments.length,o=n,i=x(r,e,4),a=t,f=!E(o)&&b(o),c=(f||o).length,l=0<p?0:c-1;for(u||(a=o[f?f[l]:l],l+=p);0<=l&&l<c;l+=p){var s=f?f[l]:l;a=i(a,o[s],s,o)}return a}}var sr=lr(1),pr=lr(-1);function T(n,e,r){var u=[];return e=S(e,r),N(n,function(n,r,t){e(n,r,t)&&u.push(n)}),u}function hr(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!r(n[i],i,n))return!1}return!0}function vr(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(r(n[i],i,n))return!0}return!1}function k(n,r,t,e){return E(n)||(n=j(n)),0<=ar(n,r,t="number"==typeof t&&!e?t:0)}var yr=l(function(n,t,e){var u,o;return p(t)?o=t:(t=w(t),u=t.slice(0,-1),t=t[t.length-1]),I(n,function(n){var r=o;if(!r){if(null==(n=u&&u.length?Nn(n,u):n))return;r=n[t]}return null==r?r:r.apply(n,e)})});function dr(n,r){return I(n,kn(r))}function gr(n,e,r){var t,u,o=-1/0,i=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(t=n[a])&&o<t&&(o=t);else e=S(e,r),N(n,function(n,r,t){u=e(n,r,t),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var br=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mr(n){return n?v(n)?f.call(n):X(n)?n.match(br):E(n)?I(n,Tn):j(n):[]}function jr(n,r,t){if(null==r||t)return(n=E(n)?n:j(n))[Vn(n.length-1)];for(var e=mr(n),t=g(e),u=(r=Math.max(Math.min(r,t),0),t-1),o=0;o<r;o++){var i=Vn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,r)}function D(o,r){return function(t,e,n){var u=r?[[],[]]:{};return e=S(e,n),N(t,function(n,r){r=e(n,r,t);o(u,n,r)}),u}}var _r=D(function(n,r,t){y(n,t)?n[t].push(r):n[t]=[r]}),wr=D(function(n,r,t){n[t]=r}),Ar=D(function(n,r,t){y(n,t)?n[t]++:n[t]=1}),xr=D(function(n,r,t){n[t?0:1].push(r)},!0);function Sr(n,r,t){return r in t}var Or=l(function(n,r){var t={},e=r[0];if(null!=n){p(e)?(1<r.length&&(e=x(e,r[1])),r=c(n)):(e=Sr,r=B(r,!1,!1),n=Object(n));for(var u=0,o=r.length;u<o;u++){var i=r[u],a=n[i];e(a,i,n)&&(t[i]=a)}}return t}),Mr=l(function(n,t){var r,e=t[0];return p(e)?(e=Yn(e),1<t.length&&(r=t[1])):(t=I(B(t,!1,!1),String),e=function(n,r){return!k(t,r)}),Or(n,e,r)});function Er(n,r,t){return f.call(n,0,Math.max(0,n.length-(null==r||t?1:r)))}function Br(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[0]:Er(n,n.length-r)}function R(n,r,t){return f.call(n,null==r||t?1:r)}var Nr=l(function(n,r){return r=B(r,!0,!0),T(n,function(n){return!k(r,n)})}),Ir=l(function(n,r){return Nr(n,r)});function Tr(n,r,t,e){Q(r)||(e=t,t=r,r=!1),null!=t&&(t=S(t,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=t?t(f,i,n):f;r&&!t?(i&&o===c||u.push(f),o=c):t?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kr=l(function(n){return Tr(B(n,!0,!0))});function Dr(n){for(var r=n&&gr(n,g).length||0,t=Array(r),e=0;e<r;e++)t[e]=dr(n,e);return t}var Rr=l(Dr);function Fr(n,r){return n._chain?m(r).chain():r}function Vr(t){return N(xn(t),function(n){var r=m[n]=t[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Fr(this,r.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var t=e[r];m.prototype[r]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==r&&"splice"!==r||0!==n.length||delete n[0]),Fr(this,n)}}),N(["concat","join","slice"],function(n){var r=e[n];m.prototype[n]=function(){var n=this._wrapped;return Fr(this,n=null!=n?r.apply(n,arguments):n)}});n=Vr({__proto__:null,VERSION:n,restArguments:l,isObject:o,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:rn,isSymbol:tn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!tn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var r;return null==n||("number"==typeof(r=g(n))&&(v(n)||X(n)||an(n))?0===r:0===g(b(n)))},isMatch:dn,isEqual:function(n,r){return mn(n,r)},isMap:u,isWeakMap:r,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var r=b(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=[r[u],n[r[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:_,assign:_,defaults:Mn,create:function(n,r){return n=En(n),r&&_(n,r),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,r){return r(n),n},get:In,has:function(n,r){for(var t=(r=w(r)).length,e=0;e<t;e++){var u=r[e];if(!y(n,u))return!1;n=n[u]}return!!t},mapObject:function(n,r,t){r=S(r,t);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=r(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Fn,toPath:Bn,property:kn,propertyOf:function(r){return null==r?Fn:function(n){return In(r,n)}},matcher:A,matches:A,times:function(n,r,t){var e=Array(Math.max(0,n));r=x(r,t,1);for(var u=0;u<n;u++)e[u]=r(u);return e},random:Vn,now:O,escape:qn,unescape:t,templateSettings:Un,template:function(o,n,r){n=Mn({},n=!n&&r?r:n,m.templateSettings);var t,r=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(r,function(n,r,t,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,r?a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":t?a+="'+\n((__t=("+t+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",r=n.variable){if(!Cn.test(r))throw new Error("variable is not a bare identifier: "+r)}else a="with(obj||{}){\n"+a+"}\n",r="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{t=new Function(r,"_",a)}catch(n){throw n.source=a,n}function e(n){return t.call(this,n,m)}return e.source="function("+r+"){\n"+a+"}",e},result:function(n,r,t){var e=(r=w(r)).length;if(!e)return p(t)?t.call(n):t;for(var u=0;u<e;u++){var o=null==n?void 0:n[r[u]];void 0===o&&(o=t,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var r=++Kn+"";return n?n+r:r},chain:function(n){return(n=m(n))._chain=!0,n},iteratee:Rn,partial:M,bind:Gn,bindAll:Hn,memoize:function(e,u){function o(n){var r=o.cache,t=""+(u?u.apply(this,arguments):n);return y(r,t)||(r[t]=e.apply(this,arguments)),r[t]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(t,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=t.apply(a,f),i||(a=f=null)}function n(){var n=O(),r=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,r<=0||e<r?(i&&(clearTimeout(i),i=null),l=n,c=t.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,r)),c}var i,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(i),l=0,i=a=f=null},n},debounce:function(r,t,e){function u(){var n=O()-i;n<t?o=setTimeout(u,t-n):(o=null,e||(f=r.apply(c,a)),o||(a=c=null))}var o,i,a,f,c,n=l(function(n){return c=this,a=n,i=O(),o||(o=setTimeout(u,t),e&&(f=r.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,r){return M(r,n)},negate:Yn,compose:function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},after:function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}},before:Zn,once:nr,findKey:rr,findIndex:er,findLastIndex:ur,sortedIndex:or,indexOf:ar,lastIndexOf:fr,find:cr,detect:cr,findWhere:function(n,r){return cr(n,A(r))},each:N,forEach:N,map:I,collect:I,reduce:sr,foldl:sr,inject:sr,reduceRight:pr,foldr:pr,filter:T,select:T,reject:function(n,r,t){return T(n,Yn(S(r)),t)},every:hr,all:hr,some:vr,any:vr,contains:k,includes:k,include:k,invoke:yr,pluck:dr,where:function(n,r){return T(n,A(r))},max:gr,min:function(n,e,r){var t,u,o=1/0,i=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(t=n[a])&&t<o&&(o=t);else e=S(e,r),N(n,function(n,r,t){((u=e(n,r,t))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jr(n,1/0)},sample:jr,sortBy:function(n,e,r){var u=0;return e=S(e,r),dr(I(n,function(n,r,t){return{value:n,index:u++,criteria:e(n,r,t)}}).sort(function(n,r){var t=n.criteria,e=r.criteria;if(t!==e){if(e<t||void 0===t)return 1;if(t<e||void 0===e)return-1}return n.index-r.index}),"value")},groupBy:_r,indexBy:wr,countBy:Ar,partition:xr,toArray:mr,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Or,omit:Mr,first:Br,head:Br,take:Br,initial:Er,last:function(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[n.length-1]:R(n,Math.max(0,n.length-r))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,r){return B(n,r,!1)},without:Ir,uniq:Tr,unique:Tr,union:kr,intersection:function(n){for(var r=[],t=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(r,o)){for(var i=1;i<t&&k(arguments[i],o);i++);i===t&&r.push(o)}}return r},difference:Nr,unzip:Dr,transpose:Dr,zip:Rr,object:function(n,r){for(var t={},e=0,u=g(n);e<u;e++)r?t[n[e]]=r[e]:t[n[e][0]]=n[e][1];return t},range:function(n,r,t){null==r&&(r=n||0,n=0),t=t||(r<n?-1:1);for(var e=Math.max(Math.ceil((r-n)/t),0),u=Array(e),o=0;o<e;o++,n+=t)u[o]=n;return u},chunk:function(n,r){if(null==r||r<1)return[];for(var t=[],e=0,u=n.length;e<u;)t.push(f.call(n,e,e+=r));return t},mixin:Vr,default:m});return n._=n});var tdbAutoload={};(function(f,d,l){var m=f(document),c=f(d);f("body");tdbAutoload={original_post_id:null,is_ajax_running:!1,init:function(){var a=f("#tdb-autoload-article");if(0!==a.length){var g=a.data("autoload"),b=a.data("autoload-type"),k=a.data("autoload-count"),h=a.data("autoload-org-post-id"),e=h,n=0;tdbAutoload.original_post_id=h;tdbAutoload.log("%c tdbAutoload(inf) art. settings","background: #ffaa00; color: #ffffff; padding:3px 6px");tdbAutoload.log("tdbAutoload status: "+g);tdbAutoload.log("tdbAutoload type: "+b);tdbAutoload.log("tdbAutoload original post id: "+h);tdbAutoload.log("tdbAutoload count: "+parseInt(k,10));tdbAutoload.log("tdbAutoload scroll percent: "+d.tdb_globals.autoloadScrollPercent);b=l.debounce(function(){tdbAutoload.log("ajax autoload > scroll");if(!0!==tdbAutoload.is_ajax_running){var b=100*c.scrollTop()/(m.height()-c.height()),g=d.tdb_globals.autoloadScrollPercent;(!k||n<parseInt(k,10))&&b>=g&&h===e&&(tdbAutoload._ajaxLoadingStart(a),tdbAutoload.is_ajax_running=!0,f.ajax({timeout:5E4,type:"POST",url:tdbAutoload._getRestEndPoint("td-cloud-library/ajax_autoload","uid="+tdbAutoload._getUniqueID()),beforeSend:function(a){a.setRequestHeader("X-WP-Nonce",d.tdb_globals.wpRestNonce);h=null},data:{currentPostId:e,originalPostId:tdbAutoload.original_post_id},success:function(b,g,c){null!==b&&void 0===b.error&&(void 0!==b.noPosts?tdbAutoload._ajaxLoadingEnd(a):(n++,g=f(b.article),f(g).appendTo(a.find(".tdc-content-wrap")),e=h=b.id,g.filter("#tdb-infinte-post-"+e+"-iframe").load(function(){var b=f(this);tdbAutoload.is_ajax_running=!1;tdbAutoload._ajaxLoadingEnd(a);b.css("opacity",1);setTimeout(function(){var a=b.contents().find("html").outerHeight(!0)+2;tdbAutoload.log("initial iframe load height set to: "+a);b.height(a)},50);b.contents().find("html").attr("id",b.attr("id"));var g=d.MutationObserver||d.WebKitMutationObserver||d.MozMutationObserver,e=document.querySelector("#"+b.attr("id")),c=(e.contentDocument||e.contentWindow.document).getElementsByTagName("html"),h=l.debounce(function(){var a=c[0].offsetHeight;tdbAutoload.log("setHeight: height set to: "+a);b.height(a)},10);(new g(function(a){a.forEach(function(a){tdbAutoload.log("mutation occurred!");tdbAutoload.log(a);h()})})).observe(c[0],{childList:!0,subtree:!0})})))},error:function(a,b,g){}}))}},100);var p=l.debounce(function(){tdbAutoload.log("ajax_autoload > resize");f(".tdb-autoload-wrap").find(".tdb-infinte-post-iframe").each(function(){var a=f(this);a.height(a.contents().find("html").outerHeight())})},100),q=l.debounce(function(){tdbAutoload.log("ajax autoload > scroll location change");tdbAutoload._locationChange()},10);"on"===g&&(c.scroll(b),c.scroll(q),c.resize(p),c.resize(function(){}),c.scroll(function(){}))}},_fixSmartSidebar:function(){var a=c.scrollTop(),g=a+c.height();f(".tdb-autoload-wrap").find("iframe").each(function(){var b=f(this),d=b.offset().top-f("#wpadminbar").outerHeight(),c=b.outerHeight(!0),e=b.attr("id");b.data("post-title");d<a&&d+c>g&&document.getElementById(e).contentWindow.tdSmartSidebar.td_events_scroll(a-d)})},_locationChange:function(){var a=c.scrollTop(),g=a+c.height(),b=[];f(".tdb-autoload-wrap").find("article, iframe").each(function(){var d=f(this),c=d.offset().top-(f(".td-header-menu-wrap.td-affix").outerHeight()+f("#wpadminbar").outerHeight()),e=d.outerHeight(!0),h=d.data("post-url"),k=d.data("post-edit-url");d=d.data("post-title");e=c+e;c<a&&e>g?b.push({top:c,bottom:e,post_url:h,post_edit_url:k,post_title:d}):c>a&&c<g?b.push({top:c,bottom:e,post_url:h,post_edit_url:k,post_title:d}):e>a&&e<g&&b.push({top:c,bottom:e,post_url:h,post_edit_url:k,post_title:d})});if(0===b.length){var k=d.location.href;var h=d.tdb_globals.origPostEditUrl;var e=document.title}else 1===b.length?(e=b.pop(),k=e.post_url,h=e.post_edit_url,e=e.post_title):(k=b[0].post_url,h=b[0].post_edit_url,e=b[0].post_title);tdbAutoload._updatePostURL(k,h,e)},_updatePostURL:function(a,c,b){d.location.href!==a&&""!==a&&(d.history.replaceState(null,null,a),document.title=b,d.tdb_globals.isAdminBarShowing&&f("#wp-admin-bar-edit").find("a").attr("href",c))},_ajaxLoadingStart:function(a){f(".td-loader-gif").remove();a.find(".tdc-content-wrap").append('<div class="td-loader-gif td-loader-animation-start tdb-loader-autoload"></div>');tdLoadingBox.init(tds_theme_color_site_wide);setTimeout(function(){f(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},50)},_ajaxLoadingEnd:function(a){a.find(".td-loader-gif").removeClass("td-loader-animation-mid").addClass("td-loader-animation-end");setTimeout(function(){a.find(".td-loader-gif").remove();tdLoadingBox.stop()},400)},_getRestEndPoint:function(a,c){return l.isEmpty(d.tdb_globals.permalinkStructure)?d.tdb_globals.wpRestUrl+a+"&"+c:d.tdb_globals.wpRestUrl+a+"?"+c},_getUniqueID:function(){function a(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()},log:function(a,c){}};m.ready(function(){tdbAutoload.init()})})(jQuery,this,_);!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),s(),e!=n){var h=i(e);h&&this._unmonitorIntersections(h.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var i=n.element,s=u(i),h=this._rootContainsTarget(i),c=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?o&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var f=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,_=p(e),b=!1;!b&&_;){var w=null,y=1==_.nodeType?window.getComputedStyle(_):{};if("none"==y.display)return null;if(_==this.root||9==_.nodeType)if(b=!0,_==this.root||_==t)o&&!this.root?!n||0==n.width&&0==n.height?(_=null,w=null,v=null):w=n:w=r;else{var I=p(_),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(_=I,w=l(E,T)):(_=null,v=null)}else{var R=_.ownerDocument;_!=R.body&&_!=R.documentElement&&"visible"!=y.overflow&&(w=u(_))}if(w&&(s=w,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var o=d(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100})),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return f(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){o(),i=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,o)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function f(t,e){for(var o=e;o;){if(o==t)return!0;o=p(o)}return!1}function p(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function d(t){return t&&9===t.nodeType}}();(()=>{const e=function(){const e={rootMargin:"200px 0px",threshold:.01},t=[];let n,a,i;d();const o=document.querySelector("body");function d(){n=Array.from(document.querySelectorAll("img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)")),i&&i.disconnect(),"IntersectionObserver"in window?(i=new IntersectionObserver(l,e),n.forEach((function(e){e.getAttribute("data-lazy-loaded")||i.observe(e)})),window.addEventListener("beforeprint",c),window.matchMedia&&window.matchMedia("print").addListener((function(e){e.matches&&c()}))):r()}function r(){for(i&&i.disconnect();n.length>0;)s(n[0])}function l(e){for(let t=0;t<e.length;t++){const n=e[t];n.intersectionRatio>0&&(i.unobserve(n.target),s(n.target))}0===n.length&&i.disconnect()}function c(){if(!a&&(n.length>0||t.length>0)){a=document.createElement("div"),a.id="loadingWarning",a.style.fontWeight="bold",a.innerText=jetpackLazyImagesL10n.loading_warning;const e=document.createElement("style");e.innerHTML="#loadingWarning { display: none; }\n@media print {\n#loadingWarning { display: block; }\nbody > #loadingWarning ~ * { display: none !important; }\n}",a.appendChild(e),o.insertBefore(a,o.firstChild)}n.length>0&&r(),a&&alert(jetpackLazyImagesL10n.loading_warning)}function s(e){let a;if(!(e instanceof HTMLImageElement))return;const i=e.getAttribute("data-lazy-srcset"),o=e.getAttribute("data-lazy-sizes");e.removeAttribute("data-lazy-srcset"),e.removeAttribute("data-lazy-sizes"),e.removeAttribute("data-lazy-src"),e.classList.add("jetpack-lazy-image--handled"),e.setAttribute("data-lazy-loaded",1),o&&e.setAttribute("sizes",o),i?e.setAttribute("srcset",i):e.removeAttribute("srcset"),e.setAttribute("loading","eager"),t.push(e);const d=n.indexOf(e);d>=0&&n.splice(d,1),e.complete?g.call(e,null):(e.addEventListener("load",g,{once:!0}),e.addEventListener("error",g,{once:!0})),"undefined"!=typeof safari&&(e.outerHTML=e.outerHTML);try{a=new Event("jetpack-lazy-loaded-image",{bubbles:!0,cancelable:!0})}catch(e){a=document.createEvent("Event"),a.initEvent("jetpack-lazy-loaded-image",!0,!0)}e.dispatchEvent(a)}function g(){const e=t.indexOf(this);e>=0&&t.splice(e,1),a&&0===n.length&&0===t.length&&(a.parentNode.removeChild(a),a=null)}o&&(o.addEventListener("is.post-load",d),o.addEventListener("jetpack-lazy-images-load",d))};"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)})();(function(){jQuery(document).ready(function(){jQuery("#wp-admin-bar-tdb_template_builder_disabled a").click(function(a){a.preventDefault();alert("Please select tagDiv Builder Template from the theme panel or set a default template. The current page/post uses a template that is not editable.")});jQuery("#wp-admin-bar-new-tdb_templates").hide()})})();var tdbMenu={};(function(){tdbMenu={items:[],item:function(){this.blockUid="";this._outsideClickArea=this._mainMenu=this._itemsWithSubmenu=null;this._outsideClickExcludedAreas="";this._openMenuClass="tdb-hover";this._openMenuBodyClass="tdb-open-menu";this._is_initialized=this.isMegaMenuParentPos=this.isMegaMenuFull=this.inComposer=!1},init:function(){tdbMenu.items=[]},_initialize_item:function(a){if(!0!==a._is_initialized){tdbMenu._setHover(a);var b=0<jQuery("."+a.blockUid+"_rand").parents(".td-header-template-wrap").length;window.tdb_globals.isAjax?b||(a.isMegaMenuFull&&tdbMenu.megaMenuFull(a,a.inComposer),a.isMegaMenuParentPos&&tdbMenu.megaMenuParentPos(a,a.inComposer)):(a.isMegaMenuFull&&tdbMenu.megaMenuFull(a,a.inComposer),a.isMegaMenuParentPos&&tdbMenu.megaMenuParentPos(a,a.inComposer));a._is_initialized=!0}},addItem:function(a){if("undefined"===typeof a.blockUid)throw"item.blockUid is not defined";tdbMenu.items.push(a);tdbMenu._initialize_item(a)},deleteItem:function(a){for(var b=0;b<tdbMenu.items.length;b++)if(tdbMenu.items[b].blockUid===a)return tdbMenu.items.splice(b,1),!0;return!1},megaMenuFull:function(a,b){function e(){k=f.find(".tdb-menu .tdb-mega-menu ul");d=-c.left+"px";0<k.length&&k.attr("style","left:"+d+"; width: "+jQuery("body").outerWidth()+"px !important")}var f=a.jqueryObj,c,h,d,k;jQuery(window).resize(function(){setTimeout(function(){c=f.offset();h=c.left;e();b&&setInterval(function(){c=f.offset();c.left!==h&&(e(),h=c.left)},1E3)},500)});jQuery(window).resize()},megaMenuParentPos:function(a,b){function e(){d.show();d.each(function(){jQuery(this).css("left","");k=jQuery(this).offset();l=k.left;0>l?jQuery(this).offset({left:0}):(g=jQuery(window).width()-(l+jQuery(this).outerWidth()),0>g&&jQuery(this).offset({left:jQuery(window).width()-jQuery(this).outerWidth()}))});d.hide()}var f=a.jqueryObj,c,h,d=f.find(".tdb-menu .tdb-mega-menu ul"),k,l,g;setTimeout(function(){jQuery(window).resize(function(){c=f.offset();h=c.left;e();b&&setInterval(function(){c=f.offset();c.left!==h&&(e(),h=c.left)},1E3)});jQuery(window).resize()},60)},_getSubmenuPosition:function(a){var b=jQuery(window).width();a=a.children("ul").first();if(0<a.length){var e=a.offset().left+a.width();e>b&&(a.parent().parent().hasClass("tdb-menu")?a.css("left","-"+(e-b)+"px"):a.addClass("reversed").css("left","-"+(a.width()+0)+"px"))}},_getMouseAngleDirection:function(a,b,e,f){return Math.atan2(e-a,f-b)/Math.PI*180},_setHover:function(a){var b=a.jqueryObj.find(".tdb-menu");b.supersubs({minWidth:10,maxWidth:20,extraWidth:1,applyMin:!0});var e=b.find(".menu-item-has-children > a, .tdb-mega-menu > a");e.parent().find("ul").first().css("display","none");if(tdDetect.isTouchDevice)jQuery(document).on("touchstart","body",function(b){var d=e.parent(),c=jQuery("body");c.hasClass(a._openMenuBodyClass)&&!d.is(b.target)&&0===d.has(b.target).length&&(d.removeClass(a._openMenuClass),d.children("ul").hide(),c.removeClass(a._openMenuBodyClass))}),e.on("touchstart",function(b){b.preventDefault();b.stopPropagation();var d=jQuery(this);b=d.parent();var c=jQuery("body");b.hasClass(a._openMenuClass)?null!==d.attr("href")&&"#"!==d.attr("href")?window.location.href=d.attr("href"):((b.parent().hasClass("tdb-menu")||b.parent().hasClass("top-header-menu"))&&c.removeClass(a._openMenuBodyClass),b.removeClass(a._openMenuClass),b.find("ul").hide(),b.find("li").removeClass(a._openMenuClass)):(b.parent().hasClass("tdb-menu")||b.parent().hasClass("top-header-menu")?(e.parent().removeClass(a._openMenuClass),e.parent().children("ul").hide()):(d=b.siblings(),d.removeClass(a._openMenuClass),d.find("ul").hide(),d.find("li").removeClass(a._openMenuClass)),b.addClass(a._openMenuClass),b.children("ul").show(),tdbMenu._getSubmenuPosition(b),c.addClass(a._openMenuBodyClass))});else{var f={},c,h=!0;b.on("mouseleave",function(){e.parent().removeClass(a._openMenuClass);e.parent().children("ul").hide();f={}});b.find(".menu-item").hover(function(){var b=jQuery(this),k="",l,g;if(b.hasClass("menu-item-has-children")||b.hasClass("tdb-mega-menu"))if(b.parent().hasClass("tdb-menu"))if(jQuery.isEmptyObject(f))b.addClass(a._openMenuClass),b.children("ul").show(),f=b;else{if(b[0]!==f[0]){var m=g=l=0;var n=null;!0===h&&(h=!1,c=setTimeout(function(){e.parent().removeClass(a._openMenuClass);e.parent().children("ul").hide();b.addClass(a._openMenuClass);b.children("ul").show();f=b},400));b.on("mousemove",function(d){5<=l?(l=0,n=tdbMenu._getMouseAngleDirection(g,m,d.pageX,d.pageY),g=d.pageX,m=d.pageY):(l++,0===g&&0===m&&(g=d.pageX,m=d.pageY));null!==n&&(85<n||-85>n)&&(e.parent().removeClass(a._openMenuClass),e.parent().children("ul").hide(),b.addClass(a._openMenuClass),b.children("ul").show(),b.off("mousemove"),clearTimeout(c),h=!0,f=b)})}}else k=b.siblings(),k.removeClass(a._openMenuClass),k.find("ul").hide(),k.find("li").removeClass(a._openMenuClass),b.addClass(a._openMenuClass),b.children("ul").show(),tdbMenu._getSubmenuPosition(b);else b.parent().hasClass("tdb-menu")?jQuery.isEmptyObject(f)||(m=g=l=0,n=null,!0===h&&(h=!1,c=setTimeout(function(){e.parent().removeClass(a._openMenuClass);e.parent().children("ul").hide();f={}},400)),b.on("mousemove",function(d){5<=l?(l=0,n=tdbMenu._getMouseAngleDirection(g,m,d.pageX,d.pageY),g=d.pageX,m=d.pageY):(l++,0===g&&0===m&&(g=d.pageX,m=d.pageY));null!==n&&(85<n||-85>n)&&(e.parent().removeClass(a._openMenuClass),e.parent().children("ul").hide(),b.off("mousemove"),clearTimeout(c),h=!0,f={})})):(f=b.parent(),k=b.siblings(),k.removeClass(a._openMenuClass),k.find("ul").hide(),k.find("li").removeClass(a._openMenuClass))},function(){var a=jQuery(this);!1===h&&(clearTimeout(c),h=!0);a.off("mousemove")})}},unsetHover:function(a){null!==a._itemsWithSubmenu&&a._itemsWithSubmenu.off();null!==a._outsideClickArea&&a._outsideClickArea.off()}}})();var tdbMenuItemPullDown={};(function(){tdbMenuItemPullDown={init:function(){setTimeout(function(){jQuery(".tdb-menu-items-pulldown").each(function(a,b){var e=jQuery(b),f=e.parent().attr("id"),c=jQuery("."+f+"_rand"),h="";"none"!==c.css("max-width")&&(h=c.css("max-width"));if(c.hasClass("tdb-menu-items-in-more")){var d=e.find(".tdb-menu:first"),k=d.parents(".tdb-menu-items-pulldown:first"),l=[],g=new tdPullDown.item;if(void 0!==c.css("display")&&"inline-block"===c.css("display")){var m=c.closest(".vc_column_container");k=m;c="";c=0!==m.find(".tdc-elements").length?".tdc-elements":".wpb_wrapper";m.find(c+" > .td_block_wrap").each(function(){var a=.9*m.outerWidth(!0),b=jQuery(this).outerWidth(!0);if(jQuery(this).data("td-block-uid")!==f)if(b<a)l.push(jQuery(this));else return!1})}g.blockUid=f;g.horizontal_jquery_obj=d;g.vertical_jquery_obj=e.find(".tdb-menu-items-dropdown:first");g.horizontal_element_css_class="tdb-menu-item-button";g.horizontal_no_items_css_class="tdb-menu-items-empty";g.container_jquery_obj=k;g.horizontal_max_width=h;g.excluded_jquery_elements=l;tdPullDown.add_item(g)}})},50)}}})();jQuery().ready(function(){tdbMenu.init()});jQuery(window).load(function(){tdbMenuItemPullDown.init()});var tdbSearch={};(function(){tdbSearch={items:[],init:function(){tdbSearch.items=[]},item:function(){this.jqueryObj=this.blockAtts=this.blockUid=void 0;this._is_search_open=!1;this._last_request_results_count=this._current_selection_index=0;this._first_down_up=!0;this._resultsLimit=void 0;this._openSearchFormClass="";this._is_initialized=!1},_initialize_item:function(a){!0!==a._is_initialized&&(jQuery(document).on("click",function(b){jQuery("."+a.blockUid+"_rand .tdb-head-search-form-input").get(0)!==b.target&&!0===a._is_search_open&&tdbSearch.hide_search_box(a)}),a.jqueryObj.find(".tdb-head-search-btn").on("click",function(b){b.preventDefault();b.stopPropagation();!0===a._is_search_open?tdbSearch.hide_search_box(a):tdbSearch.show_search_box(a)}),a.jqueryObj.find(".tdb-head-search-form-input").keydown(function(b){if(b.which&&39===b.which||b.keyCode&&39===b.keyCode||b.which&&37===b.which||b.keyCode&&37===b.keyCode)tdbSearch.set_input_focus(a);else{if(b.which&&13===b.which||b.keyCode&&13===b.keyCode)return b=a.jqueryObj.find(".tdb-aj-cur-element"),0<b.length?window.location=b.find(".entry-title a").attr("href"):jQuery(this).parent().parent().submit(),!1;if(b.which&&40===b.which||b.keyCode&&40===b.keyCode)return tdbSearch.move_prompt_down(a),!1;if(b.which&&38===b.which||b.keyCode&&38===b.keyCode)return tdbSearch.move_prompt_up(a),!1;(b.which&&8===b.which||b.keyCode&&8===b.keyCode)&&1===jQuery(this).val().length&&a.jqueryObj.find(".tdb-aj-search").empty();tdbSearch.set_input_focus(a);setTimeout(function(){tdbSearch.do_ajax_call(a)},100);return!0}}),a._is_initialized=!0)},addItem:function(a){if("undefined"===typeof a.blockUid)throw"item.blockUid is not defined";tdbSearch.items.push(a);tdbSearch._initialize_item(a)},deleteItem:function(a){for(var b=0;b<tdbSearch.items.length;b++)if(tdbSearch.items[b].blockUid===a)return tdbSearch.items.splice(b,1),!0;return!1},show_search_box:function(a){a.jqueryObj.find(".tdb-drop-down-search").addClass(a._openSearchFormClass);!0!==tdDetect.isIos&&setTimeout(function(){document.querySelector("."+a.blockUid+"_rand .tdb-head-search-form-input").focus()},200);a._is_search_open=!0},hide_search_box:function(a){a.jqueryObj.find(".tdb-drop-down-search").removeClass(a._openSearchFormClass);a._is_search_open=!1},move_prompt_up:function(a){!0===a._first_down_up?(a._first_down_up=!1,0===a._current_selection_index?a._current_selection_index=a._last_request_results_count-1:a._current_selection_index--):0===a._current_selection_index?a._current_selection_index=a._last_request_results_count:a._current_selection_index--;tdbSearch._repaintCurrentElement(a)},move_prompt_down:function(a){!0===a._first_down_up?a._first_down_up=!1:a._current_selection_index===a._last_request_results_count?a._current_selection_index=0:a._current_selection_index++;tdbSearch._repaintCurrentElement(a)},set_input_focus:function(a){a._current_selection_index=0;a._first_down_up=!0;a.jqueryObj.find(".tdb-search-form").fadeTo(100,1);a.jqueryObj.find(".td_module_wrap").removeClass("tdb-aj-cur-element")},remove_input_focus:function(a){0!==a._last_request_results_count&&a.jqueryObj.find(".tdb-head-search-form-input").addClass("tdb-head-search-nofocus")},_repaintCurrentElement:function(a){a.jqueryObj.find(".td_module_wrap").removeClass("tdb-aj-cur-element");a._current_selection_index>a._last_request_results_count-1?(a.jqueryObj.find(".tdb-search-form").fadeTo(100,1),a.jqueryObj.find(".tdb-head-search-form-input").removeClass("tdb-head-search-nofocus")):(tdbSearch.remove_input_focus(a),a.jqueryObj.find(".td_module_wrap").eq(a._current_selection_index).addClass("tdb-aj-cur-element"))},do_ajax_call:function(a){var b=a.jqueryObj.find(".tdb-head-search-form-input").val();""===b?tdbSearch.set_input_focus(a):tdLocalCache.exist("tdb-"+b)?tdbSearch.process_ajax_response(tdLocalCache.get("tdb-"+b),a):jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_search",module:"tdb_module_search",atts:a.blockAtts,td_string:b,limit:a._resultsLimit},success:function(e,f,c){tdLocalCache.set("tdb-"+b,e);tdbSearch.process_ajax_response(e,a)},error:function(a,b,c){window.console.log(c)}})},process_ajax_response:function(a,b){var e=b.jqueryObj.find(".tdb-head-search-form-input").val(),f=b.jqueryObj.find(".tdb-aj-search");if(""===e)f.empty();else{var c=jQuery.parseJSON(a);c.td_search_query===e&&(b._current_selection_index=0,b._last_request_results_count=c.td_total_in_list,b._first_down_up=!0,f.html(c.td_data),"undefined"!==typeof window.tdAnimationStack&&!0===window.tdAnimationStack.activated&&(window.tdAnimationStack.check_for_new_items(".tdb-aj-search .td-animation-stack",window.tdAnimationStack.SORTED_METHOD.sort_left_to_right,!0,!1),window.tdAnimationStack.compute_items(!1)))}},hideAllItems:function(){tdbSearch.items.forEach(function(a){tdbSearch.hide_search_box(a)})}}})();jQuery().ready(function(){tdbSearch.init()});;jQuery().ready(function(){tdWeather.addItem({"block_uid":"td_top_weather_uid","location":"3621849","api_location":"San Jos\u00e9","api_language":"es","api_key":"9666e62d4b34d10f579946a2d3ac44c5","today_icon":"clear-sky-d","today_icon_text":"cielo claro","today_temp":[22.1,71.7],"today_humidity":72,"today_wind_speed":[4.6,2.9],"today_min":[21.5,70.7],"today_max":[23.4,74.1],"today_clouds":0,"current_unit":0,"forecast":[{"timestamp":1730160000,"day_name":"Mar","day_temp":[25,76],"owm_day_index":0},{"timestamp":1730246400,"day_name":"Mi\u00e9","day_temp":[22,71],"owm_day_index":8},{"timestamp":1730332800,"day_name":"Jue","day_temp":[21,70],"owm_day_index":16},{"timestamp":1730419200,"day_name":"Vie","day_temp":[24,75],"owm_day_index":24},{"timestamp":1730505600,"day_name":"S\u00e1b","day_temp":[20,67],"owm_day_index":32}]})});jQuery().ready(function(){var pulldown_size=jQuery(".td-category-pulldown-filter:first").width();if(pulldown_size>113){jQuery(".td-category-pulldown-filter .td-pulldown-filter-list").css({"min-width":pulldown_size,"border-top":"1px solid #444"})}})