text: function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}function uncamel(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function setUnit(e,t){return"string"!=typeof e||e.match(/^[\-0-9\.]+jQuery/)?""+e+t:e}function setFilter(e,t,i){var r=uncamel(t),n=jQuery.browser.mozilla?"":jQuery.CSS.sfx;e[n+"filter"]=e[n+"filter"]||"",i=setUnit(i>jQuery.CSS.filters[t].max?jQuery.CSS.filters[t].max:i,jQuery.CSS.filters[t].unit),e[n+"filter"]+=r+"("+i+") ",delete e[t]}function isTouchSupported(){var e=nAgt.msMaxTouchPoints,t="ontouchstart"in document.createElement("div");return!(!e&&!t)}!function(e,t){"function"==typeof define&&define.amd?define(["exports","echarts"],t):"object"==typeof exports&&"string"!=typeof exports.nodeName?t(exports,require("echarts")):t({},e.echarts)}(this,function(e,t){if(!t)return void function(e){"undefined"!=typeof console&&console&&console.error}();t.registerTheme("debbie",{color:["#2ec7c9","#ad82ff","#5ab1ef","#ffc700","#ff0013","#ff7fc0","#ccb7b7"],backgroundColor:"rgba(0,0,0,0)",textStyle:{},title:{textStyle:{color:"#45baff"},subtextStyle:{color:"#aaaaaa"}},line:{itemStyle:{normal:{borderWidth:1}},lineStyle:{normal:{width:"2"}},symbolSize:"6",symbol:"circle",smooth:!0},radar:{itemStyle:{normal:{borderWidth:1}},lineStyle:{normal:{width:"2"}},symbolSize:"6",symbol:"circle",smooth:!0},bar:{itemStyle:{normal:{barBorderWidth:"0",barBorderColor:"#eeeeee"},emphasis:{barBorderWidth:"0",barBorderColor:"#eeeeee"}}},pie:{itemStyle:{normal:{borderWidth:"0",borderColor:"#eeeeee"},emphasis:{borderWidth:"0",borderColor:"#eeeeee"}}},scatter:{itemStyle:{normal:{borderWidth:"0",borderColor:"#eeeeee"},emphasis:{borderWidth:"0",borderColor:"#eeeeee"}}},boxplot:{itemStyle:{normal:{borderWidth:"0",borderColor:"#eeeeee"},emphasis:{borderWidth:"0",borderColor:"#eeeeee"}}},parallel:{itemStyle:{normal:{borderWidth:"0",borderColor:"#eeeeee"},emphasis:{borderWidth:"0",borderColor:"#eeeeee"}}},sankey:{itemStyle:{normal:{borderWidth:"0",borderColor:"#eeeeee"},emphasis:{borderWidth:"0",borderColor:"#eeeeee"}}},funnel:{itemStyle:{normal:{borderWidth:"0",borderColor:"#eeeeee"},emphasis:{borderWidth:"0",borderColor:"#eeeeee"}}},gauge:{itemStyle:{normal:{borderWidth:"0",borderColor:"#eeeeee"},emphasis:{borderWidth:"0",borderColor:"#eeeeee"}}},candlestick:{itemStyle:{normal:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}}},graph:{itemStyle:{normal:{borderWidth:"0",borderColor:"#eeeeee"}},lineStyle:{normal:{width:1,color:"#aaaaaa"}},symbolSize:"6",symbol:"circle",smooth:!0,color:["#2ec7c9","#ad82ff","#5ab1ef","#ffc700","#ff0013","#ff7fc0","#ccb7b7"],label:{normal:{textStyle:{color:"#eeeeee"}}}},map:{itemStyle:{normal:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},emphasis:{areaColor:"rgba(254,153,78,1)",borderColor:"#444444",borderWidth:1}},label:{normal:{textStyle:{color:"#d87a80"}},emphasis:{textStyle:{color:"rgb(100,0,0)"}}}},geo:{itemStyle:{normal:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},emphasis:{areaColor:"rgba(254,153,78,1)",borderColor:"#444444",borderWidth:1}},label:{normal:{textStyle:{color:"#d87a80"}},emphasis:{textStyle:{color:"rgb(100,0,0)"}}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,textStyle:{color:"#333"}},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{normal:{borderColor:"#2ec7c9"},emphasis:{borderColor:"#18a4a6"}}},legend:{textStyle:{color:"#333333"}},tooltip:{axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},timeline:{lineStyle:{color:"#008acd",width:1},itemStyle:{normal:{color:"#008acd",borderWidth:1},emphasis:{color:"#a9334c"}},controlStyle:{normal:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},emphasis:{color:"#008acd",borderColor:"#008acd",borderWidth:.5}},checkpointStyle:{color:"#2ec7c9",borderColor:"rgba(46,199,201,0.4)"},label:{normal:{textStyle:{color:"#008acd"}},emphasis:{textStyle:{color:"#008acd"}}}},visualMap:{color:["#5ab1ef","#e0ffff"]},dataZoom:{backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"rgba(239,239,255,1)",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"98%",textStyle:{color:"#333333"}},markPoint:{label:{normal:{textStyle:{color:"#eeeeee"}},emphasis:{textStyle:{color:"#eeeeee"}}}}})}),function(e){function t(t){e(".pie_progress").asPieProgress({namespace:"asPieProgress",classes:{element:"pie_progress",number:"pie_progress__number"},min:0,max:100,size:150,speed:30,barsize:"8",fillcolor:"none",easing:"ease"}),e(t).find(".pie_progress").each(function(){e(this).asPieProgress("go",e(this).attr("data-goal")+"%")})}function i(t,i){var r=e(t).find("."+i);r.asPieProgress("go",r.attr("data-goal")+"%")}function r(){e(".countdown:not(.countdown-inited)").each(function(){e(this).addClass("countdown-inited").countdown(e(this).attr("data-due-date"),function(t){var i=e(t.target).closest(".countdown-cont").find("div.daysCountdown").attr("title"),r=e(t.target).closest(".countdown-cont").find("div.hoursCountdown").attr("title"),n=e(t.target).closest(".countdown-cont").find("div.minutesCountdown").attr("title"),o=e(t.target).closest(".countdown-cont").find("div.secondsCountdown").attr("title");e(this).html(t.strftime(['<div class="row">','<div class="col-xs-12 col-sm-6 col-md-3">','<span class="number-wrap">','<span class="number display-2">%D</span>','<span mbr-text class="period display-7">',i,"</span>",'<span class="dot">:</span>',"</span>","</div>",'<div class="col-xs-12 col-sm-6 col-md-3">','<span class="number-wrap">','<span class="number display-2">%H</span>','<span mbr-text class="period display-7">',r,"</span>",'<span class="dot">:</span>',"</span>","</div>",'<div class="col-xs-12 col-sm-6 col-md-3">','<span class="number-wrap">','<span class="number display-2">%M</span>','<span mbr-text class="period display-7">',n,"</span>",'<span class="dot">:</span>',"</span>","</div>",'<div class="col-xs-12 col-sm-6 col-md-3">','<span class="number-wrap">','<span class="number display-2">%S</span>','<span mbr-text class="period display-7">',o,"</span>","</span>","</div>","</div>"].join("")))})}),e(".countdown:not(.countdown-inited)").each(function(){e(this).countdown(e(this).attr("data-due-date"),function(t){e(this).text(t.strftime("%D days %H:%M:%S"))})})}function n(t,i){var n=/\d\d\d\d\/\d\d\/\d\d/g,o=e(t).find(".countdown");i.search(n)>-1&&(o.removeClass("countdown-inited"),r())}function o(){e(".flip-card:not(.builderCard)").each(function(){e(this).addClass("builderCard")})}function a(t){0!==e(t).find(".nav-tabs").length&&e(t).outerFind('section[id^="tabs"]').each(function(){var t=e(this).attr("id"),i=e(this).find(".nav-tabs .nav-item"),r=e(this).find(".tab-pane");r.removeClass("active").eq(0).addClass("active"),i.find("a").removeClass("active").removeAttr("aria-expanded").eq(0).addClass("active"),r.each(function(){e(this).attr("id",t+"_tab"+e(this).index())}),i.each(function(){e(this).find("a").attr("href","#"+t+"_tab"+e(this).index())})})}function s(t){e(t).find(".carousel-item:first").addClass("active")}function l(t){var i=e(t),r=i.attr("ID")+"-carousel";i.find(".carousel").attr("id",r),i.find(".carousel-controls a").attr("href","#"+r),s(i)}function u(t){var i=e(t),r=i.find(".carousel-item").length,n=i.find(".carousel-inner").attr("data-visible");r<n&&(n=r),i.find(".carousel-inner").attr("class","carousel-inner slides"+n),i.find(".clonedCol").remove(),i.find(".carousel-item .col-md-12").each(function(){n<2?e(this).attr("class","col-md-12"):"5"==n?e(this).attr("class","col-md-12 col-lg-15"):e(this).attr("class","col-md-12 col-lg-"+12/n)}),i.find(".carousel-item").each(function(){for(var t=e(this),i=1;i<n;i++){t=t.next(),t.length||(t=e(this).siblings(":first"));var r=t.index();t.find(".col-md-12:first").clone().addClass("cloneditem-"+i).addClass("clonedCol").attr("data-cloned-index",r).appendTo(e(this).children().eq(0))}})}function c(t){var i=e(t),r=i.find(".carousel-item").length,n=i.find(".carousel-inner").attr("data-visible");r<n&&(n=r),i.find(".clonedCol").remove(),i.find(".carousel-item").each(function(){for(var t=e(this),i=1;i<n;i++){t=t.next(),t.length||(t=e(this).siblings(":first"));var r=t.index();t.find(".col-md-12:first").clone().addClass("cloneditem-"+i).addClass("clonedCol").attr("data-cloned-index",r).appendTo(e(this).children().eq(0))}})}function d(t){t.stopPropagation(),t.preventDefault();var i,r,n=e(t.target);n.closest(".clonedCol").length?(i=n.closest(".clonedCol"),r=i.attr("data-cloned-index")):(i=n.closest(".carousel-item"),r=i.index());var o=e(n.closest(".carousel-inner").find(".carousel-item")[r]).find("img")[0];n.parents(".clonedCol").length>0&&o.click()}function h(t){var i=e(t).find(".table tbody tr").length;e(t).find(".dataTables_info span.infoRows").text(i)}function p(t,i,r,n,o,a,s){e(t).find("table").dataTable({retrieve:!0,paging:!1,aaSorting:[],scrollX:!0,searching:i,info:i,language:{search:r,info:n+" _END_ "+o,infoEmpty:n+" _END_ "+o,infoFiltered:a+" _MAX_ "+s}})}function f(t){var i="";return e.each(t,function(e,t){0==t.indexOf("display")&&(i=t)}),i}var m=e("html").hasClass("is-builder");e.extend(e.easing,{easeInOutCubic:function(e,t,i,r,n){return(t/=n/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i}}),e.fn.outerFind=function(e){return this.find(e).addBack(e)},e.fn.footerReveal=function(){function t(){i.outerHeight()<=n.outerHeight()?(i.css({"z-index":-999,position:"fixed",bottom:0}),i.css({width:r.outerWidth()}),r.css({"margin-bottom":i.outerHeight()})):(i.css({"z-index":"",position:"",bottom:""}),i.css({width:""}),r.css({"margin-bottom":""}))}var i=e(this),r=i.prev(),n=e(window);return t(),n.on("load resize",function(){t()}),this},function(e,t){var i=function(e,t,i){var r;return function(){function n(){i||e.apply(o,a),r=null}var o=this,a=arguments;r?clearTimeout(r):i&&e.apply(o,a),r=setTimeout(n,t||100)}};jQuery.fn[t]=function(e){return e?this.bind("resize",i(e)):this.trigger(t)}}(jQuery,"smartresize"),e.isMobile=function(t){var i=[],r={blackberry:"BlackBerry",android:"Android",windows:"IEMobile",opera:"Opera Mini",ios:"iPhone|iPad|iPod"};return t="undefined"==e.type(t)?"*":t.toLowerCase(),"*"==t?i=e.map(r,function(e){return e}):t in r&&i.push(r[t]),!(!i.length||!navigator.userAgent.match(new RegExp(i.join("|"),"i")))};var g=function(){var t=e('<div style="height: 50vh; position: absolute; top: -1000px; left: -1000px;">').appendTo("body"),i=t[0],r=parseInt(window.innerHeight/2,10),n=parseInt((window.getComputedStyle?getComputedStyle(i,null):i.currentStyle).height,10);return t.remove(),n==r}();if(e(function(){function t(){e(this).css("height",9*e(this).parent().width()/16)}function i(t){setTimeout(function(){e(t).outerFind(".mbr-parallax-background").jarallax({speed:.6}).css("position","relative")},0)}function r(t){e(t).jarallax("destroy").css("position","")}function n(t){e(t).outerFind("[data-bg-video]").each(function(){var t=e(this).attr("data-bg-video"),i=t.match(/(http:\/\/|https:\/\/|)?(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/),r=e('<div class="mbr-background-video-preview">').hide().css({backgroundSize:"cover",backgroundPosition:"center"});if(e("> *:eq(0)",this).before(r),i&&(/youtube/g.test(i[3])||/vimeo/g.test(i[3]))){if(i&&/youtube/g.test(i[3])){var n="http"+("https:"===location.protocol?"s":"")+":";n+="//img.youtube.com/vi/"+i[6]+"/maxresdefault.jpg",e("<img>").on("load",function(){if(120===(this.naturalWidth||this.width)){var e=this.src.split("/").pop();switch(e){case"maxresdefault.jpg":this.src=this.src.replace(e,"sddefault.jpg");break;case"sddefault.jpg":this.src=this.src.replace(e,"hqdefault.jpg");break;default:m&&r.css("background-image",'url("images/no-video.jpg")').show()}}else r.css("background-image",'url("'+this.src+'")').show()}).attr("src",n),!e.fn.YTPlayer||m||e.isMobile()||e("> *:eq(1)",this).before('<div class="mbr-background-video"></div>').prev().YTPlayer({videoURL:i[6],containment:"self",showControls:!1,mute:!0})}else if(i&&/vimeo/g.test(i[3])){var o=new XMLHttpRequest;o.open("GET","https://vimeo.com/api/v2/video/"+i[6]+".json",!0),o.onreadystatechange=function(){if(4===this.readyState)if(this.status>=200&&this.status<400){var e=JSON.parse(this.responseText);r.css("background-image",'url("'+e[0].thumbnail_large+'")').show()}else m&&r.css("background-image",'url("images/no-video.jpg")').show()},o.send(),o=null,!e.fn.vimeo_player||m||e.isMobile()||e("> *:eq(1)",this).before('<div class="mbr-background-video"></div>').prev().vimeo_player({videoURL:t,containment:"self",showControls:!1,mute:!0})}}else m&&r.css("background-image",'url("images/video-placeholder.jpg")').show()})}e("html").addClass(e.isMobile()?"mobile":"desktop"),e(window).scroll(function(){e(".mbr-navbar--sticky").each(function(){var t=e(window).scrollTop()>10?"addClass":"removeClass";e(this)[t]("mbr-navbar--stuck").not(".mbr-navbar--open")[t]("mbr-navbar--short")})}),e.isMobile()&&navigator.userAgent.match(/Chrome/i)?function(t,i){var r=[t,t];r[i>t?0:1]=i,e(window).smartresize(function(){var t=e(window).height();e.inArray(t,r)<0&&(t=r[e(window).width()>t?1:0]),e(".mbr-section--full-height").css("height",t+"px")})}(e(window).width(),e(window).height()):g||(e(window).smartresize(function(){e(".mbr-section--full-height").css("height",e(window).height()+"px")}),e(document).on("add.cards",function(t){e("html").hasClass("mbr-site-loaded")&&e(t.target).outerFind(".mbr-section--full-height").length&&e(window).resize()})),e(window).smartresize(function(){e(".mbr-section--16by9").each(t)}),e(document).on("add.cards changeParameter.cards",function(i){var r=e(i.target).outerFind(".mbr-section--16by9");r.length?r.attr("data-16by9","true").each(t):e(i.target).outerFind("[data-16by9]").css("height","").removeAttr("data-16by9")}),e.fn.jarallax&&!e.isMobile()&&(e(window).on("update.parallax",function(t){setTimeout(function(){var t=e(".mbr-parallax-background");t.jarallax("coverImage"),t.jarallax("clipContainer"),t.jarallax("onScroll")},0)}),m?(e(document).on("add.cards",function(t){i(t.target),e(window).trigger("update.parallax")}),e(document).on("changeParameter.cards",function(t,n,o,a){if("bg"===n)switch(r(t.target),a){case"type":!0===o.parallax&&i(t.target);break;case"value":"image"===o.type&&!0===o.parallax&&i(t.target);break;case"parallax":!0===o.parallax&&i(t.target)}e(window).trigger("update.parallax")})):i(document.body),e(window).on("shown.bs.tab",function(t){e(window).trigger("update.parallax")}));var o,a,s=0,l=null,u=!e.isMobile();e(window).scroll(function(){a&&clearTimeout(a);var t=e(window).scrollTop(),i=t<=s||u;if(s=t,l){var r=t>l.breakPoint;i?r!=l.fixed&&(u?(l.fixed=r,e(l.elm).toggleClass("is-fixed")):a=setTimeout(function(){l.fixed=r,e(l.elm).toggleClass("is-fixed")},40)):(l.fixed=!1,e(l.elm).removeClass("is-fixed"))}}),e(document).on("add.cards delete.cards",function(t){o&&clearTimeout(o),o=setTimeout(function(){l&&(l.fixed=!1,e(l.elm).removeClass("is-fixed")),e(".mbr-fixed-top:first").each(function(){l={breakPoint:e(this).offset().top+3*e(this).height(),fixed:!1,elm:this},e(window).scroll()})},650)}),e(window).smartresize(function(){e(".mbr-embedded-video").each(function(){e(this).height(e(this).width()*parseInt(e(this).attr("height")||315)/parseInt(e(this).attr("width")||560))})}),e(document).on("add.cards",function(t){e("html").hasClass("mbr-site-loaded")&&e(t.target).outerFind("iframe").length&&e(window).resize()}),m?e(document).on("add.cards",function(e){n(e.target)}):n(document.body),e(document).on("changeParameter.cards",function(t,i,r,o){if("bg"===i)switch(o){case"type":e(t.target).find(".mbr-background-video-preview").remove(),"video"===r.type&&n(t.target);break;case"value":"video"===r.type&&(e(t.target).find(".mbr-background-video-preview").remove(),n(t.target))}}),m||e("body > *:not(style, script)").trigger("add.cards"),e("html").addClass("mbr-site-loaded"),e(window).resize().scroll(),m||e(document).click(function(t){try{var i=t.target;if(e(i).parents().hasClass("carousel"))return;do{if(i.hash){var r=/#bottom|#top/g.test(i.hash);e(r?"body":i.hash).each(function(){t.preventDefault();var r=e(".mbr-navbar--sticky").length?64:0,n="#bottom"==i.hash?e(this).height()-e(window).height():e(this).offset().top-r;e(this).hasClass("panel-collapse")||e(this).hasClass("tab-pane")||e("html, body").stop().animate({scrollTop:n},800,"easeInOutCubic")});break}}while(i=i.parentNode)}catch(t){}}),e(".cols-same-height .mbr-figure").each(function(){function t(){if(r.css({width:"",maxWidth:"",marginLeft:""}),a&&o){var e=a/o;i.addClass({position:"absolute",top:0,left:0,right:0,bottom:0});var t=n.height()/n.width();if(t>e){var s=100*(t-e)/e;r.css({width:s+100+"%",maxWidth:s+100+"%",marginLeft:-s/2+"%"})}}}var i=e(this),r=i.children("img"),n=i.parent(),o=r[0].width,a=r[0].height;r.one("load",function(){o=r[0].width,a=r[0].height,t()}),e(window).on("resize",t),t()})}),m||(e.fn.socialLikes&&e(document).on("add.cards",function(t){e(t.target).outerFind(".mbr-social-likes").on("counter.social-likes",function(t,i,r){r>999&&e(".social-likes__counter",t.target).html(Math.floor(r/1e3)+"k")}).socialLikes({initHtml:!1})}),e(document).on("add.cards",function(t){e(t.target).hasClass("mbr-reveal")&&e(t.target).footerReveal()}),e(document).ready(function(){function t(e){var t=0;do{t+=e.offsetTop||0,e=e.offsetParent}while(e);return t}function i(){var i=window.innerHeight,n=document.documentElement.scrollTop||document.body.scrollTop,o=n+i-50;e.each(r,function(){var i=e(this),r=i[0],a=r.offsetHeight,s=t(r);s+a>=n&&s<=o&&i.hasClass("hidden")&&i.removeClass("hidden").addClass("fadeInUp").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i.removeClass("animated fadeInUp")})})}if(!e.isMobile()&&e("input[name=animation]").length){e("input[name=animation]").remove();var r=e("p, h1, h2, h3, h4, h5, a, button, small, img, li, blockquote, .mbr-author-name, em, label, input, textarea, .input-group, .iconbox, .btn-social, .mbr-figure, .mbr-map, .mbr-testimonial .card-block, .mbr-price-value, .mbr-price-figure, .dataTable, .dataTables_info").not(function(){return e(this).parents().is(".navbar, .mbr-arrow, footer, .iconbox, .mbr-slider, .mbr-gallery, .mbr-testimonial .card-block, #cookiesdirective, .mbr-wowslider, .accordion, .tab-content, .engine, #scrollToTop")}).addClass("hidden animated"),n=e(window);n.on("scroll resize",i),n.trigger("scroll")}}),e(".nav-dropdown").length&&e(".nav-dropdown").swipe({swipeLeft:function(t,i,r,n,o){e(".navbar-close").click()}})),e(document).ready(function(){if(e(".mbr-arrow-up").length){var t=e("#scrollToTop"),i=e("body,html"),r=e(window);t.css("display","none"),r.scroll(function(){e(this).scrollTop()>0?t.fadeIn():t.fadeOut()}),t.click(function(){return i.animate({scrollTop:0},400),!1})}}),e(document).ready(function(){e(".counters").length&&e(".counters").viewportChecker({offset:200,callbackFunction:function(t,i){e("#"+t.attr("id")+" .count").each(function(){e(this).prop("Counter",0).animate({Counter:e(this).text()},{duration:3e3,easing:"swing",step:function(t){e(this).text(Math.ceil(t))}})})}})}),m||e(".mbr-arrow").on("click",function(t){var i=e(t.target).closest("section").next();i.hasClass("engine")&&(i=i.closest("section").next());var r=i.offset();e("html, body").stop().animate({scrollTop:r.top},800,"linear")}),e("nav.navbar").length){var v=e("nav.navbar").height();e(".mbr-after-navbar.mbr-fullscreen").css("padding-top",v+"px")}if(!m&&function(){return!!(window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))}()&&e(document).on("add.cards",function(t){var i=e(t.target);i.hasClass("mbr-fullscreen")&&e(window).on("load resize",function(){i.css("height","auto"),i.outerHeight()<=e(window).height()&&i.css("height","1px")}),(i.hasClass("mbr-slider")||i.hasClass("mbr-gallery"))&&(i.find(".carousel-indicators").addClass("ie-fix").find("li").css({display:"inline-block",width:"30px"}),i.hasClass("mbr-slider")&&i.find(".full-screen .slider-fullscreen-image").css("height","1px"))}),e(document).ready(function(){if(!m){var t=function(t){var i=e(t).parents("section").find("iframe")[0],r=e(i).attr("src");if(t.parents("section").css("z-index","1"),-1!==r.indexOf("youtu")&&i.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"),-1!==r.indexOf("vimeo")){var n=new Vimeo.Player(e(i));n.play()}e(t).parents("section").find(e(t).attr("data-modal")).css("display","table").click(function(){-1!==r.indexOf("youtu")&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),-1!==r.indexOf("vimeo")&&n.pause(),e(this).css("display","none").off("click"),t.parents("section").css("z-index","0")})};e(".modalWindow-video iframe").each(function(){var t=e(this).attr("data-src");e(this).removeAttr("data-src");var i=t.match(/(http:\/\/|https:\/\/|)?(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/);-1!==t.indexOf("youtu")?e(this).attr("src","https://youtube.com/embed/"+i[6]+"?rel=0&enablejsapi=1"):-1!==t.indexOf("vimeo")&&e(this).attr("src","https://player.vimeo.com/video/"+i[6]+"?autoplay=0&loop=0")}),e("[data-modal]").click(function(){t(e(this))})}}),!m&&!e.isMobile()){var y=e("section.menu"),b=e(window).width();y.find(".navbar").hasClass("collapsed")||b>991&&(y.find("ul.navbar-nav li.dropdown").hover(function(){e(this).hasClass("open")||e(this).find("a")[0].click()},function(){e(this).hasClass("open")&&e(this).find("a")[0].click()}),y.find("ul.navbar-nav li.dropdown .dropdown-menu .dropdown").hover(function(){e(this).hasClass("open")||e(this).find("a")[0].click()},function(){e(this).hasClass("open")&&e(this).find("a")[0].click()}))}m?e(document).on("add.cards",function(i){e(".pie_progress").length&&t(i.target)}).on("delete.cards",function(t){e(t.target).find(".pie_progress").asPieProgress("destroy")}).on("changeParameter.cards",function(t,r){0==r.indexOf("progress")&&e(".pie_progress").length&&i(t.target,r)}):e(".pie_progress").length&&t(document.body),m?e(document).on("add.cards",function(t){0!=e(".countdown").length&&r()}).on("changeParameter.cards",function(e,t,i){"countdown"===t&&n(e.target,i)}):0!=e(".countdown").length&&r(),m&&e(document).on("add.cards",function(){0!=e(".flip-card").length&&o()}),m?e(document).on("add.cards",function(e){a(e.target)}):a(document.body),m?e(document).on("add.cards",function(t){0!=e(".testimonials-slider").length&&l(t.target)}).on("changeParameter.cards",function(t,i,r){"testimonialsSlides"===i&&0==e(t.target).find(".carousel-item.active").length&&s(t.target)}):0!=e(".testimonials-slider").length&&e(".testimonials-slider").each(function(){l(this)}),m||(e(document).ready(function(){0!=e(".accordionStyles").length&&e('.accordionStyles .card-header a[role="button"]').each(function(){e(this).hasClass("collapsed")||e(this).addClass("collapsed")})}),e('.accordionStyles .card-header a[role="button"]').click(function(){var t=e(this).closest(".accordionStyles").attr("id");if(!e(this).closest(".card").find(".panel-collapse").hasClass("collapsing"))if(-1!=t.indexOf("toggle"))e(this).hasClass("collapsed")?e(this).find("span.sign").removeClass("mbri-arrow-down").addClass("mbri-arrow-up"):e(this).find("span.sign").removeClass("mbri-arrow-up").addClass("mbri-arrow-down");else if(-1!=t.indexOf("accordion")){var i=e(this).closest(".accordionStyles ");i.children(".card").each(function(){e(this).find("span.sign").removeClass("mbri-arrow-up").addClass("mbri-arrow-down")}),e(this).hasClass("collapsed")&&e(this).find("span.sign").removeClass("mbri-arrow-down").addClass("mbri-arrow-up")}})),m?e(document).on("add.cards",function(t){e(t.target).hasClass("clients")&&(l(t.target),u(t.target),"add"===t.type&&e(t.target).on("slide.bs.carousel",function(){c(t.target)}),e(t.target).find(".carousel-item [mbr-media]").on("click",function(e){d(e)}),e(t.target).on("slide.bs.carousel",function(){e(t.target).find(".carousel-item .clonedCol [mbr-media]").off("click").on("click",function(e){d(e)})}))}).on("changeParameter.cards",function(t,i,r){"slidesCount"==i&&0==e(t.target).find(".carousel-item.active").length&&s(t.target),u(t.target),c(t.target),e(t.target).find(".carousel-item [mbr-media]").on("click",function(e){d(e)}),e(t.target).on("slide.bs.carousel",function(){e(t.target).find(".carousel-item .clonedCol [mbr-media]").off("click").on("click",function(e){d(e)})})}).on("changeContent.cards",function(t,i){c(t.target);try{e(t.target).closest(".carousel").carousel("next")}catch(e){}}):e(document.body).find(".clients").each(function(t,i){l(e(this)),u(e(this))}),m?e(document).on("add.cards",function(t){e(t.target).hasClass("section-table")&&h(t.target)}).on("changeParameter.cards",function(e,t){"tableColumns"!=t&&"tableRows"!=t||h(e.target)}):0!=e(document).find("section.section-table").length&&e("section.section-table").each(function(){var t=e(this).find("table").is(".isSearch");if(t){var i=e(this).find(".dataTables_info span.infoBefore").text(),r=e(this).find(".dataTables_info span.infoAfter").text(),n=e(this).find(".dataTables_info span.infoFilteredBefore").text(),o=e(this).find(".dataTables_info span.infoFilteredAfter").text();searchText=e(this).find(".dataTables_filter label.searchInfo").text(),infoClasses=e(this).find(".dataTables_info").attr("class").split(/\s/),searchClasses=e(this).find(".dataTables_filter label.searchInfo").attr("class").split(/\s/),displayInfoFont=f(infoClasses),displayFilterFont=f(searchClasses),e(this).find(".row.search").remove(),e(this).find(".table-wrapper .scroll").removeClass("scroll"),e(this).find(".row.info").remove(),p(e(this),t,searchText,i,r,n,o),e(this).find(".dataTables_info").addClass(displayInfoFont),e(this).find(".dataTables_filter label").addClass(displayFilterFont)}else e(this).find(".row.search").remove(),e(this).find(".table-wrapper .scroll").removeClass("scroll"),e(this).find(".row.info").remove(),p(e(this),t)}),m||0!=e("section.popup-btn-cards").length&&e("section.popup-btn-cards .card-wrapper").each(function(t,i){e(this).addClass("popup-btn")})}(jQuery),function(){try{document.getElementsByClassName("engine")[0].getElementsByTagName("a")[0].removeAttribute("rel")}catch(e){}if(!document.getElementById("top-1")){var e=document.createElement("section");e.id="top-1",e.className="engine",e.innerHTML='<a href="https://mobirise.info">Mobirise</a> Mobirise v4.3.0',document.body.insertBefore(e,document.body.childNodes[0])}}();var ReferrerKiller=function(){function e(e){return e.split('"').join('\\"')}function t(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild}function i(t){var i,r=[];for(var n in t)i=t[n],r.push(n+'="'+e(i)+'"');return r.join(" ")}function r(e,t){var r,t=t||{};return t.style="style"in t?"border:none; overflow:hidden; "+t.style:"border:none; overflow:hidden; ",r="__referrer_killer_"+(new Date).getTime()+Math.floor(9999*Math.random()),'<iframe \t\t\t\tstyle="border 1px solid #ff0000" \t\t\t\tscrolling="no" \t\t\t\tframeborder="no" \t\t\t\tallowtransparency="true" '+i(t)+'id="'+r+"\" \tsrc=\"javascript:'\t\t\t<!doctype html>\t\t\t<html>\t\t\t<head>\t\t\t<meta charset=\\'utf-8\\'>\t\t\t<style>*{margin:0;padding:0;border:0;}</style>\t\t\t</head><script>                 function resizeWindow() {                    var elems  = document.getElementsByTagName(\\'*\\'),                        width  = 0,                        height = 0,                        first  = document.body.firstChild,                        elem;                    if (first.offsetHeight && first.offsetWidth) {                        width = window.parent.document.getElementsByClassName(\\'mbr-overlay\\')[1].offsetWidth;                        height = width*first.offsetHeight/first.offsetWidth;                    } else {                        for (var i in elems) {                                            elem = elems[i];                                            if (!elem.offsetWidth) {                                                continue;                                            }                                            width  = Math.max(elem.offsetWidth, width);                                            height = Math.max(elem.offsetHeight, height);                        }                    }                    var ifr = parent.document.getElementById(\\'"+r+"\\');\t\t\t\t\tifr.height = height;\t\t\t\t\tifr.width  = width;\t\t\t\t}\t\t\t\twindow.parent.addEventListener(\\'resize\\', function(event){                    resizeWindow();                });\t\t\t<\/script><body onload=\\'resizeWindow()\\'>' + decodeURIComponent('"+encodeURIComponent(e)+"') +'</body></html>'\"></iframe>"}var n={},o=function(){var e,t=navigator.userAgent.match(/Trident\/(\d)+/);return null!==t&&(e=parseInt(t[1],10),!isNaN(e)&&e>4)}(),a=n.linkHtml=function(t,n,a,s){var l,u="";return n=n||!1,n||(n=t),a=a||{},"target"in a&&"_self"!==a.target||(a.target="_top"),o&&(u="https://www.google.com/url?q="),l='<a rel="noreferrer" href="'+u+e(t)+'" '+i(a)+">"+n+"</a>",r(l,s)},s=(n.linkNode=function(e,i,r,n){return t(a(e,i,r,n))},n.imageHtml=function(t,n){var o=n||{};return o.style="style"in o?"width: 100%25%3B max-width: 100%25"+o.style:"width: 100%25%3B max-width: 100%25",r('<img src="'+e(t)+'" '+i(o)+"/>")});n.imageNode=function(e,i){return t(s(e,i))};return n}();if(function(){var javascriptPath="";!function(){var e=document.scripts,t=e[e.length-1].src;javascriptPath=t.substring(0,t.lastIndexOf("/")+1)}();var chplayer=function(e){e&&this.embed(e)};chplayer.prototype={config:{videoClick:!0,videoDbClick:!0,errorTime:100,videoDrawImage:!1},varsConfig:{container:"",variable:"chplayer",volume:.8,poster:"",autoplay:!0,loop:!1,live:!1,seek:0,drag:"",front:"",next:"",loaded:"",flashplayer:!1,html5m3u8:!1,track:null,chtrack:null,preview:null,prompt:null,video:null,debug:!1},vars:{},language:{volume:"音量：",play:"点击播放",pause:"点击暂停",full:"点击全屏",escFull:"退出全屏",mute:"点击静音",escMute:"取消静音",front:"上一集",next:"下一集",definition:"点击选择清晰度",error:"加载出错"},contextMenu:[["chplayer","link","http://www.chplayer.com"],["v1.0","default"],["播放视频","function","play","line"],["暂停视频","function","pause"],["播放/暂停","function","playOrPause"],["下一集","javascript","nextFun","line"]],errorList:[["000","Object does not exist"],["001","Variables type is not a object"],["002","Video object does not exist"],["003","Video object format error"],["004","Video object format error"],["005","Video object format error"],["006","[error] does not exist "],["007","Ajax error"],["008","Ajax error"],["009","Ajax object format error"],["010","Ajax.status:[error]"]],logo:"",loaded:!1,timerError:null,error:!1,errorUrl:[],errorFunArr:[],timerFull:null,full:!1,fullFunArr:[],videoChangeFunArr:[],timerTime:null,timerBuffer:null,isTimeButtonMove:!0,isTimeButtonDown:!1,isClick:!1,timerClick:null,timerLoading:null,timerCBar:null,needSeek:0,volume:0,time:0,isFirst:!0,html5Video:!0,pdCoor:{x:0,y:0},
  playerType:"",loadTime:0,body:document.body||document.documentElement,V:null,listenerArr:[],buttonLen:0,buttonArr:[],buttonWidth:{},elementArr:[],track:[],trackIndex:0,nowTrackShow:{sn:""},trackElement:[],timerVCanvas:null,animateArray:[],animateElementArray:[],animatePauseArray:[],previewStart:0,previewDiv:null,previewTop:null,previewWidth:120,previewTween:null,isM3u8:!1,promptArr:[],promptElement:null,embed:function(e){return void 0!=e&&e?("object"!=typeof e&&this.eject(this.errorList[1]),this.vars=this.standardization(this.varsConfig,e),(!this.supportVideo()&&""!=this.vars.flashplayer||this.vars.flashplayer)&&(this.html5Video=!1),this.vars.video?(this.analysedVideoUrl(this.vars.video),this):void this.eject(this.errorList[2])):void this.eject(this.errorList[0])},analysedVideoUrl:function(e){var t=0,i=0,r=this;if(this.VA=[],"string"==typeof e){this.VA=[[e,"","",0]];switch(this.getFileExt(e)){case".mp4":this.VA[0][1]="video/mp4";break;case".ogg":this.VA[0][1]="video/ogg";break;case".webm":this.VA[0][1]="video/webm"}this.getVideo()}else if("object"==typeof e)if(this.isUndefined(typeof e.length))this.isUndefined(e.type)?this.isUndefined(e.url)?this.eject(this.errorList[5]):(e.success=function(e){r.analysedVideoUrl(e)},this.ajax(e)):(this.VA.push([e.url,e.type,"",0]),this.getVideo());else{if("string"==typeof e[0]){if(e.length%2==1)return void this.eject(this.errorList[3]);for(t=0;t<e.length;t++)t%2==0&&this.VA.push([e[t],e[t+1],"",0])}else if(this.isUndefined(typeof e[0].length))for(t=0;t<e.length;t++){var n=e[t].list;for(i=0;i<n.length;i++)this.VA.push([n[i].url,n[i].type,e[t].definition,this.isUndefined(n[i].weight)?0:n[i].weight])}else this.VA=e;this.getVideo()}else this.eject(this.errorList[4])},getHtml5Video:function(){var e=this.VA,t=[],i=!1,r=document.createElement("video");if(this.vars.flashplayer)return void(this.html5Video=!1);navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)&&(i=!0);for(var n=0;n<e.length;n++){var o=e[n];o&&(""!=o[1]&&!i&&function(e,t){return r.canPlayType?""!=r.canPlayType(e+';codecs="'+t+'"'):void(this.html5Video=!1)}(o[1],function(e){var t="";switch(e){case"video/mp4":t="avc1.4D401E, mp4a.40.2";break;case"video/ogg":t="theora, vorbis";break;case"video/webm":t="vp8.0, vorbis"}return t}(o[1]))&&"rtmp"!=o[0].substr(0,4)&&t.push(o),".m3u8"==this.getFileExt(o[0])&&this.vars.html5m3u8&&(this.isM3u8=!0,t.push(o)))}t.length>0?this.VA=t:i||(this.html5Video=!1)},getVideo:function(){if(this.V)return void this.changeVideo();this.vars.chtrack&&this.loadTrack(),this.getHtml5Video();var e=this,t=this.vars,i="",r="",n="",o="",a="",s="",l=(t.video,0);if(this.CD=this.getByElement(t.container),volume=t.volume,!this.CD)return this.eject(this.errorList[6],t.container),!1;var u="chplayer"+this.randomString(),c=document.createElement("div");if(c.className=u,this.V=void 0,this.CD.innerHTML="",this.CD.appendChild(c),this.PD=this.getByElement(u),this.css(this.CD,{backgroundColor:"#000000",overflow:"hidden",position:"relative"}),this.css(this.PD,{backgroundColor:"#000000",width:"100%",height:"100%",fontFamily:'"Microsoft YaHei", YaHei, "微软雅黑", SimHei,"FAE8F6F96C59ED1", "黑体",Arial'}),this.html5Video){if(this.PD.onselectstart=this.PD.ondrag=function(){return!1},1==this.VA.length)i=' src="'+this.VA[0][0]+'"';else{var d=this.VA.slice(0);for(d=this.arrSort(d),l=0;l<d.length;l++){var h="",p=d[l];p[1]&&(h=' type="'+p[1]+'"'),r+='<source src="'+p[0]+'"'+h+">"}}if(t.autoplay&&(a=' autoplay="autoplay"'),t.poster&&(n=' poster="'+t.poster+'"'),t.loop&&(o=' loop="loop"'),t.seek>0&&(this.needSeek=t.seek),null!=t.track&&null==t.chtrack){var f=t.track,m="",g=!1;for(l=0;l<f.length;l++){var v=f[l];v.default&&!g?(m=" default",g=!0):m="",s+='<track kind="'+v.kind+'" src="'+v.src+'" srclang="'+v.srclang+'" label="'+v.label+'"'+m+">"}}var y=this.randomString(),b="";if(b=this.isM3u8?'<video id="'+y+'" width="100%" height="100%"'+n+o+' webkit-playsinline="true">'+s+"</video>":'<video id="'+y+'"'+i+' width="100%" height="100%"'+a+n+o+' webkit-playsinline="true">'+r+s+"</video>",this.PD.innerHTML=b,this.V=this.getByElement("#"+y),this.V.volume=volume,this.isM3u8){var w=function(){e.embedHls(e.VA[0][0],t.autoplay)};this.loadJs(javascriptPath+"hls/hls.min.js",w)}if(this.css(this.V,"backgroundColor","#000000"),this.config.videoDrawImage){var T="vcanvas"+this.randomString(),C=document.createElement("div");C.className=T,this.PD.appendChild(C),this.MD=this.getByElement(T),this.css(this.MD,{backgroundColor:"#000000",width:"100%",height:"100%",position:"absolute",display:"none",cursor:"pointer",left:"0px",top:"0px",zIndex:"10"});var _="ccanvas"+this.randomString();this.MD.innerHTML=this.newCanvas(_,this.PD.offsetWidth,this.PD.offsetHeight),this.MDC=this.getByElement(_+"-canvas"),this.MDCX=this.MDC.getContext("2d")}this.playerType="html5video",this.addVEvent(),this.definition(),this.playerLoad()}else this.embedSWF()},playerLoad:function(){var e=this;this.isFirst&&(this.isFirst=!1,window.setTimeout(function(){e.loadedHandler()},1))},addVEvent:function(){var e=this,t=function(t){e.videoClick()};this.addListener("click",t),this.addListener("click",t,this.MDC),this.timerErrorFun();var i=function(t){e.judgeIsLive()};this.addListener("loadedmetadata",i);var r=function(t){e.playingHandler()};this.addListener("playing",r);var n=function(t){e.pauseHandler()};this.addListener("pause",n);var o=function(t){null!=e.timerLoading&&e.loadingStart(!1)};this.addListener("timeupdate",o);var a=function(t){e.loadingStart(!0)};this.addListener("waiting",a);var s=function(t){e.seekedHandler()};this.addListener("seeked",s);var l=function(t){e.endedHandler()};this.addListener("ended",l);var u=function(t){try{e.volumechangeHandler()}catch(t){}};this.addListener("volumechange",u),this.interFace()},resetPlayer:function(){this.timeTextHandler(),this.timeProgress(0,1),this.initPlayPause(),this.definition(),this.showFrontNext(),this.deletePrompt(),this.deletePreview(),this.trackHide(),this.resetTrack(),this.trackElement=[],this.track=[]},interFace:function(){var e=this,t="",i="#FFFFFF",r="00:00 / 00:00",n=this.randomString(10),o="controlbgbar"+n,a="controlbar"+n,s="timeprogressbg"+n,l="loadprogress"+n,u="timeprogress"+n,c="timebobg"+n,d="timebo"+n,h="timebw"+n,p="timetext"+n,f="play"+n,m="pause"+n,g="front"+n,v="next"+n,y="full"+n,b="escfull"+n,w="mute"+n,T="escmute"+n,C="volume"+n,_="volumedbg"+n,P="volumebg"+n,x="volumeup"+n,E="volumebo"+n,j="volumebw"+n,S="definition"+n,A="definitionp"+n,O="promptbg"+n,k="prompt"+n,B="dline"+n,I="menu"+n,Q="pausecenter"+n,D="loading"+n,Y="errortext"+n,L="logo"+n,F=document.createElement("div"),M=document.createElement("div"),V=document.createElement("div"),N=document.createElement("div"),R=document.createElement("div"),H=document.createElement("div"),W=document.createElement("div"),U=document.createElement("div"),z=document.createElement("div"),$=document.createElement("div"),G=document.createElement("div"),X=document.createElement("div");F.className=o,M.className=a,V.className=s,N.className=c,W.className=O,U.className=k,z.className=I,$.className=A,R.className=Q,G.className=D,X.className=L,H.className=Y,this.PD.appendChild(F),this.PD.appendChild(M),this.PD.appendChild(V),this.PD.appendChild(N),this.PD.appendChild(W),this.PD.appendChild(U),this.PD.appendChild($),this.PD.appendChild(R),this.PD.appendChild(G),this.PD.appendChild(H),this.PD.appendChild(X),this.body.appendChild(z),this.vars.live&&(r=this.getNowDate()),t+='<div class="'+f+'" data-title="'+e.language.play+'">'+this.newCanvas(f,38,38)+"</div>",t+='<div class="'+m+'" data-title="'+e.language.pause+'">'+this.newCanvas(m,38,38)+"</div>",t+='<div class="'+B+'-la"></div>',t+='<div class="'+g+'" data-title="'+e.language.front+'">'+this.newCanvas(g,38,38)+"</div>",t+='<div class="'+B+'-lb"></div>',t+='<div class="'+v+'" data-title="'+e.language.next+'">'+this.newCanvas(v,38,38)+"</div>",t+='<div class="'+B+'-lc"></div>',t+='<div class="'+p+'">'+r+"</div>",t+='<div class="'+y+'" data-title="'+e.language.full+'">'+this.newCanvas(y,38,38)+"</div>",t+='<div class="'+b+'" data-title="'+e.language.escFull+'">'+this.newCanvas(b,38,38)+"</div>",t+='<div class="'+B+'-ra"></div>',t+='<div class="'+S+'" data-title="'+e.language.definition+'"></div>',t+='<div class="'+B+'-rb"></div>',t+='<div class="'+C+'"><div class="'+_+'"><div class="'+P+'"><div class="'+x+'"></div></div><div class="'+E+'"><div class="'+j+'"></div></div></div></div>',t+='<div class="'+w+'" data-title="'+e.language.mute+'">'+this.newCanvas(w,38,38)+"</div>",t+='<div class="'+T+'" data-title="'+e.language.escMute+'">'+this.newCanvas(T,38,38)+"</div>",t+='<div class="'+B+'-rc"></div>',this.getByElement(a).innerHTML=t,this.getByElement(s).innerHTML='<div class="'+l+'"></div><div class="'+u+'"></div>',this.getByElement(c).innerHTML='<div class="'+d+'"><div class="'+h+'"></div></div>',this.getByElement(Q).innerHTML=this.newCanvas(Q,80,80),this.getByElement(D).innerHTML=this.newCanvas(D,60,60),this.getByElement(Y).innerHTML=this.language.error,this.getByElement(L).innerHTML=this.logo;var q=this.PD;this.CB={controlBarBg:this.getByElement(o,q),controlBar:this.getByElement(a,q),promptBg:this.getByElement(O,q),prompt:this.getByElement(k,q),timeProgressBg:this.getByElement(s,q),loadProgress:this.getByElement(l,q),timeProgress:this.getByElement(u,q),timeBoBg:this.getByElement(c,q),timeButton:this.getByElement(d,q),timeText:this.getByElement(p,q),play:this.getByElement(f,q),front:this.getByElement(g,q),next:this.getByElement(v,q),pause:this.getByElement(m,q),definition:this.getByElement(S,q),definitionP:this.getByElement(A,q),definitionLine:this.getByElement(B+"-rb",q),full:this.getByElement(y,q),escFull:this.getByElement(b,q),mute:this.getByElement(w,q),escMute:this.getByElement(T,q),volume:this.getByElement(C,q),volumeBg:this.getByElement(P,q),volumeUp:this.getByElement(x,q),volumeBO:this.getByElement(E,q),pauseCenter:this.getByElement(Q,q),menu:this.getByElement(I),loading:this.getByElement(D,q),loadingCanvas:this.getByElement(D+"-canvas",q),errorText:this.getByElement(Y,q),logo:this.getByElement(L,q),playLine:this.getByElement(B+"-la",q),frontLine:this.getByElement(B+"-lb",q),nextLine:this.getByElement(B+"-lc",q),fullLine:this.getByElement(B+"-ra"),definitionLine:this.getByElement(B+"-rb",q),muteLine:this.getByElement(B+"-rc",q)},this.buttonWidth={play:38,full:38,front:38,next:38,mute:38},this.css(o,{width:"100%",height:"38px",backgroundColor:"#000000",position:"absolute",bottom:"0px",filter:"alpha(opacity:0.8)",opacity:"0.8",zIndex:"90"}),this.css(a,{width:"100%",height:"38px",position:"absolute",bottom:"0px",zIndex:"90"}),this.css(Q,{width:"80px",height:"80px",borderRadius:"50%",position:"absolute",display:"none",cursor:"pointer",zIndex:"100"}),this.css(D,{width:"60px",height:"60px",position:"absolute",display:"none",zIndex:"100"}),this.css(Y,{width:"120px",height:"30px",lineHeight:"30px",color:"#FFFFFF",fontSize:"14px",textAlign:"center",position:"absolute",display:"none",zIndex:"101",cursor:"default",zIndex:"100"}),this.css(L,{height:"30px",lineHeight:"30px",color:"#FFFFFF",fontFamily:"Arial",fontSize:"28px",textAlign:"center",position:"absolute",float:"left",left:"-1000px",top:"20px",zIndex:"100",filter:"alpha(opacity:0.8)",opacity:"0.8",cursor:"default"}),this.css(this.CB.loadingCanvas,{transform:"rotate(0deg)",msTransform:"rotate(0deg)",mozTransform:"rotate(0deg)",webkitTransform:"rotate(0deg)",oTransform:"rotate(0deg)"}),this.css([O,k],{height:"30px",lineHeight:"30px",color:"#FFFFFF",fontSize:"14px",textAlign:"center",position:"absolute",borderRadius:"5px",paddingLeft:"5px",paddingRight:"5px",bottom:"0px",display:"none",zIndex:"95"}),this.css(O,{backgroundColor:"#000000",filter:"alpha(opacity:0.5)",opacity:"0.5"}),this.css(s,{width:"100%",height:"6px",backgroundColor:"#3F3F3F",overflow:"hidden",position:"absolute",bottom:"38px",zIndex:"88"}),this.css([l,u],{width:"1px",height:"6px",position:"absolute",bottom:"38px",top:"0px",zIndex:"91"}),this.css(l,"backgroundColor","#6F6F6F"),this.css(u,"backgroundColor","#0782F5"),this.css(c,{width:"100%",height:"14px",overflow:"hidden",position:"absolute",bottom:"34px",cursor:"pointer",zIndex:"92"}),this.css(d,{width:"14px",height:"14px",overflow:"hidden",borderRadius:"50%",backgroundColor:i,cursor:"pointer",position:"absolute",top:"0px",zIndex:"20"}),this.css(h,{width:"8px",height:"8px",overflow:"hidden",borderRadius:"50%",position:"absolute",backgroundColor:"#0782F5",left:"3px",top:"3px"}),this.css(p,{lineHeight:"38px",color:"#FFFFFF",fontFamily:"arial",fontSize:"16px",paddingLeft:"10px",float:"left",overflow:"hidden",cursor:"default"}),this.css([B+"-la",B+"-lb",B+"-lc",B+"-ra",B+"-rb",B+"-rc"],{width:"0px",height:"38px",overflow:"hidden",borderLeft:"1px solid #303030",borderRight:"1px solid #151515",filter:"alpha(opacity:0.9)",opacity:"0.9"}),this.css([B+"-la",B+"-lb",B+"-lc"],"float","left"),this.css([B+"-ra",B+"-rb",B+"-rc"],"float","right"),this.css([B+"-lb",B+"-lc",B+"-rb"],"display","none"),this.css([f,m,g,v],{width:"38px",height:"38px",float:"left",overflow:"hidden",cursor:"pointer"}),this.css([g,v],"display","none"),this.initPlayPause(),this.css([w,T],{width:"38px",height:"38px",float:"right",overflow:"hidden",cursor:"pointer"}),this.vars.volume>0?this.css(T,"display","none"):this.css(w,"display","none"),this.css([C,_],{width:"110px",height:"38px",overflow:"hidden",float:"right"}),this.css(_,{position:"absolute"}),this.css([P,x],{width:"100px",height:"6px",overflow:"hidden",borderRadius:"5px",cursor:"pointer"}),this.css(P,{position:"absolute",top:"16px"}),this.css(P,"backgroundColor","#666666"),this.css(x,"backgroundColor","#0782F5"),this.buttonWidth.volume=100,this.css(E,{width:"12px",height:"12px",overflow:"hidden",borderRadius:"50%",position:"absolute",backgroundColor:i,top:"13px",left:"0px",cursor:"pointer"}),this.css(j,{width:"6px",height:"6px",overflow:"hidden",borderRadius:"50%",position:"absolute",backgroundColor:"#0782F5",left:"3px",top:"3px"}),this.css(S,{lineHeight:"38px",color:"#FFFFFF",float:"right",fontSize:"14px",textAlign:"center",overflow:"hidden",display:"none",cursor:"pointer"}),this.css(A,{lineHeight:"30px",color:"#FFFFFF",overflow:"hidden",position:"absolute",bottom:"4px",backgroundColor:"#000000",textAlign:"center",zIndex:"95",cursor:"pointer",display:"none"}),this.css([y,b],{width:"38px",height:"38px",float:"right",overflow:"hidden",cursor:"pointer"}),this.css(b,"display","none");var K=this.getByElement(f+"-canvas").getContext("2d"),Z=function(){e.canvasFill(K,[[12,10],[29,19],[12,28]])};K.fillStyle=i,Z();var J=function(e){K.clearRect(0,0,38,38),K.fillStyle="#0782F5",Z()},ee=function(e){K.clearRect(0,0,38,38),K.fillStyle=i,Z()};this.addListener("mouseover",J,this.getByElement(f+"-canvas")),this.addListener("mouseout",ee,this.getByElement(f+"-canvas"));var te=this.getByElement(m+"-canvas").getContext("2d"),ie=function(){e.canvasFillRect(te,[[10,10,5,18],[22,10,5,18]])};te.fillStyle=i,ie();var re=function(e){te.clearRect(0,0,38,38),te.fillStyle="#0782F5",ie()},ne=function(e){te.clearRect(0,0,38,38),te.fillStyle=i,ie()};this.addListener("mouseover",re,this.getByElement(m+"-canvas")),this.addListener("mouseout",ne,this.getByElement(m+"-canvas"));var oe=this.getByElement(g+"-canvas").getContext("2d"),ae=function(){e.canvasFill(oe,[[16,19],[30,10],[30,28]]),e.canvasFillRect(oe,[[8,10,5,18]])};oe.fillStyle=i,ae();var se=function(e){oe.clearRect(0,0,38,38),oe.fillStyle="#0782F5",ae()},le=function(e){oe.clearRect(0,0,38,38),oe.fillStyle=i,ae()};this.addListener("mouseover",se,this.getByElement(g+"-canvas")),this.addListener("mouseout",le,this.getByElement(g+"-canvas"));var ue=this.getByElement(v+"-canvas").getContext("2d"),ce=function(){e.canvasFill(ue,[[8,10],[22,19],[8,28]]),e.canvasFillRect(ue,[[25,10,5,18]])};ue.fillStyle=i,ce();var de=function(e){ue.clearRect(0,0,38,38),ue.fillStyle="#0782F5",ce()},he=function(e){ue.clearRect(0,0,38,38),ue.fillStyle=i,ce()};this.addListener("mouseover",de,this.getByElement(v+"-canvas")),this.addListener("mouseout",he,this.getByElement(v+"-canvas"));var pe=this.getByElement(y+"-canvas").getContext("2d"),fe=function(){e.canvasFillRect(pe,[[19,10,9,3],[25,13,3,6],[10,19,3,9],[13,25,6,3]])};pe.fillStyle=i,fe();var me=function(){pe.clearRect(0,0,38,38),pe.fillStyle="#0782F5",fe()},ge=function(){pe.clearRect(0,0,38,38),pe.fillStyle=i,fe()};this.addListener("mouseover",me,this.getByElement(y+"-canvas")),this.addListener("mouseout",ge,this.getByElement(y+"-canvas"));var ve=this.getByElement(b+"-canvas").getContext("2d"),ye=function(){e.canvasFillRect(ve,[[20,9,3,9],[23,15,6,3],[9,20,9,3],[15,23,3,6]])};ve.fillStyle=i,ye();var be=function(){ve.clearRect(0,0,38,38),ve.fillStyle="#0782F5",ye()},we=function(){ve.clearRect(0,0,38,38),ve.fillStyle=i,ye()};this.addListener("mouseover",be,this.getByElement(b+"-canvas")),this.addListener("mouseout",we,this.getByElement(b+"-canvas"));var Te=this.getByElement(w+"-canvas").getContext("2d"),Ce=function(){e.canvasFill(Te,[[10,15],[15,15],[21,10],[21,28],[15,23],[10,23]]),e.canvasFillRect(Te,[[23,15,2,8],[27,10,2,18]])};Te.fillStyle=i,Ce();var _e=function(){Te.clearRect(0,0,38,38),Te.fillStyle="#0782F5",Ce()},Pe=function(){Te.clearRect(0,0,38,38),Te.fillStyle=i,Ce()};this.addListener("mouseover",_e,this.getByElement(w+"-canvas")),this.addListener("mouseout",Pe,this.getByElement(w+"-canvas"));var xe=this.getByElement(T+"-canvas").getContext("2d"),Ee=function(){e.canvasFill(xe,[[10,15],[15,15],[21,10],[21,28],[15,23],[10,23]]),e.canvasFill(xe,[[23,13],[24,13],[33,25],[32,25]]),e.canvasFill(xe,[[32,13],[33,13],[24,25],[23,25]])};xe.fillStyle=i,Ee();var je=function(){xe.clearRect(0,0,38,38),xe.fillStyle="#0782F5",Ee()},Se=function(){xe.clearRect(0,0,38,38),xe.fillStyle=i,Ee()};this.addListener("mouseover",je,this.getByElement(T+"-canvas")),this.addListener("mouseout",Se,this.getByElement(T+"-canvas"));var Ae=this.getByElement(D+"-canvas").getContext("2d");Ae.fillStyle=i,function(){Ae.save();var e=Ae.createLinearGradient(0,0,60,60);e.addColorStop(0,i);var t=Ae.createLinearGradient(0,0,80,60);t.addColorStop(1,"#0782F5"),Ae.strokeStyle=e,Ae.lineWidth=8,Ae.beginPath(),Ae.arc(30,30,25,.25*Math.PI,2*Math.PI,!1),Ae.stroke(),Ae.closePath(),Ae.beginPath(),Ae.strokeStyle=t,Ae.arc(30,30,25,0,.25*Math.PI,!1),Ae.stroke(),Ae.closePath(),Ae.restore()}();var Oe=this.getByElement(Q+"-canvas").getContext("2d"),ke=function(){e.canvasFill(Oe,[[28,22],[59,38],[28,58]]),Oe.save(),Oe.lineWidth=5,Oe.beginPath(),Oe.arc(40,40,35,0,2*Math.PI,!1),Oe.stroke(),Oe.closePath(),Oe.restore()};Oe.fillStyle=i,Oe.strokeStyle=i,ke();var Be=function(){Oe.clearRect(0,0,80,80),Oe.fillStyle="#0782F5",Oe.strokeStyle="#0782F5",ke()},Ie=function(){Oe.clearRect(0,0,80,80),Oe.fillStyle=i,Oe.strokeStyle=i,ke()};this.addListener("mouseover",Be,this.getByElement(Q+"-canvas")),this.addListener("mouseout",Ie,this.getByElement(Q+"-canvas"));var Qe=function(){e.css(E,"backgroundColor","#0782F5"),e.css(j,"backgroundColor",i)},De=function(){e.css(E,"backgroundColor",i),e.css(j,"backgroundColor","#0782F5")};this.addListener("mouseover",Qe,this.getByElement(E)),this.addListener("mouseout",De,this.getByElement(E));var Ye=function(){e.css(d,"backgroundColor","#0782F5"),e.css(h,"backgroundColor",i)},Le=function(){e.css(d,"backgroundColor",i),e.css(h,"backgroundColor","#0782F5")};this.addListener("mouseover",Ye,this.getByElement(d)),this.addListener("mouseout",Le,this.getByElement(d)),this.addButtonEvent(),this.newMenu(),this.controlBarHide(),this.keypress(),this.changeVolume(this.vars.volume),this.showFrontNext(),window.setTimeout(function(){e.elementCoordinate()},100),this.checkBarWidth();var Fe=function(){e.elementCoordinate(),e.timeUpdateHandler(),e.changeLoad(),e.checkBarWidth(),e.changeElementCoor(),e.changePrompt()};this.addListener("resize",Fe,window)},newCanvas:function(e,t,i){return'<canvas class="'+e+'-canvas" width="'+t+'" height="'+i+'"></canvas>'},addButtonEvent:function(){var thisTemp=this,playClick=function(e){thisTemp.play()};this.addListener("click",playClick,this.CB.play),this.addListener("click",playClick,this.CB.pauseCenter);var pauseClick=function(e){thisTemp.pause()};this.addListener("click",pauseClick,this.CB.pause);var frontClick=function(event){thisTemp.vars.front&&eval(thisTemp.vars.front+"()")};this.addListener("click",frontClick,this.CB.front);var nextClick=function(event){thisTemp.vars.next&&eval(thisTemp.vars.next+"()")};this.addListener("click",nextClick,this.CB.next);var muteClick=function(e){thisTemp.changeVolumeTemp=thisTemp.V&&thisTemp.V.volume>0?thisTemp.V.volume:thisTemp.vars.volume,thisTemp.changeVolume(0)};this.addListener("click",muteClick,this.CB.mute);var escMuteClick=function(e){thisTemp.changeVolume(thisTemp.changeVolumeTemp>0?thisTemp.changeVolumeTemp:thisTemp.vars.volume)};this.addListener("click",escMuteClick,this.CB.escMute);var fullClick=function(e){thisTemp.fullScreen()};this.addListener("click",fullClick,this.CB.full);var escFullClick=function(e){thisTemp.quitFullScreen()};this.addListener("click",escFullClick,this.CB.escFull);var promptHide=function(e){thisTemp.promptShow(!1)},playOver=function(e){thisTemp.promptShow(thisTemp.CB.play)};this.addListener("mouseover",playOver,this.CB.play),this.addListener("mouseout",promptHide,this.CB.play);var pauseOver=function(e){thisTemp.promptShow(thisTemp.CB.pause)};this.addListener("mouseover",pauseOver,this.CB.pause),this.addListener("mouseout",promptHide,this.CB.pause);var frontOver=function(e){thisTemp.promptShow(thisTemp.CB.front)};this.addListener("mouseover",frontOver,this.CB.front),this.addListener("mouseout",promptHide,this.CB.front);var nextOver=function(e){thisTemp.promptShow(thisTemp.CB.next)};this.addListener("mouseover",nextOver,this.CB.next),this.addListener("mouseout",promptHide,this.CB.next);var muteOver=function(e){thisTemp.promptShow(thisTemp.CB.mute)};this.addListener("mouseover",muteOver,this.CB.mute),this.addListener("mouseout",promptHide,this.CB.mute);var escMuteOver=function(e){thisTemp.promptShow(thisTemp.CB.escMute)};this.addListener("mouseover",escMuteOver,this.CB.escMute),this.addListener("mouseout",promptHide,this.CB.escMute);var fullOver=function(e){thisTemp.promptShow(thisTemp.CB.full)};this.addListener("mouseover",fullOver,this.CB.full),this.addListener("mouseout",promptHide,this.CB.full);var escFullOver=function(e){thisTemp.promptShow(thisTemp.CB.escFull)};this.addListener("mouseover",escFullOver,this.CB.escFull),this.addListener("mouseout",promptHide,this.CB.escFull);var definitionOver=function(e){thisTemp.promptShow(thisTemp.CB.definition)};this.addListener("mouseover",definitionOver,this.CB.definition),this.addListener("mouseout",promptHide,this.CB.definition);var volumePrompt=function(e){var t=thisTemp.getCoor(thisTemp.CB.volumeBO),i={title:thisTemp.language.volume+e+"%",x:t.x+.5*thisTemp.CB.volumeBO.offsetWidth,y:t.y};thisTemp.promptShow(!1,i)},volumeObj={slider:this.CB.volumeBO,follow:this.CB.volumeUp,refer:this.CB.volumeBg,grossValue:"volume",pd:!0,startFun:function(e){},monitorFun:function(e){thisTemp.changeVolume(.01*e,!1,!1),volumePrompt(e)},endFun:function(e){},overFun:function(e){volumePrompt(e)}};this.slider(volumeObj);var volumeClickObj={refer:this.CB.volumeBg,grossValue:"volume",fun:function(e){thisTemp.changeVolume(.01*e,!0,!0)}};this.progressClick(volumeClickObj),this.timeButtonMouseDown();var volumeBgMove=function(e){var t=thisTemp.getCoor(thisTemp.CB.volumeBg),i=thisTemp.client(e).x,r=parseInt(100*(i-t.x)/thisTemp.CB.volumeBg.offsetWidth),n={title:thisTemp.language.volume+r+"%",x:i,y:t.y};thisTemp.promptShow(!1,n)};this.addListener("mousemove",volumeBgMove,this.CB.volumeBg),this.addListener("mouseout",promptHide,this.CB.volumeBg),this.addListener("mouseout",promptHide,this.CB.volumeBO),this.addDefListener()},videoClick:function(){var e=this,t=function(){null!=e.timerClick&&(e.timerClick.runing&&e.timerClick.stop(),e.timerClick=null)},i=function(){t(),e.isClick=!1,e.playOrPause()};t(),this.isClick?(this.isClick=!1,e.config.videoDbClick&&(this.full?e.quitFullScreen():e.fullScreen())):(this.isClick=!0,this.timerClick=new this.timer(300,i,1))},timeButtonMouseDown:function(){var e=this,t=function(t){isNaN(t)&&(t=0);var i=e.getCoor(e.CB.timeButton),r={title:e.formatTime(t),x:i.x-e.pdCoor.x+.5*e.CB.timeButton.offsetWidth,y:i.y-e.pdCoor.y};e.promptShow(!1,r)},i={slider:this.CB.timeButton,follow:this.CB.timeProgress,refer:this.CB.timeBoBg,grossValue:"time",pd:!1,startFun:function(t){e.isTimeButtonMove=!1},monitorFun:function(e){},endFun:function(t){e.V&&e.V.duration>0&&(e.needSeek=0,e.seek(parseInt(t)))},overFun:function(e){t(e)}},r={refer:this.CB.timeBoBg,grossValue:"time",fun:function(t){e.V&&e.V.duration>0&&(e.needSeek=0,e.seek(parseInt(t)))}},n=function(t){var i=e.getCoor(e.CB.timeBoBg),r=e.client(t).x,n=parseInt((r-i.x)*e.V.duration/e.CB.timeBoBg.offsetWidth),o={title:e.formatTime(n),x:r,y:i.y};e.promptShow(!1,o);var a=!1;e.isUndefined(e.CB.definitionP)||"block"!=e.css(e.CB.definitionP,"display")&&(a=!0),null!=e.vars.preview&&a&&(o.time=n,e.preview(o))},o=function(t){e.promptShow(!1),null!=e.previewDiv&&e.css([e.previewDiv,e.previewTop],"display","none")};this.vars.live?(this.isTimeButtonDown=!1,i.removeListener=!0,r.removeListener=!0):(this.isTimeButtonDown=!0,this.addListener("mousemove",n,this.CB.timeBoBg),this.addListener("mouseout",o,this.CB.timeBoBg)),this.slider(i),this.progressClick(r)},progressClick:function(e){var t=this,i=function(i){var r=t.client(i).x-t.getCoor(e.refer).x,n=e.refer.offsetWidth,o=0;"volume"==e.grossValue?o=100:t.V&&(o=t.V.duration);var a=parseInt(r*o/n);e.fun&&e.fun(a)};this.isUndefined(e.removeListener)?this.addListener("click",i,e.refer):this.removeListener("click",i,e.refer)},slider:function(e){var t=this,i=0,r=0,n=0,o=0,a=function(){var i=parseInt(t.css(e.slider,"left")),r=e.refer.offsetWidth-e.slider.offsetWidth,n=0;return(t.isUndefined(i)||isNaN(i))&&(i=0),"volume"==e.grossValue?n=100:t.V&&(n=t.V.duration),parseInt(i*n/r)},s=function(s){t.addListener("mousemove",l,document),t.addListener("mouseup",u,document);var c=t.getCoor(e.refer),d=t.getCoor(e.slider);i=t.client(s).x,o=c.x,n=d.x,r=i-n,e.startFun&&e.startFun(a())},l=function(n){i=t.client(n).x;var s=i-r-o;s<0&&(s=0),s>e.refer.offsetWidth-e.slider.offsetWidth&&(s=e.refer.offsetWidth-e.slider.offsetWidth),t.css(e.slider,"left",s+"px"),t.css(e.follow,"width",s+.5*e.slider.offsetWidth+"px");var l=a();e.monitorFun&&e.monitorFun(l)},u=function(i){t.removeListener("mousemove",l,document),t.removeListener("mouseup",u,document),e.endFun&&e.endFun(a())},c=function(t){e.overFun&&e.overFun(a())};this.isUndefined(e.removeListener)?(this.addListener("mousedown",s,e.slider),this.addListener("mouseover",c,e.slider)):(this.removeListener("mousedown",s,e.slider),this.removeListener("mouseover",c,e.slider))},loadingStart:function(e){var t=this;this.isUndefined(e)&&(e=!0),this.css(t.CB.loading,"display","none"),null!=this.timerLoading&&(this.timerLoading.runing&&this.timerLoading.stop(),this.timerLoading=null);var i=function(){var e="0";try{e=t.css(t.CB.loadingCanvas,"transform")||t.css(t.CB.loadingCanvas,"-ms-transform")||t.css(t.CB.loadingCanvas,"-moz-transform")||t.css(t.CB.loadingCanvas,"-webkit-transform")||t.css(t.CB.loadingCanvas,"-o-transform")||"0"}catch(e){}e=parseInt(e.replace("rotate(","").replace("deg);","")),e+=4,e>360&&(e=0),t.css(t.CB.loadingCanvas,{transform:"rotate("+e+"deg)",msTransform:"rotate("+e+"deg)",mozTransform:"rotate("+e+"deg)",webkitTransform:"rotate("+e+"deg)",oTransform:"rotate("+e+"deg)"})};e&&(this.timerLoading=new this.timer(10,i),this.css(t.CB.loading,"display","block"))},showFrontNext:function(){this.vars.front?this.css([this.CB.front,this.CB.frontLine],"display","block"):this.css([this.CB.front,this.CB.frontLine],"display","none"),this.vars.next?this.css([this.CB.next,this.CB.nextLine],"display","block"):this.css([this.CB.next,this.CB.nextLine],"display","none")},promptShow:function(e,t){var i={};if(e||t){if(this.isUndefined(t)){var r=this.getCoor(e);i={title:e.dataset.title,x:r.x+.5*e.offsetWidth,y:r.y}}else i=t;this.CB.prompt.innerHTML=i.title,this.css(this.CB.prompt,"display","block");var n=10*this.getStringLen(i.title);this.css(this.CB.promptBg,"width",n+"px"),this.css(this.CB.prompt,"width",n+"px"),n+=10;var o=i.x-.5*n,a=this.PD.offsetHeight-i.y+8;o<0&&(o=0),o>this.PD.offsetWidth-n&&(o=this.PD.offsetWidth-n),this.css([this.CB.promptBg,this.CB.prompt],{display:"block",left:o+"px",bottom:a+"px"})}else this.css([this.CB.promptBg,this.CB.prompt],{display:"none"})},timerErrorFun:function(){var e=this,t=function(t){null!=e.timerError&&(e.timerError.runing&&e.timerError.stop(),e.timerError=null)},i=function(i){t(),e.error=!0,e.errorUrl=e.getVideoUrl(),e.addListenerError(),e.css(e.CB.errorText,"display","block"),e.css(e.CB.pauseCenter,"display","none"),e.css(e.CB.loading,"display","none"),e.V.removeAttribute("poster"),e.resetPlayer()},r=function(t){window.setTimeout(function(){isNaN(e.V.duration)&&i()},500)};this.addListener("error",r,this.V),t();var n=function(){e.V&&3==parseInt(e.V.networkState)&&i()};this.timerError=new this.timer(this.config.errorTime,n)},judgeFullScreen:function(){var e=this;null!=this.timerFull&&(this.timerFull.runing&&this.timerFull.stop(),this.timerFull=null);var t=function(){e.isFullScreen()};this.timerFull=new this.timer(20,t)},isFullScreen:function(){var e=this.CB.controlBarBg.offsetWidth,t=this.CD.offsetWidth;e==t||this.full||(this.full=!0,this.addListenerFull(),this.elementCoordinate(),this.css(this.CB.full,"display","none"),this.css(this.CB.escFull,"display","block"),0==this.vars.live&&this.timeUpdateHandler(),this.PD.appendChild(this.CB.menu)),e==t&&this.full&&(this.full=!1,this.addListenerFull(),this.elementCoordinate(),this.css(this.CB.full,"display","block"),this.css(this.CB.escFull,"display","none"),null!=this.timerFull&&(this.timerFull.runing&&this.timerFull.stop(),this.timerFull=null),0==this.vars.live&&this.timeUpdateHandler(),this.body.appendChild(this.CB.menu))},newMenu:function(){var e=this,t=0;this.css(this.CB.menu,{backgroundColor:"#FFFFFF",padding:"5px",position:"absolute",left:"10px",top:"20px",display:"none",zIndex:"999",color:"#A1A9BE",boxShadow:"2px 2px 3px #AAAAAA"});var i=this.contextMenu,r="";for(t=0;t<i.length;t++){var n=i[t];switch(n[1]){case"default":r+="<p>"+n[0]+"</p>";break;case"link":r+='<p><a href="'+n[2]+'" target="_blank">'+n[0]+"</a></p>";break;case"javascript":r+='<p><a href="javascript:'+n[2]+'()">'+n[0]+"</a></p>";break;case"function":r+='<p><a href="javascript:'+this.vars.variable+"."+n[2]+'()">'+n[0]+"</a></p>"}}this.CB.menu.innerHTML=r;var o=this.CB.menu.childNodes;for(t=0;t<o.length;t++){this.css(o[t],{height:"30px",lineHeight:"30px",margin:"0px",fontFamily:'"Microsoft YaHei", YaHei, "微软雅黑", SimHei,"FAE8F6F96C59ED1", "黑体",Arial',fontSize:"12px",paddingLeft:"10px",paddingRight:"30px"}),i[t].length>=4&&"line"==i[t][3]&&this.css(o[t],"borderTop","1px solid #e9e9e9");for(var a=o[t].childNodes,s=0;s<a.length;s++)"a"==a[s].localName&&this.css(a[s],{color:"#000000",textDecoration:"none"})}this.PD.oncontextmenu=function(t){var i=t||window.event,r=e.client(t);if(2==i.button){i.returnvalue=!1;var n=r.x+e.pdCoor.x-2,o=r.y+e.pdCoor.y-2;return e.css(e.CB.menu,{display:"block",left:n+"px",top:o+"px"}),!1}return!0};var l=function(){u&&(window.clearTimeout(u),u=null)},u=null,c=function(t){l(),u=window.setTimeout(function(t){e.css(e.CB.menu,"display","none")},500)};this.addListener("mouseout",c,e.CB.menu);var d=function(e){l()};this.addListener("mouseover",d,e.CB.menu)},controlBarHide:function(){var e=this,t={x:0,y:0},i={x:0,y:0},r=!0,n=function(t){if(t&&!r)r=!0,e.css(e.CB.controlBarBg,"display","block"),e.css(e.CB.controlBar,"display","block"),e.css(e.CB.timeProgressBg,"display","block"),e.css(e.CB.timeBoBg,"display","block");else if(r){r=!1;var i=e.getMetaDate().paused;i||(e.css(e.CB.controlBarBg,"display","none"),e.css(e.CB.controlBar,"display","none"),e.css(e.CB.timeProgressBg,"display","none"),e.css(e.CB.timeBoBg,"display","none"),
  e.promptShow(!1))}},o=function(o){if(t.x==i.x&&t.y==i.y){var a=parseInt(e.CD.offsetHeight);(t.y<a-50||t.y>a-2)&&r&&n(!1)}else r||n(!0);i={x:t.x,y:t.y}};this.timerCBar=new this.timer(2e3,o);var a=function(i){var o=e.client(i);t.x=o.x,t.y=o.y,r||n(!0)};this.addListener("mousemove",a,e.CD),this.addListener("ended",a),this.addListener("resize",a,window)},keypress:function(){var e=this,t=function(t){var i=t.keyCode||t.which,r=0;switch(i){case 32:e.playOrPause();break;case 37:r=e.time-10,e.seek(r<0?0:r);break;case 39:r=e.time+10,e.seek(r);break;case 38:r=e.volume+.1,e.changeVolume(r>1?1:r);break;case 40:r=e.volume-.1,e.changeVolume(r<0?0:r)}};this.addListener("keydown",t,window||document)},definition:function(){var e=this,t=this.VA,i=[],r="",n="",o=0;for(o=0;o<t.length;o++){var a=t[o][2];-1==i.indexOf(a)&&i.push(a),this.V&&t[o][0]==this.V.currentSrc&&(n=a)}if(n||(n=i[0]),i.length>1){var s=0;for(o=0;o<i.length;o++){r="<p>"+i[o]+"</p>"+r;var l=this.getStringLen(i[o]);l>s&&(s=l)}r&&(r+="<p>"+n+"</p>"),this.CB.definition.innerHTML=n,this.CB.definitionP.innerHTML=r,this.css([this.CB.definition,this.CB.definitionLine],"display","block");for(var u=this.CB.definitionP.childNodes,o=0;o<u.length;o++){var c="#FFFFFF";u[o].innerHTML==n&&(c="#0782F5"),this.css(u[o],{color:c,margin:"0px",padding:"0px",fontSize:"14px"}),o<u.length-1&&this.css(u[o],"borderBottom","1px solid #282828");var d=function(){n!=this.innerHTML&&(e.css(e.CB.definitionP,"display","none"),e.newDefinition(this.innerHTML))};this.addListener("click",d,u[o])}var h=10*s+20;this.css(this.CB.definitionP,{width:h+"px"}),this.css(this.CB.definition,{width:h+"px"}),this.buttonWidth.definition=this.CB.definition.offsetWidth}else this.CB.definition.innerHTML="",this.CB.definitionP.innerHTML="",this.css([this.CB.definition,this.CB.definitionLine],"display","none")},addDefListener:function(){var e=this,t=null,i=function(t){e.css(e.CB.definitionP,{left:e.getCoor(e.CB.definition).x+"px",display:"block"})};this.addListener("click",i,this.CB.definition);var r=function(i){t&&(window.clearTimeout(t),t=null),t=window.setTimeout(function(t){e.css(e.CB.definitionP,"display","none")},500)};this.addListener("mouseout",r,e.CB.definitionP);var n=function(e){t&&(window.clearTimeout(t),t=null)};this.addListener("mouseover",n,e.CB.definitionP)},newDefinition:function(e){var t=this.VA,i=[],r=0;for(r=0;r<t.length;r++){var n=t[r];n[2]==e&&i.push(n)}if(!(i.length<1)){if(null!=this.V&&0==this.needSeek&&(this.needSeek=this.V.currentTime),".m3u8"!=this.getFileExt(i[0][0])&&(this.isM3u8=!1),this.isM3u8)this.embedHls(t[0][0],this.vars.autoplay);else if(1==i.length)this.V.innerHTML="",this.V.src=i[0][0];else{var o="";for(i=this.arrSort(i),r=0;r<i.length;r++){var a="",s=i[r];s[1]&&(a=' type="'+s[1]+'"'),o+='<source src="'+s[0]+'"'+a+">"}this.V.removeAttribute("src"),this.V.innerHTML=o}this.V.autoplay="autoplay",this.V.load(),this.timerErrorFun(),this.addListenerVideoChange()}},embedHls:function(e,t){var i=this;if(Hls.isSupported()){var r=new Hls;r.loadSource(e),r.attachMedia(this.V),r.on(Hls.Events.MANIFEST_PARSED,function(){i.playerLoad(),t&&i.play()})}},prompt:function(){var e=this,t=this.vars.prompt;if(!(null==t||this.promptArr.length>0)){var i=function(t){if(null==e.promptElement){var i="prompte"+e.randomString(5),r=document.createElement("div");r.className=i,e.PD.appendChild(r),e.promptElement=e.getByElement(i),e.css(e.promptElement,{overflowX:"hidden",lineHeight:"22px",fontSize:"14px",color:"#FFFFFF",position:"absolute",display:"block",zIndex:"90"})}var n=e.getPromptTest(),o=n.pW,a=n.pT,s=parseInt(e.css(this,"left"))-parseInt(.5*o);n.pL>10&&(s=n.pL),s<0&&(s=0),e.css(e.promptElement,{width:o+"px",left:-o-10+"px",display:"block"}),e.promptElement.innerHTML=this.dataset.words,e.css(e.promptElement,{left:s+"px",top:a-e.promptElement.offsetHeight+"px"})},r=function(t){null!=e.promptElement&&e.css(e.promptElement,{display:"none"})},n=0;for(n=0;n<t.length;n++){var o=t[n],a=o.words,s=o.time,l="prompt"+this.randomString(5),u=document.createElement("div");u.className=l,this.CB.timeBoBg.appendChild(u);var c=this.getByElement(l);c.setAttribute("data-time",s),c.setAttribute("data-words",a),this.css(c,{width:"6px",height:"6px",backgroundColor:"#FFFFFF",position:"absolute",top:"4px",left:"-100px",display:"none",zIndex:"1"}),this.addListener("mouseover",i,c),this.addListener("mouseout",r,c),this.promptArr.push(c)}this.changePrompt()}},getPromptTest:function(){var e=this.previewWidth,t=this.getCoor(this.CB.timeButton).y,i=0;return null!=this.previewTop?(t-=parseInt(this.css(this.previewTop,"height")),i=parseInt(this.css(this.previewTop,"left"))):t-=35,i+=2,i<0&&(i=0),i>this.PD.offsetWidth-e&&(i=this.PD.offsetWidth-e),{pW:e,pT:t,pL:i}},deletePrompt:function(){var e=this.promptArr;if(e.length>0)for(var t=0;t<e.length;t++)e[t]&&this.deleteChild(e[t]);this.promptArr=[]},changePrompt:function(){if(0!=this.promptArr.length)for(var e=this.promptArr,t=this.getMetaDate().duration,i=this.CB.timeBoBg.offsetWidth,r=0;r<e.length;r++){var n=parseInt(e[r].dataset.time),o=parseInt(n*i/t)-parseInt(.5*e[r].offsetWidth);o<0&&(o=0),o>i-parseInt(.5*e[r].offsetWidth)&&(o=i-parseInt(.5*e[r].offsetWidth)),this.css(e[r],{left:o+"px",display:"block"})}},preview:function(e){var t=this,i={src:null,scale:0};if(i=this.standardization(i,this.vars.preview),!(null==i.src||i.scale<=0)){var r=i.src;if(0==this.previewStart){if(this.previewStart=1,r.length>0)var n=0,o=0,a=0,s=t.randomString(10),l=0,u=function(i){r[i]=t.getNewUrl(r[i]);var n=0,c=new Image;c.src=r[i],c.className=s+i,c.onload=function(d){if(l++,null==t.previewDiv){o=c.width,a=c.height,t.previewWidth=parseInt(.1*o);var h=document.createElement("div");h.className=s,t.PD.appendChild(h),t.previewDiv=t.getByElement(s);var p=e.y-parseInt(.1*a)+2;t.css(t.previewDiv,{width:r.length*o*10+"px",height:parseInt(.1*a)+"px",backgroundColor:"#000000",position:"absolute",left:"0px",top:p+"px",display:"none",zIndex:"80"}),h.setAttribute("data-x","0"),h.setAttribute("data-y",p);var f=document.createElement("div");f.className=s+"d2",t.PD.appendChild(f),t.previewTop=t.getByElement(f.className),t.css(t.previewTop,{width:parseInt(.1*o)+"px",height:parseInt(.1*a)+"px",position:"absolute",border:"5px solid "+t.css(t.CB.timeProgress,"backgroundColor"),left:"0px",top:e.y-parseInt(.1*a)+2+"px",display:"none",zIndex:"81"});var m="";for(n=0;n<r.length;n++)m+=t.newCanvas(s+n,10*o,parseInt(.1*a));t.previewDiv.innerHTML=m}t.previewDiv.appendChild(c);var g=t.getByElement(c.className),v=t.getByElement(c.className+"-canvas"),y=v.getContext("2d"),b=0,w=0,T=0,C=parseInt(.1*a);for(n=0;n<100;n++)T=parseInt(n*o*.1),y.drawImage(g,b,w,parseInt(.1*o),C,T,0,parseInt(.1*o),C),b+=parseInt(.1*o),b>=o&&(b=0,w+=C),t.css(g,"display","none");l==r.length?t.previewStart=2:(i++,u(i))}};return void u(n)}if(2==this.previewStart){var c=!0,d=parseInt(e.time/this.vars.preview.scale),h=parseInt(t.getMetaDate().duration/this.vars.preview.scale);"none"==t.css(t.previewDiv,"display")&&(c=!1),t.css(t.previewDiv,"display","block");var p=.01*t.previewDiv.offsetWidth/r.length,f=p*d-e.x+parseInt(.5*p),m=e.y-t.previewDiv.offsetHeight;t.css(t.previewDiv,"top",m+2+"px");var g=e.x-parseInt(.5*p),v=0;g<0&&(g=0,v=e.x-g-.5*p),g>t.PD.offsetWidth-p&&(g=t.PD.offsetWidth-p,v=e.x-g-.5*p),f<0&&(f=0),f>h*p-t.PD.offsetWidth&&(f=h*p-t.PD.offsetWidth),t.css(t.previewTop,{left:g+"px",top:m+2+"px",display:"block"}),t.previewTop.offsetHeight>t.previewDiv.offsetHeight&&t.css(t.previewTop,{height:t.previewDiv.offsetHeight-(t.previewTop.offsetHeight-t.previewDiv.offsetHeight)+"px"}),null!=this.previewTween&&(this.animatePause(this.previewTween),this.previewTween=null);var y=parseInt(t.css(t.previewDiv,"left"));if(y==-(f+v))return;if(c){var e={element:t.previewDiv,start:null,end:-(f+v),speed:.3};this.previewTween=this.animate(e)}else t.css(t.previewDiv,"left",-(f+v)+"px")}}},deletePreview:function(){null!=this.previewDiv&&(this.deleteChild(this.previewDiv),this.previewDiv=null,this.previewStart=0)},changeVideo:function(){if(!this.html5Video)return this.getVarsObject(),void this.V.newVideo(this.vars);var e=this.VA,t=this.vars,i=0;if(!(e.length<1)){if(null!=this.V&&0==this.needSeek&&(this.needSeek=this.V.currentTime),t.poster?this.V.poster=t.poster:this.V.removeAttribute("poster"),t.loop?this.V.loop="loop":this.V.removeAttribute("loop"),t.seek>0?this.needSeek=t.seek:this.needSeek=0,".m3u8"!=this.getFileExt(e[0][0])&&(this.isM3u8=!1),this.isM3u8)this.embedHls(e[0][0],t.autoplay);else{if(1==e.length)this.V.innerHTML="",this.V.src=e[0][0];else{var r="";for(e=this.arrSort(e),i=0;i<e.length;i++){var n="",o=e[i];o[1]&&(n=' type="'+o[1]+'"'),r+='<source src="'+o[0]+'"'+n+">"}this.V.removeAttribute("src"),this.V.innerHTML=r}t.autoplay?this.V.autoplay="autoplay":this.V.removeAttribute("autoplay"),this.V.load()}this.isUndefined(t.volume)||this.changeVolume(t.volume),this.resetPlayer(),this.timerErrorFun(),this.addListenerVideoChange(),this.vars.chtrack&&this.loadTrack()}},elementCoordinate:function(){this.pdCoor=this.getXY(this.PD),this.css(this.CB.pauseCenter,{left:parseInt(.5*(this.PD.offsetWidth-80))+"px",top:parseInt(.5*(this.PD.offsetHeight-80))+"px"}),this.css(this.CB.loading,{left:parseInt(.5*(this.PD.offsetWidth-60))+"px",top:parseInt(.5*(this.PD.offsetHeight-60))+"px"}),this.css(this.CB.errorText,{left:parseInt(.5*(this.PD.offsetWidth-120))+"px",top:parseInt(.5*(this.PD.offsetHeight-30))+"px"}),this.css(this.CB.logo,{left:parseInt(this.PD.offsetWidth-this.CB.logo.offsetWidth-20)+"px",top:"20px"}),this.checkBarWidth()},checkBarWidth:function(){var e=this.CB.controlBar.offsetWidth,t=[];t.push([[this.CB.full,this.CB.escFull,this.CB.fullLine],this.buttonWidth.full+2,"full"]),""!=this.vars.front&&t.push([[this.CB.front,this.CB.frontLine],this.buttonWidth.front+2]),""!=this.vars.next&&t.push([[this.CB.next,this.CB.nextLine],this.buttonWidth.next+2]),""!=this.CB.definition.innerHTML&&t.push([[this.CB.definition,this.CB.definitionLine],this.buttonWidth.definition+2]),t.push([[this.CB.volume],this.buttonWidth.volume]),t.push([[this.CB.mute,this.CB.escMute,this.CB.muteLine],this.buttonWidth.mute+2,"mute"]),t.push([[this.CB.timeText],this.buttonWidth.timeText]),t.push([[this.CB.play,this.CB.pause,this.CB.playLine],this.buttonWidth.play+2,"play"]);for(var i=0,r=0,n=!0,i=0;i<t.length;i++){var o=t[i][1];o>2?r+=o:n=!1}n&&(this.buttonLen=r,this.buttonArr=t),r=this.buttonLen,t=this.buttonArr;for(var i=0;i<t.length;i++)if(r>e)r-=t[i][1],this.css(t[i][0],"display","none");else if(this.css(t[i][0],"display","block"),3==t[i].length){var a=t[i][2];switch(a){case"mute":0==this.volume?this.css(this.CB.mute,"display","none"):this.css(this.CB.escMute,"display","none");break;case"play":this.playShow(!this.V.paused);break;case"full":this.full?this.css(this.CB.full,"display","none"):this.css(this.CB.escFull,"display","none")}}},initPlayPause:function(){this.vars.autoplay?(this.css([this.CB.play,this.CB.pauseCenter],"display","none"),this.css(this.CB.pause,"display","block")):(this.css(this.CB.play,"display","block"),"none"==this.css(this.CB.errorText,"display")&&this.css(this.CB.pauseCenter,"display","block"),this.css(this.CB.pause,"display","none"))},addListenerError:function(){for(var i=0;i<this.errorFunArr.length;i++){var fun=this.errorFunArr[i];"string"==typeof fun?(fun=fun.replace("()",""),eval(fun+"()")):fun()}},delErrorFunArr:function(e){try{var t=this.errorFunArr.indexOf(e);t>-1&&this.errorFunArr.splice(t,1)}catch(e){}},addListenerFull:function(){for(var i=0;i<this.fullFunArr.length;i++){var fun=this.fullFunArr[i];"string"==typeof fun?(fun=fun.replace("()",""),eval(fun+"()")):fun()}},delFullFunArr:function(e){try{var t=this.fullFunArr.indexOf(e);t>-1&&this.fullFunArr.splice(t,1)}catch(e){}},addListenerVideoChange:function(){for(var i=0;i<this.videoChangeFunArr.length;i++){var fun=this.videoChangeFunArr[i];"string"==typeof fun?(fun=fun.replace("()",""),eval(fun+"()")):fun()}},delVideoChangeFunArr:function(e){try{var t=this.videoChangeFunArr.indexOf(e);t>-1&&this.videoChangeFunArr.splice(t,1)}catch(e){}},loadedHandler:function(){if(this.loaded=!0,"html5video"!=this.playerType&&(this.V.changeLanguage(this.language),this.contextMenu.length>0&&this.V.newMenu(this.contextMenu),this.config&&this.V.config(this.config)),""!=this.vars.loaded){try{eval(this.vars.loaded+"()")}catch(e){}this.addListenerVideoChange()}},playingHandler:function(){this.playShow(!0),this.needSeek>0&&(this.seek(this.needSeek),this.needSeek=0),this.animatePauseArray.length>0&&this.animateResume("pause"),"html5video"==this.playerType&&null!=this.V&&this.config.videoDrawImage&&this.sendVCanvas()},sendVCanvas:function(){if(null==this.timerVCanvas){this.css(this.V,"display","none"),this.css(this.MD,"display","block");var e=this,t=function(){e.MDCX.width!=e.PD.offsetWidth&&(e.MDC.width=e.PD.offsetWidth),e.MDCX.height!=e.PD.offsetHeight&&(e.MDC.height=e.PD.offsetHeight),e.MDCX.clearRect(0,0,e.MDCX.width,e.MDCX.height);var t=e.getProportionCoor(e.PD.offsetWidth,e.PD.offsetHeight,e.V.videoWidth,e.V.videoHeight);e.MDCX.drawImage(e.V,0,0,e.V.videoWidth,e.V.videoHeight,t.x,t.y,t.width,t.height)};this.timerVCanvas=new this.timer(0,t)}},pauseHandler:function(){this.playShow(!1),this.animatePauseArray.length>0&&this.animatePause("pause"),"html5video"==this.playerType&&null!=this.V&&this.config.videoDrawImage&&this.stopVCanvas()},stopVCanvas:function(){null!=this.timerVCanvas&&(this.css(this.V,"display","block"),this.css(this.MD,"display","none"),this.timerVCanvas.runing&&this.timerVCanvas.stop(),this.timerVCanvas=null)},playShow:function(e){e?(this.css(this.CB.play,"display","none"),this.css(this.CB.pauseCenter,"display","none"),this.css(this.CB.pause,"display","block")):(this.css(this.CB.play,"display","block"),"none"==this.css(this.CB.errorText,"display")?this.css(this.CB.pauseCenter,"display","block"):this.css(this.CB.pauseCenter,"display","none"),this.css(this.CB.pause,"display","none"))},seekedHandler:function(){this.resetTrack(),this.isTimeButtonMove=!0,this.V.paused&&this.play()},endedHandler:function(){this.vars.loop||this.pause()},volumechangeHandler:function(){try{this.V.volume>0?(this.css(this.CB.mute,"display","block"),this.css(this.CB.escMute,"display","none")):(this.css(this.CB.mute,"display","none"),this.css(this.CB.escMute,"display","block"))}catch(e){}},timeUpdateHandler:function(){var e=0;if("html5video"==this.playerType)try{e=this.V.duration}catch(e){}e>0&&(this.time=this.V.currentTime,this.timeTextHandler(),this.trackShowHandler(),this.isTimeButtonMove&&this.timeProgress(this.time,e))},timeProgress:function(e,t){var i=this.CB.timeProgressBg.offsetWidth,r=parseInt(e*i/t-.5*this.CB.timeButton.offsetWidth);r>i-this.CB.timeButton.offsetWidth&&(r=i-this.CB.timeButton.offsetWidth),r<0&&(r=0),this.css(this.CB.timeProgress,"width",r+"px"),this.css(this.CB.timeButton,"left",parseInt(r)+"px")},timeTextHandler:function(){var e=this.V.duration,t=this.V.currentTime;isNaN(e)&&(e=0),this.CB.timeText.innerHTML=this.formatTime(t)+" / "+this.formatTime(e),this.CB.timeText.offsetWidth>0&&(this.buttonWidth.timeText=this.CB.timeText.offsetWidth)},bufferEdHandler:function(){var e=this,t=function(){null!=e.timerBuffer&&(e.timerBuffer.runing&&e.timerBuffer.stop(),e.timerBuffer=null)};t();var i=function(){if(e.V.buffered.length>0){var i=e.V.duration,r=e.V.buffered.length,n=e.V.buffered.start(r-1),o=e.V.buffered.end(r-1),a=n+o,s=e.CB.timeProgressBg.offsetWidth,l=e.CB.timeButton.offsetWidth,u=parseInt(a*s/i+l);u>=s&&(u=s,t()),e.changeLoad(a)}};this.timerBuffer=new this.timer(200,i)},changeLoad:function(e){if(null!=this.V){var t=this.CB.timeProgressBg.offsetWidth,i=this.CB.timeButton.offsetWidth,r=this.V.duration;this.isUndefined(e)?e=this.loadTime:this.loadTime=e;var n=parseInt(e*t/r+i);this.css(this.CB.loadProgress,"width",n+"px")}},judgeIsLive:function(){var e=this;null!=this.timerError&&(this.timerError.runing&&this.timerError.stop(),this.timerError=null),this.error=!1,this.css(this.CB.errorText,"display","none");var t=function(t){e.timeUpdateHandler()};if(this.vars.live){this.removeListener("timeupdate",t),null!=this.timerTime&&(window.clearInterval(this.timerTime),timerTime=null),null!=this.timerTime&&(this.timerTime.runing&&this.timerTime.stop(),this.timerTime=null);var i=function(){null==e.V||e.V.paused||(e.CB.timeText.innerHTML=e.getNowDate())};this.timerTime=new timer(1e3,i)}else null!=this.V&&"html5video"==this.playerType&&(this.addListener("timeupdate",t),e.timeTextHandler(),e.prompt(),window.setTimeout(function(){e.bufferEdHandler()},200));this.definition()},loadTrack:function(){var e=this,t=this.vars.chtrack,i={method:"get",dataType:"text",url:t.src,charset:t.charset,success:function(t){e.track=e.parseSrtSubtitles(t),e.trackIndex=0,e.nowTrackShow={sn:""}}};this.ajax(i)},resetTrack:function(){this.trackIndex=0,this.nowTrackShow={sn:""}},trackShowHandler:function(){if(!(this.track.length<1)){this.trackIndex>=this.track.length&&(this.trackIndex=0);var e=this.track[this.trackIndex];if(this.time>=e.startTime&&this.time<=e.endTime){this.nowTrackShow.sn!=e.sn&&(this.trackHide(),this.trackShow(e))}else this.trackHide(),this.checkTrack()}},trackShow:function(e){this.nowTrackShow=e;for(var t=e.content,i=0;i<t.length;i++){var r={list:[{type:"text",text:t[i],fontColor:"#FFFFFF",fontSize:16,fontFamily:'"Microsoft YaHei", YaHei, "微软雅黑", SimHei,"FAE8F6F96C59ED1", "黑体",Arial',lineHeight:30}],position:[1,2,null,30*-(t.length-i)-50]},n=this.addElement(r);this.trackElement.push(n)}},trackHide:function(){for(var e=0;e<this.trackElement.length;e++)this.deleteElement(this.trackElement[e]);this.trackElement=[]},checkTrack:function(){var e=this.trackIndex,t=this.track,i=0;for(i=e;i<t.length;i++)if(this.time>=t[i].startTime&&this.time<=t[i].endTime){this.trackIndex=i;break}},playOrPause:function(){if(this.config.videoClick){if(null==this.V)return;if("flashplayer"==this.playerType)return void this.V.playOrPause();this.V.paused?this.play():this.pause()}},play:function(){null!=this.V&&!this.error&&this.loaded&&("html5video"==this.playerType?this.V.play():this.V.videoPlay())},pause:function(){null!=this.V&&!this.error&&this.loaded&&("html5video"==this.playerType?this.V.pause():this.V.videoPause())},seek:function(e){if(this.loaded){var t=this.getMetaDate(),i=t.duration;i>0&&e>i&&(e=i),this.html5Video&&"html5video"==this.playerType&&!this.error?this.V.currentTime=e:this.V.seek(e)}},changeVolume:function(e,t,i){if((isNaN(e)||this.isUndefined(e))&&(e=0),this.loaded||(this.vars.volume=e),!this.html5Video)return void this.V.changeVolume(e);try{this.isUndefined(t)&&(t=!0)}catch(e){}try{this.isUndefined(i)&&(i=!0)}catch(e){}if(e<0&&(e=0),e>1&&(e=1),this.V.volume=e,this.volume=e,t){var r=e*this.CB.volumeBg.offsetWidth;r<0&&(r=0),r>this.CB.volumeBg.offsetWidth&&(r=this.CB.volumeBg.offsetWidth),this.css(this.CB.volumeUp,"width",r+"px")}if(i){var n=parseInt(this.CB.volumeUp.offsetWidth-.5*this.CB.volumeBO.offsetWidth);n>this.CB.volumeBg.offsetWidth-this.CB.volumeBO.offsetWidth&&(n=this.CB.volumeBg.offsetWidth-this.CB.volumeBO.offsetWidth),n<0&&(n=0),this.css(this.CB.volumeBO,"left",n+"px")}},switchFull:function(){this.full?this.quitFullScreen():this.fullScreen()},fullScreen:function(){if(this.html5Video&&"html5video"==this.playerType){var e=this.PD;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen(),this.judgeFullScreen()}},quitFullScreen:function(){this.html5Video&&"html5video"==this.playerType&&(document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.oRequestFullscreen?document.oCancelFullScreen():document.requestFullscreen?document.requestFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():(this.css(document.documentElement,"cssText",""),this.css(document.document.body,"cssText",""),this.css(this.PD,"cssText","")),this.judgeFullScreen())},changeSize:function(e,t){this.isUndefined(e)&&(e=0),this.isUndefined(t)&&(t=0),e>0&&this.css(this.CD,"width",e+"px"),t>0&&this.css(this.CD,"height",t+"px"),this.html5Video&&this.elementCoordinate()},newVideo:function(e){this.embed(e)},embedSWF:function(){var e=this.randomString(),t=this.getFlashVars(),i=this.getFlashplayerParam(),r="http://www.macromedia.com/go/getflashplayer",n="",o=javascriptPath+"chplayer.swf";id='id="'+e+'" name="'+e+'" ',n+='<object pluginspage="'+r+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=11,3,0,0" width="100%" height="100%" '+id+' align="middle">',n+=i.v,n+='<param name="movie" value="'+o+'">',n+='<param name="flashvars" value="'+t+'">',n+="<embed "+i.w+' src="'+o+'" flashvars="'+t+'" width="100%" height="100%" '+id+' align="middle" type="application/x-shockwave-flash" pluginspage="'+r+'" />',n+="</object>",this.PD.innerHTML=n,this.V=this.getObjectById(e),this.playerType="flashplayer"},getFlashVars:function(){this.getVarsObject();var e=this.vars,t="";for(k in e)if("flashplayer"!=k&&"container"!=k&&""!=e[k]){""!=t&&(t+="&");var i=e[k];1==i&&(i=1),0==i&&(i=0),t+=k+"="+i}return t},getVarsObject:function(){var e=this.vars,t="",i="",r="",n=this.VA,o=e.prompt,a=0;for(a=0;a<n.length;a++){var s=n[a];s&&(""!=t&&(t+="|",i+="|",r+="|"),t+=s[0].replace(/&/g,"%26"),i+=s[2],r+=s[3])}if(null!=e.preview&&(e.previewscale=e.preview.scale,e.preview=e.preview.src.join("|")),null!=o)for(e.prompt="",e.prompttime="",a=0;a<o.length;a++)""!=e.prompt&&(e.prompt+="|",e.prompttime+="|"),e.prompt+=o[a].words,e.prompttime+=o[a].time;e.video=t,e.definition=i,e.weight=r,e.logo=this.logo;var l={};for(var u in e)null!=e[u]&&(l[u]=e[u]);this.vars=l},getFlashplayerParam:function(){var e="",t="",i={allowScriptAccess:"always",allowFullScreen:!0,quality:"high",bgcolor:"#000"};for(var r in i)e+=r+'="'+i[r]+'" ',t+='<param name="'+r+'" value="'+i[r]+'" />';return e=e.replace("movie=","src="),{w:e,v:t}},sendTime:function(e){this.time=e,this.trackShowHandler()},sendVolume:function(e){this.volume=e},sendFull:function(e){this.full=e},getMetaDate:function(){if(!this.loaded||null==this.V)return!1;if("html5video"==this.playerType){var e=0;try{e=isNaN(this.V.duration)?0:this.V.duration}catch(e){}return{duration:e,volume:this.V.volume,width:this.PD.offsetWidth||this.V.offsetWidth||this.V.width,height:this.PD.offsetHeight||this.V.offsetHeight||this.V.height,videoWidth:this.V.videoWidth,videoHeight:this.V.videoHeight,paused:this.V.paused}}return this.V.getMetaDate()},getVideoUrl:function(){var e=[];if(this.V.src)e.push(this.V.src);else for(var t=this.V.childNodes,i=0;i<t.length;i++)e.push(t[i].src);return e},addElement:function(e){if("flashplayer"==this.playerType)return this.V.addElement(e);var t=0,i={list:null,x:"100%",y:"50%",position:null,alpha:1,backgroundColor:"",backAlpha:1,backRadius:0};i=this.standardization(i,e);var r=i.list;if(null==r)return"";var n="element"+this.randomString(10),o=document.createElement("div");o.className=n,i.x&&o.setAttribute("data-x",i.x),i.y&&o.setAttribute("data-y",i.y),null!=i.position&&o.setAttribute("data-position",i.position.join(",")),this.PD.appendChild(o);var a=this.getByElement(n);this.css(a,{position:"absolute",filter:"alpha(opacity:"+i.alpha+")",opacity:i.alpha.toString(),width:"800px",zIndex:"20"});var s="elementbg"+this.randomString(10),l=i.backAlpha.toString(),u=i.backgroundColor,c="",d=[];if(!this.isUndefined(r)&&r.length>0){var h;for(t=0;t<r.length;t++){var p="elementnew"+this.randomString(10);switch(r[t].type){case"image":h={type:"image",url:"",radius:0,width:30,height:30,alpha:1,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginRight:0,marginTop:0,marginBottom:0,backgroundColor:"#FFFFFF"},r[t]=this.standardization(h,r[t]),c+='<div class="'+p+'"><img class="'+p+'_image" src="'+r[t].url+'"></div>';break;case"text":h={type:"text",text:"",fontColor:"#FFFFFF",fontSize:14,fontFamily:'"Microsoft YaHei", YaHei, "微软雅黑", SimHei,"FAE8F6F96C59ED1", "黑体",Arial',lineHeight:0,alpha:1,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginRight:0,marginTop:0,marginBottom:0,backgroundColor:"",backAlpha:1,backRadius:0},r[t]=this.standardization(h,r[t]),c+='<div class="'+p+'"><div class="'+p+'_bg"></div><div class="'+p+'_text">'+r[t].text+"</div></div>"}d.push(p)}}for(a.innerHTML='<div class="'+s+'"></div><div class="'+s+'_c">'+c+"</div>",this.css(s+"_c",{position:"absolute",zIndex:"2"}),t=0;t<d.length;t++)switch(r[t].type){case"image":this.css(d[t],{float:"left",width:r[t].width+"px",height:r[t].height+"px",filter:"alpha(opacity:"+r[t].alpha+")",opacity:r[t].alpha.toString(),marginLeft:r[t].marginLeft+"px",marginRight:r[t].marginRight+"px",marginTop:r[t].marginTop+"px",marginBottom:r[t].marginBottom+"px",borderRadius:r[t].radius+"px"}),this.css(d[t]+"_image",{width:r[t].width+"px",height:r[t].height+"px",borderRadius:r[t].radius+"px"});break;case"text":this.css(d[t]+"_text",{filter:"alpha(opacity:"+r[t].alpha+")",opacity:r[t].alpha.toString(),borderRadius:r[t].radius+"px",fontFamily:r[t].fontFamily,fontSize:r[t].fontSize+"px",color:r[t].fontColor,lineHeight:r[t].lineHeight>0?r[t].lineHeight+"px":"",paddingLeft:r[t].paddingLeft+"px",paddingRight:r[t].paddingRight+"px",paddingTop:r[t].paddingTop+"px",paddingBottom:r[t].paddingBottom+"px",whiteSpace:"nowrap",position:"absolute",zIndex:"3"}),this.css(d[t],{float:"left",width:this.getByElement(d[t]+"_text").offsetWidth+"px",height:this.getByElement(d[t]+"_text").offsetHeight+"px",marginLeft:r[t].marginLeft+"px",marginRight:r[t].marginRight+"px",marginTop:r[t].marginTop+"px",marginBottom:r[t].marginBottom+"px"}),this.css(d[t]+"_bg",{width:this.getByElement(d[t]+"_text").offsetWidth+"px",height:this.getByElement(d[t]+"_text").offsetHeight+"px",filter:"alpha(opacity:"+r[t].backAlpha+")",opacity:r[t].backAlpha.toString(),borderRadius:r[t].backRadius+"px",backgroundColor:r[t].backgroundColor,position:"absolute",zIndex:"2"})}this.css(s,{width:this.getByElement(s+"_c").offsetWidth+"px",height:this.getByElement(s+"_c").offsetHeight+"px",position:"absolute",filter:"alpha(opacity:"+l+")",opacity:l,backgroundColor:u,borderRadius:i.backRadius+"px",zIndex:"1"}),this.css(a,{width:this.getByElement(s).offsetWidth+"px",height:this.getByElement(s).offsetHeight+"px"});var f=this.calculationCoor(a);return this.css(a,{left:f.x+"px",top:f.y+"px"}),this.elementArr.push(a.className),a},getElement:function(e){if("flashplayer"==this.playerType)return this.V.getElement(e);var t=e;"string"==typeof e&&(t=this.getByElement(e));var i=this.getCoor(t);return{x:i.x,y:i.y,width:t.offsetWidth,height:t.offsetHeight,alpha:this.isUndefined(this.css(t,"opacity"))?1:parseFloat(this.css(t,"opacity"))}},calculationCoor:function(e){if("flashplayer"==this.playerType)return this.V.calculationCoor(e);if(e!=[]){var t,i,r=[],n=this.PD.offsetWidth,o=this.PD.offsetHeight,a=e.offsetWidth,s=e.offsetHeight;if(this.isUndefined(e.dataset.x)||(t=e.dataset.x),this.isUndefined(e.dataset.y)||(i=e.dataset.y),this.isUndefined(e.dataset.position)||(r=e.dataset.position.split(",")),r.length>0){r.push(null,null,null,null);var l=0;for(l=0;l<r.length;l++)this.isUndefined(r[l])||null==r[l]||"null"==r[l]||""==r[l]?r[l]=null:r[l]=parseFloat(r[l]);if(null==r[2])switch(r[0]){case 0:t=0;break;case 1:t=parseInt(.5*(n-a));break;default:t=n-a}else switch(r[0]){case 0:t=r[2];break;case 1:t=parseInt(.5*n)+r[2];break;default:t=n+r[2]}if(null==r[3])switch(r[1]){case 0:i=0;break;case 1:i=parseInt(.5*(o-s));break;default:i=o-s}else switch(r[1]){case 0:i=r[3];break;case 1:i=parseInt(.5*o)+r[3];break;default:i=o+r[3]}}else"%"==t.substring(t.length-1,t.length)&&(t=Math.floor(parseInt(t.substring(0,t.length-1))*n*.01)),"%"==i.substring(i.length-1,i.length)&&(i=Math.floor(parseInt(i.substring(0,i.length-1))*o*.01));return{x:t,y:i}}},changeElementCoor:function(){for(var e=0;e<this.elementArr.length;e++)if(this.getByElement(this.elementArr[e])!=[]){var t=this.calculationCoor(this.getByElement(this.elementArr[e]));this.css(this.elementArr[e],{top:t.y+"px",left:t.x+"px"})}},tween:function(){var e={None:{easeIn:function(e,t,i,r){return i*e/r+t},easeOut:function(e,t,i,r){return i*e/r+t},easeInOut:function(e,t,i,r){return i*e/r+t}},Quadratic:{easeIn:function(e,t,i,r){return i*(e/=r)*e+t},easeOut:function(e,t,i,r){return-i*(e/=r)*(e-2)+t},easeInOut:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t}},Cubic:{easeIn:function(e,t,i,r){return i*(e/=r)*e*e+t},easeOut:function(e,t,i,r){return i*((e=e/r-1)*e*e+1)+t},easeInOut:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}},Quartic:{easeIn:function(e,t,i,r){return i*(e/=r)*e*e*e+t},easeOut:function(e,t,i,r){return-i*((e=e/r-1)*e*e*e-1)+t},easeInOut:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t}},Quintic:{easeIn:function(e,t,i,r){return i*(e/=r)*e*e*e*e+t},easeOut:function(e,t,i,r){return i*((e=e/r-1)*e*e*e*e+1)+t},easeInOut:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t}},Sine:{easeIn:function(e,t,i,r){return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeOut:function(e,t,i,r){return i*Math.sin(e/r*(Math.PI/2))+t},easeInOut:function(e,t,i,r){return-i/2*(Math.cos(Math.PI*e/r)-1)+t}},Exponential:{easeIn:function(e,t,i,r){return 0==e?t:i*Math.pow(2,10*(e/r-1))+t},easeOut:function(e,t,i,r){return e==r?t+i:i*(1-Math.pow(2,-10*e/r))+t},easeInOut:function(e,t,i,r){return 0==e?t:e==r?t+i:(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t}},Circular:{easeIn:function(e,t,i,r){return-i*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOut:function(e,t,i,r){return i*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOut:function(e,t,i,r){return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t}},Elastic:{easeIn:function(e,t,i,r,n,o){if(0==e)return t;if(1==(e/=r))return t+i;if(o||(o=.3*r),!n||n<Math.abs(i)){n=i;var a=o/4}else var a=o/(2*Math.PI)*Math.asin(i/n);return-n*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)+t},easeOut:function(e,t,i,r,n,o){if(0==e)return t;if(1==(e/=r))return t+i;if(o||(o=.3*r),!n||n<Math.abs(i)){n=i;var a=o/4}else var a=o/(2*Math.PI)*Math.asin(i/n);return n*Math.pow(2,-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)+i+t},easeInOut:function(e,t,i,r,n,o){if(0==e)return t;if(2==(e/=r/2))return t+i;if(o||(o=r*(.3*1.5)),!n||n<Math.abs(i)){n=i;var a=o/4}else var a=o/(2*Math.PI)*Math.asin(i/n);return e<1?n*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*-.5+t:n*Math.pow(2,-10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*.5+i+t}},Back:{easeIn:function(e,t,i,r,n){return void 0==n&&(n=1.70158),i*(e/=r)*e*((n+1)*e-n)+t},easeOut:function(e,t,i,r,n){return void 0==n&&(n=1.70158),i*((e=e/r-1)*e*((n+1)*e+n)+1)+t},easeInOut:function(e,t,i,r,n){return void 0==n&&(n=1.70158),(e/=r/2)<1?i/2*(e*e*((1+(n*=1.525))*e-n))+t:i/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t}},Bounce:{easeIn:function(t,i,r,n){return r-e.Bounce.easeOut(n-t,0,r,n)+i},easeOut:function(e,t,i,r){return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOut:function(t,i,r,n){return t<n/2?.5*e.Bounce.easeIn(2*t,0,r,n)+i:.5*e.Bounce.easeOut(2*t-n,0,r,n)+.5*r+i}}};return e},animate:function(attribute){if("flashplayer"==this.playerType)return this.V.animate(attribute);var thisTemp=this,animateId="animate_"+this.randomString(),obj={element:null,parameter:"x",static:!1,effect:"None.easeIn",start:null,end:null,speed:0,overStop:!1,pauseStop:!1,callBack:null};if(obj=this.standardization(obj,attribute),null==obj.element||0==obj.speed)return!1;var w=this.PD.offsetWidth,h=this.PD.offsetHeight,effArr=(obj.effect+".").split("."),tweenFun=this.tween()[effArr[0]][effArr[1]],eleCoor={x:0,y:0};if(this.isUndefined(tweenFun))return!1;var def=this.arrIndexOf(this.elementArr,obj.element.className);def>-1&&this.elementArr.splice(def,1)
  ;var css={},pm=this.getElement(obj.element),t=0,b=0,c=0,d=1e3*obj.speed,timerTween=null,tweenObj=null,start=null==obj.start?"":obj.start.toString(),end=null==obj.end?"":obj.end.toString();switch(obj.parameter){case"x":b=null==obj.start?pm.x:"%"==start.substring(start.length-1,start.length)?parseInt(start)*w*.01:parseInt(start),c=null==obj.end?pm.x-b:"%"==end.substring(end.length-1,end.length)?parseInt(end)*w*.01-b:"-"==end.substring(0,1)||"+"==end.substring(0,1)?"number"==typeof obj.end?parseInt(obj.end)-b:parseInt(end):parseInt(end)-b;break;case"y":b=null==obj.start?pm.y:"%"==start.substring(start.length-1,start.length)?parseInt(start)*h*.01:parseInt(start),c=null==obj.end?pm.y-b:"%"==end.substring(end.length-1,end.length)?parseInt(end)*h*.01-b:"-"==end.substring(0,1)||"+"==end.substring(0,1)?"number"==typeof obj.end?parseInt(obj.end)-b:parseInt(end):parseInt(end)-b;break;case"alpha":b=null==obj.start?100*pm.alpha:"%"==start.substring(start.length-1,start.length)?parseInt(obj.start):parseInt(100*obj.start),c=null==obj.end?100*pm.alpha-b:"%"==end.substring(end.length-1,end.length)?parseInt(end)-b:"-"==end.substring(0,1)||"+"==end.substring(0,1)?"number"==typeof obj.end?100*parseInt(obj.end)-b:100*parseInt(obj.end):100*parseInt(obj.end)-b}var callBack=function(){var index=thisTemp.arrIndexOf(thisTemp.animateElementArray,animateId);if(index>-1&&(thisTemp.animateArray.splice(index,1),thisTemp.animateElementArray.splice(index,1)),index=thisTemp.arrIndexOf(thisTemp.animatePauseArray,animateId),index>-1&&thisTemp.animatePauseArray.splice(index,1),null!=obj.callBack&&obj.element&&"callBack"!=obj.callBack&&"tweenX"!=obj.callBack&&"callBack"!=obj.tweenY&&"tweenAlpha"!=obj.callBack){var cb=eval(obj.callBack);cb(obj.element),obj.callBack=null}},stopTween=function(){null!=timerTween&&(timerTween.runing&&timerTween.stop(),timerTween=null)},tweenX=function(){t<d?(t+=10,css={left:Math.ceil(tweenFun(t,b,c,d))+"px"},obj.static&&(eleCoor=thisTemp.calculationCoor(obj.element),css.top=eleCoor.y+"px"),thisTemp.css(obj.element,css)):(stopTween(),thisTemp.elementArr.push(obj.element.className),callBack())},tweenY=function(){t<d?(t+=10,css={top:Math.ceil(tweenFun(t,b,c,d))+"px"},obj.static&&(eleCoor=thisTemp.calculationCoor(obj.element),css.left=eleCoor.x+"px"),thisTemp.css(obj.element,css)):(stopTween(),thisTemp.elementArr.push(obj.element.className),callBack())},tweenAlpha=function(){if(t<d){t+=10,eleCoor=thisTemp.calculationCoor(obj.element);var e=.01*Math.ceil(tweenFun(t,b,c,d));css={filter:"alpha(opacity:"+e+")",opacity:e.toString()},obj.static&&(eleCoor=thisTemp.calculationCoor(obj.element),css.top=eleCoor.y+"px",css.left=eleCoor.x+"px"),thisTemp.css(obj.element,css)}else stopTween(),thisTemp.elementArr.push(obj.element.className),callBack()};switch(obj.parameter){case"x":tweenObj=tweenX;break;case"y":tweenObj=tweenY;break;case"alpha":tweenObj=tweenAlpha}if(timerTween=new thisTemp.timer(10,tweenObj),obj.overStop){var mouseOver=function(){null!=timerTween&&timerTween.runing&&timerTween.stop()};this.addListener("mouseover",mouseOver,obj.element);var mouseOut=function(){var e=!0;obj.pauseStop&&thisTemp.getMetaDate().paused&&(e=!1),null!=timerTween&&!timerTween.runing&&e&&timerTween.start()};this.addListener("mouseout",mouseOut,obj.element)}return this.animateArray.push(timerTween),this.animateElementArray.push(animateId),obj.pauseStop&&this.animatePauseArray.push(animateId),animateId},animateResume:function(e){if("flashplayer"==this.playerType)return void this.V.animateResume(this.isUndefined(e)?"":e);var t=[];""==e||this.isUndefined(e)||"pause"==e?t="pause"===e?this.animatePauseArray:this.animateElementArray:t.push(e);for(var i=0;i<t.length;i++){var r=this.arrIndexOf(this.animateElementArray,t[i]);r>-1&&this.animateArray[r].start()}},animatePause:function(e){if("flashplayer"==this.playerType)return void this.V.animatePause(this.isUndefined(e)?"":e);var t=[];""==e||this.isUndefined(e)||"pause"==e?t="pause"===e?this.animatePauseArray:this.animateElementArray:t.push(e);for(var i=0;i<t.length;i++){var r=this.arrIndexOf(this.animateElementArray,t[i]);r>-1&&this.animateArray[r].stop()}},deleteAnimate:function(e){var t=this.arrIndexOf(this.animateElementArray,e);t>-1&&(this.animateArray.splice(t,1),this.animateElementArray.splice(t,1))},deleteElement:function(e){if("flashplayer"==this.playerType&&this.V)try{this.V.deleteElement(e)}catch(e){}else{var t=this.arrIndexOf(this.elementArr,e.className);t>-1&&this.elementArr.splice(t,1),this.deleteAnimate(e),this.deleteChild(e)}},getByElement:function(e,t){this.isUndefined(t)&&(t=document);var i=e.substr(0,1),r=[];if("#"!=i){if("."==i&&(e=e.substr(1,e.length)),t.getElementsByClassName)r=t.getElementsByClassName(e);else for(var n=new RegExp(" "+e+" ","i"),o=t.getElementsByTagName("*"),a=0;a<o.length;a++)n.test(" "+o[a].className+" ")&&r.push(o[a]);return r.length>0?r[0]:r}return"#"==i&&(e=e.substr(1,e.length)),document.getElementById(e)},css:function(e,t,i){var r=0,n="";if("object"!=typeof e||this.isUndefined(typeof e.length))if("string"==typeof e&&(e=this.getByElement(e)),"object"!=typeof t){if(this.isUndefined(i))return!this.isUndefined(e.style[t])&&e.style[t];e.style[t]=i}else for(n in t)this.isUndefined(t[n])||(e.style[n]=t[n]);else for(r=0;r<e.length;r++){var o;if(o="string"==typeof e[r]?this.getByElement(e[r]):e[r],"object"!=typeof t)this.isUndefined(i)||(o.style[t]=i);else for(n in t)this.isUndefined(t[n])||(o.style[n]=t[n])}},isUndefined:function(e){try{if("undefined"==e||void 0==e)return!0}catch(e){}return!1},addListener:function(e,t,i,r){if("flashplayer"==this.playerType&&this.isUndefined(i)){var n="";return"function"==typeof t&&(n=this.getParameterNames(t)),void this.V.addListener(e,n)}if(this.isUndefined(r)&&(r=!1),"full"==e)return void this.fullFunArr.push(t);if("error"==e&&this.isUndefined(i))return void this.errorFunArr.push(t);if("videochange"==e)return void this.videoChangeFunArr.push(t);var o=this.V;if(this.isUndefined(i)||(o=i),this.listenerArr.push([e,t,i,r]),o.addEventListener)try{o.addEventListener(e,t,r)}catch(e){}else if(o.attachEvent)try{o.attachEvent("on"+e,t)}catch(e){}else o["on"+e]=t},removeListener:function(e,t,i,r){if("flashplayer"!=this.playerType||!this.getParameterNames(t)||!this.isUndefined(i)){if(this.isUndefined(r)&&(r=!1),"full"==e)return void this.delFullFunArr(t);if("error"==e)return void this.delErrorFunArr(t);if("videochange"==e)return void this.delVideoChangeFunArr(t);var n=this.V;this.isUndefined(i)||(n=i);for(var o=0;o<this.listenerArr.length;o++)if([e,t,i,r]==this.listenerArr[o]){this.listenerArr.splice(o,1);break}if(n.removeEventListener)try{this.addNum--,n.removeEventListener(e,t,r)}catch(e){}else if(n.detachEvent)try{n.detachEvent("on"+e,t)}catch(e){}else n["on"+e]=null}},getParameterNames:function(e){if("function"!=typeof e)return!1;var t=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,i=e.toString().replace(t,""),r=i.slice(i.indexOf(" ")+1,i.indexOf("("));return null!==r&&r},getNowDate:function(){var e=new Date,t=e.getMonth()+1,i=e.getDate(),r=e.getHours(),n=e.getMinutes(),o=e.getSeconds(),a="",s="",l="",u="",u=o<10?"0"+o:o+"",l=n<10?"0"+n:n+"",s=r<10?"0"+r:r+"",a=i<10?"0"+i:i+"";return(t<10?"0"+t:t+"")+"/"+a+" "+s+":"+l+":"+u},formatTime:function(e,t){var i="",r="",n="";isNaN(e)&&(e=0);var o=Math.floor(e%60),a=0,s=0;return t?(a=Math.floor(e/60)%60,s=Math.floor(e/3600)):a=Math.floor(e/60),i=o<10?"0"+o:o+"",r=a>0?a<10?"0"+a+":":a+":":"00:",n=s>0?s<10?"0"+s+":":s+":":"",t?n+r+i:r+i},randomString:function(e){e=e||16;var t="abcdefghijklmnopqrstuvwxyz",r=t.length,n="";for(i=0;i<e;i++)n+=t.charAt(Math.floor(Math.random()*r));return"ch"+n},getStringLen:function(e){for(var t=0,i=0;i<e.length;i++)e.charCodeAt(i)>127||94==e.charCodeAt(i)?t+=2:t++;return t},createXHR:function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){this.eject(this.errorList[7])}}else this.eject(this.errorList[8])},ajax:function(cObj){var thisTemp=this,callback=null,obj={method:"get",dataType:"json",charset:"utf-8",async:!1,url:"",data:null,success:null};if("object"!=typeof cObj)return void this.eject(this.errorList[9]);if(obj=this.standardization(obj,cObj),"json"===obj.dataType||"text"===obj.dataType||"html"===obj.dataType){var xhr=this.createXHR();callback=function(){if(200==xhr.status){if(null==obj.success)return;"json"===obj.dataType?obj.success(eval("("+xhr.responseText+")")):obj.success(xhr.responseText)}else thisTemp.eject(thisTemp.errorList[10],"Ajax.status:"+xhr.status)},obj.url=obj.url+"?rand="+this.randomString(6),obj.data=this.formatParams(obj.data),"get"!==obj.method||this.isUndefined(obj.data)||(obj.url+=-1==obj.url.indexOf("?")?"?"+obj.data:"&"+obj.data),!0===obj.async&&(xhr.onreadystatechange=function(){4==xhr.readyState&&callback()}),xhr.open(obj.method,obj.url,obj.async),"post"===obj.method?(xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.setRequestHeader("charset",obj.charset),xhr.send(obj.data)):xhr.send(null),!1===obj.async&&callback()}else if("jsonp"===obj.dataType){var oHead=document.getElementsByTagName("head")[0],oScript=document.createElement("script"),callbackName="callback"+(new Date).getTime(),params=this.formatParams(obj.data)+"&callback="+callbackName;callback=obj.success,oScript.src=obj.url.split("?")+"?"+params,oHead.insertBefore(oScript,oHead.firstChild),window[callbackName]=function(e){callback(e),oHead.removeChild(oScript)}}},loadJs:function(e,t){var i=document.getElementsByTagName("HEAD").item(0),r=document.createElement("script");r.type="text/javascript",r.src=this.getNewUrl(e),i.appendChild(r),r.onload=function(){t()}},supportVideo:function(){if(document.createElement("video").canPlayType){var e=document.createElement("video");return oggTest=e.canPlayType('video/ogg; codecs="theora, vorbis"'),oggTest?"probably"==oggTest:(h264Test=e.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),!!h264Test&&"probably"==h264Test)}return!1},getObjectById:function(e){var t=null,i=this.getByElement("#"+e);if(i&&"OBJECT"==i.nodeName)if(void 0!==i.SetVariable)t=i;else{var r=i.getElementsByTagName("embed")[0];r&&(t=r)}return t},formatParams:function(e){var t=[];for(var i in e)t.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return t.join("&")},arrSort:function(e){for(var t=[],i=0;i<e.length;i++)for(var r=0;r<e.length-i;r++)!this.isUndefined(e[r+1])&&e[r][3]<e[r+1][3]&&(t=e[r+1],e[r+1]=e[r],e[r]=t);return e},getFileExt:function(e){if(""!=e){e.indexOf("?")>-1&&(e=e.split("?")[0]);return"."+e.replace(/.+\./,"")}return""},isContains:function(e,t){return e.indexOf(t)>-1},getNewUrl:function(e){return this.isContains(e,"?")?e+="&"+this.randomString(8)+"="+this.randomString(8):e+="?"+this.randomString(8)+"="+this.randomString(8)},client:function(e){var t=e||window.event;return this.isUndefined(t)&&(t={clientX:0,clientY:0}),{x:t.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-this.pdCoor.x,y:t.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-this.pdCoor.y}},getCoor:function(e){var t=this.getXY(e);return{x:t.x-this.pdCoor.x,y:t.y-this.pdCoor.y}},getXY:function(e){for(var t=e,i=e.offsetLeft,r=e.offsetTop;t=t.offsetParent;)i+=t.offsetLeft,r+=t.offsetTop;return{x:i,y:r}},removeChild:function(){if("html5video"==this.playerType){var e=0,t=[this.timerError,this.timerFull,this.timerTime,this.timerBuffer,this.timerClick,this.timerLoading,this.timerCBar,this.timerVCanvas];for(e=0;e<t.length;e++)null!=t[e]&&(t[e].runing&&t[e].stop(),t[e]=null);var i=this.listenerArr;for(e=0;e<i.length;e++)this.removeListener(i[e][0],i[e][1],i[e][2],i[e][3])}this.playerType,this.V=null,this.deleteChild(this.CB.menu),this.deleteChild(this.PD),this.CD.innerHTML=""},canvasFill:function(e,t){e.beginPath();for(var i=0;i<t.length;i++){var r=t[i];i>0?e.lineTo(r[0],r[1]):e.moveTo(r[0],r[1])}e.closePath(),e.fill()},canvasFillRect:function(e,t){for(var i=0;i<t.length;i++){var r=t[i];e.fillRect(r[0],r[1],r[2],r[3])}},deleteChild:function(e){var t=this.arrIndexOf(this.elementArr,e.className);t>-1&&this.elementArr.splice(t,1);for(var i=e.childNodes,r=i.length-1;r>=0;r--)e.removeChild(i[r]);if(e&&null!=e&&e.parentNode)try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){}},getProportionCoor:function(e,t,i,r){var n=0,o=0,a=0,s=0;return e/t<i/r?(n=e,o=n*r/i):(o=t,n=o*i/r),a=.5*(e-n),s=.5*(t-o),{width:parseInt(n),height:parseInt(o),x:parseInt(a),y:parseInt(s)}},parseSrtSubtitles:function(e){var t=[],i=[],r=0,n=e.split("\n"),o=[],a=function(e){return e.replace(/<[^>]+>/g,"")};for(r=0;r<n.length;r++)n[r].replace(/\s/g,"").length>0?o.push(n[r]):(o.length>0&&i.push(o),o=[]);for(r=0;r<i.length;++r){var s=i[r];if(s.length>=2){var l=s[0],u=this.toSeconds(this.trim(s[1].split(" --\x3e ")[0])),c=this.toSeconds(this.trim(s[1].split(" --\x3e ")[1])),d=[a(s[2])];if(s.length>2)for(var h=3;h<s.length;h++)d.push(a(s[h]));var p={sn:l,startTime:u,endTime:c,content:d};t.push(p)}}return t},timer:function(e,t,i){var r=this;this.time=10,this.fun=null,this.timeObj=null,this.number=0,this.numberTotal=null,this.runing=!1,this.startFun=function(){r.number++,r.fun(),null!=r.numberTotal&&r.number>=r.numberTotal&&r.stop()},this.start=function(){r.runing||(r.runing=!0,r.timeObj=window.setInterval(r.startFun,e))},this.stop=function(){r.runing&&(r.runing=!1,window.clearInterval(r.timeObj),r.timeObj=null)},e&&(this.time=e),t&&(this.fun=t),i&&(this.numberTotal=i),this.start()},toSeconds:function(e){var t=0;if(e){var r=e.split(":");for(i=0;i<r.length;i++)t=60*t+parseFloat(r[i].replace(",","."))}return t},standardization:function(e,t){var i,r={};for(i in e)r[i]=e[i];for(i in t){switch(typeof r[i]){case"number":r[i]=parseFloat(t[i]);break;case"string":"string"!=typeof t[i]&&void 0!==t[i]?r[i]=t[i].toString():r[i]=t[i];break;default:r[i]=t[i]}}return r},arrIndexOf:function(e,t){var i=new RegExp(t,[""]);return e.toString().replace(i,"┢").replace(/[^,┢]/g,"").indexOf("┢")},trim:function(e){return e.replace(/(^\s*)|(\s*$)/g,"")},log:function(e){},eject:function(e,t){if(this.vars.debug){var i=e[1];this.isUndefined(t)||(i=i.replace("[error]",t));var r="error "+e[0]+":"+i;try{alert(r)}catch(e){}}}},window.chplayer=chplayer}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function e(e){return e&&"[object Function]"==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var i=window.getComputedStyle(e,null);return t?i[t]:i}function i(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function r(e){if(!e||-1!==["HTML","BODY","#document"].indexOf(e.nodeName))return window.document.body;var n=t(e),o=n.overflow,a=n.overflowX;return/(auto|scroll)/.test(o+n.overflowY+a)?e:r(i(e))}function n(e){var i=e&&e.offsetParent,r=i&&i.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(i.nodeName)&&"static"===t(i,"position")?n(i):i:window.document.documentElement}function o(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||n(e.firstElementChild)===e)}function a(e){return null===e.parentNode?e:a(e.parentNode)}function s(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return window.document.documentElement;var i=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=i?e:t,l=i?t:e,u=document.createRange();u.setStart(r,0),u.setEnd(l,0);var c=u.commonAncestorContainer;if(e!==c&&t!==c||r.contains(l))return o(c)?c:n(c);var d=a(e);return d.host?s(d.host,t):s(e,a(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",i="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var n=window.document.documentElement;return(window.document.scrollingElement||n)[i]}return e[i]}function u(e,t){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=l(t,"top"),n=l(t,"left"),o=i?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=n*o,e.right+=n*o,e}function c(e,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return+e["border"+i+"Width"].split("px")[0]+ +e["border"+r+"Width"].split("px")[0]}function d(e,t,i,r){return $(t["offset"+e],i["client"+e],i["offset"+e],ie()?i["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function h(){var e=window.document.body,t=window.document.documentElement,i=ie()&&window.getComputedStyle(t);return{height:d("Height",e,t,i),width:d("Width",e,t,i)}}function p(e){return ae({},e,{right:e.left+e.width,bottom:e.top+e.height})}function f(e){var i={};if(ie())try{i=e.getBoundingClientRect();var r=l(e,"top"),n=l(e,"left");i.top+=r,i.left+=n,i.bottom+=r,i.right+=n}catch(e){}else i=e.getBoundingClientRect();var o={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},a="HTML"===e.nodeName?h():{},s=a.width||e.clientWidth||o.right-o.left,u=a.height||e.clientHeight||o.bottom-o.top,d=e.offsetWidth-s,f=e.offsetHeight-u;if(d||f){var m=t(e);d-=c(m,"x"),f-=c(m,"y"),o.width-=d,o.height-=f}return p(o)}function m(e,i){var n=ie(),o="HTML"===i.nodeName,a=f(e),s=f(i),l=r(e),c=t(i),d=+c.borderTopWidth.split("px")[0],h=+c.borderLeftWidth.split("px")[0],m=p({top:a.top-s.top-d,left:a.left-s.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!n&&o){var g=+c.marginTop.split("px")[0],v=+c.marginLeft.split("px")[0];m.top-=d-g,m.bottom-=d-g,m.left-=h-v,m.right-=h-v,m.marginTop=g,m.marginLeft=v}return(n?i.contains(l):i===l&&"BODY"!==l.nodeName)&&(m=u(m,i)),m}function g(e){var t=window.document.documentElement,i=m(e,t),r=$(t.clientWidth,window.innerWidth||0),n=$(t.clientHeight,window.innerHeight||0),o=l(t),a=l(t,"left");return p({top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:n})}function v(e){var r=e.nodeName;return"BODY"!==r&&"HTML"!==r&&("fixed"===t(e,"position")||v(i(e)))}function y(e,t,n,o){var a={top:0,left:0},l=s(e,t);if("viewport"===o)a=g(l);else{var u;"scrollParent"===o?(u=r(i(e)),"BODY"===u.nodeName&&(u=window.document.documentElement)):u="window"===o?window.document.documentElement:o;var c=m(u,l);if("HTML"!==u.nodeName||v(l))a=c;else{var d=h(),p=d.height,f=d.width;a.top+=c.top-c.marginTop,a.bottom=p+c.top,a.left+=c.left-c.marginLeft,a.right=f+c.left}}return a.left+=n,a.top+=n,a.right-=n,a.bottom-=n,a}function b(e){return e.width*e.height}function w(e,t,i,r,n){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=y(i,r,o,n),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return ae({key:e},s[e],{area:b(s[e])})}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,r=e.height;return t>=i.clientWidth&&r>=i.clientHeight}),c=0<u.length?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function T(e,t,i){return m(i,s(t,i))}function C(e){var t=window.getComputedStyle(e),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+i}}function _(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function P(e,t,i){i=i.split("-")[0];var r=C(e),n={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(i),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return n[a]=t[a]+t[l]/2-r[l]/2,n[s]=i===s?t[s]-r[u]:t[_(s)],n}function x(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function E(e,t,i){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===i});var r=x(e,function(e){return e[t]===i});return e.indexOf(r)}function j(t,i,r){return(void 0===r?t:t.slice(0,E(t,"name",r))).forEach(function(t){t.function;var r=t.function||t.fn;t.enabled&&e(r)&&(i.offsets.popper=p(i.offsets.popper),i.offsets.reference=p(i.offsets.reference),i=r(i,t))}),i}function S(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=T(this.state,this.popper,this.reference),e.placement=w(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=P(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=j(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function A(e,t){return e.some(function(e){var i=e.name;return e.enabled&&i===t})}function O(e){for(var t=[!1,"ms","Webkit","Moz","O"],i=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length-1;r++){var n=t[r],o=n?""+n+i:e;if(void 0!==window.document.body.style[o])return o}return null}function k(){return this.state.isDestroyed=!0,A(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[O("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function B(e,t,i,n){var o="BODY"===e.nodeName,a=o?window:e;a.addEventListener(t,i,{passive:!0}),o||B(r(a.parentNode),t,i,n),n.push(a)}function I(e,t,i,n){i.updateBound=n,window.addEventListener("resize",i.updateBound,{passive:!0});var o=r(e);return B(o,"scroll",i.updateBound,i.scrollParents),i.scrollElement=o,i.eventsEnabled=!0,i}function Q(){this.state.eventsEnabled||(this.state=I(this.reference,this.options,this.state,this.scheduleUpdate))}function D(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Y(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=D(this.reference,this.state))}function L(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function F(e,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&L(t[i])&&(r="px"),e.style[i]=t[i]+r})}function M(e,t){Object.keys(t).forEach(function(i){!1===t[i]?e.removeAttribute(i):e.setAttribute(i,t[i])})}function V(e,t,i){var r=x(e,function(e){return e.name===t}),n=!!r&&e.some(function(e){return e.name===i&&e.enabled&&e.order<r.order});if(!n);return n}function N(e){return"end"===e?"start":"start"===e?"end":e}function R(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=le.indexOf(e),r=le.slice(i+1).concat(le.slice(0,i));return t?r.reverse():r}function H(e,t,i,r){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+n[1],a=n[2];if(!o)return e;if(0===a.indexOf("%")){var s;switch(a){case"%p":s=i;break;case"%":case"%r":default:s=r}return p(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?$(document.documentElement.clientHeight,window.innerHeight||0):$(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function W(e,t,i,r){var n=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(x(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&a[s].indexOf(",");var l=/\s*,\s*|\s+/,u=-1===s?[a]:[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))];return u=u.map(function(e,r){var n=(1===r?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return H(e,n,t,i)})}),u.forEach(function(e,t){e.forEach(function(i,r){L(i)&&(n[t]+=i*("-"===e[r-1]?-1:1))})}),n}for(var U=Math.min,z=Math.floor,$=Math.max,G=["native code","[object MutationObserverConstructor]"],X="undefined"!=typeof window,q=["Edge","Trident","Firefox"],K=0,Z=0;Z<q.length;Z+=1)if(X&&0<=navigator.userAgent.indexOf(q[Z])){K=1;break}var J,ee=X&&function(e){return G.some(function(t){return-1<(e||"").toString().indexOf(t)})}(window.MutationObserver),te=ee?function(e){var t=!1,i=0,r=document.createElement("span");return new MutationObserver(function(){e(),t=!1}).observe(r,{attributes:!0}),function(){t||(t=!0,r.setAttribute("x-index",i),++i)}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},K))}},ie=function(){return void 0==J&&(J=-1!==navigator.appVersion.indexOf("MSIE 10")),J},re=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ne=function(){function e(e,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),oe=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},ae=Object.assign||function(e){for(var t,i=1;i<arguments.length;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},se=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],le=se.slice(3),ue={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},ce=function(){function t(i,r){var n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};re(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=te(this.update.bind(this)),this.options=ae({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=i.jquery?i[0]:i,this.popper=r.jquery?r[0]:r,this.options.modifiers={},Object.keys(ae({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){n.options.modifiers[e]=ae({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ae({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return ne(t,[{key:"update",value:function(){return S.call(this)}},{key:"destroy",value:function(){return k.call(this)}},{key:"enableEventListeners",value:function(){return Q.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),t}();return ce.Utils=("undefined"==typeof window?global:window).PopperUtils,ce.placements=se,ce.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,i=t.split("-")[0],r=t.split("-")[1];if(r){var n=e.offsets,o=n.reference,a=n.popper,s=-1!==["bottom","top"].indexOf(i),l=s?"left":"top",u=s?"width":"height",c={start:oe({},l,o[l]),end:oe({},l,o[l]+o[u]-a[u])};e.offsets.popper=ae({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var i,r=t.offset,n=e.placement,o=e.offsets,a=o.popper,s=o.reference,l=n.split("-")[0];return i=L(+r)?[+r,0]:W(r,a,s,l),"left"===l?(a.top+=i[0],a.left-=i[1]):"right"===l?(a.top+=i[0],a.left+=i[1]):"top"===l?(a.left+=i[0],a.top-=i[1]):"bottom"===l&&(a.left+=i[0],a.top+=i[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var i=t.boundariesElement||n(e.instance.popper);e.instance.reference===i&&(i=n(i));var r=y(e.instance.popper,e.instance.reference,t.padding,i);t.boundaries=r;var o=t.priority,a=e.offsets.popper,s={primary:function(e){var i=a[e];return a[e]<r[e]&&!t.escapeWithReference&&(i=$(a[e],r[e])),oe({},e,i)},secondary:function(e){var i="right"===e?"left":"top",n=a[i];return a[e]>r[e]&&!t.escapeWithReference&&(n=U(a[i],r[e]-("right"===e?a.width:a.height))),oe({},i,n)}};return o.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";a=ae({},a,s[t](e))}),e.offsets.popper=a,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,i=t.popper,r=t.reference,n=e.placement.split("-")[0],o=z,a=-1!==["top","bottom"].indexOf(n),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return i[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-i[u]),i[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(!V(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return e;var r=e.placement.split("-")[0],n=e.offsets,o=n.popper,a=n.reference,s=-1!==["left","right"].indexOf(r),l=s?"height":"width",u=s?"top":"left",c=s?"left":"top",d=s?"bottom":"right",h=C(i)[l];a[d]-h<o[u]&&(e.offsets.popper[u]-=o[u]-(a[d]-h)),a[u]+h>o[d]&&(e.offsets.popper[u]+=a[u]+h-o[d]);var f=a[u]+a[l]/2-h/2,m=f-p(e.offsets.popper)[u];return m=$(U(o[l]-h,m),0),e.arrowElement=i,e.offsets.arrow={},e.offsets.arrow[u]=Math.round(m),e.offsets.arrow[c]="",e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(A(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var i=y(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),r=e.placement.split("-")[0],n=_(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ue.FLIP:a=[r,n];break;case ue.CLOCKWISE:a=R(r);break;case ue.COUNTERCLOCKWISE:a=R(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],n=_(r);var u=e.offsets.popper,c=e.offsets.reference,d=z,h="left"===r&&d(u.right)>d(c.left)||"right"===r&&d(u.left)<d(c.right)||"top"===r&&d(u.bottom)>d(c.top)||"bottom"===r&&d(u.top)<d(c.bottom),p=d(u.left)<d(i.left),f=d(u.right)>d(i.right),m=d(u.top)<d(i.top),g=d(u.bottom)>d(i.bottom),v="left"===r&&p||"right"===r&&f||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&p||y&&"end"===o&&f||!y&&"start"===o&&m||!y&&"end"===o&&g);(h||v||b)&&(e.flipped=!0,(h||v)&&(r=a[l+1]),b&&(o=N(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=ae({},e.offsets.popper,P(e.instance.popper,e.offsets.reference,e.placement)),e=j(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,i=t.split("-")[0],r=e.offsets,n=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(i),s=-1===["top","left"].indexOf(i);return n[a?"left":"top"]=o[t]-(s?n[a?"width":"height"]:0),e.placement=_(t),e.offsets.popper=p(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!V(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,i=x(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var i,r,o=t.x,a=t.y,s=e.offsets.popper,l=x(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration,u=void 0===l?t.gpuAcceleration:l,c=n(e.instance.popper),d=f(c),h={position:s.position},p={left:z(s.left),top:z(s.top),bottom:z(s.bottom),right:z(s.right)},m="bottom"===o?"top":"bottom",g="right"===a?"left":"right",v=O("transform");if(r="bottom"==m?-d.height+p.bottom:p.top,i="right"==g?-d.width+p.right:p.left,u&&v)h[v]="translate3d("+i+"px, "+r+"px, 0)",h[m]=0,h[g]=0,h.willChange="transform";else{var y="bottom"==m?-1:1,b="right"==g?-1:1;h[m]=r*y,h[g]=i*b,h.willChange=m+", "+g}var w={"x-placement":e.placement}
  ;return e.attributes=ae({},w,e.attributes),e.styles=ae({},h,e.styles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return F(e.instance.popper,e.styles),M(e.instance.popper,e.attributes),e.offsets.arrow&&F(e.arrowElement,e.offsets.arrow),e},onLoad:function(e,t,i,r,n){var o=T(n,t,e),a=w(i.placement,o,t,e,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",a),F(t,{position:"absolute"}),i},gpuAcceleration:void 0}}},ce}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t(require,exports,module):e.Tether=t()}(this,function(e,t,i){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){var t=getComputedStyle(e),i=t.position;if("fixed"===i)return e;for(var r=e;r=r.parentNode;){var n=void 0;try{n=getComputedStyle(r)}catch(e){}if(void 0===n||null===n)return r;var o=n,a=o.overflow,s=o.overflowX;if(/(auto|scroll)/.test(a+o.overflowY+s)&&("absolute"!==i||["relative","absolute","fixed"].indexOf(n.position)>=0))return r}return document.body}function o(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var i=t.documentElement,r={},n=e.getBoundingClientRect();for(var o in n)r[o]=n[o];var a=P(t);return r.top-=a.top,r.left-=a.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-i.clientTop,r.left=r.left-i.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function a(e){return e.offsetParent||document.documentElement}function s(){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");l(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var i=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;i===r&&(r=t.clientWidth),document.body.removeChild(t);var n=i-r;return{width:n,height:n}}function l(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach(function(t){if(t)for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}),e}function u(e,t){if(void 0!==e.classList)t.split(" ").forEach(function(t){t.trim()&&e.classList.remove(t)});else{var i=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=h(e).replace(i," ");p(e,r)}}function c(e,t){if(void 0!==e.classList)t.split(" ").forEach(function(t){t.trim()&&e.classList.add(t)});else{u(e,t);var i=h(e)+" "+t;p(e,i)}}function d(e,t){if(void 0!==e.classList)return e.classList.contains(t);var i=h(e);return new RegExp("(^| )"+t+"( |$)","gi").test(i)}function h(e){return e.className instanceof SVGAnimatedString?e.className.baseVal:e.className}function p(e,t){e.setAttribute("class",t)}function f(e,t,i){i.forEach(function(i){-1===t.indexOf(i)&&d(e,i)&&u(e,i)}),t.forEach(function(t){d(e,t)||c(e,t)})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){var i=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+i>=t&&t>=e-i}function g(){return"undefined"!=typeof performance&&void 0!==performance.now?performance.now():+new Date}function v(){for(var e={top:0,left:0},t=arguments.length,i=Array(t),r=0;t>r;r++)i[r]=arguments[r];return i.forEach(function(t){var i=t.top,r=t.left;"string"==typeof i&&(i=parseFloat(i,10)),"string"==typeof r&&(r=parseFloat(r,10)),e.top+=i,e.left+=r}),e}function y(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}function b(e,t){return"scrollParent"===t?t=e.scrollParent:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=o(t),i=e,r=getComputedStyle(t);t=[i.left,i.top,e.width+i.left,e.height+i.top],H.forEach(function(e,i){e=e[0].toUpperCase()+e.substr(1),"Top"===e||"Left"===e?t[i]+=parseFloat(r["border"+e+"Width"]):t[i]-=parseFloat(r["border"+e+"Width"])})}(),t}var w=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),T=void 0;void 0===T&&(T={modules:[]});var C=function(){var e=0;return function(){return++e}}(),_={},P=function(e){var t=e._tetherZeroElement;void 0===t&&(t=e.createElement("div"),t.setAttribute("data-tether-id",C()),l(t.style,{top:0,left:0,position:"absolute"}),e.body.appendChild(t),e._tetherZeroElement=t);var i=t.getAttribute("data-tether-id");if(void 0===_[i]){_[i]={};var r=t.getBoundingClientRect();for(var n in r)_[i][n]=r[n];E(function(){delete _[i]})}return _[i]},x=[],E=function(e){x.push(e)},j=function(){for(var e=void 0;e=x.pop();)e()},S=function(){function e(){r(this,e)}return w(e,[{key:"on",value:function(e,t,i){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:i,once:r})}},{key:"once",value:function(e,t,i){this.on(e,t,i,!0)}},{key:"off",value:function(e,t){if(void 0===this.bindings||void 0===this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var i=0;i<this.bindings[e].length;)this.bindings[e][i].handler===t?this.bindings[e].splice(i,1):++i}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,i=arguments.length,r=Array(i>1?i-1:0),n=1;i>n;n++)r[n-1]=arguments[n];for(;t<this.bindings[e].length;){var o=this.bindings[e][t],a=o.handler,s=o.ctx,l=o.once,u=s;void 0===u&&(u=this),a.apply(u,r),l?this.bindings[e].splice(t,1):++t}}}}]),e}();T.Utils={getScrollParent:n,getBounds:o,getOffsetParent:a,extend:l,addClass:c,removeClass:u,hasClass:d,updateClasses:f,defer:E,flush:j,uniqueId:C,Evented:S,getScrollBarSize:s};var A=function(){function e(e,t){var i=[],r=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(n)throw o}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}();if(void 0===T)throw new Error("You must include the utils.js file before tether.js");var O=T.Utils,n=O.getScrollParent,o=O.getBounds,a=O.getOffsetParent,l=O.extend,c=O.addClass,u=O.removeClass,f=O.updateClasses,E=O.defer,j=O.flush,s=O.getScrollBarSize,k=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","webkitTransform","OTransform","MozTransform","msTransform"],i=0;i<t.length;++i){var r=t[i];if(void 0!==e.style[r])return r}}(),B=[],I=function(){B.forEach(function(e){e.position(!1)}),j()};!function(){var e=null,t=null,i=null,r=function r(){return void 0!==t&&t>16?(t=Math.min(t-16,250),void(i=setTimeout(r,250))):void(void 0!==e&&g()-e<10||(void 0!==i&&(clearTimeout(i),i=null),e=g(),I(),t=g()-e))};"undefined"!=typeof window&&["resize","scroll","touchmove"].forEach(function(e){window.addEventListener(e,r)})}();var Q={center:"center",left:"right",right:"left"},D={middle:"middle",top:"bottom",bottom:"top"},Y={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},L=function(e,t){var i=e.left,r=e.top;return"auto"===i&&(i=Q[t.left]),"auto"===r&&(r=D[t.top]),{left:i,top:r}},F=function(e){var t=e.left,i=e.top;return void 0!==Y[e.left]&&(t=Y[e.left]),void 0!==Y[e.top]&&(i=Y[e.top]),{left:t,top:i}},M=function(e){var t=e.split(" "),i=A(t,2);return{top:i[0],left:i[1]}},V=M,N=function(){function e(t){var i=this;r(this,e),this.position=this.position.bind(this),B.push(this),this.history=[],this.setOptions(t,!1),T.modules.forEach(function(e){void 0!==e.initialize&&e.initialize.call(i)}),this.position()}return w(e,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,i=arguments.length<=1||void 0===arguments[1]||arguments[1],r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=l(r,e);var o=this.options,a=o.element,s=o.target,u=o.targetModifier;if(this.element=a,this.target=s,this.targetModifier=u,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),c(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&c(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=V(this.options.targetAttachment),this.attachment=V(this.options.attachment),this.offset=M(this.options.offset),this.targetOffset=M(this.options.targetOffset),void 0!==this.scrollParent&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParent=this.target:this.scrollParent=n(this.target),!1!==this.options.enabled&&this.enable(i)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return o(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var e=o(this.target),t={height:e.height,width:e.width,top:e.top,left:e.left};return t.height=Math.min(t.height,e.height-(pageYOffset-e.top)),t.height=Math.min(t.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),t.height=Math.min(innerHeight,t.height),t.height-=2,t.width=Math.min(t.width,e.width-(pageXOffset-e.left)),t.width=Math.min(t.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),t.width=Math.min(innerWidth,t.width),t.width-=2,t.top<pageYOffset&&(t.top=pageYOffset),t.left<pageXOffset&&(t.left=pageXOffset),t}if("scroll-handle"===this.targetModifier){var e=void 0,i=this.target;i===document.body?(i=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=o(i);var r=getComputedStyle(i),n=i.scrollWidth>i.clientWidth||[r.overflow,r.overflowX].indexOf("scroll")>=0||this.target!==document.body,a=0;n&&(a=15);var s=e.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-a,t={width:15,height:.975*s*(s/i.scrollHeight),left:e.left+e.width-parseFloat(r.borderLeftWidth)-15},l=0;408>s&&this.target===document.body&&(l=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(t.height=Math.max(t.height,24));var u=this.target.scrollTop/(i.scrollHeight-s);return t.top=u*(s-t.height-l)+e.top+parseFloat(r.borderTopWidth),this.target===document.body&&(t.height=Math.max(t.height,24)),t}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&c(this.target,this.getClass("enabled")),c(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParent!==document&&this.scrollParent.addEventListener("scroll",this.position),e&&this.position()}},{key:"disable",value:function(){u(this.target,this.getClass("enabled")),u(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParent&&this.scrollParent.removeEventListener("scroll",this.position)}},{key:"destroy",value:function(){var e=this;this.disable(),B.forEach(function(t,i){return t===e?void B.splice(i,1):void 0})}},{key:"updateAttachClasses",value:function(e,t){var i=this;e=e||this.attachment,t=t||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;e.top&&n.push(this.getClass("element-attached")+"-"+e.top),e.left&&n.push(this.getClass("element-attached")+"-"+e.left),t.top&&n.push(this.getClass("target-attached")+"-"+t.top),t.left&&n.push(this.getClass("target-attached")+"-"+t.left);var o=[];r.forEach(function(e){o.push(i.getClass("element-attached")+"-"+e),o.push(i.getClass("target-attached")+"-"+e)}),E(function(){void 0!==i._addAttachClasses&&(f(i.element,i._addAttachClasses,o),!1!==i.options.addTargetClasses&&f(i.target,i._addAttachClasses,o),delete i._addAttachClasses)})}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var i=L(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,i);var r=this.cache("element-bounds",function(){return o(e.element)}),n=r.width,l=r.height;if(0===n&&0===l&&void 0!==this.lastSize){var u=this.lastSize;n=u.width,l=u.height}else this.lastSize={width:n,height:l};var c=this.cache("target-bounds",function(){return e.getTargetBounds()}),d=c,h=y(F(this.attachment),{width:n,height:l}),p=y(F(i),d),f=y(this.offset,{width:n,height:l}),m=y(this.targetOffset,d);h=v(h,f),p=v(p,m);for(var g=c.left+p.left-h.left,b=c.top+p.top-h.top,w=0;w<T.modules.length;++w){var C=T.modules[w],_=C.position.call(this,{left:g,top:b,targetAttachment:i,targetPos:c,elementPos:r,offset:h,targetOffset:p,manualOffset:f,manualTargetOffset:m,scrollbarSize:x,attachment:this.attachment});if(!1===_)return!1;void 0!==_&&"object"==typeof _&&(b=_.top,g=_.left)}var P={page:{top:b,left:g},viewport:{top:b-pageYOffset,bottom:pageYOffset-b-l+innerHeight,left:g-pageXOffset,right:pageXOffset-g-n+innerWidth}},x=void 0;return document.body.scrollWidth>window.innerWidth&&(x=this.cache("scrollbar-size",s),P.viewport.bottom-=x.height),document.body.scrollHeight>window.innerHeight&&(x=this.cache("scrollbar-size",s),P.viewport.right-=x.width),(-1===["","static"].indexOf(document.body.style.position)||-1===["","static"].indexOf(document.body.parentElement.style.position))&&(P.page.bottom=document.body.scrollHeight-b-l,P.page.right=document.body.scrollWidth-g-n),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",function(){return a(e.target)}),i=e.cache("target-offsetparent-bounds",function(){return o(t)}),r=getComputedStyle(t),n=i,s={};if(["Top","Left","Bottom","Right"].forEach(function(e){s[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])}),i.right=document.body.scrollWidth-i.left-n.width+s.right,i.bottom=document.body.scrollHeight-i.top-n.height+s.bottom,P.page.top>=i.top+s.top&&P.page.bottom>=i.bottom&&P.page.left>=i.left+s.left&&P.page.right>=i.right){var l=t.scrollTop,u=t.scrollLeft;P.offset={top:P.page.top-i.top+l-s.top,left:P.page.left-i.left+u-s.left}}}(),this.move(P),this.history.unshift(P),this.history.length>3&&this.history.pop(),t&&j(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var i={};for(var r in e){i[r]={};for(var n in e[r]){for(var o=!1,s=0;s<this.history.length;++s){var u=this.history[s];if(void 0!==u[r]&&!m(u[r][n],e[r][n])){o=!0;break}}o||(i[r][n]=!0)}}var c={top:"",left:"",right:"",bottom:""},d=function(e,i){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var r=void 0,n=void 0;e.top?(c.top=0,r=i.top):(c.bottom=0,r=-i.bottom),e.left?(c.left=0,n=i.left):(c.right=0,n=-i.right),c[k]="translateX("+Math.round(n)+"px) translateY("+Math.round(r)+"px)","msTransform"!==k&&(c[k]+=" translateZ(0)")}else e.top?c.top=i.top+"px":c.bottom=i.bottom+"px",e.left?c.left=i.left+"px":c.right=i.right+"px"},h=!1;if((i.page.top||i.page.bottom)&&(i.page.left||i.page.right)?(c.position="absolute",d(i.page,e.page)):(i.viewport.top||i.viewport.bottom)&&(i.viewport.left||i.viewport.right)?(c.position="fixed",d(i.viewport,e.viewport)):void 0!==i.offset&&i.offset.top&&i.offset.left?function(){c.position="absolute";var r=t.cache("target-offsetparent",function(){return a(t.target)});a(t.element)!==r&&E(function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)}),d(i.offset,e.offset),h=!0}():(c.position="absolute",d({top:!0,left:!0},e.page)),!h){for(var p=!0,f=this.element.parentNode;f&&"BODY"!==f.tagName;){if("static"!==getComputedStyle(f).position){p=!1;break}f=f.parentNode}p||(this.element.parentNode.removeChild(this.element),document.body.appendChild(this.element))}var g={},v=!1;for(var n in c){var y=c[n],b=this.element.style[n];""!==b&&""!==y&&["top","left","bottom","right"].indexOf(n)>=0&&(b=parseFloat(b),y=parseFloat(y)),b!==y&&(v=!0,g[n]=y)}v&&E(function(){l(t.element.style,g)})}}}]),e}();N.modules=[],T.position=I;var R=l(N,T),A=function(){function e(e,t){var i=[],r=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(n)throw o}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=T.Utils,o=O.getBounds,l=O.extend,f=O.updateClasses,E=O.defer,H=["left","top","right","bottom"];T.modules.push({position:function(e){var t=this,i=e.top,r=e.left,n=e.targetAttachment;if(!this.options.constraints)return!0;var a=this.cache("element-bounds",function(){return o(t.element)}),s=a.height,u=a.width;if(0===u&&0===s&&void 0!==this.lastSize){var c=this.lastSize;u=c.width,s=c.height}var d=this.cache("target-bounds",function(){return t.getTargetBounds()}),h=d.height,p=d.width,m=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(e){var t=e.outOfBoundsClass,i=e.pinnedClass;t&&m.push(t),i&&m.push(i)}),m.forEach(function(e){["left","top","right","bottom"].forEach(function(t){m.push(e+"-"+t)})});var g=[],v=l({},n),y=l({},this.attachment);return this.options.constraints.forEach(function(e){var o=e.to,a=e.attachment,l=e.pin;void 0===a&&(a="");var c=void 0,d=void 0;if(a.indexOf(" ")>=0){var f=a.split(" "),m=A(f,2);d=m[0],c=m[1]}else c=d=a;var w=b(t,o);("target"===d||"both"===d)&&(i<w[1]&&"top"===v.top&&(i+=h,v.top="bottom"),i+s>w[3]&&"bottom"===v.top&&(i-=h,v.top="top")),"together"===d&&(i<w[1]&&"top"===v.top&&("bottom"===y.top?(i+=h,v.top="bottom",i+=s,y.top="top"):"top"===y.top&&(i+=h,v.top="bottom",i-=s,y.top="bottom")),i+s>w[3]&&"bottom"===v.top&&("top"===y.top?(i-=h,v.top="top",i-=s,y.top="bottom"):"bottom"===y.top&&(i-=h,v.top="top",i+=s,y.top="top")),"middle"===v.top&&(i+s>w[3]&&"top"===y.top?(i-=s,y.top="bottom"):i<w[1]&&"bottom"===y.top&&(i+=s,y.top="top"))),("target"===c||"both"===c)&&(r<w[0]&&"left"===v.left&&(r+=p,v.left="right"),r+u>w[2]&&"right"===v.left&&(r-=p,v.left="left")),"together"===c&&(r<w[0]&&"left"===v.left?"right"===y.left?(r+=p,v.left="right",r+=u,y.left="left"):"left"===y.left&&(r+=p,v.left="right",r-=u,y.left="right"):r+u>w[2]&&"right"===v.left?"left"===y.left?(r-=p,v.left="left",r-=u,y.left="right"):"right"===y.left&&(r-=p,v.left="left",r+=u,y.left="left"):"center"===v.left&&(r+u>w[2]&&"left"===y.left?(r-=u,y.left="right"):r<w[0]&&"right"===y.left&&(r+=u,y.left="left"))),("element"===d||"both"===d)&&(i<w[1]&&"bottom"===y.top&&(i+=s,y.top="top"),i+s>w[3]&&"top"===y.top&&(i-=s,y.top="bottom")),("element"===c||"both"===c)&&(r<w[0]&&"right"===y.left&&(r+=u,y.left="left"),r+u>w[2]&&"left"===y.left&&(r-=u,y.left="right")),"string"==typeof l?l=l.split(",").map(function(e){return e.trim()}):!0===l&&(l=["top","left","right","bottom"]),l=l||[];var T=[],C=[];i<w[1]&&(l.indexOf("top")>=0?(i=w[1],T.push("top")):C.push("top")),i+s>w[3]&&(l.indexOf("bottom")>=0?(i=w[3]-s,T.push("bottom")):C.push("bottom")),r<w[0]&&(l.indexOf("left")>=0?(r=w[0],T.push("left")):C.push("left")),r+u>w[2]&&(l.indexOf("right")>=0?(r=w[2]-u,T.push("right")):C.push("right")),T.length&&function(){var e=void 0;e=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),g.push(e),T.forEach(function(t){g.push(e+"-"+t)})}(),C.length&&function(){var e=void 0;e=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),g.push(e),C.forEach(function(t){g.push(e+"-"+t)})}(),(T.indexOf("left")>=0||T.indexOf("right")>=0)&&(y.left=v.left=!1),(T.indexOf("top")>=0||T.indexOf("bottom")>=0)&&(y.top=v.top=!1),(v.top!==n.top||v.left!==n.left||y.top!==t.attachment.top||y.left!==t.attachment.left)&&t.updateAttachClasses(y,v)}),E(function(){!1!==t.options.addTargetClasses&&f(t.target,g,m),f(t.element,g,m)}),{top:i,left:r}}});var O=T.Utils,o=O.getBounds,f=O.updateClasses,E=O.defer;T.modules.push({position:function(e){var t=this,i=e.top,r=e.left,n=this.cache("element-bounds",function(){return o(t.element)}),a=n.height,s=n.width,l=this.getTargetBounds(),u=i+a,c=r+s,d=[];i<=l.bottom&&u>=l.top&&["left","right"].forEach(function(e){var t=l[e];(t===r||t===c)&&d.push(e)}),r<=l.right&&c>=l.left&&["top","bottom"].forEach(function(e){var t=l[e];(t===i||t===u)&&d.push(e)});var h=[],p=[],m=["left","top","right","bottom"];return h.push(this.getClass("abutted")),m.forEach(function(e){h.push(t.getClass("abutted")+"-"+e)}),d.length&&p.push(this.getClass("abutted")),d.forEach(function(e){p.push(t.getClass("abutted")+"-"+e)}),E(function(){!1!==t.options.addTargetClasses&&f(t.target,p,h),f(t.element,p,h)}),!0}});var A=function(){function e(e,t){var i=[],r=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(n)throw o}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return T.modules.push({position:function(e){var t=e.top,i=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:i}));var n=void 0,o=void 0;if("string"==typeof r){r=r.split(" "),r[1]=r[1]||r[0];var a=r,s=A(a,2);n=s[0],o=s[1],n=parseFloat(n,10),o=parseFloat(o,10)}else n=r.top,o=r.left;return t+=n,i+=o,{top:t,left:i}}}}),R}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");!function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){function e(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),o=function(e){function t(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function i(e){return(e[0]||e).nodeType}function r(t){var i=this,r=!1;return e(this).one(a.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||a.triggerTransitionEnd(i)},t),this}var n=!1,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},a={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(t){var i=t.getAttribute("data-target");i&&"#"!==i||(i=t.getAttribute("href")||"");try{return e(i).length>0?i:null}catch(e){return null}},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(n.end)},supportsTransitionEnd:function(){return Boolean(n)},typeCheckConfig:function(e,r,n){for(var o in n)if(n.hasOwnProperty(o)){var a=n[o],s=r[o],l=s&&i(s)?"element":t(s);if(!new RegExp(a).test(l))throw new Error(e.toUpperCase()+': Option "'+o+'" provided type "'+l+'" but expected type "'+a+'".')}}};return n=function(){if(window.QUnit)return!1;var e=document.createElement("bootstrap");for(var t in o)if(void 0!==e.style[t])return{end:o[t]};return!1}(),e.fn.emulateTransitionEnd=r,a.supportsTransitionEnd()&&(e.event.special[a.TRANSITION_END]=function(){return{bindType:n.end,delegateType:n.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}()),a}(jQuery),a=(function(e){var t="alert",r=e.fn[t],a={DISMISS:'[data-dismiss="alert"]'},s={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},l={ALERT:"alert",FADE:"fade",SHOW:"show"},u=function(){function t(e){i(this,t),this._element=e}return t.prototype.close=function(e){e=e||this._element;var t=this._getRootElement(e);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.prototype.dispose=function(){e.removeData(this._element,"bs.alert"),this._element=null},t.prototype._getRootElement=function(t){var i=o.getSelectorFromElement(t),r=!1;return i&&(r=e(i)[0]),r||(r=e(t).closest("."+l.ALERT)[0]),r},t.prototype._triggerCloseEvent=function(t){var i=e.Event(s.CLOSE);return e(t).trigger(i),i},t.prototype._removeElement=function(t){var i=this;e(t).removeClass(l.SHOW),o.supportsTransitionEnd()&&e(t).hasClass(l.FADE)?e(t).one(o.TRANSITION_END,function(e){return i._destroyElement(t,e)}).emulateTransitionEnd(150):this._destroyElement(t)},t.prototype._destroyElement=function(t){e(t).detach().trigger(s.CLOSED).remove()},t._jQueryInterface=function(i){return this.each(function(){var r=e(this),n=r.data("bs.alert");n||(n=new t(this),r.data("bs.alert",n)),"close"===i&&n[i](this)})},t._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},n(t,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),t}();e(document).on(s.CLICK_DATA_API,a.DISMISS,u._handleDismiss(new u)),e.fn[t]=u._jQueryInterface,e.fn[t].Constructor=u,e.fn[t].noConflict=function(){return e.fn[t]=r,u._jQueryInterface}}(jQuery),function(e){var t="button",r=e.fn[t],o={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},a={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},s={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},l=function(){function t(e){i(this,t),this._element=e}return t.prototype.toggle=function(){var t=!0,i=!0,r=e(this._element).closest(a.DATA_TOGGLE)[0];if(r){var n=e(this._element).find(a.INPUT)[0];if(n){if("radio"===n.type)if(n.checked&&e(this._element).hasClass(o.ACTIVE))t=!1;else{var s=e(r).find(a.ACTIVE)[0];s&&e(s).removeClass(o.ACTIVE)}if(t){if(n.hasAttribute("disabled")||r.hasAttribute("disabled")||n.classList.contains("disabled")||r.classList.contains("disabled"))return;n.checked=!e(this._element).hasClass(o.ACTIVE),e(n).trigger("change")}n.focus(),i=!1}}i&&this._element.setAttribute("aria-pressed",!e(this._element).hasClass(o.ACTIVE)),t&&e(this._element).toggleClass(o.ACTIVE)},t.prototype.dispose=function(){e.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(i){return this.each(function(){var r=e(this).data("bs.button");r||(r=new t(this),e(this).data("bs.button",r)),"toggle"===i&&r[i]()})},n(t,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),t}();e(document).on(s.CLICK_DATA_API,a.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var i=t.target;e(i).hasClass(o.BUTTON)||(i=e(i).closest(a.BUTTON)),l._jQueryInterface.call(e(i),"toggle")}).on(s.FOCUS_BLUR_DATA_API,a.DATA_TOGGLE_CARROT,function(t){var i=e(t.target).closest(a.BUTTON)[0];e(i).toggleClass(o.FOCUS,/^focus(in)?$/.test(t.type))}),e.fn[t]=l._jQueryInterface,e.fn[t].Constructor=l,e.fn[t].noConflict=function(){return e.fn[t]=r,l._jQueryInterface}}(jQuery),function(e){var t="carousel",a="bs.carousel",s="."+a,l=e.fn[t],u={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},c={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},d={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},h={SLIDE:"slide"+s,SLID:"slid"+s,KEYDOWN:"keydown"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s,TOUCHEND:"touchend"+s,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},p={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},f={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},m=function(){function l(t,r){i(this,l),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(r),this._element=e(t)[0],this._indicatorsElement=e(this._element).find(f.INDICATORS)[0],this._addEventListeners()}return l.prototype.next=function(){this._isSliding||this._slide(d.NEXT)},l.prototype.nextWhenVisible=function(){document.hidden||this.next()},l.prototype.prev=function(){this._isSliding||this._slide(d.PREV)},l.prototype.pause=function(t){t||(this._isPaused=!0),e(this._element).find(f.NEXT_PREV)[0]&&o.supportsTransitionEnd()&&(o.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.prototype.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},l.prototype.to=function(t){var i=this;this._activeElement=e(this._element).find(f.ACTIVE_ITEM)[0];var r=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one(h.SLID,function(){return i.to(t)});else{if(r===t)return this.pause(),void this.cycle();var n=t>r?d.NEXT:d.PREV;this._slide(n,this._items[t])}},l.prototype.dispose=function(){e(this._element).off(s),e.removeData(this._element,a),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,
  this._indicatorsElement=null},l.prototype._getConfig=function(i){return i=e.extend({},u,i),o.typeCheckConfig(t,i,c),i},l.prototype._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(h.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(e(this._element).on(h.MOUSEENTER,function(e){return t.pause(e)}).on(h.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&e(this._element).on(h.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},l.prototype._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next();break;default:return}},l.prototype._getItemIndex=function(t){return this._items=e.makeArray(e(t).parent().find(f.ITEM)),this._items.indexOf(t)},l.prototype._getItemByDirection=function(e,t){var i=e===d.NEXT,r=e===d.PREV,n=this._getItemIndex(t),o=this._items.length-1;if((r&&0===n||i&&n===o)&&!this._config.wrap)return t;var a=(n+(e===d.PREV?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},l.prototype._triggerSlideEvent=function(t,i){var r=this._getItemIndex(t),n=this._getItemIndex(e(this._element).find(f.ACTIVE_ITEM)[0]),o=e.Event(h.SLIDE,{relatedTarget:t,direction:i,from:n,to:r});return e(this._element).trigger(o),o},l.prototype._setActiveIndicatorElement=function(t){if(this._indicatorsElement){e(this._indicatorsElement).find(f.ACTIVE).removeClass(p.ACTIVE);var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&e(i).addClass(p.ACTIVE)}},l.prototype._slide=function(t,i){var r=this,n=e(this._element).find(f.ACTIVE_ITEM)[0],a=this._getItemIndex(n),s=i||n&&this._getItemByDirection(t,n),l=this._getItemIndex(s),u=Boolean(this._interval),c=void 0,m=void 0,g=void 0;if(t===d.NEXT?(c=p.LEFT,m=p.NEXT,g=d.LEFT):(c=p.RIGHT,m=p.PREV,g=d.RIGHT),s&&e(s).hasClass(p.ACTIVE))this._isSliding=!1;else if(!this._triggerSlideEvent(s,g).isDefaultPrevented()&&n&&s){this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(s);var v=e.Event(h.SLID,{relatedTarget:s,direction:g,from:a,to:l});o.supportsTransitionEnd()&&e(this._element).hasClass(p.SLIDE)?(e(s).addClass(m),o.reflow(s),e(n).addClass(c),e(s).addClass(c),e(n).one(o.TRANSITION_END,function(){e(s).removeClass(c+" "+m).addClass(p.ACTIVE),e(n).removeClass(p.ACTIVE+" "+m+" "+c),r._isSliding=!1,setTimeout(function(){return e(r._element).trigger(v)},0)}).emulateTransitionEnd(600)):(e(n).removeClass(p.ACTIVE),e(s).addClass(p.ACTIVE),this._isSliding=!1,e(this._element).trigger(v)),u&&this.cycle()}},l._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(a),n=e.extend({},u,e(this).data());"object"===(void 0===t?"undefined":r(t))&&e.extend(n,t);var o="string"==typeof t?t:n.slide;if(i||(i=new l(this,n),e(this).data(a,i)),"number"==typeof t)i.to(t);else if("string"==typeof o){if(void 0===i[o])throw new Error('No method named "'+o+'"');i[o]()}else n.interval&&(i.pause(),i.cycle())})},l._dataApiClickHandler=function(t){var i=o.getSelectorFromElement(this);if(i){var r=e(i)[0];if(r&&e(r).hasClass(p.CAROUSEL)){var n=e.extend({},e(r).data(),e(this).data()),s=this.getAttribute("data-slide-to");s&&(n.interval=!1),l._jQueryInterface.call(e(r),n),s&&e(r).data(a).to(s),t.preventDefault()}}},n(l,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return u}}]),l}();e(document).on(h.CLICK_DATA_API,f.DATA_SLIDE,m._dataApiClickHandler),e(window).on(h.LOAD_DATA_API,function(){e(f.DATA_RIDE).each(function(){var t=e(this);m._jQueryInterface.call(t,t.data())})}),e.fn[t]=m._jQueryInterface,e.fn[t].Constructor=m,e.fn[t].noConflict=function(){return e.fn[t]=l,m._jQueryInterface}}(jQuery),function(e){var t="collapse",a="bs.collapse",s=e.fn[t],l={toggle:!0,parent:""},u={toggle:"boolean",parent:"string"},c={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},d={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},h={WIDTH:"width",HEIGHT:"height"},p={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},f=function(){function s(t,r){i(this,s),this._isTransitioning=!1,this._element=t,this._config=this._getConfig(r),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=e(p.DATA_TOGGLE),a=0;a<n.length;a++){var l=n[a],u=o.getSelectorFromElement(l);null!==u&&e(u).filter(t).length>0&&this._triggerArray.push(l)}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return s.prototype.toggle=function(){e(this._element).hasClass(d.SHOW)?this.hide():this.show()},s.prototype.show=function(){var t=this;if(!this._isTransitioning&&!e(this._element).hasClass(d.SHOW)){var i=void 0,r=void 0;if(this._parent&&((i=e.makeArray(e(this._parent).children().children(p.ACTIVES))).length||(i=null)),!(i&&(r=e(i).data(a))&&r._isTransitioning)){var n=e.Event(c.SHOW);if(e(this._element).trigger(n),!n.isDefaultPrevented()){i&&(s._jQueryInterface.call(e(i),"hide"),r||e(i).data(a,null));var l=this._getDimension();e(this._element).removeClass(d.COLLAPSE).addClass(d.COLLAPSING),this._element.style[l]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(d.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){e(t._element).removeClass(d.COLLAPSING).addClass(d.COLLAPSE).addClass(d.SHOW),t._element.style[l]="",t.setTransitioning(!1),e(t._element).trigger(c.SHOWN)};if(o.supportsTransitionEnd()){var h="scroll"+(l[0].toUpperCase()+l.slice(1));e(this._element).one(o.TRANSITION_END,u).emulateTransitionEnd(600),this._element.style[l]=this._element[h]+"px"}else u()}}}},s.prototype.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(d.SHOW)){var i=e.Event(c.HIDE);if(e(this._element).trigger(i),!i.isDefaultPrevented()){var r=this._getDimension();if(this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",o.reflow(this._element),e(this._element).addClass(d.COLLAPSING).removeClass(d.COLLAPSE).removeClass(d.SHOW),this._triggerArray.length)for(var n=0;n<this._triggerArray.length;n++){var a=this._triggerArray[n],s=o.getSelectorFromElement(a);null!==s&&(e(s).hasClass(d.SHOW)||e(a).addClass(d.COLLAPSED).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){t.setTransitioning(!1),e(t._element).removeClass(d.COLLAPSING).addClass(d.COLLAPSE).trigger(c.HIDDEN)};this._element.style[r]="",o.supportsTransitionEnd()?e(this._element).one(o.TRANSITION_END,l).emulateTransitionEnd(600):l()}}},s.prototype.setTransitioning=function(e){this._isTransitioning=e},s.prototype.dispose=function(){e.removeData(this._element,a),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s.prototype._getConfig=function(i){return i=e.extend({},l,i),i.toggle=Boolean(i.toggle),o.typeCheckConfig(t,i,u),i},s.prototype._getDimension=function(){return e(this._element).hasClass(h.WIDTH)?h.WIDTH:h.HEIGHT},s.prototype._getParent=function(){var t=this,i=e(this._config.parent)[0],r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(i).find(r).each(function(e,i){t._addAriaAndCollapsedClass(s._getTargetFromElement(i),[i])}),i},s.prototype._addAriaAndCollapsedClass=function(t,i){if(t){var r=e(t).hasClass(d.SHOW);i.length&&e(i).toggleClass(d.COLLAPSED,!r).attr("aria-expanded",r)}},s._getTargetFromElement=function(t){var i=o.getSelectorFromElement(t);return i?e(i)[0]:null},s._jQueryInterface=function(t){return this.each(function(){var i=e(this),n=i.data(a),o=e.extend({},l,i.data(),"object"===(void 0===t?"undefined":r(t))&&t);if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new s(this,o),i.data(a,n)),"string"==typeof t){if(void 0===n[t])throw new Error('No method named "'+t+'"');n[t]()}})},n(s,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return l}}]),s}();e(document).on(c.CLICK_DATA_API,p.DATA_TOGGLE,function(t){/input|textarea/i.test(t.target.tagName)||t.preventDefault();var i=e(this),r=o.getSelectorFromElement(this);e(r).each(function(){var t=e(this),r=t.data(a)?"toggle":i.data();f._jQueryInterface.call(t,r)})}),e.fn[t]=f._jQueryInterface,e.fn[t].Constructor=f,e.fn[t].noConflict=function(){return e.fn[t]=s,f._jQueryInterface}}(jQuery),function(e){if("undefined"==typeof Popper)throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var t="dropdown",a="bs.dropdown",s="."+a,l=e.fn[t],u=new RegExp("38|40|27"),c={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,CLICK:"click"+s,CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},d={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},h={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},p={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},f={placement:p.BOTTOM,offset:0,flip:!0},m={placement:"string",offset:"(number|string)",flip:"boolean"},g=function(){function l(e,t){i(this,l),this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}return l.prototype.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass(d.DISABLED)){var t=l._getParentFromElement(this._element),i=e(this._menu).hasClass(d.SHOW);if(l._clearMenus(),!i){var r={relatedTarget:this._element},n=e.Event(c.SHOW,r);if(e(t).trigger(n),!n.isDefaultPrevented()){var o=this._element;e(t).hasClass(d.DROPUP)&&(e(this._menu).hasClass(d.MENULEFT)||e(this._menu).hasClass(d.MENURIGHT))&&(o=t),this._popper=new Popper(o,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!e(t).closest(h.NAVBAR_NAV).length&&e("body").children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(d.SHOW),e(t).toggleClass(d.SHOW).trigger(e.Event(c.SHOWN,r))}}}},l.prototype.dispose=function(){e.removeData(this._element,a),e(this._element).off(s),this._element=null,this._menu=null,null!==this._popper&&this._popper.destroy(),this._popper=null},l.prototype.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},l.prototype._addEventListeners=function(){var t=this;e(this._element).on(c.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},l.prototype._getConfig=function(i){var r=e(this._element).data();return void 0!==r.placement&&(r.placement=p[r.placement.toUpperCase()]),i=e.extend({},this.constructor.Default,e(this._element).data(),i),o.typeCheckConfig(t,i,this.constructor.DefaultType),i},l.prototype._getMenuElement=function(){if(!this._menu){var t=l._getParentFromElement(this._element);this._menu=e(t).find(h.MENU)[0]}return this._menu},l.prototype._getPlacement=function(){var t=e(this._element).parent(),i=this._config.placement;return t.hasClass(d.DROPUP)||this._config.placement===p.TOP?(i=p.TOP,e(this._menu).hasClass(d.MENURIGHT)&&(i=p.TOPEND)):e(this._menu).hasClass(d.MENURIGHT)&&(i=p.BOTTOMEND),i},l.prototype._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},l.prototype._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._inNavbar&&(e.modifiers.applyStyle={enabled:!this._inNavbar}),e},l._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(a),n="object"===(void 0===t?"undefined":r(t))?t:null;if(i||(i=new l(this,n),e(this).data(a,i)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},l._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var i=e.makeArray(e(h.DATA_TOGGLE)),r=0;r<i.length;r++){var n=l._getParentFromElement(i[r]),o=e(i[r]).data(a),s={relatedTarget:i[r]};if(o){var u=o._menu;if(e(n).hasClass(d.SHOW)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(n,t.target))){var p=e.Event(c.HIDE,s);e(n).trigger(p),p.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e("body").children().off("mouseover",null,e.noop),i[r].setAttribute("aria-expanded","false"),e(u).removeClass(d.SHOW),e(n).removeClass(d.SHOW).trigger(e.Event(c.HIDDEN,s)))}}}},l._getParentFromElement=function(t){var i=void 0,r=o.getSelectorFromElement(t);return r&&(i=e(r)[0]),i||t.parentNode},l._dataApiKeydownHandler=function(t){if(!(!u.test(t.which)||/button/i.test(t.target.tagName)&&32===t.which||/input|textarea/i.test(t.target.tagName)||(t.preventDefault(),t.stopPropagation(),this.disabled||e(this).hasClass(d.DISABLED)))){var i=l._getParentFromElement(this),r=e(i).hasClass(d.SHOW);if((r||27===t.which&&32===t.which)&&(!r||27!==t.which&&32!==t.which)){var n=e(i).find(h.VISIBLE_ITEMS).get();if(n.length){var o=n.indexOf(t.target);38===t.which&&o>0&&o--,40===t.which&&o<n.length-1&&o++,o<0&&(o=0),n[o].focus()}}else{if(27===t.which){var a=e(i).find(h.DATA_TOGGLE)[0];e(a).trigger("focus")}e(this).trigger("click")}}},n(l,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return f}},{key:"DefaultType",get:function(){return m}}]),l}();e(document).on(c.KEYDOWN_DATA_API,h.DATA_TOGGLE,g._dataApiKeydownHandler).on(c.KEYDOWN_DATA_API,h.MENU,g._dataApiKeydownHandler).on(c.CLICK_DATA_API+" "+c.KEYUP_DATA_API,g._clearMenus).on(c.CLICK_DATA_API,h.DATA_TOGGLE,function(t){t.preventDefault(),t.stopPropagation(),g._jQueryInterface.call(e(this),"toggle")}).on(c.CLICK_DATA_API,h.FORM_CHILD,function(e){e.stopPropagation()}),e.fn[t]=g._jQueryInterface,e.fn[t].Constructor=g,e.fn[t].noConflict=function(){return e.fn[t]=l,g._jQueryInterface}}(jQuery),function(e){var t="modal",a=e.fn[t],s={backdrop:!0,keyboard:!0,focus:!0,show:!0},l={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},u={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},c={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},d={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},h=function(){function a(t,r){i(this,a),this._config=this._getConfig(r),this._element=t,this._dialog=e(t).find(d.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return a.prototype.toggle=function(e){return this._isShown?this.hide():this.show(e)},a.prototype.show=function(t){var i=this;if(!this._isTransitioning){o.supportsTransitionEnd()&&e(this._element).hasClass(c.FADE)&&(this._isTransitioning=!0);var r=e.Event(u.SHOW,{relatedTarget:t});e(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),e(document.body).addClass(c.OPEN),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(u.CLICK_DISMISS,d.DATA_DISMISS,function(e){return i.hide(e)}),e(this._dialog).on(u.MOUSEDOWN_DISMISS,function(){e(i._element).one(u.MOUSEUP_DISMISS,function(t){e(t.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(t)}))}},a.prototype.hide=function(t){var i=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var r=o.supportsTransitionEnd()&&e(this._element).hasClass(c.FADE);r&&(this._isTransitioning=!0);var n=e.Event(u.HIDE);e(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),e(document).off(u.FOCUSIN),e(this._element).removeClass(c.SHOW),e(this._element).off(u.CLICK_DISMISS),e(this._dialog).off(u.MOUSEDOWN_DISMISS),r?e(this._element).one(o.TRANSITION_END,function(e){return i._hideModal(e)}).emulateTransitionEnd(300):this._hideModal())}},a.prototype.dispose=function(){e.removeData(this._element,"bs.modal"),e(window,document,this._element,this._backdrop).off(".bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},a.prototype.handleUpdate=function(){this._adjustDialog()},a.prototype._getConfig=function(i){return i=e.extend({},s,i),o.typeCheckConfig(t,i,l),i},a.prototype._showElement=function(t){var i=this,r=o.supportsTransitionEnd()&&e(this._element).hasClass(c.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,r&&o.reflow(this._element),e(this._element).addClass(c.SHOW),this._config.focus&&this._enforceFocus();var n=e.Event(u.SHOWN,{relatedTarget:t}),a=function(){i._config.focus&&i._element.focus(),i._isTransitioning=!1,e(i._element).trigger(n)};r?e(this._dialog).one(o.TRANSITION_END,a).emulateTransitionEnd(300):a()},a.prototype._enforceFocus=function(){var t=this;e(document).off(u.FOCUSIN).on(u.FOCUSIN,function(i){document===i.target||t._element===i.target||e(t._element).has(i.target).length||t._element.focus()})},a.prototype._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(u.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||e(this._element).off(u.KEYDOWN_DISMISS)},a.prototype._setResizeEvent=function(){var t=this;this._isShown?e(window).on(u.RESIZE,function(e){return t.handleUpdate(e)}):e(window).off(u.RESIZE)},a.prototype._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass(c.OPEN),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(u.HIDDEN)})},a.prototype._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},a.prototype._showBackdrop=function(t){var i=this,r=e(this._element).hasClass(c.FADE)?c.FADE:"";if(this._isShown&&this._config.backdrop){var n=o.supportsTransitionEnd()&&r;if(this._backdrop=document.createElement("div"),this._backdrop.className=c.BACKDROP,r&&e(this._backdrop).addClass(r),e(this._backdrop).appendTo(document.body),e(this._element).on(u.CLICK_DISMISS,function(e){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide())}),n&&o.reflow(this._backdrop),e(this._backdrop).addClass(c.SHOW),!t)return;if(!n)return void t();e(this._backdrop).one(o.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(c.SHOW);var a=function(){i._removeBackdrop(),t&&t()};o.supportsTransitionEnd()&&e(this._element).hasClass(c.FADE)?e(this._backdrop).one(o.TRANSITION_END,a).emulateTransitionEnd(150):a()}else t&&t()},a.prototype._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},a.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},a.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},a.prototype._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){e(d.FIXED_CONTENT).each(function(i,r){var n=e(r)[0].style.paddingRight,o=e(r).css("padding-right");e(r).data("padding-right",n).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")}),e(d.NAVBAR_TOGGLER).each(function(i,r){var n=e(r)[0].style.marginRight,o=e(r).css("margin-right");e(r).data("margin-right",n).css("margin-right",parseFloat(o)+t._scrollbarWidth+"px")});var i=document.body.style.paddingRight,r=e("body").css("padding-right");e("body").data("padding-right",i).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}},a.prototype._resetScrollbar=function(){e(d.FIXED_CONTENT).each(function(t,i){var r=e(i).data("padding-right");void 0!==r&&e(i).css("padding-right",r).removeData("padding-right")}),e(d.NAVBAR_TOGGLER).each(function(t,i){var r=e(i).data("margin-right");void 0!==r&&e(i).css("margin-right",r).removeData("margin-right")});var t=e("body").data("padding-right");void 0!==t&&e("body").css("padding-right",t).removeData("padding-right")},a.prototype._getScrollbarWidth=function(){var e=document.createElement("div");e.className=c.SCROLLBAR_MEASURER,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},a._jQueryInterface=function(t,i){return this.each(function(){var n=e(this).data("bs.modal"),o=e.extend({},a.Default,e(this).data(),"object"===(void 0===t?"undefined":r(t))&&t);if(n||(n=new a(this,o),e(this).data("bs.modal",n)),"string"==typeof t){if(void 0===n[t])throw new Error('No method named "'+t+'"');n[t](i)}else o.show&&n.show(i)})},n(a,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return s}}]),a}();e(document).on(u.CLICK_DATA_API,d.DATA_TOGGLE,function(t){var i=this,r=void 0,n=o.getSelectorFromElement(this);n&&(r=e(n)[0]);var a=e(r).data("bs.modal")?"toggle":e.extend({},e(r).data(),e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=e(r).one(u.SHOW,function(t){t.isDefaultPrevented()||s.one(u.HIDDEN,function(){e(i).is(":visible")&&i.focus()})});h._jQueryInterface.call(e(r),a,this)}),e.fn[t]=h._jQueryInterface,e.fn[t].Constructor=h,e.fn[t].noConflict=function(){return e.fn[t]=a,h._jQueryInterface}}(jQuery),function(e){var t="scrollspy",a=e.fn[t],s={offset:10,method:"auto",target:""},l={offset:"number",method:"string",target:"(string|element)"},u={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},c={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},d={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},h={OFFSET:"offset",POSITION:"position"},p=function(){function a(t,r){var n=this;i(this,a),this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(r),this._selector=this._config.target+" "+d.NAV_LINKS+","+this._config.target+" "+d.LIST_ITEMS+","+this._config.target+" "+d.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(u.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}return a.prototype.refresh=function(){var t=this,i=this._scrollElement!==this._scrollElement.window?h.POSITION:h.OFFSET,r="auto"===this._config.method?i:this._config.method,n=r===h.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),e.makeArray(e(this._selector)).map(function(t){var i=void 0,a=o.getSelectorFromElement(t);if(a&&(i=e(a)[0]),i){var s=i.getBoundingClientRect();if(s.width||s.height)return[e(i)[r]().top+n,a]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},a.prototype.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},a.prototype._getConfig=function(i){if("string"!=typeof(i=e.extend({},s,i)).target){var r=e(i.target).attr("id");r||(r=o.getUID(t),e(i.target).attr("id",r)),i.target="#"+r}return o.typeCheckConfig(t,i,l),i},a.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},a.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},a.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},a.prototype._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=i){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&e>=this._offsets[n]&&(void 0===this._offsets[n+1]||e<this._offsets[n+1])&&this._activate(this._targets[n])}},a.prototype._activate=function(t){this._activeTarget=t,this._clear();var i=this._selector.split(",");i=i.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var r=e(i.join(","));r.hasClass(c.DROPDOWN_ITEM)?(r.closest(d.DROPDOWN).find(d.DROPDOWN_TOGGLE).addClass(c.ACTIVE),r.addClass(c.ACTIVE)):(r.addClass(c.ACTIVE),r.parents(d.NAV_LIST_GROUP).prev(d.NAV_LINKS+", "+d.LIST_ITEMS).addClass(c.ACTIVE)),e(this._scrollElement).trigger(u.ACTIVATE,{relatedTarget:t})},a.prototype._clear=function(){e(this._selector).filter(d.ACTIVE).removeClass(c.ACTIVE)},a._jQueryInterface=function(t){return this.each(function(){var i=e(this).data("bs.scrollspy"),n="object"===(void 0===t?"undefined":r(t))&&t;if(i||(i=new a(this,n),e(this).data("bs.scrollspy",i)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},n(a,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return s}}]),a}();e(window).on(u.LOAD_DATA_API,function(){for(var t=e.makeArray(e(d.DATA_SPY)),i=t.length;i--;){var r=e(t[i]);p._jQueryInterface.call(r,r.data())}}),e.fn[t]=p._jQueryInterface,e.fn[t].Constructor=p,e.fn[t].noConflict=function(){return e.fn[t]=a,p._jQueryInterface}}(jQuery),function(e){var t=e.fn.tab,r={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},a={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},s={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},l=function(){function t(e){i(this,t),this._element=e}return t.prototype.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(a.ACTIVE)||e(this._element).hasClass(a.DISABLED))){var i=void 0,n=void 0,l=e(this._element).closest(s.NAV_LIST_GROUP)[0],u=o.getSelectorFromElement(this._element);l&&(n=e.makeArray(e(l).find(s.ACTIVE)),n=n[n.length-1]);var c=e.Event(r.HIDE,{relatedTarget:this._element}),d=e.Event(r.SHOW,{relatedTarget:n});if(n&&e(n).trigger(c),e(this._element).trigger(d),!d.isDefaultPrevented()&&!c.isDefaultPrevented()){u&&(i=e(u)[0]),this._activate(this._element,l);var h=function(){var i=e.Event(r.HIDDEN,{relatedTarget:t._element}),o=e.Event(r.SHOWN,{relatedTarget:n});e(n).trigger(i),e(t._element).trigger(o)};i?this._activate(i,i.parentNode,h):h()}}},t.prototype.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},t.prototype._activate=function(t,i,r){var n=this,l=e(i).find(s.ACTIVE)[0],u=r&&o.supportsTransitionEnd()&&l&&e(l).hasClass(a.FADE),c=function(){return n._transitionComplete(t,l,u,r)};l&&u?e(l).one(o.TRANSITION_END,c).emulateTransitionEnd(150):c(),l&&e(l).removeClass(a.SHOW)},t.prototype._transitionComplete=function(t,i,r,n){if(i){e(i).removeClass(a.ACTIVE);var l=e(i.parentNode).find(s.DROPDOWN_ACTIVE_CHILD)[0];l&&e(l).removeClass(a.ACTIVE),i.setAttribute("aria-expanded",!1)}if(e(t).addClass(a.ACTIVE),t.setAttribute("aria-expanded",!0),r?(o.reflow(t),e(t).addClass(a.SHOW)):e(t).removeClass(a.FADE),t.parentNode&&e(t.parentNode).hasClass(a.DROPDOWN_MENU)){var u=e(t).closest(s.DROPDOWN)[0];u&&e(u).find(s.DROPDOWN_TOGGLE).addClass(a.ACTIVE),t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(i){return this.each(function(){var r=e(this),n=r.data("bs.tab");if(n||(n=new t(this),r.data("bs.tab",n)),"string"==typeof i){if(void 0===n[i])throw new Error('No method named "'+i+'"');n[i]()}})},n(t,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),t}();e(document).on(r.CLICK_DATA_API,s.DATA_TOGGLE,function(t){t.preventDefault(),l._jQueryInterface.call(e(this),"show")}),e.fn.tab=l._jQueryInterface,e.fn.tab.Constructor=l,e.fn.tab.noConflict=function(){return e.fn.tab=t,l._jQueryInterface}}(jQuery),function(e){if("undefined"==typeof Popper)throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var t="tooltip",a=".bs.tooltip",s=e.fn[t],l=new RegExp("(^|\\s)bs-tooltip\\S+","g"),u={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},c={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},d={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},h={SHOW:"show",OUT:"out"},p={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},f={FADE:"fade",SHOW:"show"},m={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},g={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},v=function(){function s(e,t){i(this,s),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}return s.prototype.enable=function(){this._isEnabled=!0},s.prototype.disable=function(){this._isEnabled=!1},s.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},s.prototype.toggle=function(t){if(t){var i=this.constructor.DATA_KEY,r=e(t.currentTarget).data(i);r||(r=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(e(this.getTipElement()).hasClass(f.SHOW))return void this._leave(null,this);this._enter(null,this)}},s.prototype.dispose=function(){clearTimeout(this._timeout),
  e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},s.prototype.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var i=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(i);var r=e.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!r)return;var n=this.getTipElement(),a=o.getUID(this.constructor.NAME);n.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(n).addClass(f.FADE);var l="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,u=this._getAttachment(l);this.addAttachmentClass(u);var c=!1===this.config.container?document.body:e(this.config.container);e(n).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(n).appendTo(c),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,n,{placement:u,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:m.ARROW}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),e(n).addClass(f.SHOW),"ontouchstart"in document.documentElement&&e("body").children().on("mouseover",null,e.noop);var d=function(){t.config.animation&&t._fixTransition();var i=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),i===h.OUT&&t._leave(null,t)};o.supportsTransitionEnd()&&e(this.tip).hasClass(f.FADE)?e(this.tip).one(o.TRANSITION_END,d).emulateTransitionEnd(s._TRANSITION_DURATION):d()}},s.prototype.hide=function(t){var i=this,r=this.getTipElement(),n=e.Event(this.constructor.Event.HIDE),a=function(){i._hoverState!==h.SHOW&&r.parentNode&&r.parentNode.removeChild(r),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),e(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),t&&t()};e(this.element).trigger(n),n.isDefaultPrevented()||(e(r).removeClass(f.SHOW),"ontouchstart"in document.documentElement&&e("body").children().off("mouseover",null,e.noop),this._activeTrigger[g.CLICK]=!1,this._activeTrigger[g.FOCUS]=!1,this._activeTrigger[g.HOVER]=!1,o.supportsTransitionEnd()&&e(this.tip).hasClass(f.FADE)?e(r).one(o.TRANSITION_END,a).emulateTransitionEnd(150):a(),this._hoverState="")},s.prototype.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},s.prototype.isWithContent=function(){return Boolean(this.getTitle())},s.prototype.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},s.prototype.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0]},s.prototype.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(m.TOOLTIP_INNER),this.getTitle()),t.removeClass(f.FADE+" "+f.SHOW)},s.prototype.setElementContent=function(t,i){var n=this.config.html;"object"===(void 0===i?"undefined":r(i))&&(i.nodeType||i.jquery)?n?e(i).parent().is(t)||t.empty().append(i):t.text(e(i).text()):t[n?"html":"text"](i)},s.prototype.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},s.prototype._getAttachment=function(e){return c[e.toUpperCase()]},s.prototype._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(i!==g.MANUAL){var r=i===g.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,n=i===g.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(r,t.config.selector,function(e){return t._enter(e)}).on(n,t.config.selector,function(e){return t._leave(e)})}e(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=e.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},s.prototype._fixTitle=function(){var e=r(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},s.prototype._enter=function(t,i){var r=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(r))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,i)),t&&(i._activeTrigger["focusin"===t.type?g.FOCUS:g.HOVER]=!0),e(i.getTipElement()).hasClass(f.SHOW)||i._hoverState===h.SHOW?i._hoverState=h.SHOW:(clearTimeout(i._timeout),i._hoverState=h.SHOW,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){i._hoverState===h.SHOW&&i.show()},i.config.delay.show):i.show())},s.prototype._leave=function(t,i){var r=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(r))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,i)),t&&(i._activeTrigger["focusout"===t.type?g.FOCUS:g.HOVER]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=h.OUT,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){i._hoverState===h.OUT&&i.hide()},i.config.delay.hide):i.hide())},s.prototype._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},s.prototype._getConfig=function(i){return(i=e.extend({},this.constructor.Default,e(this.element).data(),i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.title&&"number"==typeof i.title&&(i.title=i.title.toString()),i.content&&"number"==typeof i.content&&(i.content=i.content.toString()),o.typeCheckConfig(t,i,this.constructor.DefaultType),i},s.prototype._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},s.prototype._cleanTipClass=function(){var t=e(this.getTipElement()),i=t.attr("class").match(l);null!==i&&i.length>0&&t.removeClass(i.join(""))},s.prototype._handlePopperPlacementChange=function(e){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},s.prototype._fixTransition=function(){var t=this.getTipElement(),i=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(f.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},s._jQueryInterface=function(t){return this.each(function(){var i=e(this).data("bs.tooltip"),n="object"===(void 0===t?"undefined":r(t))&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new s(this,n),e(this).data("bs.tooltip",i)),"string"==typeof t)){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},n(s,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return u}}]),s}();return e.fn[t]=v._jQueryInterface,e.fn[t].Constructor=v,e.fn[t].noConflict=function(){return e.fn[t]=s,v._jQueryInterface},v}(jQuery));!function(o){var s="popover",l=".bs.popover",u=o.fn[s],c=new RegExp("(^|\\s)bs-popover\\S+","g"),d=o.extend({},a.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),h=o.extend({},a.DefaultType,{content:"(string|element|function)"}),p={FADE:"fade",SHOW:"show"},f={TITLE:".popover-header",CONTENT:".popover-body"},m={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,INSERTED:"inserted"+l,CLICK:"click"+l,FOCUSIN:"focusin"+l,FOCUSOUT:"focusout"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l},g=function(a){function u(){return i(this,u),e(this,a.apply(this,arguments))}return t(u,a),u.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},u.prototype.addAttachmentClass=function(e){o(this.getTipElement()).addClass("bs-popover-"+e)},u.prototype.getTipElement=function(){return this.tip=this.tip||o(this.config.template)[0]},u.prototype.setContent=function(){var e=o(this.getTipElement());this.setElementContent(e.find(f.TITLE),this.getTitle()),this.setElementContent(e.find(f.CONTENT),this._getContent()),e.removeClass(p.FADE+" "+p.SHOW)},u.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},u.prototype._cleanTipClass=function(){var e=o(this.getTipElement()),t=e.attr("class").match(c);null!==t&&t.length>0&&e.removeClass(t.join(""))},u._jQueryInterface=function(e){return this.each(function(){var t=o(this).data("bs.popover"),i="object"===(void 0===e?"undefined":r(e))?e:null;if((t||!/destroy|hide/.test(e))&&(t||(t=new u(this,i),o(this).data("bs.popover",t)),"string"==typeof e)){if(void 0===t[e])throw new Error('No method named "'+e+'"');t[e]()}})},n(u,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return l}},{key:"DefaultType",get:function(){return h}}]),u}(a);o.fn[s]=g._jQueryInterface,o.fn[s].Constructor=g,o.fn[s].noConflict=function(){return o.fn[s]=u,g._jQueryInterface}}(jQuery)}(),function(){function e(){O.keyboardSupport&&p("keydown",o)}function t(){if(!Q&&document.body){Q=!0;var t=document.body,i=document.documentElement,r=window.innerHeight,n=t.scrollHeight;if(D=document.compatMode.indexOf("CSS")>=0?i:t,P=t,e(),top!=self)B=!0;else if(te&&n>r&&(t.offsetHeight<=r||i.offsetHeight<=r)){var o=document.createElement("div");o.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+D.scrollHeight+"px",document.body.appendChild(o);var a;E=function(){a||(a=setTimeout(function(){k||(o.style.height="0",o.style.height=D.scrollHeight+"px",a=null)},500))},setTimeout(E,10),p("resize",E);var s={attributes:!0,childList:!0,characterData:!1};if(x=new $(E),x.observe(t,s),D.offsetHeight<=r){var l=document.createElement("div");l.style.clear="both",t.appendChild(l)}}O.fixedBackground||k||(t.style.backgroundAttachment="scroll",i.style.backgroundAttachment="scroll")}}function i(){x&&x.disconnect(),f(U,n),f("mousedown",a),f("keydown",o),f("resize",E),f("load",t)}function r(e,t,i){if(g(t,i),1!=O.accelerationMax){var r=Date.now(),n=r-R;if(n<O.accelerationDelta){var o=(1+50/n)/2;o>1&&(o=Math.min(o,O.accelerationMax),t*=o,i*=o)}R=Date.now()}if(V.push({x:t,y:i,lastX:t<0?.99:-.99,lastY:i<0?.99:-.99,start:Date.now()}),!N){var a=e===document.body,s=function(r){for(var n=Date.now(),o=0,l=0,u=0;u<V.length;u++){var c=V[u],d=n-c.start,h=d>=O.animationTime,p=h?1:d/O.animationTime;O.pulseAlgorithm&&(p=C(p));var f=c.x*p-c.lastX>>0,m=c.y*p-c.lastY>>0;o+=f,l+=m,c.lastX+=f,c.lastY+=m,h&&(V.splice(u,1),u--)}a?window.scrollBy(o,l):(o&&(e.scrollLeft+=o),l&&(e.scrollTop+=l)),t||i||(V=[]),V.length?z(s,e,1e3/O.frameRate+1):N=!1};z(s,e,0),N=!0}}function n(e){Q||t();var i=e.target;if(e.defaultPrevented||e.ctrlKey)return!0;if(m(P,"embed")||m(i,"embed")&&/\.pdf/i.test(i.src)||m(P,"object")||i.shadowRoot)return!0;var n=-e.wheelDeltaX||e.deltaX||0,o=-e.wheelDeltaY||e.deltaY||0;L&&(e.wheelDeltaX&&y(e.wheelDeltaX,120)&&(n=e.wheelDeltaX/Math.abs(e.wheelDeltaX)*-120),e.wheelDeltaY&&y(e.wheelDeltaY,120)&&(o=e.wheelDeltaY/Math.abs(e.wheelDeltaY)*-120)),n||o||(o=-e.wheelDelta||0),1===e.deltaMode&&(n*=40,o*=40);var a=u(i);return a?!(O.touchpadSupport||!v(o))||(Math.abs(n)>1.2&&(n*=O.stepSize/120),Math.abs(o)>1.2&&(o*=O.stepSize/120),r(a,n,o),e.preventDefault(),void s()):!B||!K||(Object.defineProperty(e,"target",{value:window.frameElement}),e=new e.constructor(e.type,e),parent.dispatchEvent(e))}function o(e){var t=e.target,i=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==F.spacebar;document.body.contains(P)||(P=document.activeElement);var n=/^(textarea|select|embed|object)$/i,o=/^(button|submit|radio|checkbox|file|color|image)$/i;if(e.defaultPrevented||n.test(t.nodeName)||m(t,"input")&&!o.test(t.type)||m(P,"video")||w(e)||t.isContentEditable||i)return!0;if((m(t,"button")||m(t,"input")&&o.test(t.type))&&e.keyCode===F.spacebar)return!0;if(m(t,"input")&&"radio"==t.type&&M[e.keyCode])return!0;var a,l=0,c=0,d=u(P);if(!d)return!B||!K||parent.keydown(e);var h=d.clientHeight;switch(d==document.body&&(h=window.innerHeight),e.keyCode){case F.up:c=-O.arrowScroll;break;case F.down:c=O.arrowScroll;break;case F.spacebar:a=e.shiftKey?1:-1,c=-a*h*.9;break;case F.pageup:c=.9*-h;break;case F.pagedown:c=.9*h;break;case F.home:c=-d.scrollTop;break;case F.end:var p=d.scrollHeight-d.scrollTop,f=p-h;c=f>0?f+10:0;break;case F.left:l=-O.arrowScroll;break;case F.right:l=O.arrowScroll;break;default:return!0}r(d,l,c),e.preventDefault(),s()}function a(e){P=e.target}function s(){clearTimeout(j),j=setInterval(function(){W={}},1e3)}function l(e,t){for(var i=e.length;i--;)W[H(e[i])]=t;return t}function u(e){var t=[],i=document.body,r=D.scrollHeight;do{var n=W[H(e)];if(n)return l(t,n);if(t.push(e),r===e.scrollHeight){var o=d(D)&&d(i),a=o||h(D);if(B&&c(D)||!B&&a)return l(t,G())}else if(c(e)&&h(e))return l(t,e)}while(e=e.parentElement)}function c(e){return e.clientHeight+10<e.scrollHeight}function d(e){return"hidden"!==getComputedStyle(e,"").getPropertyValue("overflow-y")}function h(e){var t=getComputedStyle(e,"").getPropertyValue("overflow-y");return"scroll"===t||"auto"===t}function p(e,t){window.addEventListener(e,t,!1)}function f(e,t){window.removeEventListener(e,t,!1)}function m(e,t){return(e.nodeName||"").toLowerCase()===t.toLowerCase()}function g(e,t){e=e>0?1:-1,t=t>0?1:-1,I.x===e&&I.y===t||(I.x=e,I.y=t,V=[],R=0)}function v(e){if(e)return Y.length||(Y=[e,e,e]),e=Math.abs(e),Y.push(e),Y.shift(),clearTimeout(S),S=setTimeout(function(){try{localStorage.SS_deltaBuffer=Y.join(",")}catch(e){}},1e3),!b(120)&&!b(100)}function y(e,t){return Math.floor(e/t)==e/t}function b(e){return y(Y[0],e)&&y(Y[1],e)&&y(Y[2],e)}function w(e){var t=e.target,i=!1;if(-1!=document.URL.indexOf("www.youtube.com/watch"))do{if(i=t.classList&&t.classList.contains("html5-video-controls"))break}while(t=t.parentNode);return i}function T(e){var t,i,r;return e*=O.pulseScale,e<1?t=e-(1-Math.exp(-e)):(i=Math.exp(-1),e-=1,r=1-Math.exp(-e),t=i+r*(1-i)),t*O.pulseNormalize}function C(e){return e>=1?1:e<=0?0:(1==O.pulseNormalize&&(O.pulseNormalize/=T(1)),T(e))}function _(e){for(var t in e)A.hasOwnProperty(t)&&(O[t]=e[t])}var P,x,E,j,S,A={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!1,fixedBackground:!0,excluded:""},O=A,k=!1,B=!1,I={x:0,y:0},Q=!1,D=document.documentElement,Y=[],L=/^Mac/.test(navigator.platform),F={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},M={37:1,38:1,39:1,40:1},V=[],N=!1,R=Date.now(),H=function(){var e=0;return function(t){return t.uniqueID||(t.uniqueID=e++)}}(),W={};if(window.localStorage&&localStorage.SS_deltaBuffer)try{Y=localStorage.SS_deltaBuffer.split(",")}catch(e){}var U,z=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e,t,i){window.setTimeout(e,i||1e3/60)}}(),$=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,G=function(){var e;return function(){if(!e){var t=document.createElement("div");t.style.cssText="height:10000px;width:1px;",document.body.appendChild(t);var i=document.body.scrollTop;document.documentElement.scrollTop;window.scrollBy(0,3),e=document.body.scrollTop!=i?document.body:document.documentElement,window.scrollBy(0,-3),document.body.removeChild(t)}return e}}(),X=window.navigator.userAgent,q=/Edge/.test(X),K=/chrome/i.test(X)&&!q,Z=/safari/i.test(X)&&!q,J=/mobile/i.test(X),ee=/Windows NT 6.1/i.test(X)&&/rv:11/i.test(X),te=Z&&(/Version\/8/i.test(X)||/Version\/9/i.test(X)),ie=(K||Z||ee)&&!J;"onwheel"in document.createElement("div")?U="wheel":"onmousewheel"in document.createElement("div")&&(U="mousewheel"),U&&ie&&(p(U,n),p("mousedown",a),p("load",t)),_.destroy=i,window.SmoothScrollOptions&&_(window.SmoothScrollOptions),"function"==typeof define&&define.amd?define(function(){return _}):"object"==typeof exports?module.exports=_:window.SmoothScroll=_}(),function(e){"use strict";function t(){n=e.innerWidth||document.documentElement.clientWidth,o=e.innerHeight||document.documentElement.clientHeight}function i(e,t,i){e.addEventListener?e.addEventListener(t,i):e.attachEvent("on"+t,function(){i.call(e)})}function r(i){e.requestAnimationFrame(function(){"scroll"!==i.type&&t();for(var e=0,r=f.length;e<r;e++)"scroll"!==i.type&&(f[e].coverImage(),f[e].clipContainer()),f[e].onScroll()})}Date.now||(Date.now=function(){return(new Date).getTime()}),e.requestAnimationFrame||function(){for(var t=["webkit","moz"],i=0;i<t.length&&!e.requestAnimationFrame;++i){var r=t[i];e.requestAnimationFrame=e[r+"RequestAnimationFrame"],e.cancelAnimationFrame=e[r+"CancelAnimationFrame"]||e[r+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(e.navigator.userAgent)||!e.requestAnimationFrame||!e.cancelAnimationFrame){var n=0;e.requestAnimationFrame=function(e){var t=Date.now(),i=Math.max(n+16,t);return setTimeout(function(){e(n=i)},i-t)},e.cancelAnimationFrame=clearTimeout}}();var n,o,a=function(){if(!e.getComputedStyle)return!1;var t,i=document.createElement("p"),r={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};(document.body||document.documentElement).insertBefore(i,null);for(var n in r)void 0!==i.style[n]&&(i.style[n]="translate3d(1px,1px,1px)",t=e.getComputedStyle(i).getPropertyValue(r[n]));return(document.body||document.documentElement).removeChild(i),void 0!==t&&t.length>0&&"none"!==t}(),s=navigator.userAgent.toLowerCase().indexOf("android")>-1,l=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!e.MSStream,u=!!e.opera,c=/Edge\/\d+/.test(navigator.userAgent),d=/Trident.*rv[ :]*11\./.test(navigator.userAgent),h=!!Function("/*@cc_on return document.documentMode===10@*/")(),p=document.all&&!e.atob;t();var f=[],m=function(){function e(e,i){var r,n=this;if(n.$item=e,n.defaults={type:"scroll",speed:.5,imgSrc:null,imgWidth:null,imgHeight:null,enableTransform:!0,elementInViewport:null,zIndex:-100,noAndroid:!1,noIos:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null},r=JSON.parse(n.$item.getAttribute("data-jarallax")||"{}"),n.options=n.extend({},n.defaults,r,i),!(s&&n.options.noAndroid||l&&n.options.noIos)){n.options.speed=Math.min(2,Math.max(-1,parseFloat(n.options.speed)));var o=n.options.elementInViewport;o&&"object"==typeof o&&void 0!==o.length&&(o=o[0]),!o instanceof Element&&(o=null),n.options.elementInViewport=o,n.instanceID=t++,n.image={src:n.options.imgSrc||null,$container:null,$item:null,width:n.options.imgWidth||null,height:n.options.imgHeight||null,useImgTag:l||s||u||d||h||c},n.initImg()&&n.init()}}var t=0;return e}();m.prototype.css=function(t,i){if("string"==typeof i)return e.getComputedStyle?e.getComputedStyle(t).getPropertyValue(i):t.style[i];i.transform&&(i.WebkitTransform=i.MozTransform=i.transform);for(var r in i)t.style[r]=i[r];return t},m.prototype.extend=function(e){e=e||{};for(var t=1;t<arguments.length;t++)if(arguments[t])for(var i in arguments[t])arguments[t].hasOwnProperty(i)&&(e[i]=arguments[t][i]);return e},m.prototype.initImg=function(){var e=this;return null===e.image.src&&(e.image.src=e.css(e.$item,"background-image").replace(/^url\(['"]?/g,"").replace(/['"]?\)$/g,"")),!(!e.image.src||"none"===e.image.src)},m.prototype.init=function(){function e(){t.coverImage(),t.clipContainer(),t.onScroll(!0),t.options.onInit&&t.options.onInit.call(t),setTimeout(function(){t.$item&&t.css(t.$item,{"background-image":"none","background-attachment":"scroll","background-size":"auto"})},0)}var t=this,i={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none"},r={position:"fixed"};t.$item.setAttribute("data-jarallax-original-styles",t.$item.getAttribute("style")),"static"===t.css(t.$item,"position")&&t.css(t.$item,{position:"relative"}),"auto"===t.css(t.$item,"z-index")&&t.css(t.$item,{zIndex:0}),t.image.$container=document.createElement("div"),t.css(t.image.$container,i),t.css(t.image.$container,{visibility:"hidden","z-index":t.options.zIndex}),t.image.$container.setAttribute("id","jarallax-container-"+t.instanceID),t.$item.appendChild(t.image.$container),t.image.useImgTag&&a&&t.options.enableTransform?(t.image.$item=document.createElement("img"),t.image.$item.setAttribute("src",t.image.src),r=t.extend({"max-width":"none"},i,r)):(t.image.$item=document.createElement("div"),r=t.extend({"background-position":"50% 50%","background-size":"100% auto","background-repeat":"no-repeat no-repeat","background-image":'url("'+t.image.src+'")'},i,r)),p&&(r.backgroundAttachment="fixed"),t.parentWithTransform=0;for(var n=t.$item;null!==n&&n!==document&&0===t.parentWithTransform;){var o=t.css(n,"-webkit-transform")||t.css(n,"-moz-transform")||t.css(n,"transform");o&&"none"!==o&&(t.parentWithTransform=1,t.css(t.image.$container,{transform:"translateX(0) translateY(0)"})),n=n.parentNode}t.css(t.image.$item,r),t.image.$container.appendChild(t.image.$item),t.image.width&&t.image.height?e():t.getImageSize(t.image.src,function(i,r){t.image.width=i,t.image.height=r,e()}),f.push(t)},m.prototype.destroy=function(){for(var e=this,t=0,i=f.length;t<i;t++)if(f[t].instanceID===e.instanceID){f.splice(t,1);break}var r=e.$item.getAttribute("data-jarallax-original-styles");e.$item.removeAttribute("data-jarallax-original-styles"),"null"===r?e.$item.removeAttribute("style"):e.$item.setAttribute("style",r),e.$clipStyles&&e.$clipStyles.parentNode.removeChild(e.$clipStyles),e.image.$container.parentNode.removeChild(e.image.$container),e.options.onDestroy&&e.options.onDestroy.call(e),delete e.$item.jarallax;for(var n in e)delete e[n]},m.prototype.getImageSize=function(e,t){if(e&&t){var i=new Image;i.onload=function(){t(i.width,i.height)},i.src=e}},m.prototype.clipContainer=function(){if(!p){var e=this,t=e.image.$container.getBoundingClientRect(),i=t.width,r=t.height;if(!e.$clipStyles){e.$clipStyles=document.createElement("style"),e.$clipStyles.setAttribute("type","text/css"),e.$clipStyles.setAttribute("id","#jarallax-clip-"+e.instanceID);(document.head||document.getElementsByTagName("head")[0]).appendChild(e.$clipStyles)}var n=["#jarallax-container-"+e.instanceID+" {","   clip: rect(0 "+i+"px "+r+"px 0);","   clip: rect(0, "+i+"px, "+r+"px, 0);","}"].join("\n");e.$clipStyles.styleSheet?e.$clipStyles.styleSheet.cssText=n:e.$clipStyles.innerHTML=n}},m.prototype.coverImage=function(){var e=this;if(e.image.width&&e.image.height){var t=e.image.$container.getBoundingClientRect(),i=t.width,r=t.height,n=t.left,s=e.image.width,l=e.image.height,u=e.options.speed,c="scroll"===e.options.type||"scroll-opacity"===e.options.type,d=0,h=0,p=r,f=0,m=0;c&&(d=u<0?u*Math.max(r,o):u*(r+o),u>1?p=Math.abs(d-o):u<0?p=d/u+Math.abs(d):p+=Math.abs(o-r)*(1-u),d/=2),h=p*s/l,h<i&&(h=i,p=h*l/s),e.bgPosVerticalCenter=0,!(c&&p<o)||a&&e.options.enableTransform||(e.bgPosVerticalCenter=(o-p)/2,p=o),c?(f=n+(i-h)/2,m=(o-p)/2):(f=(i-h)/2,m=(r-p)/2),a&&e.options.enableTransform&&e.parentWithTransform&&(f-=n),e.parallaxScrollDistance=d,e.css(e.image.$item,{width:h+"px",height:p+"px",marginLeft:f+"px",marginTop:m+"px"}),e.options.onCoverImage&&e.options.onCoverImage.call(e)}},m.prototype.isVisible=function(){return this.isElementInViewport||!1},m.prototype.onScroll=function(e){var t=this;if(t.image.width&&t.image.height){var i=t.$item.getBoundingClientRect(),r=i.top,s=i.height,l={position:"absolute",visibility:"visible",backgroundPosition:"50% 50%"},u=i;if(t.options.elementInViewport&&(u=t.options.elementInViewport.getBoundingClientRect()),t.isElementInViewport=u.bottom>=0&&u.right>=0&&u.top<=o&&u.left<=n,e||t.isElementInViewport){var c=Math.max(0,r),d=Math.max(0,s+r),h=Math.max(0,-r),f=Math.max(0,r+s-o),m=Math.max(0,s-(r+s-o)),g=Math.max(0,-r+o-s),v=1-2*(o-r)/(o+s),y=1;if(s<o?y=1-(h||f)/s:d<=o?y=d/o:m<=o&&(y=m/o),"opacity"!==t.options.type&&"scale-opacity"!==t.options.type&&"scroll-opacity"!==t.options.type||(l.transform="translate3d(0, 0, 0)",l.opacity=y),"scale"===t.options.type||"scale-opacity"===t.options.type){var b=1;t.options.speed<0?b-=t.options.speed*y:b+=t.options.speed*(1-y),l.transform="scale("+b+") translate3d(0, 0, 0)"}if("scroll"===t.options.type||"scroll-opacity"===t.options.type){var w=t.parallaxScrollDistance*v;a&&t.options.enableTransform?(t.parentWithTransform&&(w-=r),l.transform="translate3d(0, "+w+"px, 0)"):t.image.useImgTag?l.top=w+"px":(t.bgPosVerticalCenter&&(w+=t.bgPosVerticalCenter),l.backgroundPosition="50% "+w+"px"),l.position=p?"absolute":"fixed"}t.css(t.image.$item,l),t.options.onScroll&&t.options.onScroll.call(t,{section:i,beforeTop:c,beforeTopEnd:d,afterTop:h,beforeBottom:f,beforeBottomEnd:m,afterBottom:g,visiblePercent:y,fromViewportCenter:v})}}},i(e,"scroll",r),i(e,"resize",r),i(e,"orientationchange",r),i(e,"load",r);var g=function(e){("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)&&(e=[e]);var t,i=arguments[1],r=Array.prototype.slice.call(arguments,2),n=e.length,o=0;for(o;o<n;o++)if("object"==typeof i||void 0===i?e[o].jarallax||(e[o].jarallax=new m(e[o],i)):e[o].jarallax&&(t=e[o].jarallax[i].apply(e[o].jarallax,r)),void 0!==t)return t;return e};g.constructor=m;var v=e.jarallax;if(e.jarallax=g,e.jarallax.noConflict=function(){return e.jarallax=v,this},"undefined"!=typeof jQuery){var y=function(){var t=arguments||[];Array.prototype.unshift.call(t,this);var i=g.apply(e,t);return"object"!=typeof i?i:this};y.constructor=m;var b=jQuery.fn.jarallax;jQuery.fn.jarallax=y,jQuery.fn.jarallax.noConflict=function(){return jQuery.fn.jarallax=b,this}}i(e,"DOMContentLoaded",function(){g(document.querySelectorAll("[data-jarallax], [data-jarallax-video]"))})}(window),function(e){e.fn.viewportChecker=function(t){var i={classToAdd:"visible",classToRemove:"invisible",classToAddForFullView:"full-visible",removeClassAfterAnimation:!1,offset:100,repeat:!1,invertBottomOffset:!0,callbackFunction:function(e,t){},scrollHorizontal:!1,scrollBox:window};e.extend(i,t);var r=this,n={height:e(i.scrollBox).height(),width:e(i.scrollBox).width()},o=-1!=navigator.userAgent.toLowerCase().indexOf("webkit")||-1!=navigator.userAgent.toLowerCase().indexOf("windows phone")?"body":"html";return this.checkElements=function(){var t,a;i.scrollHorizontal?(t=e(o).scrollLeft(),a=t+n.width):(t=e(o).scrollTop(),a=t+n.height),r.each(function(){var r=e(this),o={},s={};if(r.data("vp-add-class")&&(s.classToAdd=r.data("vp-add-class")),r.data("vp-remove-class")&&(s.classToRemove=r.data("vp-remove-class")),r.data("vp-add-class-full-view")&&(s.classToAddForFullView=r.data("vp-add-class-full-view")),r.data("vp-keep-add-class")&&(s.removeClassAfterAnimation=r.data("vp-remove-after-animation")),r.data("vp-offset")&&(s.offset=r.data("vp-offset")),r.data("vp-repeat")&&(s.repeat=r.data("vp-repeat")),r.data("vp-scrollHorizontal")&&(s.scrollHorizontal=r.data("vp-scrollHorizontal")),r.data("vp-invertBottomOffset")&&(s.scrollHorizontal=r.data("vp-invertBottomOffset")),e.extend(o,i),e.extend(o,s),!r.data("vp-animated")||o.repeat){String(o.offset).indexOf("%")>0&&(o.offset=parseInt(o.offset)/100*n.height);var l=o.scrollHorizontal?r.offset().left:r.offset().top,u=o.scrollHorizontal?l+r.width():l+r.height(),c=Math.round(l)+o.offset,d=o.scrollHorizontal?c+r.width():c+r.height();o.invertBottomOffset&&(d-=2*o.offset),c<a&&d>t?(r.removeClass(o.classToRemove),r.addClass(o.classToAdd),o.callbackFunction(r,"add"),u<=a&&l>=t?r.addClass(o.classToAddForFullView):r.removeClass(o.classToAddForFullView),r.data("vp-animated",!0),o.removeClassAfterAnimation&&r.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){r.removeClass(o.classToAdd)})):r.hasClass(o.classToAdd)&&o.repeat&&(r.removeClass(o.classToAdd+" "+o.classToAddForFullView),o.callbackFunction(r,"remove"),r.data("vp-animated",!1))}})},("ontouchstart"in window||"onmsgesturechange"in window)&&e(document).bind("touchmove MSPointerMove pointermove",this.checkElements),e(i.scrollBox).bind("load scroll",this.checkElements),e(window).resize(function(t){n={height:e(i.scrollBox).height(),width:e(i.scrollBox).width()},r.checkElements()}),this.checkElements(),this}}(jQuery),function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(e){"use strict";function t(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=u),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=e.extend({},e.fn.swipe.defaults,t),this.each(function(){var r=e(this),n=r.data(j);n||(n=new i(this,t),r.data(j,n))})}function i(t,i){function S(t){if(!(ue()||e(t.target).closest(i.excludedElements,Ue).length>0)){var r=t.originalEvent?t.originalEvent:t;if(!r.pointerType||"mouse"!=r.pointerType||0!=i.fallbackToMouseEvents){var n,o=r.touches,a=o?o[0]:r;return ze=w,o?$e=o.length:!1!==i.preventDefaultEvents&&t.preventDefault(),De=0,Ye=null,Le=null,He=null,Fe=0,Me=0,Ve=0,Ne=1,Re=0,We=ge(),se(),de(0,a),!o||$e===i.fingers||i.fingers===y||H()?(Xe=xe(),2==$e&&(de(1,o[1]),Me=Ve=be(Ge[0].start,Ge[1].start)),(i.swipeStatus||i.pinchStatus)&&(n=D(r,ze))):n=!1,!1===n?(ze=_,D(r,ze),n):(i.hold&&(tt=setTimeout(e.proxy(function(){Ue.trigger("hold",[r.target]),i.hold&&(n=i.hold.call(Ue,r,r.target))},this),i.longTapThreshold)),ce(!0),null)}}}function A(e){var t=e.originalEvent?e.originalEvent:e;if(ze!==C&&ze!==_&&!le()){var r,n=t.touches,o=n?n[0]:t,a=he(o);if(qe=xe(),n&&($e=n.length),i.hold&&clearTimeout(tt),ze=T,2==$e&&(0==Me?(de(1,n[1]),Me=Ve=be(Ge[0].start,Ge[1].start)):(he(n[1]),Ve=be(Ge[0].end,Ge[1].end),He=Te(Ge[0].end,Ge[1].end)),Ne=we(Me,Ve),Re=Math.abs(Me-Ve)),$e===i.fingers||i.fingers===y||!n||H()){if(Ye=Pe(a.start,a.end),Le=Pe(a.last,a.end),N(e,Le),De=Ce(a.start,a.end),Fe=ye(),fe(Ye,De),r=D(t,ze),!i.triggerOnTouchEnd||i.triggerOnTouchLeave){var s=!0;if(i.triggerOnTouchLeave){var l=Ee(this);s=je(a.end,l)}!i.triggerOnTouchEnd&&s?ze=Q(T):i.triggerOnTouchLeave&&!s&&(ze=Q(C)),ze!=_&&ze!=C||D(t,ze)}}else ze=_,D(t,ze);!1===r&&(ze=_,D(t,ze))}}function O(e){var t=e.originalEvent?e.originalEvent:e,r=t.touches;if(r){if(r.length&&!le())return ae(t),!0;if(r.length&&le())return!0}return le()&&($e=Ze),qe=xe(),Fe=ye(),F()||!L()?(ze=_,D(t,ze)):i.triggerOnTouchEnd||!1===i.triggerOnTouchEnd&&ze===T?(!1!==i.preventDefaultEvents&&e.preventDefault(),ze=C,D(t,ze)):!i.triggerOnTouchEnd&&q()?(ze=C,Y(t,ze,p)):ze===T&&(ze=_,D(t,ze)),ce(!1),null}function k(){$e=0,qe=0,Xe=0,Me=0,Ve=0,Ne=1,se(),ce(!1)}function B(e){var t=e.originalEvent?e.originalEvent:e;i.triggerOnTouchLeave&&(ze=Q(C),D(t,ze))}function I(){Ue.unbind(Oe,S),Ue.unbind(Qe,k),Ue.unbind(ke,A),Ue.unbind(Be,O),Ie&&Ue.unbind(Ie,B),ce(!1)}function Q(e){var t=e,r=V(),n=L(),o=F()
  ;return!r||o?t=_:!n||e!=T||i.triggerOnTouchEnd&&!i.triggerOnTouchLeave?!n&&e==C&&i.triggerOnTouchLeave&&(t=_):t=C,t}function D(e,t){var i,r=e.touches;return($()||z())&&(i=Y(e,t,d)),(W()||H())&&!1!==i&&(i=Y(e,t,h)),ne()&&!1!==i?i=Y(e,t,f):oe()&&!1!==i?i=Y(e,t,m):re()&&!1!==i&&(i=Y(e,t,p)),t===_&&k(e),t===C&&(r?r.length||k(e):k(e)),i}function Y(t,u,c){var g;if(c==d){if(Ue.trigger("swipeStatus",[u,Ye||null,De||0,Fe||0,$e,Ge,Le]),i.swipeStatus&&!1===(g=i.swipeStatus.call(Ue,t,u,Ye||null,De||0,Fe||0,$e,Ge,Le)))return!1;if(u==C&&U()){if(clearTimeout(et),clearTimeout(tt),Ue.trigger("swipe",[Ye,De,Fe,$e,Ge,Le]),i.swipe&&!1===(g=i.swipe.call(Ue,t,Ye,De,Fe,$e,Ge,Le)))return!1;switch(Ye){case r:Ue.trigger("swipeLeft",[Ye,De,Fe,$e,Ge,Le]),i.swipeLeft&&(g=i.swipeLeft.call(Ue,t,Ye,De,Fe,$e,Ge,Le));break;case n:Ue.trigger("swipeRight",[Ye,De,Fe,$e,Ge,Le]),i.swipeRight&&(g=i.swipeRight.call(Ue,t,Ye,De,Fe,$e,Ge,Le));break;case o:Ue.trigger("swipeUp",[Ye,De,Fe,$e,Ge,Le]),i.swipeUp&&(g=i.swipeUp.call(Ue,t,Ye,De,Fe,$e,Ge,Le));break;case a:Ue.trigger("swipeDown",[Ye,De,Fe,$e,Ge,Le]),i.swipeDown&&(g=i.swipeDown.call(Ue,t,Ye,De,Fe,$e,Ge,Le))}}}if(c==h){if(Ue.trigger("pinchStatus",[u,He||null,Re||0,Fe||0,$e,Ne,Ge]),i.pinchStatus&&!1===(g=i.pinchStatus.call(Ue,t,u,He||null,Re||0,Fe||0,$e,Ne,Ge)))return!1;if(u==C&&R())switch(He){case s:Ue.trigger("pinchIn",[He||null,Re||0,Fe||0,$e,Ne,Ge]),i.pinchIn&&(g=i.pinchIn.call(Ue,t,He||null,Re||0,Fe||0,$e,Ne,Ge));break;case l:Ue.trigger("pinchOut",[He||null,Re||0,Fe||0,$e,Ne,Ge]),i.pinchOut&&(g=i.pinchOut.call(Ue,t,He||null,Re||0,Fe||0,$e,Ne,Ge))}}return c==p?u!==_&&u!==C||(clearTimeout(et),clearTimeout(tt),K()&&!ee()?(Je=xe(),et=setTimeout(e.proxy(function(){Je=null,Ue.trigger("tap",[t.target]),i.tap&&(g=i.tap.call(Ue,t,t.target))},this),i.doubleTapThreshold)):(Je=null,Ue.trigger("tap",[t.target]),i.tap&&(g=i.tap.call(Ue,t,t.target)))):c==f?u!==_&&u!==C||(clearTimeout(et),clearTimeout(tt),Je=null,Ue.trigger("doubletap",[t.target]),i.doubleTap&&(g=i.doubleTap.call(Ue,t,t.target))):c==m&&(u!==_&&u!==C||(clearTimeout(et),Je=null,Ue.trigger("longtap",[t.target]),i.longTap&&(g=i.longTap.call(Ue,t,t.target)))),g}function L(){var e=!0;return null!==i.threshold&&(e=De>=i.threshold),e}function F(){var e=!1;return null!==i.cancelThreshold&&null!==Ye&&(e=me(Ye)-De>=i.cancelThreshold),e}function M(){return null===i.pinchThreshold||Re>=i.pinchThreshold}function V(){return!i.maxTimeThreshold||!(Fe>=i.maxTimeThreshold)}function N(e,t){if(!1!==i.preventDefaultEvents)if(i.allowPageScroll===u)e.preventDefault();else{var s=i.allowPageScroll===c;switch(t){case r:(i.swipeLeft&&s||!s&&i.allowPageScroll!=g)&&e.preventDefault();break;case n:(i.swipeRight&&s||!s&&i.allowPageScroll!=g)&&e.preventDefault();break;case o:(i.swipeUp&&s||!s&&i.allowPageScroll!=v)&&e.preventDefault();break;case a:(i.swipeDown&&s||!s&&i.allowPageScroll!=v)&&e.preventDefault()}}}function R(){var e=G(),t=X(),i=M();return e&&t&&i}function H(){return!!(i.pinchStatus||i.pinchIn||i.pinchOut)}function W(){return!(!R()||!H())}function U(){var e=V(),t=L(),i=G(),r=X();return!F()&&r&&i&&t&&e}function z(){return!!(i.swipe||i.swipeStatus||i.swipeLeft||i.swipeRight||i.swipeUp||i.swipeDown)}function $(){return!(!U()||!z())}function G(){return $e===i.fingers||i.fingers===y||!P}function X(){return 0!==Ge[0].end.x}function q(){return!!i.tap}function K(){return!!i.doubleTap}function Z(){return!!i.longTap}function J(){if(null==Je)return!1;var e=xe();return K()&&e-Je<=i.doubleTapThreshold}function ee(){return J()}function te(){return(1===$e||!P)&&(isNaN(De)||De<i.threshold)}function ie(){return Fe>i.longTapThreshold&&b>De}function re(){return!(!te()||!q())}function ne(){return!(!J()||!K())}function oe(){return!(!ie()||!Z())}function ae(e){Ke=xe(),Ze=e.touches.length+1}function se(){Ke=0,Ze=0}function le(){var e=!1;if(Ke){xe()-Ke<=i.fingerReleaseThreshold&&(e=!0)}return e}function ue(){return!(!0!==Ue.data(j+"_intouch"))}function ce(e){Ue&&(!0===e?(Ue.bind(ke,A),Ue.bind(Be,O),Ie&&Ue.bind(Ie,B)):(Ue.unbind(ke,A,!1),Ue.unbind(Be,O,!1),Ie&&Ue.unbind(Ie,B,!1)),Ue.data(j+"_intouch",!0===e))}function de(e,t){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=t.pageX||t.clientX,i.start.y=i.last.y=i.end.y=t.pageY||t.clientY,Ge[e]=i,i}function he(e){var t=void 0!==e.identifier?e.identifier:0,i=pe(t);return null===i&&(i=de(t,e)),i.last.x=i.end.x,i.last.y=i.end.y,i.end.x=e.pageX||e.clientX,i.end.y=e.pageY||e.clientY,i}function pe(e){return Ge[e]||null}function fe(e,t){e!=u&&(t=Math.max(t,me(e)),We[e].distance=t)}function me(e){return We[e]?We[e].distance:void 0}function ge(){var e={};return e[r]=ve(r),e[n]=ve(n),e[o]=ve(o),e[a]=ve(a),e}function ve(e){return{direction:e,distance:0}}function ye(){return qe-Xe}function be(e,t){var i=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function we(e,t){return(t/e*1).toFixed(2)}function Te(){return 1>Ne?l:s}function Ce(e,t){return Math.round(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)))}function _e(e,t){var i=e.x-t.x,r=t.y-e.y,n=Math.atan2(r,i),o=Math.round(180*n/Math.PI);return 0>o&&(o=360-Math.abs(o)),o}function Pe(e,t){if(Se(e,t))return u;var i=_e(e,t);return 45>=i&&i>=0?r:360>=i&&i>=315?r:i>=135&&225>=i?n:i>45&&135>i?a:o}function xe(){return(new Date).getTime()}function Ee(t){t=e(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function je(e,t){return e.x>t.left&&e.x<t.right&&e.y>t.top&&e.y<t.bottom}function Se(e,t){return e.x==t.x&&e.y==t.y}var i=e.extend({},i),Ae=P||E||!i.fallbackToMouseEvents,Oe=Ae?E?x?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ke=Ae?E?x?"MSPointerMove":"pointermove":"touchmove":"mousemove",Be=Ae?E?x?"MSPointerUp":"pointerup":"touchend":"mouseup",Ie=Ae?E?"mouseleave":null:"mouseleave",Qe=E?x?"MSPointerCancel":"pointercancel":"touchcancel",De=0,Ye=null,Le=null,Fe=0,Me=0,Ve=0,Ne=1,Re=0,He=0,We=null,Ue=e(t),ze="start",$e=0,Ge={},Xe=0,qe=0,Ke=0,Ze=0,Je=0,et=null,tt=null;try{Ue.bind(Oe,S),Ue.bind(Qe,k)}catch(t){e.error("events not supported "+Oe+","+Qe+" on jQuery.swipe")}this.enable=function(){return this.disable(),Ue.bind(Oe,S),Ue.bind(Qe,k),Ue},this.disable=function(){return I(),Ue},this.destroy=function(){I(),Ue.data(j,null),Ue=null},this.option=function(t,r){if("object"==typeof t)i=e.extend(i,t);else if(void 0!==i[t]){if(void 0===r)return i[t];i[t]=r}else{if(!t)return i;e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var r="left",n="right",o="up",a="down",s="in",l="out",u="none",c="auto",d="swipe",h="pinch",p="tap",f="doubletap",m="longtap",g="horizontal",v="vertical",y="all",b=10,w="start",T="move",C="end",_="cancel",P="ontouchstart"in window,x=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!P,E=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!P,j="TouchSwipe",S={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};e.fn.swipe=function(i){var r=e(this),n=r.data(j);if(n&&"string"==typeof i){if(n[i])return n[i].apply(n,Array.prototype.slice.call(arguments,1));e.error("Method "+i+" does not exist on jQuery.swipe")}else if(n&&"object"==typeof i)n.option.apply(n,arguments);else if(!(n||"object"!=typeof i&&i))return t.apply(this,arguments);return r},e.fn.swipe.version="1.6.18",e.fn.swipe.defaults=S,e.fn.swipe.phases={PHASE_START:w,PHASE_MOVE:T,PHASE_END:C,PHASE_CANCEL:_},e.fn.swipe.directions={LEFT:r,RIGHT:n,UP:o,DOWN:a,IN:s,OUT:l},e.fn.swipe.pageScroll={NONE:u,HORIZONTAL:g,VERTICAL:v,AUTO:c},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:y}});var get_vimeo_videoID=function(e){return e.indexOf("vimeo.com")>0?e.substr(e.lastIndexOf("/")+1,e.length):e.length>15?null:e};!function($){jQuery.vimeo_player={name:"jquery.mb.vimeo_player",author:"Matteo Bicocchi (pupunzi)",version:"1.0.6",build:"373",defaults:{containment:"body",ratio:"16/9",videoURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:50,addRaster:!1,opacity:1,mute:!1,loop:!0,showControls:!0,show_vimeo_logo:!0,stopMovieOnBlur:!0,realfullscreen:!0,mobileFallbackImage:null,gaTrack:!0,optimizeDisplay:!0,mask:!1,align:"center,center",onReady:function(e){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",fullscreen:"O",showSite:"R",logo:"V"},buildPlayer:function(options){var isIframe=function(){var e=!1;try{self.location.href!=top.location.href&&(e=!0)}catch(t){e=!0}return e},script=document.createElement("script");return script.src="https://player.vimeo.com/api/player.js",script.onload=function(){jQuery(document).trigger("vimeo_api_loaded")},document.head.appendChild(script),this.each(function(){var vimeo_player=this,$vimeo_player=jQuery(vimeo_player);vimeo_player.loop=0,vimeo_player.opt={},vimeo_player.state={},vimeo_player.id=vimeo_player.id||"YTP_"+(new Date).getTime(),$vimeo_player.addClass("vimeo_player");var property=$vimeo_player.data("property")&&"string"==typeof $vimeo_player.data("property")?eval("("+$vimeo_player.data("property")+")"):$vimeo_player.data("property");if(jQuery.extend(vimeo_player.opt,jQuery.vimeo_player.defaults,options,property),vimeo_player.opt.ratio="auto"==vimeo_player.opt.ratio?"16/9":vimeo_player.opt.ratio,eval(vimeo_player.opt.loop)&&(vimeo_player.opt.loop=9999),vimeo_player.isRetina=window.retina||window.devicePixelRatio>1,vimeo_player.canGoFullScreen=!(jQuery.browser.msie||jQuery.browser.opera||isIframe()),vimeo_player.canGoFullScreen||(vimeo_player.opt.realfullscreen=!1),vimeo_player.isAlone=!1,vimeo_player.hasFocus=!0,vimeo_player.videoID=this.opt.videoURL?get_vimeo_videoID(this.opt.videoURL):!!$vimeo_player.attr("href")&&get_vimeo_videoID($vimeo_player.attr("href")),vimeo_player.isSelf="self"==vimeo_player.opt.containment,vimeo_player.opt.containment="self"==vimeo_player.opt.containment?jQuery(this):jQuery(vimeo_player.opt.containment),vimeo_player.isBackground=vimeo_player.opt.containment.is("body"),!vimeo_player.isBackground||!vimeo_player.backgroundIsInited){vimeo_player.canPlayOnMobile=vimeo_player.isSelf&&0===jQuery(this).children().length,vimeo_player.isSelf||$vimeo_player.hide();var overlay=jQuery("<div/>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("vimeo_player_overlay");vimeo_player.isSelf;var playerID="vimeo_player_"+vimeo_player.id,wrapper=jQuery("<div/>").addClass("vimeo_player_wrapper").attr("id","vimeo_player_wrapper_"+playerID);if(wrapper.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0}),vimeo_player.playerBox=jQuery("<iframe/>").attr("id",playerID).addClass("playerBox"),vimeo_player.playerBox.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:-10,frameBorder:0,overflow:"hidden",left:0}).attr({src:"https://player.vimeo.com/video/"+vimeo_player.videoID+"?background=1&autopause=0"}),jQuery.browser.mobile&&!vimeo_player.canPlayOnMobile)return vimeo_player.opt.mobileFallbackImage&&wrapper.css({backgroundImage:"url("+vimeo_player.opt.mobileFallbackImage+")",backgroundPosition:"center center",backgroundSize:"cover",backgroundRepeat:"no-repeat",opacity:1}),void $vimeo_player.remove();wrapper.append(vimeo_player.playerBox),vimeo_player.opt.containment.children().not("script, style").each(function(){"static"==jQuery(this).css("position")&&jQuery(this).css("position","relative")}),vimeo_player.isBackground?(jQuery("body").css({boxSizing:"border-box"}),wrapper.css({position:"fixed",top:0,left:0,zIndex:0})):"static"==vimeo_player.opt.containment.css("position")&&vimeo_player.opt.containment.css({position:"relative"}),vimeo_player.opt.containment.prepend(wrapper),vimeo_player.wrapper=wrapper,vimeo_player.playerBox.css({opacity:1}),jQuery.browser.mobile||(vimeo_player.playerBox.after(overlay),vimeo_player.overlay=overlay),vimeo_player.isBackground||overlay.on("mouseenter",function(){vimeo_player.controlBar&&vimeo_player.controlBar.length&&vimeo_player.controlBar.addClass("visible")}).on("mouseleave",function(){vimeo_player.controlBar&&vimeo_player.controlBar.length&&vimeo_player.controlBar.removeClass("visible")}),jQuery(document).on("vimeo_api_loaded",function(){vimeo_player.player=new Vimeo.Player(playerID,options),vimeo_player.player.ready().then(function(){function start(){vimeo_player.isReady=!0,vimeo_player.opt.mute&&setTimeout(function(){$vimeo_player.v_mute()},1e3),vimeo_player.opt.showControls&&jQuery.vimeo_player.buildControls(vimeo_player),vimeo_player.opt.autoPlay?setTimeout(function(){$vimeo_player.v_play(),setTimeout(function(){VEvent=jQuery.Event("VPStart"),$vimeo_player.trigger(VEvent)},1500)},100):$vimeo_player.v_pause(),VEvent=jQuery.Event("VPReady"),$vimeo_player.trigger(VEvent)}var VEvent;vimeo_player.opt.startAt?(vimeo_player.player.play().then(function(){vimeo_player.player.pause()}),$vimeo_player.v_seekTo(vimeo_player.opt.startAt,function(){start()})):start(),$vimeo_player.v_optimize_display(),jQuery(window).off("resize.vimeo_player_"+vimeo_player.id).on("resize.vimeo_player_"+vimeo_player.id,function(){$vimeo_player.v_optimize_display()}),vimeo_player.player.on("progress",function(e){}),vimeo_player.player.on("error",function(e){vimeo_player.state=-1,VEvent=jQuery.Event("VPError"),VEvent.error=e,$vimeo_player.trigger(VEvent)}),vimeo_player.player.on("play",function(data){vimeo_player.state=1,$vimeo_player.trigger("change_state"),vimeo_player.controlBar&&vimeo_player.controlBar.length&&vimeo_player.controlBar.find(".vimeo_player_pause").html(jQuery.vimeo_player.controls.pause),"undefined"!=typeof _gaq&&eval(vimeo_player.opt.gaTrack)&&_gaq.push(["_trackEvent","vimeo_player","Play",vimeo_player.videoID]),"undefined"!=typeof ga&&eval(vimeo_player.opt.gaTrack)&&ga("send","event","vimeo_player","play",vimeo_player.videoID),VEvent=jQuery.Event("VPPlay"),VEvent.error=data,$vimeo_player.trigger(VEvent)}),vimeo_player.player.on("pause",function(e){vimeo_player.state=2,$vimeo_player.trigger("change_state"),vimeo_player.controlBar&&vimeo_player.controlBar.length&&vimeo_player.controlBar.find(".vimeo_player_pause").html(jQuery.vimeo_player.controls.play),VEvent=jQuery.Event("VPPause"),VEvent.time=e,$vimeo_player.trigger(VEvent)}),vimeo_player.player.on("seeked",function(e){vimeo_player.state=3,$vimeo_player.trigger("change_state")}),vimeo_player.player.on("ended",function(e){vimeo_player.state=0,$vimeo_player.trigger("change_state"),VEvent=jQuery.Event("VPEnd"),VEvent.time=e,$vimeo_player.trigger(VEvent)}),vimeo_player.player.on("timeupdate",function(e){if(vimeo_player.duration=e.duration,vimeo_player.percent=e.percent,vimeo_player.seconds=e.seconds,vimeo_player.state=1,vimeo_player.player.getPaused().then(function(e){e&&(vimeo_player.state=2)}),vimeo_player.opt.stopMovieOnBlur&&(document.hasFocus()||1==vimeo_player.state&&(vimeo_player.hasFocus=!1,$vimeo_player.v_pause(),vimeo_player.document_focus=setInterval(function(){document.hasFocus()&&!vimeo_player.hasFocus&&(vimeo_player.hasFocus=!0,$vimeo_player.v_play(),clearInterval(vimeo_player.document_focus))},300))),vimeo_player.opt.showControls){var t=jQuery("#controlBar_"+vimeo_player.id),i=t.find(".vimeo_player_pogress"),r=t.find(".vimeo_player_loaded"),n=t.find(".vimeo_player_seek_bar"),o=i.outerWidth(),a=Math.floor(e.seconds),s=Math.floor(e.duration),l=a*o/s,u=100*e.percent;r.css({left:0,width:u+"%"}),n.css({left:0,width:l}),e.duration?vimeo_player.controlBar.find(".vimeo_player_time").html(jQuery.vimeo_player.formatTime(e.seconds)+" / "+jQuery.vimeo_player.formatTime(e.duration)):vimeo_player.controlBar.find(".vimeo_player_time").html("-- : -- / -- : --")}if(vimeo_player.opt.addRaster){var c="dot"==vimeo_player.opt.addRaster?"raster-dot":"raster";vimeo_player.overlay.addClass(vimeo_player.isRetina?c+" retina":c)}else vimeo_player.overlay.removeClass(function(e,t){var i=t.split(" "),r=[];return jQuery.each(i,function(e,t){/raster.*/.test(t)&&r.push(t)}),r.push("retina"),r.join(" ")});vimeo_player.opt.stopAt=vimeo_player.opt.stopAt>e.duration?e.duration-.6:vimeo_player.opt.stopAt;var d=vimeo_player.opt.stopAt||e.duration-.6;e.seconds>=d&&(vimeo_player.loop=vimeo_player.loop||0,vimeo_player.opt.loop&&vimeo_player.loop<vimeo_player.opt.loop?($vimeo_player.v_seekTo(vimeo_player.opt.startAt),vimeo_player.loop++):($vimeo_player.v_pause(),vimeo_player.state=0,$vimeo_player.trigger("change_state"))),VEvent=jQuery.Event("VPTime"),VEvent.time=e.seconds,$vimeo_player.trigger(VEvent)})}),$vimeo_player.on("change_state",function(){0==vimeo_player.state&&vimeo_player.wrapper.fadeOut(500,function(){$vimeo_player.v_seekTo(0)})})})}})},formatTime:function(e){var t=Math.floor(e/60),i=Math.floor(e-60*t);return(t<=9?"0"+t:t)+" : "+(i<=9?"0"+i:i)},play:function(){var e=this.get(0);if(!e.isReady)return this;e.player.play(),setTimeout(function(){e.wrapper.fadeTo(1e3,e.opt.opacity)},1e3);var t=jQuery("#controlBar_"+e.id);if(t.length){t.find(".mb_YTPPvimeo_player_playpause").html(jQuery.vimeo_player.controls.pause)}return e.state=1,jQuery(e).css("background-image","none"),this},togglePlay:function(e){var t=this.get(0);return 1==t.state?this.v_pause():this.v_play(),"function"==typeof e&&e(t.state),this},pause:function(){var e=this.get(0);return e.player.pause(),e.state=2,this},seekTo:function(e,t){var i=this.get(0),r=i.opt.stopAt&&e>=i.opt.stopAt?i.opt.stopAt-.5:e;return i.player.setCurrentTime(r).then(function(e){"function"==typeof t&&t(e)}),this},setVolume:function(e){var t=this.get(0);return e||t.opt.vol||!t.isMute?!e&&!t.isMute||e&&t.opt.vol==e?t.isMute?jQuery(t).v_mute():jQuery(t).v_unmute():(t.opt.vol=e,t.player.setVolume(t.opt.vol),t.volumeBar&&t.volumeBar.length&&t.volumeBar.updateSliderVal(100*e)):jQuery(t).v_unmute(),this},toggleVolume:function(){var e=this.get(0);if(e)return e.isMute?(jQuery(e).v_unmute(),!0):(jQuery(e).v_mute(),!1)},mute:function(){var e=this.get(0);if(!e.isMute){e.isMute=!0,e.player.setVolume(0),e.volumeBar&&e.volumeBar.length&&e.volumeBar.width()>10&&e.volumeBar.updateSliderVal(0);return jQuery("#controlBar_"+e.id).find(".vimeo_player_muteUnmute").html(jQuery.vimeo_player.controls.unmute),jQuery(e).addClass("isMuted"),e.volumeBar&&e.volumeBar.length&&e.volumeBar.addClass("muted"),this}},unmute:function(){var e=this.get(0);if(e.isMute){e.isMute=!1,jQuery(e).v_set_volume(e.opt.vol),e.volumeBar&&e.volumeBar.length&&e.volumeBar.updateSliderVal(e.opt.vol>.1?e.opt.vol:.1);return jQuery("#controlBar_"+e.id).find(".vimeo_player_muteUnmute").html(jQuery.vimeo_player.controls.mute),jQuery(e).removeClass("isMuted"),e.volumeBar&&e.volumeBar.length&&e.volumeBar.removeClass("muted"),this}},changeMovie:function(e){var t=this.get(0);t.player.loadVideo(e.url).then(function(e){jQuery(t).v_setState()})},buildControls:function(vimeo_player){var data=vimeo_player.opt;if(!jQuery("#controlBar_"+vimeo_player.id).length){vimeo_player.controlBar=jQuery("<span/>").attr("id","controlBar_"+vimeo_player.id).addClass("vimeo_player_bar").css({whiteSpace:"noWrap",position:vimeo_player.isBackground?"fixed":"absolute",zIndex:vimeo_player.isBackground?1e4:1e3});var buttonBar=jQuery("<div/>").addClass("buttonBar"),playpause=jQuery("<span>"+jQuery.vimeo_player.controls.play+"</span>").addClass("vimeo_player_pause vimeo_icon").click(function(){1==vimeo_player.state?jQuery(vimeo_player).v_pause():jQuery(vimeo_player).v_play()}),MuteUnmute=jQuery("<span>"+jQuery.vimeo_player.controls.mute+"</span>").addClass("vimeo_player_muteUnmute vimeo_icon").click(function(){vimeo_player.isMute?jQuery(vimeo_player).v_unmute():jQuery(vimeo_player).v_mute()}),volumeBar=jQuery("<div/>").addClass("vimeo_player_volume_bar").css({display:"inline-block"});vimeo_player.volumeBar=volumeBar;var idx=jQuery("<span/>").addClass("vimeo_player_time"),vURL="https://vimeo.com/"+vimeo_player.videoID,movieUrl=jQuery("<span/>").html(jQuery.vimeo_player.controls.logo).addClass("vimeo_url vimeo_icon").attr("title","view on Vimeo").on("click",function(){window.open(vURL,"viewOnVimeo")}),fullscreen=jQuery("<span/>").html(jQuery.vimeo_player.controls.fullscreen).addClass("vimeo_fullscreen vimeo_icon").on("click",function(){jQuery(vimeo_player).v_fullscreen(data.realfullscreen)}),progressBar=jQuery("<div/>").addClass("vimeo_player_pogress").css("position","absolute").click(function(e){timeBar.css({width:e.clientX-timeBar.offset().left}),vimeo_player.timeW=e.clientX-timeBar.offset().left,vimeo_player.controlBar.find(".vimeo_player_loaded").css({width:0});var t=Math.floor(vimeo_player.duration);vimeo_player.goto=timeBar.outerWidth()*t/progressBar.outerWidth(),jQuery(vimeo_player).v_seekTo(parseFloat(vimeo_player.goto)),vimeo_player.controlBar.find(".vimeo_player_loaded").css({width:0})}),loadedBar=jQuery("<div/>").addClass("vimeo_player_loaded").css("position","absolute"),timeBar=jQuery("<div/>").addClass("vimeo_player_seek_bar").css("position","absolute");progressBar.append(loadedBar).append(timeBar),buttonBar.append(playpause).append(MuteUnmute).append(volumeBar).append(idx),data.show_vimeo_logo&&buttonBar.append(movieUrl),(vimeo_player.isBackground||eval(vimeo_player.opt.realfullscreen)&&!vimeo_player.isBackground)&&buttonBar.append(fullscreen),vimeo_player.controlBar.append(buttonBar).append(progressBar),vimeo_player.isBackground?jQuery("body").after(vimeo_player.controlBar):vimeo_player.wrapper.before(vimeo_player.controlBar),volumeBar.simpleSlider({initialval:vimeo_player.opt.vol,scale:100,orientation:"h",callback:function(e){0==e.value?jQuery(vimeo_player).v_mute():jQuery(vimeo_player).v_unmute(),vimeo_player.player.setVolume(e.value/100),vimeo_player.isMute||(vimeo_player.opt.vol=e.value)}})}},optimizeVimeoDisplay:function(e){var t=this.get(0),i={};t.opt.align=e||t.opt.align,t.opt.align="undefined "!=typeof t.opt.align?t.opt.align:"center,center";var r=t.opt.align.split(",");if(t.opt.optimizeDisplay){var n=t.isPlayer?0:80,o={},a=t.wrapper;o.width=a.outerWidth(),o.height=a.outerHeight()+n,i.width=o.width,i.height="16/9"==t.opt.ratio?Math.ceil(i.width*(9/16)):Math.ceil(.75*i.width),i.marginTop=-(i.height-o.height)/2,i.marginLeft=0;var s=i.height<o.height;s&&(i.height=o.height+n,i.width="16/9"==t.opt.ratio?Math.floor(i.height*(16/9)):Math.floor(i.height*(4/3)),i.marginTop=0,i.marginLeft=-(i.width-o.width)/2);for(var l in r)if(r.hasOwnProperty(l)){var u=r[l].replace(/ /g,"");switch(u){case"top":i.marginTop=s?-(i.height-o.height)/2:0;break;case"bottom":i.marginTop=s?0:-(i.height-o.height);break;case"left":i.marginLeft=0;break;case"right":i.marginLeft=s?-(i.width-o.width):0;break;default:i.width>o.width&&(i.marginLeft=-(i.width-o.width)/2)}}}else i.width="100%",i.height="100%",i.marginTop=0,i.marginLeft=0;t.playerBox.css({width:i.width,height:i.height,marginTop:i.marginTop,marginLeft:i.marginLeft,maxWidth:"initial"})},setAlign:function(e){this.v_optimize_display(e)},getAlign:function(){return this.get(0).opt.align},fullscreen:function(real){function hideMouse(){vimeo_player.overlay.css({cursor:"none"})}function RunPrefixMethod(e,t){for(var i,r,n=["webkit","moz","ms","o",""],o=0;o<n.length&&!e[i];){if(i=t,""==n[o]&&(i=i.substr(0,1).toLowerCase()+i.substr(1)),i=n[o]+i,"undefined"!=(r=typeof e[i]))return n=[n[o]],"function"==r?e[i]():e[i];o++}}function launchFullscreen(e){RunPrefixMethod(e,"RequestFullScreen")}function cancelFullscreen(){(RunPrefixMethod(document,"FullScreen")||RunPrefixMethod(document,"IsFullScreen"))&&RunPrefixMethod(document,"CancelFullScreen")}var vimeo_player=this.get(0),$vimeo_player=jQuery(vimeo_player),VEvent;void 0===real&&(real=vimeo_player.opt.realfullscreen),real=eval(real);var controls=jQuery("#controlBar_"+vimeo_player.id),fullScreenBtn=controls.find(".vimeo_fullscreen"),videoWrapper=vimeo_player.isSelf?vimeo_player.opt.containment:vimeo_player.wrapper;if(real){var fullscreenchange=jQuery.browser.mozilla?"mozfullscreenchange":jQuery.browser.webkit?"webkitfullscreenchange":"fullscreenchange";jQuery(document).off(fullscreenchange).on(fullscreenchange,function(){RunPrefixMethod(document,"IsFullScreen")||RunPrefixMethod(document,"FullScreen")?(VEvent=jQuery.Event("VPFullScreenStart"),$vimeo_player.trigger(VEvent)):(vimeo_player.isAlone=!1,fullScreenBtn.html(jQuery.vimeo_player.controls.fullscreen),videoWrapper.removeClass("vimeo_player_Fullscreen"),videoWrapper.fadeTo(500,vimeo_player.opt.opacity),videoWrapper.css({zIndex:0}),vimeo_player.isBackground?jQuery("body").after(controls):vimeo_player.wrapper.before(controls),jQuery(window).resize(),VEvent=jQuery.Event("VPFullScreenEnd"),$vimeo_player.trigger(VEvent))})}return vimeo_player.isAlone?(jQuery(document).off("mousemove.vimeo_player"),clearTimeout(vimeo_player.hideCursor),vimeo_player.overlay.css({cursor:"auto"}),real?cancelFullscreen():videoWrapper.fadeTo(1e3,vimeo_player.opt.opacity).css({zIndex:0}),fullScreenBtn.html(jQuery.vimeo_player.controls.fullscreen),vimeo_player.isAlone=!1):(jQuery(document).on("mousemove.vimeo_player",function(e){vimeo_player.overlay.css({cursor:"auto"}),clearTimeout(vimeo_player.hideCursor),jQuery(e.target).parents().is(".vimeo_player_bar")||(vimeo_player.hideCursor=setTimeout(hideMouse,3e3))}),hideMouse(),real?(videoWrapper.css({opacity:0}),videoWrapper.addClass("vimeo_player_Fullscreen"),launchFullscreen(videoWrapper.get(0)),setTimeout(function(){videoWrapper.fadeTo(1e3,1),vimeo_player.wrapper.append(controls),jQuery(vimeo_player).v_optimize_display()},500)):videoWrapper.css({zIndex:1e4}).fadeTo(1e3,1),fullScreenBtn.html(jQuery.vimeo_player.controls.showSite),vimeo_player.isAlone=!0),this}},jQuery.fn.vimeo_player=jQuery.vimeo_player.buildPlayer,jQuery.fn.v_play=jQuery.vimeo_player.play,jQuery.fn.v_toggle_play=jQuery.vimeo_player.togglePlay,jQuery.fn.v_change_movie=jQuery.vimeo_player.changeMovie,jQuery.fn.v_pause=jQuery.vimeo_player.pause,jQuery.fn.v_seekTo=jQuery.vimeo_player.seekTo,jQuery.fn.v_optimize_display=jQuery.vimeo_player.optimizeVimeoDisplay,jQuery.fn.v_set_align=jQuery.vimeo_player.setAlign,jQuery.fn.v_get_align=jQuery.vimeo_player.getAlign,jQuery.fn.v_fullscreen=jQuery.vimeo_player.fullscreen,jQuery.fn.v_mute=jQuery.vimeo_player.mute,jQuery.fn.v_unmute=jQuery.vimeo_player.unmute,jQuery.fn.v_set_volume=jQuery.vimeo_player.setVolume,jQuery.fn.v_toggle_volume=jQuery.vimeo_player.toggleVolume}(jQuery);var nAgt=navigator.userAgent;if(!jQuery.browser){var isTouchSupported=function(){var e=nAgt.msMaxTouchPoints,t="ontouchstart"in document.createElement("div");return!(!e&&!t)};jQuery.browser={},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.androidStock=!1,jQuery.browser.msie=!1,jQuery.browser.edge=!1,jQuery.browser.hasTouch=isTouchSupported(),jQuery.browser.ua=nAgt,jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10);var nameOffset,verOffset,ix;if(-1!=(verOffset=nAgt.indexOf("Opera")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8));else if(-1!=(verOffset=nAgt.indexOf("OPR")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4);else if(-1!=(verOffset=nAgt.indexOf("MSIE")))jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5);else if(-1!=nAgt.indexOf("Trident")){jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer";var start=nAgt.indexOf("rv:")+3,end=start+4;jQuery.browser.fullVersion=nAgt.substring(start,end)}else-1!=(verOffset=nAgt.indexOf("Edge"))?(jQuery.browser.edge=!0,jQuery.browser.name="Microsoft Edge",jQuery.browser.fullVersion=nAgt.substring(verOffset+5)):-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1<nAgt.indexOf("mozilla/5.0")&&-1<nAgt.indexOf("android ")&&-1<nAgt.indexOf("applewebkit")&&!(-1<nAgt.indexOf("chrome"))?(verOffset=nAgt.indexOf("Chrome"),jQuery.browser.webkit=!0,jQuery.browser.androidStock=!0,jQuery.browser.name="androidStock",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion}jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&765<jQuery(window).width(),jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt);var nAgt=navigator.userAgent;if(!jQuery.browser){jQuery.browser={},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.androidStock=!1,jQuery.browser.msie=!1,jQuery.browser.ua=nAgt,jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10);var nameOffset,verOffset,ix;if(-1!=(verOffset=nAgt.indexOf("Opera")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8));else if(-1!=(verOffset=nAgt.indexOf("OPR")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4);else if(-1!=(verOffset=nAgt.indexOf("MSIE")))jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5);else if(-1!=nAgt.indexOf("Trident")||-1!=nAgt.indexOf("Edge")){jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer"
  ;var start=nAgt.indexOf("rv:")+3,end=start+4;jQuery.browser.fullVersion=nAgt.substring(start,end)}else-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):nAgt.indexOf("mozilla/5.0")>-1&&nAgt.indexOf("android ")>-1&&nAgt.indexOf("applewebkit")>-1&&!(nAgt.indexOf("chrome")>-1)?(verOffset=nAgt.indexOf("Chrome"),jQuery.browser.webkit=!0,jQuery.browser.androidStock=!0,jQuery.browser.name="androidStock",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion}jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&jQuery(window).width()>765,jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt),function(e){e.simpleSlider={defaults:{initialval:0,scale:100,orientation:"h",readonly:!1,callback:!1},events:{start:e.browser.mobile?"touchstart":"mousedown",end:e.browser.mobile?"touchend":"mouseup",move:e.browser.mobile?"touchmove":"mousemove"},init:function(t){return this.each(function(){var i=this,r=e(i);r.addClass("simpleSlider"),i.opt={},e.extend(i.opt,e.simpleSlider.defaults,t),e.extend(i.opt,r.data());var n="h"==i.opt.orientation?"horizontal":"vertical",n=e("<div/>").addClass("level").addClass(n);r.prepend(n),i.level=n,r.css({cursor:"default"}),"auto"==i.opt.scale&&(i.opt.scale=e(i).outerWidth()),r.updateSliderVal(),i.opt.readonly||(r.on(e.simpleSlider.events.start,function(t){e.browser.mobile&&(t=t.changedTouches[0]),i.canSlide=!0,r.updateSliderVal(t),"h"==i.opt.orientation?r.css({cursor:"col-resize"}):r.css({cursor:"row-resize"}),t.preventDefault(),t.stopPropagation()}),e(document).on(e.simpleSlider.events.move,function(t){e.browser.mobile&&(t=t.changedTouches[0]),i.canSlide&&(e(document).css({cursor:"default"}),r.updateSliderVal(t),t.preventDefault(),t.stopPropagation())}).on(e.simpleSlider.events.end,function(){e(document).css({cursor:"auto"}),i.canSlide=!1,r.css({cursor:"auto"})}))})},updateSliderVal:function(t){var i=this.get(0);if(i.opt){i.opt.initialval="number"==typeof i.opt.initialval?i.opt.initialval:i.opt.initialval(i);var r=e(i).outerWidth(),n=e(i).outerHeight();i.x="object"==typeof t?t.clientX+document.body.scrollLeft-this.offset().left:"number"==typeof t?t*r/i.opt.scale:i.opt.initialval*r/i.opt.scale,i.y="object"==typeof t?t.clientY+document.body.scrollTop-this.offset().top:"number"==typeof t?(i.opt.scale-i.opt.initialval-t)*n/i.opt.scale:i.opt.initialval*n/i.opt.scale,i.y=this.outerHeight()-i.y,i.scaleX=i.x*i.opt.scale/r,i.scaleY=i.y*i.opt.scale/n,i.outOfRangeX=i.scaleX>i.opt.scale?i.scaleX-i.opt.scale:0>i.scaleX?i.scaleX:0,i.outOfRangeY=i.scaleY>i.opt.scale?i.scaleY-i.opt.scale:0>i.scaleY?i.scaleY:0,i.outOfRange="h"==i.opt.orientation?i.outOfRangeX:i.outOfRangeY,i.value=void 0!==t?"h"==i.opt.orientation?i.x>=this.outerWidth()?i.opt.scale:0>=i.x?0:i.scaleX:i.y>=this.outerHeight()?i.opt.scale:0>=i.y?0:i.scaleY:"h"==i.opt.orientation?i.scaleX:i.scaleY,"h"==i.opt.orientation?i.level.width(Math.floor(100*i.x/r)+"%"):i.level.height(Math.floor(100*i.y/n)),"function"==typeof i.opt.callback&&i.opt.callback(i)}}},e.fn.simpleSlider=e.simpleSlider.init,e.fn.updateSliderVal=e.simpleSlider.updateSliderVal}(jQuery),jQuery(function(e){function t(t){"resize"===t.type&&(e(s.BODY).removeClass(a.DROPDOWN_OPEN),e(s.BASE).removeClass(a.OPENED).find(s.TOGGLER).each(function(){e(e(this).attr("data-target")).removeClass(a.IN).add(this).attr("aria-expanded","false")}));var i=e(this).scrollTop();e(s.BASE).each(function(){e(this).is(s.FIXED_TOP)&&(e(this).is(s.TRANSPARENT)&&!e(this).hasClass(a.OPENED)&&(i>0?e(this).removeClass(a.BG_COLOR):e(this).addClass(a.BG_COLOR)),i>0?e(this).addClass(a.SHORT):e(this).removeClass(a.SHORT))})}var i,r=".bs.navbar-dropdown",n=".data-api",o={COLLAPSE:"collapse"+r,CLICK_DATA_API:"click"+r+n,SCROLL_DATA_API:"scroll"+r+n,RESIZE_DATA_API:"resize"+r+n,COLLAPSE_SHOW:"show.bs.collapse",COLLAPSE_HIDE:"hide.bs.collapse",DROPDOWN_COLLAPSE:"collapse.bs.nav-dropdown"},a={IN:"in",OPENED:"opened",BG_COLOR:"bg-color",DROPDOWN_OPEN:"navbar-dropdown-open",SHORT:"navbar-short"},s={BODY:"body",BASE:".navbar-dropdown",TOGGLER:'.navbar-toggler[aria-expanded="true"]',TRANSPARENT:".transparent",FIXED_TOP:".navbar-fixed-top"};e(window).on(o.SCROLL_DATA_API+" "+o.RESIZE_DATA_API,function(e){clearTimeout(i),i=setTimeout(function(){t(e)},10)}).trigger(o.SCROLL_DATA_API),e(document).on(o.CLICK_DATA_API,s.BASE,function(e){e.targetWrapper=this}).on(o.COLLAPSE_SHOW+" "+o.COLLAPSE_HIDE,function(t){e(t.target).closest(s.BASE).each(function(){"show"==t.type?(e(s.BODY).addClass(a.DROPDOWN_OPEN),e(this).addClass(a.OPENED)):(e(s.BODY).removeClass(a.DROPDOWN_OPEN),e(this).removeClass(a.OPENED),e(window).trigger(o.SCROLL_DATA_API),e(this).trigger(o.COLLAPSE))})}).on(o.DROPDOWN_COLLAPSE,function(t){e(t.relatedTarget).closest(s.BASE).find(s.TOGGLER).trigger("click")})}),function(e){var t="navDropdown",i="bs.nav-dropdown",r="."+i,n=".data-api",o=e.fn[t],a={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,CLICK:"click"+r,READY:"ready"+r,COLLAPSE:"collapse"+r,LOAD_DATA_API:"load"+r+n,CLICK_DATA_API:"click"+r+n,RESIZE_DATA_API:"resize"+r+n,KEYDOWN_DATA_API:"keydown"+r+n,NAVBAR_COLLAPSE:"collapse.bs.navbar-dropdown"},s={ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40},l={XS:544,SM:768,MD:992,LG:1200,XL:1/0},u={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",OPEN:"open",SM:"nav-dropdown-sm"},c={BASE:".nav-dropdown",DROPDOWN:".dropdown",DROPDOWN_MENU:".dropdown-menu",BACKDROP:"."+u.BACKDROP,DATA_BUTTON:"[data-button]",DATA_TOGGLE:'[data-toggle="dropdown-submenu"]',FORM_CHILD:".dropdown form"},d=function(){function t(t,i){"length"in t||(t=[t]),this.props={},this.length=t.length,i&&(this.prevItem=i,e.extend(this.props,i.props));for(var r=0;r<t.length;r++)this[r]=t[r]}return t.prototype.eq=function(e){return new t(this[e]?this[e]:[],this)},t.prototype.parent=function(){return new t(e(this).map(function(){var i=new t(this);return i.is(":upper")?null:e(i.is(":toggle")?this.parentNode.parentNode:this).closest(c.DROPDOWN).find(">"+c.DATA_TOGGLE)[0]}),this)},t.prototype.parents=function(i){var r=e(this).map(function(){return new t(this).is(":toggle")?this.parentNode:this}).parentsUntil(c.BASE,c.DROPDOWN);return":upper"===i&&(r=r.last()),r=r.find(">"+c.DATA_TOGGLE),new t(r,this)},t.prototype.children=function(i){var r=[];return e(this).each(function(){var n,o,a=new t(this);if(a.is(":root"))n=e(this);else{if(!a.is(":toggle"))return;n=e(this).parent().find(">"+c.DROPDOWN_MENU)}o=i?n.find("a"):a.is(":root")?n.find(">li>a"):n.find(">a, >"+c.DROPDOWN+">a"),o.each(function(){i&&!this.offsetWidth&&!this.offsetHeight||this.disabled||e(this).is(c.DATA_BUTTON)||e(this).hasClass(u.DISABLED)||~e.inArray(this,r)||r.push(this)})}),new t(r,this)},t.prototype.root=function(){return new t(e(this).closest(c.BASE),this)},t.prototype.jump=function(i){if(i=i||"next",!this.length)return new t([],this);var r,n=this.eq(0);r=this.is(":flat")||n.is(":upper")?n.root().children(this.is(":flat")):n.parent().children();var o=e.inArray(this[0],r);if(!r.length||!~o)return new t([],this);if("next"==i){if((o+=1)<r.length)return new t(r[o],this);i="first"}else if("prev"==i){if((o-=1)>=0)return new t(r[o],this);i="last"}return"first"==i?new t(r[0],this):"last"==i?new t(r[r.length-1],this):new t([],this)},t.prototype.next=function(){return this.jump("next")},t.prototype.prev=function(){return this.jump("prev")},t.prototype.first=function(){return this.jump("first")},t.prototype.last=function(){return this.jump("last")},t.prototype.prop=function(t,i){return arguments.length?arguments.length>1?(this.props[t]=i,this):"object"==typeof arguments[0]?(e.extend(this.props,arguments[0]),this):t in this.props?this.props[t]:null:e.extend({},this.props)},t.prototype.removeProp=function(e){return delete this.props[e],this},t.prototype.is=function(t){for(var i=e(this),r=(t||"").split(/(?=[*#.\[:\s])/);t=r.pop();)switch(t){case":root":if(!i.is(c.BASE))return!1;break;case":upper":if(!i.parent().parent().is(c.BASE))return!1;break;case":opened":case":closed":if(":opened"==t!=i.parent().hasClass(u.OPEN))return!1;case":toggle":if(!i.is(c.DATA_TOGGLE))return!1;break;default:if(!this.props[t])return!1}return!0},t.prototype.open=function(){return this.is(":closed")&&this.click(),this},t.prototype.close=function(){return this.is(":opened")&&this.click(),this},t.prototype.focus=function(){return this.length&&this[0].focus(),this},t.prototype.click=function(){return this.length&&e(this[0]).trigger("click"),this},function(e){return new t(e)}}(),h=function(t){this._element=t,e(this._element).on(a.CLICK,this.toggle)};h.prototype.toggle=function(t){if(this.disabled||e(this).hasClass(u.DISABLED))return!1;var i=e(this.parentNode),r=i.hasClass(u.OPEN),n=h._isCollapsed(e(this).closest(c.BASE));if(h._clearMenus(e.Event("click",{target:this,data:{toggles:n?[this]:null}})),r)return!1;if("ontouchstart"in document.documentElement&&!i.closest(c.DROPDOWN+"."+u.OPEN).length){var o=document.createElement("div");o.className=u.BACKDROP,e(o).insertBefore(e(this).closest(c.BASE)),e(o).on("click",h._clearMenus)}var s={relatedTarget:this},l=e.Event(a.SHOW,s);return i.trigger(l),!l.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),i.toggleClass(u.OPEN),i.trigger(e.Event(a.SHOWN,s)),!1)},h.prototype.dispose=function(){e.removeData(this._element,i),e(this._element).off(r),this._element=null},h._clearMenus=function(t){if(t=t||{},3!==t.which){var i,r=function(){return!1};if(t.target){if(this===document)if(e(t.target).is("a:not([disabled], ."+u.DISABLED+")"))i=e.Event(a.COLLAPSE,{relatedTarget:t.target});else{var n=t.targetWrapper&&e(t.targetWrapper).find(c.BASE)||e(t.target).closest(c.BASE);if(h._isCollapsed(n))return}else if(e(t.target).hasClass(u.BACKDROP)){var o=e(t.target).next();if(o.is(c.BASE)&&h._isCollapsed(o))return}e(t.target).is(c.DATA_TOGGLE)?r=e(t.target.parentNode).parents(c.DROPDOWN).find(">"+c.DATA_TOGGLE):e(c.BACKDROP).remove()}for(var s=t.data&&t.data.toggles&&e(t.data.toggles).parent().find(c.DATA_TOGGLE)||e.makeArray(e(c.DATA_TOGGLE).not(r)),l=0;l<s.length;l++){var d=s[l].parentNode,p={relatedTarget:s[l]};if(e(d).hasClass(u.OPEN)&&("click"!==t.type||!/input|textarea/i.test(t.target.tagName)||!e.contains(d,t.target))){var f=e.Event(a.HIDE,p);e(d).trigger(f),f.isDefaultPrevented()||(s[l].setAttribute("aria-expanded","false"),e(d).removeClass(u.OPEN).trigger(e.Event(a.HIDDEN,p)))}}i&&e(document).trigger(i)}},h._dataApiKeydownHandler=function(t){if(!/input|textarea/i.test(t.target.tagName)){var i;for(var r in s)if(i=s[r]===t.which)break;if(i){if(t.preventDefault(),t.stopPropagation(),t.which==s.ESC){if(h._isCollapsed(this))return;var n=e(t.target).parents(c.DROPDOWN+"."+u.OPEN).last().find(">"+c.DATA_TOGGLE);return h._clearMenus(),void n.trigger("focus")}if("A"==t.target.tagName){var o=d(t.target);if(o.prop(":flat",h._isCollapsed(o.root())),o.is(":flat"))t.which===s.DOWN||t.which===s.UP?o[t.which===s.UP?"prev":"next"]().focus():t.which===s.LEFT?o.is(":opened")?o.close():o.parent().close().focus():t.which===s.RIGHT&&o.is(":toggle")&&o.open();else if(o.is(":upper"))t.which===s.LEFT||t.which===s.RIGHT?(o[t.which===s.LEFT?"prev":"next"]().focus().open(),o.is(":toggle")&&o.close()):t.which!==s.DOWN&&t.which!==s.UP||!o.is(":toggle")||o.children()[t.which===s.DOWN?"first":"last"]().focus();else if(t.which===s.LEFT){var a=o.parent();a.is(":upper")?a.close().prev().focus().open():a.focus().close()}else if(t.which===s.RIGHT){var l=o.children();l.length?(o.open(),l.first().focus()):o.parents(":upper").close().next().focus().open()}else(t.which===s.DOWN||t.which===s.UP)&&o[t.which===s.UP?"prev":"next"]().focus()}}}},h._isCollapsed=function(e){var t;return e.length&&(e=e[0]),e&&(t=/navbar-toggleable-(xs|sm|md|lg|xl)/.exec(e.className))&&window.innerWidth<l[t[1].toUpperCase()]},h._dataApiResizeHandler=function(){e(c.BASE).each(function(){var t=h._isCollapsed(this);e(this).find(c.DROPDOWN).removeClass(u.OPEN),e(this).find('[aria-expanded="true"]').attr("aria-expanded","false");var i=e(c.BACKDROP)[0];i&&i.parentNode.removeChild(i),t!=e(this).hasClass(u.SM)&&(t?e(this).addClass(u.SM):e(this).removeClass(u.SM))})},e.fn[t]=function(t){return this.each(function(){var r=e(this).data(i);if(r||e(this).data(i,r=new h(this)),"string"==typeof t){if(void 0===r[t])throw new Error('No method named "'+t+'"');r[t].call(this)}})},e.fn[t].noConflict=function(){return e.fn[t]=o,this},e.fn[t].Constructor=h,e.fn[t].$$=d,e(window).on(a.RESIZE_DATA_API+" "+a.LOAD_DATA_API,h._dataApiResizeHandler),e(document).on(a.KEYDOWN_DATA_API,c.BASE,h._dataApiKeydownHandler).on(a.NAVBAR_COLLAPSE,h._clearMenus).on(a.CLICK_DATA_API,h._clearMenus).on(a.CLICK_DATA_API,c.DATA_TOGGLE,h.prototype.toggle).on(a.CLICK_DATA_API,c.FORM_CHILD,function(e){e.stopPropagation()}),e(window).trigger(a.READY)}(jQuery),function(e){"use strict";if(e.fn.carousel){var t=function(i){this.$element=e(i),this.carousel=this.$element.data("bs.carousel"),this.options=e.extend({},t.DEFAULTS,this.carousel.options),this.startX=this.startY=this.startTime=this.cycling=this.$active=this.$items=this.$next=this.$prev=this.dx=null,this.$element.on("touchstart",e.proxy(this.touchstart,this)).on("touchmove",e.proxy(this.touchmove,this)).on("touchend",e.proxy(this.touchend,this))};t.DEFAULTS={swipe:50},t.prototype.touchstart=function(e){if(this.options.swipe){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;this.dx=0,this.startX=t.pageX,this.startY=t.pageY,this.cycling=null,this.width=this.$element.width(),this.startTime=e.timeStamp}},t.prototype.touchmove=function(e){if(this.options.swipe){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e,i=t.pageX-this.startX,r=t.pageY-this.startY;Math.abs(i)<Math.abs(r)||(null===this.cycling&&(this.cycling=!!this.carousel.interval,this.cycling&&this.carousel.pause()),e.preventDefault(),this.dx=i/(this.width||1)*100,this.swipe(this.dx))}},t.prototype.touchend=function(t){if(this.options.swipe&&this.$active){var i=e().add(this.$active).add(this.$prev).add(this.$next).carousel_transition(!0),r=(t.timeStamp-this.startTime)/1e3,n=Math.abs(this.dx/r);this.dx>40||this.dx>0&&n>this.options.swipe?this.carousel.prev():this.dx<-40||this.dx<0&&n>this.options.swipe?this.carousel.next():this.$active.one(e.support.transition.end,function(){i.removeClass("prev next")}).emulateTransitionEnd(1e3*this.$active.css("transition-duration").slice(0,-1)),i.carousel_offset(!1),this.cycling&&this.carousel.cycle(),this.$active=null}},t.prototype.swipe=function(e){var t=this.$active||this.getActive();if(e<0){if(this.$prev.carousel_offset(!1).removeClass("prev").carousel_transition(!0),!this.$next.length||this.$next.hasClass("active"))return;this.$next.carousel_transition(!1).addClass("next").carousel_offset(e+100)}else{if(this.$next.carousel_offset(!1).removeClass("next").carousel_transition(!0),!this.$prev.length||this.$prev.hasClass("active"))return;this.$prev.carousel_transition(!1).addClass("prev").carousel_offset(e-100)}t.carousel_transition(!1).carousel_offset(e)},t.prototype.getActive=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$next=this.$active.next(),!this.$next.length&&this.options.wrap&&(this.$next=this.$items.first()),this.$prev=this.$active.prev(),!this.$prev.length&&this.options.wrap&&(this.$prev=this.$items.last()),this.$active};var i=e.fn.carousel;e.fn.carousel=function(){return i.apply(this,arguments),this.each(function(){var i=e(this);i.data("bs.carousel.swipe")||i.data("bs.carousel.swipe",new t(this))})},e.extend(e.fn.carousel,i),e.fn.carousel_transition=function(t){return t=t?"":"none",this.each(function(){e(this).css("-webkit-transition",t).css("transition",t)})};var r=function(){if(!window.getComputedStyle)return!1;var e,t=document.createElement("p"),i={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(t,null);for(var r in i)void 0!==t.style[r]&&(t.style[r]="translate3d(1px,1px,1px)",e=window.getComputedStyle(t).getPropertyValue(i[r]));return document.body.removeChild(t),void 0!==e&&e.length>0&&"none"!==e}();e.fn.carousel_offset=function(t){return this.each(function(){t?r?e(this).css("transform","translate3d("+t+"%, 0, 0)"):e(this).css("left",t+"%"):e(this).css({transform:"",left:""})})},e(".carousel").carousel()}}(jQuery);var ytp=ytp||{},getYTPVideoID=function(e){var t,i;return e.indexOf("youtu.be")>0?(t=e.substr(e.lastIndexOf("/")+1,e.length),i=t.indexOf("?list=")>0?t.substr(t.lastIndexOf("="),t.length):null,t=i?t.substr(0,t.lastIndexOf("?")):t):e.indexOf("http")>-1?(t=e.match(/[\\?&]v=([^&#]*)/)[1],i=e.indexOf("list=")>0?e.match(/[\\?&]list=([^&#]*)/)[1]:null):(t=e.length>15?null:e,i=t?null:e),{videoID:t,playlistID:i}};!function(jQuery,ytp){jQuery.mbYTPlayer={name:"jquery.mb.YTPlayer",version:"3.0.20",build:"6258",author:"Matteo Bicocchi (pupunzi)",apiKey:"",defaults:{containment:"body",ratio:"auto",videoURL:null,playlistURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:50,addRaster:!1,mask:!1,opacity:1,quality:"default",mute:!1,loop:!0,fadeOnStartTime:500,showControls:!0,showAnnotations:!1,showYTLogo:!0,stopMovieOnBlur:!0,realfullscreen:!0,mobileFallbackImage:null,gaTrack:!0,optimizeDisplay:!0,remember_last_time:!1,anchor:"center,center",onReady:function(e){},onError:function(e,t){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",onlyYT:"O",showSite:"R",ytLogo:"Y"},controlBar:null,loading:null,locationProtocol:"https:",filters:{grayscale:{value:0,unit:"%"},hue_rotate:{value:0,unit:"deg"},invert:{value:0,unit:"%"},opacity:{value:0,unit:"%"},saturate:{value:0,unit:"%"},sepia:{value:0,unit:"%"},brightness:{value:0,unit:"%"},contrast:{value:0,unit:"%"},blur:{value:0,unit:"px"}},buildPlayer:function(options){return this.each(function(){var YTPlayer=this,$YTPlayer=jQuery(YTPlayer);YTPlayer.loop=0,YTPlayer.opt={},YTPlayer.state={},YTPlayer.filters=jQuery.mbYTPlayer.filters,YTPlayer.filtersEnabled=!0,YTPlayer.id=YTPlayer.id||"YTP_"+(new Date).getTime(),$YTPlayer.addClass("mb_YTPlayer");var property=$YTPlayer.data("property")&&"string"==typeof $YTPlayer.data("property")?eval("("+$YTPlayer.data("property")+")"):$YTPlayer.data("property");void 0!==property&&void 0!==property.vol&&(property.vol=0===property.vol?property.vol=1:property.vol),jQuery.extend(YTPlayer.opt,jQuery.mbYTPlayer.defaults,options,property),YTPlayer.hasChanged||(YTPlayer.defaultOpt={},jQuery.extend(YTPlayer.defaultOpt,jQuery.mbYTPlayer.defaults,options)),"true"==YTPlayer.opt.loop&&(YTPlayer.opt.loop=9999),YTPlayer.isRetina=window.retina||window.devicePixelRatio>1;var isIframe=function(){var e=!1;try{self.location.href!=top.location.href&&(e=!0)}catch(t){e=!0}return e};YTPlayer.canGoFullScreen=!(jQuery.mbBrowser.msie||jQuery.mbBrowser.opera||isIframe()),YTPlayer.canGoFullScreen||(YTPlayer.opt.realfullscreen=!1),$YTPlayer.attr("id")||$YTPlayer.attr("id","ytp_"+(new Date).getTime());var playerID="iframe_"+YTPlayer.id;YTPlayer.isAlone=!1,YTPlayer.hasFocus=!0,YTPlayer.videoID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).videoID:!!$YTPlayer.attr("href")&&getYTPVideoID($YTPlayer.attr("href")).videoID,YTPlayer.playlistID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).playlistID:!!$YTPlayer.attr("href")&&getYTPVideoID($YTPlayer.attr("href")).playlistID,YTPlayer.opt.showAnnotations=YTPlayer.opt.showAnnotations?"1":"3";var start_from_last=0;jQuery.mbCookie.get("YTPlayer_"+YTPlayer.videoID)&&(start_from_last=parseFloat(jQuery.mbCookie.get("YTPlayer_"+YTPlayer.videoID))),YTPlayer.opt.remember_last_time&&start_from_last&&(YTPlayer.start_from_last=start_from_last,jQuery.mbCookie.remove("YTPlayer_"+YTPlayer.videoID));var playerVars={modestbranding:1,autoplay:0,controls:0,showinfo:0,rel:0,enablejsapi:1,version:3,playerapiid:playerID,origin:"*",allowfullscreen:!0,wmode:"transparent",iv_load_policy:YTPlayer.opt.showAnnotations};if(document.createElement("video").canPlayType&&jQuery.extend(playerVars,{html5:1}),jQuery.mbBrowser.msie&&jQuery.mbBrowser.version<9&&(this.opt.opacity=1),YTPlayer.isSelf="self"==YTPlayer.opt.containment,YTPlayer.defaultOpt.containment=YTPlayer.opt.containment=jQuery("self"==YTPlayer.opt.containment?this:YTPlayer.opt.containment),YTPlayer.isBackground=YTPlayer.opt.containment.is("body"),!YTPlayer.isBackground||!ytp.backgroundIsInited){var isPlayer=YTPlayer.opt.containment.is(jQuery(this));YTPlayer.canPlayOnMobile=isPlayer&&0===jQuery(this).children().length,YTPlayer.isPlayer=!1,isPlayer?YTPlayer.isPlayer=!0:$YTPlayer.hide();var overlay=jQuery("<div/>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("YTPOverlay");YTPlayer.isPlayer&&overlay.on("click",function(){$YTPlayer.YTPTogglePlay()});var wrapper=jQuery("<div/>").addClass("mbYTP_wrapper").attr("id","wrapper_"+YTPlayer.id);wrapper.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0});var playerBox=jQuery("<div/>").attr("id",playerID).addClass("playerBox");if(playerBox.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:0,left:0,overflow:"hidden"}),wrapper.append(playerBox),YTPlayer.opt.containment.children().not("script, style").each(function(){"static"==jQuery(this).css("position")&&jQuery(this).css("position","relative")}),YTPlayer.isBackground?(jQuery("body").css({boxSizing:"border-box"}),wrapper.css({position:"fixed",top:0,left:0,zIndex:0}),$YTPlayer.hide()):"static"==YTPlayer.opt.containment.css("position")&&YTPlayer.opt.containment.css({position:"relative"}),YTPlayer.opt.containment.prepend(wrapper),YTPlayer.wrapper=wrapper,playerBox.css({opacity:1}),jQuery.mbBrowser.mobile||(playerBox.after(overlay),YTPlayer.overlay=overlay),YTPlayer.isBackground||overlay.on("mouseenter",function(){YTPlayer.controlBar&&YTPlayer.controlBar.length&&YTPlayer.controlBar.addClass("visible")}).on("mouseleave",function(){YTPlayer.controlBar&&YTPlayer.controlBar.length&&YTPlayer.controlBar.removeClass("visible")}),ytp.YTAPIReady)setTimeout(function(){jQuery(document).trigger("YTAPIReady")},100);else{jQuery("#YTAPI").remove();var tag=jQuery("<script><\/script>").attr({src:jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/iframe_api?v="+jQuery.mbYTPlayer.version,id:"YTAPI"});jQuery("head").prepend(tag)}if(jQuery.mbBrowser.mobile&&!YTPlayer.canPlayOnMobile)return YTPlayer.opt.mobileFallbackImage&&wrapper.css({backgroundImage:"url("+YTPlayer.opt.mobileFallbackImage+")",backgroundPosition:"center center",backgroundSize:"cover",backgroundRepeat:"no-repeat",opacity:1}),YTPlayer.isPlayer||$YTPlayer.remove(),void jQuery(document).trigger("YTPUnavailable");jQuery(document).on("YTAPIReady",function(){YTPlayer.isBackground&&ytp.backgroundIsInited||YTPlayer.isInit||(YTPlayer.isBackground&&(ytp.backgroundIsInited=!0),YTPlayer.opt.autoPlay=void 0===YTPlayer.opt.autoPlay?!!YTPlayer.isBackground:YTPlayer.opt.autoPlay,YTPlayer.opt.vol=YTPlayer.opt.vol?YTPlayer.opt.vol:100,jQuery.mbYTPlayer.getDataFromAPI(YTPlayer),jQuery(YTPlayer).on("YTPChanged",function(){if(!YTPlayer.isInit){if(YTPlayer.isInit=!0,jQuery.mbBrowser.mobile&&YTPlayer.canPlayOnMobile){if(YTPlayer.opt.containment.outerWidth()>jQuery(window).width()){YTPlayer.opt.containment.css({maxWidth:"100%"});var h=.563*YTPlayer.opt.containment.outerWidth();YTPlayer.opt.containment.css({maxHeight:h})}return void new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),width:"100%",height:h,playerVars:playerVars,events:{onReady:function(e){YTPlayer.player=e.target,playerBox.css({opacity:1}),YTPlayer.wrapper.css({opacity:1})}}})}new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),playerVars:playerVars,events:{onReady:function(e){YTPlayer.player=e.target,YTPlayer.isReady||(YTPlayer.isReady=!(YTPlayer.isPlayer&&!YTPlayer.opt.autoPlay),YTPlayer.playerEl=YTPlayer.player.getIframe(),jQuery(YTPlayer.playerEl).unselectable(),$YTPlayer.optimizeDisplay(),jQuery(window).off("resize.YTP_"+YTPlayer.id).on("resize.YTP_"+YTPlayer.id,function(){$YTPlayer.optimizeDisplay()}),YTPlayer.opt.remember_last_time&&jQuery(window).on("unload.YTP_"+YTPlayer.id,function(){var e=YTPlayer.player.getCurrentTime();jQuery.mbCookie.set("YTPlayer_"+YTPlayer.videoID,e,0)}),jQuery.mbYTPlayer.checkForState(YTPlayer))},onStateChange:function(event){if("function"==typeof event.target.getPlayerState){var state=event.target.getPlayerState();if(YTPlayer.preventTrigger)return void(YTPlayer.preventTrigger=!1);YTPlayer.state=state;var eventType;switch(state){case-1:eventType="YTPUnstarted";break;case 0:eventType="YTPRealEnd";break;case 1:eventType="YTPPlay",YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.pause),"undefined"!=typeof _gaq&&eval(YTPlayer.opt.gaTrack)&&_gaq.push(["_trackEvent","YTPlayer","Play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString()]),"undefined"!=typeof ga&&eval(YTPlayer.opt.gaTrack)&&ga("send","event","YTPlayer","play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString());break;case 2:eventType="YTPPause",YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 3:YTPlayer.player.setPlaybackQuality(YTPlayer.opt.quality),eventType="YTPBuffering",YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 5:eventType="YTPCued"}var YTPEvent=jQuery.Event(eventType);YTPEvent.time=YTPlayer.currentTime,YTPlayer.canTrigger&&jQuery(YTPlayer).trigger(YTPEvent)}},onPlaybackQualityChange:function(e){var t=e.target.getPlaybackQuality(),i=jQuery.Event("YTPQualityChange");i.quality=t,jQuery(YTPlayer).trigger(i)},onError:function(e){150==e.data&&YTPlayer.isPlayList&&jQuery(YTPlayer).playNext(),2==e.data&&YTPlayer.isPlayList&&jQuery(YTPlayer).playNext(),"function"==typeof YTPlayer.opt.onError&&YTPlayer.opt.onError($YTPlayer,e)}}})}}))}),$YTPlayer.off("YTPTime.mask"),jQuery.mbYTPlayer.applyMask(YTPlayer)}})},getDataFromAPI:function(e){if(e.videoData=jQuery.mbStorage.get("YTPlayer_data_"+e.videoID),jQuery(e).off("YTPData.YTPlayer").on("YTPData.YTPlayer",function(){if(e.hasData&&e.isPlayer&&!e.opt.autoPlay){var t=e.videoData.thumb_max||e.videoData.thumb_high||e.videoData.thumb_medium;e.opt.containment.css({background:"rgba(0,0,0,0.5) url("+t+") center center",backgroundSize:"cover"}),e.opt.backgroundUrl=t}}),e.videoData)setTimeout(function(){e.opt.ratio="auto"==e.opt.ratio?"16/9":e.opt.ratio,e.dataReceived=!0,jQuery(e).trigger("YTPChanged");var t=jQuery.Event("YTPData");t.prop={};for(var i in e.videoData)t.prop[i]=e.videoData[i];jQuery(e).trigger(t)},e.opt.fadeOnStartTime),e.hasData=!0;else if(jQuery.mbYTPlayer.apiKey)jQuery.getJSON(jQuery.mbYTPlayer.locationProtocol+"//www.googleapis.com/youtube/v3/videos?id="+e.videoID+"&key="+jQuery.mbYTPlayer.apiKey+"&part=snippet",function(t){e.dataReceived=!0,jQuery(e).trigger("YTPChanged"),function(t){e.videoData={},e.videoData.id=e.videoID,e.videoData.channelTitle=t.channelTitle,e.videoData.title=t.title,e.videoData.description=t.description.length<400?t.description:t.description.substring(0,400)+" ...",e.videoData.aspectratio="auto"==e.opt.ratio?"16/9":e.opt.ratio,e.opt.ratio=e.videoData.aspectratio,e.videoData.thumb_max=t.thumbnails.maxres?t.thumbnails.maxres.url:null,e.videoData.thumb_high=t.thumbnails.high?t.thumbnails.high.url:null,e.videoData.thumb_medium=t.thumbnails.medium?t.thumbnails.medium.url:null,jQuery.mbStorage.set("YTPlayer_data_"+e.videoID,e.videoData)}(t.items[0].snippet),e.hasData=!0;var i=jQuery.Event("YTPData");i.prop={};for(var r in e.videoData)i.prop[r]=e.videoData[r];jQuery(e).trigger(i)});else{if(setTimeout(function(){jQuery(e).trigger("YTPChanged")},50),e.isPlayer&&!e.opt.autoPlay){var t=jQuery.mbYTPlayer.locationProtocol+"//i.ytimg.com/vi/"+e.videoID+"/hqdefault.jpg";t&&e.opt.containment.css({background:"rgba(0,0,0,0.5) url("+t+") center center",backgroundSize:"cover"}),e.opt.backgroundUrl=t}e.videoData=null,e.opt.ratio="auto"==e.opt.ratio?"16/9":e.opt.ratio}!e.isPlayer||e.opt.autoPlay||jQuery.mbBrowser.mobile||(e.loading=jQuery("<div/>").addClass("loading").html("Loading").hide(),jQuery(e).append(e.loading),e.loading.fadeIn())},removeStoredData:function(){jQuery.mbStorage.remove()},getVideoData:function(){return this.get(0).videoData},getVideoID:function(){return this.get(0).videoID||!1},setVideoQuality:function(e){this.get(0).player.setPlaybackQuality(e)},playlist:function(e,t,i){var r=this,n=r.get(0);return n.isPlayList=!0,t&&(e=jQuery.shuffle(e)),n.videoID||(n.videos=e,n.videoCounter=0,n.videoLength=e.length,jQuery(n).data("property",e[0]),jQuery(n).mb_YTPlayer()),"function"==typeof i&&jQuery(n).one("YTPChanged",function(){i(n)}),jQuery(n).on("YTPEnd",function(){jQuery(n).playNext()}),this},playNext:function(){var e=this.get(0);return e.checkForStartAt&&(clearInterval(e.checkForStartAt),clearInterval(e.getState)),e.videoCounter++,e.videoCounter>=e.videoLength&&(e.videoCounter=0),jQuery(e).YTPChangeMovie(e.videos[e.videoCounter]),this},playPrev:function(){var e=this.get(0);return e.checkForStartAt&&(clearInterval(e.checkForStartAt),clearInterval(e.getState)),e.videoCounter--,e.videoCounter<0&&(e.videoCounter=e.videoLength-1),jQuery(e).YTPChangeMovie(e.videos[e.videoCounter]),this},playIndex:function(e){var t=this.get(0);return e-=1,t.checkForStartAt&&(clearInterval(t.checkForStartAt),clearInterval(t.getState)),t.videoCounter=e,t.videoCounter>=t.videoLength-1&&(t.videoCounter=t.videoLength-1),jQuery(t).YTPChangeMovie(t.videos[t.videoCounter]),this},changeMovie:function(e){var t=this,i=t.get(0);i.opt.startAt=0,i.opt.stopAt=0,i.opt.mask=!1,i.opt.mute=!0,i.hasData=!1,i.hasChanged=!0,i.player.loopTime=void 0,e&&jQuery.extend(i.opt,e),i.videoID=getYTPVideoID(i.opt.videoURL).videoID,"true"==i.opt.loop&&(i.opt.loop=9999),jQuery(i.playerEl).CSSAnimate({opacity:0
  },i.opt.fadeOnStartTime,function(){var e=jQuery.Event("YTPChangeMovie");e.time=i.currentTime,e.videoId=i.videoID,jQuery(i).trigger(e),jQuery(i).YTPGetPlayer().cueVideoByUrl(encodeURI(jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/v/"+i.videoID),1,i.opt.quality),jQuery(i).optimizeDisplay(),jQuery.mbYTPlayer.checkForState(i),jQuery.mbYTPlayer.getDataFromAPI(i)}),jQuery.mbYTPlayer.applyMask(i)},getPlayer:function(){return jQuery(this).get(0).player},playerDestroy:function(){var e=this.get(0);return ytp.YTAPIReady=!0,ytp.backgroundIsInited=!1,e.isInit=!1,e.videoID=null,e.isReady=!1,e.wrapper.remove(),jQuery("#controlBar_"+e.id).remove(),clearInterval(e.checkForStartAt),clearInterval(e.getState),this},fullscreen:function(real){function hideMouse(){YTPlayer.overlay.css({cursor:"none"})}function RunPrefixMethod(e,t){for(var i,r,n=["webkit","moz","ms","o",""],o=0;o<n.length&&!e[i];){if(i=t,""==n[o]&&(i=i.substr(0,1).toLowerCase()+i.substr(1)),i=n[o]+i,"undefined"!=(r=typeof e[i]))return n=[n[o]],"function"==r?e[i]():e[i];o++}}function launchFullscreen(e){RunPrefixMethod(e,"RequestFullScreen")}function cancelFullscreen(){(RunPrefixMethod(document,"FullScreen")||RunPrefixMethod(document,"IsFullScreen"))&&RunPrefixMethod(document,"CancelFullScreen")}var YTPlayer=this.get(0);void 0===real&&(real=YTPlayer.opt.realfullscreen),real=eval(real);var controls=jQuery("#controlBar_"+YTPlayer.id),fullScreenBtn=controls.find(".mb_OnlyYT"),videoWrapper=YTPlayer.isSelf?YTPlayer.opt.containment:YTPlayer.wrapper;if(real){var fullscreenchange=jQuery.mbBrowser.mozilla?"mozfullscreenchange":jQuery.mbBrowser.webkit?"webkitfullscreenchange":"fullscreenchange";jQuery(document).off(fullscreenchange).on(fullscreenchange,function(){RunPrefixMethod(document,"IsFullScreen")||RunPrefixMethod(document,"FullScreen")?(jQuery(YTPlayer).YTPSetVideoQuality("default"),jQuery(YTPlayer).trigger("YTPFullScreenStart")):(YTPlayer.isAlone=!1,fullScreenBtn.html(jQuery.mbYTPlayer.controls.onlyYT),jQuery(YTPlayer).YTPSetVideoQuality(YTPlayer.opt.quality),videoWrapper.removeClass("YTPFullscreen"),videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},YTPlayer.opt.fadeOnStartTime),videoWrapper.css({zIndex:0}),YTPlayer.isBackground?jQuery("body").after(controls):YTPlayer.wrapper.before(controls),jQuery(window).resize(),jQuery(YTPlayer).trigger("YTPFullScreenEnd"))})}return YTPlayer.isAlone?(jQuery(document).off("mousemove.YTPlayer"),clearTimeout(YTPlayer.hideCursor),YTPlayer.overlay.css({cursor:"auto"}),real?cancelFullscreen():(videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},YTPlayer.opt.fadeOnStartTime),videoWrapper.css({zIndex:0})),fullScreenBtn.html(jQuery.mbYTPlayer.controls.onlyYT),YTPlayer.isAlone=!1):(jQuery(document).on("mousemove.YTPlayer",function(e){YTPlayer.overlay.css({cursor:"auto"}),clearTimeout(YTPlayer.hideCursor),jQuery(e.target).parents().is(".mb_YTPBar")||(YTPlayer.hideCursor=setTimeout(hideMouse,3e3))}),hideMouse(),real?(videoWrapper.css({opacity:0}),videoWrapper.addClass("YTPFullscreen"),launchFullscreen(videoWrapper.get(0)),setTimeout(function(){videoWrapper.CSSAnimate({opacity:1},2*YTPlayer.opt.fadeOnStartTime),YTPlayer.wrapper.append(controls),jQuery(YTPlayer).optimizeDisplay(),YTPlayer.player.seekTo(YTPlayer.player.getCurrentTime()+.1,!0)},YTPlayer.opt.fadeOnStartTime)):videoWrapper.css({zIndex:1e4}).CSSAnimate({opacity:1},2*YTPlayer.opt.fadeOnStartTime),fullScreenBtn.html(jQuery.mbYTPlayer.controls.showSite),YTPlayer.isAlone=!0),this},toggleLoops:function(){var e=this.get(0),t=e.opt;return 1==t.loop?t.loop=0:(t.startAt?e.player.seekTo(t.startAt):e.player.playVideo(),t.loop=1),this},play:function(){var e=this.get(0);return e.isReady?(e.player.playVideo(),e.wrapper.CSSAnimate({opacity:e.isAlone?1:e.opt.opacity},4*e.opt.fadeOnStartTime),jQuery(e.playerEl).CSSAnimate({opacity:1},2*e.opt.fadeOnStartTime),jQuery("#controlBar_"+e.id).find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.pause),e.state=1,e.orig_background=jQuery(e).css("background-image"),this):this},togglePlay:function(e){var t=this.get(0);return 1==t.state?this.YTPPause():this.YTPPlay(),"function"==typeof e&&e(t.state),this},stop:function(){var e=this.get(0);return jQuery("#controlBar_"+e.id).find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play),e.player.stopVideo(),this},pause:function(){var e=this.get(0);return e.player.pauseVideo(),e.state=2,this},seekTo:function(e){return this.get(0).player.seekTo(e,!0),this},setVolume:function(e){var t=this.get(0);return e||t.opt.vol||0!=t.player.getVolume()?!e&&t.player.getVolume()>0||e&&t.opt.vol==e?t.isMute?jQuery(t).YTPUnmute():jQuery(t).YTPMute():(t.opt.vol=e,t.player.setVolume(t.opt.vol),t.volumeBar&&t.volumeBar.length&&t.volumeBar.updateSliderVal(e)):jQuery(t).YTPUnmute(),this},toggleVolume:function(){var e=this.get(0);if(e)return e.player.isMuted()?(jQuery(e).YTPUnmute(),!0):(jQuery(e).YTPMute(),!1)},mute:function(){var e=this.get(0);if(!e.isMute){e.player.mute(),e.isMute=!0,e.player.setVolume(0),e.volumeBar&&e.volumeBar.length&&e.volumeBar.width()>10&&e.volumeBar.updateSliderVal(0);jQuery("#controlBar_"+e.id).find(".mb_YTPMuteUnmute").html(jQuery.mbYTPlayer.controls.unmute),jQuery(e).addClass("isMuted"),e.volumeBar&&e.volumeBar.length&&e.volumeBar.addClass("muted");var t=jQuery.Event("YTPMuted");return t.time=e.currentTime,e.canTrigger&&jQuery(e).trigger(t),this}},unmute:function(){var e=this.get(0);if(e.isMute){e.player.unMute(),e.isMute=!1,e.player.setVolume(e.opt.vol),e.volumeBar&&e.volumeBar.length&&e.volumeBar.updateSliderVal(e.opt.vol>10?e.opt.vol:10);jQuery("#controlBar_"+e.id).find(".mb_YTPMuteUnmute").html(jQuery.mbYTPlayer.controls.mute),jQuery(e).removeClass("isMuted"),e.volumeBar&&e.volumeBar.length&&e.volumeBar.removeClass("muted");var t=jQuery.Event("YTPUnmuted");return t.time=e.currentTime,e.canTrigger&&jQuery(e).trigger(t),this}},applyFilter:function(e,t){return this.each(function(){var i=this;i.filters[e].value=t,i.filtersEnabled&&jQuery(i).YTPEnableFilters()})},applyFilters:function(e){return this.each(function(){var t=this;if(!t.isReady)return void jQuery(t).on("YTPReady",function(){jQuery(t).YTPApplyFilters(e)});for(var i in e)jQuery(t).YTPApplyFilter(i,e[i]);jQuery(t).trigger("YTPFiltersApplied")})},toggleFilter:function(e,t){return this.each(function(){var i=this;i.filters[e].value?i.filters[e].value=0:i.filters[e].value=t,i.filtersEnabled&&jQuery(this).YTPEnableFilters()})},toggleFilters:function(e){return this.each(function(){var t=this;t.filtersEnabled?(jQuery(t).trigger("YTPDisableFilters"),jQuery(t).YTPDisableFilters()):(jQuery(t).YTPEnableFilters(),jQuery(t).trigger("YTPEnableFilters")),"function"==typeof e&&e(t.filtersEnabled)})},disableFilters:function(){return this.each(function(){var e=this,t=jQuery(e.playerEl);t.css("-webkit-filter",""),t.css("filter",""),e.filtersEnabled=!1})},enableFilters:function(){return this.each(function(){var e=this,t=jQuery(e.playerEl),i="";for(var r in e.filters)e.filters[r].value&&(i+=r.replace("_","-")+"("+e.filters[r].value+e.filters[r].unit+") ");t.css("-webkit-filter",i),t.css("filter",i),e.filtersEnabled=!0})},removeFilter:function(e,t){return this.each(function(){var i=this;if("function"==typeof e&&(t=e,e=null),e)jQuery(this).YTPApplyFilter(e,0),"function"==typeof t&&t(e);else for(var r in i.filters)jQuery(this).YTPApplyFilter(r,0),"function"==typeof t&&t(r)})},getFilters:function(){return this.get(0).filters},addMask:function(e){var t=this.get(0),i=t.overlay;e||(e=t.actualMask);var r=jQuery("<img/>").attr("src",e).on("load",function(){i.CSSAnimate({opacity:0},t.opt.fadeOnStartTime,function(){t.hasMask=!0,r.remove(),i.css({backgroundImage:"url("+e+")",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover"}),i.CSSAnimate({opacity:1},t.opt.fadeOnStartTime)})});return this},removeMask:function(){var e=this.get(0),t=e.overlay;return t.CSSAnimate({opacity:0},e.opt.fadeOnStartTime,function(){e.hasMask=!1,t.css({backgroundImage:"",backgroundRepeat:"",backgroundPosition:"",backgroundSize:""}),t.CSSAnimate({opacity:1},e.opt.fadeOnStartTime)}),this},applyMask:function(e){var t=jQuery(e);if(t.off("YTPTime.mask"),e.opt.mask)if("string"==typeof e.opt.mask)t.YTPAddMask(e.opt.mask),e.actualMask=e.opt.mask;else if("object"==typeof e.opt.mask){for(var i in e.opt.mask)e.opt.mask[i]&&jQuery("<img/>").attr("src",e.opt.mask[i]);e.opt.mask[0]&&t.YTPAddMask(e.opt.mask[0]),t.on("YTPTime.mask",function(i){for(var r in e.opt.mask)i.time==r&&(e.opt.mask[r]?(t.YTPAddMask(e.opt.mask[r]),e.actualMask=e.opt.mask[r]):t.YTPRemoveMask())})}},toggleMask:function(){var e=this.get(0),t=$(e);return e.hasMask?t.YTPRemoveMask():t.YTPAddMask(),this},manageProgress:function(){var e=this.get(0),t=jQuery("#controlBar_"+e.id),i=t.find(".mb_YTPProgress"),r=t.find(".mb_YTPLoaded"),n=t.find(".mb_YTPseekbar"),o=i.outerWidth(),a=Math.floor(e.player.getCurrentTime()),s=Math.floor(e.player.getDuration()),l=a*o/s,u=100*e.player.getVideoLoadedFraction();return r.css({left:0,width:u+"%"}),n.css({left:0,width:l}),{totalTime:s,currentTime:a}},buildControls:function(YTPlayer){var data=YTPlayer.opt;if(data.showYTLogo=data.showYTLogo||data.printUrl,!jQuery("#controlBar_"+YTPlayer.id).length){YTPlayer.controlBar=jQuery("<span/>").attr("id","controlBar_"+YTPlayer.id).addClass("mb_YTPBar").css({whiteSpace:"noWrap",position:YTPlayer.isBackground?"fixed":"absolute",zIndex:YTPlayer.isBackground?1e4:1e3}).hide();var buttonBar=jQuery("<div/>").addClass("buttonBar"),playpause=jQuery("<span>"+jQuery.mbYTPlayer.controls.play+"</span>").addClass("mb_YTPPlaypause ytpicon").click(function(){1==YTPlayer.player.getPlayerState()?jQuery(YTPlayer).YTPPause():jQuery(YTPlayer).YTPPlay()}),MuteUnmute=jQuery("<span>"+jQuery.mbYTPlayer.controls.mute+"</span>").addClass("mb_YTPMuteUnmute ytpicon").click(function(){0==YTPlayer.player.getVolume()?jQuery(YTPlayer).YTPUnmute():jQuery(YTPlayer).YTPMute()}),volumeBar=jQuery("<div/>").addClass("mb_YTPVolumeBar").css({display:"inline-block"});YTPlayer.volumeBar=volumeBar;var idx=jQuery("<span/>").addClass("mb_YTPTime"),vURL=data.videoURL?data.videoURL:"";vURL.indexOf("http")<0&&(vURL=jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/watch?v="+data.videoURL);var movieUrl=jQuery("<span/>").html(jQuery.mbYTPlayer.controls.ytLogo).addClass("mb_YTPUrl ytpicon").attr("title","view on YouTube").on("click",function(){window.open(vURL,"viewOnYT")}),onlyVideo=jQuery("<span/>").html(jQuery.mbYTPlayer.controls.onlyYT).addClass("mb_OnlyYT ytpicon").on("click",function(){jQuery(YTPlayer).YTPFullscreen(data.realfullscreen)}),progressBar=jQuery("<div/>").addClass("mb_YTPProgress").css("position","absolute").click(function(e){timeBar.css({width:e.clientX-timeBar.offset().left}),YTPlayer.timeW=e.clientX-timeBar.offset().left,YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0});var t=Math.floor(YTPlayer.player.getDuration());YTPlayer.goto=timeBar.outerWidth()*t/progressBar.outerWidth(),YTPlayer.player.seekTo(parseFloat(YTPlayer.goto),!0),YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0})}),loadedBar=jQuery("<div/>").addClass("mb_YTPLoaded").css("position","absolute"),timeBar=jQuery("<div/>").addClass("mb_YTPseekbar").css("position","absolute");progressBar.append(loadedBar).append(timeBar),buttonBar.append(playpause).append(MuteUnmute).append(volumeBar).append(idx),data.showYTLogo&&buttonBar.append(movieUrl),(YTPlayer.isBackground||eval(YTPlayer.opt.realfullscreen)&&!YTPlayer.isBackground)&&buttonBar.append(onlyVideo),YTPlayer.controlBar.append(buttonBar).append(progressBar),YTPlayer.isBackground?jQuery("body").after(YTPlayer.controlBar):(YTPlayer.controlBar.addClass("inlinePlayer"),YTPlayer.wrapper.before(YTPlayer.controlBar)),volumeBar.simpleSlider({initialval:YTPlayer.opt.vol,scale:100,orientation:"h",callback:function(e){0==e.value?jQuery(YTPlayer).YTPMute():jQuery(YTPlayer).YTPUnmute(),YTPlayer.player.setVolume(e.value),YTPlayer.isMute||(YTPlayer.opt.vol=e.value)}})}},checkForState:function(YTPlayer){var interval=YTPlayer.opt.showControls?100:400;return clearInterval(YTPlayer.getState),jQuery.contains(document,YTPlayer)?(jQuery.mbYTPlayer.checkForStart(YTPlayer),void(YTPlayer.getState=setInterval(function(){var prog=jQuery(YTPlayer).YTPManageProgress(),$YTPlayer=jQuery(YTPlayer),data=YTPlayer.opt,startAt=YTPlayer.start_from_last?YTPlayer.start_from_last:YTPlayer.opt.startAt?YTPlayer.opt.startAt:1;YTPlayer.start_from_last=null;var stopAt=YTPlayer.opt.stopAt>YTPlayer.opt.startAt?YTPlayer.opt.stopAt:0;if(stopAt=stopAt<YTPlayer.player.getDuration()?stopAt:0,YTPlayer.currentTime!=prog.currentTime){var YTPEvent=jQuery.Event("YTPTime");YTPEvent.time=YTPlayer.currentTime,jQuery(YTPlayer).trigger(YTPEvent)}if(YTPlayer.currentTime=prog.currentTime,YTPlayer.totalTime=YTPlayer.player.getDuration(),0==YTPlayer.player.getVolume()?$YTPlayer.addClass("isMuted"):$YTPlayer.removeClass("isMuted"),YTPlayer.opt.showControls&&(prog.totalTime?YTPlayer.controlBar.find(".mb_YTPTime").html(jQuery.mbYTPlayer.formatTime(prog.currentTime)+" / "+jQuery.mbYTPlayer.formatTime(prog.totalTime)):YTPlayer.controlBar.find(".mb_YTPTime").html("-- : -- / -- : --")),eval(YTPlayer.opt.stopMovieOnBlur)&&(document.hasFocus()?document.hasFocus()&&!YTPlayer.hasFocus&&-1!=YTPlayer.state&&0!=YTPlayer.state&&(YTPlayer.hasFocus=!0,$YTPlayer.YTPPlay()):1==YTPlayer.state&&(YTPlayer.hasFocus=!1,$YTPlayer.YTPPause())),YTPlayer.controlBar.length&&YTPlayer.controlBar.outerWidth()<=400&&!YTPlayer.isCompact?(YTPlayer.controlBar.addClass("compact"),YTPlayer.isCompact=!0,!YTPlayer.isMute&&YTPlayer.volumeBar&&YTPlayer.volumeBar.updateSliderVal(YTPlayer.opt.vol)):YTPlayer.controlBar.length&&YTPlayer.controlBar.outerWidth()>400&&YTPlayer.isCompact&&(YTPlayer.controlBar.removeClass("compact"),YTPlayer.isCompact=!1,!YTPlayer.isMute&&YTPlayer.volumeBar&&YTPlayer.volumeBar.updateSliderVal(YTPlayer.opt.vol)),1==YTPlayer.player.getPlayerState()&&(parseFloat(YTPlayer.player.getDuration()-.5)<YTPlayer.player.getCurrentTime()||stopAt>0&&parseFloat(YTPlayer.player.getCurrentTime())>stopAt)){if(YTPlayer.isEnded)return;if(YTPlayer.isEnded=!0,setTimeout(function(){YTPlayer.isEnded=!1},1e3),YTPlayer.isPlayList){if(!data.loop||data.loop>0&&YTPlayer.player.loopTime===data.loop-1){YTPlayer.player.loopTime=void 0,clearInterval(YTPlayer.getState);var YTPEnd=jQuery.Event("YTPEnd");return YTPEnd.time=YTPlayer.currentTime,void jQuery(YTPlayer).trigger(YTPEnd)}}else if(!data.loop||data.loop>0&&YTPlayer.player.loopTime===data.loop-1)return YTPlayer.player.loopTime=void 0,YTPlayer.preventTrigger=!0,YTPlayer.state=2,jQuery(YTPlayer).YTPPause(),void YTPlayer.wrapper.CSSAnimate({opacity:0},YTPlayer.opt.fadeOnStartTime,function(){YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);var e=jQuery.Event("YTPEnd");e.time=YTPlayer.currentTime,jQuery(YTPlayer).trigger(e),YTPlayer.player.seekTo(startAt,!0),YTPlayer.isBackground?YTPlayer.orig_background&&jQuery(YTPlayer).css("background-image",YTPlayer.orig_background):YTPlayer.opt.backgroundUrl&&YTPlayer.isPlayer&&(YTPlayer.opt.backgroundUrl=YTPlayer.opt.backgroundUrl||YTPlayer.orig_background,YTPlayer.opt.containment.css({background:"url("+YTPlayer.opt.backgroundUrl+") center center",backgroundSize:"cover"}))});YTPlayer.player.loopTime=YTPlayer.player.loopTime?++YTPlayer.player.loopTime:1,startAt=startAt||1,YTPlayer.preventTrigger=!0,YTPlayer.state=2,jQuery(YTPlayer).YTPPause(),YTPlayer.player.seekTo(startAt,!0),$YTPlayer.YTPPlay()}},interval))):(jQuery(YTPlayer).YTPPlayerDestroy(),clearInterval(YTPlayer.getState),void clearInterval(YTPlayer.checkForStartAt))},getTime:function(){var e=this.get(0);return jQuery.mbYTPlayer.formatTime(e.currentTime)},getTotalTime:function(){var e=this.get(0);return jQuery.mbYTPlayer.formatTime(e.totalTime)},checkForStart:function(e){var t=jQuery(e);if(!jQuery.contains(document,e))return void jQuery(e).YTPPlayerDestroy();if(e.preventTrigger=!0,e.state=2,jQuery(e).YTPPause(),jQuery(e).muteYTPVolume(),jQuery("#controlBar_"+e.id).remove(),e.controlBar=!1,e.opt.showControls&&jQuery.mbYTPlayer.buildControls(e),e.opt.addRaster){var i="dot"==e.opt.addRaster?"raster-dot":"raster";e.overlay.addClass(e.isRetina?i+" retina":i)}else e.overlay.removeClass(function(e,t){var i=t.split(" "),r=[];return jQuery.each(i,function(e,t){/raster.*/.test(t)&&r.push(t)}),r.push("retina"),r.join(" ")});var r=e.start_from_last?e.start_from_last:e.opt.startAt?e.opt.startAt:1;e.start_from_last=null,e.player.playVideo(),e.player.seekTo(r,!0),clearInterval(e.checkForStartAt),e.checkForStartAt=setInterval(function(){jQuery(e).YTPMute();var i=e.player.getVideoLoadedFraction()>=r/e.player.getDuration();if(e.player.getDuration()>0&&e.player.getCurrentTime()>=r&&i){clearInterval(e.checkForStartAt),"function"==typeof e.opt.onReady&&e.opt.onReady(e),e.isReady=!0;var n=jQuery.Event("YTPReady");if(n.time=e.currentTime,jQuery(e).trigger(n),e.preventTrigger=!0,e.state=2,jQuery(e).YTPPause(),e.opt.mute||jQuery(e).YTPUnmute(),e.canTrigger=!0,e.opt.autoPlay){var o=jQuery.Event("YTPStart");o.time=e.currentTime,jQuery(e).trigger(o),jQuery(e.playerEl).CSSAnimate({opacity:1},1e3),t.YTPPlay(),e.wrapper.CSSAnimate({opacity:e.isAlone?1:e.opt.opacity},2*e.opt.fadeOnStartTime),"mac"==jQuery.mbBrowser.os.name&&jQuery.mbBrowser.safari&&jQuery.mbBrowser.versionCompare(jQuery.mbBrowser.fullVersion,"10.1")<0&&(e.safariPlay=setInterval(function(){1!=e.state?t.YTPPlay():clearInterval(e.safariPlay)},10)),t.one("YTPReady",function(){t.YTPPlay()})}else e.player.pauseVideo(),e.isPlayer||(jQuery(e.playerEl).CSSAnimate({opacity:1},e.opt.fadeOnStartTime),e.wrapper.CSSAnimate({opacity:e.isAlone?1:e.opt.opacity},e.opt.fadeOnStartTime)),e.controlBar.length&&e.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);e.isPlayer&&!e.opt.autoPlay&&e.loading&&e.loading.length&&(e.loading.html("Ready"),setTimeout(function(){e.loading.fadeOut()},100)),e.controlBar&&e.controlBar.length&&e.controlBar.slideDown(1e3)}else"mac"==jQuery.mbBrowser.os.name&&jQuery.mbBrowser.safari&&jQuery.mbBrowser.fullVersion&&jQuery.mbBrowser.versionCompare(jQuery.mbBrowser.fullVersion,"10.1")<0&&(e.player.playVideo(),r>=0&&e.player.seekTo(r,!0))},10)},setAnchor:function(e){this.optimizeDisplay(e)},getAnchor:function(){return this.get(0).opt.anchor},formatTime:function(e){var t=Math.floor(e/60),i=Math.floor(e-60*t);return(9>=t?"0"+t:t)+" : "+(9>=i?"0"+i:i)}},jQuery.fn.optimizeDisplay=function(anchor){var YTPlayer=this.get(0),playerBox=jQuery(YTPlayer.playerEl),vid={};YTPlayer.opt.anchor=anchor||YTPlayer.opt.anchor,YTPlayer.opt.anchor="undefined "!=typeof YTPlayer.opt.anchor?YTPlayer.opt.anchor:"center,center";var YTPAlign=YTPlayer.opt.anchor.split(",");if(YTPlayer.opt.optimizeDisplay){var abundance=YTPlayer.isPlayer?0:80,win={},el=YTPlayer.wrapper;win.width=el.outerWidth(),win.height=el.outerHeight()+abundance,YTPlayer.opt.ratio=eval(YTPlayer.opt.ratio),vid.width=win.width,vid.height=Math.ceil(vid.width/YTPlayer.opt.ratio),vid.marginTop=Math.ceil(-(vid.height-win.height)/2),vid.marginLeft=0;var lowest=vid.height<win.height;lowest&&(vid.height=win.height,vid.width=Math.ceil(vid.height*YTPlayer.opt.ratio),vid.marginTop=0,vid.marginLeft=Math.ceil(-(vid.width-win.width)/2));for(var a in YTPAlign)if(YTPAlign.hasOwnProperty(a)){var al=YTPAlign[a].replace(/ /g,"");switch(al){case"top":vid.marginTop=lowest?-(vid.height-win.height)/2:0;break;case"bottom":vid.marginTop=lowest?0:-(vid.height-win.height);break;case"left":vid.marginLeft=0;break;case"right":vid.marginLeft=lowest?-(vid.width-win.width):0;break;default:vid.width>win.width&&(vid.marginLeft=-(vid.width-win.width)/2)}}}else vid.width="100%",vid.height="100%",vid.marginTop=0,vid.marginLeft=0;playerBox.css({width:vid.width,height:vid.height,marginTop:vid.marginTop,marginLeft:vid.marginLeft,maxWidth:"initial"})},jQuery.shuffle=function(e){for(var t=e.slice(),i=t.length,r=i;r--;){var n=parseInt(Math.random()*i),o=t[r];t[r]=t[n],t[n]=o}return t},jQuery.fn.unselectable=function(){return this.each(function(){jQuery(this).css({"-moz-user-select":"none","-webkit-user-select":"none","user-select":"none"}).attr("unselectable","on")})},jQuery.fn.YTPlayer=jQuery.mbYTPlayer.buildPlayer,jQuery.fn.YTPGetPlayer=jQuery.mbYTPlayer.getPlayer,jQuery.fn.YTPGetVideoID=jQuery.mbYTPlayer.getVideoID,jQuery.fn.YTPChangeMovie=jQuery.mbYTPlayer.changeMovie,jQuery.fn.YTPPlayerDestroy=jQuery.mbYTPlayer.playerDestroy,jQuery.fn.YTPPlay=jQuery.mbYTPlayer.play,jQuery.fn.YTPTogglePlay=jQuery.mbYTPlayer.togglePlay,jQuery.fn.YTPStop=jQuery.mbYTPlayer.stop,jQuery.fn.YTPPause=jQuery.mbYTPlayer.pause,jQuery.fn.YTPSeekTo=jQuery.mbYTPlayer.seekTo,jQuery.fn.YTPlaylist=jQuery.mbYTPlayer.playlist,jQuery.fn.YTPPlayNext=jQuery.mbYTPlayer.playNext,jQuery.fn.YTPPlayPrev=jQuery.mbYTPlayer.playPrev,jQuery.fn.YTPPlayIndex=jQuery.mbYTPlayer.playIndex,jQuery.fn.YTPMute=jQuery.mbYTPlayer.mute,jQuery.fn.YTPUnmute=jQuery.mbYTPlayer.unmute,jQuery.fn.YTPToggleVolume=jQuery.mbYTPlayer.toggleVolume,jQuery.fn.YTPSetVolume=jQuery.mbYTPlayer.setVolume,jQuery.fn.YTPGetVideoData=jQuery.mbYTPlayer.getVideoData,jQuery.fn.YTPFullscreen=jQuery.mbYTPlayer.fullscreen,jQuery.fn.YTPToggleLoops=jQuery.mbYTPlayer.toggleLoops,jQuery.fn.YTPSetVideoQuality=jQuery.mbYTPlayer.setVideoQuality,jQuery.fn.YTPManageProgress=jQuery.mbYTPlayer.manageProgress,jQuery.fn.YTPApplyFilter=jQuery.mbYTPlayer.applyFilter,jQuery.fn.YTPApplyFilters=jQuery.mbYTPlayer.applyFilters,jQuery.fn.YTPToggleFilter=jQuery.mbYTPlayer.toggleFilter,jQuery.fn.YTPToggleFilters=jQuery.mbYTPlayer.toggleFilters,jQuery.fn.YTPRemoveFilter=jQuery.mbYTPlayer.removeFilter,jQuery.fn.YTPDisableFilters=jQuery.mbYTPlayer.disableFilters,jQuery.fn.YTPEnableFilters=jQuery.mbYTPlayer.enableFilters,jQuery.fn.YTPGetFilters=jQuery.mbYTPlayer.getFilters,jQuery.fn.YTPGetTime=jQuery.mbYTPlayer.getTime,jQuery.fn.YTPGetTotalTime=jQuery.mbYTPlayer.getTotalTime,jQuery.fn.YTPAddMask=jQuery.mbYTPlayer.addMask,jQuery.fn.YTPRemoveMask=jQuery.mbYTPlayer.removeMask,jQuery.fn.YTPToggleMask=jQuery.mbYTPlayer.toggleMask,jQuery.fn.YTPSetAnchor=jQuery.mbYTPlayer.setAnchor,jQuery.fn.YTPGetAnchor=jQuery.mbYTPlayer.getAnchor,jQuery.fn.mb_YTPlayer=jQuery.mbYTPlayer.buildPlayer,jQuery.fn.playNext=jQuery.mbYTPlayer.playNext,jQuery.fn.playPrev=jQuery.mbYTPlayer.playPrev,jQuery.fn.changeMovie=jQuery.mbYTPlayer.changeMovie,jQuery.fn.getVideoID=jQuery.mbYTPlayer.getVideoID,jQuery.fn.getPlayer=jQuery.mbYTPlayer.getPlayer,jQuery.fn.playerDestroy=jQuery.mbYTPlayer.playerDestroy,jQuery.fn.fullscreen=jQuery.mbYTPlayer.fullscreen,jQuery.fn.buildYTPControls=jQuery.mbYTPlayer.buildControls,jQuery.fn.playYTP=jQuery.mbYTPlayer.play,jQuery.fn.toggleLoops=jQuery.mbYTPlayer.toggleLoops,jQuery.fn.stopYTP=jQuery.mbYTPlayer.stop,jQuery.fn.pauseYTP=jQuery.mbYTPlayer.pause,jQuery.fn.seekToYTP=jQuery.mbYTPlayer.seekTo,jQuery.fn.muteYTPVolume=jQuery.mbYTPlayer.mute,jQuery.fn.unmuteYTPVolume=jQuery.mbYTPlayer.unmute,jQuery.fn.setYTPVolume=jQuery.mbYTPlayer.setVolume,jQuery.fn.setVideoQuality=jQuery.mbYTPlayer.setVideoQuality,jQuery.fn.manageYTPProgress=jQuery.mbYTPlayer.manageProgress,jQuery.fn.YTPGetDataFromFeed=jQuery.mbYTPlayer.getVideoData}(jQuery,ytp),jQuery.support.CSStransition=function(){var e=document.body||document.documentElement,t=e.style;return void 0!==t.transition||void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.MsTransition||void 0!==t.OTransition}(),jQuery.CSS={name:"mb.CSSAnimate",author:"Matteo Bicocchi",version:"2.0.0",transitionEnd:"transitionEnd",sfx:"",filters:{blur:{min:0,max:100,unit:"px"},brightness:{min:0,max:400,unit:"%"},contrast:{min:0,max:400,unit:"%"},grayscale:{min:0,max:100,unit:"%"},hueRotate:{min:0,max:360,unit:"deg"},invert:{min:0,max:100,unit:"%"},saturate:{min:0,max:400,unit:"%"},sepia:{min:0,max:100,unit:"%"}},normalizeCss:function(e){var t=jQuery.extend(!0,{},e);jQuery.browser.webkit||jQuery.browser.opera?jQuery.CSS.sfx="-webkit-":jQuery.browser.mozilla?jQuery.CSS.sfx="-moz-":jQuery.browser.msie&&(jQuery.CSS.sfx="-ms-");for(var i in t){"transform"===i&&(t[jQuery.CSS.sfx+"transform"]=t[i],delete t[i]),"transform-origin"===i&&(t[jQuery.CSS.sfx+"transform-origin"]=e[i],delete t[i]),"filter"!==i||jQuery.browser.mozilla||(t[jQuery.CSS.sfx+"filter"]=e[i],delete t[i]),"blur"===i&&setFilter(t,"blur",e[i]),"brightness"===i&&setFilter(t,"brightness",e[i]),"contrast"===i&&setFilter(t,"contrast",e[i]),"grayscale"===i&&setFilter(t,"grayscale",e[i]),"hueRotate"===i&&setFilter(t,"hueRotate",e[i]),"invert"===i&&setFilter(t,"invert",e[i]),"saturate"===i&&setFilter(t,"saturate",e[i]),"sepia"===i&&setFilter(t,"sepia",e[i]);var r="";"x"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" translateX("+setUnit(e[i],"px")+")",delete t[i]),"y"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" translateY("+setUnit(e[i],"px")+")",delete t[i]),"z"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" translateZ("+setUnit(e[i],"px")+")",delete t[i]),"rotate"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotate("+setUnit(e[i],"deg")+")",delete t[i]),"rotateX"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotateX("+setUnit(e[i],"deg")+")",delete t[i]),"rotateY"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotateY("+setUnit(e[i],"deg")+")",delete t[i]),"rotateZ"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotateZ("+setUnit(e[i],"deg")+")",delete t[i]),"scale"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scale("+setUnit(e[i],"")+")",delete t[i]),"scaleX"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scaleX("+setUnit(e[i],"")+")",delete t[i]),"scaleY"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scaleY("+setUnit(e[i],"")+")",delete t[i]),"scaleZ"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scaleZ("+setUnit(e[i],"")+")",delete t[i]),"skew"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" skew("+setUnit(e[i],"deg")+")",delete t[i]),"skewX"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" skewX("+setUnit(e[i],"deg")+")",delete t[i]),"skewY"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" skewY("+setUnit(e[i],"deg")+")",delete t[i]),"perspective"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" perspective("+setUnit(e[i],"px")+")",delete t[i])}return t},getProp:function(e){var t=[];for(var i in e)t.indexOf(i)<0&&t.push(uncamel(i));return t.join(",")},animate:function(e,t,i,r,n){return this.each(function(){function o(){a.called=!0,a.CSSAIsRunning=!1,s.off(jQuery.CSS.transitionEnd+"."+a.id),clearTimeout(a.timeout),s.css(jQuery.CSS.sfx+"transition",""),"function"==typeof n&&n.apply(a),"function"==typeof a.CSSqueue&&(a.CSSqueue(),a.CSSqueue=null)}var a=this,s=jQuery(this);a.id=a.id||"CSSA_"+(new Date).getTime();var l=l||{type:"noEvent"};if(a.CSSAIsRunning&&a.eventType==l.type&&!jQuery.browser.msie&&jQuery.browser.version<=9)return void(a.CSSqueue=function(){s.CSSAnimate(e,t,i,r,n)});if(a.CSSqueue=null,a.eventType=l.type,0!==s.length&&e){if(e=jQuery.normalizeCss(e),a.CSSAIsRunning=!0,"function"==typeof t&&(n=t,t=jQuery.fx.speeds._default),"function"==typeof i&&(r=i,i=0),"string"==typeof i&&(n=i,i=0),"function"==typeof r&&(n=r,r="cubic-bezier(0.65,0.03,0.36,0.72)"),"string"==typeof t)for(var u in jQuery.fx.speeds){if(t==u){t=jQuery.fx.speeds[u];break}t=jQuery.fx.speeds._default}if(t||(t=jQuery.fx.speeds._default),"string"==typeof n&&(r=n,n=null),!jQuery.support.CSStransition){for(var c in e){if("transform"===c&&delete e[c],"filter"===c&&delete e[c],"transform-origin"===c&&delete e[c],"auto"===e[c]&&delete e[c],"x"===c){var d=e[c],h="left";e[h]=d,delete e[c]}if("y"===c){var d=e[c],h="top";e[h]=d,delete e[c]}("-ms-transform"===c||"-ms-filter"===c)&&delete e[c]}return void s.delay(i).animate(e,t,n)}var p={default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};p[r]&&(r=p[r]),s.off(jQuery.CSS.transitionEnd+"."+a.id);var f=jQuery.CSS.getProp(e),m={};jQuery.extend(m,e),m[jQuery.CSS.sfx+"transition-property"]=f,m[jQuery.CSS.sfx+"transition-duration"]=t+"ms",m[jQuery.CSS.sfx+"transition-delay"]=i+"ms",m[jQuery.CSS.sfx+"transition-timing-function"]=r,setTimeout(function(){s.one(jQuery.CSS.transitionEnd+"."+a.id,o),s.css(m)},1),a.timeout=setTimeout(function(){return a.called||!n?(a.called=!1,void(a.CSSAIsRunning=!1)):(s.css(jQuery.CSS.sfx+"transition",""),n.apply(a),a.CSSAIsRunning=!1,void("function"==typeof a.CSSqueue&&(a.CSSqueue(),a.CSSqueue=null)))},t+i+10)}})}},jQuery.fn.CSSAnimate=jQuery.CSS.animate,jQuery.normalizeCss=jQuery.CSS.normalizeCss,jQuery.fn.css3=function(e){return this.each(function(){var t=jQuery(this),i=jQuery.normalizeCss(e);t.css(i)})};var nAgt=navigator.userAgent;jQuery.browser=jQuery.browser||{},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.androidStock=!1,jQuery.browser.msie=!1,jQuery.browser.edge=!1,jQuery.browser.ua=nAgt;var getOS=function(){var e={version:"Unknown version",name:"Unknown OS"};return-1!=navigator.appVersion.indexOf("Win")&&(e.name="Windows"),-1!=navigator.appVersion.indexOf("Mac")&&0>navigator.appVersion.indexOf("Mobile")&&(e.name="Mac"),-1!=navigator.appVersion.indexOf("Linux")&&(e.name="Linux"),/Mac OS X/.test(nAgt)&&!/Mobile/.test(nAgt)&&(e.version=/Mac OS X (10[\.\_\d]+)/.exec(nAgt)[1],e.version=e.version.replace(/_/g,".").substring(0,5)),/Windows/.test(nAgt)&&(e.version="Unknown.Unknown"),/Windows NT 5.1/.test(nAgt)&&(e.version="5.1"),/Windows NT 6.0/.test(nAgt)&&(e.version="6.0"),/Windows NT 6.1/.test(nAgt)&&(e.version="6.1"),/Windows NT 6.2/.test(nAgt)&&(e.version="6.2"),/Windows NT 10.0/.test(nAgt)&&(e.version="10.0"),/Linux/.test(nAgt)&&/Linux/.test(nAgt)&&(e.version="Unknown.Unknown"),e.name=e.name.toLowerCase(),e.major_version="Unknown",e.minor_version="Unknown","Unknown.Unknown"!=e.version&&(e.major_version=parseFloat(e.version.split(".")[0]),e.minor_version=parseFloat(e.version.split(".")[1])),e};jQuery.browser.os=getOS(),jQuery.browser.hasTouch=isTouchSupported(),jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10);var nameOffset,verOffset,ix;if(-1!=(verOffset=nAgt.indexOf("Opera")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8));else if(-1!=(verOffset=nAgt.indexOf("OPR")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4);else if(-1!=(verOffset=nAgt.indexOf("MSIE")))jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5);else if(-1!=nAgt.indexOf("Trident")){jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer"
  ;var start=nAgt.indexOf("rv:")+3,end=start+4;jQuery.browser.fullVersion=nAgt.substring(start,end)}else-1!=(verOffset=nAgt.indexOf("Edge"))?(jQuery.browser.edge=!0,jQuery.browser.name="Microsoft Edge",jQuery.browser.fullVersion=nAgt.substring(verOffset+5)):-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1<nAgt.indexOf("mozilla/5.0")&&-1<nAgt.indexOf("android ")&&-1<nAgt.indexOf("applewebkit")&&!(-1<nAgt.indexOf("chrome"))?(verOffset=nAgt.indexOf("Chrome"),jQuery.browser.webkit=!0,jQuery.browser.androidStock=!0,jQuery.browser.name="androidStock",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion,jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&765<jQuery(window).width(),jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt),jQuery.mbBrowser=jQuery.browser,jQuery.browser.versionCompare=function(e,t){if("stringstring"!=typeof e+typeof t)return!1;for(var i=e.split("."),r=t.split("."),n=0,o=Math.max(i.length,r.length);o>n;n++){if(i[n]&&!r[n]&&0<parseInt(i[n])||parseInt(i[n])>parseInt(r[n]))return 1;if(r[n]&&!i[n]&&0<parseInt(r[n])||parseInt(i[n])<parseInt(r[n]))return-1}return 0},function(e){e.simpleSlider={defaults:{initialval:0,scale:100,orientation:"h",readonly:!1,callback:!1},events:{start:e.browser.mobile?"touchstart":"mousedown",end:e.browser.mobile?"touchend":"mouseup",move:e.browser.mobile?"touchmove":"mousemove"},init:function(t){return this.each(function(){var i=this,r=e(i);r.addClass("simpleSlider"),i.opt={},e.extend(i.opt,e.simpleSlider.defaults,t),e.extend(i.opt,r.data());var n="h"==i.opt.orientation?"horizontal":"vertical",n=e("<div/>").addClass("level").addClass(n);r.prepend(n),i.level=n,r.css({cursor:"default"}),"auto"==i.opt.scale&&(i.opt.scale=e(i).outerWidth()),r.updateSliderVal(),i.opt.readonly||(r.on(e.simpleSlider.events.start,function(t){e.browser.mobile&&(t=t.changedTouches[0]),i.canSlide=!0,r.updateSliderVal(t),"h"==i.opt.orientation?r.css({cursor:"col-resize"}):r.css({cursor:"row-resize"}),t.preventDefault(),t.stopPropagation()}),e(document).on(e.simpleSlider.events.move,function(t){e.browser.mobile&&(t=t.changedTouches[0]),i.canSlide&&(e(document).css({cursor:"default"}),r.updateSliderVal(t),t.preventDefault(),t.stopPropagation())}).on(e.simpleSlider.events.end,function(){e(document).css({cursor:"auto"}),i.canSlide=!1,r.css({cursor:"auto"})}))})},updateSliderVal:function(t){var i=this.get(0);if(i.opt){i.opt.initialval="number"==typeof i.opt.initialval?i.opt.initialval:i.opt.initialval(i);var r=e(i).outerWidth(),n=e(i).outerHeight();i.x="object"==typeof t?t.clientX+document.body.scrollLeft-this.offset().left:"number"==typeof t?t*r/i.opt.scale:i.opt.initialval*r/i.opt.scale,i.y="object"==typeof t?t.clientY+document.body.scrollTop-this.offset().top:"number"==typeof t?(i.opt.scale-i.opt.initialval-t)*n/i.opt.scale:i.opt.initialval*n/i.opt.scale,i.y=this.outerHeight()-i.y,i.scaleX=i.x*i.opt.scale/r,i.scaleY=i.y*i.opt.scale/n,i.outOfRangeX=i.scaleX>i.opt.scale?i.scaleX-i.opt.scale:0>i.scaleX?i.scaleX:0,i.outOfRangeY=i.scaleY>i.opt.scale?i.scaleY-i.opt.scale:0>i.scaleY?i.scaleY:0,i.outOfRange="h"==i.opt.orientation?i.outOfRangeX:i.outOfRangeY,i.value=void 0!==t?"h"==i.opt.orientation?i.x>=this.outerWidth()?i.opt.scale:0>=i.x?0:i.scaleX:i.y>=this.outerHeight()?i.opt.scale:0>=i.y?0:i.scaleY:"h"==i.opt.orientation?i.scaleX:i.scaleY,"h"==i.opt.orientation?i.level.width(Math.floor(100*i.x/r)+"%"):i.level.height(Math.floor(100*i.y/n)),"function"==typeof i.opt.callback&&i.opt.callback(i)}}},e.fn.simpleSlider=e.simpleSlider.init,e.fn.updateSliderVal=e.simpleSlider.updateSliderVal}(jQuery),function(e){e.mbCookie={set:function(e,t,i,r){"object"==typeof t&&(t=JSON.stringify(t)),r=r?"; domain="+r:"";var n=new Date,o="";i>0&&(n.setTime(n.getTime()+864e5*i),o="; expires="+n.toGMTString()),document.cookie=e+"="+t+o+"; path=/"+r},get:function(e){e+="=";for(var t=document.cookie.split(";"),i=0;i<t.length;i++){for(var r=t[i];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(e))try{return JSON.parse(r.substring(e.length,r.length))}catch(t){return r.substring(e.length,r.length)}}return null},remove:function(t){e.mbCookie.set(t,"",-1)}},e.mbStorage={set:function(e,t){"object"==typeof t&&(t=JSON.stringify(t)),localStorage.setItem(e,t)},get:function(e){if(!localStorage[e])return null;try{return JSON.parse(localStorage[e])}catch(t){return localStorage[e]}},remove:function(e){e?localStorage.removeItem(e):localStorage.clear()}}}(jQuery),function(e){function t(t){e(".pie_progress").asPieProgress({namespace:"asPieProgress",classes:{element:"pie_progress",number:"pie_progress__number"},min:0,max:100,size:150,speed:30,barsize:"8",fillcolor:"none",easing:"ease"}),e(t).find(".pie_progress").each(function(){e(this).asPieProgress("go",e(this).attr("data-goal")+"%")})}function i(t,i){var r=e(t).find("."+i);r.asPieProgress("go",r.attr("data-goal")+"%")}function r(){e(".countdown:not(.countdown-inited)").each(function(){e(this).addClass("countdown-inited").countdown(e(this).attr("data-due-date"),function(t){var i=e(t.target).closest(".countdown-cont").find("div.daysCountdown").attr("title"),r=e(t.target).closest(".countdown-cont").find("div.hoursCountdown").attr("title"),n=e(t.target).closest(".countdown-cont").find("div.minutesCountdown").attr("title"),o=e(t.target).closest(".countdown-cont").find("div.secondsCountdown").attr("title");e(this).html(t.strftime(['<div class="row">','<div class="col-xs-12 col-sm-6 col-md-3">','<span class="number-wrap">','<span class="number display-2">%D</span>','<span mbr-text class="period display-7">',i,"</span>",'<span class="dot">:</span>',"</span>","</div>",'<div class="col-xs-12 col-sm-6 col-md-3">','<span class="number-wrap">','<span class="number display-2">%H</span>','<span mbr-text class="period display-7">',r,"</span>",'<span class="dot">:</span>',"</span>","</div>",'<div class="col-xs-12 col-sm-6 col-md-3">','<span class="number-wrap">','<span class="number display-2">%M</span>','<span mbr-text class="period display-7">',n,"</span>",'<span class="dot">:</span>',"</span>","</div>",'<div class="col-xs-12 col-sm-6 col-md-3">','<span class="number-wrap">','<span class="number display-2">%S</span>','<span mbr-text class="period display-7">',o,"</span>","</span>","</div>","</div>"].join("")))})}),e(".countdown:not(.countdown-inited)").each(function(){e(this).countdown(e(this).attr("data-due-date"),function(t){e(this).text(t.strftime("%D days %H:%M:%S"))})})}function n(t,i){var n=/\d\d\d\d\/\d\d\/\d\d/g,o=e(t).find(".countdown");i.search(n)>-1&&(o.removeClass("countdown-inited"),r())}function o(){e(".flip-card:not(.builderCard)").each(function(){e(this).addClass("builderCard")})}function a(t){0!==e(t).find(".nav-tabs").length&&e(t).outerFind('section[id^="tabs"]').each(function(){var t=e(this).attr("id"),i=e(this).find(".nav-tabs .nav-item"),r=e(this).find(".tab-pane");r.removeClass("active").eq(0).addClass("active"),i.find("a").removeClass("active").removeAttr("aria-expanded").eq(0).addClass("active"),r.each(function(){e(this).attr("id",t+"_tab"+e(this).index())}),i.each(function(){e(this).find("a").attr("href","#"+t+"_tab"+e(this).index())})})}function s(t){e(t).find(".carousel-item:first").addClass("active")}function l(t){var i=e(t),r=i.attr("ID")+"-carousel";i.find(".carousel").attr("id",r),i.find(".carousel-controls a").attr("href","#"+r),s(i)}function u(t){var i=e(t),r=i.find(".carousel-item").length,n=i.find(".carousel-inner").attr("data-visible");r<n&&(n=r),i.find(".carousel-inner").attr("class","carousel-inner slides"+n),i.find(".clonedCol").remove(),i.find(".carousel-item .col-md-12").each(function(){n<2?e(this).attr("class","col-md-12"):"5"==n?e(this).attr("class","col-md-12 col-lg-15"):e(this).attr("class","col-md-12 col-lg-"+12/n)}),i.find(".carousel-item").each(function(){for(var t=e(this),i=1;i<n;i++){t=t.next(),t.length||(t=e(this).siblings(":first"));var r=t.index();t.find(".col-md-12:first").clone().addClass("cloneditem-"+i).addClass("clonedCol").attr("data-cloned-index",r).appendTo(e(this).children().eq(0))}})}function c(t){var i=e(t),r=i.find(".carousel-item").length,n=i.find(".carousel-inner").attr("data-visible");r<n&&(n=r),i.find(".clonedCol").remove(),i.find(".carousel-item").each(function(){for(var t=e(this),i=1;i<n;i++){t=t.next(),t.length||(t=e(this).siblings(":first"));var r=t.index();t.find(".col-md-12:first").clone().addClass("cloneditem-"+i).addClass("clonedCol").attr("data-cloned-index",r).appendTo(e(this).children().eq(0))}})}function d(t){t.stopPropagation(),t.preventDefault();var i,r,n=e(t.target);n.closest(".clonedCol").length?(i=n.closest(".clonedCol"),r=i.attr("data-cloned-index")):(i=n.closest(".carousel-item"),r=i.index());var o=e(n.closest(".carousel-inner").find(".carousel-item")[r]).find("img")[0];n.parents(".clonedCol").length>0&&o.click()}function h(t){var i=e(t).find(".table tbody tr").length;e(t).find(".dataTables_info span.infoRows").text(i)}function p(t,i,r,n,o,a,s){e(t).find("table").dataTable({retrieve:!0,paging:!1,aaSorting:[],scrollX:!0,searching:i,info:i,language:{search:r,info:n+" _END_ "+o,infoEmpty:n+" _END_ "+o,infoFiltered:a+" _MAX_ "+s}})}function f(t){var i="";return e.each(t,function(e,t){0==t.indexOf("display")&&(i=t)}),i}var m=e("html").hasClass("is-builder");e.extend(e.easing,{easeInOutCubic:function(e,t,i,r,n){return(t/=n/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i}}),e.fn.outerFind=function(e){return this.find(e).addBack(e)},e.fn.footerReveal=function(){function t(){i.outerHeight()<=n.outerHeight()?(i.css({"z-index":-999,position:"fixed",bottom:0}),i.css({width:r.outerWidth()}),r.css({"margin-bottom":i.outerHeight()})):(i.css({"z-index":"",position:"",bottom:""}),i.css({width:""}),r.css({"margin-bottom":""}))}var i=e(this),r=i.prev(),n=e(window);return t(),n.on("load resize",function(){t()}),this},function(e,t){var i=function(e,t,i){var r;return function(){function n(){i||e.apply(o,a),r=null}var o=this,a=arguments;r?clearTimeout(r):i&&e.apply(o,a),r=setTimeout(n,t||100)}};jQuery.fn[t]=function(e){return e?this.bind("resize",i(e)):this.trigger(t)}}(jQuery,"smartresize"),e.isMobile=function(t){var i=[],r={blackberry:"BlackBerry",android:"Android",windows:"IEMobile",opera:"Opera Mini",ios:"iPhone|iPad|iPod"};return t="undefined"==e.type(t)?"*":t.toLowerCase(),"*"==t?i=e.map(r,function(e){return e}):t in r&&i.push(r[t]),!(!i.length||!navigator.userAgent.match(new RegExp(i.join("|"),"i")))};var g=function(){var t=e('<div style="height: 50vh; position: absolute; top: -1000px; left: -1000px;">').appendTo("body"),i=t[0],r=parseInt(window.innerHeight/2,10),n=parseInt((window.getComputedStyle?getComputedStyle(i,null):i.currentStyle).height,10);return t.remove(),n==r}();if(e(function(){function t(){e(this).css("height",9*e(this).parent().width()/16)}function i(t){setTimeout(function(){e(t).outerFind(".mbr-parallax-background").jarallax({speed:.6}).css("position","relative")},0)}function r(t){e(t).jarallax("destroy").css("position","")}function n(t){e(t).outerFind("[data-bg-video]").each(function(){var t=e(this).attr("data-bg-video"),i=t.match(/(http:\/\/|https:\/\/|)?(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/),r=e('<div class="mbr-background-video-preview">').hide().css({backgroundSize:"cover",backgroundPosition:"center"});if(e("> *:eq(0)",this).before(r),i&&(/youtube/g.test(i[3])||/vimeo/g.test(i[3]))){if(i&&/youtube/g.test(i[3])){var n="http"+("https:"===location.protocol?"s":"")+":";n+="//img.youtube.com/vi/"+i[6]+"/maxresdefault.jpg",e("<img>").on("load",function(){if(120===(this.naturalWidth||this.width)){var e=this.src.split("/").pop();switch(e){case"maxresdefault.jpg":this.src=this.src.replace(e,"sddefault.jpg");break;case"sddefault.jpg":this.src=this.src.replace(e,"hqdefault.jpg");break;default:m&&r.css("background-image",'url("images/no-video.jpg")').show()}}else r.css("background-image",'url("'+this.src+'")').show()}).attr("src",n),!e.fn.YTPlayer||m||e.isMobile()||e("> *:eq(1)",this).before('<div class="mbr-background-video"></div>').prev().YTPlayer({videoURL:i[6],containment:"self",showControls:!1,mute:!0})}else if(i&&/vimeo/g.test(i[3])){var o=new XMLHttpRequest;o.open("GET","https://vimeo.com/api/v2/video/"+i[6]+".json",!0),o.onreadystatechange=function(){if(4===this.readyState)if(this.status>=200&&this.status<400){var e=JSON.parse(this.responseText);r.css("background-image",'url("'+e[0].thumbnail_large+'")').show()}else m&&r.css("background-image",'url("images/no-video.jpg")').show()},o.send(),o=null,!e.fn.vimeo_player||m||e.isMobile()||e("> *:eq(1)",this).before('<div class="mbr-background-video"></div>').prev().vimeo_player({videoURL:t,containment:"self",showControls:!1,mute:!0})}}else m&&r.css("background-image",'url("images/video-placeholder.jpg")').show()})}e("html").addClass(e.isMobile()?"mobile":"desktop"),e(window).scroll(function(){e(".mbr-navbar--sticky").each(function(){var t=e(window).scrollTop()>10?"addClass":"removeClass";e(this)[t]("mbr-navbar--stuck").not(".mbr-navbar--open")[t]("mbr-navbar--short")})}),e.isMobile()&&navigator.userAgent.match(/Chrome/i)?function(t,i){var r=[t,t];r[i>t?0:1]=i,e(window).smartresize(function(){var t=e(window).height();e.inArray(t,r)<0&&(t=r[e(window).width()>t?1:0]),e(".mbr-section--full-height").css("height",t+"px")})}(e(window).width(),e(window).height()):g||(e(window).smartresize(function(){e(".mbr-section--full-height").css("height",e(window).height()+"px")}),e(document).on("add.cards",function(t){e("html").hasClass("mbr-site-loaded")&&e(t.target).outerFind(".mbr-section--full-height").length&&e(window).resize()})),e(window).smartresize(function(){e(".mbr-section--16by9").each(t)}),e(document).on("add.cards changeParameter.cards",function(i){var r=e(i.target).outerFind(".mbr-section--16by9");r.length?r.attr("data-16by9","true").each(t):e(i.target).outerFind("[data-16by9]").css("height","").removeAttr("data-16by9")}),e.fn.jarallax&&!e.isMobile()&&(e(window).on("update.parallax",function(t){setTimeout(function(){var t=e(".mbr-parallax-background");t.jarallax("coverImage"),t.jarallax("clipContainer"),t.jarallax("onScroll")},0)}),m?(e(document).on("add.cards",function(t){i(t.target),e(window).trigger("update.parallax")}),e(document).on("changeParameter.cards",function(t,n,o,a){if("bg"===n)switch(r(t.target),a){case"type":!0===o.parallax&&i(t.target);break;case"value":"image"===o.type&&!0===o.parallax&&i(t.target);break;case"parallax":!0===o.parallax&&i(t.target)}e(window).trigger("update.parallax")})):i(document.body),e(window).on("shown.bs.tab",function(t){e(window).trigger("update.parallax")}));var o,a,s=0,l=null,u=!e.isMobile();e(window).scroll(function(){a&&clearTimeout(a);var t=e(window).scrollTop(),i=t<=s||u;if(s=t,l){var r=t>l.breakPoint;i?r!=l.fixed&&(u?(l.fixed=r,e(l.elm).toggleClass("is-fixed")):a=setTimeout(function(){l.fixed=r,e(l.elm).toggleClass("is-fixed")},40)):(l.fixed=!1,e(l.elm).removeClass("is-fixed"))}}),e(document).on("add.cards delete.cards",function(t){o&&clearTimeout(o),o=setTimeout(function(){l&&(l.fixed=!1,e(l.elm).removeClass("is-fixed")),e(".mbr-fixed-top:first").each(function(){l={breakPoint:e(this).offset().top+3*e(this).height(),fixed:!1,elm:this},e(window).scroll()})},650)}),e(window).smartresize(function(){e(".mbr-embedded-video").each(function(){e(this).height(e(this).width()*parseInt(e(this).attr("height")||315)/parseInt(e(this).attr("width")||560))})}),e(document).on("add.cards",function(t){e("html").hasClass("mbr-site-loaded")&&e(t.target).outerFind("iframe").length&&e(window).resize()}),m?e(document).on("add.cards",function(e){n(e.target)}):n(document.body),e(document).on("changeParameter.cards",function(t,i,r,o){if("bg"===i)switch(o){case"type":e(t.target).find(".mbr-background-video-preview").remove(),"video"===r.type&&n(t.target);break;case"value":"video"===r.type&&(e(t.target).find(".mbr-background-video-preview").remove(),n(t.target))}}),m||e("body > *:not(style, script)").trigger("add.cards"),e("html").addClass("mbr-site-loaded"),e(window).resize().scroll(),m||e(document).click(function(t){try{var i=t.target;if(e(i).parents().hasClass("carousel"))return;do{if(i.hash){var r=/#bottom|#top/g.test(i.hash);e(r?"body":i.hash).each(function(){t.preventDefault();var r=e(".mbr-navbar--sticky").length?64:0,n="#bottom"==i.hash?e(this).height()-e(window).height():e(this).offset().top-r;e(this).hasClass("panel-collapse")||e(this).hasClass("tab-pane")||e("html, body").stop().animate({scrollTop:n},800,"easeInOutCubic")});break}}while(i=i.parentNode)}catch(t){}}),e(".cols-same-height .mbr-figure").each(function(){function t(){if(r.css({width:"",maxWidth:"",marginLeft:""}),a&&o){var e=a/o;i.addClass({position:"absolute",top:0,left:0,right:0,bottom:0});var t=n.height()/n.width();if(t>e){var s=100*(t-e)/e;r.css({width:s+100+"%",maxWidth:s+100+"%",marginLeft:-s/2+"%"})}}}var i=e(this),r=i.children("img"),n=i.parent(),o=r[0].width,a=r[0].height;r.one("load",function(){o=r[0].width,a=r[0].height,t()}),e(window).on("resize",t),t()})}),m||(e.fn.socialLikes&&e(document).on("add.cards",function(t){e(t.target).outerFind(".mbr-social-likes").on("counter.social-likes",function(t,i,r){r>999&&e(".social-likes__counter",t.target).html(Math.floor(r/1e3)+"k")}).socialLikes({initHtml:!1})}),e(document).on("add.cards",function(t){e(t.target).hasClass("mbr-reveal")&&e(t.target).footerReveal()}),e(document).ready(function(){function t(e){var t=0;do{t+=e.offsetTop||0,e=e.offsetParent}while(e);return t}function i(){var i=window.innerHeight,n=document.documentElement.scrollTop||document.body.scrollTop,o=n+i-50;e.each(r,function(){var i=e(this),r=i[0],a=r.offsetHeight,s=t(r);s+a>=n&&s<=o&&i.hasClass("hidden")&&i.removeClass("hidden").addClass("fadeInUp").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i.removeClass("animated fadeInUp")})})}if(!e.isMobile()&&e("input[name=animation]").length){e("input[name=animation]").remove();var r=e("p, h1, h2, h3, h4, h5, a, button, small, img, li, blockquote, .mbr-author-name, em, label, input, textarea, .input-group, .iconbox, .btn-social, .mbr-figure, .mbr-map, .mbr-testimonial .card-block, .mbr-price-value, .mbr-price-figure, .dataTable, .dataTables_info").not(function(){return e(this).parents().is(".navbar, .mbr-arrow, footer, .iconbox, .mbr-slider, .mbr-gallery, .mbr-testimonial .card-block, #cookiesdirective, .mbr-wowslider, .accordion, .tab-content, .engine, #scrollToTop")}).addClass("hidden animated"),n=e(window);n.on("scroll resize",i),n.trigger("scroll")}}),e(".nav-dropdown").length&&e(".nav-dropdown").swipe({swipeLeft:function(t,i,r,n,o){e(".navbar-close").click()}})),e(document).ready(function(){if(e(".mbr-arrow-up").length){var t=e("#scrollToTop"),i=e("body,html"),r=e(window);t.css("display","none"),r.scroll(function(){e(this).scrollTop()>0?t.fadeIn():t.fadeOut()}),t.click(function(){return i.animate({scrollTop:0},400),!1})}}),e(document).ready(function(){e(".counters").length&&e(".counters").viewportChecker({offset:200,callbackFunction:function(t,i){e("#"+t.attr("id")+" .count").each(function(){e(this).prop("Counter",0).animate({Counter:e(this).text()},{duration:3e3,easing:"swing",step:function(t){e(this).text(Math.ceil(t))}})})}})}),m||e(".mbr-arrow").on("click",function(t){var i=e(t.target).closest("section").next();i.hasClass("engine")&&(i=i.closest("section").next());var r=i.offset();e("html, body").stop().animate({scrollTop:r.top},800,"linear")}),e("nav.navbar").length){var v=e("nav.navbar").height();e(".mbr-after-navbar.mbr-fullscreen").css("padding-top",v+"px")}if(!m&&function(){return!!(window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))}()&&e(document).on("add.cards",function(t){var i=e(t.target);i.hasClass("mbr-fullscreen")&&e(window).on("load resize",function(){i.css("height","auto"),i.outerHeight()<=e(window).height()&&i.css("height","1px")}),(i.hasClass("mbr-slider")||i.hasClass("mbr-gallery"))&&(i.find(".carousel-indicators").addClass("ie-fix").find("li").css({display:"inline-block",width:"30px"}),i.hasClass("mbr-slider")&&i.find(".full-screen .slider-fullscreen-image").css("height","1px"))}),e(document).ready(function(){if(!m){var t=function(t){var i=e(t).parents("section").find("iframe")[0],r=e(i).attr("src");if(t.parents("section").css("z-index","1"),-1!==r.indexOf("youtu")&&i.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"),-1!==r.indexOf("vimeo")){var n=new Vimeo.Player(e(i));n.play()}e(t).parents("section").find(e(t).attr("data-modal")).css("display","table").click(function(){-1!==r.indexOf("youtu")&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),-1!==r.indexOf("vimeo")&&n.pause(),e(this).css("display","none").off("click"),t.parents("section").css("z-index","0")})};e(".modalWindow-video iframe").each(function(){var t=e(this).attr("data-src");e(this).removeAttr("data-src");var i=t.match(/(http:\/\/|https:\/\/|)?(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/);-1!==t.indexOf("youtu")?e(this).attr("src","https://youtube.com/embed/"+i[6]+"?rel=0&enablejsapi=1"):-1!==t.indexOf("vimeo")&&e(this).attr("src","https://player.vimeo.com/video/"+i[6]+"?autoplay=0&loop=0")}),e("[data-modal]").click(function(){t(e(this))})}}),!m&&!e.isMobile()){var y=e("section.menu"),b=e(window).width();y.find(".navbar").hasClass("collapsed")||b>991&&(y.find("ul.navbar-nav li.dropdown").hover(function(){e(this).hasClass("open")||e(this).find("a")[0].click()},function(){e(this).hasClass("open")&&e(this).find("a")[0].click()}),y.find("ul.navbar-nav li.dropdown .dropdown-menu .dropdown").hover(function(){e(this).hasClass("open")||e(this).find("a")[0].click()},function(){e(this).hasClass("open")&&e(this).find("a")[0].click()}))}m?e(document).on("add.cards",function(i){e(".pie_progress").length&&t(i.target)}).on("delete.cards",function(t){e(t.target).find(".pie_progress").asPieProgress("destroy")}).on("changeParameter.cards",function(t,r){0==r.indexOf("progress")&&e(".pie_progress").length&&i(t.target,r)}):e(".pie_progress").length&&t(document.body),m?e(document).on("add.cards",function(t){0!=e(".countdown").length&&r()}).on("changeParameter.cards",function(e,t,i){"countdown"===t&&n(e.target,i)}):0!=e(".countdown").length&&r(),m&&e(document).on("add.cards",function(){0!=e(".flip-card").length&&o()}),m?e(document).on("add.cards",function(e){a(e.target)}):a(document.body),m?e(document).on("add.cards",function(t){0!=e(".testimonials-slider").length&&l(t.target)}).on("changeParameter.cards",function(t,i,r){"testimonialsSlides"===i&&0==e(t.target).find(".carousel-item.active").length&&s(t.target)}):0!=e(".testimonials-slider").length&&e(".testimonials-slider").each(function(){l(this)}),m||(e(document).ready(function(){0!=e(".accordionStyles").length&&e('.accordionStyles .card-header a[role="button"]').each(function(){e(this).hasClass("collapsed")||e(this).addClass("collapsed")})}),e('.accordionStyles .card-header a[role="button"]').click(function(){var t=e(this).closest(".accordionStyles").attr("id");if(!e(this).closest(".card").find(".panel-collapse").hasClass("collapsing"))if(-1!=t.indexOf("toggle"))e(this).hasClass("collapsed")?e(this).find("span.sign").removeClass("mbri-arrow-down").addClass("mbri-arrow-up"):e(this).find("span.sign").removeClass("mbri-arrow-up").addClass("mbri-arrow-down");else if(-1!=t.indexOf("accordion")){var i=e(this).closest(".accordionStyles ");i.children(".card").each(function(){e(this).find("span.sign").removeClass("mbri-arrow-up").addClass("mbri-arrow-down")}),e(this).hasClass("collapsed")&&e(this).find("span.sign").removeClass("mbri-arrow-down").addClass("mbri-arrow-up")}})),m?e(document).on("add.cards",function(t){e(t.target).hasClass("clients")&&(l(t.target),u(t.target),"add"===t.type&&e(t.target).on("slide.bs.carousel",function(){c(t.target)}),e(t.target).find(".carousel-item [mbr-media]").on("click",function(e){d(e)}),e(t.target).on("slide.bs.carousel",function(){e(t.target).find(".carousel-item .clonedCol [mbr-media]").off("click").on("click",function(e){d(e)})}))}).on("changeParameter.cards",function(t,i,r){"slidesCount"==i&&0==e(t.target).find(".carousel-item.active").length&&s(t.target),u(t.target),c(t.target),e(t.target).find(".carousel-item [mbr-media]").on("click",function(e){d(e)}),e(t.target).on("slide.bs.carousel",function(){e(t.target).find(".carousel-item .clonedCol [mbr-media]").off("click").on("click",function(e){d(e)})})}).on("changeContent.cards",function(t,i){c(t.target);try{e(t.target).closest(".carousel").carousel("next")}catch(e){}}):e(document.body).find(".clients").each(function(t,i){l(e(this)),u(e(this))}),m?e(document).on("add.cards",function(t){e(t.target).hasClass("section-table")&&h(t.target)}).on("changeParameter.cards",function(e,t){"tableColumns"!=t&&"tableRows"!=t||h(e.target)}):0!=e(document).find("section.section-table").length&&e("section.section-table").each(function(){var t=e(this).find("table").is(".isSearch");if(t){var i=e(this).find(".dataTables_info span.infoBefore").text(),r=e(this).find(".dataTables_info span.infoAfter").text(),n=e(this).find(".dataTables_info span.infoFilteredBefore").text(),o=e(this).find(".dataTables_info span.infoFilteredAfter").text();searchText=e(this).find(".dataTables_filter label.searchInfo").text(),infoClasses=e(this).find(".dataTables_info").attr("class").split(/\s/),searchClasses=e(this).find(".dataTables_filter label.searchInfo").attr("class").split(/\s/),displayInfoFont=f(infoClasses),displayFilterFont=f(searchClasses),e(this).find(".row.search").remove(),e(this).find(".table-wrapper .scroll").removeClass("scroll"),e(this).find(".row.info").remove(),p(e(this),t,searchText,i,r,n,o),e(this).find(".dataTables_info").addClass(displayInfoFont),e(this).find(".dataTables_filter label").addClass(displayFilterFont)}else e(this).find(".row.search").remove(),e(this).find(".table-wrapper .scroll").removeClass("scroll"),e(this).find(".row.info").remove(),p(e(this),t)}),m||0!=e("section.popup-btn-cards").length&&e("section.popup-btn-cards .card-wrapper").each(function(t,i){e(this).addClass("popup-btn")})}(jQuery),function(){try{document.getElementsByClassName("engine")[0].getElementsByTagName("a")[0].removeAttribute("rel")}catch(e){}if(!document.getElementById("top-1")){var e=document.createElement("section");e.id="top-1",e.className="engine",e.innerHTML='<a href="https://mobirise.info">Mobirise</a> Mobirise v4.3.0',document.body.insertBefore(e,document.body.childNodes[0])}}(),function(){"use strict";function e(e){if("false"===e)return!1;var t=e.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/);return t&&/youtube/g.test(t[3])?"youtube":!(!t||!/vimeo/g.test(t[3]))&&"vimeo"}function t(e){if("false"===e)return!1;var t=e.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/);return!!t&&t[6]}function i(e,t){return"https://img.youtube.com/vi/"+e+"/"+(t||"")+"default.jpg"}function r(e,t){var i=new XMLHttpRequest;i.open("GET","https://vimeo.com/api/v2/video/"+e+".json",!0),i.onreadystatechange=function(){if(4===this.readyState&&this.status>=200&&this.status<400){var e=JSON.parse(this.responseText);t(e[0].thumbnail_large)}},i.send(),i=null}var n=function(){var e={};return function(t){var r=$.Deferred();return t in e?e[t]?r.resolve(e[t]):r.reject("Preview image not found."):$("<img>").on("load",function(){if(120===(this.naturalWidth||this.width)){var i=this.src.split("/").pop();switch(i){case"maxresdefault.jpg":this.src=this.src.replace(i,"sddefault.jpg");break;case"sddefault.jpg":this.src=this.src.replace(i,"hqdefault.jpg");break;case"hqdefault.jpg":this.src=this.src.replace(i,"default.jpg");break;default:e[t]=null,r.reject("Preview image not found.")}}else r.resolve(e[t]=this.src)}).attr("src",i(t,"maxres")),r}}();$("html").hasClass("is-builder")||$(document).on("add.cards",function(i){if($(i.target).hasClass("carousel")){var o=$("html").hasClass("desktop");$(i.target).outerFind("[data-bg-video-slide]").each(function(){var i=t($(this).attr("data-bg-video-slide"));if(i){var a=$('<div class="mbr-background-video-preview"></div>').css({display:"none",backgroundSize:"cover",backgroundPosition:"center"});$(".container-slide",this).before(a);var s=e($(this).attr("data-bg-video-slide")),l=$(this).find(".mbr-overlay");"youtube"===s?(n(i).done(function(e){a.css("background-image",'url("'+e+'")').show()}),o&&$.fn.YTPlayer&&!$(this).find(".playerBox").length&&($(".container-slide",this).before('<div class="mbr-background-video"></div>').prev().YTPlayer({videoURL:i,containment:"self",showControls:!1,mute:!0}),l.length&&$(".YTPOverlay",this).css({opacity:l.css("opacity"),backgroundColor:l.css("background-color")}),$(this).find(".image_wrapper img").css("opacity","0"),$(this).find(".image_wrapper .mbr-overlay").css("opacity","0"))):(r(i,function(e){a.css("background-image",'url("'+e+'")').show()}),o&&$.fn.vimeo_player&&!$(this).find(".playerBox").length&&($(".container-slide",this).before('<div class="mbr-background-video"></div>').prev().vimeo_player({videoURL:i,containment:"self",showControls:!1,mute:!0}),l.length&&$(".vimeo_player_overlay",this).css({opacity:l.css("opacity"),backgroundColor:l.css("background-color")})))}}),$(i.target).find(".carousel-item iframe").css({transitionProperty:"opacity",transitionDuration:"1000ms"}),$(this).on("slide.bs.carousel","section.carousel",function(e){$(e.target).find(".carousel-item.active .mb_YTPlayer").each(function(){$(this).YTPPause()}),$(e.target).find(".carousel-item.active .vimeo_player").each(function(){
  $(this).v_pause()}),$(e.target).find(".carousel-item:not(.active) iframe").css("opacity",0)}),$(this).on("slid.bs.carousel","section.carousel",function(e){$(e.target).find(".carousel-item.active .mb_YTPlayer").each(function(){$(this).YTPPlay()}),$(e.target).find(".carousel-item.active .vimeo_player").each(function(){$(this).v_play()}),$(e.target).find(".carousel-item.active iframe").resize().css("opacity",1)})}})}();