function getViewportSize(){var n=window,t="inner";return"innerWidth"in window||(t="client",n=document.documentElement||document.body),{width:n[t+"Width"],height:n[t+"Height"]}}function fixIE8rgba(){var n=jQuery,t,i;isOldIE()===8&&(t=[".pi-tooltip"],i=n(t.join(",")),i.each(function(){var r=n(this),u=r.css("background"),t=u.match(/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d{1,3})\)/),i=t?rgba2hex(t[1],t[2],t[3],t[4]):"#000000";t&&i&&r.css("background","filter: progid:DXImageTransform.Microsoft.gradient(startColorStr="+i+", EndColorStr="+i+")")}))}function isOldIE(){var n=navigator.appVersion.match(/MSIE (\d)\.\d*/);return n?n[1]:!1}function rgb2hex(n){return n||(n="rgb(0,0,0)"),n=n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),"#"+hex(n[1])+hex(n[2])+hex(n[3])}function hex(n){return isNaN(n)?"00":hexDigits[(n-n%16)/16]+hexDigits[n%16]}function rgba2hex(n,t,i,r){if(n>255||t>255||i>255||r>255)throw"Invalid color component";return(256+n).toString(16).substr(1)+(16777216+(t<<16)|i<<8|r).toString(16).substr(1)}function getElementHeight(n){var u=jQuery,t=0,r=n.css("visibility"),i=n.css("display");return i=="none"||i=="none !important"?(n.css({visibility:"hidden",display:"block"}),t=n.outerHeight(),n.css({visibility:r,display:i})):t=n.outerHeight(),t}function PiImagesLoader(n,t,i){var r={},u=jQuery;r.$el=n?typeof n=="string"?jQuery(n):n:0;r.$imgs=r.$el.find("img");r.imgsQ=r.$imgs.length;r.imgsQ_loaded=0;r.delay=i?i:0;r.started=0;r.loaderShown=0;r.$loadingAnimation=0;r.$dots=0;r.s={c:{}};r.s.dotDistance=14;r.s.dotQuantity=3;r.s.dotAnimationSpeed=100;r.s.c.loading="pi-loader";r.s.c.dot="pi-loader-dot";r.s.c.dotActive="pi-loader-dot-active";r.callback=t&&typeof t=="function"?t:function(){};r.addLoadingAnimation=function(){var n,t;for(r.loaderShown=!0,n='<span class="'+r.s.c.loading+'"><span><span>',t=0;t<r.s.dotQuantity;t++)n+='<span class="'+r.s.c.dot+'"><\/span>';n+="<\/span><\/span><\/span>";u(n).appendTo(r.$el);r.$loadingAnimation=r.$el.find("."+r.s.c.loading);r.$dots=r.$loadingAnimation.find("."+r.s.c.dot);r.activeDotNum=0;requestAnimationFrame(r.loadingDotsAnimate,r.$el)};r.hideLoadingAnimation=function(){r.loaderShown=0;r.$dots.each(function(){u(this).removeClass(r.s.c.dotActive)});r.$loadingAnimation.remove()};r.loadingDotsAnimate=function(n){var u,i,t;r.$loadingAnimation&&(r.loadingAnimationStartTime||(r.loadingAnimationStartTime=n),u=n-r.loadingAnimationStartTime>=200?1:0,u&&(r.loadingAnimationStartTime=n,i=r.$dots.eq(r.activeDotNum),t=i.prev(),t.get(0)||(t=r.$dots.eq(r.s.dotQuantity-1)),i.addClass(r.s.c.dotActive),t.removeClass(r.s.c.dotActive),r.activeDotNum++,r.activeDotNum>=r.s.dotQuantity+1&&(r.activeDotNum=0)),requestAnimationFrame(r.loadingDotsAnimate))};r.check_images_states=function(){r.$imgs.each(function(){var n=new Image,t=new Image,i=u(this).attr("src");n.src=i;n.complete?r.image_was_loaded():(jQuery(t).load(function(){r.image_was_loaded()}).error(function(){r.image_was_loaded()}),t.src=i)});r.addLoadingAnimation()};r.image_was_loaded=function(){r.imgsQ_loaded++;r.check_ready_state()};r.check_ready_state=function(){r.imgsQ!=r.imgsQ_loaded||r.started||(r.started=!0,setTimeout(function(){r.callback();r.loaderShown&&r.hideLoadingAnimation()},r.delay))};r.init=function(){r.imgsQ>0?r.check_images_states():r.callback()};r.init()}function PiSlider(n,t){var i={},r=jQuery;return i.$el=n,i.s={speed:2e3,slideDelay:35,autoplayDelay:0,preload:0,preloadDelay:1e3,action:"fade",circular:0,enableArrows:0,enablePagination:0,enableSwipes:0,enableKeys:0,c:{pane:"pi-slider",paneWrapper:"pi-slider-wrapper",paneFast:"pi-slider-fast",slide:"pi-slide",slideTransparent:"pi-slide-transparent",pagination:"pi-slider-pagination",page:"pi-slider-page",arrow:"pi-slider-arrow",arrowLeft:"pi-slider-arrow-left",arrowRight:"pi-slider-arrow-right",slideActive:"pi-slide-active",pageActive:"pi-slider-page-active",arrowActive:"pi-slider-arrow-active",arrowDisabled:"pi-slider-arrow-disabled"},debug:0},t&&r.extend(i.s,t),i.init=function(){i.$doc=r(document);i.cssTransisions=1;i.$paneWrapper=i.$el.parents("."+i.s.c.paneWrapper).eq(0);i.$pane=i.$el.hasClass(i.s.c.pane)?i.$el:i.$el.find("."+i.s.c.pane);i.$slides=i.$el.find("."+i.s.c.slide);i.autoPlayInterval=0;i.slidesQ=i.$slides.length;i.slidesQ<=0||(i.slideWidth=i.$slides.eq(0).width(),i.slideOuterWidth=i.$slides.eq(0).outerWidth(),i.slideMargin=(i.slideOuterWidth-i.slideWidth)/2,i.slidesWidth=i.slideOuterWidth*i.slidesQ,i.sceneWidth=i.$paneWrapper.width(),i.margin=(i.sceneWidth-i.slideWidth)/2,i.way=i.slideWidth-i.margin,i.slidesTransparent=[],i.current=-1,i.s.debug&&(console.log("SCENE"+i.sceneWidth),console.log("MARGIN"+i.margin),console.log("WAY"+i.way)),i.beforeStart(),i.addSwipeActions())},i.beforeStart=function(){i.s.preload?new PiImagesLoader(i.$paneWrapper,i.start,i.s.preloadDelay):i.start()},i.start=function(){if(i.s.enablePagination&&i.slidesQ>1){i.$paneWrapper.append('<div class="'+i.s.c.pagination+'"><\/div>');i.$pagination=i.$paneWrapper.find("."+i.s.c.pagination);var n=0;i.$slides.each(function(){active=0==n?i.s.c.pageActive:"";i.$pagination.append('<span class="'+i.s.c.page+" "+active+'"><span><\/span><\/span>');n++});i.$pages=i.$pagination.find("."+i.s.c.page);i.$pages.click(function(){var n=r(this).index();i.current!=n&&i.applyAnimation(n)});"slide"==i.s.action&&i.prepareSlides()}i.s.enableArrows&&i.slidesQ>1&&(i.$paneWrapper.append('<div class="'+i.s.c.arrow+" "+i.s.c.arrowLeft+' "><span><\/span><\/div>'),i.$paneWrapper.append('<div class="'+i.s.c.arrow+" "+i.s.c.arrowRight+' "><span><\/span><\/div>'),i.$leftArrow=i.$paneWrapper.find("."+i.s.c.arrowLeft),i.$rightArrow=i.$paneWrapper.find("."+i.s.c.arrowRight),i.s.circular||i.$leftArrow.addClass(i.s.c.arrowDisabled),i.$leftArrow.click(function(){i.toPrev()}),i.$rightArrow.click(function(){i.toNext()}));i.s.enableKeys&&i.slidesQ>1&&i.$doc.keydown(function(n){"37"==(n.keyCode||n.which)?i.toPrev():"39"==(n.keyCode||n.which)&&i.toNext()});i.applyAnimation(0);i.s.autoplayDelay&&i.startAutoplay();i.resizeGallery()},i.applyAnimation=function(n,t){t||(t=0);"slide"==i.s.action?i.moveSlide(n,t):"fade"==i.s.action&&i.fadeSlide(n);i.current=n;i.checkArrowsState(n);i.checkPagesState(n)},i.checkPagesState=function(n){i.s.enablePagination&&i.slidesQ>1&&(i.$pages.removeClass(i.s.c.pageActive),i.$pages.eq(n).addClass(i.s.c.pageActive))},i.checkArrowsState=function(n){i.s.enableArrows&&i.slidesQ>1&&!i.s.circular&&(0==n?i.$leftArrow.addClass(i.s.c.arrowDisabled):i.$leftArrow.removeClass(i.s.c.arrowDisabled),n==i.slidesQ-1?i.$rightArrow.addClass(i.s.c.arrowDisabled):i.$rightArrow.removeClass(i.s.c.arrowDisabled))},i.moveSlide=function(n,t){var o=t||0,e=o?0:i.s.speed,f=i.$slides.eq(i.current),u=i.$slides.eq(n);f.removeClass(i.s.c.slideActive);i.cssTransisions?(f.css({"-webkit-transform":"translateX("+-i.slideOuterWidth+"px)","-moz-transform":"translateX("+-i.slideOuterWidth+"px)","-o-transform":"translateX("+-i.slideOuterWidth+"px)",transform:"translateX("+-i.slideOuterWidth+"px)"}),u.addClass("pi-no-transitions").css({"-webkit-transform":"translateX("+i.slideOuterWidth+"px)","-moz-transform":"translateX("+i.slideOuterWidth+"px)","-o-transform":"translateX("+i.slideOuterWidth+"px)",transform:"translateX("+i.slideOuterWidth+"px)"}),setTimeout(function(){u.removeClass("pi-no-transitions").addClass(i.s.c.slideActive).css({"-webkit-transform":"translateX(0px)","-moz-transform":"translateX(0px)","-o-transform":"translateX(0px)",transform:"translateX(0px)"})},10)):(f.stop().animate({left:-i.slideOuterWidth,opacity:0},e,"easeInOutExpo",function(){r(this).css({left:i.slideOuterWidth})}),u.stop().animate({left:0,opacity:1},e,"easeInOutExpo"),u.addClass(i.s.c.slideActive))},i.fadeSlide=function(n){var t=i.$slides.eq(i.current),r=i.$slides.eq(n);t.removeClass(i.s.c.slideActive);r.addClass(i.s.c.slideActive);i.cssTransisions||r.stop().animate({opacity:1},i.s.speed,"easeOutQuad",function(){t.fadeTo(0,0)})},i.prepareSlides=function(){i.$slides.each(function(n){0!=n&&r(this).css(i.cssTransisions?{"-webkit-transform":"translateX("+i.slideOuterWidth+"px)","-moz-transform":"translateX("+i.slideOuterWidth+"px)","-o-transform":"translateX("+i.slideOuterWidth+"px)",transform:"translateX("+i.slideOuterWidth+"px)"}:{left:i.slideOuterWidth+"px"})})},i.toNext=function(){i.current<i.slidesQ-1?i.applyAnimation(i.current+1):i.s.circular&&i.applyAnimation(0)},i.toPrev=function(){i.current>0?i.applyAnimation(i.current-1):i.s.circular&&i.applyAnimation(i.slidesQ-1)},i.startAutoplay=function(){i.autoPlayInterval=setInterval(function(){i.toNext()},i.s.autoplayDelay)},i.stopAutoplay=function(){clearInterval(i.autoPlayInterval)},i.resizeGallery=function(){},i.addSwipeActions=function(){i.s.enableSwipes&&r.fn.swipe&&"function"==typeof r.fn.swipe&&i.$pane.swipe({swipeStatus:function(n,t,r){"end"==t&&("left"==r?i.toNext():"right"==r&&i.toPrev())},allowPageScroll:"vertical",excludedElements:""})},i.init(),i}function revslider_showDoubleJqueryError(n){var t="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";t+="<br> This includes make eliminates the revolution slider libraries, and make it not work.";t+="<br><br> To fix it you can:<br>&nbsp;&nbsp;&nbsp; 1. In the Slider Settings -> Troubleshooting set option:  <strong><b>Put JS Includes To Body<\/b><\/strong> option to true.";t+="<br>&nbsp;&nbsp;&nbsp; 2. Find the double jquery.js include and remove it.";t="<span style='font-size:16px;color:#BC0C06;'>"+t+"<\/span>";jQuery(n).show().html(t)}var hexDigits,piBounds,console,oldgs,punchgs;(function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return typeof i=="function"?i:(t.push(n),Function.constructor.apply(null,t))}function u(n){return n==="GET"||n==="POST"}function o(n,t){u(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function s(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){var f;switch(u){case"BEFORE":f=r.firstChild;n("<div />").html(i).contents().each(function(){r.insertBefore(this,f)});break;case"AFTER":n("<div />").html(i).contents().each(function(){r.appendChild(this)});break;case"REPLACE-WITH":n(r).replaceWith(i);break;default:n(r).html(i)}}))}function f(t,r){var e,h,f,c;(e=t.getAttribute("data-ajax-confirm"),!e||window.confirm(e))&&(h=n(t.getAttribute("data-ajax-loading")),c=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,n.extend(r,{type:t.getAttribute("data-ajax-method")||undefined,url:t.getAttribute("data-ajax-url")||undefined,cache:!!t.getAttribute("data-ajax-cache"),beforeSend:function(n){var r;return o(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(t,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(t,arguments)},success:function(n,r,u){s(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(t,arguments)},error:function(){i(t.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(t,arguments)}}),r.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=r.type.toUpperCase(),u(f)||(r.type="POST",r.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(r))}function h(t){var i=n(t).data(e);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",r="unobtrusiveAjaxClickTarget",e="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=n(u.parents("form")[0]),e=u.offset();f.data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){f.removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var f=i.currentTarget.name,e=n(i.target),u=n(e.parents("form")[0]);u.data(t,f?[{name:f,value:i.currentTarget.value}]:[]);u.data(r,e);setTimeout(function(){u.removeData(t);u.removeData(r)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var e=n(this).data(t)||[],u=n(this).data(r),o=u&&u.hasClass("cancel");(i.preventDefault(),o||h(this))&&f(this,{url:this.action,type:this.method||"GET",data:e.concat(n(this).serializeArray())})})})(jQuery),function(n){typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)}(function(n){function rt(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=v),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(h);i||(i=new ut(this,t),r.data(h,i))})}function ut(rt,ut){function wi(t){if(!cu()&&!(n(t.target).closest(ut.excludedElements,ft).length>0)){var u=t.originalEvent?t.originalEvent:t,f,e=r?u.touches[0]:u;return(et=tt,r?ot=u.touches.length:t.preventDefault(),ht=0,ct=null,pt=null,st=0,wt=0,bt=0,at=1,yt=0,lt=au(),ei=yu(),yr(),!r||ot===ut.fingers||ut.fingers===c||ii()?(ir(0,e),yi=dt(),ot==2&&(ir(1,u.touches[1]),wt=bt=rr(lt[0].start,lt[1].start)),(ut.swipeStatus||ut.pinchStatus)&&(f=vt(u,et))):f=!1,f===!1)?(et=i,vt(u,et),f):(ci(!0),null)}}function bi(n){var u=n.originalEvent?n.originalEvent:n,o,h,f,e,l;et===t||et===i||pr()||(h=r?u.touches[0]:u,f=wr(h),oi=dt(),r&&(ot=u.touches.length),et=s,ot==2&&(wt==0?(ir(1,u.touches[1]),wt=bt=rr(lt[0].start,lt[1].start)):(wr(u.touches[1]),bt=rr(lt[0].end,lt[1].end),pt=wu(lt[0].end,lt[1].end)),at=pu(wt,bt),yt=Math.abs(wt-bt)),ot===ut.fingers||ut.fingers===c||!r||ii()?(ct=du(f.start,f.end),gr(n,ct),ht=bu(f.start,f.end),st=kr(),vu(ct,ht),(ut.swipeStatus||ut.pinchStatus)&&(o=vt(u,et)),(!ut.triggerOnTouchEnd||ut.triggerOnTouchLeave)&&(e=!0,ut.triggerOnTouchLeave&&(l=gu(this),e=nf(f.end,l)),!ut.triggerOnTouchEnd&&e?et=gi(s):ut.triggerOnTouchLeave&&!e&&(et=gi(t)),(et==i||et==t)&&vt(u,et))):(et=i,vt(u,et)),o===!1&&(et=i,vt(u,et)))}function ki(n){var u=n.originalEvent;return r&&u.touches.length>0?(hu(),!0):(pr()&&(ot=pi),n.preventDefault(),oi=dt(),st=kr(),nr()?(et=i,vt(u,et)):ut.triggerOnTouchEnd||ut.triggerOnTouchEnd==!1&&et===s?(et=t,vt(u,et)):!ut.triggerOnTouchEnd&&ar()?(et=t,ti(u,et,y)):et===s&&(et=i,vt(u,et)),ci(!1),null)}function ni(){ot=0;oi=0;yi=0;wt=0;bt=0;at=1;yr();ci(!1)}function di(n){var i=n.originalEvent;ut.triggerOnTouchLeave&&(et=gi(t),vt(i,et))}function ur(){ft.unbind(ui,wi);ft.unbind(fi,ni);ft.unbind(ai,bi);ft.unbind(vi,ki);gt&&ft.unbind(gt,di);ci(!1)}function gi(n){var r=n,f=er(),u=fr(),e=nr();return!f||e?r=i:u&&n==s&&(!ut.triggerOnTouchEnd||ut.triggerOnTouchLeave)?r=t:!u&&n==t&&ut.triggerOnTouchLeave&&(r=i),r}function vt(n,u){var f=undefined;return tu()||hr()?f=ti(n,u,k):(nu()||ii())&&f!==!1&&(f=ti(n,u,d)),ou()&&f!==!1?f=ti(n,u,g):su()&&f!==!1?f=ti(n,u,nt):eu()&&f!==!1&&(f=ti(n,u,y)),u===i&&ni(n),u===t&&(r?n.touches.length==0&&ni(n):ni(n)),f}function ti(r,s,h){var c=undefined;if(h==k){if(ft.trigger("swipeStatus",[s,ct||null,ht||0,st||0,ot]),ut.swipeStatus&&(c=ut.swipeStatus.call(ft,r,s,ct||null,ht||0,st||0,ot),c===!1))return!1;if(s==t&&sr()){if(ft.trigger("swipe",[ct,ht,st,ot]),ut.swipe&&(c=ut.swipe.call(ft,r,ct,ht,st,ot),c===!1))return!1;switch(ct){case u:ft.trigger("swipeLeft",[ct,ht,st,ot]);ut.swipeLeft&&(c=ut.swipeLeft.call(ft,r,ct,ht,st,ot));break;case f:ft.trigger("swipeRight",[ct,ht,st,ot]);ut.swipeRight&&(c=ut.swipeRight.call(ft,r,ct,ht,st,ot));break;case e:ft.trigger("swipeUp",[ct,ht,st,ot]);ut.swipeUp&&(c=ut.swipeUp.call(ft,r,ct,ht,st,ot));break;case o:ft.trigger("swipeDown",[ct,ht,st,ot]);ut.swipeDown&&(c=ut.swipeDown.call(ft,r,ct,ht,st,ot))}}}if(h==d){if(ft.trigger("pinchStatus",[s,pt||null,yt||0,st||0,ot,at]),ut.pinchStatus&&(c=ut.pinchStatus.call(ft,r,s,pt||null,yt||0,st||0,ot,at),c===!1))return!1;if(s==t&&or())switch(pt){case l:ft.trigger("pinchIn",[pt||null,yt||0,st||0,ot,at]);ut.pinchIn&&(c=ut.pinchIn.call(ft,r,pt||null,yt||0,st||0,ot,at));break;case a:ft.trigger("pinchOut",[pt||null,yt||0,st||0,ot,at]);ut.pinchOut&&(c=ut.pinchOut.call(ft,r,pt||null,yt||0,st||0,ot,at))}}return h==y?(s===i||s===t)&&(clearTimeout(hi),tr()&&!ru()?(kt=dt(),hi=setTimeout(n.proxy(function(){kt=null;ft.trigger("tap",[r.target]);ut.tap&&(c=ut.tap.call(ft,r,r.target))},this),ut.doubleTapThreshold)):(kt=null,ft.trigger("tap",[r.target]),ut.tap&&(c=ut.tap.call(ft,r,r.target)))):h==g?(s===i||s===t)&&(clearTimeout(hi),kt=null,ft.trigger("doubletap",[r.target]),ut.doubleTap&&(c=ut.doubleTap.call(ft,r,r.target))):h==nt&&(s===i||s===t)&&(clearTimeout(hi),kt=null,ft.trigger("longtap",[r.target]),ut.longTap&&(c=ut.longTap.call(ft,r,r.target))),c}function fr(){var n=!0;return ut.threshold!==null&&(n=ht>=ut.threshold),n}function nr(){var n=!1;return ut.cancelThreshold!==null&&ct!==null&&(n=br(ct)-ht>=ut.cancelThreshold),n}function dr(){return ut.pinchThreshold!==null?yt>=ut.pinchThreshold:!0}function er(){return ut.maxTimeThreshold?st>=ut.maxTimeThreshold?!1:!0:!0}function gr(n,t){if(ut.allowPageScroll===v||ii())n.preventDefault();else{var i=ut.allowPageScroll===b;switch(t){case u:(ut.swipeLeft&&i||!i&&ut.allowPageScroll!=p)&&n.preventDefault();break;case f:(ut.swipeRight&&i||!i&&ut.allowPageScroll!=p)&&n.preventDefault();break;case e:(ut.swipeUp&&i||!i&&ut.allowPageScroll!=w)&&n.preventDefault();break;case o:(ut.swipeDown&&i||!i&&ut.allowPageScroll!=w)&&n.preventDefault()}}}function or(){var n=cr(),t=lr(),i=dr();return n&&t&&i}function ii(){return!!(ut.pinchStatus||ut.pinchIn||ut.pinchOut)}function nu(){return!!(or()&&ii())}function sr(){var n=er(),t=fr(),i=cr(),r=lr(),u=nr();return!u&&r&&i&&t&&n}function hr(){return!!(ut.swipe||ut.swipeStatus||ut.swipeLeft||ut.swipeRight||ut.swipeUp||ut.swipeDown)}function tu(){return!!(sr()&&hr())}function cr(){return ot===ut.fingers||ut.fingers===c||!r}function lr(){return lt[0].end.x!==0}function ar(){return!!ut.tap}function tr(){return!!ut.doubleTap}function iu(){return!!ut.longTap}function vr(){if(kt==null)return!1;var n=dt();return tr()&&n-kt<=ut.doubleTapThreshold}function ru(){return vr()}function uu(){return(ot===1||!r)&&(isNaN(ht)||ht===0)}function fu(){return st>ut.longTapThreshold&&ht<it}function eu(){return!!(uu()&&ar())}function ou(){return!!(vr()&&tr())}function su(){return!!(fu()&&iu())}function hu(){si=dt();pi=event.touches.length+1}function yr(){si=0;pi=0}function pr(){var n=!1,t;return si&&(t=dt()-si,t<=ut.fingerReleaseThreshold&&(n=!0)),n}function cu(){return!!(ft.data(h+"_intouch")===!0)}function ci(n){n===!0?(ft.bind(ai,bi),ft.bind(vi,ki),gt&&ft.bind(gt,di)):(ft.unbind(ai,bi,!1),ft.unbind(vi,ki,!1),gt&&ft.unbind(gt,di,!1));ft.data(h+"_intouch",n===!0)}function ir(n,t){var i=t.identifier!==undefined?t.identifier:0;return lt[n].identifier=i,lt[n].start.x=lt[n].end.x=t.pageX||t.clientX,lt[n].start.y=lt[n].end.y=t.pageY||t.clientY,lt[n]}function wr(n){var i=n.identifier!==undefined?n.identifier:0,t=lu(i);return t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function lu(n){for(var t=0;t<lt.length;t++)if(lt[t].identifier==n)return lt[t]}function au(){for(var n=[],t=0;t<=5;t++)n.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return n}function vu(n,t){t=Math.max(t,br(n));ei[n].distance=t}function br(n){return ei[n]?ei[n].distance:undefined}function yu(){var n={};return n[u]=li(u),n[f]=li(f),n[e]=li(e),n[o]=li(o),n}function li(n){return{direction:n,distance:0}}function kr(){return oi-yi}function rr(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function pu(n,t){var i=t/n*1;return i.toFixed(2)}function wu(){return at<1?a:l}function bu(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function ku(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function du(n,t){var i=ku(n,t);return i<=45&&i>=0?u:i<=360&&i>=315?u:i>=135&&i<=225?f:i>45&&i<135?o:e}function dt(){var n=new Date;return n.getTime()}function gu(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function nf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}var ri=r||!ut.fallbackToMouseEvents,ui=ri?"touchstart":"mousedown",ai=ri?"touchmove":"mousemove",vi=ri?"touchend":"mouseup",gt=ri?null:"mouseleave",fi="touchcancel",ht=0,ct=null,st=0,wt=0,bt=0,at=1,yt=0,pt=0,ei=null,ft=n(rt),et="start",ot=0,lt=null,yi=0,oi=0,si=0,pi=0,kt=0,hi=null;try{ft.bind(ui,wi);ft.bind(fi,ni)}catch(tf){n.error("events not supported "+ui+","+fi+" on jQuery.swipe")}this.enable=function(){return ft.bind(ui,wi),ft.bind(fi,ni),ft};this.disable=function(){return ur(),ft};this.destroy=function(){return ur(),ft.data(h,null),ft};this.option=function(t,i){if(ut[t]!==undefined){if(i===undefined)return ut[t];ut[t]=i}else n.error("Option "+t+" does not exist on jQuery.swipe.options");return null}}var u="left",f="right",e="up",o="down",l="in",a="out",v="none",b="auto",k="swipe",d="pinch",y="tap",g="doubletap",nt="longtap",p="horizontal",w="vertical",c="all",it=10,tt="start",s="move",t="end",i="cancel",r="ontouchstart"in window,h="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(h);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(!i&&(typeof t=="object"||!t))return rt.apply(this,arguments);return r};n.fn.swipe.defaults={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,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};n.fn.swipe.phases={PHASE_START:tt,PHASE_MOVE:s,PHASE_END:t,PHASE_CANCEL:i};n.fn.swipe.directions={LEFT:u,RIGHT:f,UP:e,DOWN:o,IN:l,OUT:a};n.fn.swipe.pageScroll={NONE:v,HORIZONTAL:p,VERTICAL:w,AUTO:b};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:c}});!function(){var c,k,d,e,o,l,a,s,t,i,h,r,u,v,y,p,w,b,f={}.hasOwnProperty,n=function(n,t){function r(){this.constructor=n}for(var i in t)f.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n};!function(){var i,r,f,n,u,t,e;for(u=["ms","moz","webkit","o"],t=0,e=u.length;t<e;t++){if(n=u[t],window.requestAnimationFrame)break;window.requestAnimationFrame=window[n+"RequestAnimationFrame"];window.cancelAnimationFrame=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]}if(i=null,f=0,r={},requestAnimationFrame){if(!window.cancelAnimationFrame)return i=window.requestAnimationFrame,window.requestAnimationFrame=function(n,t){var u;return u=++f,i(function(){if(!r[u])return n()},t),u},window.cancelAnimationFrame=function(n){return r[n]=!0}}else return window.requestAnimationFrame=function(n){var t,r,u,i;return t=(new Date).getTime(),i=Math.max(0,16-(t-u)),r=window.setTimeout(function(){return n(t+i)},i),u=t+i,r},window.cancelAnimationFrame=function(n){return clearTimeout(n)}}();String.prototype.hashCode=function(){var u,n,r,t,i;if(n=0,this.length===0)return n;for(r=t=0,i=this.length;0<=i?t<i:t>i;r=0<=i?++t:--t)u=this.charCodeAt(r),n=(n<<5)-n+u,n=n&n;return n};y=function(n){var t,i;for(t=Math.floor(n/3600),i=Math.floor((n-t*3600)/60),n-=t*3600+i*60,n+="",i+="";i.length<2;)i="0"+i;while(n.length<2)n="0"+n;return t=t?t+":":"",t+i+":"+n};u=function(n){return h(n.toFixed(0))};p=function(n,t){var i,r;for(i in t)f.call(t,i)&&(r=t[i],n[i]=r);return n};v=function(n,t){var i,r,u;r={};for(i in n)f.call(n,i)&&(u=n[i],r[i]=u);for(i in t)f.call(t,i)&&(u=t[i],r[i]=u);return r};h=function(n){var r,i,t,u;for(n+="",i=n.split("."),t=i[0],u="",i.length>1&&(u="."+i[1]),r=/(\d+)(\d{3})/;r.test(t);)t=t.replace(r,"$1,$2");return t+u};r=function(n){return n.charAt(0)==="#"?n.substring(1,7):n};i=function(){function n(n,t){n==null&&(n=!0);this.clear=t!=null?t:!0;n&&AnimationUpdater.add(this)}return n.prototype.animationSpeed=32,n.prototype.update=function(n){var t;return(n==null&&(n=!1),n||this.displayedValue!==this.value)?(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),t=this.value-this.displayedValue,this.displayedValue=Math.abs(t/this.animationSpeed)<=.001?this.value:this.displayedValue+t/this.animationSpeed,this.render(),!0):!1},n}();o=function(i){function r(){return w=r.__super__.constructor.apply(this,arguments)}return n(r,i),r.prototype.displayScale=1,r.prototype.setTextField=function(n){return this.textField=n instanceof t?n:new t(n)},r.prototype.setMinValue=function(n,t){var f,i,e,r,u;if(this.minValue=n,t==null&&(t=!0),t){for(this.displayedValue=this.minValue,r=this.gp||[],u=[],i=0,e=r.length;i<e;i++)f=r[i],u.push(f.displayedValue=this.minValue);return u}},r.prototype.setOptions=function(n){return n==null&&(n=null),this.options=v(this.options,n),this.textField&&(this.textField.el.style.fontSize=n.fontSize+"px"),this.options.angle>.5&&(this.gauge.options.angle=.5),this.configDisplayScale(),this},r.prototype.configDisplayScale=function(){var i,r,n,u,t;return u=this.displayScale,this.options.highDpiSupport===!1?delete this.displayScale:(r=window.devicePixelRatio||1,i=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=r/i),this.displayScale!==u&&(t=this.canvas.G__width||this.canvas.width,n=this.canvas.G__height||this.canvas.height,this.canvas.width=t*this.displayScale,this.canvas.height=n*this.displayScale,this.canvas.style.width=""+t+"px",this.canvas.style.height=""+n+"px",this.canvas.G__width=t,this.canvas.G__height=n),this},r}(i);t=function(){function n(n){this.el=n}return n.prototype.render=function(n){return this.el.innerHTML=u(n.displayedValue)},n}();c=function(t){function i(n,t){this.elem=n;this.text=t!=null?t:!1;this.value=1*this.elem.innerHTML;this.text&&(this.value=0)}return n(i,t),i.prototype.displayedValue=0,i.prototype.value=0,i.prototype.setVal=function(n){return this.value=1*n},i.prototype.render=function(){var n;return n=this.text?y(this.displayedValue.toFixed(0)):h(u(this.displayedValue)),this.elem.innerHTML=n},i}(i);k={create:function(n){var r,i,t,u;for(i=[],t=0,u=n.length;t<u;t++)r=n[t],i.push(new c(r));return i}};s=function(t){function i(n){this.gauge=n;this.ctx=this.gauge.ctx;this.canvas=this.gauge.canvas;i.__super__.constructor.call(this,!1,!1);this.setOptions()}return n(i,t),i.prototype.displayedValue=0,i.prototype.value=0,i.prototype.options={strokeWidth:.035,length:.1,color:"#000000"},i.prototype.setOptions=function(n){return n==null&&(n=null),p(this.options,n),this.length=this.canvas.height*this.options.length,this.strokeWidth=this.canvas.height*this.options.strokeWidth,this.maxValue=this.gauge.maxValue,this.minValue=this.gauge.minValue,this.animationSpeed=this.gauge.animationSpeed,this.options.angle=this.gauge.options.angle},i.prototype.render=function(){var n,t,i,r,u,f,e,o,s;return n=this.gauge.getAngle.call(this,this.displayedValue),t=this.canvas.width/2,i=this.canvas.height*.9,o=Math.round(t+this.length*Math.cos(n)),s=Math.round(i+this.length*Math.sin(n)),f=Math.round(t+this.strokeWidth*Math.cos(n-Math.PI/2)),e=Math.round(i+this.strokeWidth*Math.sin(n-Math.PI/2)),r=Math.round(t+this.strokeWidth*Math.cos(n+Math.PI/2)),u=Math.round(i+this.strokeWidth*Math.sin(n+Math.PI/2)),this.ctx.fillStyle=this.options.color,this.ctx.beginPath(),this.ctx.arc(t,i,this.strokeWidth,0,Math.PI*2,!0),this.ctx.fill(),this.ctx.beginPath(),this.ctx.moveTo(f,e),this.ctx.lineTo(o,s),this.ctx.lineTo(r,u),this.ctx.fill()},i}(i);d=function(){function n(n){this.elem=n}return n.prototype.updateValues=function(n){return this.value=n[0],this.maxValue=n[1],this.avgValue=n[2],this.render()},n.prototype.render=function(){var n,t;return this.textField&&this.textField.text(u(this.value)),this.maxValue===0&&(this.maxValue=this.avgValue*2),t=this.value/this.maxValue*100,n=this.avgValue/this.maxValue*100,$(".bar-value",this.elem).css({width:t+"%"}),$(".typical-value",this.elem).css({width:n+"%"})},n}();a=function(t){function i(n){this.canvas=n;i.__super__.constructor.call(this);this.percentColors=null;typeof G_vmlCanvasManager!="undefined"&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas));this.ctx=this.canvas.getContext("2d");this.gp=[new s(this)];this.setOptions();this.render()}return n(i,t),i.prototype.elem=null,i.prototype.value=[20],i.prototype.maxValue=80,i.prototype.minValue=0,i.prototype.displayedAngle=0,i.prototype.displayedValue=0,i.prototype.lineWidth=40,i.prototype.paddingBottom=.1,i.prototype.percentColors=null,i.prototype.options={colorStart:"#6fadcf",colorStop:void 0,gradientType:0,strokeColor:"#e0e0e0",pointer:{length:.8,strokeWidth:.035},angle:.15,lineWidth:.44,fontSize:40,limitMax:!1,percentColors:[[0,"#a9d70b"],[.5,"#f9c802"],[1,"#ff0000"]]},i.prototype.setOptions=function(n){var r,t,f,u;for(n==null&&(n=null),i.__super__.setOptions.call(this,n),this.configPercentColors(),this.lineWidth=this.canvas.height*(1-this.paddingBottom)*this.options.lineWidth,this.radius=this.canvas.height*(1-this.paddingBottom)-this.lineWidth,this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.render(),u=this.gp,t=0,f=u.length;t<f;t++)r=u[t],r.setOptions(this.options.pointer),r.render();return this},i.prototype.configPercentColors=function(){var f,e,n,o,t,i,u;if(this.percentColors=null,this.options.percentColors!==void 0){for(this.percentColors=[],u=[],n=t=0,i=this.options.percentColors.length-1;0<=i?t<=i:t>=i;n=0<=i?++t:--t)o=parseInt(r(this.options.percentColors[n][1]).substring(0,2),16),e=parseInt(r(this.options.percentColors[n][1]).substring(2,4),16),f=parseInt(r(this.options.percentColors[n][1]).substring(4,6),16),u.push(this.percentColors[n]={pct:this.options.percentColors[n][0],color:{r:o,g:e,b:f}});return u}},i.prototype.set=function(n){var t,f,e,i,u,o,r;if(n instanceof Array||(n=[n]),n.length>this.gp.length)for(t=i=0,r=n.length-this.gp.length;0<=r?i<r:i>r;t=0<=r?++i:--i)this.gp.push(new s(this));for(t=0,f=!1,u=0,o=n.length;u<o;u++)e=n[u],e>this.maxValue&&(this.maxValue=this.value*1.1,f=!0),this.gp[t].value=e,this.gp[t++].setOptions({maxValue:this.maxValue,angle:this.options.angle});if(this.value=n[n.length-1],f){if(!this.options.limitMax)return AnimationUpdater.run()}else return AnimationUpdater.run()},i.prototype.getAngle=function(n){return(1+this.options.angle)*Math.PI+(n-this.minValue)/(this.maxValue-this.minValue)*(1-this.options.angle*2)*Math.PI},i.prototype.getColorForPercentage=function(n,t){var i,e,u,r,f,o,s;if(n===0)i=this.percentColors[0].color;else for(i=this.percentColors[this.percentColors.length-1].color,u=o=0,s=this.percentColors.length-1;0<=s?o<=s:o>=s;u=0<=s?++o:--o)if(n<=this.percentColors[u].pct){t===!0?(f=this.percentColors[u-1],e=this.percentColors[u],r=(n-f.pct)/(e.pct-f.pct),i={r:Math.floor(f.color.r*(1-r)+e.color.r*r),g:Math.floor(f.color.g*(1-r)+e.color.g*r),b:Math.floor(f.color.b*(1-r)+e.color.b*r)}):i=this.percentColors[u].color;break}return"rgb("+[i.r,i.g,i.b].join(",")+")"},i.prototype.getColorForValue=function(n,t){var i;return i=(n-this.minValue)/(this.maxValue-this.minValue),this.getColorForPercentage(i,t)},i.prototype.render=function(){var u,n,o,i,t,r,s,f,e;for(t=this.canvas.width/2,i=this.canvas.height*(1-this.paddingBottom),u=this.getAngle(this.displayedValue),this.textField&&this.textField.render(this),this.ctx.lineCap="butt",this.options.customFillStyle!==void 0?n=this.options.customFillStyle(this):this.percentColors!==null?n=this.getColorForValue(this.displayedValue,!0):this.options.colorStop!==void 0?(n=this.options.gradientType===0?this.ctx.createRadialGradient(t,i,9,t,i,70):this.ctx.createLinearGradient(0,0,t,0),n.addColorStop(0,this.options.colorStart),n.addColorStop(1,this.options.colorStop)):n=this.options.colorStart,this.ctx.strokeStyle=n,this.ctx.beginPath(),this.ctx.arc(t,i,this.radius,(1+this.options.angle)*Math.PI,u,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(t,i,this.radius,u,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),f=this.gp,e=[],r=0,s=f.length;r<s;r++)o=f[r],e.push(o.update(!0));return e},i}(o);e=function(t){function i(n){this.canvas=n;i.__super__.constructor.call(this);typeof G_vmlCanvasManager!="undefined"&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas));this.ctx=this.canvas.getContext("2d");this.setOptions();this.render()}return n(i,t),i.prototype.lineWidth=15,i.prototype.displayedValue=0,i.prototype.value=33,i.prototype.maxValue=80,i.prototype.minValue=0,i.prototype.options={lineWidth:.1,colorStart:"#6f6ea0",colorStop:"#c0c0db",strokeColor:"#eeeeee",shadowColor:"#d5d5d5",angle:.35},i.prototype.getAngle=function(n){return(1-this.options.angle)*Math.PI+(n-this.minValue)/(this.maxValue-this.minValue)*(2+this.options.angle-(1-this.options.angle))*Math.PI},i.prototype.setOptions=function(n){return n==null&&(n=null),i.__super__.setOptions.call(this,n),this.lineWidth=this.canvas.height*this.options.lineWidth,this.radius=this.canvas.height/2-this.lineWidth/2,this},i.prototype.set=function(n){return this.value=n,this.value>this.maxValue&&(this.maxValue=this.value*1.1),AnimationUpdater.run()},i.prototype.render=function(){var r,i,n,u,f,t;return r=this.getAngle(this.displayedValue),t=this.canvas.width/2,n=this.canvas.height/2,this.textField&&this.textField.render(this),i=this.ctx.createRadialGradient(t,n,39,t,n,70),i.addColorStop(0,this.options.colorStart),i.addColorStop(1,this.options.colorStop),u=this.radius-this.lineWidth/2,f=this.radius+this.lineWidth/2,this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(t,n,this.radius,(1-this.options.angle)*Math.PI,(2+this.options.angle)*Math.PI,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.lineCap="round",this.ctx.stroke(),this.ctx.strokeStyle=i,this.ctx.beginPath(),this.ctx.arc(t,n,this.radius,(1-this.options.angle)*Math.PI,r,!1),this.ctx.stroke()},i}(o);l=function(t){function i(){return b=i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.strokeGradient=function(n,t,i,r){var u;return u=this.ctx.createRadialGradient(n,t,i,n,t,r),u.addColorStop(0,this.options.shadowColor),u.addColorStop(.12,this.options._orgStrokeColor),u.addColorStop(.88,this.options._orgStrokeColor),u.addColorStop(1,this.options.shadowColor),u},i.prototype.setOptions=function(n){var t,r,u,f;return n==null&&(n=null),i.__super__.setOptions.call(this,n),f=this.canvas.width/2,t=this.canvas.height/2,r=this.radius-this.lineWidth/2,u=this.radius+this.lineWidth/2,this.options._orgStrokeColor=this.options.strokeColor,this.options.strokeColor=this.strokeGradient(f,t,r,u),this},i}(e);window.AnimationUpdater={elements:[],animId:null,addAll:function(n){var r,t,u,i;for(i=[],t=0,u=n.length;t<u;t++)r=n[t],i.push(AnimationUpdater.elements.push(r));return i},add:function(n){return AnimationUpdater.elements.push(n)},run:function(){var t,r,n,u,i;for(t=!0,i=AnimationUpdater.elements,n=0,u=i.length;n<u;n++)r=i[n],r.update()&&(t=!1);return t?cancelAnimationFrame(AnimationUpdater.animId):AnimationUpdater.animId=requestAnimationFrame(AnimationUpdater.run)}};window.Gauge=a;window.Donut=l;window.BaseDonut=e;window.TextRenderer=t}.call(this),function(n){function s(){var t,i,e={height:f.innerHeight,width:f.innerWidth};return e.height||(t=u.compatMode,(t||!n.support.boxModel)&&(i=t==="CSS1Compat"?r:u.body,e={height:i.clientHeight,width:i.clientWidth})),e}function h(){return{top:f.pageYOffset||r.scrollTop||u.body.scrollTop,left:f.pageXOffset||r.scrollLeft||u.body.scrollLeft}}function c(){var o=n(),a,c=0;if(n.each(e,function(n,t){var i=t.data.selector,r=t.$element;o=o.add(i?r.find(i):r)}),a=o.length,a)for(i=i||s(),t=t||h();c<a;c++)if(n.contains(r,o[c])){var f=n(o[c]),l={height:f.height(),width:f.width()},u=f.offset(),v=f.data("inview"),y,p,w;if(!t||!i)return;u.top+l.height>t.top&&u.top<t.top+i.height&&u.left+l.width>t.left&&u.left<t.left+i.width?(y=t.left>u.left?"right":t.left+i.width<u.left+l.width?"left":"both",p=t.top>u.top?"bottom":t.top+i.height<u.top+l.height?"top":"both",w=y+"-"+p,v&&v===w||f.data("inview",w).trigger("inview",[!0,y,p])):v&&f.data("inview",!1).trigger("inview",[!1])}}var e={},i,t,u=document,f=window,r=u.documentElement,o=n.expando;n.event.special.inview={add:function(t){e[t.guid+"-"+this[o]]={data:t,$element:n(this)}},remove:function(n){try{delete e[n.guid+"-"+this[o]]}catch(t){}}};n(f).bind("scroll resize",function(){i=t=null});!r.addEventListener&&r.attachEvent&&r.attachEvent("onfocusin",function(){t=null});setInterval(c,250)}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function i(t){return n.isFunction(t)||typeof t=="object"?t:{top:t,left:t}}var t=n.scrollTo=function(t,i,r){return n(window).scrollTo(t,i,r)};return t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1,limit:!0},t.window=function(){return n(window)._scrollable()},n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,/webkit/i.test(navigator.userAgent)||i.compatMode=="BackCompat"?i.body:i.documentElement):t})},n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function v(n){h.animate(o,u,f.easing,n&&function(){n.call(this,e,f)})}var a;if(r!=null){var s=this,h=n(s),e=r,c,o={},l=h.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}if(e=l?n(e):n(e,this),!e.length)return;case"object":(e.is||e.style)&&(c=(e=n(e)).offset())}a=n.isFunction(f.offset)&&f.offset(s,e)||f.offset;n.each(f.axis.split(""),function(n,i){var p=i=="x"?"Left":"Top",u=p.toLowerCase(),r="scroll"+p,w=s[r],b=t.max(s,i),y;c?(o[r]=c[u]+(l?0:w-h.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+p))||0,o[r]-=parseInt(e.css("border"+p+"Width"))||0),o[r]+=a[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(y=e[u],o[r]=y.slice&&y.slice(-1)=="%"?parseFloat(y)/100*b:y);f.limit&&/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],b));!n&&f.queue&&(w!=o[r]&&v(f.onAfterFirst),delete o[r])});v(f.onAfter)}}).end()},t.max=function(t,i){var r=i=="x"?"Width":"Height",u="scroll"+r;if(!n(t).is("html,body"))return t[u]-n(t)[r.toLowerCase()]();var f="client"+r,e=t.ownerDocument.documentElement,o=t.ownerDocument.body;return Math.max(e[u],o[u])-Math.min(e[f],o[f])},t}),function(n,t,i){function e(i,r,u){var f=t.createElement(i);return r&&(f.id=h+r),u&&(f.style.cssText=u),n(f)}function ni(){return i.innerHeight?i.innerHeight:n(i).height()}function vt(t,i){i!==Object(i)&&(i={});this.cache={};this.el=t;this.value=function(t){var r;return void 0===this.cache[t]&&(r=n(this.el).attr("data-cbox-"+t),void 0!==r?this.cache[t]=r:void 0!==i[t]?this.cache[t]=i[t]:void 0!==hi[t]&&(this.cache[t]=hi[t])),this.cache[t]};this.get=function(t){var i=this.value(t);return n.isFunction(i)?i.call(this.el,this):i}}function yt(n){var i=c.length,t=(v+n)%i;return 0>t?i+t:t}function a(n,t){return Math.round((/%/.test(n)?("x"===t?d.width():ni())/100:1)*parseInt(n,10))}function vi(n,t){return n.get("photo")||n.get("photoRegex").test(t)}function yi(n,t){return n.get("retinaUrl")&&i.devicePixelRatio>1?t.replace(n.get("photoRegex"),n.get("retinaSuffix")):t}function pi(n){"contains"in u[0]&&!u[0].contains(n.target)&&n.target!==k[0]&&(n.stopPropagation(),u.focus())}function ot(n){ot.str!==n&&(u.add(k).removeClass(ot.str).addClass(n),ot.str=n)}function di(t){v=0;t&&t!==!1?(c=n("."+et).filter(function(){var i=n.data(this,it),r=new vt(this,i);return r.get("rel")===t}),v=c.index(r.el),-1===v&&(c=c.add(r.el),v=c.length-1)):c=n(r.el)}function rt(i){n(t).trigger(i);b.triggerHandler(i)}function pt(i){var f;if(!at){if(f=n(i).data("colorbox"),r=new vt(i,f),di(r.get("rel")),!tt){tt=lt=!0;ot(r.get("className"));u.css({visibility:"hidden",display:"block",opacity:""});l=e(s,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden");y.css({width:"",height:""}).append(l);p=ti.height()+ui.height()+y.outerHeight(!0)-y.height();w=ii.width()+ri.width()+y.outerWidth(!0)-y.width();g=l.outerHeight(!0);nt=l.outerWidth(!0);var h=a(r.get("initialWidth"),"x"),c=a(r.get("initialHeight"),"y"),v=r.get("maxWidth"),d=r.get("maxHeight");r.w=(v!==!1?Math.min(h,a(v,"x")):h)-nt-w;r.h=(d!==!1?Math.min(c,a(d,"y")):c)-g-p;l.css({width:"",height:r.h});o.position();rt(tr);r.get("onOpen");oi.add(fi).hide();u.focus();r.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",pi,!0),b.one(li,function(){t.removeEventListener("focus",pi,!0)}));r.get("returnFocus")&&b.one(li,function(){n(r.el).focus()})}k.css({opacity:parseFloat(r.get("opacity"))||"",cursor:r.get("overlayClose")?"pointer":"",visibility:"visible"}).show();r.get("closeButton")?bt.html(r.get("close")).appendTo(y):bt.appendTo("<div/>");nr()}}function wi(){!u&&t.body&&(si=!1,d=n(i),u=e(s).attr({id:it,"class":n.support.opacity===!1?h+"IE":"",role:"dialog",tabindex:"-1"}).hide(),k=e(s,"Overlay").hide(),wt=n([e(s,"LoadingOverlay")[0],e(s,"LoadingGraphic")[0]]),ut=e(s,"Wrapper"),y=e(s,"Content").append(fi=e(s,"Title"),ei=e(s,"Current"),ct=n('<button type="button"/>').attr({id:h+"Previous"}),ht=n('<button type="button"/>').attr({id:h+"Next"}),ft=e("button","Slideshow"),wt),bt=n('<button type="button"/>').attr({id:h+"Close"}),ut.append(e(s).append(e(s,"TopLeft"),ti=e(s,"TopCenter"),e(s,"TopRight")),e(s,!1,"clear:left").append(ii=e(s,"MiddleLeft"),y,ri=e(s,"MiddleRight")),e(s,!1,"clear:left").append(e(s,"BottomLeft"),ui=e(s,"BottomCenter"),e(s,"BottomRight"))).find("div div").css({float:"left"}),st=e(s,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),oi=ht.add(ct).add(ei).add(ft),n(t.body).append(k,u.append(ut,st)))}function gi(){function i(n){n.which>1||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),pt(this))}return u?(si||(si=!0,ht.click(function(){o.next()}),ct.click(function(){o.prev()}),bt.click(function(){o.close()}),k.click(function(){r.get("overlayClose")&&o.close()}),n(t).bind("keydown."+h,function(n){var t=n.keyCode;tt&&r.get("escKey")&&27===t&&(n.preventDefault(),o.close());tt&&r.get("arrowKey")&&c[1]&&!n.altKey&&(37===t?(n.preventDefault(),ct.click()):39===t&&(n.preventDefault(),ht.click()))}),n.isFunction(n.fn.on)?n(t).on("click."+h,"."+et,i):n("."+et).live("click."+h,i)),!0):!1}function nr(){var t,y,k,u=o.prep,d=++ai,l;(lt=!0,f=!1,rt(gt),rt(kt),r.get("onLoad"),r.h=r.get("height")?a(r.get("height"),"y")-g-p:r.get("innerHeight")&&a(r.get("innerHeight"),"y"),r.w=r.get("width")?a(r.get("width"),"x")-nt-w:r.get("innerWidth")&&a(r.get("innerWidth"),"x"),r.mw=r.w,r.mh=r.h,r.get("maxWidth")&&(r.mw=a(r.get("maxWidth"),"x")-nt-w,r.mw=r.w&&r.w<r.mw?r.w:r.mw),r.get("maxHeight")&&(r.mh=a(r.get("maxHeight"),"y")-g-p,r.mh=r.h&&r.h<r.mh?r.h:r.mh),t=r.get("href"),bi=setTimeout(function(){wt.show()},100),r.get("inline"))?(l=n(t),k=n("<div>").hide().insertBefore(l),b.one(gt,function(){k.replaceWith(l)}),u(l)):r.get("iframe")?u(" "):r.get("html")?u(r.get("html")):vi(r,t)?(t=yi(r,t),f=new Image,n(f).addClass(h+"Photo").bind("error",function(){u(e(s,"Error").html(r.get("imgError")))}).one("load",function(){d===ai&&setTimeout(function(){var t;n.each(["alt","longdesc","aria-describedby"],function(t,i){var u=n(r.el).attr(i)||n(r.el).attr("data-"+i);u&&f.setAttribute(i,u)});r.get("retinaImage")&&i.devicePixelRatio>1&&(f.height=f.height/i.devicePixelRatio,f.width=f.width/i.devicePixelRatio);r.get("scalePhotos")&&(y=function(){f.height-=f.height*t;f.width-=f.width*t},r.mw&&f.width>r.mw&&(t=(f.width-r.mw)/f.width,y()),r.mh&&f.height>r.mh&&(t=(f.height-r.mh)/f.height,y()));r.h&&(f.style.marginTop=Math.max(r.mh-f.height,0)/2+"px");c[1]&&(r.get("loop")||c[v+1])&&(f.style.cursor="pointer",f.onclick=function(){o.next()});f.style.width=f.width+"px";f.style.height=f.height+"px";u(f)},1)}),f.src=t):t&&st.load(t,r.get("data"),function(t,i){d===ai&&u("error"===i?e(s,"Error").html(r.get("xhrError")):n(this).contents())})}var k,u,ut,y,ti,ii,ri,ui,c,d,l,st,wt,fi,ei,ft,ht,ct,bt,oi,r,p,w,g,nt,v,f,tt,lt,at,bi,o,si,hi={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return n(this).attr("href")},title:function(){return this.title}},it="colorbox",h="cbox",et=h+"Element",tr=h+"_open",kt=h+"_load",dt=h+"_complete",ci=h+"_cleanup",li=h+"_closed",gt=h+"_purge",b=n("<a/>"),s="div",ai=0,ki={},ir=function(){function n(){clearTimeout(y)}function f(){(r.get("loop")||c[v+1])&&(n(),y=setTimeout(o.next,r.get("slideshowSpeed")))}function l(){ft.html(r.get("slideshowStop")).unbind(i).one(i,a);b.bind(dt,f).bind(kt,n);u.removeClass(t+"off").addClass(t+"on")}function a(){n();b.unbind(dt,f).unbind(kt,n);ft.html(r.get("slideshowStart")).unbind(i).one(i,function(){o.next();l()});u.removeClass(t+"on").addClass(t+"off")}function e(){s=!1;ft.hide();n();b.unbind(dt,f).unbind(kt,n);u.removeClass(t+"off "+t+"on")}var s,y,t=h+"Slideshow_",i="click."+h;return function(){s?r.get("slideshow")||(b.unbind(ci,e),e()):r.get("slideshow")&&c[1]&&(s=!0,b.one(ci,e),r.get("slideshowAuto")?l():a(),ft.show())}}();n.colorbox||(n(wi),o=n.fn[it]=n[it]=function(t,i){var u,r=this;if(t=t||{},n.isFunction(r))r=n("<a/>"),t.open=!0;else if(!r[0])return r;return r[0]?(wi(),gi()&&(i&&(t.onComplete=i),r.each(function(){var i=n.data(this,it)||{};n.data(this,it,n.extend(i,t))}).addClass(et),u=new vt(r[0],t),u.get("open")&&pt(r[0])),r):r},o.position=function(t,i){function k(){ti[0].style.width=ui[0].style.width=y[0].style.width=parseInt(u[0].style.width,10)-w+"px";y[0].style.height=ii[0].style.height=ri[0].style.height=parseInt(u[0].style.height,10)-p+"px"}var f,s,c,l=0,v=0,e=u.offset(),b;(d.unbind("resize."+h),u.css({top:-9e4,left:-9e4}),s=d.scrollTop(),c=d.scrollLeft(),r.get("fixed")?(e.top-=s,e.left-=c,u.css({position:"fixed"})):(l=s,v=c,u.css({position:"absolute"})),v+=r.get("right")!==!1?Math.max(d.width()-r.w-nt-w-a(r.get("right"),"x"),0):r.get("left")!==!1?a(r.get("left"),"x"):Math.round(Math.max(d.width()-r.w-nt-w,0)/2),l+=r.get("bottom")!==!1?Math.max(ni()-r.h-g-p-a(r.get("bottom"),"y"),0):r.get("top")!==!1?a(r.get("top"),"y"):Math.round(Math.max(ni()-r.h-g-p,0)/2),u.css({top:e.top,left:e.left,visibility:"visible"}),ut[0].style.width=ut[0].style.height="9999px",f={width:r.w+nt+w,height:r.h+g+p,top:l,left:v},t)&&(b=0,n.each(f,function(n){if(f[n]!==ki[n])return(b=t,void 0)}),t=b);ki=f;t||u.css(f);u.dequeue().animate(f,{duration:t||0,complete:function(){k();lt=!1;ut[0].style.width=r.w+nt+w+"px";ut[0].style.height=r.h+g+p+"px";r.get("reposition")&&setTimeout(function(){d.bind("resize."+h,o.position)},1);i&&i()},step:k})},o.resize=function(n){var t;tt&&(n=n||{},n.width&&(r.w=a(n.width,"x")-nt-w),n.innerWidth&&(r.w=a(n.innerWidth,"x")),l.css({width:r.w}),n.height&&(r.h=a(n.height,"y")-g-p),n.innerHeight&&(r.h=a(n.innerHeight,"y")),n.innerHeight||n.height||(t=l.scrollTop(),l.css({height:"auto"}),r.h=l.height()),l.css({height:r.h}),t&&l.scrollTop(t),o.position("none"===r.get("transition")?0:r.get("speed")))},o.prep=function(i){function w(){return r.w=r.w||l.width(),r.w=r.mw&&r.mw<r.w?r.mw:r.w,r.w}function k(){return r.h=r.h||l.height(),r.h=r.mh&&r.mh<r.h?r.mh:r.h,r.h}if(tt){var a,p="none"===r.get("transition")?0:r.get("speed");l.remove();l=e(s,"LoadedContent").append(i);l.hide().appendTo(st.show()).css({width:w(),overflow:r.get("scrolling")?"auto":"hidden"}).css({height:k()}).prependTo(y);st.hide();n(f).css({float:"none"});ot(r.get("className"));a=function(){function o(){n.support.opacity===!1&&u[0].style.removeAttribute("filter")}var i,f,e=c.length;tt&&(f=function(){clearTimeout(bi);wt.hide();rt(dt);r.get("onComplete")},fi.html(r.get("title")).show(),l.show(),e>1?("string"==typeof r.get("current")&&ei.html(r.get("current").replace("{current}",v+1).replace("{total}",e)).show(),ht[r.get("loop")||e-1>v?"show":"hide"]().html(r.get("next")),ct[r.get("loop")||v?"show":"hide"]().html(r.get("previous")),ir(),r.get("preloading")&&n.each([yt(-1),yt(1)],function(){var u,f=c[this],r=new vt(f,n.data(f,it)),i=r.get("href");i&&vi(r,i)&&(i=yi(r,i),u=t.createElement("img"),u.src=i)})):oi.hide(),r.get("iframe")?(i=t.createElement("iframe"),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),r.get("scrolling")||(i.scrolling="no"),n(i).attr({src:r.get("href"),name:(new Date).getTime(),"class":h+"Iframe",allowFullScreen:!0}).one("load",f).appendTo(l),b.one(gt,function(){i.src="//about:blank"}),r.get("fastIframe")&&n(i).trigger("load")):f(),"fade"===r.get("transition")?u.fadeTo(p,1,o):o())};"fade"===r.get("transition")?u.fadeTo(p,0,function(){o.position(0,a)}):o.position(p,a)}},o.next=function(){!lt&&c[1]&&(r.get("loop")||c[v+1])&&(v=yt(1),pt(c[v]))},o.prev=function(){!lt&&c[1]&&(r.get("loop")||v)&&(v=yt(-1),pt(c[v]))},o.close=function(){tt&&!at&&(at=!0,tt=!1,rt(ci),r.get("onCleanup"),d.unbind("."+h),k.fadeTo(r.get("fadeOut")||0,0),u.stop().fadeTo(r.get("fadeOut")||0,0,function(){u.hide();k.hide();rt(gt);l.remove();setTimeout(function(){at=!1;rt(li);r.get("onClosed")},1)}))},o.remove=function(){u&&(u.stop(),n.colorbox.close(),u.stop().remove(),k.remove(),at=!1,u=null,n("."+et).removeData(it).removeClass(et),n(t).unbind("click."+h))},o.element=function(){return n(r.el)},o.settings=hi)}(jQuery,document,window);hexDigits=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];piBounds={lg:1140,md:992,sm:768,xs:480,xs2:320};jQuery(function(n){function u(){var n=window.piCurrentBound;window.piViewportSize=getViewportSize();window.piViewportWidth=window.piViewportSize.width;window.piViewportHeight=window.piViewportSize.height;window.piViewportWidth>=piBounds.lg&&window.piCurrentBound!="lg"?window.piCurrentBound="lg":window.piViewportWidth>=piBounds.md&&window.piViewportWidth<piBounds.lg&&window.piCurrentBound!="md"?window.piCurrentBound="md":window.piViewportWidth>=piBounds.sm&&window.piViewportWidth<piBounds.md&&window.piCurrentBound!="sm"?window.piCurrentBound="sm":window.piViewportWidth>=piBounds.xs&&window.piViewportWidth<piBounds.sm&&window.piCurrentBound!="xs"?window.piCurrentBound="xs":window.piViewportWidth>=piBounds.xs2&&window.piViewportWidth<piBounds.xs&&window.piCurrentBound!="2xs"?window.piCurrentBound="2xs":window.piViewportWidth<piBounds.xs2&&window.piCurrentBound!="3xs"&&(window.piCurrentBound="3xs");n!=window.piCurrentBound&&r.trigger("piBoundChanged")}var t=n(window),r=n(document),i;window.piViewportSize=getViewportSize();window.piViewportWidth=window.piViewportSize.width;window.piViewportHeight=window.piViewportSize.height;window.piCurrentBound=piBounds[0];t.resize(function(){clearTimeout(i);i=setTimeout(function(){u()},10)});t.trigger("resize")});jQuery(function(n){function u(n,u){var e=n.offset().left-i,f=n.width();t-e<f?n.addClass(r):t-u>f&&n.removeClass(r)}var f=n(window),t=n("#pi-all").width(),i=(window.piViewportWidth-t)/2,r="pi-submenu-left-side";n(".pi-submenu").each(function(){var r=n(this),e=r.offset().left-i,o;f.on("resize",function(){clearTimeout(o);o=setTimeout(function(){t=n("#pi-all").width();i=(window.piViewportWidth-t)/2;u(r,e)},200)});u(r,e)})});jQuery(function(n){function r(){for(var n,i,r=0;r<t.length;r++)(n=t[r],i=n.$blocks.not(":hidden").first(),i.length<1)||n.currentBlock&&n.currentBlock.get(0)==i.get(0)||(n.currentBlock&&n.currentBlock.css({marginRight:n.currentBlock.get(0).initialMarginRight+"px"}),n.currentBlock=i,n.currentBlock.get(0).initialMarginRight||(n.currentBlock.get(0).initialMarginRight=parseInt(i.css("margin-right"),10)),i.css({marginRight:0}))}var u=n(window),f=n(".pi-section-header"),e="pi-pull-right",o="pi-row-block",i,t=[];f.each(function(){var i=n(this),r=i.find("."+o).filter("."+e);t.push({$hr:i,$blocks:r,currentBlock:!1})});u.resize(function(){clearTimeout(i);i=setTimeout(function(){r()},300)});r()});jQuery(function(n){function i(){u.each(function(){var t=n(this);t.height(window.piViewportHeight)})}var r=n(window),u=n(".pi-section-high, .pi-block-high"),t;r.resize(function(){clearTimeout(t);t=setTimeout(function(){i()},100)});i()});jQuery(function(n){function w(){u=f.scrollTop();s+=t.offset().top;e=p>1?y:v;f.scroll(function(){u=f.scrollTop();a()})}function a(){b();o.length&&k()}function b(){u>=s?i=="default"&&(requestAnimationFrame(function(){h.addClass(e)}),i="fixed"):i=="fixed"&&(requestAnimationFrame(function(){h.removeClass(e)}),i="default")}function k(){var n=u-s;n>l&&r!="reduced"?(requestAnimationFrame(function(){o.addClass(c)}),r="reduced"):n<=l&&r!="default"&&(requestAnimationFrame(function(){o.removeClass(c)}),r="default")}var f=n(window),h=n("body"),v="pi-header-row-fixed",y="pi-header-rows-fixed",e="",c="pi-row-reduced",t=n(".pi-header-sticky"),o=t.find(".pi-row-reducible"),p=t.find(".pi-section-w").length,l=400,i="default",r="default",s=0,u=0;t.length&&(w(),a())});jQuery(function(n){function u(){function c(){n("."+u.classMenuItemHasSubmenu).each(function(){n(this).find(" > a").on("click",function(n){window.piCurrentBound!="lg"&&n.preventDefault()})});n(".pi-mobile-menu-toggler").each(function(){var r=n(this),t;r.get(0).piMenuWasInitialized||(r.get(0).piMenuWasInitialized=1,t={$parentRowWrapper:null,$toggler:r,$wrapper:null,$menu:null,height:null,top:null,state:0},t.$parentRowWrapper=n(t.$toggler.parents("."+u.classParentRowWrapper)),t.$wrapper=n(t.$toggler.data("target")),t.$menu=t.$wrapper.find("."+u.classMenu),t.$menuElements=t.$menu.find("li"),t.height=t.$menu.outerHeight(),t.$toggler.click(function(){o(t)}),t.$menuElements.each(function(){var i=n(this);i.get(0).$link=i.find(" > a");i.get(0).$siblings=i.siblings();i.get(0).$list=i.find(" > ul");i.get(0).$list.length?i.get(0).$link.click(function(n){s(t,i);n.preventDefault()}):i.get(0).$link.click(function(){o(t)})}),i.bind("piBoundChanged",function(){t.state&&t.$toggler.is(":hidden")&&o(t)}),f.push(t))});r.resize(function(){clearTimeout(t);t=setTimeout(function(){h()},100)});h()}function s(t,i){i.get(0).$list.hasClass("pi-active")?(t.height=t.height-i.get(0).listHeight,t.$wrapper.height(t.height),i.get(0).$list.removeClass("pi-active"),i.get(0).$list.animate({height:0},500,function(){e(i,i.get(0).listHeight,"take")})):(t.height=t.height+i.get(0).listHeight,t.$wrapper.height(t.height),i.get(0).$list.addClass("pi-active"),i.get(0).$list.animate({height:i.get(0).listHeight},500,function(){e(i,i.get(0).listHeight,"add");n(this).height("auto")}),i.get(0).$siblings.each(function(){n(this).find(" > ul.pi-active").length&&s(t,n(this))}))}function e(n,t,i){var r=n.parents("li").length?n.parents("li").eq(0):null;r&&r.get(0).listHeight&&(i=="add"?r.get(0).listHeight+=t:r.get(0).listHeight-=t,e(r,t,i))}function h(){for(var t=0;t<f.length;t++)f[t].$menuElements.each(function(){var t=n(this),i;t.get(0).$list.length&&(i=getElementHeight(t.get(0).$list),i!=0?t.get(0).listHeight=i:(t.get(0).$list.height("auto"),t.get(0).listHeight=getElementHeight(t.get(0).$list),t.get(0).$list.height(i)))})}function o(t){var i=n.grep(f,function(n){return n.$wrapper.attr("id")!==t.$wrapper.attr("id")&&n.$wrapper.hasClass(u.classOpen)});n.each(i,function(n,t){t.$toggler.click()});t.$wrapper.toggleClass(u.classOpen);t.$wrapper.hasClass(u.classOpen)?(t.$wrapper.height(t.height),t.$wrapper.css({overflow:"auto",visibility:"visible"}),t.state=1):(t.$wrapper.height(0),t.$wrapper.css({overflow:"none",visibility:"hidden"}),t.state=0)}var f=[],u={classMenuItemHasSubmenu:"pi-has-dropdown",classParentRowWrapper:"pi-header-row-sticky",classOpen:"pi-menu-open",classParentRow:"pi-section-header-w",classMenuWrapper:"pi-section-menu-mobile-w",classMenu:"pi-section-menu-mobile"};return c(),f}var i=n(document),r=n(window),t;new u});jQuery(function(n){function r(n,t){for(var r,e=n.attr("class"),f=e.match(/pi-liquid-col-\d?\D\D-\d/g)||e.match(/pi-col-\d?\D\D-\d/g),i={},u=0;u<f.length;u++)r=f[u].match(/pi-liquid-col-(\d?\D\D)-(\d)/i)||f[u].match(/pi-col-(\d?\D\D)-(\d)/i),r&&(i[r[1]]=r[2]);t=="gallery"?i["3xs"]||(i["3xs"]=1):i["3xs"]||(i["3xs"]=12);i["2xs"]||(i["2xs"]=i["3xs"]);i.xs||(i.xs=i["2xs"]);i.sm||(i.sm=i.xs);i.md||(i.md=i.sm);i.lg||(i.lg=i.md);for(r in i)n.data("width-"+r,i[r])}var t=n(window),u=n(".pi-gallery.pi-column-fix"),f=u.filter("[class*=pi-liquid-col]"),i;f.each(function(){var i=n(this),u=i.find(".pi-gallery-item"),f=i.hasClass("pi-stacked"),e=0;r(i,"gallery");t.load(function(){var r;t.resize(function(){e||(e=1,u.each(function(){var t=n(this);t.css("width","")}))});t.resize(function(){clearTimeout(r);r=setTimeout(function(){e=0;f&&i.css("cssText","margin-right: 0 !important");var t=i.data("width-"+window.piCurrentBound),h=i.width(),c=parseInt(u.eq(0).css("padding-left"),10)+parseInt(u.eq(0).css("padding-right"),10),r=h-t*c,o=r%t,s=(r-o)/t;o&&f?(s++,i.css("cssText","margin-right: -"+t+"px !important")):f&&i.css("cssText","margin-right: 0 !important");u.each(function(){var t=n(this);t.width(s)})},100)});t.trigger("resize")})});i=n(".pi-column-fix").filter("[class*=pi-col-]");i.length&&t.load(function(){var u;i.each(function(){r(n(this),"grid")});t.resize(function(){clearTimeout(u);u=setTimeout(function(){i.each(function(){var t=n(this),i=parseInt(t.css("padding-left"),10)+parseInt(t.css("padding-right"),10),r=Math.floor(t.parent().width()/12*t.data("width-"+window.piCurrentBound))-i;n(this).width(r)})},100)});t.trigger("resize")})});+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]}}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(window.jQuery);!function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed").remove()}var r=n(this),u=r.attr("data-target"),i;if(u||(u=r.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),i=n(u),t&&t.preventDefault(),i.length||(i=r.hasClass("pi-alert")?r:r.parent()),i.trigger(t=n.Event("close")),!t.isDefaultPrevented())if(i.removeClass("in"),n.support.transition&&i.hasClass("fade")){r.on(n.support.transition.end,function(n){n.stopPropagation()});i.on(n.support.transition.end,f)}else f()};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("alert");u||r.data("alert",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.alert.data-api",i,t.prototype.close)}(window.jQuery);jQuery(function(n){var i=n("body"),t={changed:"pi-form-control-changed",focused:"pi-form-control-focused",withIcon:"pi-input-with-icon"};i.delegate(".form-control","keyup",function(){var i=n(this),r=i.val();r!=="placeholder"&&n.trim(r)?(i.addClass(t.changed),i.parents("form").addClass(t.changed)):(i.removeClass(t.changed),i.parents("form").removeClass(t.changed))}).delegate(".form-control","focus",function(){var i=n(this);i.parents("form").addClass(t.focused);i.parents("."+t.withIcon).addClass(t.focused)}).delegate(".form-control","blur",function(){var i=n(this);i.parents("form").removeClass(t.focused);i.parents("."+t.withIcon).removeClass(t.focused)})});jQuery(function(n){n.fn.placeholder&&n("input, textarea").placeholder()});jQuery(function(n){if(n.fn.scrollTo){var t=n("html, body"),i=-100,r=-20,u=750,f="easeOutExpo";n("[data-scroll-to]").each(function(){var o=n(this),e=o.data("scrollTo"),h=o.data("scrollToDuration")||u,s=o.data("scrollToOffset")||i,c=s,l=o.data("scrollToEasing")||f;e=n(e).length?n(e):e;o.bind("click",function(i){i.preventDefault();i.stopPropagation();n.scrollTo.window().stop(!0);s=window.piCurrentBound!="lg"?r:n(i.target).closest(".pi-header.cms-header-is-fixed").length>0?c:-65;var u=e===0?0:n(e).offset().top+s;return t.animate({scrollTop:u},h,l),!1})})}});jQuery(function(n){function h(){var n=r.scrollTop(),f=e.height(),h=window.piViewportHeight+n>=f-o;n>=s?t.addClass(i):t.removeClass(i);h&&window.piCurrentBound!="lg"?t.addClass(u):t.removeClass(u)}var r=n(window),e=n(document),t=n(".pi-scroll-top-arrow"),i="pi-active",u="pi-scroll-top-arrow-footer",o=100,s=400,f;if(t.length){r.on("scroll resize",function(){clearTimeout(f);f=setTimeout(function(){h()},100)});t.on("click",function(){t.removeClass(i)})}});jQuery(function(n){n(".pi-jump a,.pi-jump-bg a").each(function(){var t=n(this);t.append(t.find("i").clone())});n(".pi-social-icons-big a i").wrap("<span><\/span>")});jQuery(function(n){n(".pi-overlay-slide:not(.pi-caption-opened)").each(function(){var t=n(this),r=t.parents(".pi-img-w"),i=t.outerHeight(!0);t.hasClass("pi-show-heading")&&(i-=t.find("h2,h3,h4,h5,h6").eq(0).outerHeight(!0)+parseInt(t.css("padding-top"),10));t.css({bottom:-i,visibility:"visible"});r.hover(function(){t.css({bottom:0})},function(){t.css({bottom:-i})})})});jQuery(function(n){function t(t,i){var r=t.find(".k-loading-mask"),u,f;i?r.length||(u="left",f=t.scrollLeft(),r=n("<div class='k-loading-mask'><span class='k-loading-text'>Loading...<\/span><div class='k-loading-image'/><div class='k-loading-color'/><\/div>").width("100%").height("100%").css("top",t.scrollTop()).css(u,Math.abs(f)).prependTo(t)):r&&r.remove()}function i(t,i){return t.__RequestVerificationToken=n("input[name=__RequestVerificationToken]",i).val(),t}n(".pi-contact-form").submit(function(){var r=n(this),u=r.find(".pi-error-container"),f=n("#contact-form-result"),e=r.attr("action");return u.slideUp(750,function(){u.hide();var s=r.find(".form-control-name"),h=r.find(".form-control-email"),c=r.find(".form-control-comments"),o={name:s.val(),email:h.val(),comments:c.val()};o=i(o,r);t(r,!0);n.post(e,o,function(i){t(r,!1);n.isEmptyObject(i.reply)||(i.reply.status===0&&r.hide(),f.html(i.reply.content))})}),!1})});jQuery(function(n){if(n.fn.colorbox){var e=n(document),o=n(window),r=n(".pi-colorbox"),u=["sm","md","lg"],t=0,i=0;function f(){i=0;for(var f in u)if(u[f]==window.piCurrentBound){i=1;break}i&&!t?(r.each(function(){var i=n(this),r=i.data("videoSize"),t=r?r.split(","):0,u=i.data("colorboxGroup"),f=u?u:"pi-group";t[0]?(t[0]=parseInt(t[0],10),t[1]=parseInt(t[1],10),typeof t[0]=="number"&&typeof t[1]=="number"&&i.colorbox({rel:f,iframe:!0,innerWidth:t[0],innerHeight:t[1],maxWidth:"95%",maxHeight:"95%"})):i.colorbox({rel:f,maxWidth:"95%",maxHeight:"95%"})}),t=1):!i&&t&&(r.colorbox.remove(),t=0)}e.bind("piBoundChanged",f);f()}});jQuery(function(n){"function"==typeof PiSlider&&n(".pi-slider").each(function(){new PiSlider(n(this),{debug:0,preload:void 0!==n(this).data("sliderPreloader")?n(this).data("sliderPreloader"):1,preloadDelay:void 0!==n(this).data("sliderPreloaderDelay")?n(this).data("sliderPreloaderDelay"):1e3,circular:void 0!==n(this).data("sliderCircular")?n(this).data("sliderCircular"):1,enableSwipes:void 0!==n(this).data("sliderSwipes")?n(this).data("sliderSwipes"):1,enablePagination:void 0!==n(this).data("sliderPagination")?n(this).data("sliderPagination"):1,enableArrows:void 0!==n(this).data("sliderArrows")?n(this).data("sliderArrows"):1,enableKeys:void 0!==n(this).data("sliderKeys")?n(this).data("sliderKeys"):1,autoplayDelay:void 0!==n(this).data("sliderAutoplayDelay")?n(this).data("sliderAutoplayDelay"):0,action:n(this).data("sliderAction")})})});jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}});jQuery(function(n){function r(i){var f=n(this),e=f.parents("."+t.classItem).first(),r=e.parents("."+t.classAccordion).first();e.hasClass(t.classItemActive)?r.hasClass(t.classTogglerBehavior)?(e.removeClass(t.classItemActive),f.next("."+t.classContent).slideUp()):(r.find("."+t.classItem).removeClass(t.classItemActive),r.find("."+t.classContent).slideUp()):(r.hasClass(t.classTogglerBehavior)||(r.find("."+t.classItem).removeClass(t.classItemActive),r.find("."+t.classContent).slideUp()),e.addClass(t.classItemActive),f.next("."+t.classContent).slideToggle(),u(f));i.preventDefault()}function u(i){var u=i.next("."+t.classContent).data("content-url"),e,f;u!=null&&u!=undefined&&u!=""&&u!="#"&&(e=i.parents("."+t.classItem).first(),f=n("."+t.classContent,e),f.data("content-loaded")!=!0&&(n.ajax({type:"POST",url:u,success:function(i){var u=n('[data-role="content"]',f);n.isEmptyObject(i.reply)?u.html("Geen inhoud gevonden."):(u.html(i.reply.content),cms.design.ActiveerTooltips(u));u.hasClass(t.noPaddingSides)||u.addClass(t.noPaddingSides);n("."+t.classTitle,u).click(r)},complete:function(){}}),f.data("content-loaded",!0)))}var t={classAccordion:"pi-accordion",classTogglerBehavior:"pi-behavior-toggle",classItem:"pi-accordion-item",classItemActive:"pi-accordion-item-active",classItemDefaultOpen:"pi-default-open",classTitle:"pi-accordion-title",classContent:"pi-accordion-content",noPaddingSides:"pi-no-padding-sides"},i=n("."+t.classItem);i.length&&(i.each(function(){var i=n(this);i.hasClass(t.classItemDefaultOpen)?(i.addClass(t.classItemActive),u(i.find("."+t.classTitle).first())):i.find("."+t.classContent).hide()}),n("."+t.classTitle).click(r))});jQuery(function(n){n.fn.piCounter=function(){var t=["simple","line","circle"],i=t[0],r=0,u=100,f=20,e=3e3,o="none",s="#835fbb",h="#835fbb",c="#edeff3",l=.025,a=32;return this.each(function(){function et(){"none"===tt?rt+=b:n.easing[tt]&&(b=n.easing[tt](0,ut,w,p,nt),b>p&&(b=p),rt=b);d.html(parseInt(rt,10))}function ot(){g.css({width:parseInt(p,10)+"%"})}function st(){if(k===t[0])ht(),d.length&&ft();else if(k===t[1])ct(),g.length&&setTimeout(function(){ot()},100);else if(k===t[2]){var i={lines:12,angle:.5,lineWidth:pt,limitMax:"false",colorStart:at,colorStop:vt,strokeColor:yt,generateGradient:!1},r=v.find("canvas")[0],n=new Donut(r).setOptions(i);n.maxValue=100;n.animationSpeed=wt;n.set(p)}}function ht(){d.html(parseInt(w,10))}function ct(){g.css({width:parseInt(w,10)+"%"})}function ft(){setTimeout(function(){nt>ut&&(ut+=it,k===t[0]&&et(),ft())},it)}function lt(){st()}var v=n(this),y=v.find(".pi-counter-circle-colors"),d=v.find(".pi-counter-number"),g=v.find(".pi-counter-progress"),k=v.data("counterType")?v.data("counterType"):i,w=v.data("countFrom")?v.data("countFrom"):r,p=v.data("countTo")?v.data("countTo"):u,nt=v.data("duration")?v.data("duration"):e,tt=v.data("easing")?v.data("easing"):o,it=1e3/(v.data("framesPerSecond")?v.data("framesPerSecond"):f),at=y.css("background-color")?rgb2hex(y.css("background-color")):s,vt=y.css("background-color")?rgb2hex(y.css("background-color")):h,yt=y.css("border-color")?rgb2hex(y.css("border-color")):c,pt=v.data("lineWidth")?v.data("lineWidth"):l,wt=v.data("circleAnimationSpeed")?v.data("circleAnimationSpeed"):a,b=Math.abs(p-w)/(nt/it),rt=w,ut=0;lt()})}});jQuery(function(n){n.fn.piCounter&&n(".pi-counter").each(function(){n(this).one("inview",function(){n(this).piCounter()})})});jQuery(function(n){function r(){"lg"==window.piCurrentBound?o():s()}function u(){for(var n,r=t.scrollTop(),u=0;u<i.length;u++)n=i[u],n.t=n.$el.offset().top,n.h=f(n.$el,1),n.t+n.h>r&&n.t<r+e&&n.$el.css("backgroundPosition",n.x+" "+Math.round((n.t-r+n.y)*n.s)+"px")}function f(n,t){return t?n.outerHeight(!0):n.height()}function o(){t.on("scroll.piParallax resize.piParallax",u);u()}function s(){var n,r;for(t.off("scroll.piParallax resize.piParallax"),n=0;n<i.length;n++)r=i[n],r.$el.css("backgroundPosition","")}var t=n(window),h=n(document),e=t.height(),i=[];t.resize(function(){e=t.height()});n.fn.parallax=function(){n(this).each(function(){var t=n(this),r={$el:t,t:t.offset().top,x:t.data("parallaxX")||"50%",y:t.data("parallaxY")||0,s:t.data("parallaxSpeed")||.5,h:f(t,t.data("parallaxOuterHeight")||1)};i.push(r)})};h.on("piBoundChanged",function(){r()});r()});window.disablehammer!=!0&&(function(n,t){"use strict";function e(){if(!i.READY){i.event.determineEventTypes();for(var n in i.gestures)i.gestures.hasOwnProperty(n)&&i.detection.register(i.gestures[n]);i.event.onTouch(i.DOCUMENT,i.EVENT_MOVE,i.detection.detect);i.event.onTouch(i.DOCUMENT,i.EVENT_END,i.detection.detect);i.READY=!0}}var i=function(n,t){return new i.Instance(n,t||{})};i.defaults={stop_browser_behavior:{userSelect:"none",touchAction:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};i.HAS_POINTEREVENTS=navigator.pointerEnabled||navigator.msPointerEnabled;i.HAS_TOUCHEVENTS="ontouchstart"in n;i.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android/i;i.NO_MOUSEEVENTS=i.HAS_TOUCHEVENTS&&navigator.userAgent.match(i.MOBILE_REGEX);i.EVENT_TYPES={};i.DIRECTION_DOWN="down";i.DIRECTION_LEFT="left";i.DIRECTION_UP="up";i.DIRECTION_RIGHT="right";i.POINTER_MOUSE="mouse";i.POINTER_TOUCH="touch";i.POINTER_PEN="pen";i.EVENT_START="start";i.EVENT_MOVE="move";i.EVENT_END="end";i.DOCUMENT=document;i.plugins={};i.READY=!1;i.Instance=function(n,t){var r=this;return e(),this.element=n,this.enabled=!0,this.options=i.utils.extend(i.utils.extend({},i.defaults),t||{}),this.options.stop_browser_behavior&&i.utils.stopDefaultBrowserBehavior(this.element,this.options.stop_browser_behavior),i.event.onTouch(n,i.EVENT_START,function(n){r.enabled&&i.detection.startDetect(r,n)}),this};i.Instance.prototype={on:function(n,t){for(var r=n.split(" "),i=0;r.length>i;i++)this.element.addEventListener(r[i],t,!1);return this},off:function(n,t){for(var r=n.split(" "),i=0;r.length>i;i++)this.element.removeEventListener(r[i],t,!1);return this},trigger:function(n,t){var u=i.DOCUMENT.createEvent("Event"),r;return u.initEvent(n,!0,!0),u.gesture=t,r=this.element,i.utils.hasParent(t.target,r)&&(r=t.target),r.dispatchEvent(u),this},enable:function(n){return this.enabled=n,this}};var r=null,f=!1,u=!1;i.event={bindDom:function(n,t,i){for(var u=t.split(" "),r=0;u.length>r;r++)n.addEventListener(u[r],i,!1)},onTouch:function(n,t,e){var o=this;this.bindDom(n,i.EVENT_TYPES[t],function(s){var c=s.type.toLowerCase(),h;c.match(/mouse/)&&u||((c.match(/touch/)||c.match(/pointerdown/)||c.match(/mouse/)&&1===s.which)&&(f=!0),c.match(/touch|pointer/)&&(u=!0),h=0,f&&(i.HAS_POINTEREVENTS&&t!=i.EVENT_END?h=i.PointerEvent.updatePointer(t,s):c.match(/touch/)?h=s.touches.length:u||(h=c.match(/up/)?0:1),h>0&&t==i.EVENT_END?t=i.EVENT_MOVE:h||(t=i.EVENT_END),h||null===r?r=s:s=r,e.call(i.detection,o.collectEventData(n,t,s)),i.HAS_POINTEREVENTS&&t==i.EVENT_END&&(h=i.PointerEvent.updatePointer(t,s))),h||(r=null,f=!1,u=!1,i.PointerEvent.reset()))})},determineEventTypes:function(){var n;n=i.HAS_POINTEREVENTS?i.PointerEvent.getEvents():i.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"];i.EVENT_TYPES[i.EVENT_START]=n[0];i.EVENT_TYPES[i.EVENT_MOVE]=n[1];i.EVENT_TYPES[i.EVENT_END]=n[2]},getTouchList:function(n){return i.HAS_POINTEREVENTS?i.PointerEvent.getTouchList():n.touches?n.touches:[{identifier:1,pageX:n.pageX,pageY:n.pageY,target:n.target}]},collectEventData:function(n,t,r){var u=this.getTouchList(r,t),f=i.POINTER_TOUCH;return(r.type.match(/mouse/)||i.PointerEvent.matchType(i.POINTER_MOUSE,r))&&(f=i.POINTER_MOUSE),{center:i.utils.getCenter(u),timeStamp:(new Date).getTime(),target:r.target,touches:u,eventType:t,pointerType:f,srcEvent:r,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation();this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return i.detection.stopDetect()}}}};i.PointerEvent={pointers:{},getTouchList:function(){var n=this,t=[];return Object.keys(n.pointers).sort().forEach(function(i){t.push(n.pointers[i])}),t},updatePointer:function(n,t){return n==i.EVENT_END?this.pointers={}:(t.identifier=t.pointerId,this.pointers[t.pointerId]=t),Object.keys(this.pointers).length},matchType:function(n,t){if(!t.pointerType)return!1;var r={};return r[i.POINTER_MOUSE]=t.pointerType==t.MSPOINTER_TYPE_MOUSE||t.pointerType==i.POINTER_MOUSE,r[i.POINTER_TOUCH]=t.pointerType==t.MSPOINTER_TYPE_TOUCH||t.pointerType==i.POINTER_TOUCH,r[i.POINTER_PEN]=t.pointerType==t.MSPOINTER_TYPE_PEN||t.pointerType==i.POINTER_PEN,r[n]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}};i.utils={extend:function(n,i,r){for(var u in i)n[u]!==t&&r||(n[u]=i[u]);return n},hasParent:function(n,t){for(;n;){if(n==t)return!0;n=n.parentNode}return!1},getCenter:function(n){for(var i=[],r=[],t=0,u=n.length;u>t;t++)i.push(n[t].pageX),r.push(n[t].pageY);return{pageX:(Math.min.apply(Math,i)+Math.max.apply(Math,i))/2,pageY:(Math.min.apply(Math,r)+Math.max.apply(Math,r))/2}},getVelocity:function(n,t,i){return{x:Math.abs(t/n)||0,y:Math.abs(i/n)||0}},getAngle:function(n,t){var i=t.pageY-n.pageY,r=t.pageX-n.pageX;return 180*Math.atan2(i,r)/Math.PI},getDirection:function(n,t){var r=Math.abs(n.pageX-t.pageX),u=Math.abs(n.pageY-t.pageY);return r>=u?n.pageX-t.pageX>0?i.DIRECTION_LEFT:i.DIRECTION_RIGHT:n.pageY-t.pageY>0?i.DIRECTION_UP:i.DIRECTION_DOWN},getDistance:function(n,t){var i=t.pageX-n.pageX,r=t.pageY-n.pageY;return Math.sqrt(i*i+r*r)},getScale:function(n,t){return n.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(n[0],n[1]):1},getRotation:function(n,t){return n.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(n[1],n[0]):0},isVertical:function(n){return n==i.DIRECTION_UP||n==i.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(n,t){var i,f=["webkit","khtml","moz","ms","o",""],r,u;if(t&&n.style){for(r=0;f.length>r;r++)for(u in t)t.hasOwnProperty(u)&&(i=u,f[r]&&(i=f[r]+i.substring(0,1).toUpperCase()+i.substring(1)),n.style[i]=t[u]);"none"==t.userSelect&&(n.onselectstart=function(){return!1})}}};i.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(n,t){this.current||(this.stopped=!1,this.current={inst:n,startEvent:i.utils.extend({},t),lastEvent:!1,name:""},this.detect(t))},detect:function(n){var t;if(this.current&&!this.stopped){n=this.extendEventData(n);for(var u=this.current.inst.options,r=0,f=this.gestures.length;f>r;r++)if(t=this.gestures[r],!this.stopped&&u[t.name]!==!1&&t.handler.call(t,n,this.current.inst)===!1){this.stopDetect();break}return this.current&&(this.current.lastEvent=n),n.eventType==i.EVENT_END&&!n.touches.length-1&&this.stopDetect(),n}},stopDetect:function(){this.previous=i.utils.extend({},this.current);this.current=null;this.stopped=!0},extendEventData:function(n){var t=this.current.startEvent,r,u;if(t&&(n.touches.length!=t.touches.length||n.touches===t.touches))for(t.touches=[],r=0,u=n.touches.length;u>r;r++)t.touches.push(i.utils.extend({},n.touches[r]));var f=n.timeStamp-t.timeStamp,e=n.center.pageX-t.center.pageX,o=n.center.pageY-t.center.pageY,s=i.utils.getVelocity(f,e,o);return i.utils.extend(n,{deltaTime:f,deltaX:e,deltaY:o,velocityX:s.x,velocityY:s.y,distance:i.utils.getDistance(t.center,n.center),angle:i.utils.getAngle(t.center,n.center),direction:i.utils.getDirection(t.center,n.center),scale:i.utils.getScale(t.touches,n.touches),rotation:i.utils.getRotation(t.touches,n.touches),startEvent:t}),n},register:function(n){var r=n.defaults||{};return r[n.name]===t&&(r[n.name]=!0),i.utils.extend(i.defaults,r,!0),n.index=n.index||1e3,this.gestures.push(n),this.gestures.sort(function(n,t){return n.index<t.index?-1:n.index>t.index?1:0}),this.gestures}};i.gestures=i.gestures||{};i.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(n,t){switch(n.eventType){case i.EVENT_START:clearTimeout(this.timer);i.detection.current.name=this.name;this.timer=setTimeout(function(){"hold"==i.detection.current.name&&t.trigger("hold",n)},t.options.hold_timeout);break;case i.EVENT_MOVE:n.distance>t.options.hold_threshold&&clearTimeout(this.timer);break;case i.EVENT_END:clearTimeout(this.timer)}}};i.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(n,t){if(n.eventType==i.EVENT_END){var r=i.detection.previous,u=!1;if(n.deltaTime>t.options.tap_max_touchtime||n.distance>t.options.tap_max_distance)return;r&&"tap"==r.name&&n.timeStamp-r.lastEvent.timeStamp<t.options.doubletap_interval&&n.distance<t.options.doubletap_distance&&(t.trigger("doubletap",n),u=!0);(!u||t.options.tap_always)&&(i.detection.current.name="tap",t.trigger(i.detection.current.name,n))}}};i.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_max_touches:1,swipe_velocity:.7},handler:function(n,t){if(n.eventType==i.EVENT_END){if(t.options.swipe_max_touches>0&&n.touches.length>t.options.swipe_max_touches)return;(n.velocityX>t.options.swipe_velocity||n.velocityY>t.options.swipe_velocity)&&(t.trigger(this.name,n),t.trigger(this.name+n.direction,n))}}};i.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(n,r){if(i.detection.current.name!=this.name&&this.triggered)return r.trigger(this.name+"end",n),this.triggered=!1,t;if(!(r.options.drag_max_touches>0&&n.touches.length>r.options.drag_max_touches))switch(n.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:if(n.distance<r.options.drag_min_distance&&i.detection.current.name!=this.name)return;i.detection.current.name=this.name;(i.detection.current.lastEvent.drag_locked_to_axis||r.options.drag_lock_to_axis&&r.options.drag_lock_min_distance<=n.distance)&&(n.drag_locked_to_axis=!0);var u=i.detection.current.lastEvent.direction;n.drag_locked_to_axis&&u!==n.direction&&(n.direction=i.utils.isVertical(u)?0>n.deltaY?i.DIRECTION_UP:i.DIRECTION_DOWN:0>n.deltaX?i.DIRECTION_LEFT:i.DIRECTION_RIGHT);this.triggered||(r.trigger(this.name+"start",n),this.triggered=!0);r.trigger(this.name,n);r.trigger(this.name+n.direction,n);(r.options.drag_block_vertical&&i.utils.isVertical(n.direction)||r.options.drag_block_horizontal&&!i.utils.isVertical(n.direction))&&n.preventDefault();break;case i.EVENT_END:this.triggered&&r.trigger(this.name+"end",n);this.triggered=!1}}};i.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(n,r){if(i.detection.current.name!=this.name&&this.triggered)return r.trigger(this.name+"end",n),this.triggered=!1,t;if(!(2>n.touches.length))switch(r.options.transform_always_block&&n.preventDefault(),n.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:var u=Math.abs(1-n.scale),f=Math.abs(n.rotation);if(r.options.transform_min_scale>u&&r.options.transform_min_rotation>f)return;i.detection.current.name=this.name;this.triggered||(r.trigger(this.name+"start",n),this.triggered=!0);r.trigger(this.name,n);f>r.options.transform_min_rotation&&r.trigger("rotate",n);u>r.options.transform_min_scale&&(r.trigger("pinch",n),r.trigger("pinch"+(1>n.scale?"in":"out"),n));break;case i.EVENT_END:this.triggered&&r.trigger(this.name+"end",n);this.triggered=!1}}};i.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(n,r){return r.options.prevent_mouseevents&&n.pointerType==i.POINTER_MOUSE?(n.stopDetect(),t):(r.options.prevent_default&&n.preventDefault(),n.eventType==i.EVENT_START&&r.trigger(this.name,n),t)}};i.gestures.Release={name:"release",index:1/0,handler:function(n,t){n.eventType==i.EVENT_END&&t.trigger(this.name,n)}};"object"==typeof module&&"object"==typeof module.exports?module.exports=i:(n.Hammer=i,"function"==typeof n.define&&n.define.amd&&n.define("hammer",[],function(){return i}))}(this),function(n,t){"use strict";n!==t&&(Hammer.event.bindDom=function(i,r,u){n(i).on(r,function(n){var i=n.originalEvent||n;i.pageX===t&&(i.pageX=n.pageX,i.pageY=n.pageY);i.target||(i.target=n.target);i.which===t&&(i.which=i.button);i.preventDefault||(i.preventDefault=n.preventDefault);i.stopPropagation||(i.stopPropagation=n.stopPropagation);u.call(this,i)})},Hammer.Instance.prototype.on=function(t,i){return n(this.element).on(t,i)},Hammer.Instance.prototype.off=function(t,i){return n(this.element).off(t,i)},Hammer.Instance.prototype.trigger=function(t,i){var r=n(this.element);return r.has(i.target).length&&(r=n(i.target)),r.trigger({type:t,gesture:i})},n.fn.hammer=function(t){return this.each(function(){var r=n(this),i=r.data("hammer");i?i&&t&&Hammer.utils.extend(i.options,t):r.data("hammer",new Hammer(this,t||{}))})})}(window.jQuery||window.Zepto));typeof console=="undefined"&&(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(){});console.groupCollapsed("ThemePunch GreenSocks Logs");oldgs=window.GreenSockGlobals;oldgs_queue=window._gsQueue;punchgs=window.GreenSockGlobals={};console.info("Build GreenSock SandBox for ThemePunch Plugins");console.info("GreenSock TweenLite Engine Initalised by ThemePunch Plugin"),function(n){"use strict";var et=n.GreenSockGlobals||n,ct,o,at,rt,h;if(!et.TweenLite){var u,f,t,r,s,bt=function(n){for(var r=n.split("."),i=et,t=0;r.length>t;t++)i[r[t]]=i=i[r[t]]||{};return i},a=bt("com.greensock"),e=1e-10,kt=[].slice,dt=function(){},k=function(){var n=Object.prototype.toString,t=n.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&n.call(i)===t)}}(),d={},gt=function(t,i,r,u){this.sc=d[t]?d[t].sc:[];d[t]=this;this.gsClass=null;this.func=r;var f=[];this.check=function(e){for(var h,c,l,s,o=i.length,a=o;--o>-1;)(h=d[i[o]]||new gt(i[o],[])).gsClass?(f[o]=h.gsClass,a--):e&&h.sc.push(this);if(0===a&&r)for(c=("com.greensock."+t).split("."),l=c.pop(),s=bt(c.join("."))[l]=this.gsClass=r.apply(r,f),u&&(et[l]=s,"function"==typeof define&&define.amd?define((n.GreenSockAMDPath?n.GreenSockAMDPath+"/":"")+t.split(".").join("/"),[],function(){return s}):"undefined"!=typeof module&&module.exports&&(module.exports=s)),o=0;this.sc.length>o;o++)this.sc[o].check()};this.check(!0)},ot=n._gsDefine=function(n,t,i,r){return new gt(n,t,i,r)},c=a._class=function(n,t,i){return t=t||function(){},ot(n,[],function(){return t},i),t};ot.globals=et;var ni=[0,0,1,1],st=[],l=c("easing.Ease",function(n,t,i,r){this._func=n;this._type=i||0;this._power=r||0;this._params=t?ni.concat(t):ni},!0),g=l.map={},ht=l.register=function(n,t,i,r){for(var o,u,e,f,s=t.split(","),h=s.length,l=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(u=s[h],o=r?c("easing."+u,null,!0):a.easing[u]||{},e=l.length;--e>-1;)f=l[e],g[u+"."+f]=g[f+u]=o[f]=n.getRatio?n:n[f]||new n};for(t=l.prototype,t._calcEnd=!1,t.getRatio=function(n){if(this._func)return this._params[0]=n,this._func.apply(null,this._params);var i=this._type,r=this._power,t=1===i?1-n:2===i?n:.5>n?2*n:2*(1-n);return 1===r?t*=t:2===r?t*=t*t:3===r?t*=t*t*t:4===r&&(t*=t*t*t*t),1===i?1-t:2===i?t:.5>n?t/2:1-t/2},u=["Linear","Quad","Cubic","Quart","Quint,Strong"],f=u.length;--f>-1;)t=u[f]+",Power"+f,ht(new l(null,null,1,f),t,"easeOut",!0),ht(new l(null,null,2,f),t,"easeIn"+(0===f?",easeNone":"")),ht(new l(null,null,3,f),t,"easeInOut");g.linear=a.easing.Linear.easeIn;g.swing=a.easing.Quad.easeInOut;ct=c("events.EventDispatcher",function(n){this._listeners={};this._eventTarget=n||this});t=ct.prototype;t.addEventListener=function(n,t,i,u,f){f=f||0;var h,o,e=this._listeners[n],c=0;for(null==e&&(this._listeners[n]=e=[]),o=e.length;--o>-1;)h=e[o],h.c===t&&h.s===i?e.splice(o,1):0===c&&f>h.pr&&(c=o+1);e.splice(c,0,{c:t,s:i,up:u,pr:f});this!==r||s||r.wake()};t.removeEventListener=function(n,t){var i,r=this._listeners[n];if(r)for(i=r.length;--i>-1;)if(r[i].c===t)return r.splice(i,1),void 0};t.dispatchEvent=function(n){var r,i,t,u=this._listeners[n];if(u)for(r=u.length,i=this._eventTarget;--r>-1;)t=u[r],t.up?t.c.call(t.s||i,{type:n,target:i}):t.c.call(t.s||i)};var nt=n.requestAnimationFrame,lt=n.cancelAnimationFrame,tt=Date.now||function(){return(new Date).getTime()},it=tt();for(u=["ms","moz","webkit","o"],f=u.length;--f>-1&&!nt;)nt=n[u[f]+"RequestAnimationFrame"],lt=n[u[f]+"CancelAnimationFrame"]||n[u[f]+"CancelRequestAnimationFrame"];c("Ticker",function(n,t){var f,a,u,h,c,i=this,y=tt(),o=t!==!1&&nt,l=500,p=33,v=function(n){var t,e,r=tt()-it;r>l&&(y+=r-p);it+=r;i.time=(it-y)/1e3;t=i.time-c;(!f||t>0||n===!0)&&(i.frame++,c+=t+(t>=h?.004:h-t),e=!0);n!==!0&&(u=a(v));e&&i.dispatchEvent("tick")};ct.call(i);i.time=i.frame=0;i.tick=function(){v(!0)};i.lagSmoothing=function(n,t){l=n||1/e;p=Math.min(t,l,0)};i.sleep=function(){null!=u&&(o&&lt?lt(u):clearTimeout(u),a=dt,u=null,i===r&&(s=!1))};i.wake=function(){null!==u?i.sleep():i.frame>10&&(it=tt()-l+5);a=0===f?dt:o&&nt?nt:function(n){return setTimeout(n,0|1e3*(c-i.time)+1)};i===r&&(s=!0);v(2)};i.fps=function(n){return arguments.length?(f=n,h=1/(f||60),c=this.time+h,i.wake(),void 0):f};i.useRAF=function(n){return arguments.length?(i.sleep(),o=n,i.fps(f),void 0):o};i.fps(n);setTimeout(function(){o&&(!u||5>i.frame)&&i.useRAF(!1)},1500)});t=a.Ticker.prototype=new a.events.EventDispatcher;t.constructor=a.Ticker;o=c("core.Animation",function(n,t){if(this.vars=t=t||{},this._duration=this._totalDuration=n||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=t.immediateRender===!0,this.data=t.data,this._reversed=t.reversed===!0,y){s||r.wake();var i=this.vars.useFrames?b:y;i.add(this,i._time);this.vars.paused&&this.paused(!0)}});r=o.ticker=new a.Ticker;t=o.prototype;t._dirty=t._gc=t._initted=t._paused=!1;t._totalTime=t._time=0;t._rawPrevTime=-1;t._next=t._last=t._onUpdate=t._timeline=t.timeline=null;t._paused=!1;at=function(){s&&tt()-it>2e3&&r.wake();setTimeout(at,2e3)};at();t.play=function(n,t){return null!=n&&this.seek(n,t),this.reversed(!1).paused(!1)};t.pause=function(n,t){return null!=n&&this.seek(n,t),this.paused(!0)};t.resume=function(n,t){return null!=n&&this.seek(n,t),this.paused(!1)};t.seek=function(n,t){return this.totalTime(Number(n),t!==!1)};t.restart=function(n,t){return this.reversed(!1).paused(!1).totalTime(n?-this._delay:0,t!==!1,!0)};t.reverse=function(n,t){return null!=n&&this.seek(n||this.totalDuration(),t),this.reversed(!0).paused(!1)};t.render=function(){};t.invalidate=function(){return this};t.isActive=function(){var t,n=this._timeline,i=this._startTime;return!n||!this._gc&&!this._paused&&n.isActive()&&(t=n.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t};t._enabled=function(n,t){return s||r.wake(),this._gc=!n,this._active=this.isActive(),t!==!0&&(n&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!n&&this.timeline&&this._timeline._remove(this,!0)),!1};t._kill=function(){return this._enabled(!1,!1)};t.kill=function(n,t){return this._kill(n,t),this};t._uncache=function(n){for(var t=n?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this};t._swapSelfInParams=function(n){for(var t=n.length,i=n.concat();--t>-1;)"{self}"===n[t]&&(i[t]=this);return i};t.eventCallback=function(n,t,i,r){if("on"===(n||"").substr(0,2)){var u=this.vars;if(1===arguments.length)return u[n];null==t?delete u[n]:(u[n]=t,u[n+"Params"]=k(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,u[n+"Scope"]=r);"onUpdate"===n&&(this._onUpdate=t)}return this};t.delay=function(n){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+n-this._delay),this._delay=n,this):this._delay};t.duration=function(n){return arguments.length?(this._duration=this._totalDuration=n,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==n&&this.totalTime(this._totalTime*(n/this._duration),!0),this):(this._dirty=!1,this._duration)};t.totalDuration=function(n){return this._dirty=!1,arguments.length?this.duration(n):this._totalDuration};t.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(n>this._duration?this._duration:n,t)):this._time};t.totalTime=function(n,t,i){if(s||r.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>n&&!i&&(n+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var f=this._totalDuration,u=this._timeline;if(n>f&&!i&&(n=f),this._startTime=(this._paused?this._pauseTime:u._time)-(this._reversed?f-n:n)/this._timeScale,u._dirty||this._uncache(!1),u._timeline)for(;u._timeline;)u._timeline._time!==(u._startTime+u._totalTime)/u._timeScale&&u.totalTime(u._totalTime,!0),u=u._timeline}this._gc&&this._enabled(!0,!1);(this._totalTime!==n||0===this._duration)&&(this.render(n,t,!1),v.length&&ut())}return this};t.progress=t.totalProgress=function(n,t){return arguments.length?this.totalTime(this.duration()*n,t):this._time/this.duration()};t.startTime=function(n){return arguments.length?(n!==this._startTime&&(this._startTime=n,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,n-this._delay)),this):this._startTime};t.timeScale=function(n){if(!arguments.length)return this._timeScale;if(n=n||e,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,i=t||0===t?t:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/n}return this._timeScale=n,this._uncache(!1)};t.reversed=function(n){return arguments.length?(n!=this._reversed&&(this._reversed=n,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed};t.paused=function(n){if(!arguments.length)return this._paused;if(n!=this._paused&&this._timeline){s||n||r.wake();var t=this._timeline,i=t.rawTime(),u=i-this._pauseTime;!n&&t.smoothChildTiming&&(this._startTime+=u,this._uncache(!1));this._pauseTime=n?i:null;this._paused=n;this._active=this.isActive();!n&&0!==u&&this._initted&&this.duration()&&this.render(t.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!n&&this._enabled(!0,!1),this};rt=c("core.SimpleTimeline",function(n){o.call(this,0,n);this.autoRemoveChildren=this.smoothChildTiming=!0});t=rt.prototype=new o;t.constructor=rt;t.kill()._gc=!1;t._first=t._last=null;t._sortChildren=!1;t.add=t.insert=function(n,t){var i,r;if(n._startTime=Number(t||0)+n._delay,n._paused&&this!==n._timeline&&(n._pauseTime=n._startTime+(this.rawTime()-n._startTime)/n._timeScale),n.timeline&&n.timeline._remove(n,!0),n.timeline=n._timeline=this,n._gc&&n._enabled(!0,!0),i=this._last,this._sortChildren)for(r=n._startTime;i&&i._startTime>r;)i=i._prev;return i?(n._next=i._next,i._next=n):(n._next=this._first,this._first=n),n._next?n._next._prev=n:this._last=n,n._prev=i,this._timeline&&this._uncache(!0),this};t._remove=function(n,t){return n.timeline===this&&(t||n._enabled(!1,!0),n.timeline=null,n._prev?n._prev._next=n._next:this._first===n&&(this._first=n._next),n._next?n._next._prev=n._prev:this._last===n&&(this._last=n._prev),this._timeline&&this._uncache(!0)),this};t.render=function(n,t,i){var u,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=n;r;)u=r._next,(r._active||n>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=u};t.rawTime=function(){return s||r.wake(),this._totalTime};var i=c("TweenLite",function(t,r,u){if(o.call(this,r,u),this.render=i.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:i.selector(t)||t;var s,f,h,l=t.jquery||t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType),c=this.vars.overwrite;if(this._overwrite=c=null==c?ii[i.defaultOverwrite]:"number"==typeof c?c>>0:ii[c],(l||t instanceof Array||t.push&&k(t))&&"number"!=typeof t[0])for(this._targets=h=kt.call(t,0),this._propLookup=[],this._siblings=[],s=0;h.length>s;s++)f=h[s],f?"string"!=typeof f?f.length&&f!==n&&f[0]&&(f[0]===n||f[0].nodeType&&f[0].style&&!f.nodeType)?(h.splice(s--,1),this._targets=h=h.concat(kt.call(f,0))):(this._siblings[s]=ft(f,this,!1),1===c&&this._siblings[s].length>1&&wt(f,this,null,1,this._siblings[s])):(f=h[s--]=i.selector(f),"string"==typeof f&&h.splice(s+1,1)):h.splice(s--,1);else this._propLookup={},this._siblings=ft(t,this,!1),1===c&&this._siblings.length>1&&wt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===r&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-e,this.render(-this._delay))},!0),vt=function(t){return t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType)},ui=function(n,t){var i,r={};for(i in n)pt[i]||i in t&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!p[i]||p[i]&&p[i]._autoCSS)||(r[i]=n[i],delete n[i]);n.css=r};t=i.prototype=new o;t.constructor=i;t.kill()._gc=!1;t.ratio=0;t._firstPT=t._targets=t._overwrittenProps=t._startAt=null;t._notifyPluginsOfEnabled=t._lazy=!1;i.version="1.12.1";i.defaultEase=t._ease=new l(null,null,1,1);i.defaultOverwrite="auto";i.ticker=r;i.autoSleep=!0;i.lagSmoothing=function(n,t){r.lagSmoothing(n,t)};i.selector=n.$||n.jQuery||function(t){return n.$?(i.selector=n.$,n.$(t)):n.document?n.document.getElementById("#"===t.charAt(0)?t.substr(1):t):t};var v=[],yt={},ti=i._internals={isArray:k,isSelector:vt,lazyTweens:v},p=i._plugins={},w=ti.tweenLookup={},fi=0,pt=ti.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},ii={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},b=o._rootFramesTimeline=new rt,y=o._rootTimeline=new rt,ut=function(){var n=v.length;for(yt={};--n>-1;)u=v[n],u&&u._lazy!==!1&&(u.render(u._lazy,!1,!0),u._lazy=!1);v.length=0};y._startTime=r.time;b._startTime=r.frame;y._active=b._active=!0;setTimeout(ut,1);o._updateRoot=i.render=function(){var u,t,n;if(v.length&&ut(),y.render((r.time-y._startTime)*y._timeScale,!1,!1),b.render((r.frame-b._startTime)*b._timeScale,!1,!1),v.length&&ut(),!(r.frame%120)){for(n in w){for(t=w[n].tweens,u=t.length;--u>-1;)t[u]._gc&&t.splice(u,1);0===t.length&&delete w[n]}if(n=y._first,(!n||n._paused)&&i.autoSleep&&!b._first&&1===r._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||r.sleep()}}};r.addEventListener("tick",o._updateRoot);var ft=function(n,t,i){var r,f,u=n._gsTweenID;if(w[u||(n._gsTweenID=u="t"+fi++)]||(w[u]={target:n,tweens:[]}),t&&(r=w[u].tweens,r[f=r.length]=t,i))for(;--f>-1;)r[f]===t&&r.splice(f,1);return w[u].tweens},wt=function(n,t,i,r,u){var o,s,f,y;if(1===r||r>=4){for(y=u.length,o=0;y>o;o++)if((f=u[o])!==t)f._gc||f._enabled(!1,!1)&&(s=!0);else if(5===r)break;return s}var h,c=t._startTime+e,l=[],a=0,v=0===t._duration;for(o=u.length;--o>-1;)(f=u[o])===t||f._gc||f._paused||(f._timeline!==t._timeline?(h=h||ri(t,0,v),0===ri(f,h,v)&&(l[a++]=f)):c>=f._startTime&&f._startTime+f.totalDuration()/f._timeScale>c&&((v||!f._initted)&&2e-10>=c-f._startTime||(l[a++]=f)));for(o=a;--o>-1;)f=l[o],2===r&&f._kill(i,n)&&(s=!0),(2!==r||!f._firstPT&&f._initted)&&f._enabled(!1,!1)&&(s=!0);return s},ri=function(n,t,i){for(var u=n._timeline,f=u._timeScale,r=n._startTime;u._timeline;){if(r+=u._startTime,f*=u._timeScale,u._paused)return-100;u=u._timeline}return r/=f,r>t?r-t:i&&r===t||!n._initted&&2*e>r-t?e:(r+=n.totalDuration()/n._timeScale/f)>t+e?0:r-t-e};if(t._init=function(){var e,h,n,r,u,t=this.vars,s=this._overwrittenProps,c=this._duration,o=!!t.immediateRender,f=t.ease;if(t.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill());u={};for(r in t.startAt)u[r]=t.startAt[r];if(u.overwrite=!1,u.immediateRender=!0,u.lazy=o&&t.lazy!==!1,u.startAt=u.delay=null,this._startAt=i.to(this.target,0,u),o)if(this._time>0)this._startAt=null;else if(0!==c)return}else if(t.runBackwards&&0!==c)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{n={};for(r in t)pt[r]&&"autoCSS"!==r||(n[r]=t[r]);if(n.overwrite=0,n.data="isFromStart",n.lazy=o&&t.lazy!==!1,n.immediateRender=o,this._startAt=i.to(this.target,0,n),o){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1)}if(this._ease=f?f instanceof l?t.easeParams instanceof Array?f.config.apply(f,t.easeParams):f:"function"==typeof f?new l(f,t.easeParams):g[f]||i.defaultEase:i.defaultEase,this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(e=this._targets.length;--e>-1;)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],s?s[e]:null)&&(h=!0);else h=this._initProps(this.target,this._propLookup,this._siblings,s);if(h&&i._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),t.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=t.onUpdate;this._initted=!0},t._initProps=function(t,i,r,u){var f,h,c,s,o,e;if(null==t)return!1;yt[t._gsTweenID]&&ut();this.vars.css||t.style&&t!==n&&t.nodeType&&p.css&&this.vars.autoCSS!==!1&&ui(this.vars,t);for(f in this.vars){if(e=this.vars[f],pt[f])e&&(e instanceof Array||e.push&&k(e))&&-1!==e.join("").indexOf("{self}")&&(this.vars[f]=e=this._swapSelfInParams(e,this));else if(p[f]&&(s=new p[f])._onInitTween(t,this.vars[f],this)){for(this._firstPT=o={_next:this._firstPT,t:s,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:s._priority},h=s._overwriteProps.length;--h>-1;)i[s._overwriteProps[h]]=this._firstPT;(s._priority||s._onInitAllProps)&&(c=!0);(s._onDisable||s._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[f]=o={_next:this._firstPT,t:t,p:f,f:"function"==typeof t[f],n:f,pg:!1,pr:0},o.s=o.f?t[f.indexOf("set")||"function"!=typeof t["get"+f.substr(3)]?f:"get"+f.substr(3)]():parseFloat(t[f]),o.c="string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*Number(e.substr(2)):Number(e)-o.s||0;o&&o._next&&(o._next._prev=o)}return u&&this._kill(u,t)?this._initProps(t,i,r,u):this._overwrite>1&&this._firstPT&&r.length>1&&wt(t,this,i,this._overwrite,r)?(this._kill(i,t),this._initProps(t,i,r,u)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(yt[t._gsTweenID]=!0),c)},t.render=function(n,t,i){var h,o,u,y,c=this._time,f=this._duration,s=this._rawPrevTime;if(n>=f)this._totalTime=this._time=f,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(h=!0,o="onComplete"),0===f&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(n=0),(0===n||0>s||s===e)&&s!==n&&(i=!0,s>e&&(o="onReverseComplete")),this._rawPrevTime=y=!t||n||s===n?n:e);else if(1e-7>n)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==c||0===f&&s>0&&s!==e)&&(o="onReverseComplete",h=this._reversed),0>n?(this._active=!1,0===f&&(this._initted||!this.vars.lazy||i)&&(s>=0&&(i=!0),this._rawPrevTime=y=!t||n||s===n?n:e)):this._initted||(i=!0);else if(this._totalTime=this._time=n,this._easeType){var r=n/f,l=this._easeType,a=this._easePower;(1===l||3===l&&r>=.5)&&(r=1-r);3===l&&(r*=2);1===a?r*=r:2===a?r*=r*r:3===a?r*=r*r*r:4===a&&(r*=r*r*r*r);this.ratio=1===l?1-r:2===l?r:.5>n/f?r/2:1-r/2}else this.ratio=this._ease.getRatio(n/f);if(this._time!==c||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=c,this._rawPrevTime=s,v.push(this),this._lazy=n,void 0;this._time&&!h?this.ratio=this._ease.getRatio(this._time/f):h&&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!==c&&n>=0&&(this._active=!0),0===c&&(this._startAt&&(n>=0?this._startAt.render(n,t,i):o||(o="_dummyGS")),this.vars.onStart&&(0!==this._time||0===f)&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||st))),u=this._firstPT;u;)u.f?u.t[u.p](u.c*this.ratio+u.s):u.t[u.p]=u.c*this.ratio+u.s,u=u._next;this._onUpdate&&(0>n&&this._startAt&&this._startTime&&this._startAt.render(n,t,i),t||(this._time!==c||h)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||st));o&&(this._gc||(0>n&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(n,t,i),h&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[o]&&this.vars[o].apply(this.vars[o+"Scope"]||this,this.vars[o+"Params"]||st),0===f&&this._rawPrevTime===e&&y!==e&&(this._rawPrevTime=0)))}},t._kill=function(n,t){if("all"===n&&(n=null),null==n&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:i.selector(t)||t;var u,e,o,r,f,s,h,c;if((k(t)||vt(t))&&"number"!=typeof t[0])for(u=t.length;--u>-1;)this._kill(n,t[u])&&(s=!0);else{if(this._targets){for(u=this._targets.length;--u>-1;)if(t===this._targets[u]){f=this._propLookup[u]||{};this._overwrittenProps=this._overwrittenProps||[];e=this._overwrittenProps[u]=n?this._overwrittenProps[u]||{}:"all";break}}else{if(t!==this.target)return!1;f=this._propLookup;e=this._overwrittenProps=n?this._overwrittenProps||{}:"all"}if(f){h=n||f;c=n!==e&&"all"!==e&&n!==f&&("object"!=typeof n||!n._tempKill);for(o in h)(r=f[o])&&(r.pg&&r.t._kill(h)&&(s=!0),r.pg&&0!==r.t._overwriteProps.length||(r._prev?r._prev._next=r._next:r===this._firstPT&&(this._firstPT=r._next),r._next&&(r._next._prev=r._prev),r._next=r._prev=null),delete f[o]),c&&(e[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return s},t.invalidate=function(){return this._notifyPluginsOfEnabled&&i._onPluginEvent("_onDisable",this),this._firstPT=null,this._overwrittenProps=null,this._onUpdate=null,this._startAt=null,this._initted=this._active=this._notifyPluginsOfEnabled=this._lazy=!1,this._propLookup=this._targets?{}:[],this},t._enabled=function(n,t){if(s||r.wake(),n&&this._gc){var u,f=this._targets;if(f)for(u=f.length;--u>-1;)this._siblings[u]=ft(f[u],this,!0);else this._siblings=ft(this.target,this,!0)}return o.prototype._enabled.call(this,n,t),this._notifyPluginsOfEnabled&&this._firstPT?i._onPluginEvent(n?"_onEnable":"_onDisable",this):!1},i.to=function(n,t,r){return new i(n,t,r)},i.from=function(n,t,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new i(n,t,r)},i.fromTo=function(n,t,r,u){return u.startAt=r,u.immediateRender=0!=u.immediateRender&&0!=r.immediateRender,new i(n,t,u)},i.delayedCall=function(n,t,r,u,f){return new i(t,0,{delay:n,onComplete:t,onCompleteParams:r,onCompleteScope:u,onReverseComplete:t,onReverseCompleteParams:r,onReverseCompleteScope:u,immediateRender:!1,useFrames:f,overwrite:0})},i.set=function(n,t){return new i(n,0,t)},i.getTweensOf=function(n,t){if(null==n)return[];n="string"!=typeof n?n:i.selector(n)||n;var r,u,f,e;if((k(n)||vt(n))&&"number"!=typeof n[0]){for(r=n.length,u=[];--r>-1;)u=u.concat(i.getTweensOf(n[r],t));for(r=u.length;--r>-1;)for(e=u[r],f=r;--f>-1;)e===u[f]&&u.splice(r,1)}else for(u=ft(n).concat(),r=u.length;--r>-1;)(u[r]._gc||t&&!u[r].isActive())&&u.splice(r,1);return u},i.killTweensOf=i.killDelayedCallsTo=function(n,t,r){"object"==typeof t&&(r=t,t=!1);for(var u=i.getTweensOf(n,t),f=u.length;--f>-1;)u[f]._kill(r,n)},h=c("plugins.TweenPlugin",function(n,t){this._overwriteProps=(n||"").split(",");this._propName=this._overwriteProps[0];this._priority=t||0;this._super=h.prototype},!0),t=h.prototype,h.version="1.10.1",h.API=2,t._firstPT=null,t._addTween=function(n,t,i,r,u,f){var o,e;if(null!=r&&(o="number"==typeof r||"="!==r.charAt(1)?Number(r)-i:parseInt(r.charAt(0)+"1",10)*Number(r.substr(2))))return(this._firstPT=e={_next:this._firstPT,t:n,p:t,s:i,c:o,f:"function"==typeof n[t],n:u||t,r:f},e._next&&(e._next._prev=e),e)},t.setRatio=function(n){for(var i,t=this._firstPT,r=1e-6;t;)i=t.c*n+t.s,t.r?i=Math.round(i):r>i&&i>-r&&(i=0),t.f?t.t[t.p](i):t.t[t.p]=i,t=t._next},t._kill=function(n){var i,r=this._overwriteProps,t=this._firstPT;if(null!=n[this._propName])this._overwriteProps=[];else for(i=r.length;--i>-1;)null!=n[r[i]]&&r.splice(i,1);for(;t;)null!=n[t.n]&&(t._next&&(t._next._prev=t._prev),t._prev?(t._prev._next=t._next,t._prev=null):this._firstPT===t&&(this._firstPT=t._next)),t=t._next;return!1},t._roundProps=function(n,t){for(var i=this._firstPT;i;)(n[this._propName]||null!=i.n&&n[i.n.split(this._propName+"_").join("")])&&(i.r=t),i=i._next},i._onPluginEvent=function(n,t){var f,r,u,e,o,i=t._firstPT;if("_onInitAllProps"===n){for(;i;){for(o=i._next,r=u;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:e)?i._prev._next=i:u=i;(i._next=r)?r._prev=i:e=i;i=o}i=t._firstPT=u}for(;i;)i.pg&&"function"==typeof i.t[n]&&i.t[n]()&&(f=!0),i=i._next;return f},h.activate=function(n){for(var t=n.length;--t>-1;)n[t].API===h.API&&(p[(new n[t])._propName]=n[t]);return!0},ot.plugin=function(n){if(!(n&&n.propName&&n.init&&n.API))throw"illegal plugin definition.";var i,r=n.propName,e=n.priority||0,o=n.overwriteProps,u={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},t=c("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){h.call(this,r,e);this._overwriteProps=o||[]},n.global===!0),f=t.prototype=new h(r);f.constructor=t;t.API=n.API;for(i in u)"function"==typeof n[i]&&(f[u[i]]=n[i]);return t.version=n.version,h.activate([t]),t},u=n._gsQueue){for(f=0;u.length>f;f++)u[f]();for(t in d)d[t].func||n.console.log("GSAP encountered missing dependency: com.greensock."+t)}s=!1}}(window);(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,t,i){var u=function(n){t.call(this,n);this._labels={};this.autoRemoveChildren=this.vars.autoRemoveChildren===!0;this.smoothChildTiming=this.vars.smoothChildTiming===!0;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;var r,u,i=this.vars;for(u in i)r=i[u],f(r)&&-1!==r.join("").indexOf("{self}")&&(i[u]=this._swapSelfInParams(r));f(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)},e=1e-10,c=i._internals.isSelector,f=i._internals.isArray,o=[],s=window._gsDefine.globals,h=function(n){var t,i={};for(t in n)i[t]=n[t];return i},l=function(n,t,i,r){n._timeline.pause(n._startTime);t&&t.apply(r||n._timeline,i||o)},a=o.slice,r=u.prototype=new t;return u.version="1.12.1",r.constructor=u,r.kill()._gc=!1,r.to=function(n,t,r,u){var f=r.repeat&&s.TweenMax||i;return t?this.add(new f(n,t,r),u):this.set(n,r,u)},r.from=function(n,t,r,u){return this.add((r.repeat&&s.TweenMax||i).from(n,t,r),u)},r.fromTo=function(n,t,r,u,f){var e=u.repeat&&s.TweenMax||i;return t?this.add(e.fromTo(n,t,r,u),f):this.set(n,u,f)},r.staggerTo=function(n,t,r,f,e,o,s,l){var v,y=new u({onComplete:o,onCompleteParams:s,onCompleteScope:l,smoothChildTiming:this.smoothChildTiming});for("string"==typeof n&&(n=i.selector(n)||n),c(n)&&(n=a.call(n,0)),f=f||0,v=0;n.length>v;v++)r.startAt&&(r.startAt=h(r.startAt)),y.to(n[v],t,h(r),v*f);return this.add(y,e)},r.staggerFrom=function(n,t,i,r,u,f,e,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(n,t,i,r,u,f,e,o)},r.staggerFromTo=function(n,t,i,r,u,f,e,o,s){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(n,t,r,u,f,e,o,s)},r.call=function(n,t,r,u){return this.add(i.delayedCall(0,n,t,r),u)},r.set=function(n,t,r){return r=this._parseTimeOrLabel(r,0,!0),null==t.immediateRender&&(t.immediateRender=r===this._time&&!this._paused),this.add(new i(n,0,t),r)},u.exportRoot=function(n,t){n=n||{};null==n.smoothChildTiming&&(n.smoothChildTiming=!0);var r,o,f=new u(n),e=f._timeline;for(null==t&&(t=!0),e._remove(f,!0),f._startTime=0,f._rawPrevTime=f._time=f._totalTime=e._time,r=e._first;r;)o=r._next,t&&r instanceof i&&r.target===r.vars.onComplete||f.add(r,r._startTime-r._delay),r=o;return e.add(f,0),f},r.add=function(r,e,o,s){var l,v,a,h,c,y;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,r)),!(r instanceof n)){if(r instanceof Array||r&&r.push&&f(r)){for(o=o||"normal",s=s||0,l=e,v=r.length,a=0;v>a;a++)f(h=r[a])&&(h=new u({tweens:h})),this.add(h,l),"string"!=typeof h&&"function"!=typeof h&&("sequence"===o?l=h._startTime+h.totalDuration()/h._timeScale:"start"===o&&(h._startTime-=h.delay())),l+=s;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,e);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(t.prototype.add.call(this,r,e),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,y=c.rawTime()>r._startTime;c._timeline;)y&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},r.remove=function(t){if(t instanceof n)return this._remove(t,!1);if(t instanceof Array||t&&t.push&&f(t)){for(var i=t.length;--i>-1;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},r._remove=function(n,i){t.prototype._remove.call(this,n,i);var r=this._last;return r?this._time>r._startTime+r._totalDuration/r._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(n,t){return this.add(n,this._parseTimeOrLabel(null,t,!0,n))},r.insert=r.insertMultiple=function(n,t,i,r){return this.add(n,t||0,i,r)},r.appendMultiple=function(n,t,i,r){return this.add(n,this._parseTimeOrLabel(null,t,!0,n),i,r)},r.addLabel=function(n,t){return this._labels[n]=this._parseTimeOrLabel(t),this},r.addPause=function(n,t,i,r){return this.call(l,["{self}",t,i,r],this,n)},r.removeLabel=function(n){return delete this._labels[n],this},r.getLabelTime=function(n){return null!=this._labels[n]?this._labels[n]:-1},r._parseTimeOrLabel=function(t,i,r,u){var e;if(u instanceof n&&u.timeline===this)this.remove(u);else if(u&&(u instanceof Array||u.push&&f(u)))for(e=u.length;--e>-1;)u[e]instanceof n&&u[e].timeline===this&&this.remove(u[e]);if("string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof t&&null==this._labels[i]?t-this.duration():0,r);if(i=i||0,"string"==typeof t&&(isNaN(t)||null!=this._labels[t])){if(e=t.indexOf("="),-1===e)return null==this._labels[t]?r?this._labels[t]=this.duration()+i:i:this._labels[t]+i;i=parseInt(t.charAt(e-1)+"1",10)*Number(t.substr(e+1));t=e>1?this._parseTimeOrLabel(t.substr(0,e-1),0,r):this.duration()}else null==t&&(t=this.duration());return Number(t)+i},r.seek=function(n,t){return this.totalTime("number"==typeof n?n:this._parseTimeOrLabel(n),t!==!1)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(n,t){return this.play(n,t)},r.gotoAndStop=function(n,t){return this.pause(n,t)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,l,s,u,h,c=this._dirty?this.totalDuration():this._totalDuration,f=this._time,v=this._startTime,y=this._timeScale,a=this._paused;if(n>=c?(this._totalTime=this._time=c,this._reversed||this._hasPausedChild()||(l=!0,u="onComplete",0===this._duration&&(0===n||0>this._rawPrevTime||this._rawPrevTime===e)&&this._rawPrevTime!==n&&this._first&&(h=!0,this._rawPrevTime>e&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,n=c+.0001):1e-7>n?(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>n&&this._rawPrevTime>=0))&&(u="onReverseComplete",l=this._reversed),0>n?(this._active=!1,0===this._duration&&this._rawPrevTime>=0&&this._first&&(h=!0),this._rawPrevTime=n):(this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,n=0,this._initted||(h=!0))):this._totalTime=this._time=this._rawPrevTime=n,this._time!==f&&this._first||i||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&n>0&&(this._active=!0),0===f&&this.vars.onStart&&0!==this._time&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||o)),this._time>=f)for(r=this._first;r&&(s=r._next,!this._paused||a);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=s;else for(r=this._last;r&&(s=r._prev,!this._paused||a);)(r._active||f>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=s;this._onUpdate&&(t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||o));u&&(this._gc||(v===this._startTime||y!==this._timeScale)&&(0===this._time||c>=this.totalDuration())&&(l&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[u]&&this.vars[u].apply(this.vars[u+"Scope"]||this,this.vars[u+"Params"]||o)))}},r._hasPausedChild=function(){for(var n=this._first;n;){if(n._paused||n instanceof u&&n._hasPausedChild())return!0;n=n._next}return!1},r.getChildren=function(n,t,r,u){u=u||-9999999999;for(var e=[],f=this._first,o=0;f;)u>f._startTime||(f instanceof i?t!==!1&&(e[o++]=f):(r!==!1&&(e[o++]=f),n!==!1&&(e=e.concat(f.getChildren(!0,t,r)),o=e.length))),f=f._next;return e},r.getTweensOf=function(n,t){var r,u,f=this._gc,e=[],o=0;for(f&&this._enabled(!0,!0),r=i.getTweensOf(n),u=r.length;--u>-1;)(r[u].timeline===this||t&&this._contains(r[u]))&&(e[o++]=r[u]);return f&&this._enabled(!1,!0),e},r._contains=function(n){for(var t=n.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(n,t,i){i=i||0;for(var u,r=this._first,f=this._labels;r;)r._startTime>=i&&(r._startTime+=n),r=r._next;if(t)for(u in f)f[u]>=i&&(f[u]+=n);return this._uncache(!0)},r._kill=function(n,t){if(!n&&!t)return this._enabled(!1,!1);for(var i=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),r=i.length,u=!1;--r>-1;)i[r]._kill(n,t)&&(u=!0);return u},r.clear=function(n){var t=this.getChildren(!1,!0,!0),i=t.length;for(this._time=this._totalTime=0;--i>-1;)t[i]._enabled(!1,!1);return n!==!1&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var n=this._first;n;)n.invalidate(),n=n._next;return this},r._enabled=function(n,i){if(n===this._gc)for(var r=this._first;r;)r._enabled(n,!0),r=r._next;return t.prototype._enabled.call(this,n,i)},r.duration=function(n){return arguments.length?(0!==this.duration()&&0!==n&&this.timeScale(this._duration/n),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(n){if(!arguments.length){if(this._dirty){for(var f,r,i=0,t=this._last,u=999999999999;t;)f=t._prev,t._dirty&&t.totalDuration(),t._startTime>u&&this._sortChildren&&!t._paused?this.add(t,t._startTime-t._delay):u=t._startTime,0>t._startTime&&!t._paused&&(i-=t._startTime,this._timeline.smoothChildTiming&&(this._startTime+=t._startTime/this._timeScale),this.shiftChildren(-t._startTime,!1,-9999999999),u=0),r=t._startTime+t._totalDuration/t._timeScale,r>i&&(i=r),t=f;this._duration=this._totalDuration=i;this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==n&&this.timeScale(this._totalDuration/n),this},r.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===n._rootFramesTimeline},r.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},u},!0)});window._gsDefine&&window._gsQueue.pop()();(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine("easing.Back",["easing.Ease"],function(n){var f,u,h,v=window.GreenSockGlobals||window,p=v.com.greensock,s=2*Math.PI,y=Math.PI/2,r=p._class,t=function(t,i){var u=r("easing."+t,function(){},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,u},c=n.register||function(){},e=function(n,t,i,u){var f=r("easing."+n,{easeOut:new t,easeIn:new i,easeInOut:new u},!0);return c(f,n),f},l=function(n,t,i){this.t=n;this.v=t;i&&(this.next=i,i.prev=this,this.c=i.v-t,this.gap=i.t-n)},a=function(t,i){var u=r("easing."+t,function(n){this._p1=n||0===n?n:1.70158;this._p2=1.525*this._p1},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,f.config=function(n){return new u(n)},u},w=e("Back",a("BackOut",function(n){return(n-=1)*n*((this._p1+1)*n+this._p1)+1}),a("BackIn",function(n){return n*n*((this._p1+1)*n-this._p1)}),a("BackInOut",function(n){return 1>(n*=2)?.5*n*n*((this._p2+1)*n-this._p2):.5*((n-=2)*n*((this._p2+1)*n+this._p2)+2)})),o=r("easing.SlowMo",function(n,t,i){t=t||0===t?t:.7;null==n?n=.7:n>1&&(n=1);this._p=1!==n?t:0;this._p1=(1-n)/2;this._p2=n;this._p3=this._p1+this._p2;this._calcEnd=i===!0},!0),i=o.prototype=new n;return i.constructor=o,i.getRatio=function(n){var t=n+(.5-n)*this._p;return this._p1>n?this._calcEnd?1-(n=1-n/this._p1)*n:t-(n=1-n/this._p1)*n*n*n*t:n>this._p3?this._calcEnd?1-(n=(n-this._p3)/this._p1)*n:t+(n-t)*(n=(n-this._p3)/this._p1)*n*n*n:this._calcEnd?1:t},o.ease=new o(.7,.7),i.config=o.config=function(n,t,i){return new o(n,t,i)},f=r("easing.SteppedEase",function(n){n=n||1;this._p1=1/n;this._p2=n+1},!0),i=f.prototype=new n,i.constructor=f,i.getRatio=function(n){return 0>n?n=0:n>=1&&(n=.999999999),(this._p2*n>>0)*this._p1},i.config=f.config=function(n){return new f(n)},u=r("easing.RoughEase",function(t){t=t||{};for(var i,r,u,f,h,e,c=t.taper||"none",a=[],w=0,v=0|(t.points||20),o=v,y=t.randomize!==!1,b=t.clamp===!0,p=t.template instanceof n?t.template:null,s="number"==typeof t.strength?.4*t.strength:.4;--o>-1;)i=y?Math.random():1/v*o,r=p?p.getRatio(i):i,"none"===c?u=s:"out"===c?(f=1-i,u=f*f*s):"in"===c?u=i*i*s:.5>i?(f=2*i,u=.5*f*f*s):(f=2*(1-i),u=.5*f*f*s),y?r+=Math.random()*u-.5*u:o%2?r+=.5*u:r-=.5*u,b&&(r>1?r=1:0>r&&(r=0)),a[w++]={x:i,y:r};for(a.sort(function(n,t){return n.x-t.x}),e=new l(1,1,null),o=v;--o>-1;)h=a[o],e=new l(h.x,h.y,e);this._prev=new l(0,0,0!==e.t?e:e.next)},!0),i=u.prototype=new n,i.constructor=u,i.getRatio=function(n){var t=this._prev;if(n>t.t){for(;t.next&&n>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&t.t>=n;)t=t.prev;return this._prev=t,t.v+(n-t.t)/t.gap*t.c},i.config=function(n){return new u(n)},u.ease=new u,e("Bounce",t("BounceOut",function(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}),t("BounceIn",function(n){return 1/2.75>(n=1-n)?1-7.5625*n*n:2/2.75>n?1-(7.5625*(n-=1.5/2.75)*n+.75):2.5/2.75>n?1-(7.5625*(n-=2.25/2.75)*n+.9375):1-(7.5625*(n-=2.625/2.75)*n+.984375)}),t("BounceInOut",function(n){var t=.5>n;return n=t?1-2*n:2*n-1,n=1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,t?.5*(1-n):.5*n+.5})),e("Circ",t("CircOut",function(n){return Math.sqrt(1-(n-=1)*n)}),t("CircIn",function(n){return-(Math.sqrt(1-n*n)-1)}),t("CircInOut",function(n){return 1>(n*=2)?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)})),h=function(t,i,u){var f=r("easing."+t,function(n,t){this._p1=n||1;this._p2=t||u;this._p3=this._p2/s*(Math.asin(1/this._p1)||0)},!0),e=f.prototype=new n;return e.constructor=f,e.getRatio=i,e.config=function(n,t){return new f(n,t)},f},e("Elastic",h("ElasticOut",function(n){return this._p1*Math.pow(2,-10*n)*Math.sin((n-this._p3)*s/this._p2)+1},.3),h("ElasticIn",function(n){return-(this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*s/this._p2))},.3),h("ElasticInOut",function(n){return 1>(n*=2)?-.5*this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*s/this._p2):.5*this._p1*Math.pow(2,-10*(n-=1))*Math.sin((n-this._p3)*s/this._p2)+1},.45)),e("Expo",t("ExpoOut",function(n){return 1-Math.pow(2,-10*n)}),t("ExpoIn",function(n){return Math.pow(2,10*(n-1))-.001}),t("ExpoInOut",function(n){return 1>(n*=2)?.5*Math.pow(2,10*(n-1)):.5*(2-Math.pow(2,-10*(n-1)))})),e("Sine",t("SineOut",function(n){return Math.sin(n*y)}),t("SineIn",function(n){return-Math.cos(n*y)+1}),t("SineInOut",function(n){return-.5*(Math.cos(Math.PI*n)-1)})),r("easing.EaseLookup",{find:function(t){return n.map[t]}},!0),c(v.SlowMo,"SlowMo","ease,"),c(u,"RoughEase","ease,"),c(f,"SteppedEase","ease,"),w},!0)});window._gsDefine&&window._gsQueue.pop()();(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(n,t){var rt,lt,f,bt,e=function(){n.call(this,"css");this._overwriteProps.length=0;this.setRatio=e.prototype.setRatio},c={},i=e.prototype=new n("css"),hr,wt,cr,lr,ar,ct;i.constructor=e;e.version="1.12.1";e.API=2;e.defaultTransformPerspective=0;e.defaultSkewType="compensated";i="px";e.suffixMap={top:i,right:i,bottom:i,left:i,width:i,height:i,fontSize:i,padding:i,margin:i,perspective:i,lineHeight:""};var kt,ai,dt,vi,yi,ut,at=/(?:\d|\-\d|\.\d|\-\.\d)+/g,pi=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,gt=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,vt=/[^\d\-\.]/g,ni=/(?:\d|\-|\+|=|#|\.)*/g,ti=/opacity *= *([^)]*)/i,vr=/opacity:([^;]*)/i,yr=/alpha\(opacity *=.+?\)/i,wi=/^(rgb|hsl)/,bi=/([A-Z])/g,ki=/-([a-z])/gi,pr=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,di=function(n,t){return t.toUpperCase()},wr=/(?:Left|Right|Width)/i,br=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,kr=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,l=/,(?=[^\)]*(?:\(|$))/gi,a=Math.PI/180,g=180/Math.PI,yt={},b=document,p=b.createElement("div"),ii=b.createElement("img"),v=e._internals={_specialProps:c},k=navigator.userAgent,nt=function(){var n,t=k.indexOf("Android"),i=b.createElement("div");return dt=-1!==k.indexOf("Safari")&&-1===k.indexOf("Chrome")&&(-1===t||Number(k.substr(t+8,1))>3),yi=dt&&6>Number(k.substr(k.indexOf("Version/")+8,1)),vi=-1!==k.indexOf("Firefox"),/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(k)&&(ut=parseFloat(RegExp.$1)),i.innerHTML="<a style='top:1px;opacity:.55;'>a<\/a>",n=i.getElementsByTagName("a")[0],n?/^0.55/.test(n.style.opacity):!1}(),gi=function(n){return ti.test("string"==typeof n?n:(n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100:1},nr=function(n){window.console&&console.log(n)},tr="",ri="",ft=function(n,t){t=t||p;var r,i,u=t.style;if(void 0!==u[n])return n;for(n=n.charAt(0).toUpperCase()+n.substr(1),r=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===u[r[i]+n];);return i>=0?(ri=3===i?"ms":r[i],tr="-"+ri.toLowerCase()+"-",ri+n):null},et=b.defaultView?b.defaultView.getComputedStyle:function(){},r=e.getStyle=function(n,t,i,r,u){var f;return nt||"opacity"!==t?(!r&&n.style[t]?f=n.style[t]:(i=i||et(n))?f=i[t]||i.getPropertyValue(t)||i.getPropertyValue(t.replace(bi,"-$1").toLowerCase()):n.currentStyle&&(f=n.currentStyle[t]),null==u||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:u):gi(n)},y=v.convertToPixels=function(n,i,u,f,o){if("px"===f||!f)return u;if("auto"===f||!u)return 0;var s,h,a,l=wr.test(i),c=n,v=p.style,w=0>u;if(w&&(u=-u),"%"===f&&-1!==i.indexOf("border"))s=u/100*(l?n.clientWidth:n.clientHeight);else{if(v.cssText="border:0 solid red;position:"+r(n,"position")+";line-height:0;","%"!==f&&c.appendChild)v[l?"borderLeftWidth":"borderTopWidth"]=u+f;else{if(c=n.parentNode||b.body,h=c._gsCache,a=t.ticker.frame,h&&l&&h.time===a)return h.width*u/100;v[l?"width":"height"]=u+f}c.appendChild(p);s=parseFloat(p[l?"offsetWidth":"offsetHeight"]);c.removeChild(p);l&&"%"===f&&e.cacheWidths!==!1&&(h=c._gsCache=c._gsCache||{},h.time=a,h.width=100*(s/u));0!==s||o||(s=y(n,i,u,f,!0))}return w?-s:s},ir=v.calculateOffset=function(n,t,i){if("absolute"!==r(n,"position",i))return 0;var u="left"===t?"Left":"Top",f=r(n,"margin"+u,i);return n["offset"+u]-(y(n,t,parseFloat(f),f.replace(ni,""))||0)},ot=function(n,t){var r,u,i={};if(t=t||et(n,null))if(r=t.length)for(;--r>-1;)i[t[r].replace(ki,di)]=t.getPropertyValue(t[r]);else for(r in t)i[r]=t[r];else if(t=n.currentStyle||n.style)for(r in t)"string"==typeof r&&void 0===i[r]&&(i[r.replace(ki,di)]=t[r]);return nt||(i.opacity=gi(n)),u=ht(n,t,!1),i.rotation=u.rotation,i.skewX=u.skewX,i.scaleX=u.scaleX,i.scaleY=u.scaleY,i.x=u.x,i.y=u.y,w&&(i.z=u.z,i.rotationX=u.rotationX,i.rotationY=u.rotationY,i.scaleZ=u.scaleZ),i.filters&&delete i.filters,i},ui=function(n,t,i,r,u){var e,f,o,s={},h=n.style;for(f in i)"cssText"!==f&&"length"!==f&&isNaN(f)&&(t[f]!==(e=i[f])||u&&u[f])&&-1===f.indexOf("Origin")&&("number"==typeof e||"string"==typeof e)&&(s[f]="auto"!==e||"left"!==f&&"top"!==f?""!==e&&"auto"!==e&&"none"!==e||"string"!=typeof t[f]||""===t[f].replace(vt,"")?e:0:ir(n,f),void 0!==h[f]&&(o=new hi(h,f,h[f],o)));if(r)for(f in r)"className"!==f&&(s[f]=r[f]);return{difs:s,firstMPT:o}},dr={width:["Left","Right"],height:["Top","Bottom"]},gr=["marginLeft","marginRight","marginTop","marginBottom"],nu=function(n,t,i){var u=parseFloat("width"===t?n.offsetWidth:n.offsetHeight),f=dr[t],e=f.length;for(i=i||et(n,null);--e>-1;)u-=parseFloat(r(n,"padding"+f[e],i,!0))||0,u-=parseFloat(r(n,"border"+f[e]+"Width",i,!0))||0;return u},fi=function(n,t){(null==n||""===n||"auto"===n||"auto auto"===n)&&(n="0 0");var u=n.split(" "),i=-1!==n.indexOf("left")?"0%":-1!==n.indexOf("right")?"100%":u[0],r=-1!==n.indexOf("top")?"0%":-1!==n.indexOf("bottom")?"100%":u[1];return null==r?r="0":"center"===r&&(r="50%"),("center"===i||isNaN(parseFloat(i))&&-1===(i+"").indexOf("="))&&(i="50%"),t&&(t.oxp=-1!==i.indexOf("%"),t.oyp=-1!==r.indexOf("%"),t.oxr="="===i.charAt(1),t.oyr="="===r.charAt(1),t.ox=parseFloat(i.replace(vt,"")),t.oy=parseFloat(r.replace(vt,""))),i+" "+r+(u.length>2?" "+u[2]:"")},rr=function(n,t){return"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-parseFloat(t)},d=function(n,t){return null==n?t:"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*Number(n.substr(2))+t:parseFloat(n)},st=function(n,t,i,r){var f,o,u,e,s=1e-6;return null==n?e=t:"number"==typeof n?e=n:(f=360,o=n.split("_"),u=Number(o[0].replace(vt,""))*(-1===n.indexOf("rad")?1:g)-("="===n.charAt(1)?0:t),o.length&&(r&&(r[i]=t+u),-1!==n.indexOf("short")&&(u%=f,u!==u%(f/2)&&(u=0>u?u+f:u-f)),-1!==n.indexOf("_cw")&&0>u?u=(u+9999999999*f)%f-(0|u/f)*f:-1!==n.indexOf("ccw")&&u>0&&(u=(u-9999999999*f)%f-(0|u/f)*f)),e=t+u),s>e&&e>-s&&(e=0),e},tt={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]},ei=function(n,t,i){return n=0>n?n+1:n>1?n-1:n,0|255*(1>6*n?t+6*(i-t)*n:.5>n?i:2>3*n?t+6*(i-t)*(2/3-n):t)+.5},oi=function(n){var i,t,e,u,f,r;return n&&""!==n?"number"==typeof n?[n>>16,255&n>>8,255&n]:(","===n.charAt(n.length-1)&&(n=n.substr(0,n.length-1)),tt[n]?tt[n]:"#"===n.charAt(0)?(4===n.length&&(i=n.charAt(1),t=n.charAt(2),e=n.charAt(3),n="#"+i+i+t+t+e+e),n=parseInt(n.substr(1),16),[n>>16,255&n>>8,255&n]):"hsl"===n.substr(0,3)?(n=n.match(at),u=Number(n[0])%360/360,f=Number(n[1])/100,r=Number(n[2])/100,t=.5>=r?r*(f+1):r+f-r*f,i=2*r-t,n.length>3&&(n[3]=Number(n[3])),n[0]=ei(u+1/3,i,t),n[1]=ei(u,i,t),n[2]=ei(u-1/3,i,t),n):(n=n.match(at)||tt.transparent,n[0]=Number(n[0]),n[1]=Number(n[1]),n[2]=Number(n[2]),n.length>3&&(n[3]=Number(n[3])),n)):tt.black},it="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(i in tt)it+="|"+i+"\\b";it=RegExp(it+")","gi");var ur=function(n,t,i,r){if(null==n)return function(n){return n};var e,s=t?(n.match(it)||[""])[0]:"",f=n.split(s).join("").match(gt)||[],h=n.substr(0,n.indexOf(f[0])),c=")"===n.charAt(n.length-1)?")":"",o=-1!==n.indexOf(" ")?" ":",",u=f.length,a=u>0?f[0].replace(at,""):"";return u?e=t?function(n){var p,v,t,y;if("number"==typeof n)n+=a;else if(r&&l.test(n)){for(y=n.replace(l,"|").split("|"),t=0;y.length>t;t++)y[t]=e(y[t]);return y.join(",")}if(p=(n.match(it)||[s])[0],v=n.split(p).join("").match(gt)||[],t=v.length,u>t--)for(;u>++t;)v[t]=i?v[0|(t-1)/2]:f[t];return h+v.join(o)+o+p+c+(-1!==n.indexOf("inset")?" inset":"")}:function(n){var s,v,t;if("number"==typeof n)n+=a;else if(r&&l.test(n)){for(v=n.replace(l,"|").split("|"),t=0;v.length>t;t++)v[t]=e(v[t]);return v.join(",")}if(s=n.match(gt)||[],t=s.length,u>t--)for(;u>++t;)s[t]=i?s[0|(t-1)/2]:f[t];return h+s.join(o)+c}:function(n){return n}},si=function(n){return n=n.split(","),function(t,i,r,u,f,e,o){var s,h=(i+"").split(" ");for(o={},s=0;4>s;s++)o[n[s]]=h[s]=h[s]||h[(s-1)/2>>0];return u.parse(t,o,f,e)}},hi=(v._setPluginRatio=function(n){this.plugin.setRatio(n);for(var r,t,u,e,f=this.data,o=f.proxy,i=f.firstMPT,s=1e-6;i;)r=o[i.v],i.r?r=Math.round(r):s>r&&r>-s&&(r=0),i.t[i.p]=r,i=i._next;if(f.autoRotate&&(f.autoRotate.rotation=o.rotation),1===n)for(i=f.firstMPT;i;){if(t=i.t,t.type){if(1===t.type){for(e=t.xs0+t.s+t.xs1,u=1;t.l>u;u++)e+=t["xn"+u]+t["xs"+(u+1)];t.e=e}}else t.e=t.s+t.xs0;i=i._next}},function(n,t,i,r,u){this.t=n;this.p=t;this.v=i;this.r=u;r&&(r._prev=this,this._next=r)}),o=(v._parseToProxy=function(n,t,i,r,u,f){var c,e,o,s,v,h=r,l={},a={},y=i._transform,p=yt;for(i._transform=null,yt=t,r=v=i.parse(n,t,r,u),yt=p,f&&(i._transform=y,h&&(h._prev=null,h._prev&&(h._prev._next=null)));r&&r!==h;){if(1>=r.type&&(e=r.p,a[e]=r.s+r.c,l[e]=r.s,f||(s=new hi(r,"s",e,s,r.r),r.c=0),1===r.type))for(c=r.l;--c>0;)o="xn"+c,e=r.p+"_"+o,a[e]=r.data[o],l[e]=r[o],f||(s=new hi(r,o,e,s,r.rxp[o]));r=r._next}return{proxy:l,end:a,firstMPT:s,pt:v}},v.CSSPropTween=function(n,t,i,r,u,f,e,s,h,c,l){this.t=n;this.p=t;this.s=i;this.c=r;this.n=e||t;n instanceof o||bt.push(this.n);this.r=s;this.type=f||0;h&&(this.pr=h,rt=!0);this.b=void 0===c?i:c;this.e=void 0===l?i+r:l;u&&(this._next=u,u._prev=this)}),pt=e.parseComplex=function(n,t,i,r,u,f,e,s,h,c){i=i||f||"";e=new o(n,t,0,0,e,c?2:1,null,!1,s,i,r);r+="";var y,w,b,a,v,ut,ft,it,k,et,d,g,p=i.split(", ").join(",").split(" "),rt=r.split(", ").join(",").split(" "),ot=p.length,st=kt!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(p=p.join(" ").replace(l,", ").split(" "),rt=rt.join(" ").replace(l,", ").split(" "),ot=p.length),ot!==rt.length&&(p=(f||"").split(" "),ot=p.length),e.plugin=h,e.setRatio=c,y=0;ot>y;y++)if(a=p[y],v=rt[y],it=parseFloat(a),it||0===it)e.appendXtra("",it,rr(v,it),v.replace(pi,""),st&&-1!==v.indexOf("px"),!0);else if(u&&("#"===a.charAt(0)||tt[a]||wi.test(a)))g=","===v.charAt(v.length-1)?"),":")",a=oi(a),v=oi(v),k=a.length+v.length>6,k&&!nt&&0===v[3]?(e["xs"+e.l]+=e.l?" transparent":"transparent",e.e=e.e.split(rt[y]).join("transparent")):(nt||(k=!1),e.appendXtra(k?"rgba(":"rgb(",a[0],v[0]-a[0],",",!0,!0).appendXtra("",a[1],v[1]-a[1],",",!0).appendXtra("",a[2],v[2]-a[2],k?",":g,!0),k&&(a=4>a.length?1:a[3],e.appendXtra("",a,(4>v.length?1:v[3])-a,g,!1)));else if(ut=a.match(at)){if(ft=v.match(pi),!ft||ft.length!==ut.length)return e;for(b=0,w=0;ut.length>w;w++)d=ut[w],et=a.indexOf(d,b),e.appendXtra(a.substr(b,et-b),Number(d),rr(ft[w],d),"",st&&"px"===a.substr(et+d.length,2),0===w),b=et+d.length;e["xs"+e.l]+=a.substr(b)}else e["xs"+e.l]+=e.l?" "+a:a;if(-1!==r.indexOf("=")&&e.data){for(g=e.xs0+e.data.s,y=1;e.l>y;y++)g+=e["xs"+y]+e.data["xn"+y];e.e=g+e["xs"+y]}return e.l||(e.type=-1,e.xs0=e.e),e.xfirst||e},s=9;for(i=o.prototype,i.l=i.pr=0;--s>0;)i["xn"+s]=0,i["xs"+s]="";i.xs0="";i._next=i._prev=i.xfirst=i.data=i.plugin=i.setRatio=i.rxp=null;i.appendXtra=function(n,t,i,r,u,f){var e=this,s=e.l;return e["xs"+s]+=f&&s?" "+n:n||"",i||0===s||e.plugin?(e.l++,e.type=e.setRatio?2:1,e["xs"+e.l]=r||"",s>0?(e.data["xn"+s]=t+i,e.rxp["xn"+s]=u,e["xn"+s]=t,e.plugin||(e.xfirst=new o(e,"xn"+s,t,i,e.xfirst||e,0,e.n,u,e.pr),e.xfirst.xs0=0),e):(e.data={s:t+i},e.rxp={},e.s=t,e.c=i,e.r=u,e)):(e["xs"+s]+=t+(r||""),e)};var fr=function(n,t){t=t||{};this.p=t.prefix?ft(n)||n:n;c[n]=c[this.p]=this;this.format=t.formatter||ur(t.defaultValue,t.color,t.collapsible,t.multi);t.parser&&(this.parse=t.parser);this.clrs=t.color;this.multi=t.multi;this.keyword=t.keyword;this.dflt=t.defaultValue;this.pr=t.priority||0},u=v._registerComplexSpecialProp=function(n,t,i){"object"!=typeof t&&(t={parser:i});var r,e,u=n.split(","),f=t.defaultValue;for(i=i||[f],r=0;u.length>r;r++)t.prefix=0===r&&t.prefix,t.defaultValue=i[r]||f,e=new fr(u[r],t)},tu=function(n){if(!c[n]){var t=n.charAt(0).toUpperCase()+n.substr(1)+"Plugin";u(n,{parser:function(n,i,r,u,f,e,o){var s=(window.GreenSockGlobals||window).com.greensock.plugins[t];return s?(s._cssRegister(),c[r].parse(n,i,r,u,f,e,o)):(nr("Error: "+t+" js file not loaded."),f)}})}};i=fr.prototype;i.parseComplex=function(n,t,i,r,u,f){var o,s,e,a,v,c,h=this.keyword;if(this.multi&&(l.test(i)||l.test(t)?(s=t.replace(l,"|").split("|"),e=i.replace(l,"|").split("|")):h&&(s=[t],e=[i])),e){for(a=e.length>s.length?e.length:s.length,o=0;a>o;o++)t=s[o]=s[o]||this.dflt,i=e[o]=e[o]||this.dflt,h&&(v=t.indexOf(h),c=i.indexOf(h),v!==c&&(i=-1===c?e:s,i[o]+=" "+h));t=s.join(", ");i=e.join(", ")}return pt(n,this.p,t,i,this.clrs,this.dflt,r,this.pr,u,f)};i.parse=function(n,t,i,u,e,o){return this.parseComplex(n.style,this.format(r(n,this.p,f,!1,this.dflt)),this.format(t),e,o)};e.registerSpecialProp=function(n,t,i){u(n,{parser:function(n,r,u,f,e,s){var h=new o(n,u,0,0,e,2,u,!1,i);return h.plugin=s,h.setRatio=t(n,r,f._tween,u),h},priority:i})};var er="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective".split(","),h=ft("transform"),iu=tr+"transform",ci=ft("transformOrigin"),w=null!==ft("perspective"),or=v.Transform=function(){this.skewY=0},ht=v.getTransform=function(n,t,i,u){if(n._gsTransform&&i&&!u)return n._gsTransform;var v,o,nt,lt,ui,vt,yt,ut,tt,fi,ei,pt,wt,f=i?n._gsTransform||new or:new or,yi=0>f.scaleX,et=2e-5,y=1e5,at=179.99,ot=at*a,pi=w?parseFloat(r(n,ci,t,!1,"0 0 0").split(" ")[2])||f.zOrigin||0:0;for(h?v=r(n,iu,t,!0):n.currentStyle&&(v=n.currentStyle.filter.match(br),v=v&&4===v.length?[v[0].substr(4),Number(v[2].substr(4)),Number(v[1].substr(4)),v[3].substr(4),f.x||0,f.y||0].join(","):""),o=(v||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],nt=o.length;--nt>-1;)lt=Number(o[nt]),o[nt]=(ui=lt-(lt|=0))?(0|ui*y+(0>ui?-.5:.5))/y+lt:lt;if(16===o.length){var st=o[8],b=o[9],p=o[10],hi=o[12],li=o[13],ht=o[14];if(f.zOrigin&&(ht=-f.zOrigin,hi=st*ht-o[12],li=b*ht-o[13],ht=p*ht+f.zOrigin-o[14]),!i||u||null==f.rotationX){var bt,ct,kt,s,c,oi,si,ft=o[0],k=o[1],dt=o[2],wi=o[3],gt=o[4],d=o[5],it=o[6],bi=o[7],rt=o[11],l=Math.atan2(it,p),ai=-ot>l||l>ot;f.rotationX=l*g;l&&(s=Math.cos(-l),c=Math.sin(-l),bt=gt*s+st*c,ct=d*s+b*c,kt=it*s+p*c,st=gt*-c+st*s,b=d*-c+b*s,p=it*-c+p*s,rt=bi*-c+rt*s,gt=bt,d=ct,it=kt);l=Math.atan2(st,ft);f.rotationY=l*g;l&&(oi=-ot>l||l>ot,s=Math.cos(-l),c=Math.sin(-l),bt=ft*s-st*c,ct=k*s-b*c,kt=dt*s-p*c,b=k*c+b*s,p=dt*c+p*s,rt=wi*c+rt*s,ft=bt,k=ct,dt=kt);l=Math.atan2(k,d);f.rotation=l*g;l&&(si=-ot>l||l>ot,s=Math.cos(-l),c=Math.sin(-l),ft=ft*s+gt*c,ct=k*s+d*c,d=k*-c+d*s,it=dt*-c+it*s,k=ct);si&&ai?f.rotation=f.rotationX=0:si&&oi?f.rotation=f.rotationY=0:oi&&ai&&(f.rotationY=f.rotationX=0);f.scaleX=(0|Math.sqrt(ft*ft+k*k)*y+.5)/y;f.scaleY=(0|Math.sqrt(d*d+b*b)*y+.5)/y;f.scaleZ=(0|Math.sqrt(it*it+p*p)*y+.5)/y;f.skewX=0;f.perspective=rt?1/(0>rt?-rt:rt):0;f.x=hi;f.y=li;f.z=ht}}else if(!(w&&!u&&o.length&&f.x===o[4]&&f.y===o[5]&&(f.rotationX||f.rotationY)||void 0!==f.x&&"none"===r(n,"display",t))){var vi=o.length>=6,ni=vi?o[0]:1,ti=o[1]||0,ii=o[2]||0,ri=vi?o[3]:1;f.x=o[4]||0;f.y=o[5]||0;vt=Math.sqrt(ni*ni+ti*ti);yt=Math.sqrt(ri*ri+ii*ii);ut=ni||ti?Math.atan2(ti,ni)*g:f.rotation||0;tt=ii||ri?Math.atan2(ii,ri)*g+ut:f.skewX||0;fi=vt-Math.abs(f.scaleX||0);ei=yt-Math.abs(f.scaleY||0);Math.abs(tt)>90&&270>Math.abs(tt)&&(yi?(vt*=-1,tt+=0>=ut?180:-180,ut+=0>=ut?180:-180):(yt*=-1,tt+=0>=tt?180:-180));pt=(ut-f.rotation)%180;wt=(tt-f.skewX)%180;(void 0===f.skewX||fi>et||-et>fi||ei>et||-et>ei||pt>-at&&at>pt&&!1|pt*y||wt>-at&&at>wt&&!1|wt*y)&&(f.scaleX=vt,f.scaleY=yt,f.rotation=ut,f.skewX=tt);w&&(f.rotationX=f.rotationY=f.z=0,f.perspective=parseFloat(e.defaultTransformPerspective)||0,f.scaleZ=1)}f.zOrigin=pi;for(nt in f)et>f[nt]&&f[nt]>-et&&(f[nt]=0);return i&&(n._gsTransform=f),f},ru=function(n){var o,w,t=this.data,nt=-t.rotation*a,ft=nt+t.skewX*a,e=1e5,h=(0|Math.cos(nt)*t.scaleX*e)/e,u=(0|Math.sin(nt)*t.scaleX*e)/e,f=(0|Math.sin(ft)*-t.scaleY*e)/e,c=(0|Math.cos(ft)*t.scaleY*e)/e,d=this.t.style,g=this.t.currentStyle,k,p,et,ot;if(g){w=u;u=-f;f=-w;o=g.filter;d.filter="";var i,r,l=this.t.offsetWidth,v=this.t.offsetHeight,tt="absolute"!==g.position,b="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+u+", M21="+f+", M22="+c,it=t.x,rt=t.y;if(null!=t.ox&&(i=(t.oxp?.01*l*t.ox:t.ox)-l/2,r=(t.oyp?.01*v*t.oy:t.oy)-v/2,it+=i-(i*h+r*u),rt+=r-(i*f+r*c)),tt?(i=l/2,r=v/2,b+=", Dx="+(i-(i*h+r*u)+it)+", Dy="+(r-(i*f+r*c)+rt)+")"):b+=", sizingMethod='auto expand')",d.filter=-1!==o.indexOf("DXImageTransform.Microsoft.Matrix(")?o.replace(kr,b):b+" "+o,(0===n||1===n)&&1===h&&0===u&&0===f&&1===c&&(tt&&-1===b.indexOf("Dx=0, Dy=0")||ti.test(o)&&100!==parseFloat(RegExp.$1)||-1===o.indexOf("gradient("&&o.indexOf("Alpha"))&&d.removeAttribute("filter")),!tt)for(ot=8>ut?1:-1,i=t.ieOffsetX||0,r=t.ieOffsetY||0,t.ieOffsetX=Math.round((l-((0>h?-h:h)*l+(0>u?-u:u)*v))/2+it),t.ieOffsetY=Math.round((v-((0>c?-c:c)*v+(0>f?-f:f)*l))/2+rt),s=0;4>s;s++)p=gr[s],k=g[p],w=-1!==k.indexOf("px")?parseFloat(k):y(this.t,p,parseFloat(k),k.replace(ni,""))||0,et=w!==t[p]?2>s?-t.ieOffsetX:-t.ieOffsetY:2>s?i-t.ieOffsetX:r-t.ieOffsetY,d[p]=(t[p]=Math.round(w-et*(0===s||2===s?1:ot)))+"px"}},li=v.set3DTransformRatio=function(n){var tt,g,y,p,it,nt,w,b,et,rt,l,o,ot,ut,k,st,t,r,u,f,ht,ct,lt,i=this.data,at=this.t.style,e=i.rotation*a,s=i.scaleX,c=i.scaleY,v=i.scaleZ,d=i.perspective,ft;if(!(1!==n&&0!==n||"auto"!==i.force3D||i.rotationY||i.rotationX||1!==v||d||i.z))return sr.call(this,n),void 0;if(vi&&(ft=.0001,ft>s&&s>-ft&&(s=v=2e-5),ft>c&&c>-ft&&(c=v=2e-5),!d||i.z||i.rotationX||i.rotationY||(d=0)),e||i.skewX)r=Math.cos(e),u=Math.sin(e),tt=r,it=u,i.skewX&&(e-=i.skewX*a,r=Math.cos(e),u=Math.sin(e),"simple"===i.skewType&&(f=Math.tan(i.skewX*a),f=Math.sqrt(1+f*f),r*=f,u*=f)),g=-u,nt=r;else{if(!(i.rotationY||i.rotationX||1!==v||d))return at[h]="translate3d("+i.x+"px,"+i.y+"px,"+i.z+"px)"+(1!==s||1!==c?" scale("+s+","+c+")":""),void 0;tt=nt=1;g=it=0}l=1;y=p=w=b=et=rt=o=ot=ut=0;k=d?-1/d:0;st=i.zOrigin;t=1e5;e=i.rotationY*a;e&&(r=Math.cos(e),u=Math.sin(e),et=l*-u,ot=k*-u,y=tt*u,w=it*u,l*=r,k*=r,tt*=r,it*=r);e=i.rotationX*a;e&&(r=Math.cos(e),u=Math.sin(e),f=g*r+y*u,ht=nt*r+w*u,ct=rt*r+l*u,lt=ut*r+k*u,y=g*-u+y*r,w=nt*-u+w*r,l=rt*-u+l*r,k=ut*-u+k*r,g=f,nt=ht,rt=ct,ut=lt);1!==v&&(y*=v,w*=v,l*=v,k*=v);1!==c&&(g*=c,nt*=c,rt*=c,ut*=c);1!==s&&(tt*=s,it*=s,et*=s,ot*=s);st&&(o-=st,p=y*o,b=w*o,o=l*o+st);p=(f=(p+=i.x)-(p|=0))?(0|f*t+(0>f?-.5:.5))/t+p:p;b=(f=(b+=i.y)-(b|=0))?(0|f*t+(0>f?-.5:.5))/t+b:b;o=(f=(o+=i.z)-(o|=0))?(0|f*t+(0>f?-.5:.5))/t+o:o;at[h]="matrix3d("+[(0|tt*t)/t,(0|it*t)/t,(0|et*t)/t,(0|ot*t)/t,(0|g*t)/t,(0|nt*t)/t,(0|rt*t)/t,(0|ut*t)/t,(0|y*t)/t,(0|w*t)/t,(0|l*t)/t,(0|k*t)/t,p,b,o,d?1+-o/d:1].join(",")+")"},sr=v.set2DTransformRatio=function(n){var r,u,i,f,e,t=this.data,s=this.t,o=s.style;return t.rotationX||t.rotationY||t.z||t.force3D===!0||"auto"===t.force3D&&1!==n&&0!==n?(this.setRatio=li,li.call(this,n),void 0):(t.rotation||t.skewX?(r=t.rotation*a,u=r-t.skewX*a,i=1e5,f=t.scaleX*i,e=t.scaleY*i,o[h]="matrix("+(0|Math.cos(r)*f)/i+","+(0|Math.sin(r)*f)/i+","+(0|Math.sin(u)*-e)/i+","+(0|Math.cos(u)*e)/i+","+t.x+","+t.y+")"):o[h]="matrix("+t.scaleX+",0,0,"+t.scaleY+","+t.x+","+t.y+")",void 0)};for(u("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType",{parser:function(n,t,i,u,s,c,l){if(u._transform)return s;var k,ut,g,y,it,rt,nt,v=u._transform=ht(n,f,!0,l.parseTransform),ft=n.style,et=1e-6,ot=er.length,a=l,tt={};if("string"==typeof a.transform&&h)g=p.style,g[h]=a.transform,g.display="block",g.position="absolute",b.body.appendChild(p),k=ht(p,null,!1),b.body.removeChild(p);else if("object"==typeof a){if(k={scaleX:d(null!=a.scaleX?a.scaleX:a.scale,v.scaleX),scaleY:d(null!=a.scaleY?a.scaleY:a.scale,v.scaleY),scaleZ:d(a.scaleZ,v.scaleZ),x:d(a.x,v.x),y:d(a.y,v.y),z:d(a.z,v.z),perspective:d(a.transformPerspective,v.perspective)},nt=a.directionalRotation,null!=nt)if("object"==typeof nt)for(g in nt)a[g]=nt[g];else a.rotation=nt;k.rotation=st("rotation"in a?a.rotation:"shortRotation"in a?a.shortRotation+"_short":"rotationZ"in a?a.rotationZ:v.rotation,v.rotation,"rotation",tt);w&&(k.rotationX=st("rotationX"in a?a.rotationX:"shortRotationX"in a?a.shortRotationX+"_short":v.rotationX||0,v.rotationX,"rotationX",tt),k.rotationY=st("rotationY"in a?a.rotationY:"shortRotationY"in a?a.shortRotationY+"_short":v.rotationY||0,v.rotationY,"rotationY",tt));k.skewX=null==a.skewX?v.skewX:st(a.skewX,v.skewX);k.skewY=null==a.skewY?v.skewY:st(a.skewY,v.skewY);(ut=k.skewY-v.skewY)&&(k.skewX+=ut,k.rotation+=ut)}for(w&&null!=a.force3D&&(v.force3D=a.force3D,rt=!0),v.skewType=a.skewType||v.skewType||e.defaultSkewType,it=v.force3D||v.z||v.rotationX||v.rotationY||k.z||k.rotationX||k.rotationY||k.perspective,it||null==a.scale||(k.scaleZ=1);--ot>-1;)i=er[ot],y=k[i]-v[i],(y>et||-et>y||null!=yt[i])&&(rt=!0,s=new o(v,i,v[i],y,s),i in tt&&(s.e=tt[i]),s.xs0=0,s.plugin=c,u._overwriteProps.push(s.n));return y=a.transformOrigin,(y||w&&it&&v.zOrigin)&&(h?(rt=!0,i=ci,y=(y||r(n,i,f,!1,"50% 50%"))+"",s=new o(ft,i,0,0,s,-1,"transformOrigin"),s.b=ft[i],s.plugin=c,w?(g=v.zOrigin,y=y.split(" "),v.zOrigin=(y.length>2&&(0===g||"0px"!==y[2])?parseFloat(y[2]):g)||0,s.xs0=s.e=y[0]+" "+(y[1]||"50%")+" 0px",s=new o(v,"zOrigin",0,0,s,-1,s.n),s.b=g,s.xs0=s.e=v.zOrigin):s.xs0=s.e=y):fi(y+"",v)),rt&&(u._transformType=it||3===this._transformType?3:2),s},prefix:!0}),u("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),u("borderRadius",{defaultValue:"0px",parser:function(n,t,i,u,e){t=this.format(t);var tt,l,d,h,o,s,w,a,it,rt,c,v,g,b,k,nt,p=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],ut=n.style;for(it=parseFloat(n.offsetWidth),rt=parseFloat(n.offsetHeight),tt=t.split(" "),l=0;p.length>l;l++)this.p.indexOf("border")&&(p[l]=ft(p[l])),o=h=r(n,p[l],f,!1,"0px"),-1!==o.indexOf(" ")&&(h=o.split(" "),o=h[0],h=h[1]),s=d=tt[l],w=parseFloat(o),v=o.substr((w+"").length),g="="===s.charAt(1),g?(a=parseInt(s.charAt(0)+"1",10),s=s.substr(2),a*=parseFloat(s),c=s.substr((a+"").length-(0>a?1:0))||""):(a=parseFloat(s),c=s.substr((a+"").length)),""===c&&(c=lt[i]||v),c!==v&&(b=y(n,"borderLeft",w,v),k=y(n,"borderTop",w,v),"%"===c?(o=100*(b/it)+"%",h=100*(k/rt)+"%"):"em"===c?(nt=y(n,"borderLeft",1,"em"),o=b/nt+"em",h=k/nt+"em"):(o=b+"px",h=k+"px"),g&&(s=parseFloat(o)+a+c,d=parseFloat(h)+a+c)),e=pt(ut,p[l],o+" "+h,s+" "+d,!1,"0px",e);return e},prefix:!0,formatter:ur("0px 0px 0px 0px",!1,!0)}),u("backgroundPosition",{defaultValue:"0 0",parser:function(n,t,i,u,e,o){var c,b,h,v,y,l,p="background-position",a=f||et(n,null),s=this.format((a?ut?a.getPropertyValue(p+"-x")+" "+a.getPropertyValue(p+"-y"):a.getPropertyValue(p):n.currentStyle.backgroundPositionX+" "+n.currentStyle.backgroundPositionY)||"0 0"),w=this.format(t);if(-1!==s.indexOf("%")!=(-1!==w.indexOf("%"))&&(l=r(n,"backgroundImage").replace(pr,""),l&&"none"!==l)){for(c=s.split(" "),b=w.split(" "),ii.setAttribute("src",l),h=2;--h>-1;)s=c[h],v=-1!==s.indexOf("%"),v!==(-1!==b[h].indexOf("%"))&&(y=0===h?n.offsetWidth-ii.width:n.offsetHeight-ii.height,c[h]=v?parseFloat(s)/100*y+"px":100*(parseFloat(s)/y)+"%");s=c.join(" ")}return this.parseComplex(n.style,s,w,e,o)},formatter:fi}),u("backgroundSize",{defaultValue:"0 0",formatter:fi}),u("perspective",{defaultValue:"0px",prefix:!0}),u("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),u("transformStyle",{prefix:!0}),u("backfaceVisibility",{prefix:!0}),u("userSelect",{prefix:!0}),u("margin",{parser:si("marginTop,marginRight,marginBottom,marginLeft")}),u("padding",{parser:si("paddingTop,paddingRight,paddingBottom,paddingLeft")}),u("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(n,t,i,u,e,o){var c,s,h;return 9>ut?(s=n.currentStyle,h=8>ut?" ":",",c="rect("+s.clipTop+h+s.clipRight+h+s.clipBottom+h+s.clipLeft+")",t=this.format(t).split(",").join(h)):(c=this.format(r(n,this.p,f,!1,this.dflt)),t=this.format(t)),this.parseComplex(n.style,c,t,e,o)}}),u("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),u("autoRound,strictUnits",{parser:function(n,t,i,r,u){return u}}),u("border",{defaultValue:"0px solid #000",parser:function(n,t,i,u,e,o){return this.parseComplex(n.style,this.format(r(n,"borderTopWidth",f,!1,"0px")+" "+r(n,"borderTopStyle",f,!1,"solid")+" "+r(n,"borderTopColor",f,!1,"#000")),this.format(t),e,o)},color:!0,formatter:function(n){var t=n.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(n.match(it)||["#000"])[0]}}),u("borderWidth",{parser:si("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),u("float,cssFloat,styleFloat",{parser:function(n,t,i,r,u){var f=n.style,e="cssFloat"in f?"cssFloat":"styleFloat";return new o(f,e,0,0,u,-1,i,!1,0,f[e],t)}}),hr=function(n){var f,i=this.t,t=i.filter||r(this.data,"filter"),u=0|this.s+this.c*n;100===u&&(-1===t.indexOf("atrix(")&&-1===t.indexOf("radient(")&&-1===t.indexOf("oader(")?(i.removeAttribute("filter"),f=!r(this.data,"filter")):(i.filter=t.replace(yr,""),f=!0));f||(this.xn1&&(i.filter=t=t||"alpha(opacity="+u+")"),-1===t.indexOf("pacity")?0===u&&this.xn1||(i.filter=t+" alpha(opacity="+u+")"):i.filter=t.replace(ti,"opacity="+u))},u("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(n,t,i,u,e,s){var h=parseFloat(r(n,"opacity",f,!1,"1")),c=n.style,l="autoAlpha"===i;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+h),l&&1===h&&"hidden"===r(n,"visibility",f)&&0!==t&&(h=0),nt?e=new o(c,"opacity",h,t-h,e):(e=new o(c,"opacity",100*h,100*(t-h),e),e.xn1=l?1:0,c.zoom=1,e.type=2,e.b="alpha(opacity="+e.s+")",e.e="alpha(opacity="+(e.s+e.c)+")",e.data=n,e.plugin=s,e.setRatio=hr),l&&(e=new o(c,"visibility",0,0,e,-1,null,!1,0,0!==h?"inherit":"hidden",0===t?"hidden":"inherit"),e.xs0="inherit",u._overwriteProps.push(e.n),u._overwriteProps.push(i)),e}}),wt=function(n,t){t&&(n.removeProperty?("ms"===t.substr(0,2)&&(t="M"+t.substr(1)),n.removeProperty(t.replace(bi,"-$1").toLowerCase())):n.removeAttribute(t))},cr=function(n){if(this.t._gsClassPT=this,1===n||0===n){this.t.setAttribute("class",0===n?this.b:this.e);for(var t=this.data,i=this.t.style;t;)t.v?i[t.p]=t.v:wt(i,t.p),t=t._next;1===n&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)},u("className",{parser:function(n,t,i,r,u,e,s){var c,y,l,a,h,v=n.getAttribute("class")||"",p=n.style.cssText;if(u=r._classNamePT=new o(n,i,0,0,u,2),u.setRatio=cr,u.pr=-11,rt=!0,u.b=v,y=ot(n,f),l=n._gsClassPT){for(a={},h=l.data;h;)a[h.p]=1,h=h._next;l.setRatio(1)}return n._gsClassPT=u,u.e="="!==t.charAt(1)?t:v.replace(RegExp("\\s*\\b"+t.substr(2)+"\\b"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),r._tween._duration&&(n.setAttribute("class",u.e),c=ui(n,y,ot(n),s,a),n.setAttribute("class",v),u.data=c.firstMPT,n.style.cssText=p,u=u.xfirst=r.parse(n,c.difs,u,e)),u}}),lr=function(n){if((1===n||0===n)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var i,t,r,u,f=this.t.style,e=c.transform.parse;if("all"===this.e)f.cssText="",u=!0;else for(i=this.e.split(","),r=i.length;--r>-1;)t=i[r],c[t]&&(c[t].parse===e?u=!0:t="transformOrigin"===t?ci:c[t].p),wt(f,t);u&&(wt(f,h),this.t._gsTransform&&delete this.t._gsTransform)}},u("clearProps",{parser:function(n,t,i,r,u){return u=new o(n,i,0,0,u,2),u.setRatio=lr,u.e=t,u.pr=-10,u.data=r._tween,rt=!0,u}}),i="bezier,throwProps,physicsProps,physics2D".split(","),s=i.length;s--;)tu(i[s]);return i=e.prototype,i._firstPT=null,i._onInitTween=function(n,t,i){if(!n.nodeType)return!1;this._target=n;this._tween=i;this._vars=t;kt=t.autoRound;rt=!1;lt=t.suffixMap||e.suffixMap;f=et(n,"");bt=this._overwriteProps;var l,s,u,a,b,k,y,v,p,c=n.style;if(ai&&""===c.zIndex&&(l=r(n,"zIndex",f),("auto"===l||""===l)&&this._addLazySet(c,"zIndex",0)),"string"==typeof t&&(a=c.cssText,l=ot(n,f),c.cssText=a+";"+t,l=ui(n,l,ot(n)).difs,!nt&&vr.test(t)&&(l.opacity=parseFloat(RegExp.$1)),t=l,c.cssText=a),this._firstPT=s=this.parse(n,t,null),this._transformType){for(p=3===this._transformType,h?dt&&(ai=!0,""===c.zIndex&&(y=r(n,"zIndex",f),("auto"===y||""===y)&&this._addLazySet(c,"zIndex",0)),yi&&this._addLazySet(c,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(p?"visible":"hidden"))):c.zoom=1,u=s;u&&u._next;)u=u._next;v=new o(n,"transform",0,0,null,2);this._linkCSSP(v,null,u);v.setRatio=p&&w?li:h?sr:ru;v.data=this._transform||ht(n,f,!0);bt.pop()}if(rt){for(;s;){for(k=s._next,u=a;u&&u.pr>s.pr;)u=u._next;(s._prev=u?u._prev:b)?s._prev._next=s:a=s;(s._next=u)?u._prev=s:b=s;s=k}this._firstPT=a}return!0},i.parse=function(n,t,i,u){var e,d,h,l,v,s,p,a,w,b,k=n.style;for(e in t)s=t[e],d=c[e],d?i=d.parse(n,s,e,this,i,u,t):(v=r(n,e,f)+"",w="string"==typeof s,"color"===e||"fill"===e||"stroke"===e||-1!==e.indexOf("Color")||w&&wi.test(s)?(w||(s=oi(s),s=(s.length>3?"rgba(":"rgb(")+s.join(",")+")"),i=pt(k,e,v,s,!0,"transparent",i,0,u)):!w||-1===s.indexOf(" ")&&-1===s.indexOf(",")?(h=parseFloat(v),p=h||0===h?v.substr((h+"").length):"",(""===v||"auto"===v)&&("width"===e||"height"===e?(h=nu(n,e,f),p="px"):"left"===e||"top"===e?(h=ir(n,e,f),p="px"):(h="opacity"!==e?0:1,p="")),b=w&&"="===s.charAt(1),b?(l=parseInt(s.charAt(0)+"1",10),s=s.substr(2),l*=parseFloat(s),a=s.replace(ni,"")):(l=parseFloat(s),a=w?s.substr((l+"").length)||"":""),""===a&&(a=e in lt?lt[e]:p),s=l||0===l?(b?l+h:l)+a:t[e],p!==a&&""!==a&&(l||0===l)&&h&&(h=y(n,e,h,p),"%"===a?(h/=y(n,e,100,"%")/100,t.strictUnits!==!0&&(v=h+"%")):"em"===a?h/=y(n,e,1,"em"):"px"!==a&&(l=y(n,e,l,a),a="px"),b&&(l||0===l)&&(s=l+h+a)),b&&(l+=h),!h&&0!==h||!l&&0!==l?void 0!==k[e]&&(s||"NaN"!=s+""&&null!=s)?(i=new o(k,e,l||h||0,0,i,-1,e,!1,0,v,s),i.xs0="none"!==s||"display"!==e&&-1===e.indexOf("Style")?s:v):nr("invalid "+e+" tween value: "+t[e]):(i=new o(k,e,h,l-h,i,0,e,kt!==!1&&("px"===a||"zIndex"===e),0,v,s),i.xs0=a)):i=pt(k,e,v,s,!0,null,i,0,u)),u&&i&&!i.plugin&&(i.plugin=u);return i},i.setRatio=function(n){var i,u,r,t=this._firstPT,f=1e-6;if(1!==n||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(n||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;t;){if(i=t.c*n+t.s,t.r?i=Math.round(i):f>i&&i>-f&&(i=0),t.type)if(1===t.type)if(r=t.l,2===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2;else if(3===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3;else if(4===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4;else if(5===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4+t.xn4+t.xs5;else{for(u=t.xs0+i+t.xs1,r=1;t.l>r;r++)u+=t["xn"+r]+t["xs"+(r+1)];t.t[t.p]=u}else-1===t.type?t.t[t.p]=t.xs0:t.setRatio&&t.setRatio(n);else t.t[t.p]=i+t.xs0;t=t._next}else for(;t;)2!==t.type?t.t[t.p]=t.b:t.setRatio(n),t=t._next;else for(;t;)2!==t.type?t.t[t.p]=t.e:t.setRatio(n),t=t._next},i._enableTransforms=function(n){this._transformType=n||3===this._transformType?3:2;this._transform=this._transform||ht(this._target,f,!0)},ar=function(){this.t[this.p]=this.e;this.data._linkCSSP(this,this._next,null,!0)},i._addLazySet=function(n,t,i){var r=this._firstPT=new o(n,t,0,0,this._firstPT,2);r.e=i;r.setRatio=ar;r.data=this},i._linkCSSP=function(n,t,i,r){return n&&(t&&(t._prev=n),n._next&&(n._next._prev=n._prev),n._prev?n._prev._next=n._next:this._firstPT===n&&(this._firstPT=n._next,r=!0),i?i._next=n:r||null!==this._firstPT||(this._firstPT=n),n._next=t,n._prev=i),n},i._kill=function(t){var i,f,r,u=t;if(t.autoAlpha||t.alpha){u={};for(f in t)u[f]=t[f];u.opacity=1;u.autoAlpha&&(u.visibility=1)}return t.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),n.prototype._kill.call(this,u)},ct=function(n,t,i){var e,u,r,f;if(n.slice)for(u=n.length;--u>-1;)ct(n[u],t,i);else for(e=n.childNodes,u=e.length;--u>-1;)r=e[u],f=r.type,r.style&&(t.push(ot(r)),i&&i.push(r)),1!==f&&9!==f&&11!==f||!r.childNodes.length||ct(r,t,i)},e.cascadeTo=function(n,i,r){var u,f,o,e=t.to(n,i,r),h=[e],c=[],l=[],s=[],a=t._internals.reservedProps;for(n=e._targets||e.target,ct(n,c,s),e.render(i,!0),ct(n,l),e.render(0,!0),e._enabled(!0),u=s.length;--u>-1;)if(f=ui(s[u],c[u],l[u]),f.firstMPT){f=f.difs;for(o in r)a[o]&&(f[o]=r[o]);h.push(t.to(s[u],i,f))}return h},n.activate([e]),e},!0)});window._gsDefine&&window._gsQueue.pop()(),function(n){"use strict";var f=n.GreenSockGlobals||n,a=function(n){for(var r=n.split("."),i=f,t=0;r.length>t;t++)i[r[t]]=i=i[r[t]]||{};return i},v=a("com.greensock.utils"),u=function(n){var t=n.nodeType,i="";if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=u(n)}else if(3===t||4===t)return n.nodeValue;return i},t=document,e=t.defaultView?t.defaultView.getComputedStyle:function(){},y=/([A-Z])/g,i=function(n,t,i,r){var u;return(i=i||e(n,null))?(n=i.getPropertyValue(t.replace(y,"-$1").toLowerCase()),u=n||i.length?n:i[t]):n.currentStyle&&(i=n.currentStyle,u=i[t]),r?u:parseInt(u,10)||0},o=function(n){return n.length&&n[0]&&(n[0].nodeType&&n[0].style&&!n.nodeType||n[0].length&&n[0][0])?!0:!1},p=function(n){for(var t,i,u=[],f=n.length,r=0;f>r;r++)if(t=n[r],o(t))for(i=t.length,i=0;t.length>i;i++)u.push(t[i]);else u.push(t);return u},s=")eefec303079ad17405c",h=/(?:<br>|<br\/>|<br \/>)/gi,w=t.all&&!t.addEventListener,b="<div style='position:relative;display:inline-block;"+(w?"*display:inline;*zoom:1;'":"'"),c=function(n){n=n||"";var t=-1!==n.indexOf("++"),i=1;return t&&(n=n.split("++").join("")),function(){return b+(n?" class='"+n+(t?i++:"")+"'>":">")}},r=v.SplitText=f.SplitText=function(n,t){if("string"==typeof n&&(n=r.selector(n)),!n)throw"cannot split a null element.";this.elements=o(n)?p(n):[n];this.chars=[];this.words=[];this.lines=[];this._originals=[];this.vars=t||{};this.split(t)},k=function(n,r,f,o,l){h.test(n.innerHTML)&&(n.innerHTML=n.innerHTML.replace(h,s));var rt,b,ut,v,g,ot,ft,a,k,y,nt,pt,wt,st=u(n),at=r.type||r.split||"chars,words,lines",tt=-1!==at.indexOf("lines")?[]:null,it=-1!==at.indexOf("words"),et=-1!==at.indexOf("chars"),p="absolute"===r.position||r.absolute===!0,gt=p?"&#173; ":" ",bt=-999,d=e(n),kt=i(n,"paddingLeft",d),ni=i(n,"borderBottomWidth",d)+i(n,"borderTopWidth",d),ti=i(n,"borderLeftWidth",d)+i(n,"borderRightWidth",d),ii=i(n,"paddingTop",d)+i(n,"paddingBottom",d),ri=i(n,"paddingLeft",d)+i(n,"paddingRight",d),ui=i(n,"textAlign",d,!0),ht=n.clientHeight,ct=n.clientWidth,w=st.length,vt="<\/div>",yt=c(r.wordsClass),fi=c(r.charsClass),dt=-1!==(r.linesClass||"").indexOf("++"),lt=r.linesClass;for(dt&&(lt=lt.split("++").join("")),ut=yt(),v=0;w>v;v++)ot=st.charAt(v),")"===ot&&st.substr(v,20)===s?(ut+=vt+"<BR/>",v!==w-1&&(ut+=" "+yt()),v+=19):" "===ot&&" "!==st.charAt(v-1)&&v!==w-1?(ut+=vt,v!==w-1&&(ut+=gt+yt())):ut+=et&&" "!==ot?fi()+ot+"<\/div>":ot;for(n.innerHTML=ut+vt,g=n.getElementsByTagName("*"),w=g.length,ft=[],v=0;w>v;v++)ft[v]=g[v];if(tt||p)for(v=0;w>v;v++)a=ft[v],b=a.parentNode===n,(b||p||et&&!it)&&(k=a.offsetTop,tt&&b&&k!==bt&&"BR"!==a.nodeName&&(rt=[],tt.push(rt),bt=k),p&&(a._x=a.offsetLeft,a._y=k,a._w=a.offsetWidth,a._h=a.offsetHeight),tt&&(it!==b&&et||(rt.push(a),a._x-=kt),b&&v&&(ft[v-1]._wordEnd=!0)));for(v=0;w>v;v++)a=ft[v],b=a.parentNode===n,"BR"!==a.nodeName?(p&&(nt=a.style,it||b||(a._x+=a.parentNode._x,a._y+=a.parentNode._y),nt.left=a._x+"px",nt.top=a._y+"px",nt.position="absolute",nt.display="block",nt.width=a._w+1+"px",nt.height=a._h+"px"),it?b?o.push(a):et&&f.push(a):b?(n.removeChild(a),ft.splice(v--,1),w--):!b&&et&&(k=!tt&&!p&&a.nextSibling,n.appendChild(a),k||n.appendChild(t.createTextNode(" ")),f.push(a))):tt||p?(n.removeChild(a),ft.splice(v--,1),w--):it||n.appendChild(a);if(tt){for(p&&(y=t.createElement("div"),n.appendChild(y),pt=y.offsetWidth+"px",k=y.offsetParent===n?0:n.offsetLeft,n.removeChild(y)),nt=n.style.cssText,n.style.cssText="display:none;";n.firstChild;)n.removeChild(n.firstChild);for(wt=!p||!it&&!et,v=0;tt.length>v;v++){for(rt=tt[v],y=t.createElement("div"),y.style.cssText="display:block;text-align:"+ui+";position:"+(p?"absolute;":"relative;"),lt&&(y.className=lt+(dt?v+1:"")),l.push(y),w=rt.length,g=0;w>g;g++)"BR"!==rt[g].nodeName&&(a=rt[g],y.appendChild(a),wt&&(a._wordEnd||it)&&y.appendChild(t.createTextNode(" ")),p&&(0===g&&(y.style.top=a._y+"px",y.style.left=kt+k+"px"),a.style.top="0px",k&&(a.style.left=a._x-k+"px")));it||et||(y.innerHTML=u(y).split(String.fromCharCode(160)).join(" "));p&&(y.style.width=pt,y.style.height=a._h+"px");n.appendChild(y)}n.style.cssText=nt}p&&(ht>n.clientHeight&&(n.style.height=ht-ii+"px",ht>n.clientHeight&&(n.style.height=ht+ni+"px")),ct>n.clientWidth&&(n.style.width=ct-ri+"px",ct>n.clientWidth&&(n.style.width=ct+ti+"px")))},l=r.prototype;l.split=function(n){this.isSplit&&this.revert();this.vars=n||this.vars;this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var t=0;this.elements.length>t;t++)this._originals[t]=this.elements[t].innerHTML,k(this.elements[t],this.vars,this.chars,this.words,this.lines);return this.isSplit=!0,this};l.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var n=this._originals.length;--n>-1;)this.elements[n].innerHTML=this._originals[n];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this};r.selector=n.$||n.jQuery||function(i){return n.$?(r.selector=n.$,n.$(i)):t?t.getElementById("#"===i.charAt(0)?i.substr(1):i):i}}(window||{});window.GreenSockGobals=null;window._gsQueue=null;delete window.GreenSockGlobals;delete window._gsQueue;window.GreenSockGlobals=oldgs;window._gsQueue=oldgs_queue;console.groupEnd(),function(n){n.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};n.expr[":"].uncached=function(t){var i=document.createElement("img");return i.src=t.src,n(t).is('img[src!=""]')&&!i.complete};n.fn.waitForImages=function(t,i,r){if(n.isPlainObject(arguments[0])&&(i=t.each,r=t.waitForAll,t=t.finished),t=t||n.noop,i=i||n.noop,r=!!r,!n.isFunction(t)||!n.isFunction(i))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var f=n(this),u=[],s,h,e,o;r?(s=n.waitForImages.hasImageProperties||[],h=/url\((['"]?)(.*?)\1\)/g,f.find("*").each(function(){var t=n(this);t.is("img:uncached")&&u.push({src:t.attr("src"),element:t[0]});n.each(s,function(n,i){var r=t.css(i),f;if(!r)return!0;while(f=h.exec(r))u.push({src:f[2],element:t[0]})})})):f.find("img:uncached").each(function(){u.push({src:this.src,element:this})});e=u.length;o=0;e==0&&t.call(f[0]);n.each(u,function(r,u){var s=new Image;n(s).bind("load error",function(n){return o++,i.call(u.element,o,e,n.type=="load"),o==e?(t.call(f[0]),!1):void 0});s.src=u.src})})}}(jQuery),function(n,t){function vt(i,r){var y,g,h,f,p,o,tt,e;if((r.navigationStyle=="preview1"||r.navigationStyle=="preview3"||r.navigationStyle=="preview4")&&(r.soloArrowLeftHalign="left",r.soloArrowLeftValign="center",r.soloArrowLeftHOffset=0,r.soloArrowLeftVOffset=0,r.soloArrowRightHalign="right",r.soloArrowRightValign="center",r.soloArrowRightHOffset=0,r.soloArrowRightVOffset=0,r.navigationArrows="solo"),r.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),r.fullWidth!="on"&&r.fullScreen!="on"&&(r.autoHeight="off"),r.fullScreen=="on"&&(r.autoHeight="on"),r.fullWidth!="on"&&r.fullScreen!="on"&&(forceFulWidth="off"),r.fullWidth=="on"&&r.autoHeight=="off"&&i.css({maxHeight:r.startheight+"px"}),u()&&r.hideThumbsOnMobile=="on"&&r.navigationType=="thumb"&&(r.navigationType="none"),u()&&r.hideBulletsOnMobile=="on"&&r.navigationType=="bullet"&&(r.navigationType="none"),u()&&r.hideBulletsOnMobile=="on"&&r.navigationType=="both"&&(r.navigationType="none"),u()&&r.hideArrowsOnMobile=="on"&&(r.navigationArrows="none"),r.forceFullWidth=="on"&&i.closest(".forcefullwidth_wrapper_tp_banner").length==0){var o=i.parent().offset().left,c=i.parent().css("marginBottom"),l=i.parent().css("marginTop");c==t&&(c=0);l==t&&(l=0);i.parent().wrap('<div style="position:relative;width:100%;height:auto;margin-top:'+l+";margin-bottom:"+c+'" class="forcefullwidth_wrapper_tp_banner"><\/div>');i.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+i.height()+'px"><\/div>');i.css({backgroundColor:i.parent().css("backgroundColor"),backgroundImage:i.parent().css("backgroundImage")});i.parent().css({left:0-o+"px",position:"absolute",width:n(window).width()});r.width=n(window).width()}try{r.hideThumbsUnderResolution>n(window).width()&&r.hideThumbsUnderResolution!=0?i.parent().find(".tp-bullets.tp-thumbs").css({display:"none"}):i.parent().find(".tp-bullets.tp-thumbs").css({display:"block"})}catch(it){}if(!i.hasClass("revslider-initialised")){i.addClass("revslider-initialised");i.attr("id")==t&&i.attr("id","revslider-"+Math.round(Math.random()*1e3+5));r.firefox13=!1;r.ie=!n.support.opacity;r.ie9=document.documentMode==9;r.origcd=r.delay;var s=n.fn.jquery.split("."),w=parseFloat(s[0]),nt=parseFloat(s[1]),rt=parseFloat(s[2]||"0");w==1&&nt<7&&i.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+s+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin<\/div>");w>1&&(r.ie=!1);n.support.transition||(n.fn.transition=n.fn.animate);i.find(".caption").each(function(){n(this).addClass("tp-caption")});u()&&i.find(".tp-caption").each(function(){n(this).data("autoplay")==!0&&n(this).data("autoplay",!1)});var k=0,d=0,a="http";if(location.protocol==="https:"&&(a="https"),i.find(".tp-caption iframe").each(function(){var t,i,r,u;try{n(this).attr("src").indexOf("you")>0&&k==0&&(k=1,t=document.createElement("script"),i="https",t.src=i+"://www.youtube.com/iframe_api",r=document.getElementsByTagName("script")[0],u=!0,n("head").find("*").each(function(){n(this).attr("src")==i+"://www.youtube.com/iframe_api"&&(u=!1)}),u&&r.parentNode.insertBefore(t,r))}catch(f){}}),i.find(".tp-caption iframe").each(function(){var t,i,r;try{n(this).attr("src").indexOf("vim")>0&&d==0&&(d=1,t=document.createElement("script"),t.src=a+"://a.vimeocdn.com/js/froogaloop2.min.js",i=document.getElementsByTagName("script")[0],r=!0,n("head").find("*").each(function(){n(this).attr("src")==a+"://a.vimeocdn.com/js/froogaloop2.min.js"&&(r=!1)}),r&&i.parentNode.insertBefore(t,i))}catch(u){}}),i.find(".tp-caption video").each(function(){n(this).removeClass("video-js").removeClass("vjs-default-skin");n(this).attr("preload","");n(this).css({display:"none"})}),r.shuffle=="on")for(y=0;y<i.find(">ul:first-child >li").length;y++)g=Math.round(Math.random()*i.find(">ul:first-child >li").length),i.find(">ul:first-child >li:eq("+g+")").prependTo(i.find(">ul:first-child"));r.slots=4;r.act=-1;r.next=0;r.startWithSlide!=t&&(r.next=r.startWithSlide);h=yt("#")[0];h.length<9&&h.split("slide").length>1&&(f=parseInt(h.split("slide")[1],0),f<1&&(f=1),f>i.find(">ul:first >li").length&&(f=i.find(">ul:first >li").length),r.next=f-1);r.firststart=1;r.navigationHOffset==t&&(r.navOffsetHorizontal=0);r.navigationVOffset==t&&(r.navOffsetVertical=0);i.append('<div class="tp-loader '+r.spinner+'"><div class="dot1"><\/div><div class="dot2"><\/div><div class="bounce1"><\/div><div class="bounce2"><\/div><div class="bounce3"><\/div><\/div>');i.find(".tp-bannertimer").length==0&&i.append('<div class="tp-bannertimer" style="visibility:hidden"><\/div>');p=i.find(".tp-bannertimer");p.length>0&&p.css({width:"0%"});i.addClass("tp-simpleresponsive");r.container=i;r.slideamount=i.find(">ul:first >li").length;i.height()==0&&i.height(r.startheight);(r.startwidth==t||r.startwidth==0)&&(r.startwidth=i.width());(r.startheight==t||r.startheight==0)&&(r.startheight=i.height());r.width=i.width();r.height=i.height();r.bw=r.startwidth/i.width();r.bh=r.startheight/i.height();r.width!=r.startwidth&&(r.height=Math.round(r.startheight*(r.width/r.startwidth)),i.height(r.height));r.shadow!=0&&(i.parent().append('<div class="tp-bannershadow tp-shadow'+r.shadow+'"><\/div>'),o=0,r.forceFullWidth=="on"&&(o=0-r.container.parent().offset().left),i.parent().find(".tp-bannershadow").css({width:r.width,left:o}));i.find("ul").css({display:"none"});tt=i;i.find("ul").css({display:"block"});ni(i,r);r.parallax!="off"&&ai(i,r);r.slideamount>1&&pt(i,r);r.slideamount>1&&r.navigationType=="thumb"&&vi(i,r);r.slideamount>1&&wt(i,r);r.keyboardNavigation=="on"&&bt(i,r);try{kt(i,r)}catch(it){}r.hideThumbs>0&&dt(i,r);b(i,r);r.slideamount>1&&ci(i,r);setTimeout(function(){i.trigger("revolution.slide.onloaded")},500);n("body").data("rs-fullScreenMode",!1);n(window).on("mozfullscreenchange webkitfullscreenchange fullscreenchange",function(){n("body").data("rs-fullScreenMode",!n("body").data("rs-fullScreenMode"));n("body").data("rs-fullScreenMode")&&setTimeout(function(){n(window).trigger("resize")},200)});n(window).resize(function(){if(n("body").find(i)!=0&&r.forceFullWidth=="on"){var t=r.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;r.container.parent().css({left:0-t+"px",width:n(window).width()})}(i.outerWidth(!0)!=r.width||i.is(":hidden"))&&v(i,r)});try{r.hideThumbsUnderResoluition!=0&&r.navigationType=="thumb"&&(r.hideThumbsUnderResoluition>n(window).width()?n(".tp-bullets").css({display:"none"}):n(".tp-bullets").css({display:"block"}))}catch(it){}i.find(".tp-scrollbelowslider").on("click",function(){var t=0;try{t=n("body").find(r.fullScreenOffsetContainer).height()}catch(u){}try{t=t-n(this).data("scrolloffset")}catch(u){}n("body,html").animate({scrollTop:i.offset().top+i.find(">ul >li").height()-t+"px"},{duration:400})});e=i.parent();n(window).width()<r.hideSliderAtLimit&&(i.trigger("stoptimer"),e.css("display")!="none"&&e.data("olddisplay",e.css("display")),e.css({display:"none"}))}}n.fn.extend({revolution:function(i){defaults={delay:9e3,startheight:330,startwidth:960,fullScreenAlignForce:"off",autoHeight:"off",hideTimerBar:"off",hideThumbs:200,hideNavDelayOnMobile:1500,thumbWidth:100,thumbHeight:50,thumbAmount:3,navigationType:"bullet",navigationArrows:"solo",navigationInGrid:"off",hideThumbsOnMobile:"off",hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResoluition:0,navigationStyle:"round",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,keyboardNavigation:"on",touchenabled:"on",onHoverStop:"on",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLimit:0,hideSliderAtLimit:0,shadow:0,fullWidth:"off",fullScreen:"off",minFullScreenHeight:0,fullScreenOffsetContainer:"",fullScreenOffset:"0",dottedOverlay:"none",forceFullWidth:"off",spinner:"spinner0",swipe_velocity:.4,swipe_max_touches:1,swipe_min_touches:1,drag_block_vertical:!1,isJoomla:!1,parallax:"off",parallaxLevels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],parallaxBgFreeze:"off",parallaxOpacity:"on",parallaxDisableOnMobile:"off"};i=n.extend({},defaults,i);var r=$(this).data("height");return r&&(i.startheight=r),this.each(function(){try{console.groupCollapsed("Slider Revolution 4.5.7 Initialisation on "+n(this).attr("id"));console.groupCollapsed("Used Options:");console.info(i);console.groupEnd();console.groupCollapsed("Tween Engine:")}catch(r){}if(punchgs.TweenLite==t){try{console.error("GreenSock Engine Does not Exist!")}catch(r){}return!1}punchgs.force3D=!0;try{console.info("GreenSock Engine Version in Slider Revolution:"+punchgs.TweenLite.version)}catch(r){}punchgs.TweenLite.lagSmoothing(1e3,16);punchgs.force3D="true";vt(n(this),i);try{console.groupEnd();console.groupEnd()}catch(r){}})},revscroll:function(t){return this.each(function(){var i=n(this);n("body,html").animate({scrollTop:i.offset().top+i.find(">ul >li").height()-t+"px"},{duration:400})})},revredraw:function(){return this.each(function(){var t=n(this),i=t.parent().find(".tp-bannertimer"),r=i.data("opt");v(t,r)})},revpause:function(){return this.each(function(){var t=n(this),i,r;t.data("conthover",1);t.data("conthover-changed",1);t.trigger("revolution.slide.onpause");i=t.parent().find(".tp-bannertimer");r=i.data("opt");r.bannertimeronpause=!0;t.trigger("stoptimer")})},revresume:function(){return this.each(function(){var t=n(this),i,r;t.data("conthover",0);t.data("conthover-changed",1);t.trigger("revolution.slide.onresume");i=t.parent().find(".tp-bannertimer");r=i.data("opt");r.bannertimeronpause=!1;t.trigger("starttimer")})},revnext:function(){return this.each(function(){var t=n(this);t.parent().find(".tp-rightarrow").click()})},revprev:function(){return this.each(function(){var t=n(this);t.parent().find(".tp-leftarrow").click()})},revmaxslide:function(){return n(this).find(">ul:first-child >li").length},revcurrentslide:function(){var t=n(this),i=t.parent().find(".tp-bannertimer"),r=i.data("opt");return r.act},revlastslide:function(){var t=n(this),i=t.parent().find(".tp-bannertimer"),r=i.data("opt");return r.lastslide},revshowslide:function(t){return this.each(function(){var i=n(this);i.data("showus",t);i.parent().find(".tp-rightarrow").click()})}});var yt=function(n){for(var u=[],i,r=window.location.href.slice(window.location.href.indexOf(n)+1).split("_"),t=0;t<r.length;t++)r[t]=r[t].replace("%3D","="),i=r[t].split("="),u.push(i[0]),u[i[0]]=i[1];return u},v=function(i,r){var u,s,c,h,l,f;try{r.hideThumbsUnderResoluition!=0&&r.navigationType=="thumb"&&(r.hideThumbsUnderResoluition>n(window).width()?n(".tp-bullets").css({display:"none"}):n(".tp-bullets").css({display:"block"}))}catch(a){}i.find(".defaultimg").each(function(){e(n(this),r)});u=i.parent();n(window).width()<r.hideSliderAtLimit?(i.trigger("stoptimer"),u.css("display")!="none"&&u.data("olddisplay",u.css("display")),u.css({display:"none"})):i.is(":hidden")&&(u.data("olddisplay")!=t&&u.data("olddisplay")!="undefined"&&u.data("olddisplay")!="none"?u.css({display:u.data("olddisplay")}):u.css({display:"block"}),i.trigger("restarttimer"),setTimeout(function(){v(i,r)},150));s=0;r.forceFullWidth=="on"&&(s=0-r.container.parent().offset().left);try{i.parent().find(".tp-bannershadow").css({width:r.width,left:s})}catch(a){}c=i.find(">ul >li:eq("+r.act+") .slotholder");h=i.find(">ul >li:eq("+r.next+") .slotholder");p(i,r,i);punchgs.TweenLite.set(h.find(".defaultimg"),{opacity:0});c.find(".defaultimg").css({opacity:1});h.find(".defaultimg").each(function(){var u=n(this);u.data("kenburn")!=t&&(u.data("kenburn").restart(),nt(i,r,!0))});l=i.find(">ul >li:eq("+r.next+")");f=i.parent().find(".tparrows");f.hasClass("preview2")&&f.css({width:parseInt(f.css("minWidth"),0)});ot(l,r,!0);o(i,r)},r=function(t,i){var r=n('<div style="display:none;"/>').appendTo(n("body")),u;return r.html("<!--[if "+(i||"")+" IE "+(t||"")+"]><a>&nbsp;<\/a><![endif]-->"),u=r.find("a").length,r.remove(),u},f=function(n,t){b(t,n)},pt=function(t,i){var u="hidebullets",r;i.hideThumbs==0&&(u="");(i.navigationType=="bullet"||i.navigationType=="both")&&t.parent().append('<div class="tp-bullets '+u+" simplebullets "+i.navigationStyle+'"><\/div>');r=t.parent().find(".tp-bullets");t.find(">ul:first >li").each(function(n){var u=t.find(">ul:first >li:eq("+n+") img:first").attr("src"),i;r.append('<div class="bullet"><\/div>');i=r.find(".bullet:first")});r.find(".bullet").each(function(r){var u=n(this);r==i.slideamount-1&&u.addClass("last");r==0&&u.addClass("first");u.click(function(){var n=!1;i.navigationArrows=="withbullet"||i.navigationArrows=="nexttobullets"?u.index()-1==i.act&&(n=!0):u.index()==i.act&&(n=!0);i.transition!=0||n||(i.next=i.navigationArrows=="withbullet"||i.navigationArrows=="nexttobullets"?u.index()-1:u.index(),f(i,t))})});r.append('<div class="tpclear"><\/div>');o(t,i)},wt=function(n,i){function s(t){n.parent().append('<div style="'+u+'" class="tp-'+t+"arrow "+e+" tparrows "+r+'"><div class="tp-arr-allwrapper"><div class="tp-arr-iwrapper"><div class="tp-arr-imgholder"><\/div><div class="tp-arr-imgholder2"><\/div><div class="tp-arr-titleholder"><\/div><div class="tp-arr-subtitleholder"><\/div><\/div><\/div><\/div>')}var h=n.find(".tp-bullets"),u="",e="hidearrows",r;i.hideThumbs==0&&(e="");r=i.navigationStyle;i.navigationArrows=="none"&&(u="visibility:hidden;display:none");i.soloArrowStyle="default "+i.navigationStyle;i.navigationArrows!="none"&&i.navigationArrows!="nexttobullets"&&(r=i.soloArrowStyle);s("left");s("right");n.parent().find(".tp-rightarrow").click(function(){i.transition==0&&(i.next=n.data("showus")!=t&&n.data("showus")!=-1?n.data("showus")-1:i.next+1,n.data("showus",-1),i.next>=i.slideamount&&(i.next=0),i.next<0&&(i.next=0),i.act!=i.next&&f(i,n))});n.parent().find(".tp-leftarrow").click(function(){i.transition==0&&(i.next=i.next-1,i.leftarrowpressed=1,i.next<0&&(i.next=i.slideamount-1),f(i,n))});o(n,i)},bt=function(i,r){n(document).keydown(function(n){r.transition==0&&n.keyCode==39&&(r.next=i.data("showus")!=t&&i.data("showus")!=-1?i.data("showus")-1:r.next+1,i.data("showus",-1),r.next>=r.slideamount&&(r.next=0),r.next<0&&(r.next=0),r.act!=r.next&&f(r,i));r.transition==0&&n.keyCode==37&&(r.next=r.next-1,r.leftarrowpressed=1,r.next<0&&(r.next=r.slideamount-1),f(r,i))});o(i,r)},kt=function(t,i){if(i.touchenabled=="on")try{var r=Hammer(t,{drag_block_vertical:i.drag_block_vertical,drag_lock_to_axis:!0,swipe_velocity:i.swipe_velocity,swipe_max_touches:i.swipe_max_touches,swipe_min_touches:i.swipe_min_touches,prevent_default:!1});r.on("swipeleft",function(){i.transition==0&&(i.next=i.next+1,i.next==i.slideamount&&(i.next=0),f(i,t))});r.on("swiperight",function(){i.transition==0&&(i.next=i.next-1,i.leftarrowpressed=1,i.next<0&&(i.next=i.slideamount-1),f(i,t))});r.on("swipeup",function(){n("html, body").animate({scrollTop:t.offset().top+t.height()+"px"})});r.on("swipedown",function(){n("html, body").animate({scrollTop:t.offset().top-n(window).height()+"px"})})}catch(u){}},dt=function(n,t){var i=n.parent().find(".tp-bullets"),r=n.parent().find(".tparrows");if(i==null&&(n.append('<div class=".tp-bullets"><\/div>'),i=n.parent().find(".tp-bullets")),r==null&&(n.append('<div class=".tparrows"><\/div>'),r=n.parent().find(".tparrows")),n.data("hideThumbs",t.hideThumbs),i.addClass("hidebullets"),r.addClass("hidearrows"),u())try{n.hammer().on("touch",function(){n.addClass("hovered");t.onHoverStop=="on"&&n.trigger("stoptimer");clearTimeout(n.data("hideThumbs"));i.removeClass("hidebullets");r.removeClass("hidearrows")});n.hammer().on("release",function(){n.removeClass("hovered");n.trigger("playtimer");n.hasClass("hovered")||i.hasClass("hovered")||n.data("hideThumbs",setTimeout(function(){i.addClass("hidebullets");r.addClass("hidearrows");n.trigger("playtimer")},t.hideNavDelayOnMobile))})}catch(f){}else{i.hover(function(){t.overnav=!0;t.onHoverStop=="on"&&n.trigger("stoptimer");i.addClass("hovered");clearTimeout(n.data("hideThumbs"));i.removeClass("hidebullets");r.removeClass("hidearrows")},function(){t.overnav=!1;n.trigger("playtimer");i.removeClass("hovered");n.hasClass("hovered")||i.hasClass("hovered")||n.data("hideThumbs",setTimeout(function(){i.addClass("hidebullets");r.addClass("hidearrows")},t.hideThumbs))});r.hover(function(){t.overnav=!0;t.onHoverStop=="on"&&n.trigger("stoptimer");i.addClass("hovered");clearTimeout(n.data("hideThumbs"));i.removeClass("hidebullets");r.removeClass("hidearrows")},function(){t.overnav=!1;n.trigger("playtimer");i.removeClass("hovered")});n.on("mouseenter",function(){n.addClass("hovered");t.onHoverStop=="on"&&n.trigger("stoptimer");clearTimeout(n.data("hideThumbs"));i.removeClass("hidebullets");r.removeClass("hidearrows")});n.on("mouseleave",function(){n.removeClass("hovered");n.trigger("playtimer");n.hasClass("hovered")||i.hasClass("hovered")||n.data("hideThumbs",setTimeout(function(){i.addClass("hidebullets");r.addClass("hidearrows")},t.hideThumbs))})}},o=function(t,i){var h=t.parent(),f=h.find(".tp-bullets"),s,r,u,e,o,c;i.navigationType=="thumb"&&(f.find(".thumb").each(function(){var t=n(this);t.css({width:i.thumbWidth*i.bw+"px",height:i.thumbHeight*i.bh+"px"})}),s=f.find(".tp-mask"),s.width(i.thumbWidth*i.thumbAmount*i.bw),s.height(i.thumbHeight*i.bh),s.parent().width(i.thumbWidth*i.thumbAmount*i.bw),s.parent().height(i.thumbHeight*i.bh));r=h.find(".tp-leftarrow");u=h.find(".tp-rightarrow");i.navigationType=="thumb"&&i.navigationArrows=="nexttobullets"&&(i.navigationArrows="solo");i.navigationArrows=="nexttobullets"&&(r.prependTo(f).css({float:"left"}),u.insertBefore(f.find(".tpclear")).css({float:"left"}));e=0;i.forceFullWidth=="on"&&(e=0-i.container.parent().offset().left);o=0;c=0;i.navigationInGrid=="on"&&(o=t.width()>i.startwidth?(t.width()-i.startwidth)/2:0,c=t.height()>i.startheight?(t.height()-i.startheight)/2:0);i.navigationArrows!="none"&&i.navigationArrows!="nexttobullets"&&(r.css({position:"absolute"}),u.css({position:"absolute"}),i.soloArrowLeftValign=="center"&&r.css({top:"50%",marginTop:i.soloArrowLeftVOffset-Math.round(r.innerHeight()/2)+"px"}),i.soloArrowLeftValign=="bottom"&&r.css({top:"auto",bottom:0+i.soloArrowLeftVOffset+"px"}),i.soloArrowLeftValign=="top"&&r.css({bottom:"auto",top:0+i.soloArrowLeftVOffset+"px"}),i.soloArrowLeftHalign=="center"&&r.css({left:"50%",marginLeft:e+i.soloArrowLeftHOffset-Math.round(r.innerWidth()/2)+"px"}),i.soloArrowLeftHalign=="left"&&r.css({left:o+i.soloArrowLeftHOffset+e+"px"}),i.soloArrowLeftHalign=="right"&&r.css({right:o+i.soloArrowLeftHOffset-e+"px"}),i.soloArrowRightValign=="center"&&u.css({top:"50%",marginTop:i.soloArrowRightVOffset-Math.round(u.innerHeight()/2)+"px"}),i.soloArrowRightValign=="bottom"&&u.css({top:"auto",bottom:0+i.soloArrowRightVOffset+"px"}),i.soloArrowRightValign=="top"&&u.css({bottom:"auto",top:0+i.soloArrowRightVOffset+"px"}),i.soloArrowRightHalign=="center"&&u.css({left:"50%",marginLeft:e+i.soloArrowRightHOffset-Math.round(u.innerWidth()/2)+"px"}),i.soloArrowRightHalign=="left"&&u.css({left:o+i.soloArrowRightHOffset+e+"px"}),i.soloArrowRightHalign=="right"&&u.css({right:o+i.soloArrowRightHOffset-e+"px"}),r.position()!=null&&r.css({top:Math.round(parseInt(r.position().top,0))+"px"}),u.position()!=null&&u.css({top:Math.round(parseInt(u.position().top,0))+"px"}));i.navigationArrows=="none"&&(r.css({visibility:"hidden"}),u.css({visibility:"hidden"}));i.navigationVAlign=="center"&&f.css({top:"50%",marginTop:i.navigationVOffset-Math.round(f.innerHeight()/2)+"px"});i.navigationVAlign=="bottom"&&f.css({bottom:0+i.navigationVOffset+"px"});i.navigationVAlign=="top"&&f.css({top:0+i.navigationVOffset+"px"});i.navigationHAlign=="center"&&f.css({left:"50%",marginLeft:e+i.navigationHOffset-Math.round(f.innerWidth()/2)+"px"});i.navigationHAlign=="left"&&f.css({left:0+i.navigationHOffset+e+"px"});i.navigationHAlign=="right"&&f.css({right:0+i.navigationHOffset-e+"px"})},gt=function(i){var s=i.container,f,w;i.beforli=i.next-1;i.comingli=i.next+1;i.beforli<0&&(i.beforli=i.slideamount-1);i.comingli>=i.slideamount&&(i.comingli=0);var h=s.find(">ul:first-child >li:eq("+i.comingli+")"),c=s.find(">ul:first-child >li:eq("+i.beforli+")"),l=c.find(".defaultimg").attr("src"),a=h.find(".defaultimg").attr("src");i.arr==t&&(i.arr=s.parent().find(".tparrows"),i.rar=s.parent().find(".tp-rightarrow"),i.lar=s.parent().find(".tp-leftarrow"),i.raimg=i.rar.find(".tp-arr-imgholder"),i.laimg=i.lar.find(".tp-arr-imgholder"),i.raimg_b=i.rar.find(".tp-arr-imgholder2"),i.laimg_b=i.lar.find(".tp-arr-imgholder2"),i.ratit=i.rar.find(".tp-arr-titleholder"),i.latit=i.lar.find(".tp-arr-titleholder"));var f=i.arr,e=i.rar,v=i.lar,r=i.raimg,o=i.laimg,y=i.raimg_b,p=i.laimg_b,b=i.ratit,k=i.latit;h.data("title")!=t&&b.html(h.data("title"));c.data("title")!=t&&k.html(c.data("title"));e.hasClass("itishovered")&&e.width(b.outerWidth(!0)+parseInt(e.css("minWidth"),0));v.hasClass("itishovered")&&v.width(k.outerWidth(!0)+parseInt(v.css("minWidth"),0));f.hasClass("preview2")&&!f.hasClass("hashoveralready")&&(f.addClass("hashoveralready"),u()?(f=n(this),w=f.find(".tp-arr-titleholder"),w.addClass("alwayshidden"),punchgs.TweenLite.set(w,{autoAlpha:0})):f.hover(function(){var t=n(this),i=t.find(".tp-arr-titleholder");t.width(i.outerWidth(!0)+parseInt(t.css("minWidth"),0));t.addClass("itishovered")},function(){var t=n(this),i=t.find(".tp-arr-titleholder");t.css({width:parseInt(t.css("minWidth"),0)});t.removeClass("itishovered")}));c.data("thumb")!=t&&(l=c.data("thumb"));h.data("thumb")!=t&&(a=h.data("thumb"));f.hasClass("preview4")?(y.css({backgroundImage:"url("+a+")"}),p.css({backgroundImage:"url("+l+")"}),punchgs.TweenLite.fromTo(y,.8,{force3D:punchgs.force3d,x:0},{x:-r.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){r.css({backgroundImage:"url("+a+")"});punchgs.TweenLite.set(y,{x:0})}}),punchgs.TweenLite.fromTo(p,.8,{force3D:punchgs.force3d,x:0},{x:r.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){o.css({backgroundImage:"url("+l+")"});punchgs.TweenLite.set(p,{x:0})}}),punchgs.TweenLite.fromTo(r,.8,{x:0},{force3D:punchgs.force3d,x:-r.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(r,{x:0})}}),punchgs.TweenLite.fromTo(o,.8,{x:0},{force3D:punchgs.force3d,x:r.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(o,{x:0})}})):(punchgs.TweenLite.to(r,.5,{autoAlpha:0,onComplete:function(){r.css({backgroundImage:"url("+a+")"});o.css({backgroundImage:"url("+l+")"})}}),punchgs.TweenLite.to(o,.5,{autoAlpha:0,onComplete:function(){punchgs.TweenLite.to(r,.5,{autoAlpha:1,delay:.2});punchgs.TweenLite.to(o,.5,{autoAlpha:1,delay:.2})}}));e.hasClass("preview4")&&!e.hasClass("hashoveralready")&&(e.addClass("hashoveralready"),e.hover(function(){var t=n(this).find(".tp-arr-iwrapper"),i=n(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(t,.4,{x:t.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"});punchgs.TweenLite.to(i,.2,{autoAlpha:1,overwrite:"all"})},function(){var t=n(this).find(".tp-arr-iwrapper"),i=n(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(t,.4,{x:t.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"});punchgs.TweenLite.to(i,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}),v.hover(function(){var t=n(this).find(".tp-arr-iwrapper"),i=n(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(t,.4,{x:0-t.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"});punchgs.TweenLite.to(i,.2,{autoAlpha:1,overwrite:"all"})},function(){var t=n(this).find(".tp-arr-iwrapper"),i=n(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(t,.4,{x:0-t.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"});punchgs.TweenLite.to(i,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}))},e=function(i,r){var e,u,f;if(r.container.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css({height:r.container.height()}),r.container.closest(".rev_slider_wrapper").css({height:r.container.height()}),r.width=parseInt(r.container.width(),0),r.height=parseInt(r.container.height(),0),r.bw=r.width/r.startwidth,r.bh=r.height/r.startheight,r.bh>r.bw&&(r.bh=r.bw),r.bh<r.bw&&(r.bw=r.bh),r.bw<r.bh&&(r.bh=r.bw),r.bh>1&&(r.bw=1,r.bh=1),r.bw>1&&(r.bw=1,r.bh=1),r.height=r.startheight,r.fullScreen=="on"){if(r.height=r.bw*r.startheight,e=r.container.parent().width(),u=n(window).height(),r.fullScreenOffsetContainer!=t){try{f=r.fullScreenOffsetContainer.split(",");n.each(f,function(t,i){u=u-n(i).outerHeight(!0);u<r.minFullScreenHeight&&(u=r.minFullScreenHeight)})}catch(o){}try{r.fullScreenOffset.split("%").length>1&&r.fullScreenOffset!=t&&r.fullScreenOffset.length>0?u=u-n(window).height()*parseInt(r.fullScreenOffset,0)/100:r.fullScreenOffset!=t&&r.fullScreenOffset.length>0&&(u=u-parseInt(r.fullScreenOffset,0));u<r.minFullScreenHeight&&(u=r.minFullScreenHeight)}catch(o){}}r.container.parent().height(u);r.container.closest(".rev_slider_wrapper").height(u);r.container.css({height:"100%"});r.height=u}else r.container.height(r.height);r.slotw=Math.ceil(r.width/r.slots);r.sloth=r.fullScreen=="on"?Math.ceil(n(window).height()/r.slots):Math.ceil(r.height/r.slots);r.autoHeight=="on"&&(r.sloth=Math.ceil(i.height()/r.slots))},ni=function(i,u){i.find(".tp-caption").each(function(){n(this).addClass(n(this).data("transition"));n(this).addClass("start")});i.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:i.parent().css("maxHeight")});u.autoHeight=="on"&&(i.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"}),i.css({maxHeight:"none"}),i.parent().css({maxHeight:"none"}));i.find(">ul:first >li").each(function(){var i=n(this),r;if(i.css({width:"100%",height:"100%",overflow:"hidden"}),i.data("link")!=t){var f=i.data("link"),e="_self",u=60;i.data("slideindex")=="back"&&(u=0);r=i.data("linktoslide");i.data("target")!=t&&(e=i.data("target"));f=="slide"?i.append('<div class="tp-caption sft slidelink" style="width:100%;height:100%;z-index:'+u+';" data-x="center" data-y="center" data-linktoslide="'+r+'" data-start="0"><a style="width:100%;height:100%;display:block"><span style="width:100%;height:100%;display:block"><\/span><\/a><\/div>'):(r="no",i.append('<div class="tp-caption sft slidelink" style="width:100%;height:100%;z-index:'+u+';" data-x="center" data-y="center" data-linktoslide="'+r+'" data-start="0"><a style="width:100%;height:100%;display:block" target="'+e+'" href="'+f+'"><span style="width:100%;height:100%;display:block"><\/span><\/a><\/div>'))}});i.parent().css({overflow:"visible"});i.find(">ul:first >li >img").each(function(i){var f=n(this),l;f.addClass("defaultimg");f.data("lazyload")!=t&&f.data("lazydone")!=1||e(f,u);f.wrap('<div class="slotholder" style="width:100%;height:100%;"data-duration="'+f.data("duration")+'"data-zoomstart="'+f.data("zoomstart")+'"data-zoomend="'+f.data("zoomend")+'"data-rotationstart="'+f.data("rotationstart")+'"data-rotationend="'+f.data("rotationend")+'"data-ease="'+f.data("ease")+'"data-duration="'+f.data("duration")+'"data-bgpositionend="'+f.data("bgpositionend")+'"data-bgposition="'+f.data("bgposition")+'"data-duration="'+f.data("duration")+'"data-kenburns="'+f.data("kenburns")+'"data-easeme="'+f.data("ease")+'"data-bgfit="'+f.data("bgfit")+'"data-bgfitend="'+f.data("bgfitend")+'"data-owidth="'+f.data("owidth")+'"data-oheight="'+f.data("oheight")+'"><\/div>');u.dottedOverlay!="none"&&u.dottedOverlay!=t&&f.closest(".slotholder").append('<div class="tp-dottedoverlay '+u.dottedOverlay+'"><\/div>');var o=f.attr("src"),a=f.data("lazyload"),s=f.data("bgfit"),h=f.data("bgrepeat"),c=f.data("bgposition");s==t&&(s="cover");h==t&&(h="no-repeat");c==t&&(c="center center");l=f.closest(".slotholder");f.replaceWith('<div class="tp-bgimg defaultimg" data-lazyload="'+f.data("lazyload")+'" data-bgfit="'+s+'"data-bgposition="'+c+'" data-bgrepeat="'+h+'" data-lazydone="'+f.data("lazydone")+'" src="'+o+'" data-src="'+o+'" style="background-color:'+f.css("backgroundColor")+";background-repeat:"+h+";background-image:url("+o+");background-size:"+s+";background-position:"+c+';width:100%;height:100%;"><\/div>');r(8)&&(l.find(".tp-bgimg").css({backgroundImage:"none","background-image":"none"}),l.find(".tp-bgimg").append('<img class="ieeightfallbackimage defaultimg" src="'+o+'" style="width:100%">'));f.css({opacity:0});f.data("li-id",i)})},it=function(n,i,u,f){var o=n,h=o.find(".defaultimg"),p=o.data("zoomstart"),a=o.data("rotationstart"),tt,d,c;h.data("currotate")!=t&&(a=h.data("currotate"));h.data("curscale")!=t&&(p=h.data("curscale"));e(h,i);var w=h.data("src"),it=h.css("background-color"),b=i.width,v=i.height,k=h.data("fxof");i.autoHeight=="on"&&(v=i.container.height());k==t&&(k=0);fullyoff=0;var d=0,l=h.data("bgfit"),g=h.data("bgrepeat"),nt=h.data("bgposition");if(l==t&&(l="cover"),g==t&&(g="no-repeat"),nt==t&&(nt="center center"),r(8)&&(o.data("kenburns","off"),tt=w,w=""),o.data("kenburns")=="on"&&(l=p,l.toString().length<4&&(l=s(l,o,i))),f=="horizontal")for(u||(d=0-i.slotw),c=0;c<i.slots;c++)o.append('<div class="slot" style="position:absolute;top:'+(0+fullyoff)+"px;left:"+(k+c*i.slotw)+"px;overflow:hidden;width:"+(i.slotw+.6)+"px;height:"+v+'px"><div class="slotslide" style="position:absolute;top:0px;left:'+d+"px;width:"+(i.slotw+.6)+"px;height:"+v+'px;overflow:hidden;"><div style="background-color:'+it+";position:absolute;top:0px;left:"+(0-c*i.slotw)+"px;width:"+b+"px;height:"+v+"px;background-image:url("+w+");background-repeat:"+g+";background-size:"+l+";background-position:"+nt+';"><\/div><\/div><\/div>'),p!=t&&a!=t&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:a}),r(8)&&(o.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+tt+'" style="width:100%;height:auto">'),y(o,i));else for(u||(d=0-i.sloth),c=0;c<i.slots+2;c++)o.append('<div class="slot" style="position:absolute;top:'+(fullyoff+c*i.sloth)+"px;left:"+k+"px;overflow:hidden;width:"+b+"px;height:"+i.sloth+'px"><div class="slotslide" style="position:absolute;top:'+d+"px;left:0px;width:"+b+"px;height:"+i.sloth+'px;overflow:hidden;"><div style="background-color:'+it+";position:absolute;top:"+(0-c*i.sloth)+"px;left:0px;width:"+b+"px;height:"+v+"px;background-image:url("+w+");background-repeat:"+g+";background-size:"+l+";background-position:"+nt+';"><\/div><\/div><\/div>'),p!=t&&a!=t&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:a}),r(8)&&(o.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+tt+'" style="width:100%;height:auto;">'),y(o,i))},rt=function(n,i,u){var h=n,f=h.find(".defaultimg"),p=h.data("zoomstart"),w=h.data("rotationstart"),v,rt,o,it,g,nt;f.data("currotate")!=t&&(w=f.data("currotate"));f.data("curscale")!=t&&(p=f.data("curscale")*100);e(f,i);var b=f.data("src"),ut=f.css("backgroundColor"),ft=i.width,tt=i.height;i.autoHeight=="on"&&(tt=i.container.height());v=f.data("fxof");v==t&&(v=0);fullyoff=0;it=0;r(8)&&(rt=b,b="");o=0;o=i.sloth>i.slotw?i.sloth:i.slotw;u||(it=0-o);i.slotw=o;i.sloth=o;var a=0,l=0,c=f.data("bgfit"),k=f.data("bgrepeat"),d=f.data("bgposition");for(c==t&&(c="cover"),k==t&&(k="no-repeat"),d==t&&(d="center center"),h.data("kenburns")=="on"&&(c=p,c.toString().length<4&&(c=s(c,h,i))),g=0;g<i.slots;g++){for(l=0,nt=0;nt<i.slots;nt++)h.append('<div class="slot" style="position:absolute;top:'+(fullyoff+l)+"px;left:"+(v+a)+"px;width:"+o+"px;height:"+o+'px;overflow:hidden;"><div class="slotslide" data-x="'+a+'" data-y="'+l+'" style="position:absolute;top:0px;left:0px;width:'+o+"px;height:"+o+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-l)+"px;left:"+(0-a)+"px;width:"+ft+"px;height:"+tt+"px;background-color:"+ut+";background-image:url("+b+");background-repeat:"+k+";background-size:"+c+";background-position:"+d+';"><\/div><\/div><\/div>'),l=l+o,r(8)&&(h.find(".slot ").last().find(".slotslide").append('<img src="'+rt+'">'),y(h,i)),p!=t&&w!=t&&punchgs.TweenLite.set(h.find(".slot").last(),{rotationZ:w});a=a+o}},y=function(n,t){if(r(8)){var i=n.find(".ieeightfallbackimage"),u=i.width(),f=i.height();t.startwidth/t.startheight<n.data("owidth")/n.data("oheight")?i.css({width:"auto",height:"100%"}):i.css({width:"100%",height:"auto"});setTimeout(function(){var r=i.width(),u=i.height();n.data("bgposition")=="center center"&&i.css({position:"absolute",top:t.height/2-u/2+"px",left:t.width/2-r/2+"px"});(n.data("bgposition")=="center top"||n.data("bgposition")=="top center")&&i.css({position:"absolute",top:"0px",left:t.width/2-r/2+"px"});(n.data("bgposition")=="center bottom"||n.data("bgposition")=="bottom center")&&i.css({position:"absolute",bottom:"0px",left:t.width/2-r/2+"px"});(n.data("bgposition")=="right top"||n.data("bgposition")=="top right")&&i.css({position:"absolute",top:"0px",right:"0px"});(n.data("bgposition")=="right bottom"||n.data("bgposition")=="bottom right")&&i.css({position:"absolute",bottom:"0px",right:"0px"});(n.data("bgposition")=="right center"||n.data("bgposition")=="center right")&&i.css({position:"absolute",top:t.height/2-u/2+"px",right:"0px"});(n.data("bgposition")=="left bottom"||n.data("bgposition")=="bottom left")&&i.css({position:"absolute",bottom:"0px",left:"0px"});(n.data("bgposition")=="left center"||n.data("bgposition")=="center left")&&i.css({position:"absolute",top:t.height/2-u/2+"px",left:"0px"})},20)}},p=function(t,i,r){r.find(".slot").each(function(){n(this).remove()});i.transition=0},ut=function(i,r){i.find("img, .defaultimg").each(function(){var i=n(this),u;i.data("lazyload")!=i.attr("src")&&r<3&&i.data("lazyload")!=t&&i.data("lazyload")!="undefined"?i.data("lazyload")!=t&&i.data("lazyload")!="undefined"&&(i.attr("src",i.data("lazyload")),u=new Image,u.onload=function(){i.data("lazydone",1);i.hasClass("defaultimg")&&c(i,u)},u.error=function(){i.data("lazydone",1)},u.src=i.attr("src"),u.complete&&(i.hasClass("defaultimg")&&c(i,u),i.data("lazydone",1))):(i.data("lazyload")===t||i.data("lazyload")==="undefined")&&i.data("lazydone")!=1&&(u=new Image,u.onload=function(){i.hasClass("defaultimg")&&c(i,u);i.data("lazydone",1)},u.error=function(){i.data("lazydone",1)},u.src=i.attr("src")!=t&&i.attr("src")!="undefined"?i.attr("src"):i.data("src"),u.complete&&(i.hasClass("defaultimg")&&c(i,u),i.data("lazydone",1)))})},c=function(n,t){var i=n.closest("li"),r=t.width,u=t.height;i.data("owidth",r);i.data("oheight",u);i.find(".slotholder").data("owidth",r);i.find(".slotholder").data("oheight",u);i.data("loadeddone",1)},w=function(i,r,u){ut(i,0);var f=setInterval(function(){u.bannertimeronpause=!0;u.container.trigger("stoptimer");u.cd=0;var e=0;i.find("img, .defaultimg").each(function(){n(this).data("lazydone")!=1&&e++});e>0?ut(i,e):(clearInterval(f),r!=t&&r())},100)},b=function(n,i){var e,f,u;try{e=n.find(">ul:first-child >li:eq("+i.act+")")}catch(o){e=n.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;f=n.find(">ul:first-child >li:eq("+i.next+")");u=f.find(".defaultimg");i.bannertimeronpause=!0;n.trigger("stoptimer");i.cd=0;u.data("lazyload")!=t&&u.data("lazyload")!="undefined"&&u.data("lazydone")!=1?(r(8)?u.attr("src",f.find(".defaultimg").data("lazyload")):u.css({backgroundImage:'url("'+f.find(".defaultimg").data("lazyload")+'")'}),u.data("src",f.find(".defaultimg").data("lazyload")),u.data("lazydone",1),u.data("orgw",0),f.data("loadeddone",1),n.find(".tp-loader").css({display:"block"}),w(n.find(".tp-static-layers"),function(){w(f,function(){var t=f.find(".slotholder"),r;t.data("kenburns")=="on"?r=setInterval(function(){var f=t.data("owidth");f>=0&&(clearInterval(r),l(i,u,n))},10):l(i,u,n)},i)},i)):f.data("loadeddone")===t?(f.data("loadeddone",1),w(f,function(){l(i,u,n)},i)):l(i,u,n)},l=function(n,t,i){n.bannertimeronpause=!1;n.cd=0;i.trigger("nulltimer");i.find(".tp-loader").css({display:"none"});e(t,n);o(i,n);e(t,n);ti(i,n)},ti=function(n,i){var r,u,e,o,f;n.trigger("revolution.slide.onbeforeswap");i.transition=1;i.videoplaying=!1;try{r=n.find(">ul:first-child >li:eq("+i.act+")")}catch(s){r=n.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;u=n.find(">ul:first-child >li:eq("+i.next+")");setTimeout(function(){gt(i)},200);e=r.find(".slotholder");o=u.find(".slotholder");(o.data("kenburns")=="on"||e.data("kenburns")=="on")&&(li(n,i),n.find(".kenburnimg").remove());u.data("delay")!=t?(i.cd=0,i.delay=u.data("delay")):i.delay=i.origcd;i.firststart==1&&punchgs.TweenLite.set(r,{autoAlpha:0});punchgs.TweenLite.set(r,{zIndex:18});punchgs.TweenLite.set(u,{autoAlpha:0,zIndex:20});f=0;r.index()!=u.index()&&i.firststart!=1&&(f=oi(r,i));r.data("saveperformance")!="on"&&(f=0);setTimeout(function(){n.trigger("restarttimer");ii(n,i,u,r,e,o)},f)},ii=function(i,u,f,e,o,s){function ci(){n.each(vt,function(n,t){(t[0]==c||t[8]==c)&&(l=t[1],d=t[2],si=dt);dt=dt+1})}var c,d,hi,ct,ut,v,a,li,lt,ai,vi,ti,yt,pt,bi,bt,g,w,y,pi,wi,kt,p,tt,b,ei,ni;f.data("differentissplayed")=="prepared"&&(f.data("differentissplayed","done"),f.data("transition",f.data("savedtransition")),f.data("slotamount",f.data("savedslotamount")),f.data("masterspeed",f.data("savedmasterspeed")));f.data("fstransition")!=t&&f.data("differentissplayed")!="done"&&(f.data("savedtransition",f.data("transition")),f.data("savedslotamount",f.data("slotamount")),f.data("savedmasterspeed",f.data("masterspeed")),f.data("transition",f.data("fstransition")),f.data("slotamount",f.data("fsslotamount")),f.data("masterspeed",f.data("fsmasterspeed")),f.data("differentissplayed","prepared"));var l=0,oi=f.data("transition").split(","),ft=f.data("nexttransid");ft==t?(ft=0,f.data("nexttransid",ft)):(ft=ft+1,ft==oi.length&&(ft=0),f.data("nexttransid",ft));c=oi[ft];u.ie&&(c=="boxfade"&&(c="boxslide"),c=="slotfade-vertical"&&(c="slotzoom-vertical"),c=="slotfade-horizontal"&&(c="slotzoom-horizontal"));r(8)&&(c=11);d=0;u.parallax=="scroll"&&u.parallaxFirstGo==t&&(u.parallaxFirstGo=!0,h(i,u),setTimeout(function(){h(i,u)},210),setTimeout(function(){h(i,u)},420));(c=="boxslide"||c=="boxfade"||c=="papercut"||c==0||c==1||c==16)&&(c=9);c=="slidehorizontal"&&(c="slideleft",u.leftarrowpressed==1&&(c="slideright"));c=="slidevertical"&&(c="slideup",u.leftarrowpressed==1&&(c="slidedown"));c=="parallaxhorizontal"&&(c="parallaxtoleft",u.leftarrowpressed==1&&(c="parallaxtoright"));c=="parallaxvertical"&&(c="parallaxtotop",u.leftarrowpressed==1&&(c="parallaxtobottom"));var vt=[["boxslide",0,1,10,0,"box",!1,null,0],["boxfade",1,0,10,0,"box",!1,null,1],["slotslide-horizontal",2,0,0,200,"horizontal",!0,!1,2],["slotslide-vertical",3,0,0,200,"vertical",!0,!1,3],["curtain-1",4,3,0,0,"horizontal",!0,!0,4],["curtain-2",5,3,0,0,"horizontal",!0,!0,5],["curtain-3",6,3,25,0,"horizontal",!0,!0,6],["slotzoom-horizontal",7,0,0,400,"horizontal",!0,!0,7],["slotzoom-vertical",8,0,0,0,"vertical",!0,!0,8],["slotfade-horizontal",9,0,0,500,"horizontal",!0,null,9],["slotfade-vertical",10,0,0,500,"vertical",!0,null,10],["fade",11,0,1,300,"horizontal",!0,null,11],["slideleft",12,0,1,0,"horizontal",!0,!0,12],["slideup",13,0,1,0,"horizontal",!0,!0,13],["slidedown",14,0,1,0,"horizontal",!0,!0,14],["slideright",15,0,1,0,"horizontal",!0,!0,15],["papercut",16,0,0,600,"",null,null,16],["3dcurtain-horizontal",17,0,20,100,"vertical",!1,!0,17],["3dcurtain-vertical",18,0,10,100,"horizontal",!1,!0,18],["cubic",19,0,20,600,"horizontal",!1,!0,19],["cube",19,0,20,600,"horizontal",!1,!0,20],["flyin",20,0,4,600,"vertical",!1,!0,21],["turnoff",21,0,1,1600,"horizontal",!1,!0,22],["incube",22,0,20,200,"horizontal",!1,!0,23],["cubic-horizontal",23,0,20,500,"vertical",!1,!0,24],["cube-horizontal",23,0,20,500,"vertical",!1,!0,25],["incube-horizontal",24,0,20,500,"vertical",!1,!0,26],["turnoff-vertical",25,0,1,200,"horizontal",!1,!0,27],["fadefromright",12,1,1,0,"horizontal",!0,!0,28],["fadefromleft",15,1,1,0,"horizontal",!0,!0,29],["fadefromtop",14,1,1,0,"horizontal",!0,!0,30],["fadefrombottom",13,1,1,0,"horizontal",!0,!0,31],["fadetoleftfadefromright",12,2,1,0,"horizontal",!0,!0,32],["fadetorightfadetoleft",15,2,1,0,"horizontal",!0,!0,33],["fadetobottomfadefromtop",14,2,1,0,"horizontal",!0,!0,34],["fadetotopfadefrombottom",13,2,1,0,"horizontal",!0,!0,35],["parallaxtoright",12,3,1,0,"horizontal",!0,!0,36],["parallaxtoleft",15,3,1,0,"horizontal",!0,!0,37],["parallaxtotop",14,3,1,0,"horizontal",!0,!0,38],["parallaxtobottom",13,3,1,0,"horizontal",!0,!0,39],["scaledownfromright",12,4,1,0,"horizontal",!0,!0,40],["scaledownfromleft",15,4,1,0,"horizontal",!0,!0,41],["scaledownfromtop",14,4,1,0,"horizontal",!0,!0,42],["scaledownfrombottom",13,4,1,0,"horizontal",!0,!0,43],["zoomout",13,5,1,0,"horizontal",!0,!0,44],["zoomin",13,6,1,0,"horizontal",!0,!0,45],["notransition",26,0,1,0,"horizontal",!0,null,46]],et=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],st=[16,17,18,19,20,21,22,23,24,25,26,27],l=0,d=1,si=0,dt=0,k=[];if(s.data("kenburns")=="on"&&((c=="boxslide"||c==0||c=="boxfade"||c==1||c=="papercut"||c==16)&&(c=11),nt(i,u,!0,!0)),c=="random"&&(c=Math.round(Math.random()*vt.length-1),c>vt.length-1&&(c=vt.length-1)),c=="random-static"&&(c=Math.round(Math.random()*et.length-1),c>et.length-1&&(c=et.length-1),c=et[c]),c=="random-premium"&&(c=Math.round(Math.random()*st.length-1),c>st.length-1&&(c=st.length-1),c=st[c]),hi=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],u.isJoomla==!0&&window.MooTools!=t&&hi.indexOf(c)!=-1&&(ct=Math.round(Math.random()*(st.length-2))+1,ct>st.length-1&&(ct=st.length-1),ct==0&&(ct=1),c=st[ct]),ci(),r(8)&&l>15&&l<28&&(c=Math.round(Math.random()*et.length-1),c>et.length-1&&(c=et.length-1),c=et[c],dt=0,ci()),ut=-1,(u.leftarrowpressed==1||u.act>u.next)&&(ut=1),u.leftarrowpressed=0,l>26&&(l=26),l<0&&(l=0),v=300,f.data("masterspeed")!=t&&f.data("masterspeed")>99&&f.data("masterspeed")<4001&&(v=f.data("masterspeed")),k=vt[si],i.parent().find(".bullet").each(function(){var t=n(this);t.removeClass("selected");u.navigationArrows=="withbullet"||u.navigationArrows=="nexttobullets"?t.index()-1==u.next&&t.addClass("selected"):t.index()==u.next&&t.addClass("selected")}),a=new punchgs.TimelineLite({onComplete:function(){ri(i,u,s,o,f,e,a)}}),a.add(punchgs.TweenLite.set(s.find(".defaultimg"),{opacity:0})),a.pause(),f.data("slotamount")==t||f.data("slotamount")<1?(u.slots=Math.round(Math.random()*12+4),c=="boxslide"?u.slots=Math.round(Math.random()*6+3):c=="flyin"&&(u.slots=Math.round(Math.random()*4+1))):u.slots=f.data("slotamount"),u.rotate=f.data("rotate")==t?0:f.data("rotate")==999?Math.round(Math.random()*360):f.data("rotate"),(!n.support.transition||u.ie||u.ie9)&&(u.rotate=0),u.firststart==1&&(u.firststart=0),v=v+k[4],(l==4||l==5||l==6)&&u.slots<3&&(u.slots=3),k[3]!=0&&(u.slots=Math.min(u.slots,k[3])),l==9&&(u.slots=u.width/20),l==10&&(u.slots=u.height/20),k[5]=="box"?(k[7]!=null&&rt(o,u,k[7]),k[6]!=null&&rt(s,u,k[6])):(k[5]=="vertical"||k[5]=="horizontal")&&(k[7]!=null&&it(o,u,k[7],k[5]),k[6]!=null&&it(s,u,k[6],k[5])),l==0&&(li=Math.ceil(u.height/u.sloth),lt=0,s.find(".slotslide").each(function(t){var i=n(this);lt=lt+1;lt==li&&(lt=0);a.add(punchgs.TweenLite.from(i,v/600,{opacity:0,top:0-u.sloth,left:0-u.slotw,rotation:u.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),(t*15+lt*30)/1500)})),l==1&&(vi=0,s.find(".slotslide").each(function(t){var i=n(this);rand=Math.random()*v+300;rand2=Math.random()*500+200;rand+rand2>ai&&(ai=rand2+rand2,vi=t);a.add(punchgs.TweenLite.from(i,rand/1e3,{autoAlpha:0,force3D:"auto",rotation:u.rotate,ease:punchgs.Power2.easeInOut}),rand2/1e3)})),l==2&&(y=new punchgs.TimelineLite,o.find(".slotslide").each(function(){var t=n(this);y.add(punchgs.TweenLite.to(t,v/1e3,{left:u.slotw,force3D:"auto",rotation:0-u.rotate}),0);a.add(y,0)}),s.find(".slotslide").each(function(){var t=n(this);y.add(punchgs.TweenLite.from(t,v/1e3,{left:0-u.slotw,force3D:"auto",rotation:u.rotate}),0);a.add(y,0)})),l==3&&(y=new punchgs.TimelineLite,o.find(".slotslide").each(function(){var t=n(this);y.add(punchgs.TweenLite.to(t,v/1e3,{top:u.sloth,rotation:u.rotate,force3D:"auto",transformPerspective:600}),0);a.add(y,0)}),s.find(".slotslide").each(function(){var t=n(this);y.add(punchgs.TweenLite.from(t,v/1e3,{top:0-u.sloth,rotation:u.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0);a.add(y,0)})),l==4||l==5){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var ht=v/1e3,fr=ht,y=new punchgs.TimelineLite;o.find(".slotslide").each(function(t){var r=n(this),i=t*ht/u.slots;l==5&&(i=(u.slots-t-1)*ht/u.slots/1.5);y.add(punchgs.TweenLite.to(r,ht*3,{transformPerspective:600,force3D:"auto",top:0+u.height,opacity:.5,rotation:u.rotate,ease:punchgs.Power2.easeInOut,delay:i}),0);a.add(y,0)});s.find(".slotslide").each(function(t){var r=n(this),i=t*ht/u.slots;l==5&&(i=(u.slots-t-1)*ht/u.slots/1.5);y.add(punchgs.TweenLite.from(r,ht*3,{top:0-u.height,opacity:.5,rotation:u.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:i}),0);a.add(y,0)})}if(l==6&&(u.slots<2&&(u.slots=2),u.slots%2&&(u.slots=u.slots+1),y=new punchgs.TimelineLite,setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100),o.find(".slotslide").each(function(t){var r=n(this),i;i=t+1<u.slots/2?(t+2)*90:(2+u.slots-t)*90;y.add(punchgs.TweenLite.to(r,(v+i)/1e3,{top:0+u.height,opacity:1,force3D:"auto",rotation:u.rotate,ease:punchgs.Power2.easeInOut}),0);a.add(y,0)}),s.find(".slotslide").each(function(t){var r=n(this),i;i=t+1<u.slots/2?(t+2)*90:(2+u.slots-t)*90;y.add(punchgs.TweenLite.from(r,(v+i)/1e3,{top:0-u.height,opacity:1,force3D:"auto",rotation:u.rotate,ease:punchgs.Power2.easeInOut}),0);a.add(y,0)})),l==7&&(v=v*2,y=new punchgs.TimelineLite,setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100),o.find(".slotslide").each(function(){var t=n(this).find("div");y.add(punchgs.TweenLite.to(t,v/1e3,{left:0-u.slotw/2+"px",top:0-u.height/2+"px",width:u.slotw*2+"px",height:u.height*2+"px",opacity:0,rotation:u.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),0);a.add(y,0)}),s.find(".slotslide").each(function(t){var i=n(this).find("div");y.add(punchgs.TweenLite.fromTo(i,v/1e3,{left:0,top:0,opacity:0,transformPerspective:600},{left:0-t*u.slotw+"px",ease:punchgs.Power2.easeOut,force3D:"auto",top:"0px",width:u.width,height:u.height,opacity:1,rotation:0,delay:.1}),0);a.add(y,0)})),l==8&&(v=v*3,y=new punchgs.TimelineLite,o.find(".slotslide").each(function(){var t=n(this).find("div");y.add(punchgs.TweenLite.to(t,v/1e3,{left:0-u.width/2+"px",top:0-u.sloth/2+"px",width:u.width*2+"px",height:u.sloth*2+"px",force3D:"auto",opacity:0,rotation:u.rotate}),0);a.add(y,0)}),s.find(".slotslide").each(function(t){var i=n(this).find("div");y.add(punchgs.TweenLite.fromTo(i,v/1e3,{left:0,top:0,opacity:0,force3D:"auto"},{left:"0px",top:0-t*u.sloth+"px",width:s.find(".defaultimg").data("neww")+"px",height:s.find(".defaultimg").data("newh")+"px",opacity:1,rotation:0}),0);a.add(y,0)})),(l==9||l==10)&&(ti=0,s.find(".slotslide").each(function(t){var i=n(this);ti++;a.add(punchgs.TweenLite.fromTo(i,v/1e3,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:t/200}),0)})),(l==11||l==26)&&(ti=0,l==26&&(v=0),s.find(".slotslide").each(function(){var t=n(this);a.add(punchgs.TweenLite.from(t,v/1e3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0)})),l==12||l==13||l==14||l==15){v=1e3;setTimeout(function(){punchgs.TweenLite.set(o.find(".defaultimg"),{autoAlpha:0})},100);var g=u.width,w=u.height,ii=s.find(".slotslide");(u.fullWidth=="on"||u.fullScreen=="on")&&(g=ii.width(),w=ii.height());yt=0;pt=0;l==12?yt=g:l==15?yt=0-g:l==13?pt=w:l==14&&(pt=0-w);var tt=1,at=1,ui=1,wt=punchgs.Power2.easeInOut,yi=punchgs.Power2.easeInOut,fi=v/1e3,gt=fi;d==1&&(tt=0);d==2&&(tt=0);d==3&&(wt=punchgs.Power2.easeInOut,yi=punchgs.Power1.easeInOut,fi=v/1200);(d==4||d==5)&&(at=.6);d==6&&(at=1.4);(d==5||d==6)&&(ui=1.4,tt=0,g=0,w=0,yt=0,pt=0);d==6&&(ui=.6);bi=0;a.add(punchgs.TweenLite.from(ii,fi,{left:yt,top:pt,scale:ui,opacity:tt,rotation:u.rotate,ease:yi,force3D:"auto"}),0);bt=o.find(".slotslide");(d==4||d==5)&&(g=0,w=0);d!=1&&(l==12?a.add(punchgs.TweenLite.to(bt,gt,{left:0-g+"px",force3D:"auto",scale:at,opacity:tt,rotation:u.rotate,ease:wt}),0):l==15?a.add(punchgs.TweenLite.to(bt,gt,{left:g+"px",force3D:"auto",scale:at,opacity:tt,rotation:u.rotate,ease:wt}),0):l==13?a.add(punchgs.TweenLite.to(bt,gt,{top:0-w+"px",force3D:"auto",scale:at,opacity:tt,rotation:u.rotate,ease:wt}),0):l==14&&a.add(punchgs.TweenLite.to(bt,gt,{top:w+"px",orce3D:"auto",scale:at,opacity:tt,rotation:u.rotate,ease:wt}),0))}if(l==16){y=new punchgs.TimelineLite;a.add(punchgs.TweenLite.set(e,{position:"absolute","z-index":20}),0);a.add(punchgs.TweenLite.set(f,{position:"absolute","z-index":15}),0);e.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"><\/div>');e.find(".tp-half-one").clone(!0).appendTo(e).addClass("tp-half-two");e.find(".tp-half-two").removeClass("tp-half-one");g=u.width;w=u.height;u.autoHeight=="on"&&(w=i.height());e.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:'+g+"px;height:"+w+'px;"><\/div>');e.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:'+g+"px;height:"+w+'px;"><\/div>');e.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"});e.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"><\/div>');a.add(punchgs.TweenLite.set(e.find(".tp-half-two"),{width:g,height:w,overflow:"hidden",zIndex:15,position:"absolute",top:w/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0);a.add(punchgs.TweenLite.set(e.find(".tp-half-one"),{width:g,height:w/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var er=e.find(".defaultimg"),ki=Math.round(Math.random()*20-10),di=Math.round(Math.random()*20-10),gi=Math.round(Math.random()*20-10),nr=Math.random()*.4-.2,tr=Math.random()*.4-.2,ir=Math.random()*1+1,rr=Math.random()*1+1,ur=Math.random()*.3+.3;a.add(punchgs.TweenLite.set(e.find(".tp-half-one"),{overflow:"hidden"}),0);a.add(punchgs.TweenLite.fromTo(e.find(".tp-half-one"),v/800,{width:g,height:w/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:ir,rotation:ki,y:0-w-w/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0);a.add(punchgs.TweenLite.fromTo(e.find(".tp-half-two"),v/800,{width:g,height:w,overflow:"hidden",position:"absolute",top:w/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:rr,rotation:di,y:w+w/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(e,{position:"absolute","z-index":15});punchgs.TweenLite.set(f,{position:"absolute","z-index":20});e.find(".tp-half-one").length>0&&(e.find(".tp-half-one .defaultimg").unwrap(),e.find(".tp-half-one .slotholder").unwrap());e.find(".tp-half-two").remove()}}),0);y.add(punchgs.TweenLite.set(s.find(".defaultimg"),{autoAlpha:1}),0);e.html()!=null&&a.add(punchgs.TweenLite.fromTo(f,(v-200)/1e3,{scale:ur,x:u.width/4*nr,y:w/4*tr,rotation:gi,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0);a.add(y,0)}if(l==17&&s.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/800,{opacity:0,rotationY:0,scale:.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:t*.06}),0)}),l==18&&s.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/500,{autoAlpha:0,rotationY:310,scale:.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:t*.06}),0)}),l==19||l==22){y=new punchgs.TimelineLite;a.add(punchgs.TweenLite.set(e,{zIndex:20}),0);a.add(punchgs.TweenLite.set(f,{zIndex:20}),0);setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var pi=f.css("z-index"),wi=e.css("z-index"),p=90,tt=1;ut==1&&(p=-90);l==19?(b="center center -"+u.height/2,tt=0):b="center center "+u.height/2;punchgs.TweenLite.set(i,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600});s.find(".slotslide").each(function(t){var i=n(this);y.add(punchgs.TweenLite.fromTo(i,v/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:u.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationX:p},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:t/20,ease:punchgs.Power2.easeInOut}),0);y.add(punchgs.TweenLite.to(i,.1,{autoAlpha:1,delay:t/20}),0);a.add(y)});o.find(".slotslide").each(function(t){var r=n(this),i=-90;ut==1&&(i=90);y.add(punchgs.TweenLite.fromTo(r,v/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationX:0},{autoAlpha:1,rotationY:u.rotate,top:0,z:10,scale:1,rotationX:i,delay:t/20,force3D:"auto",ease:punchgs.Power2.easeInOut}),0);a.add(y)})}if(l==20){if(setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100),pi=f.css("z-index"),wi=e.css("z-index"),ut==1)var kt=-u.width,p=70,b="left center -"+u.height/2;else var kt=u.width,p=-70,b="right center -"+u.height/2;s.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/1500,{left:kt,rotationX:40,z:-600,opacity:tt,top:0,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:p},{left:0,delay:t/20,ease:punchgs.Power2.easeInOut}),0);a.add(punchgs.TweenLite.fromTo(i,v/1e3,{rotationX:40,z:-600,opacity:tt,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:p},{rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:t/20,ease:punchgs.Power2.easeInOut}),0);a.add(punchgs.TweenLite.to(i,.1,{opacity:1,force3D:"auto",delay:t/20+v/2e3}),0)});o.find(".slotslide").each(function(t){var i=n(this);if(ut!=1)var r=-u.width,f=70,e="left center -"+u.height/2;else var r=u.width,f=-70,e="right center -"+u.height/2;a.add(punchgs.TweenLite.fromTo(i,v/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:e,rotationY:0},{opacity:1,rotationX:40,top:0,z:-600,left:r,force3D:"auto",scale:.8,rotationY:f,delay:t/20,ease:punchgs.Power2.easeInOut}),0);a.add(punchgs.TweenLite.to(i,.1,{force3D:"auto",opacity:0,delay:t/20+(v/1e3-v/1e4)}),0)})}if((l==21||l==25)&&(setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100),pi=f.css("z-index"),wi=e.css("z-index"),ut==1?(kt=-u.width,p=90,l==25?(b="center top 0",rot2=-p,p=u.rotate):(b="left center 0",rot2=u.rotate)):(kt=u.width,p=-90,l==25?(b="center bottom 0",rot2=-p,p=u.rotate):(b="right center 0",rot2=u.rotate)),s.find(".slotslide").each(function(){var t=n(this);a.add(punchgs.TweenLite.fromTo(t,v/1e3,{left:0,transformStyle:"flat",rotationX:rot2,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:p},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)}),ut!=1?(kt=-u.width,p=90,l==25?(b="center top 0",rot2=-p,p=u.rotate):(b="left center 0",rot2=u.rotate)):(kt=u.width,p=-90,l==25?(b="center bottom 0",rot2=-p,p=u.rotate):(b="right center 0",rot2=u.rotate)),o.find(".slotslide").each(function(){var t=n(this);a.add(punchgs.TweenLite.fromTo(t,v/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:0},{left:0,rotationX:rot2,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:p,ease:punchgs.Power1.easeInOut}),0)})),l==23||l==24){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var pi=f.css("z-index"),wi=e.css("z-index"),p=-90;ut==1&&(p=90);tt=1;l==23?(b="center center -"+u.width/2,tt=0):b="center center "+u.width/2;ei=0;punchgs.TweenLite.set(i,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500});s.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/1e3,{left:ei,rotationX:u.rotate,force3D:"auto",opacity:tt,top:0,scale:1,transformPerspective:600,transformOrigin:b,rotationY:p},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:t/10,ease:punchgs.Power2.easeInOut}),0)});p=90;ut==1&&(p=-90);o.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/1e3,{left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:0},{left:ei,autoAlpha:1,rotationX:u.rotate,top:0,scale:1,rotationY:p,delay:t/10,ease:punchgs.Power2.easeInOut}),0)})}a.pause();ot(f,u,null,a);punchgs.TweenLite.to(f,.001,{autoAlpha:1});ni={};ni.slideIndex=u.next+1;ni.slide=f;i.trigger("revolution.slide.onchange",ni);setTimeout(function(){i.trigger("revolution.slide.onafterswap")},v);i.trigger("revolution.slide.onvideostop")},ri=function(n,t,i,r,u,f,e){punchgs.TweenLite.to(i.find(".defaultimg"),.001,{autoAlpha:1,onComplete:function(){p(n,t,u)}});u.index()!=f.index()&&punchgs.TweenLite.to(f,.2,{autoAlpha:0,onComplete:function(){p(n,t,f)}});t.act=t.next;t.navigationType=="thumb"&&at(n);i.data("kenburns")=="on"&&nt(n,t);n.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible");u.addClass("current-sr-slide-visible");(t.parallax=="scroll"||t.parallax=="scroll+mouse"||t.parallax=="mouse+scroll")&&h(n,t);e.clear()},ft=function(t){var e=t.target.getVideoEmbedCode(),f=n("#"+e.split('id="')[1].split('"')[0]),i=f.closest(".tp-simpleresponsive"),o=f.parent().data("player"),u,r;t.data==YT.PlayerState.PLAYING?(u=i.find(".tp-bannertimer"),r=u.data("opt"),f.closest(".tp-caption").data("volume")=="mute"&&o.mute(),r.videoplaying=!0,i.trigger("stoptimer"),i.trigger("revolution.slide.onvideoplay")):(u=i.find(".tp-bannertimer"),r=u.data("opt"),t.data!=-1&&(r.videoplaying=!1,i.trigger("playtimer"),i.trigger("revolution.slide.onvideostop")));t.data==0&&r.nextslideatend==!0&&r.container.revnext()},yi=function(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent(t,i,!1)},ui=function(t,i){var u=$f(t),f=n("#"+t),r=f.closest(".tp-simpleresponsive");u.addEvent("ready",function(){i&&u.api("play");u.addEvent("play",function(){var n=r.find(".tp-bannertimer"),t=n.data("opt");t.videoplaying=!0;r.trigger("stoptimer");f.closest(".tp-caption").data("volume")=="mute"&&u.api("setVolume","0")});u.addEvent("finish",function(){var t=r.find(".tp-bannertimer"),n=t.data("opt");n.videoplaying=!1;r.trigger("playtimer");r.trigger("revolution.slide.onvideoplay");n.nextslideatend==!0&&n.container.revnext()});u.addEvent("pause",function(){var n=r.find(".tp-bannertimer"),t=n.data("opt");t.videoplaying=!1;r.trigger("playtimer");r.trigger("revolution.slide.onvideostop")})})},et=function(n,i){var u=i.width(),f=i.height(),r=n.data("mediaAspect"),e,o;r==t&&(r=1);e=u/f;n.css({position:"absolute"});o=n.find("video");e<r?(n.width(f*r).height(f),punchgs.TweenLite.to(n,.01,{force3D:"auto",top:0,left:0-(f*r-u)/2,height:f})):(n.width(u).height(u/r),punchgs.TweenLite.to(n,.01,{force3D:"auto",top:0-(u/r-f)/2,left:0,height:u/r}))},a=function(){var n={};return n.x=0,n.y=0,n.rotationX=0,n.rotationY=0,n.rotationZ=0,n.scale=1,n.scaleX=1,n.scaleY=1,n.skewX=0,n.skewY=0,n.opacity=0,n.transformOrigin="center, center",n.transformPerspective=400,n.rotation=0,n},k=function(t,i){var r=i.split(";");return n.each(r,function(n,i){i=i.split(":");var r=i[0],u=i[1];r=="rotationX"&&(t.rotationX=parseInt(u,0));r=="rotationY"&&(t.rotationY=parseInt(u,0));r=="rotationZ"&&(t.rotationZ=parseInt(u,0));r=="rotationZ"&&(t.rotation=parseInt(u,0));r=="scaleX"&&(t.scaleX=parseFloat(u));r=="scaleY"&&(t.scaleY=parseFloat(u));r=="opacity"&&(t.opacity=parseFloat(u));r=="skewX"&&(t.skewX=parseInt(u,0));r=="skewY"&&(t.skewY=parseInt(u,0));r=="x"&&(t.x=parseInt(u,0));r=="y"&&(t.y=parseInt(u,0));r=="z"&&(t.z=parseInt(u,0));r=="transformOrigin"&&(t.transformOrigin=u.toString());r=="transformPerspective"&&(t.transformPerspective=parseInt(u,0))}),t},fi=function(t){var r=t.split("animation:"),i={},u;return i.animation=k(a(),r[1]),u=r[0].split(";"),n.each(u,function(n,t){t=t.split(":");var r=t[0],u=t[1];r=="typ"&&(i.typ=u);r=="speed"&&(i.speed=parseInt(u,0)/1e3);r=="start"&&(i.start=parseInt(u,0)/1e3);r=="elementdelay"&&(i.elementdelay=parseFloat(u));r=="ease"&&(i.ease=u)}),i},ot=function(i,r,f,e){var c;i.data("ctl")==t&&i.data("ctl",new punchgs.TimelineLite);var l=i.data("ctl"),s=0,o=0,h=i.find(".tp-caption"),v=r.container.find(".tp-static-layers").find(".tp-caption");l.pause();n.each(v,function(n,t){h.push(t)});h.each(function(i){var rt=f,nt=-1,e=n(this),y,ki,yt,b,ct,di,lt,at,ut,it,dt,l,gt,ni,ti,tt,vt,ci,pt,wt,vi,yi,p,w,c,v,bt,li,i,ai,kt,nr,ot,wi,bi;if(e.hasClass("tp-static-layer")&&((e.data("startslide")==-1||e.data("startslide")=="-1")&&e.data("startslide",0),(e.data("endslide")==-1||e.data("endslide")=="-1")&&e.data("endslide",r.slideamount),e.hasClass("tp-is-shown")?nt=e.data("endslide")==r.next||e.data("startslide")>r.next||e.data("endslide")<r.next?2:0:e.data("startslide")<=r.next&&e.data("endslide")>=r.next||e.data("startslide")==r.next||e.data("endslide")==r.next?(e.addClass("tp-is-shown"),nt=1):nt=0),s=r.width/2-r.startwidth*r.bw/2,y=r.bw,ki=r.bh,r.fullScreen=="on"&&(o=r.height/2-r.startheight*r.bh/2),r.autoHeight=="on"&&(o=r.container.height()/2-r.startheight*r.bh/2),o<0&&(o=0),yt=0,r.width<r.hideCaptionAtLimit&&e.data("captionhidden")=="on"?(e.addClass("tp-hidden-caption"),yt=1):r.width<r.hideAllCaptionAtLimit||r.width<r.hideAllCaptionAtLilmit?(e.addClass("tp-hidden-caption"),yt=1):e.removeClass("tp-hidden-caption"),yt==0){if(e.data("linktoslide")==t||e.hasClass("hasclicklistener")||(e.addClass("hasclicklistener"),e.css({cursor:"pointer"}),e.data("linktoslide")!="no"&&e.click(function(){var i=n(this),t=i.data("linktoslide");t!="next"&&t!="prev"?(r.container.data("showus",t),r.container.parent().find(".tp-rightarrow").click()):t=="next"?r.container.parent().find(".tp-rightarrow").click():t=="prev"&&r.container.parent().find(".tp-leftarrow").click()})),s<0&&(s=0),b="iframe"+Math.round(Math.random()*1e3+1),(e.find("iframe").length>0||e.find("video").length>0)&&(ct=!1,(e.data("autoplayonlyfirsttime")==!0||e.data("autoplayonlyfirsttime")=="true"||e.data("autoplay")==!0)&&(e.data("autoplay",!0),ct=!0),e.find("iframe").each(function(){var i=n(this),a,v,o,c;if(u()&&(a=i.attr("src"),i.attr("src",""),i.attr("src",a)),r.nextslideatend=e.data("nextslideatend"),e.data("thumbimage")!=t&&e.data("thumbimage").length>2&&e.data("autoplay")!=!0&&!rt&&(e.find(".tp-thumb-image").remove(),e.append('<div class="tp-thumb-image" style="cursor:pointer; position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url('+e.data("thumbimage")+'); background-size:cover"><\/div>')),i.attr("src").toLowerCase().indexOf("youtube")>=0){if(i.hasClass("HasListener"))(e.data("autoplay")==!0||ct)&&(o=e.data("player"),e.data("timerplay",setTimeout(function(){e.data("forcerewind")=="on"&&o.seekTo(0);o.playVideo()},e.data("start"))));else try{i.attr("id",b);v=setInterval(function(){YT!=t&&typeof YT.Player!=t&&typeof YT.Player!="undefined"&&(o=e.data("autoplay")==!0||ct?new YT.Player(b,{events:{onStateChange:ft,onReady:function(n){n.target.playVideo()}}}):new YT.Player(b,{events:{onStateChange:ft}}),i.addClass("HasListener"),e.data("player",o),clearInterval(v))},100)}catch(w){}e.find(".tp-thumb-image").click(function(){if(punchgs.TweenLite.to(n(this),.3,{opacity:0,force3D:"auto",ease:punchgs.Power3.easeInOut,onComplete:function(){e.find(".tp-thumb-image").remove()}}),!u()){var t=e.data("player");t.playVideo()}})}else if(i.attr("src").toLowerCase().indexOf("vimeo")>=0){if(i.hasClass("HasListener")){if(e.data("autoplay")==!0)var i=e.find("iframe"),l=i.attr("id"),c=setInterval(function(){if($f!=t&&typeof $f(l).api!=t&&typeof $f(l).api!="undefined"){var n=$f(l);e.data("timerplay",setTimeout(function(){e.data("forcerewind")=="on"&&n.api("seekTo",0);n.api("play")},e.data("start")));clearInterval(c)}},100)}else{i.addClass("HasListener");i.attr("id",b);for(var f=i.attr("src"),s={},y=f,p=/([^&=]+)=([^&]*)/g,h;h=p.exec(y);)s[decodeURIComponent(h[1])]=decodeURIComponent(h[2]);f=s.player_id!=t?f.replace(s.player_id,b):f+"&player_id="+b;try{f=f.replace("api=0","api=1")}catch(w){}f=f+"&api=1";i.attr("src",f);o=e.find("iframe")[0];c=setInterval(function(){$f!=t&&typeof $f(b).api!=t&&typeof $f(b).api!="undefined"&&($f(o).addEvent("ready",function(){ui(b,ct)}),clearInterval(c))},100)}e.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(n(this),.3,{opacity:0,force3D:"auto",ease:punchgs.Power3.easeInOut,onComplete:function(){e.find(".tp-thumb-image").remove()}});var r=e.find("iframe"),i=r.attr("id"),u=setInterval(function(){if($f!=t&&typeof $f(i).api!=t&&typeof $f(i).api!="undefined"){var n=$f(i);n.api("play");clearInterval(u)}},100)})}}),e.find("video").length>0&&e.find("video").each(function(){var f=n(this),u=this,i,o;f.parent().hasClass("html5vid")||f.wrap('<div class="html5vid" style="position:relative;top:0px;left:0px;width:auto;height:auto"><\/div>');i=n(this).parent();u.addEventListener?u.addEventListener("loadedmetadata",function(){i.data("metaloaded",1)}):u.attachEvent("loadedmetadata",function(){i.data("metaloaded",1)});f.hasClass("HasListener")||(f.addClass("HasListener"),u.addEventListener("play",function(){i.addClass("videoisplaying");i.find(".tp-poster").remove();e.data("volume")=="mute"&&(u.muted=!0);r.container.trigger("revolution.slide.onvideoplay");r.videoplaying=!0;r.container.trigger("stoptimer")}),u.addEventListener("pause",function(){i.removeClass("videoisplaying");r.videoplaying=!1;r.container.trigger("playtimer");r.container.trigger("revolution.slide.onvideostop")}),u.addEventListener("ended",function(){i.removeClass("videoisplaying");r.videoplaying=!1;r.container.trigger("playtimer");r.container.trigger("revolution.slide.onvideostop");r.nextslideatend==!0&&r.container.revnext()}));f.attr("poster")!=t&&i.find(".tp-poster").length==0&&i.append('<div class="tp-poster" style="position:absolute;z-index:1;width:100%;height:100%;top:0px;left:0px;background:url('+f.attr("poster")+'); background-position:center center;background-size:100%;background-repeat:no-repeat;"><\/div>');f.attr("control")==t&&i.find(".tp-video-play-button").length==0&&(i.append('<div class="tp-video-play-button"><i class="revicon-right-dir"><\/i><div class="tp-revstop"><\/div><\/div>'),i.find(".tp-video-play-button").click(function(){i.hasClass("videoisplaying")?u.pause():u.play()}));f.attr("control")==t&&i.find("video, .tp-poster").click(function(){i.hasClass("videoisplaying")?u.pause():u.play()});e.data("forcecover")==1&&(et(i,r.container),i.addClass("fullcoveredvideo"),e.addClass("fullcoveredvideo"));(e.data("forcecover")==1||e.hasClass("fullscreenvideo"))&&i.css({width:"100%",height:"100%"});o=!1;(e.data("autoplayonlyfirsttime")==!0||e.data("autoplayonlyfirsttime")=="true")&&(o=!0);clearInterval(i.data("interval"));i.data("interval",setInterval(function(){var s,h;if(i.data("metaloaded")==1||u.duration!=NaN){if(clearInterval(i.data("interval")),e.data("dottedoverlay")!="none"&&e.data("dottedoverlay")!=t&&e.find(".tp-dottedoverlay").length!=1&&i.append('<div class="tp-dottedoverlay '+e.data("dottedoverlay")+'"><\/div>'),s=16/9,e.data("aspectratio")=="4:3"&&(s=4/3),i.data("mediaAspect",s),i.closest(".tp-caption").data("forcecover")==1&&(et(i,r.container),i.addClass("fullcoveredvideo")),f.css({display:"block"}),r.nextslideatend=e.data("nextslideatend"),(e.data("autoplay")==!0||o==!0)&&(h=n("body").find("#"+r.container.attr("id")).find(".tp-bannertimer"),setTimeout(function(){r.videoplaying=!0;r.container.trigger("stoptimer")},200),e.data("forcerewind")!="on"||i.hasClass("videoisplaying")||u.currentTime>0&&(u.currentTime=0),e.data("volume")=="mute"&&(u.muted=!0),i.data("timerplay",setTimeout(function(){e.data("forcerewind")!="on"||i.hasClass("videoisplaying")||u.currentTime>0&&(u.currentTime=0);e.data("volume")=="mute"&&(u.muted=!0);setTimeout(function(){u.play()},500)},10+e.data("start")))),i.data("ww")==t&&i.data("ww",f.attr("width")),i.data("hh")==t&&i.data("hh",f.attr("height")),!e.hasClass("fullscreenvideo")&&e.data("forcecover")==1)try{i.width(i.data("ww")*r.bw);i.height(i.data("hh")*r.bh)}catch(c){}clearInterval(i.data("interval"))}}),100)}),e.data("autoplay")==!0&&(di=n("body").find("#"+r.container.attr("id")).find(".tp-bannertimer"),setTimeout(function(){r.videoplaying=!0;r.container.trigger("stoptimer")},200),r.videoplaying=!0,r.container.trigger("stoptimer"),(e.data("autoplayonlyfirsttime")==!0||e.data("autoplayonlyfirsttime")=="true")&&(e.data("autoplay",!1),e.data("autoplayonlyfirsttime",!1)))),lt=0,at=0,e.find("img").length>0)l=e.find("img"),l.width()==0&&l.css({width:"auto"}),l.height()==0&&l.css({height:"auto"}),l.data("ww")==t&&l.width()>0&&l.data("ww",l.width()),l.data("hh")==t&&l.height()>0&&l.data("hh",l.height()),ut=l.data("ww"),it=l.data("hh"),ut==t&&(ut=0),it==t&&(it=0),l.width(ut*r.bw),l.height(it*r.bh),lt=l.width(),at=l.height();else if(e.find("iframe").length>0||e.find("video").length>0){dt=!1;l=e.find("iframe");l.length==0&&(l=e.find("video"),dt=!0);l.css({display:"block"});e.data("ww")==t&&e.data("ww",l.width());e.data("hh")==t&&e.data("hh",l.height());var ut=e.data("ww"),it=e.data("hh"),h=e;h.data("fsize")==t&&h.data("fsize",parseInt(h.css("font-size"),0)||0);h.data("pt")==t&&h.data("pt",parseInt(h.css("paddingTop"),0)||0);h.data("pb")==t&&h.data("pb",parseInt(h.css("paddingBottom"),0)||0);h.data("pl")==t&&h.data("pl",parseInt(h.css("paddingLeft"),0)||0);h.data("pr")==t&&h.data("pr",parseInt(h.css("paddingRight"),0)||0);h.data("mt")==t&&h.data("mt",parseInt(h.css("marginTop"),0)||0);h.data("mb")==t&&h.data("mb",parseInt(h.css("marginBottom"),0)||0);h.data("ml")==t&&h.data("ml",parseInt(h.css("marginLeft"),0)||0);h.data("mr")==t&&h.data("mr",parseInt(h.css("marginRight"),0)||0);h.data("bt")==t&&h.data("bt",parseInt(h.css("borderTop"),0)||0);h.data("bb")==t&&h.data("bb",parseInt(h.css("borderBottom"),0)||0);h.data("bl")==t&&h.data("bl",parseInt(h.css("borderLeft"),0)||0);h.data("br")==t&&h.data("br",parseInt(h.css("borderRight"),0)||0);h.data("lh")==t&&h.data("lh",parseInt(h.css("lineHeight"),0)||0);gt=r.width;ni=r.height;gt>r.startwidth&&(gt=r.startwidth);ni>r.startheight&&(ni=r.startheight);e.hasClass("fullscreenvideo")?(s=0,o=0,e.data("x",0),e.data("y",0),ti=r.height,r.autoHeight=="on"&&(ti=r.container.height()),e.css({width:r.width,height:ti})):e.css({"font-size":h.data("fsize")*r.bw+"px","padding-top":h.data("pt")*r.bh+"px","padding-bottom":h.data("pb")*r.bh+"px","padding-left":h.data("pl")*r.bw+"px","padding-right":h.data("pr")*r.bw+"px","margin-top":h.data("mt")*r.bh+"px","margin-bottom":h.data("mb")*r.bh+"px","margin-left":h.data("ml")*r.bw+"px","margin-right":h.data("mr")*r.bw+"px","border-top":h.data("bt")*r.bh+"px","border-bottom":h.data("bb")*r.bh+"px","border-left":h.data("bl")*r.bw+"px","border-right":h.data("br")*r.bw+"px","line-height":h.data("lh")*r.bh+"px",height:it*r.bh+"px"});dt==!1?(l.width(ut*r.bw),l.height(it*r.bh)):e.data("forcecover")==1||e.hasClass("fullscreenvideo")||(l.width(ut*r.bw),l.height(it*r.bh));lt=l.width();at=l.height()}else e.find(".tp-resizeme, .tp-resizeme *").each(function(){d(n(this),r)}),e.hasClass("tp-resizeme")&&e.find("*").each(function(){d(n(this),r)}),d(e,r),at=e.outerHeight(!0),lt=e.outerWidth(!0),tt=e.outerHeight(),vt=e.css("backgroundColor"),e.find(".frontcorner").css({borderWidth:tt+"px",left:0-tt+"px",borderRight:"0px solid transparent",borderTopColor:vt}),e.find(".frontcornertop").css({borderWidth:tt+"px",left:0-tt+"px",borderRight:"0px solid transparent",borderBottomColor:vt}),e.find(".backcorner").css({borderWidth:tt+"px",right:0-tt+"px",borderLeft:"0px solid transparent",borderBottomColor:vt}),e.find(".backcornertop").css({borderWidth:tt+"px",right:0-tt+"px",borderLeft:"0px solid transparent",borderTopColor:vt});r.fullScreenAlignForce=="on"&&(s=0,o=0);e.data("voffset")==t&&e.data("voffset",0);e.data("hoffset")==t&&e.data("hoffset",0);var ii=e.data("voffset")*y,ri=e.data("hoffset")*y,oi=r.startwidth*y,hi=r.startheight*y;if(r.fullScreenAlignForce=="on"&&(oi=r.container.width(),hi=r.container.height()),(e.data("x")=="center"||e.data("xcenter")=="center")&&(e.data("xcenter","center"),e.data("x",oi/2-e.outerWidth(!0)/2+ri)),(e.data("x")=="left"||e.data("xleft")=="left")&&(e.data("xleft","left"),e.data("x",0/y+ri)),(e.data("x")=="right"||e.data("xright")=="right")&&(e.data("xright","right"),e.data("x",(oi-e.outerWidth(!0)+ri)/y)),(e.data("y")=="center"||e.data("ycenter")=="center")&&(e.data("ycenter","center"),e.data("y",hi/2-e.outerHeight(!0)/2+ii)),(e.data("y")=="top"||e.data("ytop")=="top")&&(e.data("ytop","top"),e.data("y",0/r.bh+ii)),(e.data("y")=="bottom"||e.data("ybottom")=="bottom")&&(e.data("ybottom","bottom"),e.data("y",(hi-e.outerHeight(!0)+ii)/y)),e.data("start")==t&&e.data("start",1e3),ci=e.data("easing"),ci==t&&(ci="punchgs.Power1.easeOut"),pt=e.data("start")/1e3,wt=e.data("speed")/1e3,vi=e.data("x")=="center"||e.data("xcenter")=="center"?e.data("x")+s:y*e.data("x")+s,yi=e.data("y")=="center"||e.data("ycenter")=="center"?e.data("y")+o:r.bh*e.data("y")+o,punchgs.TweenLite.set(e,{top:yi,left:vi,overwrite:"auto"}),nt==0&&(rt=!0),e.data("timeline")==t||rt||(e.data("timeline").gotoAndPlay(0),rt=!0),!rt){e.data("timeline")!=t;function pi(){}function gi(){}if(p=new punchgs.TimelineLite({smoothChildTiming:!0,onStart:gi}),p.pause(),r.fullScreenAlignForce=="on",w=e,e.data("mySplitText")!=t&&e.data("mySplitText").revert(),(e.data("splitin")=="chars"||e.data("splitin")=="words"||e.data("splitin")=="lines"||e.data("splitout")=="chars"||e.data("splitout")=="words"||e.data("splitout")=="lines")&&(e.find("a").length>0?e.data("mySplitText",new punchgs.SplitText(e.find("a"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):e.find(".tp-layer-inner-rotation").length>0?e.data("mySplitText",new punchgs.SplitText(e.find(".tp-layer-inner-rotation"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):e.data("mySplitText",new punchgs.SplitText(e,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})),e.addClass("splitted")),e.data("splitin")=="chars"&&(w=e.data("mySplitText").chars),e.data("splitin")=="words"&&(w=e.data("mySplitText").words),e.data("splitin")=="lines"&&(w=e.data("mySplitText").lines),c=a(),v=a(),e.data("repeat")!=t&&(repeatV=e.data("repeat")),e.data("yoyo")!=t&&(yoyoV=e.data("yoyo")),e.data("repeatdelay")!=t&&(repeatdelayV=e.data("repeatdelay")),e.hasClass("customin")?c=k(c,e.data("customin")):e.hasClass("randomrotate")?(c.scale=Math.random()*3+1,c.rotation=Math.round(Math.random()*200-100),c.x=Math.round(Math.random()*200-100),c.y=Math.round(Math.random()*200-100)):e.hasClass("lfr")||e.hasClass("skewfromright")?c.x=15+r.width:e.hasClass("lfl")||e.hasClass("skewfromleft")?c.x=-15-lt:e.hasClass("sfl")||e.hasClass("skewfromleftshort")?c.x=-50:e.hasClass("sfr")||e.hasClass("skewfromrightshort")?c.x=50:e.hasClass("lft")?c.y=-25-at:e.hasClass("lfb")?c.y=25+r.height:e.hasClass("sft")?c.y=-50:e.hasClass("sfb")&&(c.y=50),e.hasClass("skewfromright")||e.hasClass("skewfromrightshort")?c.skewX=-85:(e.hasClass("skewfromleft")||e.hasClass("skewfromleftshort"))&&(c.skewX=85),(e.hasClass("fade")||e.hasClass("sft")||e.hasClass("sfl")||e.hasClass("sfb")||e.hasClass("skewfromleftshort")||e.hasClass("sfr")||e.hasClass("skewfromrightshort"))&&(c.opacity=0),ei().toLowerCase()=="safari",bt=e.data("elementdelay")==t?0:e.data("elementdelay"),v.ease=c.ease=e.data("easing")==t?punchgs.Power1.easeInOut:e.data("easing"),c.data={},c.data.oldx=c.x,c.data.oldy=c.y,v.data={},v.data.oldx=v.x,v.data.oldy=v.y,c.x=c.x*y,c.y=c.y*y,li=new punchgs.TimelineLite,nt!=2)if(e.hasClass("customin"))w!=e&&p.add(punchgs.TweenLite.set(e,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",opacity:1,delay:0,overwrite:"all"})),c.visibility="hidden",v.visibility="visible",v.overwrite="all",v.opacity=1,v.onComplete=pi(),v.delay=pt,v.force3D="auto",p.add(li.staggerFromTo(w,wt,c,v,bt),"frame0");else if(c.visibility="visible",c.transformPerspective=600,w!=e&&p.add(punchgs.TweenLite.set(e,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",opacity:1,delay:0,overwrite:"all"})),v.visibility="visible",v.delay=pt,v.onComplete=pi(),v.opacity=1,v.force3D="auto",e.hasClass("randomrotate")&&w!=e)for(i=0;i<w.length;i++)ai={},kt={},n.extend(ai,c),n.extend(kt,v),c.scale=Math.random()*3+1,c.rotation=Math.round(Math.random()*200-100),c.x=Math.round(Math.random()*200-100),c.y=Math.round(Math.random()*200-100),i!=0&&(kt.delay=pt+i*bt),p.append(punchgs.TweenLite.fromTo(w[i],wt,ai,kt),"frame0");else p.add(li.staggerFromTo(w,wt,c,v,bt),"frame0");e.data("timeline",p);nr=[];e.data("frames")!=t&&(ot=e.data("frames"),ot=ot.replace(/\s+/g,""),ot=ot.replace("{",""),wi=ot.split("}"),n.each(wi,function(n,t){if(t.length>0){var i=fi(t);si(e,r,i,"frame"+(n+10),y)}}));p=e.data("timeline");e.data("end")!=t&&(nt==-1||nt==2)?g(e,r,e.data("end")/1e3,c,"frame99",y):nt==-1||nt==2?g(e,r,999999,c,"frame99",y):g(e,r,200,c,"frame99",y);p=e.data("timeline");e.data("timeline",p);st(e,y);p.resume()}}rt&&(ht(e),st(e,y),e.data("timeline")!=t&&(bi=e.data("timeline").getTweensOf(),n.each(bi,function(n,i){if(i.vars.data!=t){var r=i.vars.data.oldx*y,u=i.vars.data.oldy*y;if(i.progress()!=1&&i.progress()!=0)try{i.vars.x=r;i.vary.y=u}catch(f){}else i.progress()==1&&punchgs.TweenLite.set(i.target,{x:r,y:u})}})))});c=n("body").find("#"+r.container.attr("id")).find(".tp-bannertimer");c.data("opt",r);e!=t&&setTimeout(function(){e.resume()},30)},ei=function(){var r=navigator.appName,t=navigator.userAgent,i,n=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return n&&(i=t.match(/version\/([\.\d]+)/i))!=null&&(n[2]=i[1]),n=n?[n[1],n[2]]:[r,navigator.appVersion,"-?"],n[0]},pi=function(){var r=navigator.appName,t=navigator.userAgent,i,n=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return n&&(i=t.match(/version\/([\.\d]+)/i))!=null&&(n[2]=i[1]),n=n?[n[1],n[2]]:[r,navigator.appVersion,"-?"],n[1]},d=function(n,i){n.data("fsize")==t&&n.data("fsize",parseInt(n.css("font-size"),0)||0);n.data("pt")==t&&n.data("pt",parseInt(n.css("paddingTop"),0)||0);n.data("pb")==t&&n.data("pb",parseInt(n.css("paddingBottom"),0)||0);n.data("pl")==t&&n.data("pl",parseInt(n.css("paddingLeft"),0)||0);n.data("pr")==t&&n.data("pr",parseInt(n.css("paddingRight"),0)||0);n.data("mt")==t&&n.data("mt",parseInt(n.css("marginTop"),0)||0);n.data("mb")==t&&n.data("mb",parseInt(n.css("marginBottom"),0)||0);n.data("ml")==t&&n.data("ml",parseInt(n.css("marginLeft"),0)||0);n.data("mr")==t&&n.data("mr",parseInt(n.css("marginRight"),0)||0);n.data("bt")==t&&n.data("bt",parseInt(n.css("borderTopWidth"),0)||0);n.data("bb")==t&&n.data("bb",parseInt(n.css("borderBottomWidth"),0)||0);n.data("bl")==t&&n.data("bl",parseInt(n.css("borderLeftWidth"),0)||0);n.data("br")==t&&n.data("br",parseInt(n.css("borderRightWidth"),0)||0);n.data("ls")==t&&n.data("ls",parseInt(n.css("letterSpacing"),0)||0);n.data("lh")==t&&n.data("lh",parseInt(n.css("lineHeight"),0)||"auto");n.data("minwidth")==t&&n.data("minwidth",parseInt(n.css("minWidth"),0)||0);n.data("minheight")==t&&n.data("minheight",parseInt(n.css("minHeight"),0)||0);n.data("maxwidth")==t&&n.data("maxwidth",parseInt(n.css("maxWidth"),0)||"none");n.data("maxheight")==t&&n.data("maxheight",parseInt(n.css("maxHeight"),0)||"none");n.data("wii")==t&&n.data("wii",parseInt(n.css("width"),0)||0);n.data("hii")==t&&n.data("hii",parseInt(n.css("height"),0)||0);n.data("wan")==t&&n.data("wan",n.css("-webkit-transition"));n.data("moan")==t&&n.data("moan",n.css("-moz-animation-transition"));n.data("man")==t&&n.data("man",n.css("-ms-animation-transition"));n.data("ani")==t&&n.data("ani",n.css("transition"));n.hasClass("tp-splitted")||(n.css("-webkit-transition","none"),n.css("-moz-transition","none"),n.css("-ms-transition","none"),n.css("transition","none"),punchgs.TweenLite.set(n,{fontSize:Math.round(n.data("fsize")*i.bw)+"px",letterSpacing:Math.floor(n.data("ls")*i.bw)+"px",paddingTop:Math.round(n.data("pt")*i.bh)+"px",paddingBottom:Math.round(n.data("pb")*i.bh)+"px",paddingLeft:Math.round(n.data("pl")*i.bw)+"px",paddingRight:Math.round(n.data("pr")*i.bw)+"px",marginTop:n.data("mt")*i.bh+"px",marginBottom:n.data("mb")*i.bh+"px",marginLeft:n.data("ml")*i.bw+"px",marginRight:n.data("mr")*i.bw+"px",borderTopWidth:Math.round(n.data("bt")*i.bh)+"px",borderBottomWidth:Math.round(n.data("bb")*i.bh)+"px",borderLeftWidth:Math.round(n.data("bl")*i.bw)+"px",borderRightWidth:Math.round(n.data("br")*i.bw)+"px",lineHeight:Math.round(n.data("lh")*i.bh)+"px",minWidth:n.data("minwidth")*i.bw+"px",minHeight:n.data("minheight")*i.bh+"px",overwrite:"auto"}),setTimeout(function(){n.css("-webkit-transition",n.data("wan"));n.css("-moz-transition",n.data("moan"));n.css("-ms-transition",n.data("man"));n.css("transition",n.data("ani"))},30),n.data("maxheight")!="none"&&n.css({maxHeight:n.data("maxheight")*i.bh+"px"}),n.data("maxwidth")!="none"&&n.css({maxWidth:n.data("maxwidth")*i.bw+"px"}))},st=function(i,r){i.find(".rs-pendulum").each(function(){var i=n(this),u,f;i.data("timeline")==t&&(i.data("timeline",new punchgs.TimelineLite),u=i.data("startdeg")==t?-20:i.data("startdeg"),f=i.data("enddeg")==t?20:i.data("enddeg"),speed=i.data("speed")==t?2:i.data("speed"),origin=i.data("origin")==t?"50% 50%":i.data("origin"),easing=i.data("ease")==t?punchgs.Power2.easeInOut:i.data("ease"),u=u*r,f=f*r,i.data("timeline").append(new punchgs.TweenLite.fromTo(i,speed,{force3D:"auto",rotation:u,transformOrigin:origin},{rotation:f,ease:easing})),i.data("timeline").append(new punchgs.TweenLite.fromTo(i,speed,{force3D:"auto",rotation:f,transformOrigin:origin},{rotation:u,ease:easing,onComplete:function(){i.data("timeline").restart()}})))});i.find(".rs-slideloop").each(function(){var i=n(this),u,f;i.data("timeline")==t&&(i.data("timeline",new punchgs.TimelineLite),u=i.data("xs")==t?0:i.data("xs"),f=i.data("ys")==t?0:i.data("ys"),xe=i.data("xe")==t?0:i.data("xe"),ye=i.data("ye")==t?0:i.data("ye"),speed=i.data("speed")==t?2:i.data("speed"),easing=i.data("ease")==t?punchgs.Power2.easeInOut:i.data("ease"),u=u*r,f=f*r,xe=xe*r,ye=ye*r,i.data("timeline").append(new punchgs.TweenLite.fromTo(i,speed,{force3D:"auto",x:u,y:f},{x:xe,y:ye,ease:easing})),i.data("timeline").append(new punchgs.TweenLite.fromTo(i,speed,{force3D:"auto",x:xe,y:ye},{x:u,y:f,onComplete:function(){i.data("timeline").restart()}})))});i.find(".rs-pulse").each(function(){var i=n(this),r,u;i.data("timeline")==t&&(i.data("timeline",new punchgs.TimelineLite),r=i.data("zoomstart")==t?0:i.data("zoomstart"),u=i.data("zoomend")==t?0:i.data("zoomend"),speed=i.data("speed")==t?2:i.data("speed"),easing=i.data("ease")==t?punchgs.Power2.easeInOut:i.data("ease"),i.data("timeline").append(new punchgs.TweenLite.fromTo(i,speed,{force3D:"auto",scale:r},{scale:u,ease:easing})),i.data("timeline").append(new punchgs.TweenLite.fromTo(i,speed,{force3D:"auto",scale:u},{scale:r,onComplete:function(){i.data("timeline").restart()}})))});i.find(".rs-wave").each(function(){var i=n(this),u;if(i.data("timeline")==t){i.data("timeline",new punchgs.TimelineLite);var f=i.data("angle")==t?10:i.data("angle"),e=i.data("radius")==t?10:i.data("radius"),o=i.data("speed")==t?-20:i.data("speed"),s=i.data("origin")==t?-20:i.data("origin");f=f*r;e=e*r;u={a:0,ang:f,element:i,unit:e};i.data("timeline").append(new punchgs.TweenLite.fromTo(u,o,{a:360},{a:0,force3D:"auto",ease:punchgs.Linear.easeNone,onUpdate:function(){var n=u.a*(Math.PI/180);punchgs.TweenLite.to(u.element,.1,{force3D:"auto",x:Math.cos(n)*u.unit,y:u.unit*(1-Math.sin(n))})},onComplete:function(){i.data("timeline").restart()}}))}})},ht=function(i){i.find(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){var i=n(this);i.data("timeline")!=t&&(i.data("timeline").pause(),i.data("timeline",null))})},oi=function(i,r){var u=0,f=i.find(".tp-caption"),e=r.container.find(".tp-static-layers").find(".tp-caption");return n.each(e,function(n,t){f.push(t)}),f.each(function(){var e=-1,i=n(this),s,h,o;if(i.hasClass("tp-static-layer")&&((i.data("startslide")==-1||i.data("startslide")=="-1")&&i.data("startslide",0),(i.data("endslide")==-1||i.data("endslide")=="-1")&&i.data("endslide",r.slideamount),i.hasClass("tp-is-shown")?i.data("startslide")>r.next||i.data("endslide")<r.next?(e=2,i.removeClass("tp-is-shown")):e=0:e=2),e!=0){if(ht(i),i.find("iframe").length>0){try{var c=i.find("iframe"),l=c.attr("id"),a=$f(l);a.api("pause");clearTimeout(i.data("timerplay"))}catch(p){}try{s=i.data("player");s.stopVideo();clearTimeout(i.data("timerplay"))}catch(p){}}if(i.find("video").length>0)try{i.find("video").each(function(){var t=n(this).parent(),r=t.attr("id"),i;clearTimeout(t.data("timerplay"));i=this;i.pause()})}catch(p){}try{var f=i.data("timeline"),v=f.getLabelTime("frame99"),y=f.time();v>y&&(h=f.getTweensOf(i),n.each(h,function(n,t){n!=0&&t.pause()}),i.css("opacity")!=0?(o=i.data("endspeed")==t?i.data("speed"):i.data("endspeed"),o>u&&(u=o),f.play("frame99")):f.progress(1,!1))}catch(p){}}}),u},si=function(n,i,r,u,f){var o=n.data("timeline"),s=new punchgs.TimelineLite,e=n;r.typ=="chars"?e=n.data("mySplitText").chars:r.typ=="words"?e=n.data("mySplitText").words:r.typ=="lines"&&(e=n.data("mySplitText").lines);r.animation.ease=r.ease;r.animation.rotationZ!=t&&(r.animation.rotation=r.animation.rotationZ);r.animation.data={};r.animation.data.oldx=r.animation.x;r.animation.data.oldy=r.animation.y;r.animation.x=r.animation.x*f;r.animation.y=r.animation.y*f;o.add(s.staggerTo(e,r.speed,r.animation,r.elementdelay),r.start);o.addLabel(u,r.start);n.data("timeline",o)},g=function(n,i,r,u,f,e){var h=n.data("timeline"),v=new punchgs.TimelineLite,o=a(),c=n.data("endspeed")==t?n.data("speed"):n.data("endspeed"),s,l;o.ease=n.data("endeasing")==t?punchgs.Power1.easeInOut:n.data("endeasing");c=c/1e3;n.hasClass("ltr")||n.hasClass("ltl")||n.hasClass("str")||n.hasClass("stl")||n.hasClass("ltt")||n.hasClass("ltb")||n.hasClass("stt")||n.hasClass("stb")||n.hasClass("skewtoright")||n.hasClass("skewtorightshort")||n.hasClass("skewtoleft")||n.hasClass("skewtoleftshort")||n.hasClass("fadeout")||n.hasClass("randomrotateout")?(n.hasClass("skewtoright")||n.hasClass("skewtorightshort")?o.skewX=35:(n.hasClass("skewtoleft")||n.hasClass("skewtoleftshort"))&&(o.skewX=-35),n.hasClass("ltr")||n.hasClass("skewtoright")?o.x=i.width+60:n.hasClass("ltl")||n.hasClass("skewtoleft")?o.x=0-(i.width+60):n.hasClass("ltt")?o.y=0-(i.height+60):n.hasClass("ltb")?o.y=i.height+60:n.hasClass("str")||n.hasClass("skewtorightshort")?(o.x=50,o.opacity=0):n.hasClass("stl")||n.hasClass("skewtoleftshort")?(o.x=-50,o.opacity=0):n.hasClass("stt")?(o.y=-50,o.opacity=0):n.hasClass("stb")?(o.y=50,o.opacity=0):n.hasClass("randomrotateout")?(o.x=Math.random()*i.width,o.y=Math.random()*i.height,o.scale=Math.random()*2+.3,o.rotation=Math.random()*360-180,o.opacity=0):n.hasClass("fadeout")&&(o.opacity=0),n.hasClass("skewtorightshort")?o.x=270:n.hasClass("skewtoleftshort")&&(o.x=-270),o.data={},o.data.oldx=o.x,o.data.oldy=o.y,o.x=o.x*e,o.y=o.y*e,o.overwrite="auto",s=n,s=n,n.data("splitout")=="chars"?s=n.data("mySplitText").chars:n.data("splitout")=="words"?s=n.data("mySplitText").words:n.data("splitout")=="lines"&&(s=n.data("mySplitText").lines),l=n.data("endelementdelay")==t?0:n.data("endelementdelay"),h.add(v.staggerTo(s,c,o,l),r)):n.hasClass("customout")?(o=k(o,n.data("customout")),s=n,n.data("splitout")=="chars"?s=n.data("mySplitText").chars:n.data("splitout")=="words"?s=n.data("mySplitText").words:n.data("splitout")=="lines"&&(s=n.data("mySplitText").lines),l=n.data("endelementdelay")==t?0:n.data("endelementdelay"),o.onStart=function(){punchgs.TweenLite.set(n,{transformPerspective:o.transformPerspective,transformOrigin:o.transformOrigin,overwrite:"auto"})},o.data={},o.data.oldx=o.x,o.data.oldy=o.y,o.x=o.x*e,o.y=o.y*e,h.add(v.staggerTo(s,c,o,l),r)):(u.delay=0,h.add(punchgs.TweenLite.to(n,c,u),r));h.addLabel(f,r);n.data("timeline",h)},hi=function(t,i){t.children().each(function(){try{n(this).die("click")}catch(t){}try{n(this).die("mouseenter")}catch(t){}try{n(this).die("mouseleave")}catch(t){}try{n(this).unbind("hover")}catch(t){}});try{t.die("click","mouseenter","mouseleave")}catch(r){}clearInterval(i.cdint);t=null},ci=function(i,r){var f,e;if(r.cd=0,r.loop=0,r.looptogo=r.stopAfterLoops!=t&&r.stopAfterLoops>-1?r.stopAfterLoops:9999999,r.lastslidetoshow=r.stopAtSlide!=t&&r.stopAtSlide>-1?r.stopAtSlide:999,r.stopLoop="off",r.looptogo==0&&(r.stopLoop="on"),r.slideamount>1&&!(r.stopAfterLoops==0&&r.stopAtSlide==1)){f=i.find(".tp-bannertimer");i.on("stoptimer",function(){f.data("tween").pause();r.hideTimerBar=="on"&&f.css({visibility:"hidden"})});i.on("starttimer",function(){r.conthover!=1&&r.videoplaying!=!0&&r.width>r.hideSliderAtLimit&&r.bannertimeronpause!=!0&&r.overnav!=!0&&(r.stopLoop=="on"&&r.next==r.lastslidetoshow-1||(f.css({visibility:"visible"}),f.data("tween").play()));r.hideTimerBar=="on"&&f.css({visibility:"hidden"})});i.on("restarttimer",function(){r.stopLoop=="on"&&r.next==r.lastslidetoshow-1||(f.css({visibility:"visible"}),f.data("tween",punchgs.TweenLite.fromTo(f,r.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:e,delay:1})));r.hideTimerBar=="on"&&f.css({visibility:"hidden"})});i.on("nulltimer",function(){f.data("tween").pause(0);r.hideTimerBar=="on"&&f.css({visibility:"hidden"})});e=function(){n("body").find(i).length==0&&(hi(i,r),clearInterval(r.cdint));i.data("conthover-changed")==1&&(r.conthover=i.data("conthover"),i.data("conthover-changed",0));r.act=r.next;r.next=r.next+1;r.next>i.find(">ul >li").length-1&&(r.next=0,r.looptogo=r.looptogo-1,r.looptogo<=0&&(r.stopLoop="on"));r.stopLoop=="on"&&r.next==r.lastslidetoshow-1?(i.find(".tp-bannertimer").css({visibility:"hidden"}),i.trigger("revolution.slide.onstop")):f.data("tween").restart();b(i,r)};f.data("tween",punchgs.TweenLite.fromTo(f,r.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:e,delay:1}));f.data("opt",r);i.hover(function(){if(r.onHoverStop=="on"&&!u()){i.trigger("stoptimer");i.trigger("revolution.slide.onpause");var f=i.find(">ul >li:eq("+r.next+") .slotholder");f.find(".defaultimg").each(function(){var i=n(this);i.data("kenburn")!=t&&i.data("kenburn").pause()})}},function(){if(i.data("conthover")!=1){i.trigger("revolution.slide.onresume");i.trigger("starttimer");var u=i.find(">ul >li:eq("+r.next+") .slotholder");u.find(".defaultimg").each(function(){var i=n(this);i.data("kenburn")!=t&&i.data("kenburn").play()})}})}},u=function(){var n=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],t=!1;for(i in n)navigator.userAgent.split(n[i]).length>1&&(t=!0);return t},s=function(n,t,i){var u=t.data("owidth"),f=t.data("oheight");if(u/f>i.width/i.height){var e=i.container.width()/u,o=f*e,r=o/i.container.height()*n;return n=n*(100/r),r=100,n=n,n+"% "+r+"% 1"}var e=i.container.width()/u,o=f*e,r=o/i.container.height()*n;return n+"% "+r+"%"},nt=function(i,u,f,e){var b,d,g,h,a;try{b=i.find(">ul:first-child >li:eq("+u.act+")")}catch(ft){b=i.find(">ul:first-child >li:eq(1)")}u.lastslide=u.act;var nt=i.find(">ul:first-child >li:eq("+u.next+")"),o=nt.find(".slotholder"),tt=o.data("bgposition"),it=o.data("bgpositionend"),v=o.data("zoomstart")/100,y=o.data("zoomend")/100,k=o.data("rotationstart"),w=o.data("rotationend"),c=o.data("bgfit"),l=o.data("bgfitend"),rt=o.data("easeme"),ut=o.data("duration")/1e3,p=100;c==t&&(c=100);l==t&&(l=100);d=c;g=l;c=s(c,o,u);l=s(l,o,u);p=s(100,o,u);v==t&&(v=1);y==t&&(y=1);k==t&&(k=0);w==t&&(w=0);v<1&&(v=1);y<1&&(y=1);h={};h.w=parseInt(p.split(" ")[0],0);h.h=parseInt(p.split(" ")[1],0);a=!1;p.split(" ")[2]=="1"&&(a=!0);o.find(".defaultimg").each(function(){var f=n(this);o.find(".kenburnimg").length==0?o.append('<div class="kenburnimg" style="position:absolute;z-index:1;width:100%;height:100%;top:0px;left:0px;"><img src="'+f.attr("src")+'" style="-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position:absolute;width:'+h.w+"%;height:"+h.h+'%;"><\/div>'):o.find(".kenburnimg img").css({width:h.w+"%",height:h.h+"%"});var t=o.find(".kenburnimg img"),i=ct(u,tt,c,t,a),s=ct(u,it,l,t,a);if(a&&(i.w=d/100,s.w=g/100),e){punchgs.TweenLite.set(t,{autoAlpha:0,transformPerspective:1200,transformOrigin:"0% 0%",top:0,left:0,scale:i.w,x:i.x,y:i.y});var v=i.w,y=v*t.width()-u.width,p=v*t.height()-u.height,b=Math.abs(i.x/y*100),k=Math.abs(i.y/p*100);p==0&&(k=0);y==0&&(b=0);f.data("bgposition",b+"% "+k+"%");r(8)||f.data("currotate",lt(t));r(8)||f.data("curscale",h.w*v+"%  "+(h.h*v+"%"));o.find(".kenburnimg").remove()}else f.data("kenburn",punchgs.TweenLite.fromTo(t,ut,{autoAlpha:1,force3D:punchgs.force3d,transformOrigin:"0% 0%",top:0,left:0,scale:i.w,x:i.x,y:i.y},{autoAlpha:1,rotationZ:w,ease:rt,x:s.x,y:s.y,scale:s.w,onUpdate:function(){var n=t[0]._gsTransform.scaleX,i=n*t.width()-u.width,e=n*t.height()-u.height,o=Math.abs(t[0]._gsTransform.x/i*100),s=Math.abs(t[0]._gsTransform.y/e*100);e==0&&(s=0);i==0&&(o=0);f.data("bgposition",o+"% "+s+"%");r(8)||f.data("currotate",lt(t));r(8)||f.data("curscale",h.w*n+"%  "+(h.h*n+"%"))}}))})},ct=function(n,t,i,r,u){var f={};f.w=u?parseInt(i.split(" ")[1],0)/100:parseInt(i.split(" ")[0],0)/100;switch(t){case"left top":case"top left":f.x=0;f.y=0;break;case"center top":case"top center":f.x=((0-r.width())*f.w+parseInt(n.width,0))/2;f.y=0;break;case"top right":case"right top":f.x=(0-r.width())*f.w+parseInt(n.width,0);f.y=0;break;case"center left":case"left center":f.x=0;f.y=((0-r.height())*f.w+parseInt(n.height,0))/2;break;case"center center":f.x=((0-r.width())*f.w+parseInt(n.width,0))/2;f.y=((0-r.height())*f.w+parseInt(n.height,0))/2;break;case"center right":case"right center":f.x=(0-r.width())*f.w+parseInt(n.width,0);f.y=((0-r.height())*f.w+parseInt(n.height,0))/2;break;case"bottom left":case"left bottom":f.x=0;f.y=(0-r.height())*f.w+parseInt(n.height,0);break;case"bottom center":case"center bottom":f.x=((0-r.width())*f.w+parseInt(n.width,0))/2;f.y=(0-r.height())*f.w+parseInt(n.height,0);break;case"bottom right":case"right bottom":f.x=(0-r.width())*f.w+parseInt(n.width,0);f.y=(0-r.height())*f.w+parseInt(n.height,0)}return f},lt=function(n){var i=n.css("-webkit-transform")||n.css("-moz-transform")||n.css("-ms-transform")||n.css("-o-transform")||n.css("transform"),t;if(i!=="none")var r=i.split("(")[1].split(")")[0].split(","),u=r[0],f=r[1],t=Math.round(Math.atan2(f,u)*(180/Math.PI));else t=0;return t<0?t+=360:t},li=function(i,r){var u;try{u=i.find(">ul:first-child >li:eq("+r.act+")")}catch(e){u=i.find(">ul:first-child >li:eq(1)")}r.lastslide=r.act;var f=i.find(">ul:first-child >li:eq("+r.next+")"),o=u.find(".slotholder"),s=f.find(".slotholder");i.find(".defaultimg").each(function(){var i=n(this);punchgs.TweenLite.killTweensOf(i,!1);punchgs.TweenLite.set(i,{scale:1,rotationZ:0});punchgs.TweenLite.killTweensOf(i.data("kenburn img"),!1);i.data("kenburn")!=t&&i.data("kenburn").pause();i.data("currotate")!=t&&i.data("bgposition")!=t&&i.data("curscale")!=t&&punchgs.TweenLite.set(i,{rotation:i.data("currotate"),backgroundPosition:i.data("bgposition"),backgroundSize:i.data("curscale")});i!=t&&i.data("kenburn img")!=t&&i.data("kenburn img").length>0&&punchgs.TweenLite.set(i.data("kenburn img"),{autoAlpha:0})})},ai=function(t,i){if(u()&&i.parallaxDisableOnMobile=="on")return!1;if(t.find(">ul:first-child >li").each(function(){for(var r=n(this),t=1;t<=10;t++)r.find(".rs-parallaxlevel-"+t).each(function(){var r=n(this);r.wrap('<div style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:'+r.css("zIndex")+'" class="tp-parallax-container" data-parallaxlevel="'+i.parallaxLevels[t-1]+'"><\/div>')})}),i.parallax=="mouse"||i.parallax=="scroll+mouse"||i.parallax=="mouse+scroll"){t.mouseenter(function(n){var i=t.find(".current-sr-slide-visible"),r=t.offset().top,u=t.offset().left,f=n.pageX-u,e=n.pageY-r;i.data("enterx",f);i.data("entery",e)});t.on("mousemove.hoverdir, mouseleave.hoverdir",function(i){var r=t.find(".current-sr-slide-visible");switch(i.type){case"mousemove":var u=t.offset().top,f=t.offset().left,e=r.data("enterx"),o=r.data("entery"),s=e-(i.pageX-f),h=o-(i.pageY-u);r.find(".tp-parallax-container").each(function(){var t=n(this),i=parseInt(t.data("parallaxlevel"),0)/100,r=s*i,u=h*i;punchgs.TweenLite.to(t,.4,{force3D:"auto",x:r,y:u,ease:punchgs.Power3.easeOut,overwrite:"all"})});break;case"mouseleave":r.find(".tp-parallax-container").each(function(){var t=n(this);punchgs.TweenLite.to(t,1.5,{force3D:"auto",x:0,y:0,ease:punchgs.Power3.easeOut})})}});u()&&(window.ondeviceorientation=function(i){var r=Math.round(i.beta||0),u=Math.round(i.gamma||0),s=t.find(".current-sr-slide-visible"),f,e,o;n(window).width()>n(window).height()&&(f=u,u=r,r=f);e=360/t.width()*u;o=180/t.height()*r;s.find(".tp-parallax-container").each(function(){var t=n(this),i=parseInt(t.data("parallaxlevel"),0)/100,r=e*i,u=o*i;punchgs.TweenLite.to(t,.2,{force3D:"auto",x:r,y:u,ease:punchgs.Power3.easeOut})})})}if(i.parallax=="scroll"||i.parallax=="scroll+mouse"||i.parallax=="mouse+scroll")n(window).on("scroll",function(){h(t,i)})},h=function(t,i){var a,s,h;if(u()&&i.parallaxDisableOnMobile=="on")return!1;var e=t.offset().top,c=n(window).scrollTop(),o=e+t.height()/2,l=e+t.height()/2-c,f=n(window).height()/2,r=f-l;o<f&&(r=r-(f-o));a=t.find(".current-sr-slide-visible");t.find(".tp-parallax-container").each(function(){var t=n(this),u=parseInt(t.data("parallaxlevel"),0)/100,i=r*u;t.data("parallaxoffset",i);punchgs.TweenLite.to(t,.2,{force3D:"auto",y:i,ease:punchgs.Power3.easeOut})});i.parallaxBgFreeze!="on"&&(s=i.parallaxLevels[0]/100,h=r*s,punchgs.TweenLite.to(t,.2,{force3D:"auto",y:h,ease:punchgs.Power3.easeOut}))},vi=function(i,r){var s=i.parent(),u,e,o,h,c;(r.navigationType=="thumb"||r.navsecond=="both")&&s.append('<div class="tp-bullets tp-thumbs '+r.navigationStyle+'"><div class="tp-mask"><div class="tp-thumbcontainer"><\/div><\/div><\/div>');u=s.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");e=u.parent();e.width(r.thumbWidth*r.thumbAmount);e.height(r.thumbHeight);e.parent().width(r.thumbWidth*r.thumbAmount);e.parent().height(r.thumbHeight);i.find(">ul:first >li").each(function(n){var f=i.find(">ul:first >li:eq("+n+")"),o=f.find(".defaultimg").css("backgroundColor"),e,s;e=f.data("thumb")!=t?f.data("thumb"):f.find("img:first").attr("src");u.append('<div class="bullet thumb" style="background-color:'+o+";position:relative;width:"+r.thumbWidth+"px;height:"+r.thumbHeight+"px;background-image:url("+e+') !important;background-size:cover;background-position:center center;"><\/div>');s=u.find(".bullet:first")});o=10;u.find(".bullet").each(function(t){var u=n(this);t==r.slideamount-1&&u.addClass("last");t==0&&u.addClass("first");u.width(r.thumbWidth);u.height(r.thumbHeight);o<u.outerWidth(!0)&&(o=u.outerWidth(!0));u.click(function(){r.transition==0&&u.index()!=r.act&&(r.next=u.index(),f(r,i))})});h=o*i.find(">ul:first >li").length;c=u.parent().width();r.thumbWidth=o;c<h&&(n(document).mousemove(function(t){n("body").data("mousex",t.pageX)}),u.parent().mouseenter(function(){var r=n(this),t;r.addClass("over");var o=r.offset(),f=n("body").data("mousex")-o.left,u=r.width(),s=r.find(".bullet:first").outerWidth(!0),e=s*i.find(">ul:first >li").length,h=e-u+15,c=h/u;f=f-30;t=0-f*c;t>0&&(t=0);t<0-e+u&&(t=0-e+u);tt(r,t,200)}),u.parent().mousemove(function(){var f=n(this),o=f.offset(),t=n("body").data("mousex")-o.left,r=f.width(),s=f.find(".bullet:first").outerWidth(!0),e=s*i.find(">ul:first >li").length-1,h=e-r+15,c=h/r,u;t=t-3;t<6&&(t=0);t+3>r-6&&(t=r);u=0-t*c;u>0&&(u=0);u<0-e+r&&(u=0-e+r);tt(f,u,0)}),u.parent().mouseleave(function(){var t=n(this);t.removeClass("over");at(i)}))},at=function(n){var e=n.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),t=e.parent(),h=t.offset(),f=t.find(".bullet:first").outerWidth(!0),o=t.find(".bullet.selected").index()*f,r=t.width(),f=t.find(".bullet:first").outerWidth(!0),u=f*n.find(">ul:first >li").length,s=u-r,c=s/r,i=0-o;i>0&&(i=0);i<0-u+r&&(i=0-u+r);t.hasClass("over")||tt(t,i,200)},tt=function(n,t){punchgs.TweenLite.to(n.find(".tp-thumbcontainer"),.2,{force3D:"auto",left:t,ease:punchgs.Power3.easeOut,overwrite:"auto"})}}(jQuery);jQuery(function(n){n.fn.revolution&&n(".pi-revolution-slider").revolution({delay:9e3,startwidth:1130,startheight:330,hideThumbs:10,fullWidth:"on",forceFullWidth:"off",hideTimerBar:"on"})});!function(n,t){"function"==typeof define&&define.amd?define(["jquery"],t):t(n.jQuery)}(this,function(n){var a,t,f,r,e,o,s,h,c,y,l,u,v;if(t=!!document.createElement("canvas").getContext,a=function(){var t=document.createElement("div"),n;return t.innerHTML='<v:shape id="vml_flag1" adj="1" />',n=t.firstChild,n.style.behavior="url(#default#VML)",n?"object"==typeof n.adj:!0}(),!t&&!a)return void(n.fn.maphilight=function(){return this});t?(h=function(n){return Math.max(0,Math.min(parseInt(n,16),255))},c=function(n,t){return"rgba("+h(n.substr(0,2))+","+h(n.substr(2,2))+","+h(n.substr(4,2))+","+t+")"},f=function(t){var i=n('<canvas style="width:'+n(t).width()+"px;height:"+n(t).height()+'px;"><\/canvas>').get(0);return i.getContext("2d").clearRect(0,0,n(t).width(),n(t).height()),i},u=function(n,t,r,u,f){if(u=u||0,f=f||0,n.beginPath(),"rect"==t)n.rect(r[0]+u,r[1]+f,r[2]-r[0],r[3]-r[1]);else if("poly"==t)for(n.moveTo(r[0]+u,r[1]+f),i=2;i<r.length;i+=2)n.lineTo(r[i]+u,r[i+1]+f);else"circ"==t&&n.arc(r[0]+u,r[1]+f,r[2],0,2*Math.PI,!1);n.closePath()},r=function(t,i,r,f){var e=t.getContext("2d"),s,h,o;f.shadow&&(e.save(),"inside"==f.shadowPosition&&(u(e,i,r),e.clip()),s=100*t.width,h=100*t.height,u(e,i,r,s,h),e.shadowOffsetX=f.shadowX-s,e.shadowOffsetY=f.shadowY-h,e.shadowBlur=f.shadowRadius,e.shadowColor=c(f.shadowColor,f.shadowOpacity),o=f.shadowFrom,o||(o="outside"==f.shadowPosition?"fill":"stroke"),"stroke"==o?(e.strokeStyle="rgba(0,0,0,1)",e.stroke()):"fill"==o&&(e.fillStyle="rgba(0,0,0,1)",e.fill()),e.restore(),"outside"==f.shadowPosition&&(e.save(),u(e,i,r),e.globalCompositeOperation="destination-out",e.fillStyle="rgba(0,0,0,1);",e.fill(),e.restore()));e.save();u(e,i,r);f.fill&&(e.fillStyle=c(f.fillColor,f.fillOpacity),e.fill());f.stroke&&(e.strokeStyle=c(f.strokeColor,f.strokeOpacity),e.lineWidth=f.strokeWidth,e.stroke());e.restore();f.fade&&n(t).css("opacity",0).animate({opacity:1},100)},e=function(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}):(f=function(t){return n('<var style="zoom:1;overflow:hidden;display:block;width:'+t.width+"px;height:"+t.height+'px;"><\/var>').get(0)},r=function(t,i,r,u,f){var s,o,h,e;for(var c in r)r[c]=parseInt(r[c],10);s='<v:fill color="#'+u.fillColor+'" opacity="'+(u.fill?u.fillOpacity:0)+'" />';o=u.stroke?'strokeweight="'+u.strokeWidth+'" stroked="t" strokecolor="#'+u.strokeColor+'"':'stroked="f"';h='<v:stroke opacity="'+u.strokeOpacity+'"/>';"rect"==i?e=n('<v:rect name="'+f+'" filled="t" '+o+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+r[0]+"px;top:"+r[1]+"px;width:"+(r[2]-r[0])+"px;height:"+(r[3]-r[1])+'px;"><\/v:rect>'):"poly"==i?e=n('<v:shape name="'+f+'" filled="t" '+o+' coordorigin="0,0" coordsize="'+t.width+","+t.height+'" path="m '+r[0]+","+r[1]+" l "+r.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+t.width+"px;height:"+t.height+'px;"><\/v:shape>'):"circ"==i&&(e=n('<v:oval name="'+f+'" filled="t" '+o+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(r[0]-r[2])+"px;top:"+(r[1]-r[2])+"px;width:"+2*r[2]+"px;height:"+2*r[2]+'px;"><\/v:oval>'));e.get(0).innerHTML=s+h;n(t).append(e)},e=function(t){var i=n("<div>"+t.innerHTML+"<\/div>");i.children("[name=highlighted]").remove();t.innerHTML=i.html()});o=function(n){for(var i=n.getAttribute("coords").split(","),t=0;t<i.length;t++)i[t]=parseFloat(i[t]);return[n.getAttribute("shape").toLowerCase().substr(0,4),i]};l=function(t,i){var r=n(t);return n.extend({},i,n.metadata?r.metadata():!1,r.data("maphilight"))};y=function(n){return n.complete?"undefined"==typeof n.naturalWidth||0!==n.naturalWidth:!1};s={position:"absolute",left:0,top:0,padding:0,border:0};v=!1;n.fn.maphilight=function(i){return i=n.extend({},n.fn.maphilight.defaults,i),t||v||(n(window).ready(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var t=document.createStyleSheet();n.each(["shape","rect","oval","circ","fill","stroke","imagedata","group","textbox"],function(){t.addRule("v\\:"+this,"behavior: url(#default#VML); antialias:true")})}),v=!0),this.each(function(){var u,w,v,p,h,c,b,k;if(u=n(this),!y(this))return window.setTimeout(function(){u.maphilight(i)},200);(v=n.extend({},i,n.metadata?u.metadata():!1,u.data("maphilight")),b=u.get(0).getAttribute("usemap"),b&&(p=n('map[name="'+b.substr(1)+'"]'),u.is('img,input[type="image"]')&&b&&p.length>0))&&(u.hasClass("maphilighted")&&(k=u.parent(),u.insertBefore(k),k.remove(),n(p).unbind(".maphilight")),w=n("<div><\/div>").css({display:"block",backgroundImage:'url("'+this.src+'")',backgroundSize:"contain",position:"relative",padding:0,width:this.width,height:this.height}),v.wrapClass&&(v.wrapClass===!0?w.addClass(n(this).attr("class")):w.addClass(v.wrapClass)),u.before(w).css("opacity",0).css(s).remove(),a&&u.css("filter","Alpha(opacity=0)"),w.append(u),h=f(this),n(h).css(s),h.height=this.height,h.width=this.width,n(p).bind("alwaysOn.maphilight",function(){c&&e(c);t||n(h).empty();n(p).find("area[coords]").each(function(){var e,i;i=l(this,v);i.alwaysOn&&(!c&&t&&(c=f(u[0]),n(c).css(s),c.width=u[0].width,c.height=u[0].height,u.before(c)),i.fade=i.alwaysOnFade,e=o(this),t?r(c,e[0],e[1],i,""):r(h,e[0],e[1],i,""))})}).trigger("alwaysOn.maphilight").bind("mouseover.maphilight, focus.maphilight",function(i){var e,u,f=i.target,s,c;(u=l(f,v),u.neverOn||u.alwaysOn)||((e=o(f),r(h,e[0],e[1],u,"highlighted"),u.groupBy)&&(s=/^[a-zA-Z][\-a-zA-Z]+$/.test(u.groupBy)?p.find("area["+u.groupBy+'="'+n(f).attr(u.groupBy)+'"]'):p.find(u.groupBy),c=f,s.each(function(){var n,t;this!=c&&(n=l(this,v),n.neverOn||n.alwaysOn||(t=o(this),r(h,t[0],t[1],n,"highlighted")))})),t||n(h).append("<v:rect><\/v:rect>"))}).bind("mouseout.maphilight, blur.maphilight",function(){e(h)}),u.before(h),u.addClass("maphilighted"))})};n.fn.maphilight.defaults={fill:!0,fillColor:"000000",fillOpacity:.2,stroke:!0,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,fade:!0,alwaysOn:!1,neverOn:!1,groupBy:!1,wrapClass:!0,shadow:!1,shadowX:0,shadowY:0,shadowRadius:6,shadowColor:"000000",shadowOpacity:.8,shadowPosition:"outside",shadowFrom:!1}});!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.videojs=n()}}(function(){var n;return function t(n,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!n[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};n[f][0].call(s.exports,function(t){var i=n[f][1][t];return u(i?i:t)},s,s.exports,t,n,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){(function(i){var u="undefined"!=typeof i?i:"undefined"!=typeof window?window:{},f=n("min-document"),r;"undefined"!=typeof document?t.exports=document:(r=u["__GLOBAL_DOCUMENT_CACHE@4"],r||(r=u["__GLOBAL_DOCUMENT_CACHE@4"]=f),t.exports=r)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":3}],2:[function(n,t){(function(n){t.exports="undefined"!=typeof window?window:"undefined"!=typeof n?n:"undefined"!=typeof self?self:{}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(){},{}],4:[function(n,t){var i=n("../internal/getNative"),r=i(Date,"now"),u=r||function(){return(new Date).getTime()};t.exports=u},{"../internal/getNative":20}],5:[function(n,t){function r(n,t,r){function nt(){o&&clearTimeout(o);s&&clearTimeout(s);a=0;s=o=b=void 0}function k(t,r){r&&clearTimeout(r);s=o=b=void 0;t&&(a=i(),w=n.apply(c,h),o||s||(h=c=void 0))}function d(){var n=t-(i()-l);0>=n||n>t?k(b,s):o=setTimeout(d,n)}function tt(){k(y,o)}function g(){var f,u,r;return(h=arguments,l=i(),c=this,b=y&&(o||!p),v===!1)?f=p&&!o:(s||p||(a=l),u=v-(l-a),r=0>=u||u>v,r?(s&&(s=clearTimeout(s)),a=l,w=n.apply(c,h)):s||(s=setTimeout(tt,u))),r&&o?o=clearTimeout(o):o||t===v||(o=setTimeout(d,t)),f&&(r=!0,w=n.apply(c,h)),!r||o||s||(h=c=void 0),w}var h,s,w,l,c,o,b,a=0,v=!1,y=!0,p;if("function"!=typeof n)throw new TypeError(f);return(t=0>t?0:+t||0,r===!0)?(p=!0,y=!1):u(r)&&(p=!!r.leading,v="maxWait"in r&&e(+r.maxWait||0,t),y="trailing"in r?!!r.trailing:y),g.cancel=nt,g}var u=n("../lang/isObject"),i=n("../date/now"),f="Expected a function",e=Math.max;t.exports=r},{"../date/now":4,"../lang/isObject":33}],6:[function(n,t){function r(n,t){if("function"!=typeof n)throw new TypeError(u);return t=i(void 0===t?n.length-1:+t||0,0),function(){for(var e,u=arguments,r=-1,o=i(u.length-t,0),f=Array(o);++r<o;)f[r]=u[t+r];switch(t){case 0:return n.call(this,f);case 1:return n.call(this,u[0],f);case 2:return n.call(this,u[0],u[1],f)}for(e=Array(t+1),r=-1;++r<t;)e[r]=u[r];return e[t]=f,n.apply(this,e)}}var u="Expected a function",i=Math.max;t.exports=r},{}],7:[function(n,t){function i(n,t,i){var e=!0,o=!0;if("function"!=typeof n)throw new TypeError(f);return i===!1?e=!1:u(i)&&(e="leading"in i?!!i.leading:e,o="trailing"in i?!!i.trailing:o),r(n,t,{leading:e,maxWait:+t,trailing:o})}var r=n("./debounce"),u=n("../lang/isObject"),f="Expected a function";t.exports=i},{"../lang/isObject":33,"./debounce":5}],8:[function(n,t){function i(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}t.exports=i},{}],9:[function(n,t){function i(n,t){for(var i=-1,r=n.length;++i<r&&t(n[i],i,n)!==!1;);return n}t.exports=i},{}],10:[function(n,t){function i(n,t,i){var r,f,u;for(i||(i={}),r=-1,f=t.length;++r<f;)u=t[r],i[u]=n[u];return i}t.exports=i},{}],11:[function(n,t){var i=n("./createBaseFor"),r=i();t.exports=r},{"./createBaseFor":18}],12:[function(n,t){function i(n,t){return r(n,t,u)}var r=n("./baseFor"),u=n("../object/keysIn");t.exports=i},{"../object/keysIn":39,"./baseFor":11}],13:[function(n,t){function i(n,t,l,a,v){if(!o(n))return n;var y=e(t)&&(f(t)||h(t)),p=y?void 0:c(t);return r(p||t,function(r,f){if(p&&(f=r,r=t[f]),s(r))a||(a=[]),v||(v=[]),u(n,t,f,i,l,a,v);else{var o=n[f],e=l?l(o,r,f,n,t):void 0,h=void 0===e;h&&(e=r);void 0===e&&(!y||f in n)||!h&&(e===e?e===o:o!==o)||(n[f]=e)}}),n}var r=n("./arrayEach"),u=n("./baseMergeDeep"),f=n("../lang/isArray"),e=n("./isArrayLike"),o=n("../lang/isObject"),s=n("./isObjectLike"),h=n("../lang/isTypedArray"),c=n("../object/keys");t.exports=i},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(n,t){function e(n,t,e,c,l,a,v){for(var b=a.length,p=t[e];b--;)if(a[b]==p)return void(n[e]=v[b]);var y=n[e],w=l?l(y,p,e,n,t):void 0,k=void 0===w;k&&(w=p,u(p)&&(r(p)||s(p))?w=r(y)?y:u(y)?o(y):[]:f(p)||i(p)?w=i(y)?h(y):f(y)?y:{}:k=!1);a.push(p);v.push(w);k?n[e]=c(w,p,l,a,v):(w===w?w!==y:y===y)&&(n[e]=w)}var o=n("./arrayCopy"),i=n("../lang/isArguments"),r=n("../lang/isArray"),u=n("./isArrayLike"),f=n("../lang/isPlainObject"),s=n("../lang/isTypedArray"),h=n("../lang/toPlainObject");t.exports=e},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(n,t){function i(n){return function(t){if(null!=t)return r(t)[n]}}var r=n("./toObject");t.exports=i},{"./toObject":28}],16:[function(n,t){function i(n,t,i){if("function"!=typeof n)return r;if(void 0===t)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)};case 5:return function(i,r,u,f,e){return n.call(t,i,r,u,f,e)}}return function(){return n.apply(t,arguments)}}var r=n("../utility/identity");t.exports=i},{"../utility/identity":42}],17:[function(n,t){function i(n){return f(function(t,i){var h=-1,f=null==t?0:i.length,e=f>2?i[f-2]:void 0,c=f>2?i[2]:void 0,o=f>1?i[f-1]:void 0,s;for("function"==typeof e?(e=r(e,o,5),f-=2):(e="function"==typeof o?o:void 0,f-=e?1:0),c&&u(i[0],i[1],c)&&(e=3>f?void 0:e,f=1);++h<f;)s=i[h],s&&n(t,s,e);return t})}var r=n("./bindCallback"),u=n("./isIterateeCall"),f=n("../function/restParam");t.exports=i},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(n,t){function i(n){return function(t,i,u){for(var e,o=r(t),s=u(t),h=s.length,f=n?h:-1;n?f--:++f<h;)if(e=s[f],i(o[e],e,o)===!1)break;return t}}var r=n("./toObject");t.exports=i},{"./toObject":28}],19:[function(n,t){var i=n("./baseProperty"),r=i("length");t.exports=r},{"./baseProperty":15}],20:[function(n,t){function i(n,t){var i=null==n?void 0:n[t];if(r(i))return i}var r=n("../lang/isNative");t.exports=i},{"../lang/isNative":32}],21:[function(n,t){function i(n){return null!=n&&u(r(n))}var r=n("./getLength"),u=n("./isLength");t.exports=i},{"./getLength":19,"./isLength":25}],22:[function(n,t){var i=function(){try{Object({toString:0}+"")}catch(n){return function(){return!1}}return function(n){return"function"!=typeof n.toString&&"string"==typeof(n+"")}}();t.exports=i},{}],23:[function(n,t){function i(n,t){return n="number"==typeof n||r.test(n)?+n:-1,t=null==t?u:t,n>-1&&n%1==0&&t>n}var r=/^\d+$/,u=9007199254740991;t.exports=i},{}],24:[function(n,t){function i(n,t,i){var o,e;return f(i)?(o=typeof t,"number"==o?r(i)&&u(t,i.length):"string"==o&&t in i)?(e=i[t],n===n?n===e:e!==e):!1:!1}var r=n("./isArrayLike"),u=n("./isIndex"),f=n("../lang/isObject");t.exports=i},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(n,t){function i(n){return"number"==typeof n&&n>-1&&n%1==0&&r>=n}var r=9007199254740991;t.exports=i},{}],26:[function(n,t){function i(n){return!!n&&"object"==typeof n}t.exports=i},{}],27:[function(n,t){function i(n){for(var t,h=s(n),l=h.length,i=l&&n.length,y=!!i&&e(i)&&(u(n)||r(n)||o(n)),a=-1,v=[];++a<l;)t=h[a],(y&&f(t,i)||c.call(n,t))&&v.push(t);return v}var r=n("../lang/isArguments"),u=n("../lang/isArray"),f=n("./isIndex"),e=n("./isLength"),o=n("../lang/isString"),s=n("../object/keysIn"),h=Object.prototype,c=h.hasOwnProperty;t.exports=i},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(n,t){function i(n){if(f.unindexedChars&&u(n)){for(var t=-1,e=n.length,i=Object(n);++t<e;)i[t]=n.charAt(t);return i}return r(n)?n:Object(n)}var r=n("../lang/isObject"),u=n("../lang/isString"),f=n("../support");t.exports=i},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(n,t){function r(n){return f(n)&&u(n)&&e.call(n,"callee")&&!o.call(n,"callee")}var u=n("../internal/isArrayLike"),f=n("../internal/isObjectLike"),i=Object.prototype,e=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=r},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(n,t){var i=n("../internal/getNative"),r=n("../internal/isLength"),u=n("../internal/isObjectLike"),f="[object Array]",e=Object.prototype,o=e.toString,s=i(Array,"isArray"),h=s||function(n){return u(n)&&r(n.length)&&o.call(n)==f};t.exports=h},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(n,t){function i(n){return r(n)&&e.call(n)==u}var r=n("./isObject"),u="[object Function]",f=Object.prototype,e=f.toString;t.exports=i},{"./isObject":33}],32:[function(n,t){function u(n){return null==n?!1:f(n)?r.test(i.call(n)):o(n)&&(e(n)?r:s).test(n)}var f=n("./isFunction"),e=n("../internal/isHostObject"),o=n("../internal/isObjectLike"),s=/^\[object .+?Constructor\]$/,h=Object.prototype,i=Function.prototype.toString,c=h.hasOwnProperty,r=RegExp("^"+i.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=u},{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(n,t){function i(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}t.exports=i},{}],34:[function(n,t){function f(n){var u,t;return!s(n)||l.call(n)!=c||o(n)||e(n)||!i.call(n,"constructor")&&(u=n.constructor,"function"==typeof u&&!(u instanceof u))?!1:h.ownLast?(r(n,function(n,r,u){return t=i.call(u,r),!1}),t!==!1):(r(n,function(n,i){t=i}),void 0===t||i.call(n,t))}var r=n("../internal/baseForIn"),e=n("./isArguments"),o=n("../internal/isHostObject"),s=n("../internal/isObjectLike"),h=n("../support"),c="[object Object]",u=Object.prototype,i=u.hasOwnProperty,l=u.toString;t.exports=f},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(n,t){function i(n){return"string"==typeof n||r(n)&&e.call(n)==u}var r=n("../internal/isObjectLike"),u="[object String]",f=Object.prototype,e=f.toString;t.exports=i},{"../internal/isObjectLike":26}],36:[function(n,t){function f(n){return o(n)&&e(n.length)&&!!i[u.call(n)]}var e=n("../internal/isLength"),o=n("../internal/isObjectLike"),i={},r,u;i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0;i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;r=Object.prototype;u=r.toString;t.exports=f},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(n,t){function i(n){return r(n,u(n))}var r=n("../internal/baseCopy"),u=n("../object/keysIn");t.exports=i},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(n,t){var u=n("../internal/getNative"),f=n("../internal/isArrayLike"),e=n("../lang/isObject"),i=n("../internal/shimKeys"),o=n("../support"),r=u(Object,"keys"),s=r?function(n){var t=null==n?void 0:n.constructor;return"function"==typeof t&&t.prototype===n||("function"==typeof n?o.enumPrototypes:f(n))?i(n):e(n)?r(n):[]}:i;t.exports=s},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(n,t){function a(n){var a,t,rt,ot,ut;if(null==n)return[];k(n)||(n=Object(n));a=n.length;a=a&&b(a)&&(p(n)||y(n)||d(n))&&a||0;for(var ft=n.constructor,tt=-1,it=s(ft)&&ft.prototype||r,et=it===n,v=Array(a),st=a>0,ht=f.enumErrorProps&&(n===l||n instanceof Error),ct=f.enumPrototypes&&s(n);++tt<a;)v[tt]=tt+"";for(t in n)ct&&"prototype"==t||ht&&("message"==t||"name"==t)||st&&w(t,a)||"constructor"==t&&(et||!u.call(n,t))||v.push(t);if(f.nonEnumShadows&&n!==r)for(rt=n===g?c:n===l?h:nt.call(n),ot=i[rt]||i[e],rt==e&&(it=r),a=o.length;a--;)t=o[a],ut=ot[t],et&&ut||(ut?!u.call(n,t):n[t]===it[t])||v.push(t);return v}var v=n("../internal/arrayEach"),y=n("../lang/isArguments"),p=n("../lang/isArray"),s=n("../lang/isFunction"),w=n("../internal/isIndex"),b=n("../internal/isLength"),k=n("../lang/isObject"),d=n("../lang/isString"),f=n("../support"),h="[object Error]",e="[object Object]",c="[object String]",o=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],l=Error.prototype,r=Object.prototype,g=String.prototype,u=r.hasOwnProperty,nt=r.toString,i={};i["[object Array]"]=i["[object Date]"]=i["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0};i["[object Boolean]"]=i[c]={constructor:!0,toString:!0,valueOf:!0};i[h]=i["[object Function]"]=i["[object RegExp]"]={constructor:!0,toString:!0};i[e]={constructor:!0};v(o,function(n){var t,r;for(t in i)u.call(i,t)&&(r=i[t],r[n]=u.call(r,n))});t.exports=a},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(n,t){var i=n("../internal/baseMerge"),r=n("../internal/createAssigner"),u=r(i);t.exports=u},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(n,t){var f=Array.prototype,u=Error.prototype,e=Object.prototype,r=e.propertyIsEnumerable,o=f.splice,i={};!function(n){var t=function(){this.x=n},e={0:n,length:n},f=[],s;t.prototype={valueOf:n,y:n};for(s in new t)f.push(s);i.enumErrorProps=r.call(u,"message")||r.call(u,"name");i.enumPrototypes=r.call(t,"prototype");i.nonEnumShadows=!/valueOf/.test(f);i.ownLast="x"!=f[0];i.spliceObjects=(o.call(e,0,1),!e[0]);i.unindexedChars="x"[0]+Object("x")[0]!="xx"}(1,0);t.exports=i},{}],42:[function(n,t){function i(n){return n}t.exports=i},{}],43:[function(n,t){"use strict";var i=n("object-keys");t.exports=function(){var n,t,r,u,f;if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;if(n={},t=Symbol("test"),"string"==typeof t)return!1;r=42;n[t]=r;for(t in n)return!1;return 0!==i(n).length?!1:"function"==typeof Object.keys&&0!==Object.keys(n).length?!1:"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length?!1:(u=Object.getOwnPropertySymbols(n),1!==u.length||u[0]!==t)?!1:Object.prototype.propertyIsEnumerable.call(n,t)?"function"==typeof Object.getOwnPropertyDescriptor&&(f=Object.getOwnPropertyDescriptor(n,t),f.value!==r||f.enumerable!==!0)?!1:!0:!1}},{"object-keys":49}],44:[function(n,t){"use strict";var f=n("object-keys"),i=n("function-bind"),e=function(n){return"undefined"!=typeof n&&null!==n},o=n("./hasSymbols")(),r=Object,s=i.call(Function.call,Array.prototype.push),u=i.call(Function.call,Object.prototype.propertyIsEnumerable);t.exports=function(n){if(!e(n))throw new TypeError("target must be an object");for(var h,t,l,a,v,i,y=r(n),c=1;c<arguments.length;++c){if(h=r(arguments[c]),l=f(h),o&&Object.getOwnPropertySymbols)for(a=Object.getOwnPropertySymbols(h),t=0;t<a.length;++t)i=a[t],u(h,i)&&s(l,i);for(t=0;t<l.length;++t)i=l[t],v=h[i],u(h,i)&&(y[i]=v)}return y}},{"./hasSymbols":43,"function-bind":48,"object-keys":49}],45:[function(n,t){"use strict";var r=n("define-properties"),i=n("./implementation"),u=n("./polyfill"),f=n("./shim");r(i,{implementation:i,getPolyfill:u,shim:f});t.exports=i},{"./implementation":44,"./polyfill":51,"./shim":52,"define-properties":46}],46:[function(n,t){"use strict";var u=n("object-keys"),f=n("foreach"),e="function"==typeof Symbol&&"symbol"==typeof Symbol(),o=Object.prototype.toString,s=function(n){return"function"==typeof n&&"[object Function]"===o.call(n)},h=function(){var n={},t;try{Object.defineProperty(n,"x",{enumerable:!1,value:n});for(t in n)return!1;return n.x===n}catch(i){return!1}},i=Object.defineProperty&&h(),c=function(n,t,r,u){t in n&&(!s(u)||!u())||(i?Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):n[t]=r)},r=function(n,t){var r=arguments.length>2?arguments[2]:{},i=u(t);e&&(i=i.concat(Object.getOwnPropertySymbols(t)));f(i,function(i){c(n,i,t[i],r[i])})};r.supportsDescriptors=!!i;t.exports=r},{foreach:47,"object-keys":49}],47:[function(n,t){var i=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(n,t,u){var e,f,o;if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");if(e=n.length,e===+e)for(f=0;e>f;f++)t.call(u,n[f],f,n);else for(o in n)i.call(n,o)&&t.call(u,n[o],o,n)}},{}],48:[function(n,t){var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,u=Object.prototype.toString,f="[object Function]";t.exports=function(n){var t=this,e,o;if("function"!=typeof t||u.call(t)!==f)throw new TypeError(r+t);for(var s=i.call(arguments,1),l=function(){if(this instanceof e){var r=t.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(n,s.concat(i.call(arguments)))},a=Math.max(0,t.length-s.length),c=[],h=0;a>h;h++)c.push("$"+h);return e=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),t.prototype&&(o=function(){},o.prototype=t.prototype,e.prototype=new o,o.prototype=null),e}},{}],49:[function(n,t){"use strict";var i=Object.prototype.hasOwnProperty,e=Object.prototype.toString,s=Array.prototype.slice,o=n("./isArguments"),h=!{toString:null}.propertyIsEnumerable("toString"),c=function(){}.propertyIsEnumerable("prototype"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(n){var t=n.constructor;return t&&t.prototype===n},l={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},a=function(){if("undefined"==typeof window)return!1;for(var n in window)try{if(!l["$"+n]&&i.call(window,n)&&null!==window[n]&&"object"==typeof window[n])try{f(window[n])}catch(t){return!0}}catch(t){return!0}return!1}(),v=function(n){if("undefined"==typeof window||!a)return f(n);try{return f(n)}catch(t){return!1}},u=function(n){var a=null!==n&&"object"==typeof n,y="[object Function]"===e.call(n),p=o(n),k=a&&"[object String]"===e.call(n),u=[],w,f,s,l,b,t;if(!a&&!y&&!p)throw new TypeError("Object.keys called on a non-object");if(w=c&&y,k&&n.length>0&&!i.call(n,0))for(f=0;f<n.length;++f)u.push(String(f));if(p&&n.length>0)for(s=0;s<n.length;++s)u.push(String(s));else for(l in n)w&&"prototype"===l||!i.call(n,l)||u.push(String(l));if(h)for(b=v(n),t=0;t<r.length;++t)b&&"constructor"===r[t]||!i.call(n,r[t])||u.push(r[t]);return u};u.shim=function(){var n,t;return Object.keys?(n=function(){return 2===(Object.keys(arguments)||"").length}(1,2),n||(t=Object.keys,Object.keys=function(n){return t(o(n)?s.call(n):n)})):Object.keys=u,Object.keys||u};t.exports=u},{"./isArguments":50}],50:[function(n,t){"use strict";var i=Object.prototype.toString;t.exports=function(n){var r=i.call(n),t="[object Arguments]"===r;return t||(t="[object Array]"!==r&&null!==n&&"object"==typeof n&&"number"==typeof n.length&&n.length>=0&&"[object Function]"===i.call(n.callee)),t}},{}],51:[function(n,t){"use strict";var i=n("./implementation"),r=function(){var f,i,e;if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",t=r.split(""),u={},n=0;n<t.length;++n)u[t[n]]=t[n];f=Object.assign({},u);i="";for(e in f)i+=e;return r!==i},u=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch(t){return"y"===n[1]}};t.exports=function(){return Object.assign?r()?i:u()?i:Object.assign:i}},{"./implementation":44}],52:[function(n,t){"use strict";var i=n("define-properties"),r=n("./polyfill");t.exports=function(){var n=r();return i(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n}},{"./polyfill":51,"define-properties":46}],53:[function(n,t){function i(n,t){var i,r=null;try{i=JSON.parse(n,t)}catch(u){r=u}return[r,i]}t.exports=i},{}],54:[function(n,t){function i(n){return n.replace(/\n\r?\s*/g,"")}t.exports=function(n){for(var r="",t=0;t<arguments.length;t++)r+=i(n[t])+(arguments[t+1]||"");return r}},{}],55:[function(n,t){"use strict";function e(n,t){for(var i=0;i<n.length;i++)t(n[i])}function o(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function r(n,t,i){var r=n;return c(t)?(i=t,"string"==typeof n&&(r={uri:n})):r=a(t,{uri:n}),r.callback=i,r}function i(n,t,i){return t=r(n,t,i),u(t)}function u(n){function d(){4===t.readyState&&p()}function g(){var n=void 0;if(t.response?n=t.response:"text"!==t.responseType&&t.responseType||(n=t.responseText||t.responseXML),k)try{n=JSON.parse(n)}catch(i){}return n}function s(n){clearTimeout(a);n instanceof Error||(n=new Error(""+(n||"Unknown XMLHttpRequest Error")));n.statusCode=0;u(n,c)}function p(){var r,i,e;w||(clearTimeout(a),r=n.useXDR&&void 0===t.status?200:1223===t.status?204:t.status,i=c,e=null,0!==r?(i={body:g(),statusCode:r,method:f,headers:{},url:v,rawRequest:t},t.getAllResponseHeaders&&(i.headers=l(t.getAllResponseHeaders()))):e=new Error("Internal XMLHttpRequest Error"),u(e,i,i.body))}var u=n.callback,c,t;if("undefined"==typeof u)throw new Error("callback argument missing");u=h(u);c={body:void 0,headers:{},statusCode:0,method:f,url:v,rawRequest:t};t=n.xhr||null;t||(t=n.cors||n.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var e,w,a,v=t.url=n.uri||n.url,f=t.method=n.method||"GET",b=n.body||n.data||null,r=t.headers=n.headers||{},y=!!n.sync,k=!1;if("json"in n&&(k=!0,r.accept||r.Accept||(r.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(r["content-type"]||r["Content-Type"]||(r["Content-Type"]="application/json"),b=JSON.stringify(n.json))),t.onreadystatechange=d,t.onload=p,t.onerror=s,t.onprogress=function(){},t.ontimeout=s,t.open(f,v,!y,n.username,n.password),y||(t.withCredentials=!!n.withCredentials),!y&&n.timeout>0&&(a=setTimeout(function(){w=!0;t.abort("timeout");var n=new Error("XMLHttpRequest timeout");n.code="ETIMEDOUT";s(n)},n.timeout)),t.setRequestHeader)for(e in r)r.hasOwnProperty(e)&&t.setRequestHeader(e,r[e]);else if(n.headers&&!o(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(t.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(t),t.send(b),t}function s(){}var f=n("global/window"),h=n("once"),c=n("is-function"),l=n("parse-headers"),a=n("xtend");t.exports=i;i.XMLHttpRequest=f.XMLHttpRequest||s;i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:f.XDomainRequest;e(["get","put","post","patch","head","delete"],function(n){i["delete"===n?"del":n]=function(t,i,f){return i=r(t,i,f),i.method=n.toUpperCase(),u(i)}})},{"global/window":2,"is-function":56,once:57,"parse-headers":60,xtend:61}],56:[function(n,t){function i(n){var t=r.call(n);return"[object Function]"===t||"function"==typeof n&&"[object RegExp]"!==t||"undefined"!=typeof window&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}t.exports=i;var r=Object.prototype.toString},{}],57:[function(n,t){function i(n){var t=!1;return function(){if(!t)return(t=!0,n.apply(this,arguments))}}t.exports=i;i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0})})},{}],58:[function(n,t){function u(n,t,i){if(!s(t))throw new TypeError("iterator must be a function");arguments.length<3&&(i=this);"[object Array]"===r.call(n)?f(n,t,i):"string"==typeof n?e(n,t,i):o(n,t,i)}function f(n,t,r){for(var u=0,f=n.length;f>u;u++)i.call(n,u)&&t.call(r,n[u],u,n)}function e(n,t,i){for(var r=0,u=n.length;u>r;r++)t.call(i,n.charAt(r),r,n)}function o(n,t,r){for(var u in n)i.call(n,u)&&t.call(r,n[u],u,n)}var s=n("is-function"),r,i;t.exports=u;r=Object.prototype.toString;i=Object.prototype.hasOwnProperty},{"is-function":56}],59:[function(n,t,i){function r(n){return n.replace(/^\s*|\s*$/g,"")}i=t.exports=r;i.left=function(n){return n.replace(/^\s*/,"")};i.right=function(n){return n.replace(/\s*$/,"")}},{}],60:[function(n,t){var i=n("trim"),r=n("for-each"),u=function(n){return"[object Array]"===Object.prototype.toString.call(n)};t.exports=function(n){if(!n)return{};var t={};return r(i(n).split("\n"),function(n){var e=n.indexOf(":"),r=i(n.slice(0,e)).toLowerCase(),f=i(n.slice(e+1));"undefined"==typeof t[r]?t[r]=f:u(t[r])?t[r].push(f):t[r]=[t[r],f]}),t}},{"for-each":58,trim:59}],61:[function(n,t){function i(){for(var t,i,u={},n=0;n<arguments.length;n++){t=arguments[n];for(i in t)r.call(t,i)&&(u[i]=t[i])}return u}t.exports=i;var r=Object.prototype.hasOwnProperty},{}],62:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./button.js"),s=u(o),h=n("./component.js"),c=u(h),r=function(n){function t(i,r){f(this,t);n.call(this,i,r)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(){this.player_.play()},t}(s["default"]);r.prototype.controlText_="Play Video";c["default"].registerComponent("BigPlayButton",r);i["default"]=r;t.exports=i["default"]},{"./button.js":63,"./component.js":66}],63:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n("./clickable-component.js"),a=r(l),v=n("./component"),u=r(v),y=n("./utils/events.js"),p=(f(y),n("./utils/fn.js")),w=(f(p),n("./utils/log.js")),e=r(w),b=n("global/document"),k=(r(b),n("object.assign")),o=r(k),s=function(n){function t(i,r){h(this,t);n.call(this,i,r)}return c(t,n),t.prototype.createEl=function(){var n=arguments.length<=0||void 0===arguments[0]?"button":arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r;return t=o["default"]({className:this.buildCSSClass()},t),"button"!==n&&e["default"].warn("Creating a Button with an HTML element of "+n+" is deprecated; use ClickableComponent instead."),i=o["default"]({type:"button","aria-live":"polite"},i),r=u["default"].prototype.createEl.call(this,n,t,i),this.createControlTextEl(r),r},t.prototype.addChild=function(n){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=this.constructor.name;return e["default"].warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),u["default"].prototype.addChild.call(this,n,t)},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which||n.prototype.handleKeyPress.call(this,t)},t}(a["default"]);u["default"].registerComponent("Button",s);i["default"]=s;t.exports=i["default"]},{"./clickable-component.js":64,"./component":66,"./utils/events.js":132,"./utils/fn.js":133,"./utils/log.js":136,"global/document":1,"object.assign":45}],64:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var v=n("./component"),f=r(v),y=n("./utils/dom.js"),p=u(y),w=n("./utils/events.js"),e=u(w),b=n("./utils/fn.js"),o=u(b),k=n("./utils/log.js"),d=r(k),g=n("global/document"),s=r(g),nt=n("object.assign"),h=r(nt),c=function(n){function t(i,r){l(this,t);n.call(this,i,r);this.emitTapEvents();this.on("tap",this.handleClick);this.on("click",this.handleClick);this.on("focus",this.handleFocus);this.on("blur",this.handleBlur)}return a(t,n),t.prototype.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],u;return i=h["default"]({className:this.buildCSSClass(),tabIndex:0},i),"button"===t&&d["default"].error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=h["default"]({role:"button","aria-live":"polite"},r),u=n.prototype.createEl.call(this,t,i,r),this.createControlTextEl(u),u},t.prototype.createControlTextEl=function(n){return this.controlTextEl_=p.createEl("span",{className:"vjs-control-text"}),n&&n.appendChild(this.controlTextEl_),this.controlText(this.controlText_),this.controlTextEl_},t.prototype.controlText=function(n){return n?(this.controlText_=n,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+n.prototype.buildCSSClass.call(this)},t.prototype.addChild=function(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.prototype.addChild.call(this,t,i)},t.prototype.handleClick=function(){},t.prototype.handleFocus=function(){e.on(s["default"],"keydown",o.bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleClick(t)):n.prototype.handleKeyPress&&n.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(){e.off(s["default"],"keydown",o.bind(this,this.handleKeyPress))},t}(f["default"]);f["default"].registerComponent("ClickableComponent",c);i["default"]=c;t.exports=i["default"]},{"./component":66,"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/log.js":136,"global/document":1,"object.assign":45}],65:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./button"),s=r(o),h=n("./component"),c=r(h),u=function(n){function t(i,r){f(this,t);n.call(this,i,r);this.controlText(r&&r.controlText||this.localize("Close"))}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},t}(s["default"]);c["default"].registerComponent("CloseButton",u);i["default"]=u;t.exports=i["default"]},{"./button":63,"./component":66}],66:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function o(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var y=n("global/window"),r=o(y),p=n("./utils/dom.js"),u=s(p),w=n("./utils/fn.js"),f=s(w),b=n("./utils/guid.js"),k=s(b),d=n("./utils/events.js"),e=s(d),g=n("./utils/log.js"),h=o(g),nt=n("./utils/to-title-case.js"),c=o(nt),tt=n("object.assign"),it=o(tt),rt=n("./utils/merge-options.js"),l=o(rt),a=function(){function n(t,i,r){if(v(this,n),this.player_=!t&&this.play?t=this:t,this.options_=l["default"]({},this.options_),i=this.options_=l["default"](this.options_,i),this.id_=i.id||i.el&&i.el.id,!this.id_){var u=t&&t.id&&t.id()||"no_player";this.id_=u+"_component_"+k.newGUID()}this.name_=i.name||null;i.el?this.el_=i.el:i.createEl!==!1&&(this.el_=this.createEl());this.children_=[];this.childIndex_={};this.childNameIndex_={};i.initChildren!==!1&&this.initChildren();this.ready(r);i.reportTouchActivity!==!1&&this.enableTouchActivity()}return n.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var n=this.children_.length-1;n>=0;n--)this.children_[n].dispose&&this.children_[n].dispose();this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.off();this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_);u.removeElData(this.el_);this.el_=null},n.prototype.player=function(){return this.player_},n.prototype.options=function(n){return h["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),n?(this.options_=l["default"](this.options_,n),this.options_):this.options_},n.prototype.el=function(){return this.el_},n.prototype.createEl=function(n,t,i){return u.createEl(n,t,i)},n.prototype.localize=function(n){var r=this.player_.language&&this.player_.language(),u=this.player_.languages&&this.player_.languages(),t,f,i;return!r||!u?n:(t=u[r],t&&t[n])?t[n]:(f=r.split("-")[0],i=u[f],i&&i[n]?i[n]:n)},n.prototype.contentEl=function(){return this.contentEl_||this.el_},n.prototype.id=function(){return this.id_},n.prototype.name=function(){return this.name_},n.prototype.children=function(){return this.children_},n.prototype.getChildById=function(n){return this.childIndex_[n]},n.prototype.getChild=function(n){return this.childNameIndex_[n]},n.prototype.addChild=function(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?this.children_.length:arguments[2],i=void 0,u=void 0,e,f,s,l;if("string"==typeof t){if(u=t,r||(r={}),r===!0&&(h["default"].warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),r={}),e=r.componentClass||c["default"](u),r.name=u,f=n.getComponent(e),!f)throw new Error("Component "+e+" does not exist");if("function"!=typeof f)return null;i=new f(this.player_||this,r)}else i=t;return(this.children_.splice(o,0,i),"function"==typeof i.id&&(this.childIndex_[i.id()]=i),u=u||i.name&&i.name(),u&&(this.childNameIndex_[u]=i),"function"==typeof i.el&&i.el())&&(s=this.contentEl().children,l=s[o]||null,this.contentEl().insertBefore(i.el(),l)),i},n.prototype.removeChild=function(n){var i,t,r;if("string"==typeof n&&(n=this.getChild(n)),n&&this.children_){for(i=!1,t=this.children_.length-1;t>=0;t--)if(this.children_[t]===n){i=!0;this.children_.splice(t,1);break}i&&(this.childIndex_[n.id()]=null,this.childNameIndex_[n.name()]=null,r=n.el(),r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(n.el()))}},n.prototype.initChildren=function(){var t=this,i=this.options_.children;i&&!function(){var u=t.options_,f=function(n){var r=n.name,i=n.opts,f;(void 0!==u[r]&&(i=u[r]),i!==!1)&&(i===!0&&(i={}),i.playerOptions=t.options_.playerOptions,f=t.addChild(r,i),f&&(t[r]=f))},r=void 0,e=n.getComponent("Tech");r=Array.isArray(i)?i:Object.keys(i);r.concat(Object.keys(t.options_).filter(function(n){return!r.some(function(t){return"string"==typeof t?n===t:n===t.name})})).map(function(n){var r=void 0,u=void 0;return"string"==typeof n?(r=n,u=i[r]||t.options_[r]||{}):(r=n.name,u=n),{name:r,opts:u}}).filter(function(t){var i=n.getComponent(t.opts.componentClass||c["default"](t.name));return i&&!e.isTech(i)}).forEach(f)}()},n.prototype.buildCSSClass=function(){return""},n.prototype.on=function(n,t,i){var r=this;return"string"==typeof n||Array.isArray(n)?e.on(this.el_,n,f.bind(this,t)):!function(){var u=n,h=t,o=f.bind(r,i),c=function(){return r.off(u,h,o)},s;c.guid=o.guid;r.on("dispose",c);s=function(){return r.off("dispose",c)};s.guid=o.guid;n.nodeName?(e.on(u,h,o),e.on(u,"dispose",s)):"function"==typeof n.on&&(u.on(h,o),u.on("dispose",s))}(),this},n.prototype.off=function(n,t,i){if(!n||"string"==typeof n||Array.isArray(n))e.off(this.el_,n,t);else{var u=n,o=t,r=f.bind(this,i);this.off("dispose",r);n.nodeName?(e.off(u,o,r),e.off(u,"dispose",r)):(u.off(o,r),u.off("dispose",r))}return this},n.prototype.one=function(n,t,i){var r=this,u=arguments;return"string"==typeof n||Array.isArray(n)?e.one(this.el_,n,f.bind(this,t)):!function(){var e=n,o=t,s=f.bind(r,i),h=function c(){r.off(e,o,c);s.apply(null,u)};h.guid=s.guid;r.on(e,o,h)}(),this},n.prototype.trigger=function(n,t){return e.trigger(this.el_,n,t),this},n.prototype.ready=function(n){var t=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];return n&&(this.isReady_?t?n.call(this):this.setTimeout(n,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(n))),this},n.prototype.triggerReady=function(){this.isReady_=!0;this.setTimeout(function(){var n=this.readyQueue_;this.readyQueue_=[];n&&n.length>0&&n.forEach(function(n){n.call(this)},this);this.trigger("ready")},1)},n.prototype.$=function(n,t){return u.$(n,t||this.contentEl())},n.prototype.$$=function(n,t){return u.$$(n,t||this.contentEl())},n.prototype.hasClass=function(n){return u.hasElClass(this.el_,n)},n.prototype.addClass=function(n){return u.addElClass(this.el_,n),this},n.prototype.removeClass=function(n){return u.removeElClass(this.el_,n),this},n.prototype.toggleClass=function(n,t){return u.toggleElClass(this.el_,n,t),this},n.prototype.show=function(){return this.removeClass("vjs-hidden"),this},n.prototype.hide=function(){return this.addClass("vjs-hidden"),this},n.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},n.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},n.prototype.width=function(n,t){return this.dimension("width",n,t)},n.prototype.height=function(n,t){return this.dimension("height",n,t)},n.prototype.dimensions=function(n,t){return this.width(n,!0).height(t)},n.prototype.dimension=function(n,t,i){if(void 0!==t)return(null===t||t!==t)&&(t=0),this.el_.style[n]=-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?t:"auto"===t?"":t+"px",i||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[n],u=r.indexOf("px");return-1!==u?parseInt(r.slice(0,u),10):parseInt(this.el_["offset"+c["default"](n)],10)},n.prototype.emitTapEvents=function(){var r=0,n=null,u=10,f=200,t=void 0,i;this.on("touchstart",function(i){1===i.touches.length&&(n=it["default"]({},i.touches[0]),r=(new Date).getTime(),t=!0)});this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(n){var r=i.touches[0].pageX-n.pageX,f=i.touches[0].pageY-n.pageY,e=Math.sqrt(r*r+f*f);e>u&&(t=!1)}});i=function(){t=!1};this.on("touchleave",i);this.on("touchcancel",i);this.on("touchend",function(i){if(n=null,t===!0){var u=(new Date).getTime()-r;f>u&&(i.preventDefault(),this.trigger("tap"))}})},n.prototype.enableTouchActivity=function(){var n,t,i;if(this.player()&&this.player().reportUserActivity){n=f.bind(this.player(),this.player().reportUserActivity);t=void 0;this.on("touchstart",function(){n();this.clearInterval(t);t=this.setInterval(n,250)});i=function(){n();this.clearInterval(t)};this.on("touchmove",n);this.on("touchend",i);this.on("touchcancel",i)}},n.prototype.setTimeout=function(n,t){n=f.bind(this,n);var i=r["default"].setTimeout(n,t),u=function(){this.clearTimeout(i)};return u.guid="vjs-timeout-"+i,this.on("dispose",u),i},n.prototype.clearTimeout=function(n){r["default"].clearTimeout(n);var t=function(){};return t.guid="vjs-timeout-"+n,this.off("dispose",t),n},n.prototype.setInterval=function(n,t){n=f.bind(this,n);var i=r["default"].setInterval(n,t),u=function(){this.clearInterval(i)};return u.guid="vjs-interval-"+i,this.on("dispose",u),i},n.prototype.clearInterval=function(n){r["default"].clearInterval(n);var t=function(){};return t.guid="vjs-interval-"+n,this.off("dispose",t),n},n.registerComponent=function(t,i){return n.components_||(n.components_={}),n.components_[t]=i,i},n.getComponent=function(t){return n.components_&&n.components_[t]?n.components_[t]:r["default"]&&r["default"].videojs&&r["default"].videojs[t]?(h["default"].warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),r["default"].videojs[t]):void 0},n.extend=function(t){var u,i,r;t=t||{};h["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");u=t.init||t.init||this.prototype.init||this.prototype.init||function(){};i=function(){u.apply(this,arguments)};i.prototype=Object.create(this.prototype);i.prototype.constructor=i;i.extend=n.extend;for(r in t)t.hasOwnProperty(r)&&(i.prototype[r]=t[r]);return i},n}();a.registerComponent("Component",a);i["default"]=a;t.exports=i["default"]},{"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/guid.js":135,"./utils/log.js":136,"./utils/merge-options.js":137,"./utils/to-title-case.js":140,"global/window":2,"object.assign":45}],67:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../component.js"),f=r(s),h=n("./play-toggle.js"),c=(r(h),n("./time-controls/current-time-display.js")),l=(r(c),n("./time-controls/duration-display.js")),a=(r(l),n("./time-controls/time-divider.js")),v=(r(a),n("./time-controls/remaining-time-display.js")),y=(r(v),n("./live-display.js")),p=(r(y),n("./progress-control/progress-control.js")),w=(r(p),n("./fullscreen-toggle.js")),b=(r(w),n("./volume-control/volume-control.js")),k=(r(b),n("./volume-menu-button.js")),d=(r(k),n("./mute-toggle.js")),g=(r(d),n("./text-track-controls/chapters-button.js")),nt=(r(g),n("./text-track-controls/subtitles-button.js")),tt=(r(nt),n("./text-track-controls/captions-button.js")),it=(r(tt),n("./playback-rate-menu/playback-rate-menu-button.js")),rt=(r(it),n("./spacer-controls/custom-control-spacer.js")),u=(r(rt),function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-control-bar"},{role:"group"})},t}(f["default"]));u.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","subtitlesButton","captionsButton","fullscreenToggle"]};f["default"].registerComponent("ControlBar",u);i["default"]=u;t.exports=i["default"]},{"../component.js":66,"./fullscreen-toggle.js":68,"./live-display.js":69,"./mute-toggle.js":70,"./play-toggle.js":71,"./playback-rate-menu/playback-rate-menu-button.js":72,"./progress-control/progress-control.js":77,"./spacer-controls/custom-control-spacer.js":79,"./text-track-controls/captions-button.js":82,"./text-track-controls/chapters-button.js":83,"./text-track-controls/subtitles-button.js":86,"./time-controls/current-time-display.js":89,"./time-controls/duration-display.js":90,"./time-controls/remaining-time-display.js":91,"./time-controls/time-divider.js":92,"./volume-control/volume-control.js":94,"./volume-menu-button.js":96}],68:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../button.js"),s=u(o),h=n("../component.js"),c=u(h),r=function(n){function t(){f(this,t);n.apply(this,arguments)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},t}(s["default"]);r.prototype.controlText_="Fullscreen";c["default"].registerComponent("FullscreenToggle",r);i["default"]=r;t.exports=i["default"]},{"../button.js":63,"../component.js":66}],69:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../component"),r=e(h),c=n("../utils/dom.js"),l=f(c),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.updateShowing();this.on(this.player(),"durationchange",this.updateShowing)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"<\/span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},t}(r["default"]);r["default"].registerComponent("LiveDisplay",u);i["default"]=u;t.exports=i["default"]},{"../component":66,"../utils/dom.js":131}],70:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../button"),c=u(h),l=n("../component"),a=u(l),v=n("../utils/dom.js"),f=e(v),r=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"volumechange",this.update);i.tech_&&i.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden");this.on(i,"loadstart",function(){this.update();i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return s(t,n),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.muted(this.player_.muted()?!1:!0)},t.prototype.update=function(){var i=this.player_.volume(),n=3,r,t;for(0===i||this.player_.muted()?n=0:.33>i?n=1:.67>i&&(n=2),r=this.player_.muted()?"Unmute":"Mute",this.controlText()!==r&&this.controlText(r),t=0;4>t;t++)f.removeElClass(this.el_,"vjs-vol-"+t);f.addElClass(this.el_,"vjs-vol-"+n)},t}(c["default"]);r.prototype.controlText_="Mute";a["default"].registerComponent("MuteToggle",r);i["default"]=r;t.exports=i["default"]},{"../button":63,"../component":66,"../utils/dom.js":131}],71:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../button.js"),s=u(o),h=n("../component.js"),c=u(h),r=function(n){function t(i,r){f(this,t);n.call(this,i,r);this.on(i,"play",this.handlePlay);this.on(i,"pause",this.handlePause)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handlePlay=function(){this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")},t.prototype.handlePause=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")},t}(s["default"]);r.prototype.controlText_="Play";c["default"].registerComponent("PlayToggle",r);i["default"]=r;t.exports=i["default"]},{"../button.js":63,"../component.js":66}],72:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../menu/menu-button.js"),h=r(s),c=n("../../menu/menu.js"),l=r(c),a=n("./playback-rate-menu-item.js"),v=r(a),y=n("../../component.js"),p=r(y),w=n("../../utils/dom.js"),b=f(w),u=function(n){function t(i,r){e(this,t);n.call(this,i,r);this.updateVisibility();this.updateLabel();this.on(i,"loadstart",this.updateVisibility);this.on(i,"ratechange",this.updateLabel)}return o(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this);return this.labelEl_=b.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.prototype.createMenu=function(){var i=new l["default"](this.player()),t=this.playbackRates(),n;if(t)for(n=t.length-1;n>=0;n--)i.addChild(new v["default"](this.player(),{rate:t[n]+"x"}));return i},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(){for(var r=this.player().playbackRate(),n=this.playbackRates(),i=n[0],t=0;t<n.length;t++)if(n[t]>r){i=n[t];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(h["default"]);u.prototype.controlText_="Playback Rate";p["default"].registerComponent("PlaybackRateMenuButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-button.js":103,"../../menu/menu.js":105,"../../utils/dom.js":131,"./playback-rate-menu-item.js":73}],73:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../../menu/menu-item.js"),s=u(o),h=n("../../component.js"),c=u(h),r=function(n){function t(i,r){f(this,t);var u=r.rate,e=parseFloat(u,10);r.label=u;r.selected=1===e;n.call(this,i,r);this.label=u;this.rate=e;this.on(i,"ratechange",this.update)}return e(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player().playbackRate(this.rate)},t.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},t}(s["default"]);r.prototype.contentElType="button";c["default"].registerComponent("PlaybackRateMenuItem",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-item.js":104}],74:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),r=e(h),c=n("../../utils/dom.js"),l=f(c),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"progress",this.update)}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"<\/span>: 0%<\/span>"})},t.prototype.update=function(){var t=this.player_.buffered(),o=this.player_.duration(),r=this.player_.bufferedEnd(),u=this.el_.children,f=function(n,t){var i=n/t||0;return 100*(i>=1?1:i)+"%"},n;for(this.el_.style.width=f(r,o),n=0;n<t.length;n++){var e=t.start(n),s=t.end(n),i=u[n];i||(i=this.el_.appendChild(l.createEl()));i.style.left=f(e,r);i.style.width=f(s-e,r)}for(n=u.length;n>t.length;n--)this.el_.removeChild(u[n-1])},t}(r["default"]);r["default"].registerComponent("LoadProgressBar",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131}],75:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n("../../component.js"),f=r(c),l=n("../../utils/dom.js"),e=u(l),a=n("../../utils/fn.js"),v=u(a),y=n("../../utils/format-time.js"),p=r(y),w=n("lodash-compat/function/throttle"),b=r(w),o=function(n){function t(i,r){var u=this;s(this,t);n.call(this,i,r);this.update(0,0);i.on("ready",function(){u.on(i.controlBar.progressControl.el(),"mousemove",b["default"](v.bind(u,u.handleMouseMove),25))})}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.handleMouseMove=function(n){var t=this.player_.duration(),i=this.calculateDistance(n)*t,r=n.pageX-e.findElPosition(this.el().parentNode).left;this.update(i,r)},t.prototype.update=function(n,t){var i=p["default"](n,this.player_.duration());this.el().style.left=t+"px";this.el().setAttribute("data-current-time",i)},t.prototype.calculateDistance=function(n){return e.getPointerPosition(this.el().parentNode,n).x},t}(f["default"]);f["default"].registerComponent("MouseTimeDisplay",o);i["default"]=o;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/fn.js":133,"../../utils/format-time.js":134,"lodash-compat/function/throttle":7}],76:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/fn.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.updateDataAttr();this.on(i,"timeupdate",this.updateDataAttr);i.ready(l.bind(this,this.updateDataAttr))}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"<\/span>: 0%<\/span>"})},t.prototype.updateDataAttr=function(){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",v["default"](n,this.player_.duration()))},t}(u["default"]);u["default"].registerComponent("PlayProgressBar",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../utils/fn.js":133,"../../utils/format-time.js":134}],77:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),f=r(s),h=n("./seek-bar.js"),c=(r(h),n("./mouse-time-display.js")),u=(r(c),function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(f["default"]));u.prototype.options_={children:["seekBar"]};f["default"].registerComponent("ProgressControl",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"./mouse-time-display.js":75,"./seek-bar.js":78}],78:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../slider/slider.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("./load-progress-bar.js"),v=(r(a),n("./play-progress-bar.js")),y=(r(v),n("../../utils/fn.js")),p=f(y),w=n("../../utils/format-time.js"),b=r(w),k=n("object.assign"),u=(r(k),function(n){function t(i,r){e(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateARIAAttributes);i.ready(p.bind(this,this.updateARIAAttributes))}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"video progress bar"})},t.prototype.updateARIAAttributes=function(){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2));this.el_.setAttribute("aria-valuetext",b["default"](n,this.player_.duration()))},t.prototype.getPercent=function(){var n=this.player_.currentTime()/this.player_.duration();return n>=1?1:n},t.prototype.handleMouseDown=function(t){n.prototype.handleMouseDown.call(this,t);this.player_.scrubbing(!0);this.videoWasPlaying=!this.player_.paused();this.player_.pause()},t.prototype.handleMouseMove=function(n){var t=this.calculateDistance(n)*this.player_.duration();t===this.player_.duration()&&(t-=.1);this.player_.currentTime(t)},t.prototype.handleMouseUp=function(t){n.prototype.handleMouseUp.call(this,t);this.player_.scrubbing(!1);this.videoWasPlaying&&this.player_.play()},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t}(h["default"]));u.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"};u.prototype.playerEvent="timeupdate";l["default"].registerComponent("SeekBar",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../slider/slider.js":113,"../../utils/fn.js":133,"../../utils/format-time.js":134,"./load-progress-bar.js":74,"./play-progress-bar.js":76,"object.assign":45}],79:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./spacer.js"),s=r(o),h=n("../../component.js"),c=r(h),u=function(n){function t(){f(this,t);n.apply(this,arguments)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="&nbsp;",t},t}(s["default"]);c["default"].registerComponent("CustomControlSpacer",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"./spacer.js":80}],80:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(r["default"]);r["default"].registerComponent("Spacer",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66}],81:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-menu-item.js"),s=r(o),h=n("../../component.js"),c=r(h),u=function(n){function t(i,r){f(this,t);r.track={kind:r.kind,player:i,label:r.kind+" settings",selectable:!1,"default":!1,mode:"disabled"};r.selectable=!1;n.call(this,i,r);this.addClass("vjs-texttrack-settings");this.controlText(", opens "+r.kind+" settings dialog")}return e(t,n),t.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show();this.player().getChild("textTrackSettings").el_.focus()},t}(s["default"]);c["default"].registerComponent("CaptionSettingsMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"./text-track-menu-item.js":88}],82:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-button.js"),s=u(o),h=n("../../component.js"),c=u(h),l=n("./caption-settings-menu-item.js"),a=u(l),r=function(n){function t(i,r,u){f(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Captions Menu")}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.prototype.update=function(){var t=2;n.prototype.update.call(this);this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(t=1);this.items&&this.items.length>t?this.show():this.hide()},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||t.push(new a["default"](this.player_,{kind:this.kind_})),n.prototype.createItems.call(this,t)},t}(s["default"]);r.prototype.kind_="captions";r.prototype.controlText_="Captions";c["default"].registerComponent("CaptionsButton",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"./caption-settings-menu-item.js":81,"./text-track-button.js":87}],83:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("./text-track-button.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("./text-track-menu-item.js"),v=r(a),y=n("./chapters-track-menu-item.js"),p=r(y),w=n("../../menu/menu.js"),b=r(w),k=n("../../utils/dom.js"),d=f(k),g=n("../../utils/fn.js"),nt=(f(g),n("../../utils/to-title-case.js")),tt=r(nt),it=n("global/window"),u=(r(it),function(n){function t(i,r,u){e(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Chapters Menu")}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=[],i=this.player_.textTracks(),n,r;if(!i)return t;for(n=0;n<i.length;n++)r=i[n],r.kind===this.kind_&&t.push(new v["default"](this.player_,{track:r}));return t},t.prototype.createMenu=function(){for(var r,t,u,f,h=this,e=this.player_.textTracks()||[],n=void 0,c=this.items=[],i=0,l=e.length;l>i;i++)if(r=e[i],r.kind===this.kind_){n=r;break}if(t=this.menu,(void 0===t&&(t=new b["default"](this.player_),t.contentEl().appendChild(d.createEl("li",{className:"vjs-menu-title",innerHTML:tt["default"](this.kind_),tabIndex:-1}))),n&&null==n.cues)&&(n.mode="hidden",u=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n),u&&u.addEventListener("load",function(){return h.update()})),n&&n.cues&&n.cues.length>0){for(var o=n.cues,s=void 0,i=0,a=o.length;a>i;i++)s=o[i],f=new p["default"](this.player_,{track:n,cue:s}),c.push(f),t.addChild(f);this.addChild(t)}return this.items.length>0&&this.show(),t},t}(h["default"]));u.prototype.kind_="chapters";u.prototype.controlText_="Chapters";l["default"].registerComponent("ChaptersButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu.js":105,"../../utils/dom.js":131,"../../utils/fn.js":133,"../../utils/to-title-case.js":140,"./chapters-track-menu-item.js":84,"./text-track-button.js":87,"./text-track-menu-item.js":88,"global/window":2}],84:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../menu/menu-item.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("../../utils/fn.js"),v=f(a),u=function(n){function t(i,r){e(this,t);var f=r.track,u=r.cue,o=i.currentTime();r.label=u.text;r.selected=u.startTime<=o&&o<u.endTime;n.call(this,i,r);this.track=f;this.cue=u;f.addEventListener("cuechange",v.bind(this,this.update))}return o(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)},t.prototype.update=function(){var n=this.cue,t=this.player_.currentTime();this.selected(n.startTime<=t&&t<n.endTime)},t}(h["default"]);l["default"].registerComponent("ChaptersTrackMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-item.js":104,"../../utils/fn.js":133}],85:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-menu-item.js"),s=r(o),h=n("../../component.js"),c=r(h),u=function(n){function t(i,r){f(this,t);r.track={kind:r.kind,player:i,label:r.kind+" off","default":!1,mode:"disabled"};r.selectable=!0;n.call(this,i,r);this.selected(!0)}return e(t,n),t.prototype.handleTracksChange=function(){for(var t,i=this.player().textTracks(),r=!0,n=0,u=i.length;u>n;n++)if(t=i[n],t.kind===this.track.kind&&"showing"===t.mode){r=!1;break}this.selected(r)},t}(s["default"]);c["default"].registerComponent("OffTextTrackMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"./text-track-menu-item.js":88}],86:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-button.js"),s=u(o),h=n("../../component.js"),c=u(h),r=function(n){function t(i,r,u){f(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Subtitles Menu")}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t}(s["default"]);r.prototype.kind_="subtitles";r.prototype.controlText_="Subtitles";c["default"].registerComponent("SubtitlesButton",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"./text-track-button.js":87}],87:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../menu/menu-button.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("../../utils/fn.js"),v=f(a),y=n("./text-track-menu-item.js"),p=r(y),w=n("./off-text-track-menu-item.js"),b=r(w),u=function(n){function t(i,r){var u,f;e(this,t);n.call(this,i,r);u=this.player_.textTracks();(this.items.length<=1&&this.hide(),u)&&(f=v.bind(this,this.update),u.addEventListener("removetrack",f),u.addEventListener("addtrack",f),this.player_.on("dispose",function(){u.removeEventListener("removetrack",f);u.removeEventListener("addtrack",f)}))}return o(t,n),t.prototype.createItems=function(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t,i,r;if(n.push(new b["default"](this.player_,{kind:this.kind_})),t=this.player_.textTracks(),!t)return n;for(i=0;i<t.length;i++)r=t[i],r.kind===this.kind_&&n.push(new p["default"](this.player_,{selectable:!0,track:r}));return n},t}(h["default"]);l["default"].registerComponent("TextTrackButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-button.js":103,"../../utils/fn.js":133,"./off-text-track-menu-item.js":85,"./text-track-menu-item.js":88}],88:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../menu/menu-item.js"),c=r(h),l=n("../../component.js"),a=r(l),v=n("../../utils/fn.js"),y=e(v),p=n("global/window"),u=r(p),w=n("global/document"),b=r(w),f=function(n){function t(i,r){var s=this,e,f;o(this,t);e=r.track;f=i.textTracks();r.label=e.label||e.language||"Unknown";r.selected=e["default"]||"showing"===e.mode;n.call(this,i,r);this.track=e;f&&!function(){var n=y.bind(s,s.handleTracksChange);f.addEventListener("change",n);s.on("dispose",function(){f.removeEventListener("change",n)})}();f&&void 0===f.onchange&&!function(){var n=void 0;s.on(["tap","click"],function(){if("object"!=typeof u["default"].Event)try{n=new u["default"].Event("change")}catch(t){}n||(n=b["default"].createEvent("Event"),n.initEvent("change",!0,!0));f.dispatchEvent(n)})}()}return s(t,n),t.prototype.handleClick=function(t){var f=this.track.kind,u=this.player_.textTracks(),i,r;if(n.prototype.handleClick.call(this,t),u)for(i=0;i<u.length;i++)r=u[i],r.kind===f&&(r.mode=r===this.track?"showing":"disabled")},t.prototype.handleTracksChange=function(){this.selected("showing"===this.track.mode)},t}(c["default"]);a["default"].registerComponent("TextTrackMenuItem",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-item.js":104,"../../utils/fn.js":133,"global/document":1,"global/window":2}],89:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/dom.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateContent)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time <\/span>0:00'},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),i=this.localize("Current Time"),n=v["default"](t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+i+"<\/span> "+n)},t}(u["default"]);u["default"].registerComponent("CurrentTimeDisplay",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/format-time.js":134}],90:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/dom.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateContent);this.on(i,"loadedmetadata",this.updateContent)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"<\/span> 0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var n=this.player_.duration(),t,i;n&&this.duration_!==n&&(this.duration_=n,t=this.localize("Duration Time"),i=v["default"](n),this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> "+i)},t}(u["default"]);u["default"].registerComponent("DurationDisplay",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/format-time.js":134}],91:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/dom.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateContent)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"<\/span> -0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),n=v["default"](this.player_.remainingTime());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> -"+n)}},t}(u["default"]);u["default"].registerComponent("RemainingTimeDisplay",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/format-time.js":134}],92:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/<\/span><\/div>"})},t}(r["default"]);r["default"].registerComponent("TimeDivider",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66}],93:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../slider/slider.js"),h=u(s),c=n("../../component.js"),l=u(c),a=n("../../utils/fn.js"),v=f(a),y=n("./volume-level.js"),r=(u(y),function(n){function t(i,r){e(this,t);n.call(this,i,r);this.on(i,"volumechange",this.updateARIAAttributes);i.ready(v.bind(this,this.updateARIAAttributes))}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},t.prototype.handleMouseMove=function(n){this.checkMuted();this.player_.volume(this.calculateDistance(n))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(){var n=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",n);this.el_.setAttribute("aria-valuetext",n+"%")},t}(h["default"]));r.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};r.prototype.playerEvent="volumechange";l["default"].registerComponent("VolumeBar",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"../../slider/slider.js":113,"../../utils/fn.js":133,"./volume-level.js":95}],94:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),f=u(s),h=n("./volume-bar.js"),r=(u(h),function(n){function t(i,r){e(this,t);n.call(this,i,r);i.tech_&&i.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden");this.on(i,"loadstart",function(){i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(f["default"]));r.prototype.options_={children:["volumeBar"]};f["default"].registerComponent("VolumeControl",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"./volume-bar.js":93}],95:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"><\/span>'})},t}(r["default"]);r["default"].registerComponent("VolumeLevel",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66}],96:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n("../utils/fn.js"),f=o(c),l=n("../component.js"),a=r(l),v=n("../popup/popup.js"),y=r(v),p=n("../popup/popup-button.js"),w=r(p),b=n("./mute-toggle.js"),e=r(b),k=n("./volume-control/volume-bar.js"),d=r(k),g=n("global/document"),nt=r(g),u=function(n){function t(i){function u(){i.tech_&&i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];s(this,t);void 0===r.inline&&(r.inline=!0);void 0===r.vertical&&(r.vertical=r.inline?!1:!0);r.volumeBar=r.volumeBar||{};r.volumeBar.vertical=!!r.vertical;n.call(this,i,r);this.on(i,"volumechange",this.volumeUpdate);this.on(i,"loadstart",this.volumeUpdate);u.call(this);this.on(i,"loadstart",u);this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")});this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")});this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")});this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return h(t,n),t.prototype.buildCSSClass=function(){var t="";return t=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+n.prototype.buildCSSClass.call(this)+" "+t},t.prototype.createPopup=function(){var n=new y["default"](this.player_,{contentElType:"div"}),t=new d["default"](this.player_,this.options_.volumeBar);return n.addChild(t),this.volumeBar=t,this.attachVolumeBarEvents(),n},t.prototype.handleClick=function(){e["default"].prototype.handleClick.call(this);n.prototype.handleClick.call(this)},t.prototype.attachVolumeBarEvents=function(){this.on(["mousedown","touchdown"],this.handleMouseDown)},t.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove));this.on(nt["default"],["mouseup","touchend"],this.handleMouseUp)},t.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove))},t}(w["default"]);u.prototype.volumeUpdate=e["default"].prototype.update;u.prototype.controlText_="Mute";a["default"].registerComponent("VolumeMenuButton",u);i["default"]=u;t.exports=i["default"]},{"../component.js":66,"../popup/popup-button.js":109,"../popup/popup.js":110,"../utils/fn.js":133,"./mute-toggle.js":70,"./volume-control/volume-bar.js":93,"global/document":1}],97:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("./component"),c=r(h),l=n("./modal-dialog"),f=r(l),a=n("./utils/dom"),v=(e(a),n("./utils/merge-options")),y=r(v),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"error",this.open)}return s(t,n),t.prototype.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var n=this.player().error();return n?this.localize(n.message):""},t}(f["default"]);u.prototype.options_=y["default"](f["default"].prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0});c["default"].registerComponent("ErrorDisplay",u);i["default"]=u;t.exports=i["default"]},{"./component":66,"./modal-dialog":106,"./utils/dom":131,"./utils/merge-options":137}],98:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}i.__esModule=!0;var e=n("./utils/events.js"),u=f(e),r=function(){};r.prototype.allowedEvents_={};r.prototype.on=function(n,t){var i=this.addEventListener;this.addEventListener=Function.prototype;u.on(this,n,t);this.addEventListener=i};r.prototype.addEventListener=r.prototype.on;r.prototype.off=function(n,t){u.off(this,n,t)};r.prototype.removeEventListener=r.prototype.off;r.prototype.one=function(n,t){u.one(this,n,t)};r.prototype.trigger=function(n){var t=n.type||n;"string"==typeof n&&(n={type:t});n=u.fixEvent(n);this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](n);u.trigger(this,n)};r.prototype.dispatchEvent=r.prototype.trigger;i["default"]=r;t.exports=i["default"]},{"./utils/events.js":132}],99:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var u=n("./utils/log"),f=r(u),e=function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(n.super_=t)},o=function(n){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=function(){n.apply(this,arguments)},r={},u;"object"==typeof t?("function"==typeof t.init&&(f["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==Object.prototype.constructor&&(i=t.constructor),r=t):"function"==typeof t&&(i=t);e(i,n);for(u in r)r.hasOwnProperty(u)&&(i.prototype[u]=r[u]);return i};i["default"]=o;t.exports=i["default"]},{"./utils/log":136}],100:[function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}var r;i.__esModule=!0;for(var s=n("global/document"),h=o(s),e={},u=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],c=u[0],f=void 0,r=0;r<u.length;r++)if(u[r][1]in h["default"]){f=u[r];break}if(f)for(r=0;r<f.length;r++)e[c[r]]=f[r];i["default"]=e;t.exports=i["default"]},{"global/document":1}],101:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("./component"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner"})},t}(r["default"]);r["default"].registerComponent("LoadingSpinner",u);i["default"]=u;t.exports=i["default"]},{"./component":66}],102:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}var u;i.__esModule=!0;var e=n("object.assign"),o=f(e),r=function s(n){"number"==typeof n?this.code=n:"string"==typeof n?this.message=n:"object"==typeof n&&o["default"](this,n);this.message||(this.message=s.defaultMessages[this.code]||"")};for(r.prototype.code=0,r.prototype.message="",r.prototype.status=null,r.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],r.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},u=0;u<r.errorTypes.length;u++)r[r.errorTypes[u]]=u,r.prototype[r.errorTypes[u]]=u;i["default"]=r;t.exports=i["default"]},{"object.assign":45}],103:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../clickable-component.js"),h=r(s),c=n("../component.js"),l=r(c),a=n("./menu.js"),v=r(a),y=n("../utils/dom.js"),p=u(y),w=n("../utils/fn.js"),b=u(w),k=n("../utils/to-title-case.js"),d=r(k),f=function(n){function t(i){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];e(this,t);n.call(this,i,r);this.update();this.el_.setAttribute("aria-haspopup",!0);this.el_.setAttribute("role","menuitem");this.on("keydown",this.handleSubmenuKeyPress)}return o(t,n),t.prototype.update=function(){var n=this.createMenu();this.menu&&this.removeChild(this.menu);this.menu=n;this.addChild(n);this.buttonPressed_=!1;this.el_.setAttribute("aria-expanded",!1);this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createMenu=function(){var t=new v["default"](this.player_),n;if(this.options_.title&&t.contentEl().appendChild(p.createEl("li",{className:"vjs-menu-title",innerHTML:d["default"](this.options_.title),tabIndex:-1})),this.items=this.createItems(),this.items)for(n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},t.prototype.createItems=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.one("mouseout",b.bind(this,function(){this.menu.unlockShowing();this.el_.blur()}));this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault()):38===t.which||40===t.which?this.buttonPressed_||(this.pressButton(),t.preventDefault()):n.prototype.handleKeyPress.call(this,t)},t.prototype.handleSubmenuKeyPress=function(n){(27===n.which||9===n.which)&&(this.buttonPressed_&&this.unpressButton(),9!==n.which&&n.preventDefault())},t.prototype.pressButton=function(){this.buttonPressed_=!0;this.menu.lockShowing();this.el_.setAttribute("aria-expanded",!0);this.menu.focus()},t.prototype.unpressButton=function(){this.buttonPressed_=!1;this.menu.unlockShowing();this.el_.setAttribute("aria-expanded",!1);this.el_.focus()},t}(h["default"]);l["default"].registerComponent("MenuButton",f);i["default"]=f;t.exports=i["default"]},{"../clickable-component.js":64,"../component.js":66,"../utils/dom.js":131,"../utils/fn.js":133,"../utils/to-title-case.js":140,"./menu.js":105}],104:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../clickable-component.js"),s=r(o),h=n("../component.js"),c=r(h),l=n("object.assign"),a=r(l),u=function(n){function t(i,r){f(this,t);n.call(this,i,r);this.selectable=r.selectable;this.selected(r.selected);this.selectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitem")}return e(t,n),t.prototype.createEl=function(t,i,r){return n.prototype.createEl.call(this,"li",a["default"]({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},i),r)},t.prototype.handleClick=function(){this.selected(!0)},t.prototype.selected=function(n){this.selectable&&(n?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked",!0),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked",!1),this.controlText(" ")))},t}(s["default"]);c["default"].registerComponent("MenuItem",u);i["default"]=u;t.exports=i["default"]},{"../clickable-component.js":64,"../component.js":66,"object.assign":45}],105:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../component.js"),u=e(h),c=n("../utils/dom.js"),l=r(c),a=n("../utils/fn.js"),v=r(a),y=n("../utils/events.js"),p=r(y),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.focusedChild_=-1;this.on("keydown",this.handleKeyPress)}return s(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",v.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;return this.contentEl_=l.createEl(i,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu"),t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"}),t.setAttribute("role","presentation"),t.appendChild(this.contentEl_),p.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()}),t},t.prototype.handleKeyPress=function(n){37===n.which||40===n.which?(n.preventDefault(),this.stepForward()):(38===n.which||39===n.which)&&(n.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var n=0;void 0!==this.focusedChild_&&(n=this.focusedChild_+1);this.focus(n)},t.prototype.stepBack=function(){var n=0;void 0!==this.focusedChild_&&(n=this.focusedChild_-1);this.focus(n)},t.prototype.focus=function(){var n=arguments.length<=0||void 0===arguments[0]?0:arguments[0],t=this.children();t.length>0&&(0>n?n=0:n>=t.length&&(n=t.length-1),this.focusedChild_=n,t[n].el_.focus())},t}(u["default"]);u["default"].registerComponent("Menu",f);i["default"]=f;t.exports=i["default"]},{"../component.js":66,"../utils/dom.js":131,"../utils/events.js":132,"../utils/fn.js":133}],106:[function(n,t,i){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var v=n("global/document"),s=u(v),y=n("./utils/dom"),r=o(y),p=n("./utils/fn"),h=o(p),w=n("./utils/log"),b=(u(w),n("./component")),c=u(b),k=n("./close-button"),f=(u(k),"vjs-modal-dialog"),d=27,e=function(n){function t(i,u){l(this,t);n.call(this,i,u);this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1;this.closeable(!this.options_.uncloseable);this.content(this.options_.content);this.contentEl_=r.createEl("div",{className:f+"-content"},{role:"document"});this.descEl_=r.createEl("p",{className:f+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")});r.textContent(this.descEl_,this.description());this.el_.appendChild(this.descEl_);this.el_.appendChild(this.contentEl_)}return a(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.buildCSSClass=function(){return f+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(n){n.which===d&&this.closeable()&&this.close()},t.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},t.prototype.description=function(){var n=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(n+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),n},t.prototype.open=function(){if(!this.opened_){var n=this.player();this.trigger("beforemodalopen");this.opened_=!0;(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill();this.wasPlaying_=!n.paused();this.wasPlaying_&&n.pause();this.closeable()&&this.on(s["default"],"keydown",h.bind(this,this.handleKeyPress));n.controls(!1);this.show();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=!0}return this},t.prototype.opened=function(n){return"boolean"==typeof n&&this[n?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var n=this.player();this.trigger("beforemodalclose");this.opened_=!1;this.wasPlaying_&&n.play();this.closeable()&&this.off(s["default"],"keydown",h.bind(this,this.handleKeyPress));n.controls(!0);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.options_.temporary&&this.dispose()}return this},t.prototype.closeable=function(n){var i,t,r;return"boolean"==typeof n&&(i=this.closeable_=!!n,t=this.getChild("closeButton"),i&&!t&&(r=this.contentEl_,this.contentEl_=this.el_,t=this.addChild("closeButton"),this.contentEl_=r,this.on(t,"close",this.close)),!i&&t&&(this.off(t,"close",this.close),this.removeChild(t),t.dispose())),this.closeable_},t.prototype.fill=function(){return this.fillWith(this.content())},t.prototype.fillWith=function(n){var t=this.contentEl(),i=t.parentNode,u=t.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),r.insertContent(t,n),this.trigger("modalfill"),u?i.insertBefore(t,u):i.appendChild(t),this},t.prototype.empty=function(){return this.trigger("beforemodalempty"),r.emptyEl(this.contentEl()),this.trigger("modalempty"),this},t.prototype.content=function(n){return"undefined"!=typeof n&&(this.content_=n),this.content_},t}(c["default"]);e.prototype.options_={temporary:!0};c["default"].registerComponent("ModalDialog",e);i["default"]=e;t.exports=i["default"]},{"./close-button":65,"./component":66,"./utils/dom":131,"./utils/fn":133,"./utils/log":136,"global/document":1}],107:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function tt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function it(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var l;i.__esModule=!0;var rt=n("./component.js"),h=r(rt),ut=n("global/document"),u=r(ut),ft=n("global/window"),k=r(ft),et=n("./utils/events.js"),a=s(et),ot=n("./utils/dom.js"),e=s(ot),st=n("./utils/fn.js"),v=s(st),ht=n("./utils/guid.js"),ct=s(ht),lt=n("./utils/browser.js"),at=(s(lt),n("./utils/log.js")),o=r(at),vt=n("./utils/to-title-case.js"),w=r(vt),yt=n("./utils/time-ranges.js"),pt=n("./utils/buffer.js"),wt=n("./utils/stylesheet.js"),d=s(wt),bt=n("./fullscreen-api.js"),g=r(bt),kt=n("./media-error.js"),b=r(kt),dt=n("safe-json-parse/tuple"),gt=r(dt),ni=n("object.assign"),y=r(ni),ti=n("./utils/merge-options.js"),p=r(ti),ii=n("./tracks/text-track-list-converter.js"),nt=r(ii),ri=n("./tech/loader.js"),ui=(r(ri),n("./poster-image.js")),fi=(r(ui),n("./tracks/text-track-display.js")),ei=(r(fi),n("./loading-spinner.js")),oi=(r(ei),n("./big-play-button.js")),si=(r(oi),n("./control-bar/control-bar.js")),hi=(r(si),n("./error-display.js")),ci=(r(hi),n("./tracks/text-track-settings.js")),li=(r(ci),n("./modal-dialog")),ai=r(li),vi=n("./tech/tech.js"),c=r(vi),yi=n("./tech/html5.js"),f=(r(yi),function(n){function t(i,r,u){var f=this,s;if(tt(this,t),i.id=i.id||"vjs_video_"+ct.newGUID(),r=y["default"](t.getTagSettings(i),r),r.initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,n.call(this,null,r,u),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=i;this.tagAttributes=i&&e.getElAttributes(i);this.language(this.options_.language);r.languages?!function(){var n={};Object.getOwnPropertyNames(r.languages).forEach(function(t){n[t.toLowerCase()]=r.languages[t]});f.languages_=n}():this.languages_=t.prototype.options_.languages;this.cache_={};this.poster_=r.poster||"";this.controls_=!!r.controls;i.controls=!1;this.scrubbing_=!1;this.el_=this.createEl();s=p["default"](this.options_);r.plugins&&!function(){var n=r.plugins;Object.getOwnPropertyNames(n).forEach(function(t){"function"==typeof this[t]?this[t](n[t]):o["default"].error("Unable to find plugin:",t)},f)}();this.options_.playerOptions=s;this.initChildren();this.isAudio("audio"===i.nodeName.toLowerCase());this.addClass(this.controls()?"vjs-controls-enabled":"vjs-controls-disabled");this.isAudio()&&this.addClass("vjs-audio");this.flexNotSupported_()&&this.addClass("vjs-no-flex");t.players[this.id_]=this;this.userActive(!0);this.reportUserActivity();this.listenForUserActivity_();this.on("fullscreenchange",this.handleFullscreenChange_);this.on("stageclick",this.handleStageClick_)}return it(t,n),t.prototype.dispose=function(){this.trigger("dispose");this.off("dispose");this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_);t.players[this.id_]=null;this.tag&&this.tag.player&&(this.tag.player=null);this.el_&&this.el_.player&&(this.el_.player=null);this.tech_&&this.tech_.dispose();n.prototype.dispose.call(this)},t.prototype.createEl=function(){var i=this.el_=n.prototype.createEl.call(this,"div"),t=this.tag,r,u,f;return t.removeAttribute("width"),t.removeAttribute("height"),r=e.getElAttributes(t),Object.getOwnPropertyNames(r).forEach(function(n){"class"===n?i.className=r[n]:i.setAttribute(n,r[n])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=i.player=this,this.addClass("vjs-paused"),this.styleEl_=d.createStyleElement("vjs-styles-dimensions"),u=e.$(".vjs-styles-defaults"),f=e.$("head"),f.insertBefore(this.styleEl_,u?u.nextSibling:f.firstChild),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),t.initNetworkState_=t.networkState,t.parentNode&&t.parentNode.insertBefore(i,t),e.insertElFirst(t,i),this.children_.unshift(t),this.el_=i,i},t.prototype.width=function(n){return this.dimension("width",n)},t.prototype.height=function(n){return this.dimension("height",n)},t.prototype.dimension=function(n,t){var i=n+"_",r;if(void 0===t)return this[i]||0;if(""===t)this[i]=void 0;else{if(r=parseFloat(t),isNaN(r))return o["default"].error('Improper value "'+t+'" supplied for for '+n),this;this[i]=r}return this.updateStyleEl_(),this},t.prototype.fluid=function(n){return void 0===n?!!this.fluid_:(this.fluid_=!!n,void(n?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")))},t.prototype.aspectRatio=function(n){if(void 0===n)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(n))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=n;this.fluid(!0);this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){var i=void 0,u=void 0,f=void 0,n=void 0,r,t;f=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9";r=f.split(":");t=r[1]/r[0];i=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/t:this.videoWidth()||300;u=void 0!==this.height_?this.height_:i*t;n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions";this.addClass(n);d.setTextContent(this.styleEl_,"\n      ."+n+" {\n        width: "+i+"px;\n        height: "+u+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*t+"%;\n      }\n    ")},t.prototype.loadTech_=function(n,t){var i,r;this.tech_&&this.unloadTech_();"Html5"!==n&&this.tag&&(c["default"].getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null);this.techName_=n;this.isReady_=!1;i=y["default"]({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:t,playerId:this.id(),techId:this.id()+"_"+n+"_api",textTracks:this.textTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[n.toLowerCase()]);this.tag&&(i.tag=this.tag);t&&(this.currentType_=t.type,t.src===this.cache_.src&&this.cache_.currentTime>0&&(i.startTime=this.cache_.currentTime),this.cache_.src=t.src);r=c["default"].getTech(n);r||(r=h["default"].getComponent(n));this.tech_=new r(i);this.tech_.ready(v.bind(this,this.handleTechReady_),!0);nt["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_);this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,"canplay",this.handleTechCanPlay_);this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_);this.on(this.tech_,"playing",this.handleTechPlaying_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);this.on(this.tech_,"seeked",this.handleTechSeeked_);this.on(this.tech_,"play",this.handleTechPlay_);this.on(this.tech_,"firstplay",this.handleTechFirstPlay_);this.on(this.tech_,"pause",this.handleTechPause_);this.on(this.tech_,"progress",this.handleTechProgress_);this.on(this.tech_,"durationchange",this.handleTechDurationChange_);this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_);this.on(this.tech_,"error",this.handleTechError_);this.on(this.tech_,"suspend",this.handleTechSuspend_);this.on(this.tech_,"abort",this.handleTechAbort_);this.on(this.tech_,"emptied",this.handleTechEmptied_);this.on(this.tech_,"stalled",this.handleTechStalled_);this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_);this.on(this.tech_,"loadeddata",this.handleTechLoadedData_);this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_);this.on(this.tech_,"ratechange",this.handleTechRateChange_);this.on(this.tech_,"volumechange",this.handleTechVolumeChange_);this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_);this.on(this.tech_,"loadedmetadata",this.updateStyleEl_);this.on(this.tech_,"posterchange",this.handleTechPosterChange_);this.usingNativeControls(this.techGet_("controls"));this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_();this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||e.insertElFirst(this.tech_.el(),this.el());this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){this.textTracks_=this.textTracks();this.textTracksJson_=nt["default"].textTracksToJson(this.tech_);this.isReady_=!1;this.tech_.dispose();this.tech_=!1},t.prototype.tech=function(n){if(n&&n.IWillNotUseThisInPlugins)return this.tech_;var t="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";throw k["default"].alert(t),new Error(t);},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_();this.on(this.tech_,"mousedown",this.handleTechClick_);this.on(this.tech_,"touchstart",this.handleTechTouchStart_);this.on(this.tech_,"touchmove",this.handleTechTouchMove_);this.on(this.tech_,"touchend",this.handleTechTouchEnd_);this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_);this.off(this.tech_,"touchstart",this.handleTechTouchStart_);this.off(this.tech_,"touchmove",this.handleTechTouchMove_);this.off(this.tech_,"touchend",this.handleTechTouchEnd_);this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){this.triggerReady();this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume);this.handleTechPosterChange_();this.handleTechDurationChange_();this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended");this.error(null);this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(n){return void 0!==n?(this.hasStarted_!==n&&(this.hasStarted_=n,n?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(!0);this.trigger("play")},t.prototype.handleTechWaiting_=function(){this.addClass("vjs-waiting");this.trigger("waiting")},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting");this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting");this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking");this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking");this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime);this.addClass("vjs-has-started");this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")},t.prototype.handleTechProgress_=function(){this.trigger("progress")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended");this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause();this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(n){0===n.button&&this.controls()&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(n){n.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(n,t){t&&this.isFullscreen(t.isFullscreen);this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var n=this.tech_.error();this.error(n&&n.code)},t.prototype.handleTechSuspend_=function(){this.trigger("suspend")},t.prototype.handleTechAbort_=function(){this.trigger("abort")},t.prototype.handleTechEmptied_=function(){this.trigger("emptied")},t.prototype.handleTechStalled_=function(){this.trigger("stalled")},t.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},t.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},t.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},t.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},t.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},t.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(n,t){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[n](t)},!0);else try{this.tech_[n](t)}catch(i){throw o["default"](i),i;}},t.prototype.techGet_=function(n){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[n]()}catch(t){throw void 0===this.tech_[n]?o["default"]("Video.js: "+n+" method not defined for "+this.techName_+" playback technology.",t):"TypeError"===t.name?(o["default"]("Video.js: "+n+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1):o["default"](t),t;}},t.prototype.play=function(){return this.techCall_("play"),this},t.prototype.pause=function(){return this.techCall_("pause"),this},t.prototype.paused=function(){return this.techGet_("paused")===!1?!1:!0},t.prototype.scrubbing=function(n){return void 0!==n?(this.scrubbing_=!!n,n?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},t.prototype.currentTime=function(n){return void 0!==n?(this.techCall_("setCurrentTime",n),this):this.cache_.currentTime=this.techGet_("currentTime")||0},t.prototype.duration=function(n){return void 0===n?this.cache_.duration||0:(n=parseFloat(n)||0,0>n&&(n=1/0),n!==this.cache_.duration&&(this.cache_.duration=n,n===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.buffered=function(){var n=this.techGet_("buffered");return n&&n.length||(n=yt.createTimeRange(0,0)),n},t.prototype.bufferedPercent=function(){return pt.bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),n=t.end(t.length-1);return n>i&&(n=i),n},t.prototype.volume=function(n){var t=void 0;return void 0!==n?(t=Math.max(0,Math.min(1,parseFloat(n))),this.cache_.volume=t,this.techCall_("setVolume",t),this):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(n){return void 0!==n?(this.techCall_("setMuted",n),this):this.techGet_("muted")||!1},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(n){return void 0!==n?(this.isFullscreen_=!!n,this):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var n=g["default"];return this.isFullscreen(!0),n.requestFullscreen?(a.on(u["default"],n.fullscreenchange,v.bind(this,function t(){this.isFullscreen(u["default"][n.fullscreenElement]);this.isFullscreen()===!1&&a.off(u["default"],n.fullscreenchange,t);this.trigger("fullscreenchange")})),this.el_[n.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.exitFullscreen=function(){var n=g["default"];return this.isFullscreen(!1),n.requestFullscreen?u["default"][n.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.enterFullWindow=function(){this.isFullWindow=!0;this.docOrigOverflow=u["default"].documentElement.style.overflow;a.on(u["default"],"keydown",v.bind(this,this.fullWindowOnEscKey));u["default"].documentElement.style.overflow="hidden";e.addElClass(u["default"].body,"vjs-full-window");this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(n){27===n.keyCode&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1;a.off(u["default"],"keydown",this.fullWindowOnEscKey);u["default"].documentElement.style.overflow=this.docOrigOverflow;e.removeElClass(u["default"].body,"vjs-full-window");this.trigger("exitFullWindow")},t.prototype.canPlayType=function(n){for(var i,t,u=void 0,r=0,f=this.options_.techOrder;r<f.length;r++)if(i=w["default"](f[r]),t=c["default"].getTech(i),t||(t=h["default"].getComponent(i)),t){if(t.isSupported()&&(u=t.canPlayType(n)))return u}else o["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.');return""},t.prototype.selectSource=function(n){var t=this.options_.techOrder.map(w["default"]).map(function(n){return[n,c["default"].getTech(n)||h["default"].getComponent(n)]}).filter(function(n){var i=n[0],t=n[1];return t?t.isSupported():(o["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(n,t,i){var r=void 0;return n.some(function(n){return t.some(function(t){return r=i(n,t),r?!0:void 0})}),r},r=void 0,f=function(n){return function(t,i){return n(i,t)}},u=function(n,t){var i=n[0],r=n[1];if(r.canPlaySource(t))return{source:t,tech:i}};return r=this.options_.sourceOrder?i(n,t,f(u)):i(t,n,u),r||!1},t.prototype.src=function(n){if(void 0===n)return this.techGet_("src");var t=c["default"].getTech(this.techName_);return t||(t=h["default"].getComponent(this.techName_)),Array.isArray(n)?this.sourceList_(n):"string"==typeof n?this.src({src:n}):n instanceof Object&&(n.type&&!t.canPlaySource(n)?this.sourceList_([n]):(this.cache_.src=n.src,this.currentType_=n.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",n):this.techCall_("src",n.src);"auto"===this.options_.preload&&this.load();this.options_.autoplay&&this.play()},!0))),this},t.prototype.sourceList_=function(n){var t=this.selectSource(n);t?t.tech===this.techName_?this.src(t.source):this.loadTech_(t.tech,t.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},t.prototype.load=function(){return this.techCall_("load"),this},t.prototype.reset=function(){return this.loadTech_(w["default"](this.options_.techOrder[0]),null),this.techCall_("reset"),this},t.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},t.prototype.currentType=function(){return this.currentType_||""},t.prototype.preload=function(n){return void 0!==n?(this.techCall_("setPreload",n),this.options_.preload=n,this):this.techGet_("preload")},t.prototype.autoplay=function(n){return void 0!==n?(this.techCall_("setAutoplay",n),this.options_.autoplay=n,this):this.techGet_("autoplay",n)},t.prototype.loop=function(n){return void 0!==n?(this.techCall_("setLoop",n),this.options_.loop=n,this):this.techGet_("loop")},t.prototype.poster=function(n){return void 0===n?this.poster_:(n||(n=""),this.poster_=n,this.techCall_("setPoster",n),this.trigger("posterchange"),this)},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(n){return void 0!==n?(n=!!n,this.controls_!==n&&(this.controls_=n,this.usingNativeControls()&&this.techCall_("setControls",n),n?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},t.prototype.usingNativeControls=function(n){return void 0!==n?(n=!!n,this.usingNativeControls_!==n&&(this.usingNativeControls_=n,n?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},t.prototype.error=function(n){return void 0===n?this.error_||null:null===n?(this.error_=n,this.removeClass("vjs-error"),this.errorDisplay.close(),this):(this.error_=n instanceof b["default"]?n:new b["default"](n),this.addClass("vjs-error"),o["default"].error("(CODE:"+this.error_.code+" "+b["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},t.prototype.ended=function(){return this.techGet_("ended")},t.prototype.seeking=function(){return this.techGet_("seeking")},t.prototype.seekable=function(){return this.techGet_("seekable")},t.prototype.reportUserActivity=function(){this.userActivity_=!0},t.prototype.userActive=function(n){return void 0!==n?(n=!!n,n!==this.userActive_&&(this.userActive_=n,n?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation();n.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},t.prototype.listenForUserActivity_=function(){var t=void 0,r=void 0,u=void 0,n=v.bind(this,this.reportUserActivity),f=function(t){(t.screenX!==r||t.screenY!==u)&&(r=t.screenX,u=t.screenY,n())},e=function(){n();this.clearInterval(t);t=this.setInterval(n,250)},o=function(){n();this.clearInterval(t)},i;this.on("mousedown",e);this.on("mousemove",f);this.on("mouseup",o);this.on("keydown",n);this.on("keyup",n);i=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1;this.userActive(!0);this.clearTimeout(i);var n=this.options_.inactivityTimeout;n>0&&(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},n))}},250)},t.prototype.playbackRate=function(n){return void 0!==n?(this.techCall_("setPlaybackRate",n),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.isAudio=function(n){return void 0!==n?(this.isAudio_=!!n,this):!!this.isAudio_},t.prototype.networkState=function(){return this.techGet_("networkState")},t.prototype.readyState=function(){return this.techGet_("readyState")},t.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},t.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},t.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},t.prototype.addTextTrack=function(n,t,i){return this.tech_&&this.tech_.addTextTrack(n,t,i)},t.prototype.addRemoteTextTrack=function(n){return this.tech_&&this.tech_.addRemoteTextTrack(n)},t.prototype.removeRemoteTextTrack=function(n){this.tech_&&this.tech_.removeRemoteTextTrack(n)},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(n){return void 0===n?this.language_:(this.language_=(""+n).toLowerCase(),this)},t.prototype.languages=function(){return p["default"](t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var i=p["default"](this.options_),r=i.tracks,n,t;for(i.tracks=[],n=0;n<r.length;n++)t=r[n],t=p["default"](t),t.player=void 0,i.tracks[n]=t;return i},t.prototype.createModal=function(n,t){var r=this,i;return t=t||{},t.content=n||"",i=new ai["default"](r,t),r.addChild(i),i.on("dispose",function(){r.removeChild(i)}),i.open()},t.getTagSettings=function(n){var t={sources:[],tracks:[]},r=e.getElAttributes(n),s=r["data-setup"],i,f;if(null!==s){var h=gt["default"](s||"{}"),c=h[0],a=h[1];c&&o["default"].error(c);y["default"](r,a)}if(y["default"](t,r),n.hasChildNodes())for(var l=n.childNodes,u=0,v=l.length;v>u;u++)i=l[u],f=i.nodeName.toLowerCase(),"source"===f?t.sources.push(e.getElAttributes(i)):"track"===f&&t.tracks.push(e.getElAttributes(i));return t},t}(h["default"]));f.players={};l=k["default"].navigator;f.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:u["default"].getElementsByTagName("html")[0].getAttribute("lang")||l.languages&&l.languages[0]||l.userLanguage||l.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."};f.prototype.handleLoadedMetaData_;f.prototype.handleLoadedData_;f.prototype.handleUserActive_;f.prototype.handleUserInactive_;f.prototype.handleTimeUpdate_;f.prototype.handleTechEnded_;f.prototype.handleVolumeChange_;f.prototype.handleError_;f.prototype.flexNotSupported_=function(){var n=u["default"].createElement("i");return!("flexBasis"in n.style||"webkitFlexBasis"in n.style||"mozFlexBasis"in n.style||"msFlexBasis"in n.style||"msFlexOrder"in n.style)};h["default"].registerComponent("Player",f);i["default"]=f;t.exports=i["default"]},{"./big-play-button.js":62,"./component.js":66,"./control-bar/control-bar.js":67,"./error-display.js":97,"./fullscreen-api.js":100,"./loading-spinner.js":101,"./media-error.js":102,"./modal-dialog":106,"./poster-image.js":111,"./tech/html5.js":116,"./tech/loader.js":117,"./tech/tech.js":118,"./tracks/text-track-display.js":122,"./tracks/text-track-list-converter.js":124,"./tracks/text-track-settings.js":126,"./utils/browser.js":128,"./utils/buffer.js":129,"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/guid.js":135,"./utils/log.js":136,"./utils/merge-options.js":137,"./utils/stylesheet.js":138,"./utils/time-ranges.js":139,"./utils/to-title-case.js":140,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":53}],108:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var u=n("./player.js"),f=r(u),e=function(n,t){f["default"].prototype[n]=t};i["default"]=e;t.exports=i["default"]},{"./player.js":107}],109:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../clickable-component.js"),h=r(s),c=n("../component.js"),l=r(c),a=n("./popup.js"),v=(r(a),n("../utils/dom.js")),y=(u(v),n("../utils/fn.js")),p=(u(y),n("../utils/to-title-case.js")),f=(r(p),function(n){function t(i){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];e(this,t);n.call(this,i,r);this.update()}return o(t,n),t.prototype.update=function(){var n=this.createPopup();this.popup&&this.removeChild(this.popup);this.popup=n;this.addChild(n);this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createPopup=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t}(h["default"]));l["default"].registerComponent("PopupButton",f);i["default"]=f;t.exports=i["default"]},{"../clickable-component.js":64,"../component.js":66,"../utils/dom.js":131,"../utils/fn.js":133,"../utils/to-title-case.js":140,"./popup.js":110}],110:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../component.js"),u=e(h),c=n("../utils/dom.js"),l=r(c),a=n("../utils/fn.js"),v=r(a),y=n("../utils/events.js"),p=r(y),f=function(n){function t(){o(this,t);n.apply(this,arguments)}return s(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",v.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;return this.contentEl_=l.createEl(i,{className:"vjs-menu-content"}),t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"}),t.appendChild(this.contentEl_),p.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()}),t},t}(u["default"]);u["default"].registerComponent("Popup",f);i["default"]=f;t.exports=i["default"]},{"../component.js":66,"../utils/dom.js":131,"../utils/events.js":132,"../utils/fn.js":133}],111:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("./clickable-component.js"),c=u(h),l=n("./component.js"),a=u(l),v=n("./utils/fn.js"),y=r(v),p=n("./utils/dom.js"),f=r(p),w=n("./utils/browser.js"),b=r(w),e=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.update();i.on("posterchange",y.bind(this,this.update))}return s(t,n),t.prototype.dispose=function(){this.player().off("posterchange",this.update);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=f.createEl("div",{className:"vjs-poster",tabIndex:-1});return b.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=f.createEl("img"),n.appendChild(this.fallbackImg_)),n},t.prototype.update=function(){var n=this.player().poster();this.setSrc(n);n?this.show():this.hide()},t.prototype.setSrc=function(n){if(this.fallbackImg_)this.fallbackImg_.src=n;else{var t="";n&&(t='url("'+n+'")');this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t}(c["default"]);a["default"].registerComponent("PosterImage",e);i["default"]=e;t.exports=i["default"]},{"./clickable-component.js":64,"./component.js":66,"./utils/browser.js":128,"./utils/dom.js":131,"./utils/fn.js":133}],112:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}var h;i.__esModule=!0;var l=n("./utils/events.js"),a=c(l),v=n("global/document"),u=e(v),y=n("global/window"),p=e(y),r=!1,o=void 0,s=function(){var s=u["default"].getElementsByTagName("video"),h=u["default"].getElementsByTagName("audio"),t=[],n,i,e,c;if(s&&s.length>0)for(n=0,i=s.length;i>n;n++)t.push(s[n]);if(h&&h.length>0)for(n=0,i=h.length;i>n;n++)t.push(h[n]);if(t&&t.length>0)for(n=0,i=t.length;i>n;n++){if(e=t[n],!e||!e.getAttribute){f(1);break}void 0===e.player&&(c=e.getAttribute("data-setup"),null!==c&&o(e))}else r||f(1)},f=function(n,t){o=t;setTimeout(s,n)};"complete"===u["default"].readyState?r=!0:a.one(p["default"],"load",function(){r=!0});h=function(){return r};i.autoSetup=s;i.autoSetupTimeout=f;i.hasLoaded=h},{"./utils/events.js":132,"global/document":1,"global/window":2}],113:[function(n,t,i){"use strict";function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var a=n("../component.js"),e=u(a),v=n("../utils/dom.js"),f=h(v),y=n("global/document"),r=u(y),p=n("object.assign"),o=u(p),s=function(n){function t(i,r){c(this,t);n.call(this,i,r);this.bar=this.getChild(this.options_.barName);this.vertical(!!this.options_.vertical);this.on("mousedown",this.handleMouseDown);this.on("touchstart",this.handleMouseDown);this.on("focus",this.handleFocus);this.on("blur",this.handleBlur);this.on("click",this.handleClick);this.on(i,"controlsvisible",this.update);this.on(i,this.playerEvent,this.update)}return l(t,n),t.prototype.createEl=function(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return i.className=i.className+" vjs-slider",i=o["default"]({tabIndex:0},i),r=o["default"]({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),n.prototype.createEl.call(this,t,i,r)},t.prototype.handleMouseDown=function(n){n.preventDefault();f.blockTextSelection();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(r["default"],"mousemove",this.handleMouseMove);this.on(r["default"],"mouseup",this.handleMouseUp);this.on(r["default"],"touchmove",this.handleMouseMove);this.on(r["default"],"touchend",this.handleMouseUp);this.handleMouseMove(n)},t.prototype.handleMouseMove=function(){},t.prototype.handleMouseUp=function(){f.unblockTextSelection();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(r["default"],"mousemove",this.handleMouseMove);this.off(r["default"],"mouseup",this.handleMouseUp);this.off(r["default"],"touchmove",this.handleMouseMove);this.off(r["default"],"touchend",this.handleMouseUp);this.update()},t.prototype.update=function(){var n,t,i;this.el_&&(n=this.getPercent(),t=this.bar,t&&(("number"!=typeof n||n!==n||0>n||n===1/0)&&(n=0),i=(100*n).toFixed(2)+"%",this.vertical()?t.el().style.height=i:t.el().style.width=i))},t.prototype.calculateDistance=function(n){var t=f.getPointerPosition(this.el_,n);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(r["default"],"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(n){37===n.which||40===n.which?(n.preventDefault(),this.stepBack()):(38===n.which||39===n.which)&&(n.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(r["default"],"keydown",this.handleKeyPress)},t.prototype.handleClick=function(n){n.stopImmediatePropagation();n.preventDefault()},t.prototype.vertical=function(n){return void 0===n?this.vertical_||!1:(this.vertical_=!!n,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal"),this)},t}(e["default"]);e["default"].registerComponent("Slider",s);i["default"]=s;t.exports=i["default"]},{"../component.js":66,"../utils/dom.js":131,"global/document":1,"object.assign":45}],114:[function(n,t,i){"use strict";function r(n){return n.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},n.streamFromParts=function(n,t){return n+"&"+t},n.streamToParts=function(n){var r={connection:"",stream:""},t,i;return n?(t=n.search(/&(?!\w+=)/),i=void 0,-1!==t?i=t+1:(t=i=n.lastIndexOf("/")+1,0===t&&(t=i=n.length)),r.connection=n.substring(0,t),r.stream=n.substring(i,n.length),r):r},n.isStreamingType=function(t){return t in n.streamingFormats},n.RTMP_RE=/^rtmp[set]?:\/\//i,n.isStreamingSrc=function(t){return n.RTMP_RE.test(t)},n.rtmpSourceHandler={},n.rtmpSourceHandler.canPlayType=function(t){return n.isStreamingType(t)?"maybe":""},n.rtmpSourceHandler.canHandleSource=function(t){var i=n.rtmpSourceHandler.canPlayType(t.type);return i?i:n.isStreamingSrc(t.src)?"maybe":""},n.rtmpSourceHandler.handleSource=function(t,i){var r=n.streamToParts(t.src);i.setRtmpConnection(r.connection);i.setRtmpStream(r.stream)},n.registerSourceHandler(n.rtmpSourceHandler),n}i.__esModule=!0;i["default"]=r;t.exports=i["default"]},{}],115:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function k(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function d(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function g(n){var t=n.charAt(0).toUpperCase()+n.slice(1);w["set"+t]=function(t){return this.el_.vjs_setProperty(n,t)}}function y(n){w[n]=function(){return this.el_.vjs_getProperty(n)}}var f;i.__esModule=!0;for(var nt=n("./tech"),c=e(nt),tt=n("../utils/dom.js"),s=v(tt),it=n("../utils/url.js"),p=v(it),h=n("../utils/time-ranges.js"),rt=n("./flash-rtmp"),ut=e(rt),ft=n("../component"),et=e(ft),ot=n("global/window"),u=e(ot),st=n("object.assign"),o=e(st),l=u["default"].navigator,r=function(n){function t(i,r){k(this,t);n.call(this,i,r);i.source&&this.ready(function(){this.setSource(i.source)},!0);i.startTime&&this.ready(function(){this.load();this.play();this.currentTime(i.startTime)},!0);u["default"].videojs=u["default"].videojs||{};u["default"].videojs.Flash=u["default"].videojs.Flash||{};u["default"].videojs.Flash.onReady=t.onReady;u["default"].videojs.Flash.onEvent=t.onEvent;u["default"].videojs.Flash.onError=t.onError;this.on("seeked",function(){this.lastSeekTarget_=void 0})}return d(t,n),t.prototype.createEl=function(){var n=this.options_;n.swf||(n.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var i=n.techId,r=o["default"]({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:n.autoplay,preload:n.preload,loop:n.loop,muted:n.muted},n.flashVars),u=o["default"]({wmode:"opaque",bgcolor:"#000000"},n.params),f=o["default"]({id:i,name:i,"class":"vjs-tech"},n.attributes);return this.el_=t.embed(n.swf,r,u,f),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0);this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(n){return void 0===n?this.currentSrc():this.setSrc(n)},t.prototype.setSrc=function(n){if(n=p.getAbsoluteURL(n),this.el_.vjs_src(n),this.autoplay()){var t=this;this.setTimeout(function(){t.play()},0)}},t.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},t.prototype.setCurrentTime=function(t){var i=this.seekable();i.length&&(t=t>i.start(0)?t:i.start(0),t=t<i.end(i.length-1)?t:i.end(i.length-1),this.lastSeekTarget_=t,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",t),n.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var n=this.duration();return 0===n?h.createTimeRange():h.createTimeRange(0,n)},t.prototype.buffered=function(){var n=this.el_.vjs_getProperty("buffered");return 0===n.length?h.createTimeRange():h.createTimeRange(n[0][0],n[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t}(c["default"]),w=r.prototype,a="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),b="networkState,readyState,initialTime,duration,startOffsetTime,paused,ended,videoTracks,audioTracks,videoWidth,videoHeight".split(","),f=0;f<a.length;f++)y(a[f]),g(a[f]);for(f=0;f<b.length;f++)y(b[f]);r.isSupported=function(){return r.version()[0]>=10};c["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){return n in r.formats?"maybe":""};r.nativeSourceHandler.canHandleSource=function(n){function i(n){var t=p.getFileExtension(n);return t?"video/"+t:""}var t;return t=n.type?n.type.replace(/;.*/,"").toLowerCase():i(n.src),r.nativeSourceHandler.canPlayType(t)};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);r.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};r.onReady=function(n){var i=s.getEl(n),t=i&&i.tech;t&&t.el()&&r.checkReady(t)};r.checkReady=function(n){n.el()&&(n.el().vjs_getProperty?n.triggerReady():this.setTimeout(function(){r.checkReady(n)},50))};r.onEvent=function(n,t){var i=s.getEl(n).tech;i.trigger(t)};r.onError=function(n,t){var i=s.getEl(n).tech;return"srcnotfound"===t?i.error(4):void i.error("FLASH: "+t)};r.version=function(){var n="0,0,0";try{n=new u["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{l.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(l.plugins["Shockwave Flash 2.0"]||l.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return n.split(",")};r.embed=function(n,t,i,u){var f=r.getEmbedCode(n,t,i,u);return s.createEl("div",{innerHTML:f}).childNodes[0]};r.getEmbedCode=function(n,t,i,r){var u="",f="",e="";return t&&Object.getOwnPropertyNames(t).forEach(function(n){u+=n+"="+t[n]+"&amp;"}),i=o["default"]({movie:n,flashvars:u,allowScriptAccess:"always",allowNetworking:"all"},i),Object.getOwnPropertyNames(i).forEach(function(n){f+='<param name="'+n+'" value="'+i[n]+'" />'}),r=o["default"]({data:n,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(n){e+=n+'="'+r[n]+'" '}),'<object type="application/x-shockwave-flash" '+e+">"+f+"<\/object>"};ut["default"](r);et["default"].registerComponent("Flash",r);c["default"].registerTech("Flash",r);i["default"]=r;t.exports=i["default"]},{"../component":66,"../utils/dom.js":131,"../utils/time-ranges.js":139,"../utils/url.js":141,"./flash-rtmp":114,"./tech":118,"global/window":2,"object.assign":45}],116:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o;i.__esModule=!0;var p=n("./tech.js"),c=e(p),w=n("../component"),b=e(w),k=n("../utils/dom.js"),l=s(k),d=n("../utils/url.js"),g=s(d),nt=n("../utils/fn.js"),a=s(nt),tt=n("../utils/log.js"),it=e(tt),rt=n("../utils/browser.js"),u=s(rt),ut=n("global/document"),h=e(ut),ft=n("global/window"),et=e(ft),ot=n("object.assign"),st=e(ot),ht=n("../utils/merge-options.js"),ct=e(ht),r=function(n){function t(i,r){var e,f,l,o;if(v(this,t),n.call(this,i,r),e=i.source,e&&(this.el_.currentSrc!==e.src||i.tag&&3===i.tag.initNetworkState_)?this.setSource(e):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var h=this.el_.childNodes,c=h.length,s=[];c--;)f=h[c],l=f.nodeName.toLowerCase(),"track"===l&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(f),this.remoteTextTracks().addTrack_(f.track)):s.push(f));for(o=0;o<s.length;o++)this.el_.removeChild(s[o])}this.featuresNativeTextTracks&&(this.handleTextTrackChange_=a.bind(this,this.handleTextTrackChange),this.handleTextTrackAdd_=a.bind(this,this.handleTextTrackAdd),this.handleTextTrackRemove_=a.bind(this,this.handleTextTrackRemove),this.proxyNativeTextTracks_());(u.TOUCH_ENABLED&&i.nativeControlsForTouch===!0||u.IS_IPHONE||u.IS_NATIVE_ANDROID)&&this.setControls(!0);this.triggerReady()}return y(t,n),t.prototype.dispose=function(){var i=this.el().textTracks,r=this.textTracks(),u;for(i&&i.removeEventListener&&(i.removeEventListener("change",this.handleTextTrackChange_),i.removeEventListener("addtrack",this.handleTextTrackAdd_),i.removeEventListener("removetrack",this.handleTextTrackRemove_)),u=r.length;u--;)r.removeTrack_(r[u]);t.disposeMediaElement(this.el_);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=this.options_.tag,f,c,e,o,i,r,s;for(n&&this.movingMediaElementInDOM!==!1||(n?(f=n.cloneNode(!0),n.parentNode.insertBefore(f,n),t.disposeMediaElement(n),n=f):(n=h["default"].createElement("video"),c=this.options_.tag&&l.getElAttributes(this.options_.tag),e=ct["default"]({},c),u.TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete e.controls,l.setElAttributes(n,st["default"](e,{id:this.options_.techId,"class":"vjs-tech"})))),o=["autoplay","preload","loop","muted"],i=o.length-1;i>=0;i--)r=o[i],s={},"undefined"!=typeof this.options_[r]&&(s[r]=this.options_[r]),l.setElAttributes(n,s);return n},t.prototype.handleLateInit_=function(n){var i=this,r,t;if(0!==n.networkState&&3!==n.networkState){if(0===n.readyState&&(r=function(){var n=!1,r=function(){n=!0},t;i.on("loadstart",r);return t=function(){n||this.trigger("loadstart")},i.on("loadedmetadata",t),i.ready(function(){this.off("loadstart",r);this.off("loadedmetadata",t);n||this.trigger("loadstart")}),{v:void 0}}(),"object"==typeof r))return r.v;t=["loadstart"];t.push("loadedmetadata");n.readyState>=2&&t.push("loadeddata");n.readyState>=3&&t.push("canplay");n.readyState>=4&&t.push("canplaythrough");this.ready(function(){t.forEach(function(n){this.trigger(n)},this)})}},t.prototype.proxyNativeTextTracks_=function(){var n=this.el().textTracks;n&&n.addEventListener&&(n.addEventListener("change",this.handleTextTrackChange_),n.addEventListener("addtrack",this.handleTextTrackAdd_),n.addEventListener("removetrack",this.handleTextTrackRemove_))},t.prototype.handleTextTrackChange=function(){var n=this.textTracks();this.textTracks().trigger({type:"change",target:n,currentTarget:n,srcElement:n})},t.prototype.handleTextTrackAdd=function(n){this.textTracks().addTrack_(n.track)},t.prototype.handleTextTrackRemove=function(n){this.textTracks().removeTrack_(n.track)},t.prototype.play=function(){this.el_.play()},t.prototype.pause=function(){this.el_.pause()},t.prototype.paused=function(){return this.el_.paused},t.prototype.currentTime=function(){return this.el_.currentTime},t.prototype.setCurrentTime=function(n){try{this.el_.currentTime=n}catch(t){it["default"](t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){return this.el_.duration||0},t.prototype.buffered=function(){return this.el_.buffered},t.prototype.volume=function(){return this.el_.volume},t.prototype.setVolume=function(n){this.el_.volume=n},t.prototype.muted=function(){return this.el_.muted},t.prototype.setMuted=function(n){this.el_.muted=n},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var n=et["default"].navigator.userAgent;if(/Android/.test(n)||!/Chrome|Mac OS X 10.5/.test(n))return!0}return!1},t.prototype.enterFullScreen=function(){var n=this.el_;"webkitDisplayingFullscreen"in n&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})});this.trigger("fullscreenchange",{isFullscreen:!0})});n.paused&&n.networkState<=n.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){n.pause();n.webkitEnterFullScreen()},0)):n.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(n){return void 0===n?this.el_.src:void this.setSrc(n)},t.prototype.setSrc=function(n){this.el_.src=n},t.prototype.load=function(){this.el_.load()},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.poster=function(){return this.el_.poster},t.prototype.setPoster=function(n){this.el_.poster=n},t.prototype.preload=function(){return this.el_.preload},t.prototype.setPreload=function(n){this.el_.preload=n},t.prototype.autoplay=function(){return this.el_.autoplay},t.prototype.setAutoplay=function(n){this.el_.autoplay=n},t.prototype.controls=function(){return this.el_.controls},t.prototype.setControls=function(n){this.el_.controls=!!n},t.prototype.loop=function(){return this.el_.loop},t.prototype.setLoop=function(n){this.el_.loop=n},t.prototype.error=function(){return this.el_.error},t.prototype.seeking=function(){return this.el_.seeking},t.prototype.seekable=function(){return this.el_.seekable},t.prototype.ended=function(){return this.el_.ended},t.prototype.defaultMuted=function(){return this.el_.defaultMuted},t.prototype.playbackRate=function(){return this.el_.playbackRate},t.prototype.played=function(){return this.el_.played},t.prototype.setPlaybackRate=function(n){this.el_.playbackRate=n},t.prototype.networkState=function(){return this.el_.networkState},t.prototype.readyState=function(){return this.el_.readyState},t.prototype.videoWidth=function(){return this.el_.videoWidth},t.prototype.videoHeight=function(){return this.el_.videoHeight},t.prototype.textTracks=function(){return n.prototype.textTracks.call(this)},t.prototype.addTextTrack=function(t,i,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,r):n.prototype.addTextTrack.call(this,t,i,r)},t.prototype.addRemoteTextTrack=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i;return this.featuresNativeTextTracks?(i=h["default"].createElement("track"),t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t["default"]&&(i["default"]=t["default"]),t.id&&(i.id=t.id),t.src&&(i.src=t.src),this.el().appendChild(i),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack_(i.track),i):n.prototype.addRemoteTextTrack.call(this,t)},t.prototype.removeRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return n.prototype.removeRemoteTextTrack.call(this,t);var i=void 0,r=void 0,u=this.remoteTextTrackEls().getTrackElementByTrack_(t);for(this.remoteTextTrackEls().removeTrackElement_(u),this.remoteTextTracks().removeTrack_(t),i=this.$$("track"),r=i.length;r--;)(t===i[r]||t===i[r].track)&&this.el().removeChild(i[r])},t}(c["default"]);r.TEST_VID=h["default"].createElement("video");o=h["default"].createElement("track");o.kind="captions";o.srclang="en";o.label="English";r.TEST_VID.appendChild(o);r.isSupported=function(){try{r.TEST_VID.volume=.5}catch(n){return!1}return!!r.TEST_VID.canPlayType};c["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){try{return r.TEST_VID.canPlayType(n)}catch(t){return""}};r.nativeSourceHandler.canHandleSource=function(n){var t;return n.type?r.nativeSourceHandler.canPlayType(n.type):n.src?(t=g.getFileExtension(n.src),r.nativeSourceHandler.canPlayType("video/"+t)):""};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);r.canControlVolume=function(){var n=r.TEST_VID.volume;return r.TEST_VID.volume=n/2+.1,n!==r.TEST_VID.volume};r.canControlPlaybackRate=function(){var n=r.TEST_VID.playbackRate;return r.TEST_VID.playbackRate=n/2+.1,n!==r.TEST_VID.playbackRate};r.supportsNativeTextTracks=function(){var n;return n=!!r.TEST_VID.textTracks,n&&r.TEST_VID.textTracks.length>0&&(n="number"!=typeof r.TEST_VID.textTracks[0].mode),n&&u.IS_FIREFOX&&(n=!1),!n||"onremovetrack"in r.TEST_VID.textTracks||(n=!1),n};r.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"];r.prototype.featuresVolumeControl=r.canControlVolume();r.prototype.featuresPlaybackRate=r.canControlPlaybackRate();r.prototype.movingMediaElementInDOM=!u.IS_IOS;r.prototype.featuresFullscreenResize=!0;r.prototype.featuresProgressEvents=!0;r.prototype.featuresNativeTextTracks=r.supportsNativeTextTracks();var f=void 0,lt=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,at=/^video\/mp4/i;r.patchCanPlayType=function(){u.ANDROID_VERSION>=4&&(f||(f=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&lt.test(n)?"maybe":f.call(this,n)});u.IS_OLD_ANDROID&&(f||(f=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&at.test(n)?"maybe":f.call(this,n)})};r.unpatchCanPlayType=function(){var n=r.TEST_VID.constructor.prototype.canPlayType;return r.TEST_VID.constructor.prototype.canPlayType=f,f=null,n};r.patchCanPlayType();r.disposeMediaElement=function(n){if(n){for(n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);n.removeAttribute("src");"function"==typeof n.load&&!function(){try{n.load()}catch(t){}}()}};r.resetMediaElement=function(n){if(n){for(var t=n.querySelectorAll("source"),i=t.length;i--;)n.removeChild(t[i]);n.removeAttribute("src");"function"==typeof n.load&&!function(){try{n.load()}catch(t){}}()}};b["default"].registerComponent("Html5",r);c["default"].registerTech("Html5",r);i["default"]=r;t.exports=i["default"]},{"../component":66,"../utils/browser.js":128,"../utils/dom.js":131,"../utils/fn.js":133,"../utils/log.js":136,"../utils/merge-options.js":137,"../utils/url.js":141,"./tech.js":118,"global/document":1,"global/window":2,"object.assign":45}],117:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../component.js"),u=r(s),h=n("./tech.js"),c=r(h),l=n("global/window"),a=(r(l),n("../utils/to-title-case.js")),v=r(a),f=function(n){function t(i,r,f){var s,l,o,h;if(e(this,t),n.call(this,i,r,f),r.playerOptions.sources&&0!==r.playerOptions.sources.length)i.src(r.playerOptions.sources);else for(s=0,l=r.playerOptions.techOrder;s<l.length;s++)if(o=v["default"](l[s]),h=c["default"].getTech(o),o||(h=u["default"].getComponent(o)),h&&h.isSupported()){i.loadTech_(o);break}}return o(t,n),t}(u["default"]);u["default"].registerComponent("MediaLoader",f);i["default"]=f;t.exports=i["default"]},{"../component.js":66,"../utils/to-title-case.js":140,"./tech.js":118,"global/window":2}],118:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function p(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var a;i.__esModule=!0;var w=n("../component"),e=u(w),b=n("../tracks/html-track-element"),k=u(b),d=n("../tracks/html-track-element-list"),g=u(d),nt=n("../utils/merge-options.js"),tt=u(nt),it=n("../tracks/text-track"),rt=u(it),ut=n("../tracks/text-track-list"),h=u(ut),ft=n("../utils/fn.js"),o=v(ft),et=n("../utils/log.js"),c=u(et),s=n("../utils/time-ranges.js"),ot=n("../utils/buffer.js"),st=n("../media-error.js"),l=u(st),ht=n("global/window"),f=u(ht),ct=n("global/document"),lt=u(ct),r=function(n){function t(){var i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1];y(this,t);i.reportTouchActivity=!1;n.call(this,null,i,r);this.hasStarted_=!1;this.on("playing",function(){this.hasStarted_=!0});this.on("loadstart",function(){this.hasStarted_=!1});this.textTracks_=i.textTracks;this.featuresProgressEvents||this.manualProgressOn();this.featuresTimeupdateEvents||this.manualTimeUpdatesOn();(i.nativeCaptions===!1||i.nativeTextTracks===!1)&&(this.featuresNativeTextTracks=!1);this.featuresNativeTextTracks||this.on("ready",this.emulateTextTracks);this.initTextTrackListeners();this.emitTapEvents()}return p(t,n),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange);this.manualProgress=!0;this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(){this.stopTrackingProgress();this.progressInterval=this.setInterval(o.bind(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress");this.bufferedPercent_=n;1===n&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(){this.duration_=this.duration()},t.prototype.buffered=function(){return s.createTimeRange(0,0)},t.prototype.bufferedPercent=function(){return ot.bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime();this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){var t=this.textTracks(),i;if(t)for(i=t.length;i--;)this.removeRemoteTextTrack(t[i]);this.manualProgress&&this.manualProgressOff();this.manualTimeUpdates&&this.manualTimeUpdatesOff();n.prototype.dispose.call(this)},t.prototype.reset=function(){},t.prototype.error=function(n){return void 0!==n&&(this.error_=n instanceof l["default"]?n:new l["default"](n),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?s.createTimeRange(0,0):s.createTimeRange()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTextTrackListeners=function(){var t=o.bind(this,function(){this.trigger("texttrackchange")}),n=this.textTracks();n&&(n.addEventListener("removetrack",t),n.addEventListener("addtrack",t),this.on("dispose",o.bind(this,function(){n.removeEventListener("removetrack",t);n.removeEventListener("addtrack",t)})))},t.prototype.emulateTextTracks=function(){var u=this,n=this.textTracks(),r,t,i;n&&(f["default"].WebVTT||null==this.el().parentNode||(r=lt["default"].createElement("script"),r.src=this.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",this.el().parentNode.appendChild(r),f["default"].WebVTT=!0),t=function(){return u.trigger("texttrackchange")},i=function(){var i,r;for(t(),i=0;i<n.length;i++)r=n[i],r.removeEventListener("cuechange",t),"showing"===r.mode&&r.addEventListener("cuechange",t)},i(),n.addEventListener("change",i),this.on("dispose",function(){n.removeEventListener("change",i)}))},t.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new h["default"],this.textTracks_},t.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new h["default"],this.remoteTextTracks_},t.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new g["default"],this.remoteTextTrackEls_},t.prototype.addTextTrack=function(n,t,i){if(!n)throw new Error("TextTrack kind is required but was not provided");return a(this,n,t,i)},t.prototype.addRemoteTextTrack=function(n){var i=tt["default"](n,{tech:this}),t=new k["default"](i);return this.remoteTextTrackEls().addTrackElement_(t),this.remoteTextTracks().addTrack_(t.track),this.textTracks().addTrack_(t.track),t},t.prototype.removeRemoteTextTrack=function(n){this.textTracks().removeTrack_(n);var t=this.remoteTextTrackEls().getTrackElementByTrack_(n);this.remoteTextTrackEls().removeTrackElement_(t);this.remoteTextTracks().removeTrack_(n)},t.prototype.setPoster=function(){},t.prototype.canPlayType=function(){return""},t.isTech=function(n){return n.prototype instanceof t||n instanceof t||n===t},t.registerTech=function(n,i){if(t.techs_||(t.techs_={}),!t.isTech(i))throw new Error("Tech "+n+" must be a Tech");return t.techs_[n]=i,i},t.getTech=function(n){return t.techs_&&t.techs_[n]?t.techs_[n]:f["default"]&&f["default"].videojs&&f["default"].videojs[n]?(c["default"].warn("The "+n+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),f["default"].videojs[n]):void 0},t}(e["default"]);r.prototype.textTracks_;a=function(n,t,i,r){var u=arguments.length<=4||void 0===arguments[4]?{}:arguments[4],e=n.textTracks(),f;return u.kind=t,i&&(u.label=i),r&&(u.language=r),u.tech=n,f=new rt["default"](u),e.addTrack_(f),f};r.prototype.featuresVolumeControl=!0;r.prototype.featuresFullscreenResize=!1;r.prototype.featuresPlaybackRate=!1;r.prototype.featuresProgressEvents=!1;r.prototype.featuresTimeupdateEvents=!1;r.prototype.featuresNativeTextTracks=!1;r.withSourceHandlers=function(n){n.registerSourceHandler=function(t,i){var r=n.sourceHandlers;r||(r=n.sourceHandlers=[]);void 0===i&&(i=r.length);r.splice(i,0,t)};n.canPlayType=function(t){for(var r=n.sourceHandlers||[],u=void 0,i=0;i<r.length;i++)if(u=r[i].canPlayType(t))return u;return""};n.selectSourceHandler=function(t){for(var r=n.sourceHandlers||[],u=void 0,i=0;i<r.length;i++)if(u=r[i].canHandleSource(t))return r[i];return null};n.canPlaySource=function(t){var i=n.selectSourceHandler(t);return i?i.canHandleSource(t):""};["seekable","duration"].forEach(function(n){var t=this[n];"function"==typeof t&&(this[n]=function(){return this.sourceHandler_&&this.sourceHandler_[n]?this.sourceHandler_[n].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},n.prototype);n.prototype.setSource=function(t){var i=n.selectSourceHandler(t);return i||(n.nativeSourceHandler?i=n.nativeSourceHandler:c["default"].error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_=t,this.sourceHandler_=i.handleSource(t,this),this.on("dispose",this.disposeSourceHandler),this};n.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&this.sourceHandler_.dispose()}};e["default"].registerComponent("Tech",r);e["default"].registerComponent("MediaTechController",r);r.registerTech("Tech",r);i["default"]=r;t.exports=i["default"]},{"../component":66,"../media-error.js":102,"../tracks/html-track-element":120,"../tracks/html-track-element-list":119,"../tracks/text-track":127,"../tracks/text-track-list":125,"../utils/buffer.js":129,"../utils/fn.js":133,"../utils/log.js":136,"../utils/merge-options.js":137,"../utils/time-ranges.js":139,"global/document":1,"global/window":2}],119:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var o=n("../utils/browser.js"),r=f(o),s=n("global/document"),h=u(s),c=function(){function n(){var f=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t,i,u,o;if(e(this,n),t=this,r.IS_IE8){t=h["default"].createElement("custom");for(i in n.prototype)"constructor"!==i&&(t[i]=n.prototype[i])}for(t.trackElements_=[],Object.defineProperty(t,"length",{get:function(){return this.trackElements_.length}}),u=0,o=f.length;o>u;u++)t.addTrackElement_(f[u]);if(r.IS_IE8)return t}return n.prototype.addTrackElement_=function(n){this.trackElements_.push(n)},n.prototype.getTrackElementByTrack_=function(n){for(var i=void 0,t=0,r=this.trackElements_.length;r>t;t++)if(n===this.trackElements_[t].track){i=this.trackElements_[t];break}return i},n.prototype.removeTrackElement_=function(n){for(var t=0,i=this.trackElements_.length;i>t;t++)if(n===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},n}();i["default"]=c;t.exports=i["default"]},{"../utils/browser.js":128,"global/document":1}],120:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n("../utils/browser.js"),f=s(l),a=n("global/document"),v=u(a),y=n("../event-target"),p=u(y),w=n("../tracks/text-track"),b=u(w),e=0,o=2,r=function(n){function t(){var c=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],u,i,s,r;if(h(this,t),n.call(this),u=void 0,i=this,f.IS_IE8){i=v["default"].createElement("custom");for(s in t.prototype)"constructor"!==s&&(i[s]=t.prototype[s])}return r=new b["default"](c),i.kind=r.kind,i.src=r.src,i.srclang=r.language,i.label=r.label,i["default"]=r["default"],Object.defineProperty(i,"readyState",{get:function(){return u}}),Object.defineProperty(i,"track",{get:function(){return r}}),u=e,r.addEventListener("loadeddata",function(){u=o;i.trigger({type:"load",target:i})}),f.IS_IE8?i:void 0}return c(t,n),t}(p["default"]);r.prototype.allowedEvents_={load:"load"};r.NONE=e;r.LOADING=1;r.LOADED=o;r.ERROR=3;i["default"]=r;t.exports=i["default"]},{"../event-target":98,"../tracks/text-track":127,"../utils/browser.js":128,"global/document":1}],121:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){var t=this,i;if(u.IS_IE8){t=h["default"].createElement("custom");for(i in r.prototype)"constructor"!==i&&(t[i]=r.prototype[i])}return r.prototype.setCues_.call(t,n),Object.defineProperty(t,"length",{get:function(){return this.length_}}),u.IS_IE8?t:void 0}i.__esModule=!0;var o=n("../utils/browser.js"),u=e(o),s=n("global/document"),h=f(s);r.prototype.setCues_=function(n){var i=this.length||0,t=0,r=n.length,u;if(this.cues_=n,this.length_=n.length,u=function(n){""+n in this||Object.defineProperty(this,""+n,{get:function(){return this.cues_[n]}})},r>i)for(t=i;r>t;t++)u.call(this,t)};r.prototype.getCueById=function(n){for(var i,r=null,t=0,u=this.length;u>t;t++)if(i=this[t],i.id===n){r=i;break}return r};i["default"]=r;t.exports=i["default"]},{"../utils/browser.js":128,"global/document":1}],122:[function(n,t,i){"use strict";function a(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function o(n,t){return"rgba("+parseInt(n[1]+n[1],16)+","+parseInt(n[2]+n[2],16)+","+parseInt(n[3]+n[3],16)+","+t+")"}function s(n,t,i){try{n.style[t]=i}catch(r){}}i.__esModule=!0;var p=n("../component"),h=f(p),w=n("../menu/menu.js"),b=(f(w),n("../menu/menu-item.js")),k=(f(b),n("../menu/menu-button.js")),d=(f(k),n("../utils/fn.js")),e=a(d),g=n("global/document"),nt=(f(g),n("global/window")),u=f(nt),r="#222",c="#ccc",tt={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},l=function(n){function t(i,r,u){v(this,t);n.call(this,i,r,u);i.on("loadstart",e.bind(this,this.toggleDisplay));i.on("texttrackchange",e.bind(this,this.updateDisplay));i.ready(e.bind(this,function(){var t,n,r;if(i.tech_&&i.tech_.featuresNativeTextTracks)return void this.hide();i.on("fullscreenchange",e.bind(this,this.updateDisplay));for(t=this.options_.playerOptions.tracks||[],n=0;n<t.length;n++)r=t[n],this.player_.addRemoteTextTrack(r)}))}return y(t,n),t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"})},t.prototype.clearDisplay=function(){"function"==typeof u["default"].WebVTT&&u["default"].WebVTT.processCues(u["default"],[],this.el_)},t.prototype.updateDisplay=function(){var t=this.player_.textTracks(),n,i;if(this.clearDisplay(),t)for(n=0;n<t.length;n++)i=t[n],"showing"===i.mode&&this.updateForTrack(i)},t.prototype.updateForTrack=function(n){var h,l,i,a;if("function"==typeof u["default"].WebVTT&&n.activeCues){for(var t=this.player_.textTrackSettings.getValues(),f=[],e=0;e<n.activeCues.length;e++)f.push(n.activeCues[e]);for(u["default"].WebVTT.processCues(u["default"],n.activeCues,this.el_),h=f.length;h--;)l=f[h],l&&(i=l.displayState,(t.color&&(i.firstChild.style.color=t.color),t.textOpacity&&s(i.firstChild,"color",o(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(i.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&s(i.firstChild,"backgroundColor",o(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?s(i,"backgroundColor",o(t.windowColor,t.windowOpacity)):i.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?i.firstChild.style.textShadow="2px 2px 3px "+r+", 2px 2px 4px "+r+", 2px 2px 5px "+r:"raised"===t.edgeStyle?i.firstChild.style.textShadow="1px 1px "+r+", 2px 2px "+r+", 3px 3px "+r:"depressed"===t.edgeStyle?i.firstChild.style.textShadow="1px 1px "+c+", 0 1px "+c+", -1px -1px "+r+", 0 -1px "+r:"uniform"===t.edgeStyle&&(i.firstChild.style.textShadow="0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r)),t.fontPercent&&1!==t.fontPercent)&&(a=u["default"].parseFloat(i.style.fontSize),i.style.fontSize=a*t.fontPercent+"px",i.style.height="auto",i.style.top="auto",i.style.bottom="2px"),t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?i.firstChild.style.fontVariant="small-caps":i.firstChild.style.fontFamily=tt[t.fontFamily]))}},t}(h["default"]);h["default"].registerComponent("TextTrackDisplay",l);i["default"]=l;t.exports=i["default"]},{"../component":66,"../menu/menu-button.js":103,"../menu/menu-item.js":104,"../menu/menu.js":105,"../utils/fn.js":133,"global/document":1,"global/window":2}],123:[function(n,t,i){"use strict";i.__esModule=!0;i.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"};i.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"}},{}],124:[function(n,t,i){"use strict";i.__esModule=!0;var r=function(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i){return n[i]&&(t[i]=n[i]),t},{cues:n.cues&&Array.prototype.map.call(n.cues,function(n){return{startTime:n.startTime,endTime:n.endTime,text:n.text,id:n.id}})})},u=function(n){var t=n.$$("track"),i=Array.prototype.map.call(t,function(n){return n.track}),u=Array.prototype.map.call(t,function(n){var t=r(n.track);return n.src&&(t.src=n.src),t});return u.concat(Array.prototype.filter.call(n.textTracks(),function(n){return-1===i.indexOf(n)}).map(r))},f=function(n,t){return n.forEach(function(n){var i=t.addRemoteTextTrack(n).track;!n.src&&n.cues&&n.cues.forEach(function(n){return i.addCue(n)})}),t.textTracks()};i["default"]={textTracksToJson:u,jsonToTextTracks:f,trackToJson_:r};t.exports=i["default"]},{}],125:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function r(n){var t=this,i,u;if(e.IS_IE8){t=y["default"].createElement("custom");for(i in r.prototype)"constructor"!==i&&(t[i]=r.prototype[i])}for(n=n||[],t.tracks_=[],Object.defineProperty(t,"length",{get:function(){return this.tracks_.length}}),u=0;u<n.length;u++)t.addTrack_(n[u]);if(e.IS_IE8)return t}var o;i.__esModule=!0;var s=n("../event-target"),h=f(s),c=n("../utils/fn.js"),l=u(c),a=n("../utils/browser.js"),e=u(a),v=n("global/document"),y=f(v);r.prototype=Object.create(h["default"].prototype);r.prototype.constructor=r;r.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(o in r.prototype.allowedEvents_)r.prototype["on"+o]=null;r.prototype.addTrack_=function(n){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}});n.addEventListener("modechange",l.bind(this,function(){this.trigger("change")}));this.tracks_.push(n);this.trigger({type:"addtrack",track:n})};r.prototype.removeTrack_=function(n){for(var t=void 0,i=0,r=this.length;r>i;i++)if(this[i]===n){t=this[i];t.off&&t.off();this.tracks_.splice(i,1);break}t&&this.trigger({type:"removetrack",track:t})};r.prototype.getTrackById=function(n){for(var i,r=null,t=0,u=this.length;u>t;t++)if(i=this[t],i.id===n){r=i;break}return r};i["default"]=r;t.exports=i["default"]},{"../event-target":98,"../utils/browser.js":128,"../utils/fn.js":133,"global/document":1}],126:[function(n,t,i){"use strict";function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function o(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function f(n){var t=void 0;return n.selectedOptions?t=n.selectedOptions[0]:n.options&&(t=n.options[n.options.selectedIndex]),t.value}function e(n,t){var i,r;if(t){for(i=void 0,i=0;i<n.options.length;i++)if(r=n.options[i],r.value===t)break;n.selectedIndex=i}}function p(){return'<div class="vjs-tracksettings">\n      <div class="vjs-tracksettings-colors">\n        <div class="vjs-fg-color vjs-tracksetting">\n            <label class="vjs-label">Foreground<\/label>\n            <select>\n              <option value="">---<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-text-opacity vjs-opacity">\n              <select>\n                <option value="">---<\/option>\n                <option value="1">Opaque<\/option>\n                <option value="0.5">Semi-Opaque<\/option>\n              <\/select>\n            <\/span>\n        <\/div> <!-- vjs-fg-color -->\n        <div class="vjs-bg-color vjs-tracksetting">\n            <label class="vjs-label">Background<\/label>\n            <select>\n              <option value="">---<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-bg-opacity vjs-opacity">\n                <select>\n                  <option value="">---<\/option>\n                  <option value="1">Opaque<\/option>\n                  <option value="0.5">Semi-Transparent<\/option>\n                  <option value="0">Transparent<\/option>\n                <\/select>\n            <\/span>\n        <\/div> <!-- vjs-bg-color -->\n        <div class="window-color vjs-tracksetting">\n            <label class="vjs-label">Window<\/label>\n            <select>\n              <option value="">---<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-window-opacity vjs-opacity">\n                <select>\n                  <option value="">---<\/option>\n                  <option value="1">Opaque<\/option>\n                  <option value="0.5">Semi-Transparent<\/option>\n                  <option value="0">Transparent<\/option>\n                <\/select>\n            <\/span>\n        <\/div> <!-- vjs-window-color -->\n      <\/div> <!-- vjs-tracksettings -->\n      <div class="vjs-tracksettings-font">\n        <div class="vjs-font-percent vjs-tracksetting">\n          <label class="vjs-label">Font Size<\/label>\n          <select>\n            <option value="0.50">50%<\/option>\n            <option value="0.75">75%<\/option>\n            <option value="1.00" selected>100%<\/option>\n            <option value="1.25">125%<\/option>\n            <option value="1.50">150%<\/option>\n            <option value="1.75">175%<\/option>\n            <option value="2.00">200%<\/option>\n            <option value="3.00">300%<\/option>\n            <option value="4.00">400%<\/option>\n          <\/select>\n        <\/div> <!-- vjs-font-percent -->\n        <div class="vjs-edge-style vjs-tracksetting">\n          <label class="vjs-label">Text Edge Style<\/label>\n          <select>\n            <option value="none">None<\/option>\n            <option value="raised">Raised<\/option>\n            <option value="depressed">Depressed<\/option>\n            <option value="uniform">Uniform<\/option>\n            <option value="dropshadow">Dropshadow<\/option>\n          <\/select>\n        <\/div> <!-- vjs-edge-style -->\n        <div class="vjs-font-family vjs-tracksetting">\n          <label class="vjs-label">Font Family<\/label>\n          <select>\n            <option value="">Default<\/option>\n            <option value="monospaceSerif">Monospace Serif<\/option>\n            <option value="proportionalSerif">Proportional Serif<\/option>\n            <option value="monospaceSansSerif">Monospace Sans-Serif<\/option>\n            <option value="proportionalSansSerif">Proportional Sans-Serif<\/option>\n            <option value="casual">Casual<\/option>\n            <option value="script">Script<\/option>\n            <option value="small-caps">Small Caps<\/option>\n          <\/select>\n        <\/div> <!-- vjs-font-family -->\n      <\/div>\n    <\/div>\n    <div class="vjs-tracksettings-controls">\n      <button class="vjs-default-button">Defaults<\/button>\n      <button class="vjs-done-button">Done<\/button>\n    <\/div>'}i.__esModule=!0;var w=n("../component"),l=o(w),b=n("../utils/events.js"),r=c(b),k=n("../utils/fn.js"),u=c(k),d=n("../utils/log.js"),h=o(d),g=n("safe-json-parse/tuple"),nt=o(g),tt=n("global/window"),s=o(tt),a=function(n){function t(i,f){v(this,t);n.call(this,i,f);this.hide();void 0===f.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings);r.on(this.$(".vjs-done-button"),"click",u.bind(this,function(){this.saveSettings();this.hide()}));r.on(this.$(".vjs-default-button"),"click",u.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0;this.$(".vjs-bg-color > select").selectedIndex=0;this.$(".window-color > select").selectedIndex=0;this.$(".vjs-text-opacity > select").selectedIndex=0;this.$(".vjs-bg-opacity > select").selectedIndex=0;this.$(".vjs-window-opacity > select").selectedIndex=0;this.$(".vjs-edge-style select").selectedIndex=0;this.$(".vjs-font-family select").selectedIndex=0;this.$(".vjs-font-percent select").selectedIndex=2;this.updateDisplay()}));r.on(this.$(".vjs-fg-color > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-bg-color > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".window-color > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-text-opacity > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-bg-opacity > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-window-opacity > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-font-percent select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-edge-style select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-font-family select"),"change",u.bind(this,this.updateDisplay));this.options_.persistTextTrackSettings&&this.restoreSettings()}return y(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:p()})},t.prototype.getValues=function(){var i=f(this.$(".vjs-edge-style select")),r=f(this.$(".vjs-font-family select")),u=f(this.$(".vjs-fg-color > select")),e=f(this.$(".vjs-text-opacity > select")),o=f(this.$(".vjs-bg-color > select")),h=f(this.$(".vjs-bg-opacity > select")),c=f(this.$(".window-color > select")),l=f(this.$(".vjs-window-opacity > select")),a=s["default"].parseFloat(f(this.$(".vjs-font-percent > select"))),n={backgroundOpacity:h,textOpacity:e,windowOpacity:l,edgeStyle:i,fontFamily:r,color:u,backgroundColor:o,windowColor:c,fontPercent:a};for(var t in n)(""===n[t]||"none"===n[t]||"fontPercent"===t&&1===n[t])&&delete n[t];return n},t.prototype.setValues=function(n){e(this.$(".vjs-edge-style select"),n.edgeStyle);e(this.$(".vjs-font-family select"),n.fontFamily);e(this.$(".vjs-fg-color > select"),n.color);e(this.$(".vjs-text-opacity > select"),n.textOpacity);e(this.$(".vjs-bg-color > select"),n.backgroundColor);e(this.$(".vjs-bg-opacity > select"),n.backgroundOpacity);e(this.$(".window-color > select"),n.windowColor);e(this.$(".vjs-window-opacity > select"),n.windowOpacity);var t=n.fontPercent;t&&(t=t.toFixed(2));e(this.$(".vjs-font-percent > select"),t)},t.prototype.restoreSettings=function(){var n=void 0,t=void 0,i;try{i=nt["default"](s["default"].localStorage.getItem("vjs-text-track-settings"));n=i[0];t=i[1];n&&h["default"].error(n)}catch(r){h["default"].warn(r)}t&&this.setValues(t)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var n=this.getValues();try{Object.getOwnPropertyNames(n).length>0?s["default"].localStorage.setItem("vjs-text-track-settings",JSON.stringify(n)):s["default"].localStorage.removeItem("vjs-text-track-settings")}catch(t){h["default"].warn(t)}}},t.prototype.updateDisplay=function(){var n=this.player_.getChild("textTrackDisplay");n&&n.updateDisplay()},t}(l["default"]);l["default"].registerComponent("TextTrackSettings",a);i["default"]=a;t.exports=i["default"]},{"../component":66,"../utils/events.js":132,"../utils/fn.js":133,"../utils/log.js":136,"global/window":2,"safe-json-parse/tuple":53}],127:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function r(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n,f;if(!t.tech)throw new Error("A tech was not provided.");if(n=this,c.IS_IE8){n=it["default"].createElement("custom");for(f in r.prototype)"constructor"!==f&&(n[f]=r.prototype[f])}n.tech_=t.tech;var i=o.TextTrackMode[t.mode]||"disabled",e=o.TextTrackKind[t.kind]||"subtitles",v=t.label||"",y=t.language||t.srclang||"",p=t.id||"vjs_text_track_"+w.newGUID();("metadata"===e||"chapters"===e)&&(i="hidden");n.cues_=[];n.activeCues_=[];var b=new s["default"](n.cues_),l=new s["default"](n.activeCues_),u=!1,a=h.bind(n,function(){this.activeCues;u&&(this.trigger("cuechange"),u=!1)});return"disabled"!==i&&n.tech_.on("timeupdate",a),Object.defineProperty(n,"kind",{get:function(){return e},set:Function.prototype}),Object.defineProperty(n,"label",{get:function(){return v},set:Function.prototype}),Object.defineProperty(n,"language",{get:function(){return y},set:Function.prototype}),Object.defineProperty(n,"id",{get:function(){return p},set:Function.prototype}),Object.defineProperty(n,"mode",{get:function(){return i},set:function(n){o.TextTrackMode[n]&&(i=n,"showing"===i&&this.tech_.on("timeupdate",a),this.trigger("modechange"))}}),Object.defineProperty(n,"cues",{get:function(){return this.loaded_?b:null},set:Function.prototype}),Object.defineProperty(n,"activeCues",{get:function(){var n,t;if(!this.loaded_)return null;if(0===this.cues.length)return l;for(var r=this.tech_.currentTime(),i=[],t=0,f=this.cues.length;f>t;t++)n=this.cues[t],n.startTime<=r&&n.endTime>=r?i.push(n):n.startTime===n.endTime&&n.startTime<=r&&n.startTime+.5>=r&&i.push(n);if(u=!1,i.length!==this.activeCues_.length)u=!0;else for(t=0;t<i.length;t++)-1===st.call(this.activeCues_,i[t])&&(u=!0);return this.activeCues_=i,l.setCues_(this.activeCues_),l},set:Function.prototype}),t.src?(n.src=t.src,ot(t.src,n)):n.loaded_=!0,c.IS_IE8?n:void 0}i.__esModule=!0;var v=n("./text-track-cue-list"),s=u(v),y=n("../utils/fn.js"),h=e(y),p=n("../utils/guid.js"),w=e(p),b=n("../utils/browser.js"),c=e(b),k=n("./text-track-enums"),o=e(k),d=n("../utils/log.js"),l=u(d),g=n("../event-target"),nt=u(g),tt=n("global/document"),it=u(tt),rt=n("global/window"),f=u(rt),ut=n("../utils/url.js"),ft=n("xhr"),et=u(ft);r.prototype=Object.create(nt["default"].prototype);r.prototype.constructor=r;r.prototype.allowedEvents_={cuechange:"cuechange"};r.prototype.addCue=function(n){var i=this.tech_.textTracks(),t;if(i)for(t=0;t<i.length;t++)i[t]!==this&&i[t].removeCue(n);this.cues_.push(n);this.cues.setCues_(this.cues_)};r.prototype.removeCue=function(n){for(var r,i=!1,t=0,u=this.cues_.length;u>t;t++)r=this.cues_[t],r===n&&(this.cues_.splice(t,1),i=!0);i&&this.cues.setCues_(this.cues_)};var a=function(n,t){var i=new f["default"].WebVTT.Parser(f["default"],f["default"].vttjs,f["default"].WebVTT.StringDecoder());i.oncue=function(n){t.addCue(n)};i.onparsingerror=function(n){l["default"].error(n)};i.onflush=function(){t.trigger({type:"loadeddata",target:t})};i.parse(n);i.flush()},ot=function(n,t){var i={uri:n},r=ut.isCrossOrigin(n);r&&(i.cors=r);et["default"](i,h.bind(this,function(n,i,r){return n?l["default"].error(n,i):(t.loaded_=!0,void("function"!=typeof f["default"].WebVTT?f["default"].setTimeout(function(){a(r,t)},100):a(r,t)))}))},st=function(n,t){var f,u,i,r;if(null==this)throw new TypeError('"this" is null or not defined');if((f=Object(this),u=f.length>>>0,0===u)||(i=+t||0,Math.abs(i)===1/0&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);u>r;){if(r in f&&f[r]===n)return r;r++}return-1};i["default"]=r;t.exports=i["default"]},{"../event-target":98,"../utils/browser.js":128,"../utils/fn.js":133,"../utils/guid.js":135,"../utils/log.js":136,"../utils/url.js":141,"./text-track-cue-list":121,"./text-track-enums":123,"global/document":1,"global/window":2,xhr:55}],128:[function(n,t,i){"use strict";function c(n){return n&&n.__esModule?n:{"default":n}}var s,h,v,y,f,e,p,w,b,k,d,g,nt;i.__esModule=!0;var tt=n("global/document"),l=c(tt),it=n("global/window"),u=c(it),r=u["default"].navigator.userAgent,a=/AppleWebKit\/([\d.]+)/i.exec(r),rt=a?parseFloat(a.pop()):null,o=/iPad/i.test(r);i.IS_IPAD=o;s=/iPhone/i.test(r)&&!o;i.IS_IPHONE=s;h=/iPod/i.test(r);i.IS_IPOD=h;v=s||o||h;i.IS_IOS=v;y=function(){var n=r.match(/OS (\d+)_/i);if(n&&n[1])return n[1]}();i.IOS_VERSION=y;f=/Android/i.test(r);i.IS_ANDROID=f;e=function(){var t,i,n=r.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);return n?(t=n[1]&&parseFloat(n[1]),i=n[2]&&parseFloat(n[2]),t&&i?parseFloat(n[1]+"."+n[2]):t?t:null):null}();i.ANDROID_VERSION=e;p=f&&/webkit/i.test(r)&&2.3>e;i.IS_OLD_ANDROID=p;w=f&&5>e&&537>rt;i.IS_NATIVE_ANDROID=w;b=/Firefox/i.test(r);i.IS_FIREFOX=b;k=/Chrome/i.test(r);i.IS_CHROME=k;d=/MSIE\s8\.0/.test(r);i.IS_IE8=d;g=!!("ontouchstart"in u["default"]||u["default"].DocumentTouch&&l["default"]instanceof u["default"].DocumentTouch);i.TOUCH_ENABLED=g;nt="backgroundSize"in l["default"].createElement("video").style;i.BACKGROUND_SIZE_SUPPORTED=nt},{"global/document":1,"global/window":2}],129:[function(n,t,i){"use strict";function r(n,t){var f,r,e=0,i;if(!t)return 0;for(n&&n.length||(n=u.createTimeRange(0,0)),i=0;i<n.length;i++)f=n.start(i),r=n.end(i),r>t&&(r=t),e+=r-f;return e/t}i.__esModule=!0;i.bufferedPercent=r;var u=n("./time-ranges.js")},{"./time-ranges.js":139}],130:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var f=n("./log.js"),e=u(f),r={get:function(n,t){return n[t]},set:function(n,t,i){return n[t]=i,!0}};i["default"]=function(n){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],t;return"function"==typeof Proxy&&(t=function(){var t={};return Object.keys(i).forEach(function(n){r.hasOwnProperty(n)&&(t[n]=function(){return e["default"].warn(i[n]),r[n].apply(this,arguments)})}),{v:new Proxy(n,t)}}(),"object"==typeof t)?t.v:n};t.exports=i["default"]},{"./log.js":136}],131:[function(n,t,i){"use strict";function nt(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function tt(n,t){return n.raw=t,n}function h(n){return"string"==typeof n&&/\S/.test(n)}function c(n){if(/\s/.test(n))throw new Error("class has illegal whitespace characters");}function it(n){return new RegExp("(^|\\s)"+n+"($|\\s)")}function l(n){return function(t,i){return h(t)?(h(i)&&(i=r["default"].querySelector(i)),(s(i)?i:r["default"])[n](t)):r["default"][n](null)}}function rt(n){return 0===n.indexOf("#")&&(n=n.slice(1)),r["default"].getElementById(n)}function ut(){var u=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],t=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=r["default"].createElement(u);return Object.getOwnPropertyNames(i).forEach(function(t){var r=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(ii["default"].warn(ui["default"](bt,t,r)),n.setAttribute(t,r)):n[t]=r}),Object.getOwnPropertyNames(t).forEach(function(i){t[i];n.setAttribute(i,t[i])}),n}function ft(n,t){"undefined"==typeof n.textContent?n.innerText=t:n.textContent=t}function et(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}function ot(n){var t=n[u];return t||(t=n[u]=ni.newGUID()),f[t]||(f[t]={}),f[t]}function st(n){var t=n[u];return t?!!Object.getOwnPropertyNames(f[t]).length:!1}function ht(n){var t=n[u];if(t){delete f[t];try{delete n[u]}catch(i){n.removeAttribute?n.removeAttribute(u):n[u]=null}}}function o(n,t){return n.classList?n.classList.contains(t):(c(t),it(t).test(n.className))}function a(n,t){return n.classList?n.classList.add(t):o(n,t)||(n.className=(n.className+" "+t).trim()),n}function v(n,t){return n.classList?n.classList.remove(t):(c(t),n.className=n.className.split(/\s+/).filter(function(n){return n!==t}).join(" ")),n}function ct(n,t,i){var r=o(n,t);return"function"==typeof i&&(i=i(n,t)),"boolean"!=typeof i&&(i=!r),i!==r?(i?a(n,t):v(n,t),n):void 0}function lt(n,t){Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];null===r||"undefined"==typeof r||r===!1?n.removeAttribute(i):n.setAttribute(i,r===!0?"":r)})}function at(n){var f,e,i,r,u,t;if(f={},e=",autoplay,controls,loop,muted,default,",n&&n.attributes&&n.attributes.length>0)for(i=n.attributes,t=i.length-1;t>=0;t--)r=i[t].name,u=i[t].value,("boolean"==typeof n[r]||-1!==e.indexOf(","+r+","))&&(u=null!==u?!0:!1),f[r]=u;return f}function vt(){r["default"].body.focus();r["default"].onselectstart=function(){return!1}}function yt(){r["default"].onselectstart=function(){return!0}}function y(n){var t=void 0;if(n.getBoundingClientRect&&n.parentNode&&(t=n.getBoundingClientRect()),!t)return{left:0,top:0};var u=r["default"].documentElement,i=r["default"].body,f=u.clientLeft||i.clientLeft||0,e=d["default"].pageXOffset||i.scrollLeft,o=t.left+e-f,s=u.clientTop||i.clientTop||0,h=d["default"].pageYOffset||i.scrollTop,c=t.top+h-s;return{left:Math.round(o),top:Math.round(c)}}function pt(n,t){var i={},r=y(n),o=n.offsetWidth,u=n.offsetHeight,s=r.top,h=r.left,f=t.pageY,e=t.pageX;return t.changedTouches&&(e=t.changedTouches[0].pageX,f=t.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-f+u)/u)),i.x=Math.max(0,Math.min(1,(e-h)/o)),i}function s(n){return!!n&&"object"==typeof n&&1===n.nodeType}function p(n){return!!n&&"object"==typeof n&&3===n.nodeType}function w(n){for(;n.firstChild;)n.removeChild(n.firstChild);return n}function b(n){return"function"==typeof n&&(n=n()),(Array.isArray(n)?n:[n]).map(function(n){return"function"==typeof n&&(n=n()),s(n)||p(n)?n:"string"==typeof n&&/\S/.test(n)?r["default"].createTextNode(n):void 0}).filter(function(n){return n})}function k(n,t){return b(t).forEach(function(t){return n.appendChild(t)}),n}function wt(n,t){return k(w(n),t)}var g;i.__esModule=!0;i.getEl=rt;i.createEl=ut;i.textContent=ft;i.insertElFirst=et;i.getElData=ot;i.hasElData=st;i.removeElData=ht;i.hasElClass=o;i.addElClass=a;i.removeElClass=v;i.toggleElClass=ct;i.setElAttributes=lt;i.getElAttributes=at;i.blockTextSelection=vt;i.unblockTextSelection=yt;i.findElPosition=y;i.getPointerPosition=pt;i.isEl=s;i.isTextNode=p;i.emptyEl=w;i.normalizeContent=b;i.appendContent=k;i.insertContent=wt;var bt=tt(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]),kt=n("global/document"),r=e(kt),dt=n("global/window"),d=e(dt),gt=n("./guid.js"),ni=nt(gt),ti=n("./log.js"),ii=e(ti),ri=n("tsml"),ui=e(ri),f={},u="vdata"+(new Date).getTime(),fi=l("querySelector");i.$=fi;g=l("querySelectorAll");i.$$=g},{"./guid.js":135,"./log.js":136,"global/document":1,"global/window":2,tsml:54}],132:[function(n,t,i){"use strict";function h(n){return n&&n.__esModule?n:{"default":n}}function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n,t,i){if(Array.isArray(t))return o(u,n,t,i);var f=r.getElData(n);f.handlers||(f.handlers={});f.handlers[t]||(f.handlers[t]=[]);i.guid||(i.guid=y.newGUID());f.handlers[t].push(i);f.dispatcher||(f.disabled=!1,f.dispatcher=function(t,i){var r;if(!f.disabled&&(t=e(t),r=f.handlers[t.type],r))for(var o=r.slice(0),u=0,s=o.length;s>u&&!t.isImmediatePropagationStopped();u++)o[u].call(n,t,i)});1===f.handlers[t].length&&(n.addEventListener?n.addEventListener(t,f.dispatcher,!1):n.attachEvent&&n.attachEvent("on"+t,f.dispatcher))}function f(n,t,i){var u,h,e,s,c;if(r.hasElData(n)&&(u=r.getElData(n),u.handlers)){if(Array.isArray(t))return o(f,n,t,i);if(h=function(t){u.handlers[t]=[];v(n,t)},t){if(e=u.handlers[t],e){if(!i)return void h(t);if(i.guid)for(s=0;s<e.length;s++)e[s].guid===i.guid&&e.splice(s--,1);v(n,t)}}else for(c in u.handlers)h(c)}}function l(n,t,i){var o=r.hasElData(n)?r.getElData(n):{},u=n.parentNode||n.ownerDocument,f;return("string"==typeof t&&(t={type:t,target:n}),t=e(t),o.dispatcher&&o.dispatcher.call(n,t,i),u&&!t.isPropagationStopped()&&t.bubbles===!0)?l.call(null,u,t,i):u||t.defaultPrevented||(f=r.getElData(t.target),t.target[t.type]&&(f.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),f.disabled=!1)),!t.defaultPrevented}function a(n,t,i){if(Array.isArray(t))return o(a,n,t,i);var r=function e(){f(n,t,e);i.apply(this,arguments)};r.guid=i.guid=i.guid||y.newGUID();u(n,t,r)}function e(n){function f(){return!0}function e(){return!1}var t,i,r,u;if(!n||!n.isPropagationStopped){t=n||k["default"].event;n={};for(i in t)"layerX"!==i&&"layerY"!==i&&"keyLocation"!==i&&"webkitMovementX"!==i&&"webkitMovementY"!==i&&("returnValue"===i&&t.preventDefault||(n[i]=t[i]));(n.target||(n.target=n.srcElement||s["default"]),n.relatedTarget||(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),n.preventDefault=function(){t.preventDefault&&t.preventDefault();n.returnValue=!1;t.returnValue=!1;n.defaultPrevented=!0},n.defaultPrevented=!1,n.stopPropagation=function(){t.stopPropagation&&t.stopPropagation();n.cancelBubble=!0;t.cancelBubble=!0;n.isPropagationStopped=f},n.isPropagationStopped=e,n.stopImmediatePropagation=function(){t.stopImmediatePropagation&&t.stopImmediatePropagation();n.isImmediatePropagationStopped=f;n.stopPropagation()},n.isImmediatePropagationStopped=e,null!=n.clientX)&&(r=s["default"].documentElement,u=s["default"].body,n.pageX=n.clientX+(r&&r.scrollLeft||u&&u.scrollLeft||0)-(r&&r.clientLeft||u&&u.clientLeft||0),n.pageY=n.clientY+(r&&r.scrollTop||u&&u.scrollTop||0)-(r&&r.clientTop||u&&u.clientTop||0));n.which=n.charCode||n.keyCode;null!=n.button&&(n.button=1&n.button?0:4&n.button?1:2&n.button?2:0)}return n}function v(n,t){var i=r.getElData(n);0===i.handlers[t].length&&(delete i.handlers[t],n.removeEventListener?n.removeEventListener(t,i.dispatcher,!1):n.detachEvent&&n.detachEvent("on"+t,i.dispatcher));Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled);0===Object.getOwnPropertyNames(i).length&&r.removeElData(n)}function o(n,t,i,r){i.forEach(function(i){n(t,i,r)})}i.__esModule=!0;i.on=u;i.off=f;i.trigger=l;i.one=a;i.fixEvent=e;var p=n("./dom.js"),r=c(p),w=n("./guid.js"),y=c(w),b=n("global/window"),k=h(b),d=n("global/document"),s=h(d)},{"./dom.js":131,"./guid.js":135,"global/document":1,"global/window":2}],133:[function(n,t,i){"use strict";i.__esModule=!0;var r=n("./guid.js"),u=function(n,t,i){t.guid||(t.guid=r.newGUID());var u=function(){return t.apply(n,arguments)};return u.guid=i?i+"_"+t.guid:t.guid,u};i.bind=u},{"./guid.js":135}],134:[function(n,t,i){"use strict";function r(n){var t=arguments.length<=1||void 0===arguments[1]?n:arguments[1];return function(){n=0>n?0:n;var i=Math.floor(n%60),r=Math.floor(n/60%60),u=Math.floor(n/3600),f=Math.floor(t/60%60),e=Math.floor(t/3600);return(isNaN(n)||n===1/0)&&(u=r=i="-"),u=u>0||e>0?u+":":"",r=((u||f>=10)&&10>r?"0"+r:r)+":",i=10>i?"0"+i:i,u+r+i}()}i.__esModule=!0;i["default"]=r;t.exports=i["default"]},{}],135:[function(n,t,i){"use strict";function r(){return u++}i.__esModule=!0;i.newGUID=r;var u=1},{}],136:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function u(n,t){var i=Array.prototype.slice.call(t),f=function(){},u=o["default"].console||{log:f,warn:f,error:f};n?i.unshift(n.toUpperCase()+":"):n="log";r.history.push(i);i.unshift("VIDEOJS:");u[n].apply?u[n].apply(u,i):u[n](i.join(" "))}i.__esModule=!0;var e=n("global/window"),o=f(e),r=function(){u(null,arguments)};r.history=[];r.error=function(){u("error",arguments)};r.warn=function(){u("warn",arguments)};i["default"]=r;t.exports=i["default"]},{"global/window":2}],137:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function r(n){return!!n&&"object"==typeof n&&"[object Object]"===n.toString()&&n.constructor===Object}function u(){var n=Array.prototype.slice.call(arguments);return n.unshift({}),n.push(s),o["default"].apply(null,n),n[0]}i.__esModule=!0;i["default"]=u;var e=n("lodash-compat/object/merge"),o=f(e),s=function(n,t){return r(t)?r(n)?void 0:u(t):t};t.exports=i["default"]},{"lodash-compat/object/merge":40}],138:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}var r;i.__esModule=!0;var f=n("global/document"),e=u(f),o=function(n){var t=e["default"].createElement("style");return t.className=n,t};i.createStyleElement=o;r=function(n,t){n.styleSheet?n.styleSheet.cssText=t:n.textContent=t};i.setTextContent=r},{"global/document":1}],139:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function u(n,t){return Array.isArray(n)?r(n):void 0===n||void 0===t?r():r([[n,t]])}function r(n){return void 0===n||0===n.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty");},end:function(){throw new Error("This TimeRanges object is empty");}}:{length:n.length,start:f.bind(null,"start",0,n),end:f.bind(null,"end",1,n)}}function f(n,t,i,r){return void 0===r&&(h["default"].warn("DEPRECATED: Function '"+n+"' on 'TimeRanges' called without an index argument."),r=0),o(n,r,i.length-1),i[r][t]}function o(n,t,i){if(0>t||t>i)throw new Error("Failed to execute '"+n+"' on 'TimeRanges': The index provided ("+t+") is greater than or equal to the maximum bound ("+i+").");}i.__esModule=!0;i.createTimeRanges=u;var s=n("./log.js"),h=e(s);i.createTimeRange=u},{"./log.js":136}],140:[function(n,t,i){"use strict";function r(n){return n.charAt(0).toUpperCase()+n.slice(1)}i.__esModule=!0;i["default"]=r;t.exports=i["default"]},{}],141:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}var e,o,s;i.__esModule=!0;var h=n("global/document"),r=u(h),c=n("global/window"),l=u(c),f=function(n){var e=["protocol","hostname","port","pathname","search","hash","host"],u=r["default"].createElement("a"),o,i,t,f;for(u.href=n,o=""===u.host&&"file:"!==u.protocol,i=void 0,o&&(i=r["default"].createElement("div"),i.innerHTML='<a href="'+n+'"><\/a>',u=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),r["default"].body.appendChild(i)),t={},f=0;f<e.length;f++)t[e[f]]=u[e[f]];return"http:"===t.protocol&&(t.host=t.host.replace(/:80$/,"")),"https:"===t.protocol&&(t.host=t.host.replace(/:443$/,"")),o&&r["default"].body.removeChild(i),t};i.parseUrl=f;e=function(n){if(!n.match(/^https?:\/\//)){var t=r["default"].createElement("div");t.innerHTML='<a href="'+n+'">x<\/a>';n=t.firstChild.href}return n};i.getAbsoluteURL=e;o=function(n){if("string"==typeof n){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(n);if(t)return t.pop().toLowerCase()}return""};i.getFileExtension=o;s=function(n){var t=l["default"].location,i=f(n),r=":"===i.protocol?t.protocol:i.protocol;return r+i.host!==t.protocol+t.host};i.isCrossOrigin=s},{"global/document":1,"global/window":2}],142:[function(t,i,r){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}var u,h,w;r.__esModule=!0;var g=t("global/document"),l=f(g),nt=t("./setup"),tt=o(nt),it=t("./utils/stylesheet.js"),b=o(it),rt=t("./component"),a=f(rt),ut=t("./event-target"),ft=f(ut),et=t("./utils/events.js"),c=o(et),ot=t("./player"),s=f(ot),st=t("./plugins.js"),ht=f(st),ct=t("../../src/js/utils/merge-options.js"),lt=f(ct),at=t("./utils/fn.js"),vt=o(at),yt=t("./tracks/text-track.js"),pt=f(yt),wt=t("object.assign"),bt=(f(wt),t("./utils/time-ranges.js")),kt=t("./utils/format-time.js"),dt=f(kt),gt=t("./utils/log.js"),v=f(gt),ni=t("./utils/dom.js"),e=o(ni),ti=t("./utils/browser.js"),k=o(ti),ii=t("./utils/url.js"),d=o(ii),ri=t("./extend.js"),ui=f(ri),fi=t("lodash-compat/object/merge"),ei=f(fi),oi=t("./utils/create-deprecation-proxy.js"),si=f(oi),hi=t("xhr"),ci=f(hi),li=t("./tech/tech.js"),y=f(li),ai=t("./tech/html5.js"),vi=(f(ai),t("./tech/flash.js"));f(vi);"undefined"==typeof HTMLVideoElement&&(l["default"].createElement("video"),l["default"].createElement("audio"),l["default"].createElement("track"));u=function p(n,t,i){var r=void 0;if("string"==typeof n){if(0===n.indexOf("#")&&(n=n.slice(1)),p.getPlayers()[n])return t&&v["default"].warn('Player "'+n+'" is already initialised. Options will not be applied.'),i&&p.getPlayers()[n].ready(i),p.getPlayers()[n];r=e.getEl(n)}else r=n;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return r.player||s["default"].players[r.playerId]||new s["default"](r,t,i)};h=e.$(".vjs-styles-defaults");h||(h=b.createStyleElement("vjs-styles-defaults"),w=e.$("head"),w.insertBefore(h,w.firstChild),b.setTextContent(h,"\n    .video-js {\n      width: 300px;\n      height: 150px;\n    }\n\n    .vjs-fluid {\n      padding-top: 56.25%\n    }\n  "));tt.autoSetupTimeout(1,u);u.VERSION="5.8.0";u.options=s["default"].prototype.options_;u.getPlayers=function(){return s["default"].players};u.players=si["default"](s["default"].players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"});u.getComponent=a["default"].getComponent;u.registerComponent=function(n,t){y["default"].isTech(t)&&v["default"].warn("The "+n+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)");a["default"].registerComponent.call(a["default"],n,t)};u.getTech=y["default"].getTech;u.registerTech=y["default"].registerTech;u.browser=k;u.TOUCH_ENABLED=k.TOUCH_ENABLED;u.extend=ui["default"];u.mergeOptions=lt["default"];u.bind=vt.bind;u.plugin=ht["default"];u.addLanguage=function(n,t){var i;return n=(""+n).toLowerCase(),ei["default"](u.options.languages,(i={},i[n]=t,i))[n]};u.log=v["default"];u.createTimeRange=u.createTimeRanges=bt.createTimeRanges;u.formatTime=dt["default"];u.parseUrl=d.parseUrl;u.isCrossOrigin=d.isCrossOrigin;u.EventTarget=ft["default"];u.on=c.on;u.one=c.one;u.off=c.off;u.trigger=c.trigger;u.xhr=ci["default"];u.TextTrack=pt["default"];u.isEl=e.isEl;u.isTextNode=e.isTextNode;u.createEl=e.createEl;u.hasClass=e.hasElClass;u.addClass=e.addElClass;u.removeClass=e.removeElClass;u.toggleClass=e.toggleElClass;u.setAttributes=e.setElAttributes;u.getAttributes=e.getElAttributes;u.emptyEl=e.emptyEl;u.appendContent=e.appendContent;u.insertContent=e.insertContent;"function"==typeof n&&n.amd?n("videojs",[],function(){return u}):"object"==typeof r&&"object"==typeof i&&(i.exports=u);r["default"]=u;i.exports=r["default"]},{"../../src/js/utils/merge-options.js":137,"./component":66,"./event-target":98,"./extend.js":99,"./player":107,"./plugins.js":108,"./setup":112,"./tech/flash.js":115,"./tech/html5.js":116,"./tech/tech.js":118,"./tracks/text-track.js":127,"./utils/browser.js":128,"./utils/create-deprecation-proxy.js":130,"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/format-time.js":134,"./utils/log.js":136,"./utils/stylesheet.js":138,"./utils/time-ranges.js":139,"./utils/url.js":141,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:55}]},{},[142])(142)}),function(n){var t=n.vttjs={},i=t.VTTCue,r=t.VTTRegion,u=n.VTTCue,f=n.VTTRegion;t.shim=function(){t.VTTCue=i;t.VTTRegion=r};t.restore=function(){t.VTTCue=u;t.VTTRegion=f}}(this),function(n,t){function f(n){if("string"!=typeof n)return!1;var t=o[n.toLowerCase()];return t?n.toLowerCase():!1}function r(n){if("string"!=typeof n)return!1;var t=s[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)n[r]=i[r]}return n}function u(n,t,u){var o=this,h=/MSIE\s8\.0/.test(navigator.userAgent),s={};h?o=document.createElement("custom"):s.enumerable=!0;o.hasBeenReset=!1;var c="",l=!1,a=n,v=t,y=u,p=null,w="",b=!0,k="auto",d="start",g=50,nt="middle",tt=50,it="middle";return Object.defineProperty(o,"id",i({},s,{get:function(){return c},set:function(n){c=""+n}})),Object.defineProperty(o,"pauseOnExit",i({},s,{get:function(){return l},set:function(n){l=!!n}})),Object.defineProperty(o,"startTime",i({},s,{get:function(){return a},set:function(n){if("number"!=typeof n)throw new TypeError("Start time must be set to a number.");a=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",i({},s,{get:function(){return v},set:function(n){if("number"!=typeof n)throw new TypeError("End time must be set to a number.");v=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"text",i({},s,{get:function(){return y},set:function(n){y=""+n;this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},s,{get:function(){return p},set:function(n){p=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},s,{get:function(){return w},set:function(n){var t=f(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");w=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},s,{get:function(){return b},set:function(n){b=!!n;this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},s,{get:function(){return k},set:function(n){if("number"!=typeof n&&n!==e)throw new SyntaxError("An invalid number or illegal string was specified.");k=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",i({},s,{get:function(){return d},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");d=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},s,{get:function(){return g},set:function(n){if(0>n||n>100)throw new Error("Position must be between 0 and 100.");g=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",i({},s,{get:function(){return nt},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");nt=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},s,{get:function(){return tt},set:function(n){if(0>n||n>100)throw new Error("Size must be between 0 and 100.");tt=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},s,{get:function(){return it},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");it=t;this.hasBeenReset=!0}})),o.displayState=void 0,h?o:void 0}var e="auto",o={"":!0,lr:!0,rl:!0},s={start:!0,middle:!0,end:!0,left:!0,right:!0};u.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};n.VTTCue=n.VTTCue||u;t.VTTCue=u}(this,this.vttjs||{}),function(n,t){function u(n){if("string"!=typeof n)return!1;var t=f[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){return"number"==typeof n&&n>=0&&100>=n}function r(){var n=100,t=3,r=0,f=100,e=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");n=t}},lines:{enumerable:!0,get:function(){return t},set:function(n){if("number"!=typeof n)throw new TypeError("Lines must be set to a number.");t=n}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(n){if(!i(n))throw new Error("RegionAnchorX must be between 0 and 100.");f=n}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(n){if(!i(n))throw new Error("RegionAnchorY must be between 0 and 100.");r=n}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(n){if(!i(n))throw new Error("ViewportAnchorY must be between 0 and 100.");o=n}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(n){if(!i(n))throw new Error("ViewportAnchorX must be between 0 and 100.");e=n}},scroll:{enumerable:!0,get:function(){return s},set:function(n){var t=u(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");s=t}}})}var f={"":!0,up:!0};n.VTTRegion=n.VTTRegion||r;t.VTTRegion=r}(this,this.vttjs||{}),function(n){function i(n,t){this.name="ParsingError";this.code=n.code;this.message=t||n.message}function h(n){function i(n,t,i,r){return 3600*(0|n)+60*(0|t)+(0|i)+(0|r)/1e3}var t=n.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return t?t[3]?i(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?i(t[1],t[2],0,t[4]):i(0,t[1],t[2],t[4]):null}function u(){this.values=s(null)}function o(n,t,i,r){var f=r?n.split(r):[n],e,u,o,s;for(e in f)"string"==typeof f[e]&&(u=f[e].split(i),2===u.length&&(o=u[0],s=u[1],t(o,s)))}function v(n,t,r){function e(){var t=h(n);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+s);return n=n.replace(/^[^\sa-zA-Z-]+/,""),t}function c(n,t){var i=new u;o(n,function(n,t){var f,u,e;switch(n){case"region":for(f=r.length-1;f>=0;f--)if(r[f].id===t){i.set(n,r[f].region);break}break;case"vertical":i.alt(n,t,["rl","lr"]);break;case"line":u=t.split(",");e=u[0];i.integer(n,e);i.percent(n,e)?i.set("snapToLines",!1):null;i.alt(n,e,["auto"]);2===u.length&&i.alt("lineAlign",u[1],["start","middle","end"]);break;case"position":u=t.split(",");i.percent(n,u[0]);2===u.length&&i.alt("positionAlign",u[1],["start","middle","end"]);break;case"size":i.percent(n,t);break;case"align":i.alt(n,t,["start","middle","end","left","right"])}},/:/,/\s/);t.region=i.get("region",null);t.vertical=i.get("vertical","");t.line=i.get("line","auto");t.lineAlign=i.get("lineAlign","start");t.snapToLines=i.get("snapToLines",!0);t.size=i.get("size",100);t.align=i.get("align","middle");t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align);t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function f(){n=n.replace(/^\s+/,"")}var s=n;if(f(),t.startTime=e(),f(),"-->"!==n.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+s);n=n.substr(3);f();t.endTime=e();f();c(n,t)}function c(n,t){function c(){function i(n){return t=t.substr(n.length),n}if(!t)return null;var n=t.match(/^([^<]*)(<[^>]+>?)?/);return i(n[1]?n[1]:n[2])}function a(n){return b[n]}function v(n){for(;i=n.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)n=n.replace(i[0],a);return n}function y(n,t){return!l[t.localName]||l[t.localName]===n.localName}function p(t,i){var u=k[t],r,f;return u?(r=n.document.createElement(u),r.localName=u,f=d[t],f&&i&&(r[f]=i.trim()),r):null}for(var u,o,i,r,s=n.document.createElement("div"),f=s,e=[];null!==(r=c());)if("<"!==r[0])f.appendChild(n.document.createTextNode(v(r)));else{if("/"===r[1]){e.length&&e[e.length-1]===r.substr(2).replace(">","")&&(e.pop(),f=f.parentNode);continue}if(o=h(r.substr(1,r.length-2)),o){u=n.document.createProcessingInstruction("timestamp",o);f.appendChild(u);continue}if(i=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/),!i)continue;if(u=p(i[1],i[3]),!u)continue;if(!y(f,u))continue;i[2]&&(u.className=i[2].substr(1).replace("."," "));e.push(i[1]);f.appendChild(u);f=u}return s}function y(n){function f(n,t){for(var i=t.childNodes.length-1;i>=0;i--)n.push(t.childNodes[i])}function r(n){var t,i,u;return!n||!n.length?null:(t=n.pop(),i=t.textContent||t.innerText,i)?(u=i.match(/^.*(\n|\r)/),u?(n.length=0,u[0]):i):"ruby"===t.tagName?r(n):t.childNodes?(f(n,t),r(n)):void 0}var e,o=[],u="",t,i;if(!n||!n.childNodes)return"ltr";for(f(o,n);u=r(o);)for(t=0;t<u.length;t++)for(e=u.charCodeAt(t),i=0;i<a.length;i++)if(a[i]===e)return"rtl";return"ltr"}function p(n){if("number"==typeof n.line&&(n.snapToLines||n.line>=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;for(var r=n.track,i=r.textTrackList,u=0,t=0;t<i.length&&i[t]!==r;t++)"showing"===i[t].mode&&u++;return-1*++u}function f(){}function e(n,t,i){var e=/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",s="rgba(0, 0, 0, 0.8)",r,u;e&&(o="rgb(255, 255, 255)",s="rgb(0, 0, 0)");f.call(this);this.cue=t;this.cueDiv=c(n,t.text);r={color:o,backgroundColor:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};e||(r.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",r.unicodeBidi="plaintext");this.applyStyles(r,this.cueDiv);this.div=n.document.createElement("div");r={textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"};e||(r.direction=y(this.cueDiv),r.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext");this.applyStyles(r);this.div.appendChild(this.cueDiv);u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}this.applyStyles(""===t.vertical?{left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}:{top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")});this.move=function(n){this.applyStyles({top:this.formatStyle(n.top,"px"),bottom:this.formatStyle(n.bottom,"px"),left:this.formatStyle(n.left,"px"),right:this.formatStyle(n.right,"px"),height:this.formatStyle(n.height,"px"),width:this.formatStyle(n.width,"px")})}}function t(n){var i,r,f,u,e=/MSIE\s8\.0/.test(navigator.userAgent),t;n.div&&(r=n.div.offsetHeight,f=n.div.offsetWidth,u=n.div.offsetTop,t=(t=n.div.childNodes)&&(t=t[0])&&t.getClientRects&&t.getClientRects(),n=n.div.getBoundingClientRect(),i=t?Math.max(t[0]&&t[0].height||0,n.height/t.length):0);this.left=n.left;this.right=n.right;this.top=n.top||u;this.height=n.height||r;this.bottom=n.bottom||u+(n.height||r);this.width=n.width||f;this.lineHeight=void 0!==i?i:n.lineHeight;e&&!this.lineHeight&&(this.lineHeight=13)}function w(n,i,r,u){function w(n,i){for(var e,o,s=new t(n),h=1,f=0;f<i.length;f++){for(;n.overlapsOppositeAxis(r,i[f])||n.within(r)&&n.overlapsAny(u);)n.move(i[f]);if(n.within(r))return n;e=n.intersectPercentage(r);h>e&&(o=new t(n),h=e);n=new t(s)}return o||s}var h=new t(i),o=i.cue,e=p(o),f=[],c,a,y;if(o.snapToLines){switch(o.vertical){case"":f=["+y","-y"];c="height";break;case"rl":f=["+x","-x"];c="width";break;case"lr":f=["-x","+x"];c="width"}var l=h.lineHeight,s=l*Math.round(e),v=r[c]+l,b=f[0];Math.abs(s)>v&&(s=0>s?-1:1,s*=Math.ceil(v/l)*l);0>e&&(s+=""===o.vertical?r.height:r.width,f=f.reverse());h.move(b,s)}else{a=h.lineHeight/r.height*100;switch(o.lineAlign){case"middle":e-=a/2;break;case"end":e-=a}switch(o.vertical){case"":i.applyStyles({top:i.formatStyle(e,"%")});break;case"rl":i.applyStyles({left:i.formatStyle(e,"%")});break;case"lr":i.applyStyles({right:i.formatStyle(e,"%")})}f=["+y","-x","+x","-y"];h=new t(i)}y=w(h,f);i.move(y.toCSSCompatValues(r))}function r(){}var s=Object.create||function(){function n(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=t,new n}}();i.prototype=s(Error.prototype);i.prototype.constructor=i;i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};u.prototype={set:function(n,t){this.get(n)||""===t||(this.values[n]=t)},get:function(n,t,i){return i?this.has(n)?this.values[n]:t[i]:this.has(n)?this.values[n]:t},has:function(n){return n in this.values},alt:function(n,t,i){for(var r=0;r<i.length;++r)if(t===i[r]){this.set(n,t);break}},integer:function(n,t){/^-?\d+$/.test(t)&&this.set(n,parseInt(t,10))},percent:function(n,t){var i;return(i=t.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(t=parseFloat(t),t>=0&&100>=t)?(this.set(n,t),!0):!1}};var b={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},k={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={v:"title",lang:"lang"},l={rt:"ruby"},a=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];f.prototype.applyStyles=function(n,t){t=t||this.div;for(var i in n)n.hasOwnProperty(i)&&(t.style[i]=n[i])};f.prototype.formatStyle=function(n,t){return 0===n?0:n+t};e.prototype=s(f.prototype);e.prototype.constructor=e;t.prototype.move=function(n,t){switch(t=void 0!==t?t:this.lineHeight,n){case"+x":this.left+=t;this.right+=t;break;case"-x":this.left-=t;this.right-=t;break;case"+y":this.top+=t;this.bottom+=t;break;case"-y":this.top-=t;this.bottom-=t}};t.prototype.overlaps=function(n){return this.left<n.right&&this.right>n.left&&this.top<n.bottom&&this.bottom>n.top};t.prototype.overlapsAny=function(n){for(var t=0;t<n.length;t++)if(this.overlaps(n[t]))return!0;return!1};t.prototype.within=function(n){return this.top>=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right};t.prototype.overlapsOppositeAxis=function(n,t){switch(t){case"+x":return this.left<n.left;case"-x":return this.right>n.right;case"+y":return this.top<n.top;case"-y":return this.bottom>n.bottom}};t.prototype.intersectPercentage=function(n){var t=Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left)),i=Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top)),r=t*i;return r/(this.height*this.width)};t.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}};t.getSimpleBoxPosition=function(n){var t=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,r=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,i=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;return n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n,{left:n.left,right:n.right,top:n.top||i,height:n.height||t,bottom:n.bottom||i+(n.height||t),width:n.width||r}};r.StringDecoder=function(){return{decode:function(n){if(!n)return"";if("string"!=typeof n)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}};r.convertCueToDOMTree=function(n,t){return n&&t?c(n,t):null};var g=.05,nt="sans-serif",tt="1.5%";r.processCues=function(n,i,r){function h(n){for(var t=0;t<n.length;t++)if(n[t].hasBeenReset||!n[t].displayState)return!0;return!1}var u,f;if(!n||!i||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);if(u=n.document.createElement("div"),u.style.position="absolute",u.style.left="0",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.margin=tt,r.appendChild(u),h(i)){var o=[],s=t.getSimpleBoxPosition(u),c=Math.round(s.height*g*100)/100,l={font:c+"px "+nt};!function(){for(var r,f,h=0;h<i.length;h++)f=i[h],r=new e(n,f,l),u.appendChild(r.div),w(n,r,s,o),f.displayState=r.div,o.push(t.getSimpleBoxPosition(r))}()}else for(f=0;f<i.length;f++)u.appendChild(i[f].displayState)};r.Parser=function(n,t,i){i||(i=t,t={});t||(t={});this.window=n;this.vttjs=t;this.state="INITIAL";this.buffer="";this.decoder=i||new TextDecoder("utf8");this.regionList=[]};r.Parser.prototype={reportOrThrowError:function(n){if(!(n instanceof i))throw n;this.onparsingerror&&this.onparsingerror(n)},parse:function(n){function s(){for(var r,i=t.buffer,n=0;n<i.length&&"\r"!==i[n]&&"\n"!==i[n];)++n;return r=i.substr(0,n),"\r"===i[n]&&++n,"\n"===i[n]&&++n,t.buffer=i.substr(n),r}function l(n){var i=new u,r;(o(n,function(n,t){var f,r;switch(n){case"id":i.set(n,t);break;case"width":i.percent(n,t);break;case"lines":i.integer(n,t);break;case"regionanchor":case"viewportanchor":if(f=t.split(","),2!==f.length)break;if(r=new u,r.percent("x",f[0]),r.percent("y",f[1]),!r.has("x")||!r.has("y"))break;i.set(n+"X",r.get("x"));i.set(n+"Y",r.get("y"));break;case"scroll":i.alt(n,t,["up"])}},/=/,/\s/),i.has("id"))&&(r=new(t.vttjs.VTTRegion||t.window.VTTRegion),r.width=i.get("width",100),r.lines=i.get("lines",3),r.regionAnchorX=i.get("regionanchorX",0),r.regionAnchorY=i.get("regionanchorY",100),r.viewportAnchorX=i.get("viewportanchorX",0),r.viewportAnchorY=i.get("viewportanchorY",100),r.scroll=i.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:i.get("id"),region:r}))}function a(n){o(n,function(n,t){switch(n){case"Region":l(t)}},/:/)}var t=this,r,e,f,c;n&&(t.buffer+=t.decoder.decode(n,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;if(r=s(),e=r.match(/^WEBVTT([ \t].*)?$/),!e||!e[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!1:r=s(),t.state){case"HEADER":/:/.test(r)?a(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===r.indexOf("-->")){t.cue.id=r;continue}case"CUE":try{v(r,t.cue,t.regionList)}catch(h){t.reportOrThrowError(h);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":if(c=-1!==r.indexOf("-->"),!r||c&&(f=!0)){t.oncue&&t.oncue(t.cue);t.cue=null;t.state="ID";continue}t.cue.text&&(t.cue.text+="\n");t.cue.text+=r;continue;case"BADCUE":r||(t.state="ID");continue}}}catch(h){t.reportOrThrowError(h);"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue);t.cue=null;t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||"HEADER"===n.state)&&(n.buffer+="\n\n",n.parse()),"INITIAL"===n.state)throw new i(i.Errors.BadSignature);}catch(t){n.reportOrThrowError(t)}return n.onflush&&n.onflush(),this}};n.WebVTT=r}(this,this.vttjs||{}),function(){"use strict";var t=typeof window!="undefined"&&typeof window.document!="undefined"?window.document:{},r=typeof module!="undefined"&&module.exports,f=typeof Element!="undefined"&&"ALLOW_KEYBOARD_INPUT"in Element,n=function(){for(var i,r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,f=r.length,u={};n<f;n++)if(i=r[n],i&&i[1]in t){for(n=0;n<i.length;n++)u[r[0][n]]=i[n];return u}return!1}(),u={change:n.fullscreenchange,error:n.fullscreenerror},i={request:function(i){return new Promise(function(r){var u=n.requestFullscreen,e=function(){this.off("change",e);r()}.bind(this);i=i||t.documentElement;/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?i[u]():i[u](f?Element.ALLOW_KEYBOARD_INPUT:{});this.on("change",e)}.bind(this))},exit:function(){return new Promise(function(i){if(!this.isFullscreen){i();return}var r=function(){this.off("change",r);i()}.bind(this);t[n.exitFullscreen]();this.on("change",r)}.bind(this))},toggle:function(n){return this.isFullscreen?this.exit():this.request(n)},onchange:function(n){this.on("change",n)},onerror:function(n){this.on("error",n)},on:function(n,i){var r=u[n];r&&t.addEventListener(r,i,!1)},off:function(n,i){var r=u[n];r&&t.removeEventListener(r,i,!1)},raw:n};if(!n){r?module.exports=!1:window.screenfull=!1;return}Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(t[n.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[n.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(t[n.fullscreenEnabled])}}});r?(module.exports=i,module.exports.default=i):window.screenfull=i}(),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module!="undefined"&&module.exports?module.exports=n:n(jQuery,window,document)}(function(n){(function(t){var i=typeof define=="function"&&define.amd,r=typeof module!="undefined"&&module.exports,u="https:"==document.location.protocol?"https:":"http:";i||(r?require("jquery-mousewheel")(n):n.event.special.mousewheel||n("head").append(decodeURI("%3Cscript src="+u+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E")));t()})(function(){var h="mCustomScrollbar",t="mCS",it=".mCustomScrollbar",ot={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},pt=0,b={},p=window.attachEvent&&!window.addEventListener?1:0,e=!1,c,i=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],s={init:function(r){var r=n.extend(!0,{},ot,r),e=v.call(this),u,f;if(r.live){if(u=r.liveSelector||this.selector||it,f=n(u),r.live==="off"){k(u);return}b[u]=setTimeout(function(){f.mCustomScrollbar(r);r.live==="once"&&f.length&&k(u)},500)}else k(u);return r.setWidth=r.set_width?r.set_width:r.setWidth,r.setHeight=r.set_height?r.set_height:r.setHeight,r.axis=r.horizontalScroll?"x":wt(r.axis),r.scrollInertia=r.scrollInertia>0&&r.scrollInertia<17?17:r.scrollInertia,typeof r.mouseWheel!="object"&&r.mouseWheel==!0&&(r.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),r.mouseWheel.scrollAmount=r.mouseWheelPixels?r.mouseWheelPixels:r.mouseWheel.scrollAmount,r.mouseWheel.normalizeDelta=r.advanced.normalizeMouseWheelDelta?r.advanced.normalizeMouseWheelDelta:r.mouseWheel.normalizeDelta,r.scrollButtons.scrollType=bt(r.scrollButtons.scrollType),st(r),n(e).each(function(){var u=n(this);if(!u.data(t)){u.data(t,{idx:++pt,opt:r,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var e=u.data(t),f=e.opt,o=u.data("mcs-axis"),h=u.data("mcs-scrollbar-position"),c=u.data("mcs-theme");o&&(f.axis=o);h&&(f.scrollbarPosition=h);c&&(f.theme=c,st(f));kt.call(this);e&&f.callbacks.onCreate&&typeof f.callbacks.onCreate=="function"&&f.callbacks.onCreate.call(this);n("#mCSB_"+e.idx+"_container img:not(."+i[2]+")").addClass(i[2]);s.update.call(null,u)}})},update:function(r,f){var e=r||v.call(this);return n(e).each(function(){var s=n(this),c;if(s.data(t)){var e=s.data(t),r=e.opt,h=n("#mCSB_"+e.idx+"_container"),a=n("#mCSB_"+e.idx),l=[n("#mCSB_"+e.idx+"_dragger_vertical"),n("#mCSB_"+e.idx+"_dragger_horizontal")];if(!h.length)return;e.tweenRunning&&o(s);f&&e&&r.callbacks.onBeforeUpdate&&typeof r.callbacks.onBeforeUpdate=="function"&&r.callbacks.onBeforeUpdate.call(this);s.hasClass(i[3])&&s.removeClass(i[3]);s.hasClass(i[4])&&s.removeClass(i[4]);a.css("max-height","none");a.height()!==s.height()&&a.css("max-height",s.height());dt.call(this);r.axis==="y"||r.advanced.autoExpandHorizontalScroll||h.css("width",ht(h));e.overflowed=ii.call(this);ct.call(this);r.autoDraggerLength&&ni.call(this);ti.call(this);ri.call(this);c=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)];r.axis!=="x"&&(e.overflowed[0]?l[0].height()>l[0].parent().height()?y.call(this):(u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(y.call(this),r.axis==="y"?g.call(this):r.axis==="yx"&&e.overflowed[1]&&u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"})));r.axis!=="y"&&(e.overflowed[1]?l[1].width()>l[1].parent().width()?y.call(this):(u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(y.call(this),r.axis==="x"?g.call(this):r.axis==="yx"&&e.overflowed[0]&&u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"})));f&&e&&(f===2&&r.callbacks.onImageLoad&&typeof r.callbacks.onImageLoad=="function"?r.callbacks.onImageLoad.call(this):f===3&&r.callbacks.onSelectorChange&&typeof r.callbacks.onSelectorChange=="function"?r.callbacks.onSelectorChange.call(this):r.callbacks.onUpdate&&typeof r.callbacks.onUpdate=="function"&&r.callbacks.onUpdate.call(this));et.call(this)}})},scrollTo:function(i,r){if(typeof i!="undefined"&&i!=null){var f=v.call(this);return n(f).each(function(){var s=n(this);if(s.data(t)){var o=s.data(t),h=o.opt,c={trigger:"external",scrollInertia:h.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},f=n.extend(!0,{},c,r),e=ft.call(this,i),l=f.scrollInertia>0&&f.scrollInertia<17?17:f.scrollInertia;e[0]=at.call(this,e[0],"y");e[1]=at.call(this,e[1],"x");f.moveDragger&&(e[0]*=o.scrollRatio.y,e[1]*=o.scrollRatio.x);f.dur=wi()?0:l;setTimeout(function(){e[0]!==null&&typeof e[0]!="undefined"&&h.axis!=="x"&&o.overflowed[0]&&(f.dir="y",f.overwrite="all",u(s,e[0].toString(),f));e[1]!==null&&typeof e[1]!="undefined"&&h.axis!=="y"&&o.overflowed[1]&&(f.dir="x",f.overwrite="none",u(s,e[1].toString(),f))},f.timeout)}})}},stop:function(){var i=v.call(this);return n(i).each(function(){var i=n(this);i.data(t)&&o(i)})},disable:function(r){var u=v.call(this);return n(u).each(function(){var u=n(this),f;u.data(t)&&(f=u.data(t),et.call(this,"remove"),g.call(this),r&&y.call(this),ct.call(this,!0),u.addClass(i[3]))})},destroy:function(){var r=v.call(this);return n(r).each(function(){var f=n(this);if(f.data(t)){var u=f.data(t),e=u.opt,s=n("#mCSB_"+u.idx),o=n("#mCSB_"+u.idx+"_container"),c=n(".mCSB_"+u.idx+"_scrollbar");e.live&&k(e.liveSelector||n(r).selector);et.call(this,"remove");g.call(this);y.call(this);f.removeData(t);a(this,"mcs");c.remove();o.find("img."+i[2]).removeClass(i[2]);s.replaceWith(o.contents());f.removeClass(h+" _"+t+"_"+u.idx+" "+i[6]+" "+i[7]+" "+i[5]+" "+i[3]).addClass(i[4])}})}},v=function(){return typeof n(this)!="object"||n(this).length<1?it:this},st=function(t){t.autoDraggerLength=n.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1?!1:t.autoDraggerLength;t.autoExpandScrollbar=n.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1?!1:t.autoExpandScrollbar;t.scrollButtons.enable=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!1:t.scrollButtons.enable;t.autoHideScrollbar=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!0:t.autoHideScrollbar;t.scrollbarPosition=n.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},k=function(n){b[n]&&(clearTimeout(b[n]),a(b,n))},wt=function(n){return n==="yx"||n==="xy"||n==="auto"?"yx":n==="x"||n==="horizontal"?"x":"y"},bt=function(n){return n==="stepped"||n==="pixels"||n==="step"||n==="click"?"stepped":"stepless"},kt=function(){var f=n(this),u=f.data(t),r=u.opt,l=r.autoExpandScrollbar?" "+i[1]+"_expand":"",o=["<div id='mCSB_"+u.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_vertical"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>","<div id='mCSB_"+u.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_horizontal"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>"],v=r.axis==="yx"?"mCSB_vertical_horizontal":r.axis==="x"?"mCSB_horizontal":"mCSB_vertical",a=r.axis==="yx"?o[0]+o[1]:r.axis==="x"?o[1]:o[0],y=r.axis==="yx"?"<div id='mCSB_"+u.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",p=r.autoHideScrollbar?" "+i[6]:"",w=r.axis!=="x"&&u.langDir==="rtl"?" "+i[7]:"",c,s,e;r.setWidth&&f.css("width",r.setWidth);r.setHeight&&f.css("height",r.setHeight);r.setLeft=r.axis!=="y"&&u.langDir==="rtl"?"989999px":r.setLeft;f.addClass(h+" _"+t+"_"+u.idx+p+w).wrapInner("<div id='mCSB_"+u.idx+"' class='mCustomScrollBox mCS-"+r.theme+" "+v+"'><div id='mCSB_"+u.idx+"_container' class='mCSB_container' style='position:relative; top:"+r.setTop+"; left:"+r.setLeft+";' dir='"+u.langDir+"' /><\/div>");c=n("#mCSB_"+u.idx);s=n("#mCSB_"+u.idx+"_container");r.axis==="y"||r.advanced.autoExpandHorizontalScroll||s.css("width",ht(s));r.scrollbarPosition==="outside"?(f.css("position")==="static"&&f.css("position","relative"),f.css("overflow","visible"),c.addClass("mCSB_outside").after(a)):(c.addClass("mCSB_inside").append(a),s.wrap(y));gt.call(this);e=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")];e[0].css("min-height",e[0].height());e[1].css("min-width",e[1].width())},ht=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return n(this).outerWidth(!0)}).get())],r=t.parent().width();return i[0]>r?i[0]:i[1]>r?i[1]:"100%"},dt=function(){var e=n(this),f=e.data(t),r=f.opt,i=n("#mCSB_"+f.idx+"_container"),u;r.advanced.autoExpandHorizontalScroll&&r.axis!=="y"&&(i.css({width:"auto","min-width":0,"overflow-x":"scroll"}),u=Math.ceil(i[0].scrollWidth),r.advanced.autoExpandHorizontalScroll===3||r.advanced.autoExpandHorizontalScroll!==2&&u>i.parent().width()?i.css({width:u,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap())},gt=function(){var s=n(this),o=s.data(t),u=o.opt,h=n(".mCSB_"+o.idx+"_scrollbar:first"),f=tt(u.scrollButtons.tabindex)?"tabindex='"+u.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+i[13]+"' "+f+" />","<a href='#' class='"+i[14]+"' "+f+" />","<a href='#' class='"+i[15]+"' "+f+" />","<a href='#' class='"+i[16]+"' "+f+" />"],e=[u.axis==="x"?r[2]:r[0],u.axis==="x"?r[3]:r[1],r[2],r[3]];u.scrollButtons.enable&&h.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},ni=function(){var s=n(this),u=s.data(t),f=n("#mCSB_"+u.idx),e=n("#mCSB_"+u.idx+"_container"),r=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")],o=[f.height()/e.outerHeight(!1),f.width()/e.outerWidth(!1)],i=[parseInt(r[0].css("min-height")),Math.round(o[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(o[1]*r[1].parent().width())],h=p&&i[1]<i[0]?i[0]:i[1],c=p&&i[3]<i[2]?i[2]:i[3];r[0].css({height:h,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":i[0]+"px"});r[1].css({width:c,"max-width":r[1].parent().width()-10})},ti=function(){var s=n(this),i=s.data(t),u=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),r=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e=[f.outerHeight(!1)-u.height(),f.outerWidth(!1)-u.width()],o=[e[0]/(r[0].parent().height()-r[0].height()),e[1]/(r[1].parent().width()-r[1].width())];i.scrollRatio={y:o[0],x:o[1]}},d=function(n,t,r){var f=r?i[0]+"_expanded":"",u=n.closest(".mCSB_scrollTools");t==="active"?(n.toggleClass(i[0]+" "+f),u.toggleClass(i[1]),n[0]._draggable=n[0]._draggable?0:1):n[0]._draggable||(t==="hide"?(n.removeClass(i[0]),u.removeClass(i[1])):(n.addClass(i[0]),u.addClass(i[1])))},ii=function(){var h=n(this),r=h.data(t),e=n("#mCSB_"+r.idx),i=n("#mCSB_"+r.idx+"_container"),u=r.overflowed==null?i.height():i.outerHeight(!1),f=r.overflowed==null?i.width():i.outerWidth(!1),o=i[0].scrollHeight,s=i[0].scrollWidth;return o>u&&(u=o),s>f&&(f=s),[u>e.height(),f>e.width()]},y=function(){var r=n(this),i=r.data(t),f=i.opt,c=n("#mCSB_"+i.idx),s=n("#mCSB_"+i.idx+"_container"),h=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e;o(r);(f.axis!=="x"&&!i.overflowed[0]||f.axis==="y"&&i.overflowed[0])&&(h[0].add(s).css("top",0),u(r,"_resetY"));(f.axis!=="y"&&!i.overflowed[1]||f.axis==="x"&&i.overflowed[1])&&(e=dx=0,i.langDir==="rtl"&&(e=c.width()-s.outerWidth(!1),dx=Math.abs(e/i.scrollRatio.x)),s.css("left",e),h[1].css("left",dx),u(r,"_resetX"))},ri=function(){var u=n(this),r=u.data(t),i=r.opt,e;if(!r.bindEvents){if(ui.call(this),i.contentTouchScroll&&fi.call(this),ei.call(this),i.mouseWheel.enable){function f(){e=setTimeout(function(){n.event.special.mousewheel?(clearTimeout(e),oi.call(u[0])):f()},100)}f()}hi.call(this);li.call(this);i.advanced.autoScrollOnFocus&&ci.call(this);i.scrollButtons.enable&&ai.call(this);i.keyboard.enable&&vi.call(this);r.bindEvents=!0}},g=function(){var f=n(this),r=f.data(t),u=r.opt,o=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",e=n("#mCSB_"+r.idx+",#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,"+s+" ."+i[12]+",#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal,"+s+">a"),h=n("#mCSB_"+r.idx+"_container");u.advanced.releaseDraggableSelectors&&e.add(n(u.advanced.releaseDraggableSelectors));u.advanced.extraDraggableSelectors&&e.add(n(u.advanced.extraDraggableSelectors));r.bindEvents&&(n(document).add(n(!l()||top.document)).unbind("."+o),e.each(function(){n(this).unbind("."+o)}),clearTimeout(f[0]._focusTimeout),a(f[0],"_focusTimeout"),clearTimeout(r.sequential.step),a(r.sequential,"step"),clearTimeout(h[0].onCompleteTimeout),a(h[0],"onCompleteTimeout"),r.bindEvents=!1)},ct=function(r){var h=n(this),u=h.data(t),o=u.opt,c=n("#mCSB_"+u.idx+"_container_wrapper"),f=c.length?c:n("#mCSB_"+u.idx+"_container"),e=[n("#mCSB_"+u.idx+"_scrollbar_vertical"),n("#mCSB_"+u.idx+"_scrollbar_horizontal")],s=[e[0].find(".mCSB_dragger"),e[1].find(".mCSB_dragger")];o.axis!=="x"&&(u.overflowed[0]&&!r?(e[0].add(s[0]).add(e[0].children("a")).css("display","block"),f.removeClass(i[8]+" "+i[10])):(o.alwaysShowScrollbar?(o.alwaysShowScrollbar!==2&&s[0].css("display","none"),f.removeClass(i[10])):(e[0].css("display","none"),f.addClass(i[10])),f.addClass(i[8])));o.axis!=="y"&&(u.overflowed[1]&&!r?(e[1].add(s[1]).add(e[1].children("a")).css("display","block"),f.removeClass(i[9]+" "+i[11])):(o.alwaysShowScrollbar?(o.alwaysShowScrollbar!==2&&s[1].css("display","none"),f.removeClass(i[11])):(e[1].css("display","none"),f.addClass(i[11])),f.addClass(i[9])));u.overflowed[0]||u.overflowed[1]?h.removeClass(i[5]):h.addClass(i[5])},r=function(t){var e=t.type,i=t.target.ownerDocument!==document&&frameElement!==null?[n(frameElement).offset().top,n(frameElement).offset().left]:null,u=l()&&t.target.ownerDocument!==top.document&&frameElement!==null?[n(t.view.frameElement).offset().top,n(t.view.frameElement).offset().left]:[0,0],r,f;switch(e){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+u[0],t.originalEvent.pageX-i[1]+u[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":return r=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],f=t.originalEvent.touches.length||t.originalEvent.changedTouches.length,t.target.ownerDocument!==document?[r.screenY,r.screenX,f>1]:[r.pageY,r.pageX,f>1];default:return i?[t.pageY-i[0]+u[0],t.pageX-i[1]+u[1],!1]:[t.pageY,t.pageX,!1]}},ui=function(){function k(n,t,r,f){var e,o;w[0].idleTimer=h.scrollInertia<233?250:0;i.attr("id")===y[1]?(e="x",o=(i[0].offsetLeft-t+f)*s.scrollRatio.x):(e="y",o=(i[0].offsetTop-n+r)*s.scrollRatio.y);u(v,o.toString(),{dir:e,drag:!0})}var v=n(this),s=v.data(t),h=s.opt,f=t+"_"+s.idx,y=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],w=n("#mCSB_"+s.idx+"_container"),b=n("#"+y[0]+",#"+y[1]),i,c,a,g=h.advanced.releaseDraggableSelectors?b.add(n(h.advanced.releaseDraggableSelectors)):b,nt=h.advanced.extraDraggableSelectors?n(!l()||top.document).add(n(h.advanced.extraDraggableSelectors)):n(!l()||top.document);b.bind("contextmenu."+f,function(n){n.preventDefault()}).bind("mousedown."+f+" touchstart."+f+" pointerdown."+f+" MSPointerDown."+f,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),yt(t)){e=!0;p&&(document.onselectstart=function(){return!1});lt.call(w,!1);o(v);i=n(this);var u=i.offset(),f=r(t)[0]-u.top,s=r(t)[1]-u.left,l=i.height()+u.top,y=i.width()+u.left;f<l&&f>0&&s<y&&s>0&&(c=f,a=s);d(i,"active",h.autoExpandScrollbar)}}).bind("touchmove."+f,function(n){n.stopImmediatePropagation();n.preventDefault();var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;k(c,a,u,f)});n(document).add(nt).bind("mousemove."+f+" pointermove."+f+" MSPointerMove."+f,function(n){if(i){var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;if(c===u&&a===f)return;k(c,a,u,f)}}).add(g).bind("mouseup."+f+" touchend."+f+" pointerup."+f+" MSPointerUp."+f,function(){i&&(d(i,"active",h.autoExpandScrollbar),i=null);e=!1;p&&(document.onselectstart=null);lt.call(w,!0)})},fi=function(){function dt(n){if(!nt(n)||e||r(n)[2]){c=0;return}c=1;ft=0;et=0;st=1;k.removeClass("mCS_touch_action");var t=b.offset();d=r(n)[0]-t.top;g=r(n)[1]-t.left;v=[r(n)[0],r(n)[1]]}function gt(n){var c,l,a,y;if(nt(n)&&!e&&!r(n)[2]&&(f.documentTouchScroll||n.preventDefault(),n.stopImmediatePropagation(),!et||ft)&&st){pt=w();var o=tt.offset(),t=r(n)[0]-o.top,u=r(n)[1]-o.left,h="mcsLinearOut";rt.push(t);ut.push(u);v[2]=Math.abs(r(n)[0]-v[0]);v[3]=Math.abs(r(n)[1]-v[1]);i.overflowed[0]&&(c=it[0].parent().height()-it[0].height(),l=d-t>0&&t-d>-(c*i.scrollRatio.y)&&(v[3]*2<v[2]||f.axis==="yx"));i.overflowed[1]&&(a=it[1].parent().width()-it[1].width(),y=g-u>0&&u-g>-(a*i.scrollRatio.x)&&(v[2]*2<v[3]||f.axis==="yx"));l||y?(kt||n.preventDefault(),ft=1):(et=1,k.addClass("mCS_touch_action"));kt&&n.preventDefault();s=f.axis==="yx"?[d-t,g-u]:f.axis==="x"?[null,g-u]:[d-t,null];b[0].idleTimer=250;i.overflowed[0]&&ot(s[0],wt,h,"y","all",!0);i.overflowed[1]&&ot(s[1],wt,h,"x",lt,!0)}}function ni(n){if(!nt(n)||e||r(n)[2]){c=0;return}c=1;n.stopImmediatePropagation();o(k);yt=w();var t=tt.offset();at=r(n)[0]-t.top;vt=r(n)[1]-t.left;rt=[];ut=[]}function ti(n){var t,u,h;if(nt(n)&&!e&&!r(n)[2]){st=0;n.stopImmediatePropagation();ft=0;et=0;ht=w();var c=tt.offset(),l=r(n)[0]-c.top,v=r(n)[1]-c.left;if(!(ht-pt>30)){a=1e3/(ht-yt);var p="mcsEaseOut",o=a<2.5,k=o?[rt[rt.length-2],ut[ut.length-2]]:[0,0];y=o?[l-k[0],v-k[1]]:[l-at,v-vt];t=[Math.abs(y[0]),Math.abs(y[1])];a=o?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[a,a];u=[Math.abs(b[0].offsetTop)-y[0]*ii(t[0]/a[0],a[0]),Math.abs(b[0].offsetLeft)-y[1]*ii(t[1]/a[1],a[1])];s=f.axis==="yx"?[u[0],u[1]]:f.axis==="x"?[null,u[1]]:[u[0],null];ct=[t[0]*4+f.scrollInertia,t[1]*4+f.scrollInertia];h=parseInt(f.contentTouchScroll)||0;s[0]=t[0]>h?s[0]:0;s[1]=t[1]>h?s[1]:0;i.overflowed[0]&&ot(s[0],ct[0],p,"y",lt,!1);i.overflowed[1]&&ot(s[1],ct[1],p,"x",lt,!1)}}}function ii(n,t){var i=[t*1.5,t*2,t/1.5,t/2];return n>90?t>4?i[0]:i[3]:n>60?t>3?i[3]:i[2]:n>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function ot(n,t,i,r,f,e){n&&u(k,n.toString(),{dur:t,scrollEasing:i,dir:r,overwrite:f,drag:e})}var k=n(this),i=k.data(t),f=i.opt,h=t+"_"+i.idx,tt=n("#mCSB_"+i.idx),b=n("#mCSB_"+i.idx+"_container"),it=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],st,d,g,at,vt,rt=[],ut=[],yt,pt,ht,y,a,s,wt=0,ct,lt=f.axis==="yx"?"none":"all",v=[],ft,et,bt=b.find("iframe"),p=["touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,"touchmove."+h+" pointermove."+h+" MSPointerMove."+h,"touchend."+h+" pointerup."+h+" MSPointerUp."+h],kt=document.body.style.touchAction!==undefined&&document.body.style.touchAction!=="";b.bind(p[0],function(n){dt(n)}).bind(p[1],function(n){gt(n)});tt.bind(p[0],function(n){ni(n)}).bind(p[2],function(n){ti(n)});bt.length&&bt.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){dt(n);ni(n)}).bind(p[1],function(n){gt(n)}).bind(p[2],function(n){ti(n)})})})},ei=function(){function y(){return window.getSelection?window.getSelection().toString():document.selection&&document.selection.type!="Control"?document.selection.createRange().text:0}function f(n,t,i){l.type=i&&u?"stepped":"stepless";l.scrollAmount=10;ut(a,n,t,"mcsLinearOut",i?60:null)}var a=n(this),i=a.data(t),v=i.opt,l=i.sequential,s=t+"_"+i.idx,o=n("#mCSB_"+i.idx+"_container"),h=o.parent(),u;o.bind("mousedown."+s,function(){c||u||(u=1,e=!0)}).add(document).bind("mousemove."+s,function(n){if(!c&&u&&y()){var s=o.offset(),t=r(n)[0]-s.top+o[0].offsetTop,e=r(n)[1]-s.left+o[0].offsetLeft;t>0&&t<h.height()&&e>0&&e<h.width()?l.step&&f("off",null,"stepped"):(v.axis!=="x"&&i.overflowed[0]&&(t<0?f("on",38):t>h.height()&&f("on",40)),v.axis!=="y"&&i.overflowed[1]&&(e<0?f("on",37):e>h.width()&&f("on",39)))}}).bind("mouseup."+s+" dragend."+s,function(){c||(u&&(u=0,f("off",null)),e=!1)})},oi=function(){function a(t,h){var a,v;if(o(s),!si(s,t.target)){if(a=i.mouseWheel.deltaFactor!=="auto"?parseInt(i.mouseWheel.deltaFactor):p&&t.deltaFactor<100?100:t.deltaFactor||100,v=i.scrollInertia,i.axis==="x"||i.mouseWheel.axis==="x")var y="x",l=[Math.round(a*r.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],w=i.mouseWheel.scrollAmount!=="auto"?l[1]:l[0]>=e.width()?e.width()*.9:l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetLeft),b=f[1][0].offsetLeft,d=f[1].parent().width()-f[1].width(),c=i.mouseWheel.axis==="y"?t.deltaY||h:t.deltaX;else var y="y",l=[Math.round(a*r.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],w=i.mouseWheel.scrollAmount!=="auto"?l[1]:l[0]>=e.height()?e.height()*.9:l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetTop),b=f[0][0].offsetTop,d=f[0].parent().height()-f[0].height(),c=t.deltaY||h;(y!=="y"||r.overflowed[0])&&(y!=="x"||r.overflowed[1])&&((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(c=-c),i.mouseWheel.normalizeDelta&&(c=c<0?-1:1),(c>0&&b!==0||c<0&&b!==d||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(w=t.deltaFactor,v=17),u(s,(k-c*w).toString(),{dir:y,dur:v}))}}if(n(this).data(t)){var s=n(this),r=s.data(t),i=r.opt,h=t+"_"+r.idx,e=n("#mCSB_"+r.idx),f=[n("#mCSB_"+r.idx+"_dragger_vertical"),n("#mCSB_"+r.idx+"_dragger_horizontal")],c=n("#mCSB_"+r.idx+"_container").find("iframe");c.length&&c.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind("mousewheel."+h,function(n,t){a(n,t)})})});e.bind("mousewheel."+h,function(n,t){a(n,t)})}},rt={},l=function(t){var r=!1,i=!1,u=null,f;if(t===undefined?i="#empty":n(t).attr("id")!==undefined&&(i=n(t).attr("id")),i!==!1&&rt[i]!==undefined)return rt[i];if(t){try{f=t.contentDocument||t.contentWindow.document;u=f.body.innerHTML}catch(e){}r=u!==null}else{try{f=top.document;u=f.body.innerHTML}catch(e){}r=u!==null}return i!==!1&&(rt[i]=r),r},lt=function(n){var t=this.find("iframe"),i;t.length&&(i=n?"auto":"none",t.css("pointer-events",i))},si=function(i,r){var u=r.nodeName.toLowerCase(),f=i.data(t).opt.mouseWheel.disableOver;return n.inArray(u,f)>-1&&!(n.inArray(u,["select","textarea"])>-1&&!n(r).is(":focus"))},hi=function(){var s=n(this),f=s.data(t),r=t+"_"+f.idx,h=n("#mCSB_"+f.idx+"_container"),l=h.parent(),a=n(".mCSB_"+f.idx+"_scrollbar ."+i[12]),c;a.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(t){e=!0;n(t.target).hasClass("mCSB_dragger")||(c=1)}).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){e=!1}).bind("click."+r,function(t){var r,e;if(c&&(c=0,n(t.target).hasClass(i[12])||n(t.target).hasClass("mCSB_draggerRail"))){if(o(s),r=n(this),e=r.find(".mCSB_dragger"),r.parent(".mCSB_scrollTools_horizontal").length>0){if(!f.overflowed[1])return;var v="x",a=t.pageX>e.offset().left?-1:1,y=Math.abs(h[0].offsetLeft)-a*l.width()*.9}else{if(!f.overflowed[0])return;var v="y",a=t.pageY>e.offset().top?-1:1,y=Math.abs(h[0].offsetTop)-a*l.height()*.9}u(s,y.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},ci=function(){var i=n(this),s=i.data(t),e=s.opt,c=t+"_"+s.idx,r=n("#mCSB_"+s.idx+"_container"),h=r.parent();r.bind("focusin."+c,function(){var t=n(document.activeElement),c=r.find(".mCustomScrollBox").length,s=0;t.is(e.advanced.autoScrollOnFocus)&&(o(i),clearTimeout(i[0]._focusTimeout),i[0]._focusTimer=c?(s+17)*c:0,i[0]._focusTimeout=setTimeout(function(){var n=[f(t)[0],f(t)[1]],o=[r[0].offsetTop,r[0].offsetLeft],c=[o[0]+n[0]>=0&&o[0]+n[0]<h.height()-t.outerHeight(!1),o[1]+n[1]>=0&&o[0]+n[1]<h.width()-t.outerWidth(!1)],l=e.axis==="yx"&&!c[0]&&!c[1]?"none":"all";e.axis==="x"||c[0]||u(i,n[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s});e.axis==="y"||c[1]||u(i,n[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s})},i[0]._focusTimer))})},li=function(){var u=n(this),i=u.data(t),f=t+"_"+i.idx,r=n("#mCSB_"+i.idx+"_container").parent();r.bind("scroll."+f,function(){(r.scrollTop()!==0||r.scrollLeft()!==0)&&n(".mCSB_"+i.idx+"_scrollbar").css("visibility","hidden")})},ai=function(){var f=n(this),r=f.data(t),o=r.opt,u=r.sequential,i=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",h=n(s+">a");h.bind("contextmenu."+i,function(n){n.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(t){function s(n,t){u.scrollAmount=o.scrollButtons.scrollAmount;ut(f,n,t)}if(t.preventDefault(),yt(t)){var i=n(this).attr("class");u.type=o.scrollButtons.scrollType;switch(t.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if(u.type==="stepped")return;e=!0;r.tweenRunning=!1;s("on",i);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if(u.type==="stepped")return;e=!1;u.dir&&s("off",i);break;case"click":if(u.type!=="stepped"||r.tweenRunning)return;s("on",i)}}})},vi=function(){function p(t){function w(n,t){(s.type=r.keyboard.scrollType,s.scrollAmount=r.keyboard.scrollAmount,s.type==="stepped"&&i.tweenRunning)||ut(e,n,t)}var c,y,p,l,v;switch(t.type){case"blur":i.tweenRunning&&s.dir&&w("off",null);break;case"keydown":case"keyup":if(c=t.keyCode?t.keyCode:t.which,y="on",r.axis!=="x"&&(c===38||c===40)||r.axis!=="y"&&(c===37||c===39)){if((c===38||c===40)&&!i.overflowed[0]||(c===37||c===39)&&!i.overflowed[1])return;t.type==="keyup"&&(y="off");n(document.activeElement).is(a)||(t.preventDefault(),t.stopImmediatePropagation(),w(y,c))}else c===33||c===34?((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),t.type==="keyup"&&(o(e),p=c===34?-1:1,r.axis==="x"||r.axis==="yx"&&i.overflowed[1]&&!i.overflowed[0]?(l="x",v=Math.abs(f[0].offsetLeft)-p*h.width()*.9):(l="y",v=Math.abs(f[0].offsetTop)-p*h.height()*.9),u(e,v.toString(),{dir:l,scrollEasing:"mcsEaseInOut"}))):(c===35||c===36)&&(n(document.activeElement).is(a)||((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),t.type==="keyup"&&(r.axis==="x"||r.axis==="yx"&&i.overflowed[1]&&!i.overflowed[0]?(l="x",v=c===35?Math.abs(h.width()-f.outerWidth(!1)):0):(l="y",v=c===35?Math.abs(h.height()-f.outerHeight(!1)):0),u(e,v.toString(),{dir:l,scrollEasing:"mcsEaseInOut"}))))}}var e=n(this),i=e.data(t),r=i.opt,s=i.sequential,c=t+"_"+i.idx,w=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),h=f.parent(),a="input,textarea,select,datalist,keygen,[contenteditable='true']",v=f.find("iframe"),y=["blur."+c+" keydown."+c+" keyup."+c];v.length&&v.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(y[0],function(n){p(n)})})});w.attr("tabindex","0").bind(y[0],function(n){p(n)})},ut=function(r,f,e,s,h){function y(n){l.snapAmount&&(c.scrollAmount=(l.snapAmount instanceof Array)?c.dir[0]==="x"?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount);var i=c.type!=="stepped",f=h?h:n?i?b/1.5:k:1e3/60,e=n?i?7.5:40:2.5,t=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],o=[v.scrollRatio.y>10?10:v.scrollRatio.y,v.scrollRatio.x>10?10:v.scrollRatio.x],w=c.dir[0]==="x"?t[1]+c.dir[1]*o[1]*e:t[0]+c.dir[1]*o[0]*e,d=c.dir[0]==="x"?t[1]+c.dir[1]*parseInt(c.scrollAmount):t[0]+c.dir[1]*parseInt(c.scrollAmount),a=c.scrollAmount!=="auto"?d:w,g=s?s:n?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",nt=n?!0:!1;if(n&&f<17&&(a=c.dir[0]==="x"?t[1]:t[0]),u(r,a.toString(),{dir:c.dir[0],scrollEasing:g,dur:f,onComplete:nt}),n){c.dir=!1;return}clearTimeout(c.step);c.step=setTimeout(function(){y()},f)}function d(){clearTimeout(c.step);a(c,"step");o(r)}var v=r.data(t),l=v.opt,c=v.sequential,p=n("#mCSB_"+v.idx+"_container"),w=c.type==="stepped"?!0:!1,b=l.scrollInertia<26?26:l.scrollInertia,k=l.scrollInertia<1?17:l.scrollInertia;switch(f){case"on":if(c.dir=[e===i[16]||e===i[15]||e===39||e===37?"x":"y",e===i[13]||e===i[15]||e===38||e===37?-1:1],o(r),tt(e)&&c.type==="stepped")return;y(w);break;case"off":d();(w||v.tweenRunning&&c.dir)&&y(!0)}},ft=function(i){var u=n(this).data(t).opt,r=[];return typeof i=="function"&&(i=i()),i instanceof Array?r=i.length>1?[i[0],i[1]]:u.axis==="x"?[null,i[0]]:[i[0],null]:(r[0]=i.y?i.y:i.x||u.axis==="x"?null:i,r[1]=i.x?i.x:i.y||u.axis==="y"?null:i),typeof r[0]=="function"&&(r[0]=r[0]()),typeof r[1]=="function"&&(r[1]=r[1]()),r},at=function(i,r){var h,e;if(i!=null&&typeof i!="undefined"){var c=n(this),l=c.data(t),v=l.opt,u=n("#mCSB_"+l.idx+"_container"),o=u.parent(),y=typeof i;r||(r=v.axis==="x"?"x":"y");var p=r==="x"?u.outerWidth(!1)-o.width():u.outerHeight(!1)-o.height(),a=r==="x"?u[0].offsetLeft:u[0].offsetTop,w=r==="x"?"left":"top";switch(y){case"function":return i();case"object":return(e=i.jquery?i:n(i),!e.length)?void 0:r==="x"?f(e)[1]:f(e)[0];case"string":case"number":if(tt(i))return Math.abs(i);if(i.indexOf("%")!==-1)return Math.abs(p*parseInt(i)/100);if(i.indexOf("-=")!==-1)return Math.abs(a-parseInt(i.split("-=")[1]));if(i.indexOf("+=")!==-1)return h=a+parseInt(i.split("+=")[1]),h>=0?0:Math.abs(h);if(i.indexOf("px")!==-1&&tt(i.split("px")[0]))return Math.abs(i.split("px")[0]);if(i==="top"||i==="left")return 0;if(i==="bottom")return Math.abs(o.height()-u.outerHeight(!1));if(i==="right")return Math.abs(o.width()-u.outerWidth(!1));if(i==="first"||i==="last")return e=u.find(":"+i),r==="x"?f(e)[1]:f(e)[0];if(n(i).length)return r==="x"?f(n(i))[1]:f(n(i))[0];u.css(w,i);s.update.call(null,c[0]);return}}},et=function(r){function c(){if(clearTimeout(e[0].autoUpdate),o.parents("html").length===0){o=null;return}e[0].autoUpdate=setTimeout(function(){if(f.advanced.updateOnSelectorChange&&(u.poll.change.n=v(),u.poll.change.n!==u.poll.change.o)){u.poll.change.o=u.poll.change.n;h(3);return}if(f.advanced.updateOnContentResize&&(u.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+e[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,u.poll.size.n!==u.poll.size.o)){u.poll.size.o=u.poll.size.n;h(1);return}if(f.advanced.updateOnImageLoad&&!(f.advanced.updateOnImageLoad==="auto"&&f.axis==="y")&&(u.poll.img.n=e.find("img").length,u.poll.img.n!==u.poll.img.o)){u.poll.img.o=u.poll.img.n;e.find("img").each(function(){l(this)});return}(f.advanced.updateOnSelectorChange||f.advanced.updateOnContentResize||f.advanced.updateOnImageLoad)&&c()},f.advanced.autoUpdateTimeout)}function l(t){function u(n,t){return function(){return t.apply(n,arguments)}}function f(){this.onload=null;n(t).addClass(i[2]);h(2)}if(n(t).hasClass(i[2])){h();return}var r=new Image;r.onload=u(r,f);r.src=t.src}function v(){f.advanced.updateOnSelectorChange===!0&&(f.advanced.updateOnSelectorChange="*");var n=0,t=e.find(f.advanced.updateOnSelectorChange);return f.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){n+=this.offsetHeight+this.offsetWidth}),n}function h(n){clearTimeout(e[0].autoUpdate);s.update.call(null,o[0],n)}var o=n(this),u=o.data(t),f=u.opt,e=n("#mCSB_"+u.idx+"_container");if(r){clearTimeout(e[0].autoUpdate);a(e[0],"autoUpdate");return}c()},yi=function(n,t,i){return Math.round(n/t)*t-i},o=function(i){var r=i.data(t),u=n("#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal");u.each(function(){pi.call(this)})},u=function(i,r,u){function h(n){return f&&e.callbacks[n]&&typeof e.callbacks[n]=="function"}function ot(){return[e.callbacks.alwaysTriggerOffsets||w>=l[0]+v,e.callbacks.alwaysTriggerOffsets||w<=-y]}function a(){var n=[o[0].offsetTop,o[0].offsetLeft],t=[c[0].offsetTop,c[0].offsetLeft],r=[o.outerHeight(!1),o.outerWidth(!1)],f=[p.height(),p.width()];i[0].mcs={content:o,top:n[0],left:n[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(n[0])/(Math.abs(r[0])-f[0])),leftPct:Math.round(100*Math.abs(n[1])/(Math.abs(r[1])-f[1])),direction:u.dir}}var f=i.data(t),e=f.opt,rt={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:e.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=n.extend(rt,u),k=[u.dur,u.drag?0:u.dur],p=n("#mCSB_"+f.idx),o=n("#mCSB_"+f.idx+"_container"),b=o.parent(),g=e.callbacks.onTotalScrollOffset?ft.call(i,e.callbacks.onTotalScrollOffset):[0,0],nt=e.callbacks.onTotalScrollBackOffset?ft.call(i,e.callbacks.onTotalScrollBackOffset):[0,0],tt;if(f.trigger=u.trigger,(b.scrollTop()!==0||b.scrollLeft()!==0)&&(n(".mCSB_"+f.idx+"_scrollbar").css("visibility","visible"),b.scrollTop(0).scrollLeft(0)),r!=="_resetY"||f.contentReset.y||(h("onOverflowYNone")&&e.callbacks.onOverflowYNone.call(i[0]),f.contentReset.y=1),r!=="_resetX"||f.contentReset.x||(h("onOverflowXNone")&&e.callbacks.onOverflowXNone.call(i[0]),f.contentReset.x=1),r!=="_resetY"&&r!=="_resetX"){(f.contentReset.y||!i[0].mcs)&&f.overflowed[0]&&(h("onOverflowY")&&e.callbacks.onOverflowY.call(i[0]),f.contentReset.x=null);(f.contentReset.x||!i[0].mcs)&&f.overflowed[1]&&(h("onOverflowX")&&e.callbacks.onOverflowX.call(i[0]),f.contentReset.x=null);e.snapAmount&&(tt=(e.snapAmount instanceof Array)?u.dir==="x"?e.snapAmount[1]:e.snapAmount[0]:e.snapAmount,r=yi(r,tt,e.snapOffset));switch(u.dir){case"x":var c=n("#mCSB_"+f.idx+"_dragger_horizontal"),it="left",w=o[0].offsetLeft,l=[p.width()-o.outerWidth(!1),c.parent().width()-c.width()],s=[r,r===0?0:r/f.scrollRatio.x],v=g[1],y=nt[1],ut=v>0?v/f.scrollRatio.x:0,et=y>0?y/f.scrollRatio.x:0;break;case"y":var c=n("#mCSB_"+f.idx+"_dragger_vertical"),it="top",w=o[0].offsetTop,l=[p.height()-o.outerHeight(!1),c.parent().height()-c.height()],s=[r,r===0?0:r/f.scrollRatio.y],v=g[0],y=nt[0],ut=v>0?v/f.scrollRatio.y:0,et=y>0?y/f.scrollRatio.y:0}(s[1]<0||s[0]===0&&s[1]===0?s=[0,0]:s[1]>=l[1]?s=[l[0],l[1]]:s[0]=-s[0],i[0].mcs||(a(),h("onInit")&&e.callbacks.onInit.call(i[0])),clearTimeout(o[0].onCompleteTimeout),vt(c[0],it,Math.round(s[1]),k[1],u.scrollEasing),!f.tweenRunning&&(w===0&&s[0]>=0||w===l[0]&&s[0]<=l[0]))||vt(o[0],it,Math.round(s[0]),k[0],u.scrollEasing,u.overwrite,{onStart:function(){u.callbacks&&u.onStart&&!f.tweenRunning&&(h("onScrollStart")&&(a(),e.callbacks.onScrollStart.call(i[0])),f.tweenRunning=!0,d(c),f.cbOffsets=ot())},onUpdate:function(){u.callbacks&&u.onUpdate&&h("whileScrolling")&&(a(),e.callbacks.whileScrolling.call(i[0]))},onComplete:function(){if(u.callbacks&&u.onComplete){e.axis==="yx"&&clearTimeout(o[0].onCompleteTimeout);var n=o[0].idleTimer||0;o[0].onCompleteTimeout=setTimeout(function(){h("onScroll")&&(a(),e.callbacks.onScroll.call(i[0]));h("onTotalScroll")&&s[1]>=l[1]-ut&&f.cbOffsets[0]&&(a(),e.callbacks.onTotalScroll.call(i[0]));h("onTotalScrollBack")&&s[1]<=et&&f.cbOffsets[1]&&(a(),e.callbacks.onTotalScrollBack.call(i[0]));f.tweenRunning=!1;o[0].idleTimer=0;d(c,"hide")},n)}}})}},vt=function(n,t,i,r,u,f,e){function y(){o.stop||(s||b.call(),s=w()-g,p(),s>=o.time&&(o.time=s>o.time?s+h-(s-o.time):s+h-1,o.time<s+1&&(o.time=s+1)),o.time<r?o.id=l(y):d.call())}function p(){r>0?(o.currVal=it(o.time,c,v,r,u),a[t]=Math.round(o.currVal)+"px"):a[t]=i+"px";k.call()}function nt(){h=1e3/60;o.time=s+h;l=window.requestAnimationFrame?window.requestAnimationFrame:function(n){return p(),setTimeout(n,.01)};o.id=l(y)}function tt(){o.id!=null&&(window.requestAnimationFrame?window.cancelAnimationFrame(o.id):clearTimeout(o.id),o.id=null)}function it(n,t,i,r,u){switch(u){case"linear":case"mcsLinear":return i*n/r+t;case"mcsLinearOut":return n/=r,n--,i*Math.sqrt(1-n*n)+t;case"easeInOutSmooth":return(n/=r/2,n<1)?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t);case"easeInOutStrong":return(n/=r/2,n<1)?i/2*Math.pow(2,10*(n-1))+t:(n--,i/2*(-Math.pow(2,-10*n)+2)+t);case"easeInOut":case"mcsEaseInOut":return(n/=r/2,n<1)?i/2*n*n*n+t:(n-=2,i/2*(n*n*n+2)+t);case"easeOutSmooth":return n/=r,n--,-i*(n*n*n*n-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*n/r)+1)+t;case"easeOut":case"mcsEaseOut":default:var f=(n/=r)*n,e=f*n;return t+i*(.499999999999997*e*f+-2.5*f*f+5.5*e+-6.5*f+4*n)}}var v;n._mTween||(n._mTween={top:{},left:{}});var e=e||{},b=e.onStart||function(){},k=e.onUpdate||function(){},d=e.onComplete||function(){},g=w(),h,s=0,c=n.offsetTop,a=n.style,l,o=n._mTween[t];t==="left"&&(c=n.offsetLeft);v=i-c;o.stop=0;f!=="none"&&tt();nt()},w=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},pi=function(){var n=this,r,i,t;for(n._mTween||(n._mTween={top:{},left:{}}),r=["top","left"],i=0;i<r.length;i++)t=r[i],n._mTween[t].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(n._mTween[t].id):clearTimeout(n._mTween[t].id),n._mTween[t].id=null,n._mTween[t].stop=1)},a=function(n,t){try{delete n[t]}catch(i){n[t]=null}},yt=function(n){return!(n.which&&n.which!==1)},nt=function(n){var t=n.originalEvent.pointerType;return!(t&&t!=="touch"&&t!==2)},tt=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},f=function(n){var t=n.parents(".mCSB_container");return[n.offset().top-t.offset().top,n.offset().left-t.offset().left]},wi=function(){function t(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}var n=t();return n?document[n]:!1};n.fn[h]=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist");else return s.init.apply(this,arguments)};n[h]=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist");else return s.init.apply(this,arguments)};n[h].defaults=ot;window[h]=!0;n(window).bind("load",function(){n(it)[h]();n.extend(n.expr[":"],{mcsInView:n.expr[":"].mcsInView||function(t){var i=n(t),u=i.parents(".mCSB_container"),e,r;if(u.length)return e=u.parent(),r=[u[0].offsetTop,u[0].offsetLeft],r[0]+f(i)[0]>=0&&r[0]+f(i)[0]<e.height()-i.outerHeight(!1)&&r[1]+f(i)[1]>=0&&r[1]+f(i)[1]<e.width()-i.outerWidth(!1)},mcsInSight:n.expr[":"].mcsInSight||function(t,i,r){var e=n(t),o,s=e.parents(".mCSB_container"),u,h,c,l=r[3]==="exact"?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(s.length)return o=[e.outerHeight(!1),e.outerWidth(!1)],h=[s[0].offsetTop+f(e)[0],s[0].offsetLeft+f(e)[1]],u=[s.parent()[0].offsetHeight,s.parent()[0].offsetWidth],c=[o[0]<u[0]?l[0]:l[1],o[1]<u[1]?l[0]:l[1]],h[0]-u[0]*c[0][0]<0&&h[0]+o[0]-u[0]*c[0][1]>=0&&h[1]-u[1]*c[1][0]<0&&h[1]+o[1]-u[1]*c[1][1]>=0},mcsOverflow:n.expr[":"].mcsOverflow||function(i){var r=n(i).data(t);if(r)return r.overflowed[0]||r.overflowed[1]}})})})})