+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.2";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=n("body").height();if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.2";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;(u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function r(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var r=n(this),i=u(r),f={relatedTarget:this};i.hasClass("open")&&((i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented())||(r.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function o(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.2";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&o.find(i).trigger("focus"),e.trigger("click");(h=" li:not(.divider):visible a",f=o.find('[role="menu"]'+h+', [role="listbox"]'+h),f.length)&&(r=f.index(t.target),t.which==38&&r>0&&r--,t.which==40&&r<f.length-1&&r++,~r||(r=0),f.eq(r).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=o;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',t.prototype.keydown)}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.2";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i&&i.$tip&&i.$tip.is(":visible")){i.hoverState="in";return}if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;if(y){var w=i,b=this.options.container?n(this.options.container):this.$element.parent(),e=this.getPosition(b);i=i=="bottom"&&f.bottom+s>e.bottom?"top":i=="top"&&f.top-s<e.top?"bottom":i=="right"&&f.right+o>e.width?"left":i=="left"&&f.left-o<e.left?"right":i;r.removeClass(w).addClass(i)}p=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(p,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n=="out"&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;i=="top"&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function e(){r.hoverState!="in"&&u.detach();r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type);i&&i()}var r=this,u=this.tip(),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return u.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?u.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r=u.tagName=="BODY",i=u.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.width&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type)})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.2";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.options.backdrop&&r.adjustBackdrop();r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in").attr("aria-hidden",!1);r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$element.find(".modal-dialog").one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}};t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n('<div class="modal-backdrop '+f+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop();this.adjustDialog()};t.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.2";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t=t+"Text";u.resetText==null&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](u[t]==null?this.options[t]:u[t]);t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.2";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));this.options.pause!="hover"||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.2";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r=n=="prev"?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function t(i,r){var u=n.proxy(this.process,this);this.$body=n("body");this.$scrollElement=n(i).is("body")?n(window):n(i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",u);this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})}t.VERSION="3.3.2";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var i="offset",r=0,t;n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();t=this;this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&i=="show"&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n(this.options.trigger).filter('[href="#'+i.id+'"], [data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.2";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":n.extend({},u.data(),{trigger:this});i.call(f,o)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.2";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu")&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);!function(n){var t={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0}};n.fn.bxSlider=function(i){if(0===this.length)return this;if(this.length>1)return this.each(function(){n(this).bxSlider(i)}),this;var r={},u=this,b=n(window).width(),k=n(window).height();if(!n(u).data("bxSlider")){var d=function(){n(u).data("bxSlider")||(r.settings=n.extend({},t,i),r.settings.slideWidth=parseInt(r.settings.slideWidth),r.children=u.children(r.settings.slideSelector),r.children.length<r.settings.minSlides&&(r.settings.minSlides=r.children.length),r.children.length<r.settings.maxSlides&&(r.settings.maxSlides=r.children.length),r.settings.randomStart&&(r.settings.startSlide=Math.floor(Math.random()*r.children.length)),r.active={index:r.settings.startSlide},r.carousel=r.settings.minSlides>1||r.settings.maxSlides>1?!0:!1,r.carousel&&(r.settings.preloadImages="all"),r.minThreshold=r.settings.minSlides*r.settings.slideWidth+(r.settings.minSlides-1)*r.settings.slideMargin,r.maxThreshold=r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin,r.working=!1,r.controls={},r.interval=null,r.animProp="vertical"===r.settings.mode?"top":"left",r.usingCSS=r.settings.useCSS&&"fade"!==r.settings.mode&&function(){for(var i=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],n=0;n<t.length;n++)if(void 0!==i.style[t[n]])return r.cssPrefix=t[n].replace("Perspective","").toLowerCase(),r.animProp="-"+r.cssPrefix+"-transform",!0;return!1}(),"vertical"===r.settings.mode&&(r.settings.maxSlides=r.settings.minSlides),u.data("origStyle",u.attr("style")),u.children(r.settings.slideSelector).each(function(){n(this).data("origStyle",n(this).attr("style"))}),st())},st=function(){var t=r.children.eq(r.settings.startSlide);u.wrap('<div class="'+r.settings.wrapperClass+'"><div class="bx-viewport"><\/div><\/div>');r.viewport=u.parent();r.settings.ariaLive&&!r.settings.ticker&&r.viewport.attr("aria-live","polite");r.loader=n('<div class="bx-loading" />');r.viewport.prepend(r.loader);u.css({width:"horizontal"===r.settings.mode?1e3*r.children.length+215+"%":"auto",position:"relative"});r.usingCSS&&r.settings.easing?u.css("-"+r.cssPrefix+"-transition-timing-function",r.settings.easing):r.settings.easing||(r.settings.easing="swing");r.viewport.css({width:"100%",overflow:"hidden",position:"relative"});r.viewport.parent().css({maxWidth:lt()});r.settings.pager||r.settings.controls||r.viewport.parent().css({margin:"0 auto 0px"});r.children.css({float:"horizontal"===r.settings.mode?"left":"none",listStyle:"none",position:"relative"});r.children.css("width",g());"horizontal"===r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginRight",r.settings.slideMargin);"vertical"===r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginBottom",r.settings.slideMargin);"fade"===r.settings.mode&&(r.children.css({position:"absolute",zIndex:0,display:"none"}),r.children.eq(r.settings.startSlide).css({zIndex:r.settings.slideZIndex,display:"block"}));r.controls.el=n('<div class="bx-controls" />');r.settings.captions&&pt();r.active.last=r.settings.startSlide===e()-1;r.settings.video&&u.fitVids();("all"===r.settings.preloadImages||r.settings.ticker)&&(t=r.children);r.settings.ticker?r.settings.pager=!1:(r.settings.controls&&vt(),r.settings.auto&&r.settings.autoControls&&yt(),r.settings.pager&&at(),(r.settings.controls||r.settings.autoControls||r.settings.pager)&&r.viewport.after(r.controls.el));ht(t,ct)},ht=function(t,i){var r=t.find('img:not([src=""]), iframe').length,u=0;return 0===r?void i():void t.find('img:not([src=""]), iframe').each(function(){n(this).one("load error",function(){++u===r&&i()}).each(function(){this.complete&&n(this).load()})})},ct=function(){if(r.settings.infiniteLoop&&"fade"!==r.settings.mode&&!r.settings.ticker){var t="vertical"===r.settings.mode?r.settings.minSlides:r.settings.maxSlides,i=r.children.slice(0,t).clone(!0).addClass("bx-clone"),f=r.children.slice(-t).clone(!0).addClass("bx-clone");r.settings.ariaHidden&&(i.attr("aria-hidden",!0),f.attr("aria-hidden",!0));u.append(i).prepend(f)}r.loader.remove();nt();"vertical"===r.settings.mode&&(r.settings.adaptiveHeight=!0);r.viewport.height(h());u.redrawSlider();r.settings.onSliderLoad.call(u,r.active.index);r.initialized=!0;r.settings.responsive&&n(window).bind("resize",w);r.settings.auto&&r.settings.autoStart&&(e()>1||r.settings.autoSlideForOnePage)&&dt();r.settings.ticker&&gt();r.settings.pager&&l(r.settings.startSlide);r.settings.controls&&ut();r.settings.touchEnabled&&!r.settings.ticker&&ti();r.settings.keyboardEnabled&&!r.settings.ticker&&n(document).keydown(ft)},h=function(){var i=u.outerHeight(),e=null,t=n(),f;if("vertical"===r.settings.mode||r.settings.adaptiveHeight)if(r.carousel)for(e=1===r.settings.moveSlides?r.active.index:r.active.index*o(),t=r.children.eq(e),f=1;f<=r.settings.maxSlides-1;f++)t=e+f>=r.children.length?t.add(r.children.eq(e+f-r.children.length)):t.add(r.children.eq(e+f));else t=r.children.eq(r.active.index);else t=r.children;return"vertical"===r.settings.mode?(t.each(function(){i+=n(this).outerHeight()}),r.settings.slideMargin>0&&(i+=r.settings.slideMargin*(r.settings.minSlides-1))):i=Math.max.apply(Math,t.map(function(){return n(this).outerHeight(!1)}).get()),"border-box"===r.viewport.css("box-sizing")?i+=parseFloat(r.viewport.css("padding-top"))+parseFloat(r.viewport.css("padding-bottom"))+parseFloat(r.viewport.css("border-top-width"))+parseFloat(r.viewport.css("border-bottom-width")):"padding-box"===r.viewport.css("box-sizing")&&(i+=parseFloat(r.viewport.css("padding-top"))+parseFloat(r.viewport.css("padding-bottom"))),i},lt=function(){var n="100%";return r.settings.slideWidth>0&&(n="horizontal"===r.settings.mode?r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin:r.settings.slideWidth),n},g=function(){var t=r.settings.slideWidth,n=r.viewport.width();if(0===r.settings.slideWidth||r.settings.slideWidth>n&&!r.carousel||"vertical"===r.settings.mode)t=n;else if(r.settings.maxSlides>1&&"horizontal"===r.settings.mode){if(n>r.maxThreshold)return t;n<r.minThreshold?t=(n-r.settings.slideMargin*(r.settings.minSlides-1))/r.settings.minSlides:r.settings.shrinkItems&&(t=Math.floor((n+r.settings.slideMargin)/Math.ceil((n+r.settings.slideMargin)/(t+r.settings.slideMargin))-r.settings.slideMargin))}return t},s=function(){var n=1,t=null;return"horizontal"===r.settings.mode&&r.settings.slideWidth>0?r.viewport.width()<r.minThreshold?n=r.settings.minSlides:r.viewport.width()>r.maxThreshold?n=r.settings.maxSlides:(t=r.children.first().width()+r.settings.slideMargin,n=Math.floor((r.viewport.width()+r.settings.slideMargin)/t)):"vertical"===r.settings.mode&&(n=r.settings.minSlides),n},e=function(){var n=0,t=0,i=0;if(r.settings.moveSlides>0)if(r.settings.infiniteLoop)n=Math.ceil(r.children.length/o());else for(;t<r.children.length;)++n,t=i+s(),i+=r.settings.moveSlides<=s()?r.settings.moveSlides:s();else n=Math.ceil(r.children.length/s());return n},o=function(){return r.settings.moveSlides>0&&r.settings.moveSlides<=s()?r.settings.moveSlides:s()},nt=function(){var n,t,i;r.children.length>r.settings.maxSlides&&r.active.last&&!r.settings.infiniteLoop?"horizontal"===r.settings.mode?(t=r.children.last(),n=t.position(),f(-(n.left-(r.viewport.width()-t.outerWidth())),"reset",0)):"vertical"===r.settings.mode&&(i=r.children.length-r.settings.minSlides,n=r.children.eq(i).position(),f(-n.top,"reset",0)):(n=r.children.eq(r.active.index*o()).position(),r.active.index===e()-1&&(r.active.last=!0),void 0!==n&&("horizontal"===r.settings.mode?f(-n.left,"reset",0):"vertical"===r.settings.mode&&f(-n.top,"reset",0)))},f=function(t,i,e,o){var s,h;r.usingCSS?(h="vertical"===r.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",u.css("-"+r.cssPrefix+"-transition-duration",e/1e3+"s"),"slide"===i?(u.css(r.animProp,h),u.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){n(t.target).is(u)&&(u.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),a())})):"reset"===i?u.css(r.animProp,h):"ticker"===i&&(u.css("-"+r.cssPrefix+"-transition-timing-function","linear"),u.css(r.animProp,h),u.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){n(t.target).is(u)&&(u.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),f(o.resetValue,"reset",0),c())}))):(s={},s[r.animProp]=t,"slide"===i?u.animate(s,e,r.settings.easing,function(){a()}):"reset"===i?u.css(r.animProp,t):"ticker"===i&&u.animate(s,e,"linear",function(){f(o.resetValue,"reset",0);c()}))},tt=function(){for(var u="",i="",f=e(),t=0;f>t;t++)i="",r.settings.buildPager&&n.isFunction(r.settings.buildPager)||r.settings.pagerCustom?(i=r.settings.buildPager(t),r.pagerEl.addClass("bx-custom-pager")):(i=t+1,r.pagerEl.addClass("bx-default-pager")),u+='<div class="bx-pager-item"><a href="" data-slide-index="'+t+'" class="bx-pager-link">'+i+"<\/a><\/div>";r.pagerEl.html(u)},at=function(){r.settings.pagerCustom?r.pagerEl=n(r.settings.pagerCustom):(r.pagerEl=n('<div class="bx-pager" />'),r.settings.pagerSelector?n(r.settings.pagerSelector).html(r.pagerEl):r.controls.el.addClass("bx-has-pager").append(r.pagerEl),tt());r.pagerEl.on("click touchend","a",kt)},vt=function(){r.controls.next=n('<a class="bx-next" href="">'+r.settings.nextText+"<\/a>");r.controls.prev=n('<a class="bx-prev" href="">'+r.settings.prevText+"<\/a>");r.controls.next.bind("click touchend",it);r.controls.prev.bind("click touchend",rt);r.settings.nextSelector&&n(r.settings.nextSelector).append(r.controls.next);r.settings.prevSelector&&n(r.settings.prevSelector).append(r.controls.prev);r.settings.nextSelector||r.settings.prevSelector||(r.controls.directionEl=n('<div class="bx-controls-direction" />'),r.controls.directionEl.append(r.controls.prev).append(r.controls.next),r.controls.el.addClass("bx-has-controls-direction").append(r.controls.directionEl))},yt=function(){r.controls.start=n('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+r.settings.startText+"<\/a><\/div>");r.controls.stop=n('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+r.settings.stopText+"<\/a><\/div>");r.controls.autoEl=n('<div class="bx-controls-auto" />');r.controls.autoEl.on("click",".bx-start",wt);r.controls.autoEl.on("click",".bx-stop",bt);r.settings.autoControlsCombine?r.controls.autoEl.append(r.controls.start):r.controls.autoEl.append(r.controls.start).append(r.controls.stop);r.settings.autoControlsSelector?n(r.settings.autoControlsSelector).html(r.controls.autoEl):r.controls.el.addClass("bx-has-controls-auto").append(r.controls.autoEl);v(r.settings.autoStart?"stop":"start")},pt=function(){r.children.each(function(){var t=n(this).find("img:first").attr("title");void 0!==t&&(""+t).length&&n(this).append('<div class="bx-caption"><span>'+t+"<\/span><\/div>")})},it=function(n){n.preventDefault();r.controls.el.hasClass("disabled")||(r.settings.auto&&r.settings.stopAutoOnClick&&u.stopAuto(),u.goToNextSlide())},rt=function(n){n.preventDefault();r.controls.el.hasClass("disabled")||(r.settings.auto&&r.settings.stopAutoOnClick&&u.stopAuto(),u.goToPrevSlide())},wt=function(n){u.startAuto();n.preventDefault()},bt=function(n){u.stopAuto();n.preventDefault()},kt=function(t){var i,f;t.preventDefault();r.controls.el.hasClass("disabled")||(r.settings.auto&&r.settings.stopAutoOnClick&&u.stopAuto(),i=n(t.currentTarget),void 0!==i.attr("data-slide-index")&&(f=parseInt(i.attr("data-slide-index")),f!==r.active.index&&u.goToSlide(f)))},l=function(t){var i=r.children.length;return"short"===r.settings.pagerType?(r.settings.maxSlides>1&&(i=Math.ceil(r.children.length/r.settings.maxSlides)),void r.pagerEl.html(t+1+r.settings.pagerShortSeparator+i)):(r.pagerEl.find("a").removeClass("active"),void r.pagerEl.each(function(i,r){n(r).find("a").eq(t).addClass("active")}))},a=function(){if(r.settings.infiniteLoop){var n="";0===r.active.index?n=r.children.eq(0).position():r.active.index===e()-1&&r.carousel?n=r.children.eq((e()-1)*o()).position():r.active.index===r.children.length-1&&(n=r.children.eq(r.children.length-1).position());n&&("horizontal"===r.settings.mode?f(-n.left,"reset",0):"vertical"===r.settings.mode&&f(-n.top,"reset",0))}r.working=!1;r.settings.onSlideAfter.call(u,r.children.eq(r.active.index),r.oldIndex,r.active.index)},v=function(n){r.settings.autoControlsCombine?r.controls.autoEl.html(r.controls[n]):(r.controls.autoEl.find("a").removeClass("active"),r.controls.autoEl.find("a:not(.bx-"+n+")").addClass("active"))},ut=function(){1===e()?(r.controls.prev.addClass("disabled"),r.controls.next.addClass("disabled")):!r.settings.infiniteLoop&&r.settings.hideControlOnEnd&&(0===r.active.index?(r.controls.prev.addClass("disabled"),r.controls.next.removeClass("disabled")):r.active.index===e()-1?(r.controls.next.addClass("disabled"),r.controls.prev.removeClass("disabled")):(r.controls.prev.removeClass("disabled"),r.controls.next.removeClass("disabled")))},dt=function(){r.settings.autoDelay>0?setTimeout(u.startAuto,r.settings.autoDelay):(u.startAuto(),n(window).focus(function(){u.startAuto()}).blur(function(){u.stopAuto()}));r.settings.autoHover&&u.hover(function(){r.interval&&(u.stopAuto(!0),r.autoPaused=!0)},function(){r.autoPaused&&(u.startAuto(!0),r.autoPaused=null)})},gt=function(){var o,l,s,a,i,h,e,t,v=0;"next"===r.settings.autoDirection?u.append(r.children.clone().addClass("bx-clone")):(u.prepend(r.children.clone().addClass("bx-clone")),o=r.children.first().position(),v="horizontal"===r.settings.mode?-o.left:-o.top);f(v,"reset",0);r.settings.pager=!1;r.settings.controls=!1;r.settings.autoControls=!1;r.settings.tickerHover&&(r.usingCSS?(a="horizontal"===r.settings.mode?4:5,r.viewport.hover(function(){l=u.css("-"+r.cssPrefix+"-transform");s=parseFloat(l.split(",")[a]);f(s,"reset",0)},function(){t=0;r.children.each(function(){t+="horizontal"===r.settings.mode?n(this).outerWidth(!0):n(this).outerHeight(!0)});i=r.settings.speed/t;h="horizontal"===r.settings.mode?"left":"top";e=i*(t-Math.abs(parseInt(s)));c(e)})):r.viewport.hover(function(){u.stop()},function(){t=0;r.children.each(function(){t+="horizontal"===r.settings.mode?n(this).outerWidth(!0):n(this).outerHeight(!0)});i=r.settings.speed/t;h="horizontal"===r.settings.mode?"left":"top";e=i*(t-Math.abs(parseInt(u.css(h))));c(e)}));c()},c=function(n){var e,o,s,h=n?n:r.settings.speed,t={left:0,top:0},i={left:0,top:0};"next"===r.settings.autoDirection?t=u.find(".bx-clone").first().position():i=r.children.first().position();e="horizontal"===r.settings.mode?-t.left:-t.top;o="horizontal"===r.settings.mode?-i.left:-i.top;s={resetValue:o};f(e,"ticker",h,s)},ni=function(t){var u=n(window),i={top:u.scrollTop(),left:u.scrollLeft()},r=t.offset();return i.right=i.left+u.width(),i.bottom=i.top+u.height(),r.right=r.left+t.outerWidth(),r.bottom=r.top+t.outerHeight(),!(i.right<r.left||i.left>r.right||i.bottom<r.top||i.top>r.bottom)},ft=function(n){var t=document.activeElement.tagName.toLowerCase(),i=new RegExp(t,["i"]),r=i.exec("input|textarea");if(null==r&&ni(u)){if(39===n.keyCode)return it(n),!1;if(37===n.keyCode)return rt(n),!1}},ti=function(){r.touch={start:{x:0,y:0},end:{x:0,y:0}};r.viewport.bind("touchstart MSPointerDown pointerdown",ii);r.viewport.on("click",".bxslider a",function(n){r.viewport.hasClass("click-disabled")&&(n.preventDefault(),r.viewport.removeClass("click-disabled"))})},ii=function(n){if(r.controls.el.addClass("disabled"),r.working)n.preventDefault(),r.controls.el.removeClass("disabled");else{r.touch.originalPos=u.position();var t=n.originalEvent,i="undefined"!=typeof t.changedTouches?t.changedTouches:[t];r.touch.start.x=i[0].pageX;r.touch.start.y=i[0].pageY;r.viewport.get(0).setPointerCapture&&(r.pointerId=t.pointerId,r.viewport.get(0).setPointerCapture(r.pointerId));r.viewport.bind("touchmove MSPointerMove pointermove",y);r.viewport.bind("touchend MSPointerUp pointerup",p);r.viewport.bind("MSPointerCancel pointercancel",et)}},et=function(){f(r.touch.originalPos.left,"reset",0);r.controls.el.removeClass("disabled");r.viewport.unbind("MSPointerCancel pointercancel",et);r.viewport.unbind("touchmove MSPointerMove pointermove",y);r.viewport.unbind("touchend MSPointerUp pointerup",p);r.viewport.get(0).releasePointerCapture&&r.viewport.get(0).releasePointerCapture(r.pointerId)},y=function(n){var u=n.originalEvent,t="undefined"!=typeof u.changedTouches?u.changedTouches:[u],o=Math.abs(t[0].pageX-r.touch.start.x),s=Math.abs(t[0].pageY-r.touch.start.y),e=0,i=0;3*o>s&&r.settings.preventDefaultSwipeX?n.preventDefault():3*s>o&&r.settings.preventDefaultSwipeY&&n.preventDefault();"fade"!==r.settings.mode&&r.settings.oneToOneTouch&&("horizontal"===r.settings.mode?(i=t[0].pageX-r.touch.start.x,e=r.touch.originalPos.left+i):(i=t[0].pageY-r.touch.start.y,e=r.touch.originalPos.top+i),f(e,"reset",0))},p=function(n){r.viewport.unbind("touchmove MSPointerMove pointermove",y);r.controls.el.removeClass("disabled");var e=n.originalEvent,o="undefined"!=typeof e.changedTouches?e.changedTouches:[e],i=0,t=0;r.touch.end.x=o[0].pageX;r.touch.end.y=o[0].pageY;"fade"===r.settings.mode?(t=Math.abs(r.touch.start.x-r.touch.end.x),t>=r.settings.swipeThreshold&&(r.touch.start.x>r.touch.end.x?u.goToNextSlide():u.goToPrevSlide(),u.stopAuto())):("horizontal"===r.settings.mode?(t=r.touch.end.x-r.touch.start.x,i=r.touch.originalPos.left):(t=r.touch.end.y-r.touch.start.y,i=r.touch.originalPos.top),!r.settings.infiniteLoop&&(0===r.active.index&&t>0||r.active.last&&0>t)?f(i,"reset",200):Math.abs(t)>=r.settings.swipeThreshold?(0>t?u.goToNextSlide():u.goToPrevSlide(),u.stopAuto()):f(i,"reset",200));r.viewport.unbind("touchend MSPointerUp pointerup",p);r.viewport.get(0).releasePointerCapture&&r.viewport.get(0).releasePointerCapture(r.pointerId)},w=function(){if(r.initialized)if(r.working)window.setTimeout(w,10);else{var t=n(window).width(),i=n(window).height();(b!==t||k!==i)&&(b=t,k=i,u.redrawSlider(),r.settings.onSliderResize.call(u,r.active.index))}},ot=function(n){var t=s();r.settings.ariaHidden&&!r.settings.ticker&&(r.children.attr("aria-hidden","true"),r.children.slice(n,n+t).attr("aria-hidden","false"))};return u.goToSlide=function(t,i){var y,p,w,b,c=!0,k=0,s={left:0,top:0},v=null;if(!r.working&&r.active.index!==t){if((r.working=!0,r.oldIndex=r.active.index,r.active.index=0>t?e()-1:t>=e()?0:t,c=r.settings.onSlideBefore.call(u,r.children.eq(r.active.index),r.oldIndex,r.active.index),"undefined"!=typeof c&&!c)||("next"===i?r.settings.onSlideNext.call(u,r.children.eq(r.active.index),r.oldIndex,r.active.index)||(c=!1):"prev"===i&&(r.settings.onSlidePrev.call(u,r.children.eq(r.active.index),r.oldIndex,r.active.index)||(c=!1)),"undefined"!=typeof c&&!c))return r.active.index=r.oldIndex,void(r.working=!1);r.active.last=r.active.index>=e()-1;(r.settings.pager||r.settings.pagerCustom)&&l(r.active.index);r.settings.controls&&ut();"fade"===r.settings.mode?(r.settings.adaptiveHeight&&r.viewport.height()!==h()&&r.viewport.animate({height:h()},r.settings.adaptiveHeightSpeed),r.children.filter(":visible").fadeOut(r.settings.speed).css({zIndex:0}),r.children.eq(r.active.index).css("zIndex",r.settings.slideZIndex+1).fadeIn(r.settings.speed,function(){n(this).css("zIndex",r.settings.slideZIndex);a()})):(r.settings.adaptiveHeight&&r.viewport.height()!==h()&&r.viewport.animate({height:h()},r.settings.adaptiveHeightSpeed),!r.settings.infiniteLoop&&r.carousel&&r.active.last?"horizontal"===r.settings.mode?(v=r.children.eq(r.children.length-1),s=v.position(),k=r.viewport.width()-v.outerWidth()):(y=r.children.length-r.settings.minSlides,s=r.children.eq(y).position()):r.carousel&&r.active.last&&"prev"===i?(p=1===r.settings.moveSlides?r.settings.maxSlides-o():(e()-1)*o()-(r.children.length-r.settings.maxSlides),v=u.children(".bx-clone").eq(p),s=v.position()):"next"===i&&0===r.active.index?(s=u.find("> .bx-clone").eq(r.settings.maxSlides).position(),r.active.last=!1):t>=0&&(b=t*o(),s=r.children.eq(b).position()),void 0!==typeof s&&(w="horizontal"===r.settings.mode?-(s.left-k):-s.top,f(w,"slide",r.settings.speed)));r.settings.ariaHidden&&ot(r.active.index*o())}},u.goToNextSlide=function(){if(r.settings.infiniteLoop||!r.active.last){var n=parseInt(r.active.index)+1;u.goToSlide(n,"next")}},u.goToPrevSlide=function(){if(r.settings.infiniteLoop||0!==r.active.index){var n=parseInt(r.active.index)-1;u.goToSlide(n,"prev")}},u.startAuto=function(n){r.interval||(r.interval=setInterval(function(){"next"===r.settings.autoDirection?u.goToNextSlide():u.goToPrevSlide()},r.settings.pause),r.settings.autoControls&&n!==!0&&v("stop"))},u.stopAuto=function(n){r.interval&&(clearInterval(r.interval),r.interval=null,r.settings.autoControls&&n!==!0&&v("start"))},u.getCurrentSlide=function(){return r.active.index},u.getCurrentSlideElement=function(){return r.children.eq(r.active.index)},u.getSlideElement=function(n){return r.children.eq(n)},u.getSlideCount=function(){return r.children.length},u.isWorking=function(){return r.working},u.redrawSlider=function(){r.children.add(u.find(".bx-clone")).outerWidth(g());r.viewport.css("height",h());r.settings.ticker||nt();r.active.last&&(r.active.index=e()-1);r.active.index>=e()&&(r.active.last=!0);r.settings.pager&&!r.settings.pagerCustom&&(tt(),l(r.active.index));r.settings.ariaHidden&&ot(r.active.index*o())},u.destroySlider=function(){r.initialized&&(r.initialized=!1,n(".bx-clone",this).remove(),r.children.each(function(){void 0!==n(this).data("origStyle")?n(this).attr("style",n(this).data("origStyle")):n(this).removeAttr("style")}),void 0!==n(this).data("origStyle")?this.attr("style",n(this).data("origStyle")):n(this).removeAttr("style"),n(this).unwrap().unwrap(),r.controls.el&&r.controls.el.remove(),r.controls.next&&r.controls.next.remove(),r.controls.prev&&r.controls.prev.remove(),r.pagerEl&&r.settings.controls&&!r.settings.pagerCustom&&r.pagerEl.remove(),n(".bx-caption",this).remove(),r.controls.autoEl&&r.controls.autoEl.remove(),clearInterval(r.interval),r.settings.responsive&&n(window).unbind("resize",w),r.settings.keyboardEnabled&&n(document).unbind("keydown",ft),n(this).removeData("bxSlider"))},u.reloadSlider=function(t){void 0!==t&&(i=t);u.destroySlider();d();n(u).data("bxSlider",this)},d(),n(u).data("bxSlider",this),this}}}(jQuery),function(){function s(){return function(){}}function w(n){return function(){return this[n]}}function d(n){return function(){return n}}function n(t,i,r){if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),n.Ca[t])return i&&n.log.warn('Player "'+t+'" is already initialised. Options will not be applied.'),r&&n.Ca[t].I(r),n.Ca[t];t=n.m(t)}if(!t||!t.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return t.player||new n.Player(t,i,r)}function st(t,i,r,u){n.tc.forEach(r,function(n){t(i,n,u)})}function ct(t,i){var u,r;u=Array.prototype.slice.call(i);r=s();r=window.console||{log:r,warn:r,error:r};t?u.unshift(t.toUpperCase()+":"):t="log";n.log.history.push(u);u.unshift("VIDEOJS:");r[t].apply?r[t].apply(r,u):r[t](u.join(" "))}function ft(n){n.r("vjs-lock-showing")}function ni(t,i,r,u){return r!==e?((r===f||n.ge(r))&&(r=0),t.c.style[i]=-1!==(""+r).indexOf("%")||-1!==(""+r).indexOf("px")?r:"auto"===r?"":r+"px",u||t.o("resize"),t):t.c?(r=t.c.style[i],u=r.indexOf("px"),-1!==u?parseInt(r.slice(0,u),10):parseInt(t.c["offset"+n.va(i)],10)):0}function ti(t){var o,r,l,e,s,h,c,a;o=0;r=f;t.b("touchstart",function(t){1===t.touches.length&&(r=n.i.copy(t.touches[0]),o=(new Date).getTime(),e=u)});t.b("touchmove",function(n){1<n.touches.length?e=i:r&&(h=n.touches[0].pageX-r.pageX,c=n.touches[0].pageY-r.pageY,a=Math.sqrt(h*h+c*c),10<a&&(e=i))});s=function(){e=i};t.b("touchleave",s);t.b("touchcancel",s);t.b("touchend",function(n){r=f;e===u&&(l=(new Date).getTime()-o,200>l&&(n.preventDefault(),this.o("tap")))})}function ii(t,i){var r,u,f,e;return(r=t.c,u=n.Vd(r),e=f=r.offsetWidth,r=t.handle,t.options().vertical)?(e=u.top,u=i.changedTouches?i.changedTouches[0].pageY:i.pageY,r&&(r=r.m().offsetHeight,e+=r/2,f-=r),Math.max(0,Math.min(1,(e-u+f)/f))):(f=u.left,u=i.changedTouches?i.changedTouches[0].pageX:i.pageX,r&&(r=r.m().offsetWidth,f+=r/2,e-=r),Math.max(0,Math.min(1,(u-f)/e)))}function ir(t,i){t.aa(i);i.b("click",n.bind(t,function(){ft(this)}))}function ri(n){n.Ja=u;n.za.p("vjs-lock-showing");n.c.setAttribute("aria-pressed",u);n.H&&0<n.H.length&&n.H[0].m().focus()}function lt(n){n.Ja=i;ft(n.za);n.c.setAttribute("aria-pressed",i)}function rr(t){var i,r,u={sources:[],tracks:[]},e,o;if(i=n.Oa(t),r=i["data-setup"],r!==f&&n.i.D(i,n.JSON.parse(r||"{}")),n.i.D(u,i),t.hasChildNodes())for(t=t.childNodes,e=0,o=t.length;e<o;e++)i=t[e],r=i.nodeName.toLowerCase(),"source"===r?u.sources.push(n.Oa(i)):"track"===r&&u.tracks.push(n.Oa(i));return u}function fi(t,r,u){t.h&&(t.ya=i,t.h.dispose(),t.h=i);"Html5"!==r&&t.L&&(n.f.Kb(t.L),t.L=f);t.Ta=r;t.ya=i;var e=n.i.D({source:u,parentEl:t.c},t.q[r.toLowerCase()]);u&&(t.Cc=u.type,u.src==t.K.src&&0<t.K.currentTime&&(e.startTime=t.K.currentTime),t.K.src=u.src);t.h=new window.videojs[r](t,e);t.h.I(function(){this.d.Va()})}function ei(n,t){t!==e&&n.Jc!==t&&((n.Jc=t)?(n.p("vjs-has-started"),n.o("firstplay")):n.r("vjs-has-started"))}function h(t,i,r){if(t.h&&!t.h.ya)t.h.I(function(){this[i](r)});else try{t.h[i](r)}catch(u){throw n.log(u),u;}}function o(t,r){if(t.h&&t.h.ya)try{return t.h[r]()}catch(u){throw t.h[r]===e?n.log("Video.js: "+r+" method not defined for "+t.Ta+" playback technology.",u):"TypeError"==u.name?(n.log("Video.js: "+r+" unavailable on "+t.Ta+" playback technology element.",u),t.h.ya=i):n.log(u),u;}}function oi(n,t){var i=n.selectSource(t);i?i.h===n.Ta?n.src(i.source):fi(n,i.h,i.source):(n.setTimeout(function(){this.error({code:4,message:this.v(this.options().notSupportedMessage)})},0),n.Va())}function si(n,t){return t!==e?(n.Lc=!!t,n):n.Lc}function hi(n){return n.k().h&&n.k().h.featuresPlaybackRate&&n.k().options().playbackRates&&0<n.k().options().playbackRates.length}function ci(n,t){return t&&n&&/^blob\:/i.test(n)?t:n}function ur(){var n=vt[l],t=n.charAt(0).toUpperCase()+n.slice(1);wi["set"+t]=function(t){return this.c.vjs_setProperty(n,t)}}function pi(n){wi[n]=function(){return this.c.vjs_getProperty(n)}}function tt(t,i){var r=t.Ua.length;""+r in t||Object.defineProperty(t,r,{get:function(){return this.Ua[r]}});i.addEventListener("modechange",n.bind(t,function(){this.o("change")}));t.Ua.push(i);t.o({type:"addtrack",Y:i})}function pt(n,t){for(var i=0,u=n.length,r;i<u;i++)if(r=n[i],r===t){n.Ua.splice(i,1);break}n.o({type:"removetrack",Y:t})}function wt(n,t){return"rgba("+parseInt(n[1]+n[1],16)+","+parseInt(n[2]+n[2],16)+","+parseInt(n[3]+n[3],16)+","+t+")"}function a(n){var t;return n.Ge?t=n.Ge[0]:n.options&&(t=n.options[n.options.selectedIndex]),t.value}function v(n,t){var i,r;if(t){for(i=0;i<n.options.length&&!(r=n.options[i],r.value===t);i++);n.selectedIndex=i}}function r(n,t){var r=n.split("."),i=tr,u;for((r[0]in i)||!i.execScript||i.execScript("var "+r[0]);r.length&&(u=r.shift());)!r.length&&t!==e?i[u]=t:i=i[u]?i[u]:i[u]={}}var e=void 0,u=!0,f=null,i=!1,t,b,it,g,bt,kt,rt,dt,ht,y,ut,gt,k,nt,ui,et,c,at,li,ai,p,vi,yi,ki,yt,di,gi,nr,ot,tr;for(document.createElement("video"),document.createElement("audio"),document.createElement("track"),b=window.videojs=n,n.fc="4.12",n.sd="https:"==document.location.protocol?"https://":"http://",n.VERSION="4.12.15",n.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:2e3,children:{mediaLoader:{},posterImage:{},loadingSpinner:{},textTrackDisplay:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.Ef||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},"GENERATED_CDN_VSN"!==n.fc&&(b.options.flash.swf=n.sd+"vjs.zencdn.net/"+n.fc+"/video-js.swf"),n.Gd=function(t,i){return n.options.languages[t]=n.options.languages[t]!==e?n.Z.Aa(n.options.languages[t],i):i,n.options.languages},n.Ca={},"function"==typeof define&&define.amd?define("videojs",[],function(){return b}):"object"==typeof exports&&"object"==typeof module&&(module.exports=b),n.Ga=n.CoreObject=s(),n.Ga.extend=function(t){var u,i,r;t=t||{};u=t.init||t.l||this.prototype.init||this.prototype.l||s();i=function(){u.apply(this,arguments)};i.prototype=n.i.create(this.prototype);i.prototype.constructor=i;i.extend=n.Ga.extend;i.create=n.Ga.create;for(r in t)t.hasOwnProperty(r)&&(i.prototype[r]=t[r]);return i},n.Ga.create=function(){var t=n.i.create(this.prototype);return this.apply(t,arguments),t},n.b=function(t,r,u){if(n.i.isArray(r))return st(n.b,t,r,u);var f=n.getData(t);f.G||(f.G={});f.G[r]||(f.G[r]=[]);u.s||(u.s=n.s++);f.G[r].push(u);f.ba||(f.disabled=i,f.ba=function(i){var r;if(!f.disabled&&(i=n.Nb(i),r=f.G[i.type],r))for(var r=r.slice(0),u=0,e=r.length;u<e&&!i.Nc();u++)r[u].call(t,i)});1==f.G[r].length&&(t.addEventListener?t.addEventListener(r,f.ba,i):t.attachEvent&&t.attachEvent("on"+r,f.ba))},n.n=function(t,i,r){var u,f;if(n.Ic(t)&&(u=n.getData(t),u.G)){if(n.i.isArray(i))return st(n.n,t,i,r);if(i){if(f=u.G[i],f){if(r){if(r.s)for(u=0;u<f.length;u++)f[u].s===r.s&&f.splice(u--,1)}else u.G[i]=[];n.xc(t,i)}}else for(f in u.G)i=f,u.G[i]=[],n.xc(t,i)}},n.xc=function(t,r){var u=n.getData(t);0===u.G[r].length&&(delete u.G[r],t.removeEventListener?t.removeEventListener(r,u.ba,i):t.detachEvent&&t.detachEvent("on"+r,u.ba));n.hb(u.G)&&(delete u.G,delete u.ba,delete u.disabled);n.hb(u)&&n.Zc(t)},n.Nb=function(n){function o(){return u}function s(){return i}var r,t,e;if(!n||!n.Sb){r=n||window.event;n={};for(t in r)"layerX"!==t&&"layerY"!==t&&"keyLocation"!==t&&("returnValue"==t&&r.preventDefault||(n[t]=r[t]));n.target||(n.target=n.srcElement||document);n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement;n.preventDefault=function(){r.preventDefault&&r.preventDefault();n.returnValue=i;n.ee=o;n.defaultPrevented=u};n.ee=s;n.defaultPrevented=i;n.stopPropagation=function(){r.stopPropagation&&r.stopPropagation();n.cancelBubble=u;n.Sb=o};n.Sb=s;n.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation();n.Nc=o;n.stopPropagation()};n.Nc=s;n.clientX!=f&&(t=document.documentElement,e=document.body,n.pageX=n.clientX+(t&&t.scrollLeft||e&&e.scrollLeft||0)-(t&&t.clientLeft||e&&e.clientLeft||0),n.pageY=n.clientY+(t&&t.scrollTop||e&&e.scrollTop||0)-(t&&t.clientTop||e&&e.clientTop||0));n.which=n.charCode||n.keyCode;n.button!=f&&(n.button=n.button&1?0:n.button&4?1:n.button&2?2:0)}return n},n.o=function(t,r){var f=n.Ic(t)?n.getData(t):{},e=t.parentNode||t.ownerDocument;return"string"==typeof r&&(r={type:r,target:t}),r=n.Nb(r),f.ba&&f.ba.call(t,r),e&&!r.Sb()&&r.bubbles!==i?n.o(e,r):e||r.defaultPrevented||(f=n.getData(r.target),!r.target[r.type])||(f.disabled=u,"function"==typeof r.target[r.type]&&r.target[r.type](),f.disabled=i),!r.defaultPrevented},n.N=function(t,i,r){function u(){n.n(t,i,u);r.apply(this,arguments)}if(n.i.isArray(i))return st(n.N,t,i,r);u.s=r.s=r.s||n.s++;n.b(t,i,u)},it=Object.prototype.hasOwnProperty,n.e=function(t,i){var r;return i=i||{},r=document.createElement(t||"div"),n.i.ca(i,function(n,t){-1!==n.indexOf("aria-")||"role"==n?r.setAttribute(n,t):r[n]=t}),r},n.va=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.i={},n.i.create=Object.create||function(n){function t(){}return t.prototype=n,new t},n.i.ca=function(n,t,i){for(var r in n)it.call(n,r)&&t.call(i||this,r,n[r])},n.i.D=function(n,t){if(!t)return n;for(var i in t)it.call(t,i)&&(n[i]=t[i]);return n},n.i.Od=function(t,i){var r,u,f;t=n.i.copy(t);for(r in i)it.call(i,r)&&(u=t[r],f=i[r],t[r]=n.i.ib(u)&&n.i.ib(f)?n.i.Od(u,f):i[r]);return t},n.i.copy=function(t){return n.i.D({},t)},n.i.ib=function(n){return!!n&&"object"==typeof n&&"[object Object]"===n.toString()&&n.constructor===Object},n.i.isArray=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},n.ge=function(n){return n!==n},n.bind=function(t,i,r){function u(){return i.apply(t,arguments)}return i.s||(i.s=n.s++),u.s=r?r+"_"+i.s:i.s,u},n.ua={},n.s=1,n.expando="vdata"+(new Date).getTime(),n.getData=function(t){var i=t[n.expando];return i||(i=t[n.expando]=n.s++),n.ua[i]||(n.ua[i]={}),n.ua[i]},n.Ic=function(t){return t=t[n.expando],!(!t||n.hb(n.ua[t]))},n.Zc=function(t){var i=t[n.expando];if(i){delete n.ua[i];try{delete t[n.expando]}catch(r){t.removeAttribute?t.removeAttribute(n.expando):t[n.expando]=f}}},n.hb=function(n){for(var t in n)if(n[t]!==f)return i;return u},n.Pa=function(n,t){return-1!==(" "+n.className+" ").indexOf(" "+t+" ")},n.p=function(t,i){n.Pa(t,i)||(t.className=""===t.className?i:t.className+" "+i)},n.r=function(t,i){var r,u;if(n.Pa(t,i)){for(r=t.className.split(" "),u=r.length-1;0<=u;u--)r[u]===i&&r.splice(u,1);t.className=r.join(" ")}},n.A=n.e("video"),g=document.createElement("track"),g.Tb="captions",g.ed="en",g.label="English",n.A.appendChild(g),n.P=navigator.userAgent,n.zd=/iPhone/i.test(n.P),n.yd=/iPad/i.test(n.P),n.Ad=/iPod/i.test(n.P),n.xd=n.zd||n.yd||n.Ad,bt=n,rt=n.P.match(/OS (\d+)_/i),kt=rt&&rt[1]?rt[1]:e,bt.ff=kt,n.wd=/Android/i.test(n.P),dt=n,y=n.P.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),y?(ut=y[1]&&parseFloat(y[1]),gt=y[2]&&parseFloat(y[2]),ht=ut&&gt?parseFloat(y[1]+"."+y[2]):ut?ut:f):ht=f,dt.ec=ht,n.Bd=n.wd&&/webkit/i.test(n.P)&&2.3>n.ec,n.gc=/Firefox/i.test(n.P),n.gf=/Chrome/i.test(n.P),n.pa=/MSIE\s8\.0/.test(n.P),n.Db=!!("ontouchstart"in window||window.ud&&document instanceof window.ud),n.td=("backgroundSize"in n.A.style),n.ad=function(t,r){n.i.ca(r,function(n,r){r===f||"undefined"==typeof r||r===i?t.removeAttribute(n):t.setAttribute(n,r===u?"":r)})},n.Oa=function(n){var s,r,e,o,t;if(s={},n&&n.attributes&&0<n.attributes.length)for(r=n.attributes,t=r.length-1;0<=t;t--)e=r[t].name,o=r[t].value,("boolean"==typeof n[e]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+e+","))&&(o=o!==f?u:i),s[e]=o;return s},n.rf=function(n,t){var i="";return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(n,"").getPropertyValue(t):n.currentStyle&&(i=n["client"+t.substr(0,1).toUpperCase()+t.substr(1)]+"px"),i},n.Rb=function(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)},n.bb={},n.m=function(n){return 0===n.indexOf("#")&&(n=n.slice(1)),document.getElementById(n)},n.Na=function(n,t){t=t||n;var r=Math.floor(n%60),u=Math.floor(n/60%60),i=Math.floor(n/3600),f=Math.floor(t/60%60),e=Math.floor(t/3600);return(isNaN(n)||Infinity===n)&&(i=u=r="-"),i=0<i||0<e?i+":":"",i+(((i||10<=f)&&10>u?"0"+u:u)+":")+(10>r?"0"+r:r)},n.Id=function(){document.body.focus();document.onselectstart=d(i)},n.Xe=function(){document.onselectstart=d(u)},n.trim=function(n){return(n+"").replace(/^\s+|\s+$/g,"")},n.round=function(n,t){return t||(t=0),Math.round(n*Math.pow(10,t))/Math.pow(10,t)},n.xa=function(n,t){return n===e&&t===e?{length:0,start:function(){throw Error("This TimeRanges object is empty");},end:function(){throw Error("This TimeRanges object is empty");}}:{length:1,start:function(){return n},end:function(){return t}}},n.Ie=function(t){try{var u=window.localStorage||i;u&&(u.volume=t)}catch(r){22==r.code||1014==r.code?n.log("LocalStorage Full (VideoJS)",r):18==r.code?n.log("LocalStorage not allowed (VideoJS)",r):n.log("LocalStorage Error (VideoJS)",r)}},n.Xd=function(t){return t.match(/^https?:\/\//)||(t=n.e("div",{innerHTML:'<a href="'+t+'">x<\/a>'}).firstChild.href),t},n.Ae=function(t){var i,r,e,f,u;for(f="protocol hostname port pathname search hash host".split(" "),r=n.e("a",{href:t}),(e=""===r.host&&"file:"!==r.protocol)&&(i=n.e("div"),i.innerHTML='<a href="'+t+'"><\/a>',r=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(i)),t={},u=0;u<f.length;u++)t[f[u]]=r[f[u]];return"http:"===t.protocol&&(t.host=t.host.replace(/:80$/,"")),"https:"===t.protocol&&(t.host=t.host.replace(/:443$/,"")),e&&document.body.removeChild(i),t},n.log=function(){ct(f,arguments)},n.log.history=[],n.log.error=function(){ct("error",arguments)},n.log.warn=function(){ct("warn",arguments)},n.Vd=function(t){var r,i;return(t.getBoundingClientRect&&t.parentNode&&(r=t.getBoundingClientRect()),!r)?{left:0,top:0}:(t=document.documentElement,i=document.body,{left:n.round(r.left+(window.pageXOffset||i.scrollLeft)-(t.clientLeft||i.clientLeft||0)),top:n.round(r.top+(window.pageYOffset||i.scrollTop)-(t.clientTop||i.clientTop||0))})},n.tc={},n.tc.forEach=function(t,i,r){if(n.i.isArray(t)&&i instanceof Function)for(var u=0,f=t.length;u<f;++u)i.call(r||n,t[u],u,t);return t},n.bf=function(t,i){var e,r,h,a,c,l,o;"string"==typeof t&&(t={uri:t});b.Z.Aa({method:"GET",timeout:45e3},t);i=i||s();l=function(){window.clearTimeout(c);i(f,r,r.response||r.responseText)};o=function(n){window.clearTimeout(c);n&&"string"!=typeof n||(n=Error(n));i(n,r)};e=window.XMLHttpRequest;"undefined"==typeof e&&(e=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(n){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(i){}throw Error("This browser does not support XMLHttpRequest.");});r=new e;r.uri=t.uri;e=n.Ae(t.uri);h=window.location;e.protocol+e.host!==h.protocol+h.host&&window.XDomainRequest&&!("withCredentials"in r)?(r=new window.XDomainRequest,r.onload=l,r.onerror=o,r.onprogress=s(),r.ontimeout=s()):(a="file:"==e.protocol||"file:"==h.protocol,r.onreadystatechange=function(){if(4===r.readyState){if(r.Ue)return o("timeout");200===r.status||a&&0===r.status?l():o()}},t.timeout&&(c=window.setTimeout(function(){4!==r.readyState&&(r.Ue=u,r.abort())},t.timeout)));try{r.open(t.method||"GET",t.uri,u)}catch(v){o(v);return}t.withCredentials&&(r.withCredentials=u);t.responseType&&(r.responseType=t.responseType);try{r.send()}catch(y){o(y)}},n.Z={},n.Z.Aa=function(t,i){var r,u,f;t=n.i.copy(t);for(r in i)i.hasOwnProperty(r)&&(u=t[r],f=i[r],t[r]=n.i.ib(u)&&n.i.ib(f)?n.Z.Aa(u,f):i[r]);return t},n.z=s(),t=n.z.prototype,t.ab={},t.b=function(t,i){var r=this.addEventListener;this.addEventListener=Function.prototype;n.b(this,t,i);this.addEventListener=r},t.addEventListener=n.z.prototype.b,t.n=function(t,i){n.n(this,t,i)},t.removeEventListener=n.z.prototype.n,t.N=function(t,i){n.N(this,t,i)},t.o=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i});t=n.Nb(t);this.ab[i]&&this["on"+i]&&this["on"+i](t);n.o(this,t)},t.dispatchEvent=n.z.prototype.o,n.a=n.Ga.extend({l:function(t,r,u){if(this.d=t,this.q=n.i.copy(this.q),r=this.options(r),this.Qa=r.id||r.el&&r.el.id,this.Qa||(this.Qa=(t.id&&t.id()||"no_player")+"_component_"+n.s++),this.pe=r.name||f,this.c=r.el||this.e(),this.R=[],this.cb={},this.eb={},this.Kc(),this.I(u),r.$c!==i){var e,o;this.k().reportUserActivity&&(e=n.bind(this.k(),this.k().reportUserActivity),this.b("touchstart",function(){e();this.clearInterval(o);o=this.setInterval(e,250)}),t=function(){e();this.clearInterval(o)},this.b("touchmove",e),this.b("touchend",t),this.b("touchcancel",t))}}}),t=n.a.prototype,t.dispose=function(){if(this.o({type:"dispose",bubbles:i}),this.R)for(var t=this.R.length-1;0<=t;t--)this.R[t].dispose&&this.R[t].dispose();this.eb=this.cb=this.R=f;this.n();this.c.parentNode&&this.c.parentNode.removeChild(this.c);n.Zc(this.c);this.c=f},t.d=u,t.k=w("d"),t.options=function(t){return t===e?this.q:this.q=n.Z.Aa(this.q,t)},t.e=function(t,i){return n.e(t,i)},t.v=function(n){var i=this.d.language(),t=this.d.languages();return t&&t[i]&&t[i][n]?t[i][n]:n},t.m=w("c"),t.wa=function(){return this.B||this.c},t.id=w("Qa"),t.name=w("pe"),t.children=w("R"),t.Yd=function(n){return this.cb[n]},t.da=function(n){return this.eb[n]},t.aa=function(t,i){var r,u;return"string"==typeof t?(u=t,i=i||{},r=i.componentClass||n.va(u),i.name=u,r=new window.videojs[r](this.d||this,i)):r=t,this.R.push(r),"function"==typeof r.id&&(this.cb[r.id()]=r),(u=u||r.name&&r.name())&&(this.eb[u]=r),"function"==typeof r.el&&r.el()&&this.wa().appendChild(r.el()),r},t.removeChild=function(n){if("string"==typeof n&&(n=this.da(n)),n&&this.R){for(var t=i,r=this.R.length-1;0<=r;r--)if(this.R[r]===n){t=u;this.R.splice(r,1);break}t&&(this.cb[n.id()]=f,this.eb[n.name()]=f,(t=n.m())&&t.parentNode===this.wa()&&this.wa().removeChild(n.m()))}},t.Kc=function(){var u,f,r,t,s,h,o;if(u=this,f=u.options(),r=f.children)if(h=function(n,t){f[n]!==e&&(t=f[n]);t!==i&&(u[n]=u.aa(n,t))},n.i.isArray(r))for(o=0;o<r.length;o++)t=r[o],"string"==typeof t?(s=t,t={}):s=t.name,h(s,t);else n.i.ca(r,h)},t.T=d(""),t.b=function(t,i,r){var u,f,e;return"string"==typeof t||n.i.isArray(t)?n.b(this.c,t,n.bind(this,i)):(u=n.bind(this,r),e=this,f=function(){e.n(t,i,u)},f.s=u.s,this.b("dispose",f),r=function(){e.n("dispose",f)},r.s=u.s,t.nodeName?(n.b(t,i,u),n.b(t,"dispose",r)):"function"==typeof t.b&&(t.b(i,u),t.b("dispose",r))),this},t.n=function(t,i,r){return!t||"string"==typeof t||n.i.isArray(t)?n.n(this.c,t,i):(r=n.bind(this,r),this.n("dispose",r),t.nodeName?(n.n(t,i,r),n.n(t,"dispose",r)):(t.n(i,r),t.n("dispose",r))),this},t.N=function(t,i,r){var f,e,u;return"string"==typeof t||n.i.isArray(t)?n.N(this.c,t,n.bind(this,i)):(f=n.bind(this,r),e=this,u=function(){e.n(t,i,u);f.apply(this,arguments)},u.s=f.s,this.b(t,i,u)),this},t.o=function(t){return n.o(this.c,t),this},t.I=function(n){return n&&(this.ya?n.call(this):(this.mb===e&&(this.mb=[]),this.mb.push(n))),this},t.Va=function(){var n,t,i;if(this.ya=u,n=this.mb,this.mb=[],n&&0<n.length){for(t=0,i=n.length;t<i;t++)n[t].call(this);this.o("ready")}},t.Pa=function(t){return n.Pa(this.c,t)},t.p=function(t){return n.p(this.c,t),this},t.r=function(t){return n.r(this.c,t),this},t.show=function(){return this.r("vjs-hidden"),this},t.W=function(){return this.p("vjs-hidden"),this},t.width=function(n,t){return ni(this,"width",n,t)},t.height=function(n,t){return ni(this,"height",n,t)},t.Qd=function(n,t){return this.width(n,u).height(t)},t.setTimeout=function(t,i){function u(){this.clearTimeout(r)}t=n.bind(this,t);var r=setTimeout(t,i);return u.s="vjs-timeout-"+r,this.b("dispose",u),r},t.clearTimeout=function(n){function t(){}return clearTimeout(n),t.s="vjs-timeout-"+n,this.n("dispose",t),n},t.setInterval=function(t,i){function u(){this.clearInterval(r)}t=n.bind(this,t);var r=setInterval(t,i);return u.s="vjs-interval-"+r,this.b("dispose",u),r},t.clearInterval=function(n){function t(){}return clearInterval(n),t.s="vjs-interval-"+n,this.n("dispose",t),n},n.w=n.a.extend({l:function(t,i){n.a.call(this,t,i);ti(this);this.b("tap",this.u);this.b("click",this.u);this.b("focus",this.kb);this.b("blur",this.jb)}}),t=n.w.prototype,t.e=function(t,i){var r;return i=n.i.D({className:this.T(),role:"button","aria-live":"polite",tabIndex:0},i),r=n.a.prototype.e.call(this,t,i),i.innerHTML||(this.B=n.e("div",{className:"vjs-control-content"}),this.Ib=n.e("span",{className:"vjs-control-text",innerHTML:this.v(this.ta)||"Need Text"}),this.B.appendChild(this.Ib),r.appendChild(this.B)),r},t.T=function(){return"vjs-control "+n.a.prototype.T.call(this)},t.u=s(),t.kb=function(){n.b(document,"keydown",n.bind(this,this.ka))},t.ka=function(n){(32==n.which||13==n.which)&&(n.preventDefault(),this.u())},t.jb=function(){n.n(document,"keydown",n.bind(this,this.ka))},n.S=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.Hd=this.da(this.q.barName);this.handle=this.da(this.q.handleName);this.b("mousedown",this.lb);this.b("touchstart",this.lb);this.b("focus",this.kb);this.b("blur",this.jb);this.b("click",this.u);this.b(t,"controlsvisible",this.update);this.b(t,this.Uc,this.update)}}),t=n.S.prototype,t.e=function(t,i){return i=i||{},i.className+=" vjs-slider",i=n.i.D({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),n.a.prototype.e.call(this,t,i)},t.lb=function(t){t.preventDefault();n.Id();this.p("vjs-sliding");this.b(document,"mousemove",this.la);this.b(document,"mouseup",this.Ba);this.b(document,"touchmove",this.la);this.b(document,"touchend",this.Ba);this.la(t)},t.la=s(),t.Ba=function(){n.Xe();this.r("vjs-sliding");this.n(document,"mousemove",this.la);this.n(document,"mouseup",this.Ba);this.n(document,"touchmove",this.la);this.n(document,"touchend",this.Ba);this.update()},t.update=function(){var u;if(this.c){var i,t=this.Qb(),r=this.handle,f=this.Hd;("number"!=typeof t||t!==t||0>t||Infinity===t)&&(t=0);i=t;r&&(i=this.c.offsetWidth,u=r.m().offsetWidth,i=u?u/i:0,t*=1-i,i=t+i/2,r.m().style.left=n.round(100*t,2)+"%");f&&(f.m().style.width=n.round(100*i,2)+"%")}},t.kb=function(){this.b(document,"keydown",this.ka)},t.ka=function(n){37==n.which||40==n.which?(n.preventDefault(),this.fd()):(38==n.which||39==n.which)&&(n.preventDefault(),this.gd())},t.jb=function(){this.n(document,"keydown",this.ka)},t.u=function(n){n.stopImmediatePropagation();n.preventDefault()},n.ga=n.a.extend(),n.ga.prototype.defaultValue=0,n.ga.prototype.e=function(t,i){return i=i||{},i.className+=" vjs-slider-handle",i=n.i.D({innerHTML:'<span class="vjs-control-text">'+this.defaultValue+"<\/span>"},i),n.a.prototype.e.call(this,"div",i)},n.qa=n.a.extend(),n.qa.prototype.e=function(){var t=this.options().zc||"ul";return this.B=n.e(t,{className:"vjs-menu-content"}),t=n.a.prototype.e.call(this,"div",{append:this.B,className:"vjs-menu"}),t.appendChild(this.B),n.b(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()}),t},n.M=n.w.extend({l:function(t,i){n.w.call(this,t,i);this.selected(i.selected)}}),n.M.prototype.e=function(t,i){return n.w.prototype.e.call(this,"li",n.i.D({className:"vjs-menu-item",innerHTML:this.v(this.q.label)},i))},n.M.prototype.u=function(){this.selected(u)},n.M.prototype.selected=function(n){n?(this.p("vjs-selected"),this.c.setAttribute("aria-selected",u)):(this.r("vjs-selected"),this.c.setAttribute("aria-selected",i))},n.O=n.w.extend({l:function(t,i){n.w.call(this,t,i);this.update();this.b("keydown",this.ka);this.c.setAttribute("aria-haspopup",u);this.c.setAttribute("role","button")}}),t=n.O.prototype,t.update=function(){var n=this.La();this.za&&this.removeChild(this.za);this.za=n;this.aa(n);this.H&&0===this.H.length?this.W():this.H&&1<this.H.length&&this.show()},t.Ja=i,t.La=function(){var i=new n.qa(this.d),t;if(this.options().title&&i.wa().appendChild(n.e("li",{className:"vjs-menu-title",innerHTML:n.va(this.options().title),Se:-1})),this.H=this.createItems())for(t=0;t<this.H.length;t++)ir(i,this.H[t]);return i},t.Ka=s(),t.T=function(){return this.className+" vjs-menu-button "+n.w.prototype.T.call(this)},t.kb=s(),t.jb=s(),t.u=function(){this.N("mouseout",n.bind(this,function(){ft(this.za);this.c.blur()}));this.Ja?lt(this):ri(this)},t.ka=function(n){32==n.which||13==n.which?(this.Ja?lt(this):ri(this),n.preventDefault()):27==n.which&&(this.Ja&&lt(this),n.preventDefault())},n.J=function(t){"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:"object"==typeof t&&n.i.D(this,t);this.message||(this.message=n.J.Pd[this.code]||"")},n.J.prototype.code=0,n.J.prototype.message="",n.J.prototype.status=f,n.J.gb="MEDIA_ERR_CUSTOM MEDIA_ERR_ABORTED MEDIA_ERR_NETWORK MEDIA_ERR_DECODE MEDIA_ERR_SRC_NOT_SUPPORTED MEDIA_ERR_ENCRYPTED".split(" "),n.J.Pd={1:"You aborted the video playback",2:"A network error caused the video download to fail part-way.",3:"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.",4:"The video could not be loaded, either because the server or network failed or because the format is not supported.",5:"The video is encrypted and we do not have the keys to decrypt it."},k=0;k<n.J.gb.length;k++)n.J[n.J.gb[k]]=k,n.J.prototype[n.J.gb[k]]=k;for(nt=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror".split(" "),"webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror".split(" "),"webkitRequestFullScreen webkitCancelFullScreen webkitCurrentFullScreenElement webkitCancelFullScreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError".split(" ")],ui=nt[0],c=0;c<nt.length;c++)if(nt[c][1]in document){et=nt[c];break}if(et)for(n.bb.Pb={},c=0;c<et.length;c++)n.bb.Pb[ui[c]]=et[c];n.Player=n.a.extend({l:function(t,r,f){this.L=t;t.id=t.id||"vjs_video_"+n.s++;this.Te=t&&n.Oa(t);r=n.i.D(rr(t),r);this.Pc=r.language||n.options.language;this.je=r.languages||n.options.languages;this.K={};this.Vc=r.poster||"";this.Jb=!!r.controls;t.controls=i;r.$c=i;si(this,"audio"===this.L.nodeName.toLowerCase());n.a.call(this,this,r,f);this.controls()?this.p("vjs-controls-enabled"):this.p("vjs-controls-disabled");si(this)&&this.p("vjs-audio");n.Ca[this.Qa]=this;r.plugins&&n.i.ca(r.plugins,function(n,t){this[n](t)},this);var e,o,s,h,c;e=n.bind(this,this.reportUserActivity);this.b("mousedown",function(){e();this.clearInterval(o);o=this.setInterval(e,250)});this.b("mousemove",function(n){(n.screenX!=h||n.screenY!=c)&&(h=n.screenX,c=n.screenY,e())});this.b("mouseup",function(){e();this.clearInterval(o)});this.b("keydown",e);this.b("keyup",e);this.setInterval(function(){if(this.Fa){this.Fa=i;this.userActive(u);this.clearTimeout(s);var n=this.options().inactivityTimeout;0<n&&(s=this.setTimeout(function(){this.Fa||this.userActive(i)},n))}},250)}});t=n.Player.prototype;t.language=function(n){return n===e?this.Pc:(this.Pc=n,this)};t.languages=w("je");t.q=n.options;t.dispose=function(){this.o("dispose");this.n("dispose");n.Ca[this.Qa]=f;this.L&&this.L.player&&(this.L.player=f);this.c&&this.c.player&&(this.c.player=f);this.h&&this.h.dispose();n.a.prototype.dispose.call(this)};t.e=function(){var i=this.c=n.a.prototype.e.call(this,"div"),t=this.L,r;return t.removeAttribute("width"),t.removeAttribute("height"),r=n.Oa(t),n.i.ca(r,function(n){"class"==n?i.className=r[n]:i.setAttribute(n,r[n])}),t.id+="_html5_api",t.className="vjs-tech",t.player=i.player=this,this.p("vjs-paused"),this.width(this.q.width,u),this.height(this.q.height,u),t.ce=t.networkState,t.parentNode&&t.parentNode.insertBefore(i,t),n.Rb(t,i),this.c=i,this.b("loadstart",this.te),this.b("waiting",this.ze),this.b(["canplay","canplaythrough","playing","ended"],this.ye),this.b("seeking",this.we),this.b("seeked",this.ve),this.b("ended",this.qe),this.b("play",this.Xb),this.b("firstplay",this.re),this.b("pause",this.Wb),this.b("progress",this.ue),this.b("durationchange",this.Sc),this.b("fullscreenchange",this.se),i};t.te=function(){this.r("vjs-ended");this.error(f);this.paused()?ei(this,i):this.o("firstplay")};t.Jc=i;t.Xb=function(){this.r("vjs-ended");this.r("vjs-paused");this.p("vjs-playing");ei(this,u)};t.ze=function(){this.p("vjs-waiting")};t.ye=function(){this.r("vjs-waiting")};t.we=function(){this.p("vjs-seeking")};t.ve=function(){this.r("vjs-seeking")};t.re=function(){this.q.starttime&&this.currentTime(this.q.starttime);this.p("vjs-has-started")};t.Wb=function(){this.r("vjs-playing");this.p("vjs-paused")};t.ue=function(){1==this.bufferedPercent()&&this.o("loadedalldata")};t.qe=function(){this.p("vjs-ended");this.q.loop?(this.currentTime(0),this.play()):this.paused()||this.pause()};t.Sc=function(){var n=o(this,"duration");n&&(0>n&&(n=Infinity),this.duration(n),Infinity===n?this.p("vjs-live"):this.r("vjs-live"))};t.se=function(){this.isFullscreen()?this.p("vjs-fullscreen"):this.r("vjs-fullscreen")};t.play=function(){return h(this,"play"),this};t.pause=function(){return h(this,"pause"),this};t.paused=function(){return o(this,"paused")===i?i:u};t.currentTime=function(n){return n!==e?(h(this,"setCurrentTime",n),this):this.K.currentTime=o(this,"currentTime")||0};t.duration=function(n){return n!==e?(this.K.duration=parseFloat(n),this):(this.K.duration===e&&this.Sc(),this.K.duration||0)};t.remainingTime=function(){return this.duration()-this.currentTime()};t.buffered=function(){var t=o(this,"buffered");return t&&t.length||(t=n.xa(0,0)),t};t.bufferedPercent=function(){var t=this.duration(),r=this.buffered(),u=0,f,i,n;if(!t)return 0;for(n=0;n<r.length;n++)f=r.start(n),i=r.end(n),i>t&&(i=t),u+=i-f;return u/t};t.volume=function(t){return t!==e?(t=Math.max(0,Math.min(1,parseFloat(t))),this.K.volume=t,h(this,"setVolume",t),n.Ie(t),this):(t=parseFloat(o(this,"volume")),isNaN(t)?1:t)};t.muted=function(n){return n!==e?(h(this,"setMuted",n),this):o(this,"muted")||i};t.Sa=function(){return o(this,"supportsFullScreen")||i};t.Mc=i;t.isFullscreen=function(n){return n!==e?(this.Mc=!!n,this):this.Mc};t.isFullScreen=function(t){return n.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")'),this.isFullscreen(t)};t.requestFullscreen=function(){var t=n.bb.Pb;return this.isFullscreen(u),t?(n.b(document,t.fullscreenchange,n.bind(this,function(){this.isFullscreen(document[t.fullscreenElement]);this.isFullscreen()===i&&n.n(document,t.fullscreenchange,arguments.callee);this.o("fullscreenchange")})),this.c[t.requestFullscreen]()):this.h.Sa()?h(this,"enterFullScreen"):(this.Fc(),this.o("fullscreenchange")),this};t.requestFullScreen=function(){return n.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")'),this.requestFullscreen()};t.exitFullscreen=function(){var t=n.bb.Pb;return this.isFullscreen(i),t?document[t.exitFullscreen]():this.h.Sa()?h(this,"exitFullScreen"):(this.Lb(),this.o("fullscreenchange")),this};t.cancelFullScreen=function(){return n.log.warn("player.cancelFullScreen() has been deprecated, use player.exitFullscreen()"),this.exitFullscreen()};t.Fc=function(){this.fe=u;this.Rd=document.documentElement.style.overflow;n.b(document,"keydown",n.bind(this,this.Gc));document.documentElement.style.overflow="hidden";n.p(document.body,"vjs-full-window");this.o("enterFullWindow")};t.Gc=function(n){27===n.keyCode&&(this.isFullscreen()===u?this.exitFullscreen():this.Lb())};t.Lb=function(){this.fe=i;n.n(document,"keydown",this.Gc);document.documentElement.style.overflow=this.Rd;n.r(document.body,"vjs-full-window");this.o("exitFullWindow")};t.selectSource=function(t){for(var u,f,e,s,h,r=0,o=this.q.techOrder;r<o.length;r++)if(u=n.va(o[r]),f=window.videojs[u],f){if(f.isSupported())for(e=0,s=t;e<s.length;e++)if(h=s[e],f.canPlaySource(h))return{source:h,h:u}}else n.log.error('The "'+u+'" tech is undefined. Skipped browser support check for that tech.');return i};t.src=function(t){return t===e?o(this,"src"):(n.i.isArray(t)?oi(this,t):"string"==typeof t?this.src({src:t}):t instanceof Object&&(t.type&&!window.videojs[this.Ta].canPlaySource(t)?oi(this,[t]):(this.K.src=t.src,this.Cc=t.type||"",this.I(function(){window.videojs[this.Ta].prototype.hasOwnProperty("setSource")?h(this,"setSource",t):h(this,"src",t.src);"auto"==this.q.preload&&this.load();this.q.autoplay&&this.play()}))),this)};t.load=function(){return h(this,"load"),this};t.currentSrc=function(){return o(this,"currentSrc")||this.K.src||""};t.Nd=function(){return this.Cc||""};t.Ra=function(n){return n!==e?(h(this,"setPreload",n),this.q.preload=n,this):o(this,"preload")};t.autoplay=function(n){return n!==e?(h(this,"setAutoplay",n),this.q.autoplay=n,this):o(this,"autoplay")};t.loop=function(n){return n!==e?(h(this,"setLoop",n),this.q.loop=n,this):o(this,"loop")};t.poster=function(n){return n===e?this.Vc:(n||(n=""),this.Vc=n,h(this,"setPoster",n),this.o("posterchange"),this)};t.controls=function(n){return n!==e?(n=!!n,this.Jb!==n&&((this.Jb=n)?(this.r("vjs-controls-disabled"),this.p("vjs-controls-enabled"),this.o("controlsenabled")):(this.r("vjs-controls-enabled"),this.p("vjs-controls-disabled"),this.o("controlsdisabled"))),this):this.Jb};n.Player.prototype.bc;t=n.Player.prototype;t.usingNativeControls=function(n){return n!==e?(n=!!n,this.bc!==n&&((this.bc=n)?(this.p("vjs-using-native-controls"),this.o("usingnativecontrols")):(this.r("vjs-using-native-controls"),this.o("usingcustomcontrols"))),this):this.bc};t.ja=f;t.error=function(t){return t===e?this.ja:t===f?(this.ja=t,this.r("vjs-error"),this):(this.ja=t instanceof n.J?t:new n.J(t),this.o("error"),this.p("vjs-error"),n.log.error("(CODE:"+this.ja.code+" "+n.J.gb[this.ja.code]+")",this.ja.message,this.ja),this)};t.ended=function(){return o(this,"ended")};t.seeking=function(){return o(this,"seeking")};t.seekable=function(){return o(this,"seekable")};t.Fa=u;t.reportUserActivity=function(){this.Fa=u};t.ac=u;t.userActive=function(n){return n!==e?(n=!!n,n!==this.ac&&((this.ac=n)?(this.Fa=u,this.r("vjs-user-inactive"),this.p("vjs-user-active"),this.o("useractive")):(this.Fa=i,this.h&&this.h.N("mousemove",function(n){n.stopPropagation();n.preventDefault()}),this.r("vjs-user-active"),this.p("vjs-user-inactive"),this.o("userinactive"))),this):this.ac};t.playbackRate=function(n){return n!==e?(h(this,"setPlaybackRate",n),this):this.h&&this.h.featuresPlaybackRate?o(this,"playbackRate"):1};t.Lc=i;t.networkState=function(){return o(this,"networkState")};t.readyState=function(){return o(this,"readyState")};t.textTracks=function(){return this.h&&this.h.textTracks()};t.X=function(){return this.h&&this.h.remoteTextTracks()};t.addTextTrack=function(n,t,i){return this.h&&this.h.addTextTrack(n,t,i)};t.ha=function(n){return this.h&&this.h.addRemoteTextTrack(n)};t.Da=function(n){this.h&&this.h.removeRemoteTextTrack(n)};n.tb=n.a.extend();n.tb.prototype.q={sf:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},liveDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{},playbackRateMenuButton:{},subtitlesButton:{},captionsButton:{},chaptersButton:{}}};n.tb.prototype.e=function(){return n.e("div",{className:"vjs-control-bar"})};n.hc=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.hc.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-live-controls vjs-control"});return this.B=n.e("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.v("Stream Type")+"<\/span>"+this.v("LIVE"),"aria-live":"off"}),t.appendChild(this.B),t};n.kc=n.w.extend({l:function(t,i){n.w.call(this,t,i);this.b(t,"play",this.Xb);this.b(t,"pause",this.Wb)}});t=n.kc.prototype;t.ta="Play";t.T=function(){return"vjs-play-control "+n.w.prototype.T.call(this)};t.u=function(){this.d.paused()?this.d.play():this.d.pause()};t.Xb=function(){this.r("vjs-paused");this.p("vjs-playing");this.c.children[0].children[0].innerHTML=this.v("Pause")};t.Wb=function(){this.r("vjs-playing");this.p("vjs-paused");this.c.children[0].children[0].innerHTML=this.v("Play")};n.ub=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.b(t,"timeupdate",this.fa)}});n.ub.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});return this.B=n.e("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time <\/span>0:00',"aria-live":"off"}),t.appendChild(this.B),t};n.ub.prototype.fa=function(){var t=this.d.nb?this.d.K.currentTime:this.d.currentTime();this.B.innerHTML='<span class="vjs-control-text">'+this.v("Current Time")+"<\/span> "+n.Na(t,this.d.duration())};n.vb=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.b(t,"timeupdate",this.fa);this.b(t,"loadedmetadata",this.fa)}});n.vb.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.B=n.e("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.v("Duration Time")+"<\/span> 0:00","aria-live":"off"}),t.appendChild(this.B),t};n.vb.prototype.fa=function(){var t=this.d.duration();t&&(this.B.innerHTML='<span class="vjs-control-text">'+this.v("Duration Time")+"<\/span> "+n.Na(t))};n.qc=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.qc.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"<div><span>/<\/span><\/div>"})};n.Cb=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.b(t,"timeupdate",this.fa)}});n.Cb.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.B=n.e("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.v("Remaining Time")+"<\/span> -0:00","aria-live":"off"}),t.appendChild(this.B),t};n.Cb.prototype.fa=function(){this.d.duration()&&(this.B.innerHTML='<span class="vjs-control-text">'+this.v("Remaining Time")+"<\/span> -"+n.Na(this.d.remainingTime()))};n.Ya=n.w.extend({l:function(t,i){n.w.call(this,t,i)}});n.Ya.prototype.ta="Fullscreen";n.Ya.prototype.T=function(){return"vjs-fullscreen-control "+n.w.prototype.T.call(this)};n.Ya.prototype.u=function(){this.d.isFullscreen()?(this.d.exitFullscreen(),this.Ib.innerHTML=this.v("Fullscreen")):(this.d.requestFullscreen(),this.Ib.innerHTML=this.v("Non-Fullscreen"))};n.Bb=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.Bb.prototype.q={children:{seekBar:{}}};n.Bb.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})};n.nc=n.S.extend({l:function(t,i){n.S.call(this,t,i);this.b(t,"timeupdate",this.Ea);t.I(n.bind(this,this.Ea))}});t=n.nc.prototype;t.q={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"};t.Uc="timeupdate";t.e=function(){return n.S.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})};t.Ea=function(){var t=this.d.nb?this.d.K.currentTime:this.d.currentTime();this.c.setAttribute("aria-valuenow",n.round(100*this.Qb(),2));this.c.setAttribute("aria-valuetext",n.Na(t,this.d.duration()))};t.Qb=function(){return this.d.currentTime()/this.d.duration()};t.lb=function(t){n.S.prototype.lb.call(this,t);this.d.nb=u;this.d.p("vjs-scrubbing");this.$e=!this.d.paused();this.d.pause()};t.la=function(n){n=ii(this,n)*this.d.duration();n==this.d.duration()&&(n-=.1);this.d.currentTime(n)};t.Ba=function(t){n.S.prototype.Ba.call(this,t);this.d.nb=i;this.d.r("vjs-scrubbing");this.$e&&this.d.play()};t.gd=function(){this.d.currentTime(this.d.currentTime()+5)};t.fd=function(){this.d.currentTime(this.d.currentTime()-5)};n.yb=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.b(t,"progress",this.update)}});n.yb.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.v("Loaded")+"<\/span>: 0%<\/span>"})};n.yb.prototype.update=function(){var t,e,o,u,f=this.d.buffered(),r,i;for(t=this.d.duration(),i=this.d,r=i.buffered(),i=i.duration(),r=r.end(r.length-1),r>i&&(r=i),i=this.c.children,this.c.style.width=100*(r/t||0)+"%",t=0;t<f.length;t++)e=f.start(t),o=f.end(t),(u=i[t])||(u=this.c.appendChild(n.e())),u.style.left=100*(e/r||0)+"%",u.style.width=100*((o-e)/r||0)+"%";for(t=i.length;t>f.length;t--)this.c.removeChild(i[t-1])};n.jc=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.jc.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.v("Progress")+"<\/span>: 0%<\/span>"})};n.Za=n.ga.extend({l:function(t,i){n.ga.call(this,t,i);this.b(t,"timeupdate",this.fa)}});n.Za.prototype.defaultValue="00:00";n.Za.prototype.e=function(){return n.ga.prototype.e.call(this,"div",{className:"vjs-seek-handle","aria-live":"off"})};n.Za.prototype.fa=function(){var t=this.d.nb?this.d.K.currentTime:this.d.currentTime();this.c.innerHTML='<span class="vjs-control-text">'+n.Na(t,this.d.duration())+"<\/span>"};n.Fb=n.a.extend({l:function(t,r){n.a.call(this,t,r);t.h&&t.h.featuresVolumeControl===i&&this.p("vjs-hidden");this.b(t,"loadstart",function(){t.h.featuresVolumeControl===i?this.p("vjs-hidden"):this.r("vjs-hidden")})}});n.Fb.prototype.q={children:{volumeBar:{}}};n.Fb.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})};n.Eb=n.S.extend({l:function(t,i){n.S.call(this,t,i);this.b(t,"volumechange",this.Ea);t.I(n.bind(this,this.Ea))}});t=n.Eb.prototype;t.Ea=function(){this.c.setAttribute("aria-valuenow",n.round(100*this.d.volume(),2));this.c.setAttribute("aria-valuetext",n.round(100*this.d.volume(),2)+"%")};t.q={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"};t.Uc="volumechange";t.e=function(){return n.S.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})};t.la=function(n){this.d.muted()&&this.d.muted(i);this.d.volume(ii(this,n))};t.Qb=function(){return this.d.muted()?0:this.d.volume()};t.gd=function(){this.d.volume(this.d.volume()+.1)};t.fd=function(){this.d.volume(this.d.volume()-.1)};n.rc=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.rc.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"><\/span>'})};n.Gb=n.ga.extend();n.Gb.prototype.defaultValue="00:00";n.Gb.prototype.e=function(){return n.ga.prototype.e.call(this,"div",{className:"vjs-volume-handle"})};n.ra=n.w.extend({l:function(t,r){n.w.call(this,t,r);this.b(t,"volumechange",this.update);t.h&&t.h.featuresVolumeControl===i&&this.p("vjs-hidden");this.b(t,"loadstart",function(){t.h.featuresVolumeControl===i?this.p("vjs-hidden"):this.r("vjs-hidden")})}});n.ra.prototype.e=function(){return n.w.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'<div><span class="vjs-control-text">'+this.v("Mute")+"<\/span><\/div>"})};n.ra.prototype.u=function(){this.d.muted(this.d.muted()?i:u)};n.ra.prototype.update=function(){var t=this.d.volume(),i=3;for(0===t||this.d.muted()?i=0:.33>t?i=1:.67>t&&(i=2),this.d.muted()?this.c.children[0].children[0].innerHTML!=this.v("Unmute")&&(this.c.children[0].children[0].innerHTML=this.v("Unmute")):this.c.children[0].children[0].innerHTML!=this.v("Mute")&&(this.c.children[0].children[0].innerHTML=this.v("Mute")),t=0;4>t;t++)n.r(this.c,"vjs-vol-"+t);n.p(this.c,"vjs-vol-"+i)};n.Ha=n.O.extend({l:function(t,r){n.O.call(this,t,r);this.b(t,"volumechange",this.af);t.h&&t.h.featuresVolumeControl===i&&this.p("vjs-hidden");this.b(t,"loadstart",function(){t.h.featuresVolumeControl===i?this.p("vjs-hidden"):this.r("vjs-hidden")});this.p("vjs-menu-button")}});n.Ha.prototype.La=function(){var t=new n.qa(this.d,{zc:"div"}),i=new n.Eb(this.d,this.q.volumeBar);return i.b("focus",function(){t.p("vjs-lock-showing")}),i.b("blur",function(){ft(t)}),t.aa(i),t};n.Ha.prototype.u=function(){n.ra.prototype.u.call(this);n.O.prototype.u.call(this)};n.Ha.prototype.e=function(){return n.w.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'<div><span class="vjs-control-text">'+this.v("Mute")+"<\/span><\/div>"})};n.Ha.prototype.af=n.ra.prototype.update;n.lc=n.O.extend({l:function(t,i){n.O.call(this,t,i);this.pd();this.od();this.b(t,"loadstart",this.pd);this.b(t,"ratechange",this.od)}});t=n.lc.prototype;t.ta="Playback Rate";t.className="vjs-playback-rate";t.e=function(){var t=n.O.prototype.e.call(this);return this.Oc=n.e("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.Oc),t};t.La=function(){var r=new n.qa(this.k()),i=this.k().options().playbackRates,t;if(i)for(t=i.length-1;0<=t;t--)r.aa(new n.Ab(this.k(),{rate:i[t]+"x"}));return r};t.Ea=function(){this.m().setAttribute("aria-valuenow",this.k().playbackRate())};t.u=function(){for(var r=this.k().playbackRate(),n=this.k().options().playbackRates,i=n[0],t=0;t<n.length;t++)if(n[t]>r){i=n[t];break}this.k().playbackRate(i)};t.pd=function(){hi(this)?this.r("vjs-hidden"):this.p("vjs-hidden")};t.od=function(){hi(this)&&(this.Oc.innerHTML=this.k().playbackRate()+"x")};n.Ab=n.M.extend({zc:"button",l:function(t,i){var r=this.label=i.rate,u=this.Wc=parseFloat(r,10);i.label=r;i.selected=1===u;n.M.call(this,t,i);this.b(t,"ratechange",this.update)}});n.Ab.prototype.u=function(){n.M.prototype.u.call(this);this.k().playbackRate(this.Wc)};n.Ab.prototype.update=function(){this.selected(this.k().playbackRate()==this.Wc)};n.mc=n.w.extend({l:function(t,i){n.w.call(this,t,i);this.update();t.b("posterchange",n.bind(this,this.update))}});t=n.mc.prototype;t.dispose=function(){this.k().n("posterchange",this.update);n.w.prototype.dispose.call(this)};t.e=function(){var t=n.e("div",{className:"vjs-poster",tabIndex:-1});return n.td||(this.Mb=n.e("img"),t.appendChild(this.Mb)),t};t.update=function(){var n=this.k().poster();this.na(n);n?this.show():this.W()};t.na=function(n){var t;this.Mb?this.Mb.src=n:(t="",n&&(t='url("'+n+'")'),this.c.style.backgroundImage=t)};t.u=function(){this.d.play()};n.ic=n.a.extend({l:function(t,i){n.a.call(this,t,i)}});n.ic.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-loading-spinner"})};n.rb=n.w.extend();n.rb.prototype.e=function(){return n.w.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:'<span aria-hidden="true"><\/span>',"aria-label":"play video"})};n.rb.prototype.u=function(){this.d.play()};n.wb=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.update();this.b(t,"error",this.update)}});n.wb.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-error-display"});return this.B=n.e("div"),t.appendChild(this.B),t};n.wb.prototype.update=function(){this.k().error()&&(this.B.innerHTML=this.v(this.k().error().message))};n.j=n.a.extend({l:function(t,r,u){r=r||{};r.$c=i;n.a.call(this,t,r,u);this.featuresProgressEvents||this.ne();this.featuresTimeupdateEvents||this.oe();this.be();this.featuresNativeTextTracks||this.Sd();this.de()}});t=n.j.prototype;t.be=function(){var n,t;n=this.k();t=function(){n.controls()&&!n.usingNativeControls()&&this.Fd()};this.I(t);this.b(n,"controlsenabled",t);this.b(n,"controlsdisabled",this.De);this.I(function(){this.networkState&&0<this.networkState()&&this.k().o("loadstart")})};t.Fd=function(){var n;this.b("mousedown",this.u);this.b("touchstart",function(){n=this.d.userActive()});this.b("touchmove",function(){n&&this.k().reportUserActivity()});this.b("touchend",function(n){n.preventDefault()});ti(this);this.b("tap",this.xe)};t.De=function(){this.n("tap");this.n("touchstart");this.n("touchmove");this.n("touchleave");this.n("touchcancel");this.n("touchend");this.n("click");this.n("mousedown")};t.u=function(n){0===n.button&&this.k().controls()&&(this.k().paused()?this.k().play():this.k().pause())};t.xe=function(){this.k().userActive(!this.k().userActive())};t.ne=function(){this.Qc=u;this.We()};t.me=function(){this.Qc=i;this.hd()};t.We=function(){this.Ce=this.setInterval(function(){var n=this.k().bufferedPercent();this.Jd!=n&&this.k().o("progress");this.Jd=n;1===n&&this.hd()},500)};t.hd=function(){this.clearInterval(this.Ce)};t.oe=function(){var n=this.d;this.Vb=u;this.b(n,"play",this.md);this.b(n,"pause",this.qb);this.N("timeupdate",function(){this.featuresTimeupdateEvents=u;this.Rc()})};t.Rc=function(){var n=this.d;this.Vb=i;this.qb();this.n(n,"play",this.md);this.n(n,"pause",this.qb)};t.md=function(){this.Bc&&this.qb();this.Bc=this.setInterval(function(){this.k().o("timeupdate")},250)};t.qb=function(){this.clearInterval(this.Bc);this.k().o("timeupdate")};t.dispose=function(){this.Qc&&this.me();this.Vb&&this.Rc();n.a.prototype.dispose.call(this)};t.Zb=function(){this.Vb&&this.k().o("timeupdate")};t.de=function(){function i(){var n=r.da("textTrackDisplay");n&&n.C()}var r=this.d,t;(t=this.textTracks())&&(t.addEventListener("removetrack",i),t.addEventListener("addtrack",i),this.b("dispose",n.bind(this,function(){t.removeEventListener("removetrack",i);t.removeEventListener("addtrack",i)})))};t.Sd=function(){var t=this.d,i,r,f;window.WebVTT||(f=document.createElement("script"),f.src=t.options()["vtt.js"]||"../node_modules/vtt.js/dist/vtt.js",t.m().appendChild(f),window.WebVTT=u);(r=this.textTracks())&&(i=function(){var r,u,i;for(i=t.da("textTrackDisplay"),i.C(),r=0;r<this.length;r++)u=this[r],u.removeEventListener("cuechange",n.bind(i,i.C)),"showing"===u.mode&&u.addEventListener("cuechange",n.bind(i,i.C))},r.addEventListener("change",i),this.b("dispose",n.bind(this,function(){r.removeEventListener("change",i)})))};t.textTracks=function(){return this.d.ld=this.d.ld||new n.F,this.d.ld};t.X=function(){return this.d.Xc=this.d.Xc||new n.F,this.d.Xc};at=function(t,i,r,u,f){var e=t.textTracks();return f=f||{},f.kind=i,r&&(f.label=r),u&&(f.language=u),f.player=t.d,t=new n.t(f),tt(e,t),t};n.j.prototype.addTextTrack=function(n,t,i){if(!n)throw Error("TextTrack kind is required but was not provided");return at(this,n,t,i)};n.j.prototype.ha=function(n){return n=at(this,n.kind,n.label,n.language,n),tt(this.X(),n),{Y:n}};n.j.prototype.Da=function(n){pt(this.textTracks(),n);pt(this.X(),n)};n.j.prototype.bd=s();n.j.prototype.featuresVolumeControl=u;n.j.prototype.featuresFullscreenResize=i;n.j.prototype.featuresPlaybackRate=i;n.j.prototype.featuresProgressEvents=i;n.j.prototype.featuresTimeupdateEvents=i;n.j.prototype.featuresNativeTextTracks=i;n.j.dc=function(t){t.registerSourceHandler=function(n,i){var r=t.cd;r||(r=t.cd=[]);i===e&&(i=r.length);r.splice(i,0,n)};t.ob=function(n){for(var r=t.cd||[],u,i=0;i<r.length;i++)if(u=r[i].canHandleSource(n))return r[i];return f};t.wc=function(n){var i=t.ob(n);return i?i.canHandleSource(n):""};t.prototype.ma=function(i){var r=t.ob(i);return r||(t.nativeSourceHandler?r=t.nativeSourceHandler:n.log.error("No source hander found for the current source.")),this.ia(),this.n("dispose",this.ia),this.fb=i,this.$b=r.handleSource(i,this),this.b("dispose",this.ia),this};t.prototype.ia=function(){this.$b&&this.$b.dispose&&this.$b.dispose()}};n.media={};n.f=n.j.extend({l:function(t,r,f){var h,s,a,o,e,c,l;for((r.nativeCaptions===i||r.nativeTextTracks===i)&&(this.featuresNativeTextTracks=i),n.j.call(this,t,r,f),f=n.f.xb.length-1;0<=f;f--)this.b(n.f.xb[f],this.Td);if((r=r.source)&&(this.c.currentSrc!==r.src||t.L&&3===t.L.ce)&&this.ma(r),this.c.hasChildNodes()){for(f=this.c.childNodes,h=f.length,r=[];h--;)s=f[h],a=s.nodeName.toLowerCase(),"track"===a&&(this.featuresNativeTextTracks?tt(this.X(),s.track):r.push(s));for(f=0;f<r.length;f++)this.c.removeChild(r[f])}n.Db&&t.options().nativeControlsForTouch===u&&(o=this,e=this.k(),r=e.controls(),o.c.controls=!!r,c=function(){o.c.controls=u},l=function(){o.c.controls=i},e.b("controlsenabled",c),e.b("controlsdisabled",l),r=function(){e.n("controlsenabled",c);e.n("controlsdisabled",l)},o.b("dispose",r),e.b("usingcustomcontrols",r),e.usingNativeControls(u));t.I(function(){this.src()&&this.L&&this.q.autoplay&&this.paused()&&(delete this.L.poster,this.play())});this.Va()}});t=n.f.prototype;t.dispose=function(){n.f.Kb(this.c);n.j.prototype.dispose.call(this)};t.e=function(){var r=this.d,s,o,t,e=r.L,h;if(!e||this.movingMediaElementInDOM===i){if(e?(t=e.cloneNode(i),n.f.Kb(e),e=t,r.L=f):(e=n.e("video"),t=b.Z.Aa({},r.Te),(!n.Db||r.options().nativeControlsForTouch!==u)&&delete t.controls,n.ad(e,n.i.D(t,{id:r.id()+"_html5_api","class":"vjs-tech"}))),e.player=r,r.q.nd)for(t=0;t<r.q.nd.length;t++)s=r.q.nd[t],o=document.createElement("track"),o.Tb=s.Tb,o.label=s.label,o.ed=s.ed,o.src=s.src,"default"in s&&o.setAttribute("default","default"),e.appendChild(o);n.Rb(e,r.m())}for(s=["autoplay","preload","loop","muted"],t=s.length-1;0<=t;t--)o=s[t],h={},"undefined"!=typeof r.q[o]&&(h[o]=r.q[o]),n.ad(e,h);return e};t.Td=function(n){"error"==n.type&&this.error()?this.k().error(this.error().code):(n.bubbles=i,this.k().o(n))};t.play=function(){this.c.play()};t.pause=function(){this.c.pause()};t.paused=function(){return this.c.paused};t.currentTime=function(){return this.c.currentTime};t.Zb=function(t){try{this.c.currentTime=t}catch(i){n.log(i,"Video is not ready. (Video.js)")}};t.duration=function(){return this.c.duration||0};t.buffered=function(){return this.c.buffered};t.volume=function(){return this.c.volume};t.Oe=function(n){this.c.volume=n};t.muted=function(){return this.c.muted};t.Ke=function(n){this.c.muted=n};t.width=function(){return this.c.offsetWidth};t.height=function(){return this.c.offsetHeight};t.Sa=function(){return"function"==typeof this.c.webkitEnterFullScreen&&(/Android/.test(n.P)||!/Chrome|Mac OS X 10.5/.test(n.P))?u:i};t.Ec=function(){var n=this.c;"webkitDisplayingFullscreen"in n&&this.N("webkitbeginfullscreen",function(){this.d.isFullscreen(u);this.N("webkitendfullscreen",function(){this.d.isFullscreen(i);this.d.o("fullscreenchange")});this.d.o("fullscreenchange")});n.paused&&n.networkState<=n.ef?(this.c.play(),this.setTimeout(function(){n.pause();n.webkitEnterFullScreen()},0)):n.webkitEnterFullScreen()};t.Ud=function(){this.c.webkitExitFullScreen()};t.src=function(n){var t=this.c.src;if(n===e)return ci(t,this.dd);this.na(n)};t.na=function(n){this.c.src=n};t.load=function(){this.c.load()};t.currentSrc=function(){var n=this.c.currentSrc;return this.fb?ci(n,this.fb.src):n};t.poster=function(){return this.c.poster};t.bd=function(n){this.c.poster=n};t.Ra=function(){return this.c.Ra};t.Me=function(n){this.c.Ra=n};t.autoplay=function(){return this.c.autoplay};t.He=function(n){this.c.autoplay=n};t.controls=function(){return this.c.controls};t.loop=function(){return this.c.loop};t.Je=function(n){this.c.loop=n};t.error=function(){return this.c.error};t.seeking=function(){return this.c.seeking};t.seekable=function(){return this.c.seekable};t.ended=function(){return this.c.ended};t.playbackRate=function(){return this.c.playbackRate};t.Le=function(n){this.c.playbackRate=n};t.networkState=function(){return this.c.networkState};t.readyState=function(){return this.c.readyState};t.textTracks=function(){return this.featuresNativeTextTracks?this.c.textTracks:n.j.prototype.textTracks.call(this)};t.addTextTrack=function(t,i,r){return this.featuresNativeTextTracks?this.c.addTextTrack(t,i,r):n.j.prototype.addTextTrack.call(this,t,i,r)};t.ha=function(t){if(!this.featuresNativeTextTracks)return n.j.prototype.ha.call(this,t);var i=document.createElement("track");return t=t||{},t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t["default"]&&(i["default"]=t["default"]),t.id&&(i.id=t.id),t.src&&(i.src=t.src),this.m().appendChild(i),tt(this.X(),i.Y),i};t.Da=function(t){if(!this.featuresNativeTextTracks)return n.j.prototype.Da.call(this,t);var r,i;for(pt(this.X(),t),r=this.m().querySelectorAll("track"),i=0;i<r.length;i++)if(r[i]===t||r[i].track===t){r[i].parentNode.removeChild(r[i]);break}};n.f.isSupported=function(){try{n.A.volume=.5}catch(t){return i}return!!n.A.canPlayType};n.j.dc(n.f);li=n.f.prototype.ma;ai=n.f.prototype.ia;n.f.prototype.ma=function(n){var t=li.call(this,n);return this.dd=n.src,t};n.f.prototype.ia=function(){return this.dd=e,ai.call(this)};n.f.nativeSourceHandler={};n.f.nativeSourceHandler.canHandleSource=function(t){function i(t){try{return n.A.canPlayType(t)}catch(i){return""}}return t.type?i(t.type):t.src?(t=(t=t.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i))&&t[1],i("video/"+t)):""};n.f.nativeSourceHandler.handleSource=function(n,t){t.na(n.src)};n.f.nativeSourceHandler.dispose=s();n.f.registerSourceHandler(n.f.nativeSourceHandler);n.f.Ld=function(){var t=n.A.volume;return n.A.volume=t/2+.1,t!==n.A.volume};n.f.Kd=function(){var t=n.A.playbackRate;return n.A.playbackRate=t/2+.1,t!==n.A.playbackRate};n.f.Re=function(){var t;return(t=!!n.A.textTracks)&&0<n.A.textTracks.length&&(t="number"!=typeof n.A.textTracks[0].mode),t&&n.gc&&(t=i),t};n.f.prototype.featuresVolumeControl=n.f.Ld();n.f.prototype.featuresPlaybackRate=n.f.Kd();n.f.prototype.movingMediaElementInDOM=!n.xd;n.f.prototype.featuresFullscreenResize=u;n.f.prototype.featuresProgressEvents=u;n.f.prototype.featuresNativeTextTracks=n.f.Re();vi=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;yi=/^video\/mp4/i;n.f.Tc=function(){4<=n.ec&&(p||(p=n.A.constructor.prototype.canPlayType),n.A.constructor.prototype.canPlayType=function(n){return n&&vi.test(n)?"maybe":p.call(this,n)});n.Bd&&(p||(p=n.A.constructor.prototype.canPlayType),n.A.constructor.prototype.canPlayType=function(n){return n&&yi.test(n)?"maybe":p.call(this,n)})};n.f.Ye=function(){var t=n.A.constructor.prototype.canPlayType;return n.A.constructor.prototype.canPlayType=p,p=f,t};n.f.Tc();n.f.xb="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange volumechange".split(" ");n.f.Kb=function(n){if(n){for(n.player=f,n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);if(n.removeAttribute("src"),"function"==typeof n.load)try{n.load()}catch(t){}}};n.g=n.j.extend({l:function(t,r,u){var e;n.j.call(this,t,r,u);e=r.source;u=t.id()+"_flash_api";var f=t.q,f=n.i.D({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:f.autoplay,preload:f.Ra,loop:f.loop,muted:f.muted},r.flashVars),o=n.i.D({wmode:"opaque",bgcolor:"#000000"},r.params);u=n.i.D({id:u,name:u,"class":"vjs-tech"},r.attributes);e&&this.I(function(){this.ma(e)});n.Rb(this.c,r.parentEl);r.startTime&&this.I(function(){this.load();this.play();this.currentTime(r.startTime)});n.gc&&this.I(function(){this.b("mousemove",function(){this.k().o({type:"mousemove",bubbles:i})})});t.b("stageclick",t.reportUserActivity);this.c=n.g.Dc(r.swf,this.c,f,o,u)}});t=n.g.prototype;t.dispose=function(){n.j.prototype.dispose.call(this)};t.play=function(){this.ended()&&this.setCurrentTime(0);this.c.vjs_play()};t.pause=function(){this.c.vjs_pause()};t.src=function(n){return n===e?this.currentSrc():this.na(n)};t.na=function(t){if(t=n.Xd(t),this.c.vjs_src(t),this.d.autoplay()){var i=this;this.setTimeout(function(){i.play()},0)}};n.g.prototype.setCurrentTime=function(t){this.ke=t;this.c.vjs_setProperty("currentTime",t);n.j.prototype.Zb.call(this)};n.g.prototype.currentTime=function(){return this.seeking()?this.ke||0:this.c.vjs_getProperty("currentTime")};n.g.prototype.currentSrc=function(){return this.fb?this.fb.src:this.c.vjs_getProperty("currentSrc")};n.g.prototype.load=function(){this.c.vjs_load()};n.g.prototype.poster=function(){this.c.vjs_getProperty("poster")};n.g.prototype.setPoster=s();t=n.g.prototype;t.seekable=function(){return 0===this.duration()?n.xa():n.xa(0,this.duration())};t.buffered=function(){return this.c.vjs_getProperty?n.xa(0,this.c.vjs_getProperty("buffered")):n.xa()};t.duration=function(){return this.c.vjs_getProperty?this.c.vjs_getProperty("duration"):0};t.Sa=d(i);t.Ec=d(i);for(var wi=n.g.prototype,vt="rtmpConnection rtmpStream preload defaultPlaybackRate playbackRate autoplay loop mediaGroup controller controls volume muted defaultMuted".split(" "),bi="error networkState readyState seeking initialTime startOffsetTime paused played ended videoTracks audioTracks videoWidth videoHeight".split(" "),l=0;l<vt.length;l++)pi(vt[l]),ur();for(l=0;l<bi.length;l++)pi(bi[l]);n.g.isSupported=function(){return 10<=n.g.version()[0]};n.j.dc(n.g);n.g.nativeSourceHandler={};n.g.nativeSourceHandler.canHandleSource=function(t){return t.type?t.type.replace(/;.*/,"").toLowerCase()in n.g.Wd?"maybe":"":""};n.g.nativeSourceHandler.handleSource=function(n,t){t.na(n.src)};n.g.nativeSourceHandler.dispose=s();n.g.registerSourceHandler(n.g.nativeSourceHandler);n.g.Wd={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};n.g.onReady=function(t){var i;(i=(t=n.m(t))&&t.parentNode&&t.parentNode.player)&&(t.player=i,n.g.checkReady(i.h))};n.g.checkReady=function(t){t.m()&&(t.m().vjs_getProperty?t.Va():this.setTimeout(function(){n.g.checkReady(t)},50))};n.g.onEvent=function(t,i){n.m(t).player.o(i)};n.g.onError=function(t,i){var r=n.m(t).player,u="FLASH: "+i;"srcnotfound"==i?r.error({code:4,message:u}):r.error(u)};n.g.version=function(){var n="0,0,0";try{n=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return n.split(",")};n.g.Dc=function(t,i,r,u,f){t=n.g.$d(t,r,u,f);t=n.e("div",{innerHTML:t}).childNodes[0];r=i.parentNode;i.parentNode.replaceChild(t,i);t[n.expando]=i[n.expando];var e=r.childNodes[0];return setTimeout(function(){e.style.display="block"},1e3),t};n.g.$d=function(t,i,r,u){var f="",e="",o="";return i&&n.i.ca(i,function(n,t){f+=n+"="+t+"&amp;"}),r=n.i.D({movie:t,flashvars:f,allowScriptAccess:"always",allowNetworking:"all"},r),n.i.ca(r,function(n,t){e+='<param name="'+n+'" value="'+t+'" />'}),u=n.i.D({data:t,width:"100%",height:"100%"},u),n.i.ca(u,function(n,t){o+=n+'="'+t+'" '}),'<object type="application/x-shockwave-flash" '+o+">"+e+"<\/object>"};n.g.Qe={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};n.g.Df=function(n,t){return n+"&"+t};n.g.Pe=function(n){var i={yc:"",jd:""},t,r;return n?(t=n.indexOf("&"),-1!==t?r=t+1:(t=r=n.lastIndexOf("/")+1,0===t&&(t=r=n.length)),i.yc=n.substring(0,t),i.jd=n.substring(r,n.length),i):i};n.g.ie=function(t){return t in n.g.Qe};n.g.Dd=/^rtmp[set]?:\/\//i;n.g.he=function(t){return n.g.Dd.test(t)};n.g.Yb={};n.g.Yb.canHandleSource=function(t){return n.g.ie(t.type)||n.g.he(t.src)?"maybe":""};n.g.Yb.handleSource=function(t,i){var r=n.g.Pe(t.src);i.setRtmpConnection(r.yc);i.setRtmpStream(r.jd)};n.g.registerSourceHandler(n.g.Yb);n.Cd=n.a.extend({l:function(t,i,r){if(n.a.call(this,t,i,r),t.q.sources&&0!==t.q.sources.length)t.src(t.q.sources);else for(i=0,r=t.q.techOrder;i<r.length;i++){var u=n.va(r[i]),f=window.videojs[u];if(f&&f.isSupported()){fi(t,u);break}}}});n.oc={disabled:"disabled",hidden:"hidden",showing:"showing"};n.Ed={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};n.t=function(t){var r,a,e,s,v,y,p,h,c,o,l;if(t=t||{},!t.player)throw Error("A player was not provided.");if(r=this,n.pa)for(l in r=document.createElement("custom"),n.t.prototype)r[l]=n.t.prototype[l];return r.d=t.player,e=n.oc[t.mode]||"disabled",s=n.Ed[t.kind]||"subtitles",v=t.label||"",y=t.language||t.srclang||"",a=t.id||"vjs_text_track_"+n.s++,("metadata"===s||"chapters"===s)&&(e="hidden"),r.V=[],r.Ia=[],p=new n.U(r.V),h=new n.U(r.Ia),o=i,c=n.bind(r,function(){this.activeCues;o&&(this.trigger("cuechange"),o=i)}),"disabled"!==e&&r.d.b("timeupdate",c),Object.defineProperty(r,"kind",{get:function(){return s},set:Function.prototype}),Object.defineProperty(r,"label",{get:function(){return v},set:Function.prototype}),Object.defineProperty(r,"language",{get:function(){return y},set:Function.prototype}),Object.defineProperty(r,"id",{get:function(){return a},set:Function.prototype}),Object.defineProperty(r,"mode",{get:function(){return e},set:function(t){n.oc[t]&&(e=t,"showing"===e&&this.d.b("timeupdate",c),this.o("modechange"))}}),Object.defineProperty(r,"cues",{get:function(){return this.Ub?p:f},set:Function.prototype}),Object.defineProperty(r,"activeCues",{get:function(){var t,s,r,e,n;if(!this.Ub)return f;if(0===this.cues.length)return h;for(e=this.d.currentTime(),t=0,s=this.cues.length,r=[];t<s;t++)n=this.cues[t],n.startTime<=e&&n.endTime>=e?r.push(n):n.startTime===n.endTime&&n.startTime<=e&&n.startTime+.5>=e&&r.push(n);if(o=i,r.length!==this.Ia.length)o=u;else for(t=0;t<r.length;t++)-1===di.call(this.Ia,r[t])&&(o=u);return this.Ia=r,h.pb(this.Ia),h},set:Function.prototype}),t.src?ki(t.src,r):r.Ub=u,n.pa?r:void 0};n.t.prototype=n.i.create(n.z.prototype);n.t.prototype.constructor=n.t;n.t.prototype.ab={cuechange:"cuechange"};n.t.prototype.sc=function(n){var t=this.d.textTracks(),i=0;if(t)for(;i<t.length;i++)t[i]!==this&&t[i].Yc(n);this.V.push(n);this.cues.pb(this.V)};n.t.prototype.Yc=function(n){for(var t=0,e=this.V.length,r,f=i;t<e;t++)r=this.V[t],r===n&&(this.V.splice(t,1),f=u);f&&this.Ac.pb(this.V)};ki=function(t,i){n.bf(t,n.bind(this,function(t,r,f){if(t)return n.log.error(t);i.Ub=u;yt(f,i)}))};yt=function(t,i){if("function"!=typeof WebVTT)window.setTimeout(function(){yt(t,i)},25);else{var r=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder());r.oncue=function(n){i.sc(n)};r.onparsingerror=function(t){n.log.error(t)};r.parse(t);r.flush()}};di=function(n,t){var i,u,r;if(this==f)throw new TypeError('"this" is null or not defined');if((u=Object(this),r=u.length>>>0,0===r)||(i=+t||0,Infinity===Math.abs(i)&&(i=0),i>=r))return-1;for(i=Math.max(0<=i?i:r-Math.abs(i),0);i<r;){if(i in u&&u[i]===n)return i;i++}return-1};n.F=function(t){var i=this,r,u=0;if(n.pa)for(r in i=document.createElement("custom"),n.F.prototype)i[r]=n.F.prototype[r];for(t=t||[],i.Ua=[],Object.defineProperty(i,"length",{get:function(){return this.Ua.length}});u<t.length;u++)tt(i,t[u]);if(n.pa)return i};n.F.prototype=n.i.create(n.z.prototype);n.F.prototype.constructor=n.F;n.F.prototype.ab={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(gi in n.F.prototype.ab)n.F.prototype["on"+gi]=f;n.F.prototype.ae=function(n){for(var t=0,u=this.length,r=f,i;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r};n.U=function(t){var i=this,r;if(n.pa)for(r in i=document.createElement("custom"),n.U.prototype)i[r]=n.U.prototype[r];return n.U.prototype.pb.call(i,t),Object.defineProperty(i,"length",{get:w("le")}),n.pa?i:void 0};n.U.prototype.pb=function(n){var i=this.length||0,t=0,r=n.length;if(this.V=n,this.le=n.length,n=function(n){""+n in this||Object.defineProperty(this,""+n,{get:function(){return this.V[n]}})},i<r)for(t=i;t<r;t++)n.call(this,t)};n.U.prototype.Zd=function(n){for(var t=0,u=this.length,r=f,i;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r};n.sa=n.a.extend({l:function(t,i,r){n.a.call(this,t,i,r);t.b("loadstart",n.bind(this,this.Ve));t.I(n.bind(this,function(){if(t.h&&t.h.featuresNativeTextTracks)this.W();else{var i,r,u;for(t.b("fullscreenchange",n.bind(this,this.C)),r=t.q.tracks||[],i=0;i<r.length;i++)u=r[i],this.d.ha(u)}}))}});n.sa.prototype.Ve=function(){this.d.h&&this.d.h.featuresNativeTextTracks?this.W():this.show()};n.sa.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-text-track-display"})};n.sa.prototype.Md=function(){"function"==typeof WebVTT&&window.WebVTT.processCues(window,[],this.c)};nr={tf:"monospace",zf:"sans-serif",Bf:"serif",uf:'"Andale Mono", "Lucida Console", monospace',vf:'"Courier New", monospace',xf:"sans-serif",yf:"serif",kf:'"Comic Sans MS", Impact, fantasy',Af:'"Monotype Corsiva", cursive',Cf:'"Andale Mono", "Lucida Console", monospace, sans-serif'};n.sa.prototype.C=function(){var n=this.d.textTracks(),t=0,i;if(this.Md(),n)for(;t<n.length;t++)i=n[t],"showing"===i.mode&&this.Ze(i)};n.sa.prototype.Ze=function(n){if("function"==typeof WebVTT&&n.activeCues){for(var i=0,t=this.d.textTrackSettings.Hc(),u,r=[];i<n.activeCues.length;i++)r.push(n.activeCues[i]);for(window.WebVTT.processCues(window,n.activeCues,this.c),i=r.length;i--;){if(n=r[i].lf,t.color&&(n.firstChild.style.color=t.color),t.kd)try{n.firstChild.style.color=wt(t.color||"#fff",t.kd)}catch(f){}if(t.backgroundColor&&(n.firstChild.style.backgroundColor=t.backgroundColor),t.vc)try{n.firstChild.style.backgroundColor=wt(t.backgroundColor||"#000",t.vc)}catch(e){}if(t.cc)if(t.rd)try{n.style.backgroundColor=wt(t.cc,t.rd)}catch(o){}else n.style.backgroundColor=t.cc;t.Ma&&("dropshadow"===t.Ma?n.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.Ma?n.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.Ma?n.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.Ma&&(n.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222"));t.Ob&&1!==t.Ob&&(u=window.wf(n.style.fontSize),n.style.fontSize=u*t.Ob+"px",n.style.height="auto",n.style.top="auto",n.style.bottom="2px");t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?n.firstChild.style.fontVariant="small-caps":n.firstChild.style.fontFamily=nr[t.fontFamily])}}};n.$=n.M.extend({l:function(t,r){var s=this.Y=r.track,f=t.textTracks(),h,o;f&&(h=n.bind(this,function(){var r="showing"===this.Y.mode,e,t,o;if(this instanceof n.zb)for(r=u,t=0,o=f.length;t<o;t++)if(e=f[t],e.kind===this.Y.kind&&"showing"===e.mode){r=i;break}this.selected(r)}),f.addEventListener("change",h),t.b("dispose",function(){f.removeEventListener("change",h)}));r.label=s.label||s.language||"Unknown";r.selected=s["default"]||"showing"===s.mode;n.M.call(this,t,r);f&&f.onchange===e&&this.b(["tap","click"],function(){if("object"!=typeof vd)try{o=new window.vd("change")}catch(n){}o||(o=document.createEvent("Event"),o.initEvent("change",u,u));f.dispatchEvent(o)})}});n.$.prototype.u=function(){var u=this.Y.kind,i=this.d.textTracks(),t,r=0;if(n.M.prototype.u.call(this),i)for(;r<i.length;r++)t=i[r],t.kind===u&&(t.mode=t===this.Y?"showing":"disabled")};n.zb=n.$.extend({l:function(t,r){r.track={kind:r.kind,player:t,label:r.kind+" off","default":i,mode:"disabled"};n.$.call(this,t,r);this.selected(u)}});n.sb=n.$.extend({l:function(t,r){r.track={kind:r.kind,player:t,label:r.kind+" settings","default":i,mode:"disabled"};n.$.call(this,t,r);this.p("vjs-texttrack-settings")}});n.sb.prototype.u=function(){this.k().da("textTrackSettings").show()};n.Q=n.O.extend({l:function(t,i){var r,u;n.O.call(this,t,i);r=this.d.textTracks();1>=this.H.length&&this.W();r&&(u=n.bind(this,this.update),r.addEventListener("removetrack",u),r.addEventListener("addtrack",u),this.d.b("dispose",function(){r.removeEventListener("removetrack",u);r.removeEventListener("addtrack",u)}))}});n.Q.prototype.Ka=function(){var t=[],u,i,r;if(this instanceof n.oa&&(!this.k().h||!this.k().h.featuresNativeTextTracks)&&t.push(new n.sb(this.d,{kind:this.ea})),t.push(new n.zb(this.d,{kind:this.ea})),i=this.d.textTracks(),!i)return t;for(r=0;r<i.length;r++)u=i[r],u.kind===this.ea&&t.push(new n.$(this.d,{track:u}));return t};n.oa=n.Q.extend({l:function(t,i,r){n.Q.call(this,t,i,r);this.c.setAttribute("aria-label","Captions Menu")}});n.oa.prototype.ea="captions";n.oa.prototype.ta="Captions";n.oa.prototype.className="vjs-captions-button";n.oa.prototype.update=function(){var t=2;n.Q.prototype.update.call(this);this.k().h&&this.k().h.featuresNativeTextTracks&&(t=1);this.H&&this.H.length>t?this.show():this.W()};n.$a=n.Q.extend({l:function(t,i,r){n.Q.call(this,t,i,r);this.c.setAttribute("aria-label","Subtitles Menu")}});n.$a.prototype.ea="subtitles";n.$a.prototype.ta="Subtitles";n.$a.prototype.className="vjs-subtitles-button";n.Wa=n.Q.extend({l:function(t,i,r){n.Q.call(this,t,i,r);this.c.setAttribute("aria-label","Chapters Menu")}});t=n.Wa.prototype;t.ea="chapters";t.ta="Chapters";t.className="vjs-chapters-button";t.Ka=function(){var r=[],u,t,i;if(t=this.d.textTracks(),!t)return r;for(i=0;i<t.length;i++)u=t[i],u.kind===this.ea&&r.push(new n.$(this.d,{track:u}));return r};t.La=function(){for(var u,t=this.d.textTracks()||[],r=0,o=t.length,i,f,s=this.H=[];r<o;r++)if(i=t[r],i.kind==this.ea)if(i.Ac){f=i;break}else i.mode="hidden",window.setTimeout(n.bind(this,function(){this.La()}),100);if(t=this.za,t===e&&(t=new n.qa(this.d),t.wa().appendChild(n.e("li",{className:"vjs-menu-title",innerHTML:n.va(this.ea),Se:-1}))),f){for(i=f.cues,r=0,o=i.length;r<o;r++)u=i[r],u=new n.Xa(this.d,{track:f,cue:u}),s.push(u),t.aa(u);this.aa(t)}return 0<this.H.length&&this.show(),t};n.Xa=n.M.extend({l:function(t,i){var f=this.Y=i.track,r=this.cue=i.cue,u=t.currentTime();i.label=r.text;i.selected=r.startTime<=u&&u<r.endTime;n.M.call(this,t,i);f.addEventListener("cuechange",n.bind(this,this.update))}});n.Xa.prototype.u=function(){n.M.prototype.u.call(this);this.d.currentTime(this.cue.startTime);this.update(this.cue.startTime)};n.Xa.prototype.update=function(){var n=this.cue,t=this.d.currentTime();this.selected(n.startTime<=t&&t<n.endTime)};n.pc=n.a.extend({l:function(t,i){n.a.call(this,t,i);this.W();n.b(this.m().querySelector(".vjs-done-button"),"click",n.bind(this,function(){this.Fe();this.W()}));n.b(this.m().querySelector(".vjs-default-button"),"click",n.bind(this,function(){this.m().querySelector(".vjs-fg-color > select").selectedIndex=0;this.m().querySelector(".vjs-bg-color > select").selectedIndex=0;this.m().querySelector(".window-color > select").selectedIndex=0;this.m().querySelector(".vjs-text-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-bg-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-window-opacity > select").selectedIndex=0;this.m().querySelector(".vjs-edge-style select").selectedIndex=0;this.m().querySelector(".vjs-font-family select").selectedIndex=0;this.m().querySelector(".vjs-font-percent select").selectedIndex=2;this.C()}));n.b(this.m().querySelector(".vjs-fg-color > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-bg-color > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".window-color > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-text-opacity > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-bg-opacity > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-window-opacity > select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-font-percent select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-edge-style select"),"change",n.bind(this,this.C));n.b(this.m().querySelector(".vjs-font-family select"),"change",n.bind(this,this.C));t.options().persistTextTrackSettings&&this.Ee()}});t=n.pc.prototype;t.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'<div class="vjs-tracksettings"><div class="vjs-tracksettings-colors"><div class="vjs-fg-color vjs-tracksetting"><label class="vjs-label">Foreground<\/label><select><option value="">---<\/option><option value="#FFF">White<\/option><option value="#000">Black<\/option><option value="#F00">Red<\/option><option value="#0F0">Green<\/option><option value="#00F">Blue<\/option><option value="#FF0">Yellow<\/option><option value="#F0F">Magenta<\/option><option value="#0FF">Cyan<\/option><\/select><span class="vjs-text-opacity vjs-opacity"><select><option value="">---<\/option><option value="1">Opaque<\/option><option value="0.5">Semi-Opaque<\/option><\/select><\/span><\/div><div class="vjs-bg-color vjs-tracksetting"><label class="vjs-label">Background<\/label><select><option value="">---<\/option><option value="#FFF">White<\/option><option value="#000">Black<\/option><option value="#F00">Red<\/option><option value="#0F0">Green<\/option><option value="#00F">Blue<\/option><option value="#FF0">Yellow<\/option><option value="#F0F">Magenta<\/option><option value="#0FF">Cyan<\/option><\/select><span class="vjs-bg-opacity vjs-opacity"><select><option value="">---<\/option><option value="1">Opaque<\/option><option value="0.5">Semi-Transparent<\/option><option value="0">Transparent<\/option><\/select><\/span><\/div><div class="window-color vjs-tracksetting"><label class="vjs-label">Window<\/label><select><option value="">---<\/option><option value="#FFF">White<\/option><option value="#000">Black<\/option><option value="#F00">Red<\/option><option value="#0F0">Green<\/option><option value="#00F">Blue<\/option><option value="#FF0">Yellow<\/option><option value="#F0F">Magenta<\/option><option value="#0FF">Cyan<\/option><\/select><span class="vjs-window-opacity vjs-opacity"><select><option value="">---<\/option><option value="1">Opaque<\/option><option value="0.5">Semi-Transparent<\/option><option value="0">Transparent<\/option><\/select><\/span><\/div><\/div><div class="vjs-tracksettings-font"><div class="vjs-font-percent vjs-tracksetting"><label class="vjs-label">Font Size<\/label><select><option value="0.50">50%<\/option><option value="0.75">75%<\/option><option value="1.00" selected>100%<\/option><option value="1.25">125%<\/option><option value="1.50">150%<\/option><option value="1.75">175%<\/option><option value="2.00">200%<\/option><option value="3.00">300%<\/option><option value="4.00">400%<\/option><\/select><\/div><div class="vjs-edge-style vjs-tracksetting"><label class="vjs-label">Text Edge Style<\/label><select><option value="none">None<\/option><option value="raised">Raised<\/option><option value="depressed">Depressed<\/option><option value="uniform">Uniform<\/option><option value="dropshadow">Dropshadow<\/option><\/select><\/div><div class="vjs-font-family vjs-tracksetting"><label class="vjs-label">Font Family<\/label><select><option value="">Default<\/option><option value="monospaceSerif">Monospace Serif<\/option><option value="proportionalSerif">Proportional Serif<\/option><option value="monospaceSansSerif">Monospace Sans-Serif<\/option><option value="proportionalSansSerif">Proportional Sans-Serif<\/option><option value="casual">Casual<\/option><option value="script">Script<\/option><option value="small-caps">Small Caps<\/option><\/select><\/div><\/div><\/div><div class="vjs-tracksettings-controls"><button class="vjs-default-button">Defaults<\/button><button class="vjs-done-button">Done<\/button><\/div>'})};t.Hc=function(){var n,t,r,u,f,e,o,s,h,i;n=this.m();f=a(n.querySelector(".vjs-edge-style select"));e=a(n.querySelector(".vjs-font-family select"));o=a(n.querySelector(".vjs-fg-color > select"));r=a(n.querySelector(".vjs-text-opacity > select"));s=a(n.querySelector(".vjs-bg-color > select"));t=a(n.querySelector(".vjs-bg-opacity > select"));h=a(n.querySelector(".window-color > select"));u=a(n.querySelector(".vjs-window-opacity > select"));n=window.parseFloat(a(n.querySelector(".vjs-font-percent > select")));t={backgroundOpacity:t,textOpacity:r,windowOpacity:u,edgeStyle:f,fontFamily:e,color:o,backgroundColor:s,windowColor:h,fontPercent:n};for(i in t)(""===t[i]||"none"===t[i]||"fontPercent"===i&&1===t[i])&&delete t[i];return t};t.Ne=function(n){var t=this.m();v(t.querySelector(".vjs-edge-style select"),n.Ma);v(t.querySelector(".vjs-font-family select"),n.fontFamily);v(t.querySelector(".vjs-fg-color > select"),n.color);v(t.querySelector(".vjs-text-opacity > select"),n.kd);v(t.querySelector(".vjs-bg-color > select"),n.backgroundColor);v(t.querySelector(".vjs-bg-opacity > select"),n.vc);v(t.querySelector(".window-color > select"),n.cc);v(t.querySelector(".vjs-window-opacity > select"),n.rd);(n=n.Ob)&&(n=n.toFixed(2));v(t.querySelector(".vjs-font-percent > select"),n)};t.Ee=function(){var n;try{n=JSON.parse(window.localStorage.getItem("vjs-text-track-settings"))}catch(t){}n&&this.Ne(n)};t.Fe=function(){var t;if(this.d.options().persistTextTrackSettings){t=this.Hc();try{n.hb(t)?window.localStorage.removeItem("vjs-text-track-settings"):window.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t))}catch(i){}}};t.C=function(){var n=this.d.da("textTrackDisplay");n&&n.C()};"undefined"!=typeof JSON&&"function"==typeof window.JSON.parse?n.JSON=window.JSON:(n.JSON={},ot=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n.JSON.parse=function(a,c){function d(n,t){var r,u,i=n[t];if(i&&"object"==typeof i)for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=d(i,r),u!==e?i[r]=u:delete i[r]);return c.call(n,t,i)}var e;if(a=String(a),ot.lastIndex=0,ot.test(a)&&(a=a.replace(ot,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"==typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data");});n.uc=function(){var r,i,t,o,u;if(r=document.getElementsByTagName("video"),i=document.getElementsByTagName("audio"),u=[],r&&0<r.length)for(t=0,o=r.length;t<o;t++)u.push(r[t]);if(i&&0<i.length)for(t=0,o=i.length;t<o;t++)u.push(i[t]);if(u&&0<u.length)for(t=0,o=u.length;t<o;t++)if((i=u[t])&&i.getAttribute)i.player===e&&(r=i.getAttribute("data-setup"),r!==f&&b(i));else{n.Hb();break}else n.qd||n.Hb()};n.Hb=function(){setTimeout(n.uc,1)};"complete"===document.readyState?n.qd=u:n.N(window,"load",function(){n.qd=u});n.Hb();n.Be=function(t,i){n.Player.prototype[t]=i};tr=this;r("videojs",n);r("_V_",n);r("videojs.options",n.options);r("videojs.players",n.Ca);r("videojs.TOUCH_ENABLED",n.Db);r("videojs.cache",n.ua);r("videojs.Component",n.a);n.a.prototype.player=n.a.prototype.k;n.a.prototype.options=n.a.prototype.options;n.a.prototype.init=n.a.prototype.l;n.a.prototype.dispose=n.a.prototype.dispose;n.a.prototype.createEl=n.a.prototype.e;n.a.prototype.contentEl=n.a.prototype.wa;n.a.prototype.el=n.a.prototype.m;n.a.prototype.addChild=n.a.prototype.aa;n.a.prototype.getChild=n.a.prototype.da;n.a.prototype.getChildById=n.a.prototype.Yd;n.a.prototype.children=n.a.prototype.children;n.a.prototype.initChildren=n.a.prototype.Kc;n.a.prototype.removeChild=n.a.prototype.removeChild;n.a.prototype.on=n.a.prototype.b;n.a.prototype.off=n.a.prototype.n;n.a.prototype.one=n.a.prototype.N;n.a.prototype.trigger=n.a.prototype.o;n.a.prototype.triggerReady=n.a.prototype.Va;n.a.prototype.show=n.a.prototype.show;n.a.prototype.hide=n.a.prototype.W;n.a.prototype.width=n.a.prototype.width;n.a.prototype.height=n.a.prototype.height;n.a.prototype.dimensions=n.a.prototype.Qd;n.a.prototype.ready=n.a.prototype.I;n.a.prototype.addClass=n.a.prototype.p;n.a.prototype.removeClass=n.a.prototype.r;n.a.prototype.hasClass=n.a.prototype.Pa;n.a.prototype.buildCSSClass=n.a.prototype.T;n.a.prototype.localize=n.a.prototype.v;n.a.prototype.setInterval=n.a.prototype.setInterval;n.a.prototype.setTimeout=n.a.prototype.setTimeout;r("videojs.EventEmitter",n.z);n.z.prototype.on=n.z.prototype.b;n.z.prototype.addEventListener=n.z.prototype.addEventListener;n.z.prototype.off=n.z.prototype.n;n.z.prototype.removeEventListener=n.z.prototype.removeEventListener;n.z.prototype.one=n.z.prototype.N;n.z.prototype.trigger=n.z.prototype.o;n.z.prototype.dispatchEvent=n.z.prototype.dispatchEvent;n.Player.prototype.ended=n.Player.prototype.ended;n.Player.prototype.enterFullWindow=n.Player.prototype.Fc;n.Player.prototype.exitFullWindow=n.Player.prototype.Lb;n.Player.prototype.preload=n.Player.prototype.Ra;n.Player.prototype.remainingTime=n.Player.prototype.remainingTime;n.Player.prototype.supportsFullScreen=n.Player.prototype.Sa;n.Player.prototype.currentType=n.Player.prototype.Nd;n.Player.prototype.requestFullScreen=n.Player.prototype.requestFullScreen;n.Player.prototype.requestFullscreen=n.Player.prototype.requestFullscreen;n.Player.prototype.cancelFullScreen=n.Player.prototype.cancelFullScreen;n.Player.prototype.exitFullscreen=n.Player.prototype.exitFullscreen;n.Player.prototype.isFullScreen=n.Player.prototype.isFullScreen;n.Player.prototype.isFullscreen=n.Player.prototype.isFullscreen;n.Player.prototype.textTracks=n.Player.prototype.textTracks;n.Player.prototype.remoteTextTracks=n.Player.prototype.X;n.Player.prototype.addTextTrack=n.Player.prototype.addTextTrack;n.Player.prototype.addRemoteTextTrack=n.Player.prototype.ha;n.Player.prototype.removeRemoteTextTrack=n.Player.prototype.Da;n.Player.prototype.seekable=n.Player.prototype.seekable;r("videojs.MediaLoader",n.Cd);r("videojs.TextTrackDisplay",n.sa);r("videojs.ControlBar",n.tb);r("videojs.Button",n.w);r("videojs.PlayToggle",n.kc);r("videojs.FullscreenToggle",n.Ya);r("videojs.BigPlayButton",n.rb);r("videojs.LoadingSpinner",n.ic);r("videojs.CurrentTimeDisplay",n.ub);r("videojs.DurationDisplay",n.vb);r("videojs.TimeDivider",n.qc);r("videojs.RemainingTimeDisplay",n.Cb);r("videojs.LiveDisplay",n.hc);r("videojs.ErrorDisplay",n.wb);r("videojs.Slider",n.S);r("videojs.ProgressControl",n.Bb);r("videojs.SeekBar",n.nc);r("videojs.LoadProgressBar",n.yb);r("videojs.PlayProgressBar",n.jc);r("videojs.SeekHandle",n.Za);r("videojs.VolumeControl",n.Fb);r("videojs.VolumeBar",n.Eb);r("videojs.VolumeLevel",n.rc);r("videojs.VolumeMenuButton",n.Ha);r("videojs.VolumeHandle",n.Gb);r("videojs.MuteToggle",n.ra);r("videojs.PosterImage",n.mc);r("videojs.Menu",n.qa);r("videojs.MenuItem",n.M);r("videojs.MenuButton",n.O);r("videojs.PlaybackRateMenuButton",n.lc);r("videojs.ChaptersTrackMenuItem",n.Xa);r("videojs.TextTrackButton",n.Q);r("videojs.TextTrackMenuItem",n.$);r("videojs.OffTextTrackMenuItem",n.zb);r("videojs.CaptionSettingsMenuItem",n.sb);n.O.prototype.createItems=n.O.prototype.Ka;n.Q.prototype.createItems=n.Q.prototype.Ka;n.Wa.prototype.createItems=n.Wa.prototype.Ka;r("videojs.SubtitlesButton",n.$a);r("videojs.CaptionsButton",n.oa);r("videojs.ChaptersButton",n.Wa);r("videojs.MediaTechController",n.j);n.j.withSourceHandlers=n.j.dc;n.j.prototype.featuresVolumeControl=n.j.prototype.qf;n.j.prototype.featuresFullscreenResize=n.j.prototype.mf;n.j.prototype.featuresPlaybackRate=n.j.prototype.nf;n.j.prototype.featuresProgressEvents=n.j.prototype.of;n.j.prototype.featuresTimeupdateEvents=n.j.prototype.pf;n.j.prototype.setPoster=n.j.prototype.bd;n.j.prototype.textTracks=n.j.prototype.textTracks;n.j.prototype.remoteTextTracks=n.j.prototype.X;n.j.prototype.addTextTrack=n.j.prototype.addTextTrack;n.j.prototype.addRemoteTextTrack=n.j.prototype.ha;n.j.prototype.removeRemoteTextTrack=n.j.prototype.Da;r("videojs.Html5",n.f);n.f.Events=n.f.xb;n.f.isSupported=n.f.isSupported;n.f.canPlaySource=n.f.wc;n.f.patchCanPlayType=n.f.Tc;n.f.unpatchCanPlayType=n.f.Ye;n.f.prototype.setCurrentTime=n.f.prototype.Zb;n.f.prototype.setVolume=n.f.prototype.Oe;n.f.prototype.setMuted=n.f.prototype.Ke;n.f.prototype.setPreload=n.f.prototype.Me;n.f.prototype.setAutoplay=n.f.prototype.He;n.f.prototype.setLoop=n.f.prototype.Je;n.f.prototype.enterFullScreen=n.f.prototype.Ec;n.f.prototype.exitFullScreen=n.f.prototype.Ud;n.f.prototype.playbackRate=n.f.prototype.playbackRate;n.f.prototype.setPlaybackRate=n.f.prototype.Le;n.f.selectSourceHandler=n.f.ob;n.f.prototype.setSource=n.f.prototype.ma;n.f.prototype.disposeSourceHandler=n.f.prototype.ia;n.f.prototype.textTracks=n.f.prototype.textTracks;n.f.prototype.remoteTextTracks=n.f.prototype.X;n.f.prototype.addTextTrack=n.f.prototype.addTextTrack;n.f.prototype.addRemoteTextTrack=n.f.prototype.ha;n.f.prototype.removeRemoteTextTrack=n.f.prototype.Da;r("videojs.Flash",n.g);n.g.isSupported=n.g.isSupported;n.g.canPlaySource=n.g.wc;n.g.onReady=n.g.onReady;n.g.embed=n.g.Dc;n.g.version=n.g.version;n.g.prototype.setSource=n.g.prototype.ma;n.g.selectSourceHandler=n.g.ob;n.g.prototype.setSource=n.g.prototype.ma;n.g.prototype.disposeSourceHandler=n.g.prototype.ia;r("videojs.TextTrack",n.t);r("videojs.TextTrackList",n.F);r("videojs.TextTrackCueList",n.U);r("videojs.TextTrackSettings",n.pc);n.t.prototype.id=n.t.prototype.id;n.t.prototype.label=n.t.prototype.label;n.t.prototype.kind=n.t.prototype.Tb;n.t.prototype.mode=n.t.prototype.mode;n.t.prototype.cues=n.t.prototype.Ac;n.t.prototype.activeCues=n.t.prototype.jf;n.t.prototype.addCue=n.t.prototype.sc;n.t.prototype.removeCue=n.t.prototype.Yc;n.F.prototype.getTrackById=n.F.prototype.ae;n.U.prototype.getCueById=n.F.prototype.Zd;r("videojs.CaptionsTrack",n.cf);r("videojs.SubtitlesTrack",n.hf);r("videojs.ChaptersTrack",n.df);r("videojs.autoSetup",n.uc);r("videojs.plugin",n.Be);r("videojs.createTimeRange",n.xa);r("videojs.util",n.Z);n.Z.mergeOptions=n.Z.Aa;n.addLanguage=n.Gd}();!function(n){var t=n.vttjs={},i=t.VTTCue,r=t.VTTRegion,u=n.VTTCue,f=n.VTTRegion;t.shim=function(){t.VTTCue=i;t.VTTRegion=r};t.restore=function(){t.VTTCue=u;t.VTTRegion=f}}(this),function(n,t){function f(n){if("string"!=typeof n)return!1;var t=o[n.toLowerCase()];return t?n.toLowerCase():!1}function r(n){if("string"!=typeof n)return!1;var t=s[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)n[r]=i[r]}return n}function u(n,t,u){var o=this,h=/MSIE\s8\.0/.test(navigator.userAgent),s={};h?o=document.createElement("custom"):s.enumerable=!0;o.hasBeenReset=!1;var c="",l=!1,a=n,v=t,y=u,p=null,w="",b=!0,k="auto",d="start",g=50,nt="middle",tt=50,it="middle";return Object.defineProperty(o,"id",i({},s,{get:function(){return c},set:function(n){c=""+n}})),Object.defineProperty(o,"pauseOnExit",i({},s,{get:function(){return l},set:function(n){l=!!n}})),Object.defineProperty(o,"startTime",i({},s,{get:function(){return a},set:function(n){if("number"!=typeof n)throw new TypeError("Start time must be set to a number.");a=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",i({},s,{get:function(){return v},set:function(n){if("number"!=typeof n)throw new TypeError("End time must be set to a number.");v=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"text",i({},s,{get:function(){return y},set:function(n){y=""+n;this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},s,{get:function(){return p},set:function(n){p=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},s,{get:function(){return w},set:function(n){var t=f(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");w=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},s,{get:function(){return b},set:function(n){b=!!n;this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},s,{get:function(){return k},set:function(n){if("number"!=typeof n&&n!==e)throw new SyntaxError("An invalid number or illegal string was specified.");k=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",i({},s,{get:function(){return d},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");d=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},s,{get:function(){return g},set:function(n){if(0>n||n>100)throw new Error("Position must be between 0 and 100.");g=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",i({},s,{get:function(){return nt},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");nt=t;this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},s,{get:function(){return tt},set:function(n){if(0>n||n>100)throw new Error("Size must be between 0 and 100.");tt=n;this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},s,{get:function(){return it},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");it=t;this.hasBeenReset=!0}})),o.displayState=void 0,h?o:void 0}var e="auto",o={"":!0,lr:!0,rl:!0},s={start:!0,middle:!0,end:!0,left:!0,right:!0};u.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};n.VTTCue=n.VTTCue||u;t.VTTCue=u}(this,this.vttjs||{}),function(n,t){function u(n){if("string"!=typeof n)return!1;var t=f[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){return"number"==typeof n&&n>=0&&100>=n}function r(){var n=100,t=3,r=0,f=100,e=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");n=t}},lines:{enumerable:!0,get:function(){return t},set:function(n){if("number"!=typeof n)throw new TypeError("Lines must be set to a number.");t=n}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(n){if(!i(n))throw new Error("RegionAnchorX must be between 0 and 100.");f=n}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(n){if(!i(n))throw new Error("RegionAnchorY must be between 0 and 100.");r=n}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(n){if(!i(n))throw new Error("ViewportAnchorY must be between 0 and 100.");o=n}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(n){if(!i(n))throw new Error("ViewportAnchorX must be between 0 and 100.");e=n}},scroll:{enumerable:!0,get:function(){return s},set:function(n){var t=u(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");s=t}}})}var f={"":!0,up:!0};n.VTTRegion=n.VTTRegion||r;t.VTTRegion=r}(this,this.vttjs||{}),function(n){function i(n,t){this.name="ParsingError";this.code=n.code;this.message=t||n.message}function h(n){function i(n,t,i,r){return 3600*(0|n)+60*(0|t)+(0|i)+(0|r)/1e3}var t=n.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return t?t[3]?i(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?i(t[1],t[2],0,t[4]):i(0,t[1],t[2],t[4]):null}function u(){this.values=s(null)}function o(n,t,i,r){var f=r?n.split(r):[n],e,u,o,s;for(e in f)"string"==typeof f[e]&&(u=f[e].split(i),2===u.length&&(o=u[0],s=u[1],t(o,s)))}function v(n,t,r){function e(){var t=h(n);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+s);return n=n.replace(/^[^\sa-zA-Z-]+/,""),t}function c(n,t){var i=new u;o(n,function(n,t){var f,u,e;switch(n){case"region":for(f=r.length-1;f>=0;f--)if(r[f].id===t){i.set(n,r[f].region);break}break;case"vertical":i.alt(n,t,["rl","lr"]);break;case"line":u=t.split(",");e=u[0];i.integer(n,e);i.percent(n,e)?i.set("snapToLines",!1):null;i.alt(n,e,["auto"]);2===u.length&&i.alt("lineAlign",u[1],["start","middle","end"]);break;case"position":u=t.split(",");i.percent(n,u[0]);2===u.length&&i.alt("positionAlign",u[1],["start","middle","end"]);break;case"size":i.percent(n,t);break;case"align":i.alt(n,t,["start","middle","end","left","right"])}},/:/,/\s/);t.region=i.get("region",null);t.vertical=i.get("vertical","");t.line=i.get("line","auto");t.lineAlign=i.get("lineAlign","start");t.snapToLines=i.get("snapToLines",!0);t.size=i.get("size",100);t.align=i.get("align","middle");t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align);t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function f(){n=n.replace(/^\s+/,"")}var s=n;if(f(),t.startTime=e(),f(),"-->"!==n.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+s);n=n.substr(3);f();t.endTime=e();f();c(n,t)}function c(n,t){function c(){function i(n){return t=t.substr(n.length),n}if(!t)return null;var n=t.match(/^([^<]*)(<[^>]+>?)?/);return i(n[1]?n[1]:n[2])}function a(n){return b[n]}function v(n){for(;i=n.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)n=n.replace(i[0],a);return n}function y(n,t){return!l[t.localName]||l[t.localName]===n.localName}function p(t,i){var u=k[t],r,f;return u?(r=n.document.createElement(u),r.localName=u,f=d[t],f&&i&&(r[f]=i.trim()),r):null}for(var u,o,i,r,s=n.document.createElement("div"),f=s,e=[];null!==(r=c());)if("<"!==r[0])f.appendChild(n.document.createTextNode(v(r)));else{if("/"===r[1]){e.length&&e[e.length-1]===r.substr(2).replace(">","")&&(e.pop(),f=f.parentNode);continue}if(o=h(r.substr(1,r.length-2)),o){u=n.document.createProcessingInstruction("timestamp",o);f.appendChild(u);continue}if(i=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/),!i)continue;if(u=p(i[1],i[3]),!u)continue;if(!y(f,u))continue;i[2]&&(u.className=i[2].substr(1).replace("."," "));e.push(i[1]);f.appendChild(u);f=u}return s}function y(n){function f(n,t){for(var i=t.childNodes.length-1;i>=0;i--)n.push(t.childNodes[i])}function r(n){var t,i,u;return!n||!n.length?null:(t=n.pop(),i=t.textContent||t.innerText,i)?(u=i.match(/^.*(\n|\r)/),u?(n.length=0,u[0]):i):"ruby"===t.tagName?r(n):t.childNodes?(f(n,t),r(n)):void 0}var e,o=[],u="",t,i;if(!n||!n.childNodes)return"ltr";for(f(o,n);u=r(o);)for(t=0;t<u.length;t++)for(e=u.charCodeAt(t),i=0;i<a.length;i++)if(a[i]===e)return"rtl";return"ltr"}function p(n){if("number"==typeof n.line&&(n.snapToLines||n.line>=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;for(var r=n.track,i=r.textTrackList,u=0,t=0;t<i.length&&i[t]!==r;t++)"showing"===i[t].mode&&u++;return-1*++u}function f(){}function e(n,t,i){var e=/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",s="rgba(0, 0, 0, 0.8)",r,u;e&&(o="rgb(255, 255, 255)",s="rgb(0, 0, 0)");f.call(this);this.cue=t;this.cueDiv=c(n,t.text);r={color:o,backgroundColor:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};e||(r.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",r.unicodeBidi="plaintext");this.applyStyles(r,this.cueDiv);this.div=n.document.createElement("div");r={textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"};e||(r.direction=y(this.cueDiv),r.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext");this.applyStyles(r);this.div.appendChild(this.cueDiv);u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}this.applyStyles(""===t.vertical?{left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}:{top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")});this.move=function(n){this.applyStyles({top:this.formatStyle(n.top,"px"),bottom:this.formatStyle(n.bottom,"px"),left:this.formatStyle(n.left,"px"),right:this.formatStyle(n.right,"px"),height:this.formatStyle(n.height,"px"),width:this.formatStyle(n.width,"px")})}}function t(n){var i,r,f,u,e=/MSIE\s8\.0/.test(navigator.userAgent),t;n.div&&(r=n.div.offsetHeight,f=n.div.offsetWidth,u=n.div.offsetTop,t=(t=n.div.childNodes)&&(t=t[0])&&t.getClientRects&&t.getClientRects(),n=n.div.getBoundingClientRect(),i=t?Math.max(t[0]&&t[0].height||0,n.height/t.length):0);this.left=n.left;this.right=n.right;this.top=n.top||u;this.height=n.height||r;this.bottom=n.bottom||u+(n.height||r);this.width=n.width||f;this.lineHeight=void 0!==i?i:n.lineHeight;e&&!this.lineHeight&&(this.lineHeight=13)}function w(n,i,r,u){function w(n,i){for(var e,o,s=new t(n),h=1,f=0;f<i.length;f++){for(;n.overlapsOppositeAxis(r,i[f])||n.within(r)&&n.overlapsAny(u);)n.move(i[f]);if(n.within(r))return n;e=n.intersectPercentage(r);h>e&&(o=new t(n),h=e);n=new t(s)}return o||s}var h=new t(i),o=i.cue,e=p(o),f=[],c,a,y;if(o.snapToLines){switch(o.vertical){case"":f=["+y","-y"];c="height";break;case"rl":f=["+x","-x"];c="width";break;case"lr":f=["-x","+x"];c="width"}var l=h.lineHeight,s=l*Math.round(e),v=r[c]+l,b=f[0];Math.abs(s)>v&&(s=0>s?-1:1,s*=Math.ceil(v/l)*l);0>e&&(s+=""===o.vertical?r.height:r.width,f=f.reverse());h.move(b,s)}else{a=h.lineHeight/r.height*100;switch(o.lineAlign){case"middle":e-=a/2;break;case"end":e-=a}switch(o.vertical){case"":i.applyStyles({top:i.formatStyle(e,"%")});break;case"rl":i.applyStyles({left:i.formatStyle(e,"%")});break;case"lr":i.applyStyles({right:i.formatStyle(e,"%")})}f=["+y","-x","+x","-y"];h=new t(i)}y=w(h,f);i.move(y.toCSSCompatValues(r))}function r(){}var s=Object.create||function(){function n(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=t,new n}}();i.prototype=s(Error.prototype);i.prototype.constructor=i;i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};u.prototype={set:function(n,t){this.get(n)||""===t||(this.values[n]=t)},get:function(n,t,i){return i?this.has(n)?this.values[n]:t[i]:this.has(n)?this.values[n]:t},has:function(n){return n in this.values},alt:function(n,t,i){for(var r=0;r<i.length;++r)if(t===i[r]){this.set(n,t);break}},integer:function(n,t){/^-?\d+$/.test(t)&&this.set(n,parseInt(t,10))},percent:function(n,t){var i;return(i=t.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(t=parseFloat(t),t>=0&&100>=t)?(this.set(n,t),!0):!1}};var b={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},k={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={v:"title",lang:"lang"},l={rt:"ruby"},a=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];f.prototype.applyStyles=function(n,t){t=t||this.div;for(var i in n)n.hasOwnProperty(i)&&(t.style[i]=n[i])};f.prototype.formatStyle=function(n,t){return 0===n?0:n+t};e.prototype=s(f.prototype);e.prototype.constructor=e;t.prototype.move=function(n,t){switch(t=void 0!==t?t:this.lineHeight,n){case"+x":this.left+=t;this.right+=t;break;case"-x":this.left-=t;this.right-=t;break;case"+y":this.top+=t;this.bottom+=t;break;case"-y":this.top-=t;this.bottom-=t}};t.prototype.overlaps=function(n){return this.left<n.right&&this.right>n.left&&this.top<n.bottom&&this.bottom>n.top};t.prototype.overlapsAny=function(n){for(var t=0;t<n.length;t++)if(this.overlaps(n[t]))return!0;return!1};t.prototype.within=function(n){return this.top>=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right};t.prototype.overlapsOppositeAxis=function(n,t){switch(t){case"+x":return this.left<n.left;case"-x":return this.right>n.right;case"+y":return this.top<n.top;case"-y":return this.bottom>n.bottom}};t.prototype.intersectPercentage=function(n){var t=Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left)),i=Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top)),r=t*i;return r/(this.height*this.width)};t.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}};t.getSimpleBoxPosition=function(n){var t=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,r=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,i=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;return n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n,{left:n.left,right:n.right,top:n.top||i,height:n.height||t,bottom:n.bottom||i+(n.height||t),width:n.width||r}};r.StringDecoder=function(){return{decode:function(n){if(!n)return"";if("string"!=typeof n)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}};r.convertCueToDOMTree=function(n,t){return n&&t?c(n,t):null};var g=.05,nt="sans-serif",tt="1.5%";r.processCues=function(n,i,r){function h(n){for(var t=0;t<n.length;t++)if(n[t].hasBeenReset||!n[t].displayState)return!0;return!1}var u,f;if(!n||!i||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);if(u=n.document.createElement("div"),u.style.position="absolute",u.style.left="0",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.margin=tt,r.appendChild(u),h(i)){var o=[],s=t.getSimpleBoxPosition(u),c=Math.round(s.height*g*100)/100,l={font:c+"px "+nt};!function(){for(var r,f,h=0;h<i.length;h++)f=i[h],r=new e(n,f,l),u.appendChild(r.div),w(n,r,s,o),f.displayState=r.div,o.push(t.getSimpleBoxPosition(r))}()}else for(f=0;f<i.length;f++)u.appendChild(i[f].displayState)};r.Parser=function(n,t,i){i||(i=t,t={});t||(t={});this.window=n;this.vttjs=t;this.state="INITIAL";this.buffer="";this.decoder=i||new TextDecoder("utf8");this.regionList=[]};r.Parser.prototype={reportOrThrowError:function(n){if(!(n instanceof i))throw n;this.onparsingerror&&this.onparsingerror(n)},parse:function(n){function s(){for(var r,i=t.buffer,n=0;n<i.length&&"\r"!==i[n]&&"\n"!==i[n];)++n;return r=i.substr(0,n),"\r"===i[n]&&++n,"\n"===i[n]&&++n,t.buffer=i.substr(n),r}function l(n){var i=new u,r;(o(n,function(n,t){var f,r;switch(n){case"id":i.set(n,t);break;case"width":i.percent(n,t);break;case"lines":i.integer(n,t);break;case"regionanchor":case"viewportanchor":if(f=t.split(","),2!==f.length)break;if(r=new u,r.percent("x",f[0]),r.percent("y",f[1]),!r.has("x")||!r.has("y"))break;i.set(n+"X",r.get("x"));i.set(n+"Y",r.get("y"));break;case"scroll":i.alt(n,t,["up"])}},/=/,/\s/),i.has("id"))&&(r=new(t.vttjs.VTTRegion||t.window.VTTRegion),r.width=i.get("width",100),r.lines=i.get("lines",3),r.regionAnchorX=i.get("regionanchorX",0),r.regionAnchorY=i.get("regionanchorY",100),r.viewportAnchorX=i.get("viewportanchorX",0),r.viewportAnchorY=i.get("viewportanchorY",100),r.scroll=i.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:i.get("id"),region:r}))}function a(n){o(n,function(n,t){switch(n){case"Region":l(t)}},/:/)}var t=this,r,e,f,c;n&&(t.buffer+=t.decoder.decode(n,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;if(r=s(),e=r.match(/^WEBVTT([ \t].*)?$/),!e||!e[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!1:r=s(),t.state){case"HEADER":/:/.test(r)?a(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===r.indexOf("-->")){t.cue.id=r;continue}case"CUE":try{v(r,t.cue,t.regionList)}catch(h){t.reportOrThrowError(h);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":if(c=-1!==r.indexOf("-->"),!r||c&&(f=!0)){t.oncue&&t.oncue(t.cue);t.cue=null;t.state="ID";continue}t.cue.text&&(t.cue.text+="\n");t.cue.text+=r;continue;case"BADCUE":r||(t.state="ID");continue}}}catch(h){t.reportOrThrowError(h);"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue);t.cue=null;t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||"HEADER"===n.state)&&(n.buffer+="\n\n",n.parse()),"INITIAL"===n.state)throw new i(i.Errors.BadSignature);}catch(t){n.reportOrThrowError(t)}return n.onflush&&n.onflush(),this}};n.WebVTT=r}(this,this.vttjs||{}),function(){for(var n,u=function(){},t=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],i=t.length,r=window.console=window.console||{};i--;)n=t[i],r[n]||(r[n]=u)}(),function(n){"use strict";window.AORN={anchorScroll:function(){n("a[href*=\\#]").click(function(){var t,i;if(location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname&&(t=n(this.hash),t=t.length&&t||n("[name="+this.hash.slice(1)+"]"),t.length))return i=t.offset().top,n("html,body").animate({scrollTop:i},1e3),!1})},selectBtnSearch:function(){n(".select-box ul.dropdown-menu li").click(function(){var t=n(this).html();n(this).addClass("active").siblings().removeClass("active");n(this).parent().parent().find(".btn span").html(t);n("#search-category").val(t)})},menuToggle:function(){n(".menu-toggle").click(function(){var t=n(this).attr("data-target");n(t).toggleClass("expanded");n(t).parent().toggleClass("menu-open");n(this).toggleClass("expanded");n(this).find(".fa").toggleClass("fa-close").toggleClass("fa-bars");n(this).hasClass("expanded")||(n(".dropdown-menu").removeAttr("style"),n(".dropdown .dropdown-toggle .fa").addClass("fa-plus").removeClass("fa-minus"))});n("#main-nav .dropdown-toggle").click(function(){n(this).parent(".dropdown").find(".dropdown-menu").slideToggle(300);n(this).find(".fa").toggleClass("fa-plus").toggleClass("fa-minus");n(this).find(".fa").hasClass("fa-minus")||(n(".sub-menu .sub-menu").slideUp(300).removeClass("open"),n(".submenu-toggle .fa").addClass("fa-plus").removeClass("fa-minus"),n(".list-item").removeClass("open"))});n(".submenu-toggle").click(function(){n(this).parent().find(">.sub-menu").slideToggle(300).toggleClass("open");n(this).find(".fa").toggleClass("fa-plus").toggleClass("fa-minus")});n(".sub-menu .sub-menu").each(function(){n(this).children().length>4&&n(this).append('<div class="submenu-close visible-xs-block"><i class="fa fa-chevron-up"><\/i><\/div>')});n(".submenu-close").click(function(){n(this).parent(".sub-menu").slideUp(300).removeClass("open");n(this).parent(".sub-menu").parent(".list-item").removeClass("open");n(this).parent().parent("li").find(".fa").addClass("fa-plus").removeClass("fa-minus");var t=n("#main-nav").offset(),i=n("body,html").offset();n("body,html").animate({scrollTop:t.top})})},asideMenuToggle:function(){n(".nav-dropdown").click(function(){n(this).next(".sub-menu").slideToggle(300).toggleClass("open");n(this).find(".fa").toggleClass("fa-angle-down").toggleClass("fa-angle-up")})},resizeContentContainer:function(){var t=n(".content-container.centered").height();n(".content-container.centered").css("height",t).css("top","0").css("bottom","0");n(window).resize(function(){setTimeout(function(){n(".content-container.centered").removeAttr("style");t=n(".content-container.centered").height();n(".content-container.centered").css("height",t).css("top","0").css("bottom","0")},300)})},filterToggle:function(){n(".filters-mobile-btn").click(function(){n(this).next(".filters-container").slideToggle(300);n(this).addClass("open").hide()});n(".filters-close").click(function(){n(this).parent(".filters-container").slideToggle(50);n(".filters-mobile-btn").removeClass("open").show();setTimeout(function(){n("body,html").animate({scrollTop:n("article").offset().top})},300)})},contentAccordion:function(){n(".accordion-toggle").click(function(){n(this).parent(".accordion-item").toggleClass("open").find(".accordion-content").slideToggle(200);n(this).find(".fa").toggleClass("fa-plus").toggleClass("fa-minus")});n(".accordion-content a").click(function(n){n.stopPropagation()});n(".expand-all-ca").click(function(){n(".accordion-item").addClass("open");n(".accordion-content").slideDown(200);n(".accordion-toggle").find(".fa").removeClass("fa-plus").addClass("fa-minus")});n(".collapse-all-ca").click(function(){n(".accordion-item").removeClass("open");n(".accordion-content").slideUp(200);n(".accordion-toggle").find(".fa").addClass("fa-plus").removeClass("fa-minus")})},responsiveTables:function(){if(n(".responsive-table tr:nth-child(2n+2)").addClass("even-row"),n(".responsive-table tr").each(function(){n(this).children("td").last().addClass("last-child")}),n(".responsive-table").length){var t;n(".responsive-table").each(function(){var i=n(this);n(this).find("th").each(function(r){var u=r;t=n(this).text();i.find("tr").each(function(){n(this).find("td").each(function(i){var r=i;u==r&&n(this).attr("data-th",t)})})})})}},ie8SelectorHelpers:function(){n(".content-block ul li:last-child").addClass("last-child");n(".content-block ul li:only-child").removeClass("last-child")},responsiveDataChart:function(){var t=-1,i=n(".data-chart > li > .data-info");i.each(function(){var i=n(this).height()+80;t=i>t?i:t});i.css("min-height",t)},eventCalendar:function(){n(".day").click(function(){n(this).hasClass("blank-day")||(n(".day").removeClass("selected-date"),n(this).addClass("selected-date"),filterResults())});n(".event-day").click(function(){n("body,html").animate({scrollTop:n("#event-list-container").offset().top})});n("#current-day-btn").click(function(){n(".day").removeClass("selected-date");n(".day.current-day").addClass("selected-date")});n("#next-month-btn").click(function(){n(".calendar-container").addClass("slide-right");n(".calendar-container").animate({right:"0"},400,function(){n(".calendar-container").removeClass("slide-right").removeAttr("style")})});n("#prev-month-btn").click(function(){n(".calendar-container").addClass("slide-left");n(".calendar-container").animate({left:"0"},400,function(){n(".calendar-container").removeClass("slide-left").removeAttr("style")})});n("#event-calendar-toggle").click(function(){n(".event-toggle-btn").removeClass("active");n(this).addClass("active");n("#event-calendar-container").show();filterResults()});n("#event-list-toggle").click(function(){n(".event-toggle-btn").removeClass("active");n(this).addClass("active");n("#event-calendar-container").hide();filterResults()});n(".filters input").click(function(){var t=n(this).attr("id");n(this).toggleClass("checked");n(this).hasClass("checked")===!0?n(".selected-filters").append('<button class="btn btn-primary" data-id="'+n(this).attr("id")+'">'+n(this).parent("label").text()+'<i class="fa fa-times-circle"><\/i><\/button>').find(".no-results-available").hide():n(".selected-filters").find("[data-id='"+t+"']").remove();n(".filters input.checked").length===0&&n(".selected-filters").find(".no-results-available").show()});n(".selected-filters").delegate("button","click",function(){var t=n(this).attr("data-id");n("#"+t).trigger("click");n("#"+t).removeClass("checked");n(this).remove();n(".selected-filters button").length===0&&n(".selected-filters").find(".no-results-available").show()});n(".clear-all-btn").click(function(t){t.preventDefault();n(".filters input").removeClass("checked");n(".selected-filters button").remove();n(".selected-filters").find(".no-results-available").show()})},btnAnimationEffects:function(){n(".btn-default").click(function(){n(this).find(".fa-spin").remove();n(this).css("padding","8px 10px");n(this).append(' <i class="fa fa-spinner fa-spin"><\/i>')})},backToTop:function(){if(n("body").height()>n(window).height()+100){n("body").append('<div class="scroll-to-top-btn"><i class="fa fa-arrow-up"><\/i>Top<\/div>');var t=0,i=0;n(window).scroll(function(){var r=n(this).scrollTop();r<=i&&n(this).scrollTop()>n("header").height()?n(".scroll-to-top-btn").fadeIn():(n(".scroll-to-top-btn").fadeOut(),n(".touch .scroll-to-top-btn").stop().fadeOut());i=t;t=r});n(".scroll-to-top-btn").click(function(){return n("html, body").animate({scrollTop:0},800),!1})}},toolTips:function(){n(function(){n('[data-toggle="tooltip"]').tooltip()})},sliderFunc:function(){n(".slider").bxSlider({slideWidth:350,pager:!1,adaptiveHeight:!0,moveSlides:1,minSlides:1,maxSlides:4,slideMargin:0,nextText:'<i class="fa fa-chevron-right"><\/i>',prevText:'<i class="fa fa-chevron-left"><\/i>'})},contentSharing:function(){n(".add-this-btn").click(function(t){t.preventDefault();n(".add-this-btn").parent().find(".fa").toggleClass("fa-share").toggleClass("fa-close");n(".addthis_sharing_toolbox").toggleClass("visible")})},openTab:function(t){n("#"+t).tab("show")},touchDevices:function(){if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)){var t=document.querySelector('meta[name="viewport"]');t&&(t.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0",document.body.addEventListener("gesturestart",function(){t.content="width=device-width, minimum-scale=0.25, maximum-scale=1.6"},!1))}n(".touch #main-nav li.dropdown a").click(function(){return n(this).hasClass("hovered-menu")?!0:(n(".touch #main-nav li.dropdown a").removeClass("hovered-menu"),n(this).addClass("hovered-menu"),!1)});n(".tabbed-navigation a").click(function(t){t.preventDefault();n(this).tab("show")})},bindEvents:function(){n(window).on("load",AORN.anchorScroll());n(window).on("load",AORN.selectBtnSearch());n(window).on("load",AORN.menuToggle());n(window).on("load",AORN.asideMenuToggle());n(window).on("load",AORN.resizeContentContainer());n(window).on("load",AORN.filterToggle());n(window).on("load",AORN.contentAccordion());n(window).on("load",AORN.responsiveTables());n(window).on("load",AORN.responsiveDataChart());n(window).on("load",AORN.eventCalendar());n(window).on("load",AORN.backToTop());n(window).on("load",AORN.contentSharing());n(window).on("load",AORN.ie8SelectorHelpers());n(window).on("load",AORN.touchDevices())},loadPlugins:function(){n(window).on("load",AORN.toolTips());n(window).on("load",AORN.sliderFunc())},init:function(){AORN.bindEvents();AORN.loadPlugins()}};n(function(){AORN.init()})}(jQuery);var bind=function(n,t){return function(){return n.apply(t,arguments)}};!function(n,t){"function"==typeof define&&define.amd?define(["jquery"],function(i){return n.Tour=t(i)}):"object"==typeof exports?module.exports=t(require("jquery")):n.Tour=t(n.jQuery)}(window,function(n){var t;return t=window.document,function(){function i(t){this._showPopoverAndOverlay=bind(this._showPopoverAndOverlay,this);var i;try{i=window.localStorage}catch(n){i=!1}this._options=n.extend({name:"tour",steps:[],container:"body",autoscroll:!0,keyboard:!0,storage:i,debug:!1,backdrop:!1,backdropContainer:"body",backdropPadding:0,redirect:!0,orphan:!1,duration:!1,delay:!1,basePath:"",template:'<div class="popover" role="tooltip"> <div class="arrow"><\/div> <h3 class="popover-title"><\/h3> <div class="popover-content"><\/div> <div class="popover-navigation"> <div class="btn-group"> <button class="btn btn-sm btn-default" data-role="prev">&laquo; Prev<\/button> <button class="btn btn-sm btn-default" data-role="next">Next &raquo;<\/button> <button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume">Pause<\/button> <\/div> <button class="btn btn-sm btn-default" data-role="end">End tour<\/button> <\/div> <\/div>',afterSetState:function(){},afterGetState:function(){},afterRemoveState:function(){},onStart:function(){},onEnd:function(){},onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNext:function(){},onPrev:function(){},onPause:function(){},onResume:function(){},onRedirectError:function(){}},t);this._force=!1;this._inited=!1;this._current=null;this.backdrops=[]}return i.prototype.addSteps=function(n){for(var r,t=0,i=n.length;t<i;t++)r=n[t],this.addStep(r);return this},i.prototype.addStep=function(n){return this._options.steps.push(n),this},i.prototype.getStep=function(t){if(null!=this._options.steps[t])return n.extend({id:"step-"+t,path:"",host:"",placement:"right",title:"",content:"<p><\/p>",next:t===this._options.steps.length-1?-1:t+1,prev:t-1,animation:!0,container:this._options.container,autoscroll:this._options.autoscroll,backdrop:this._options.backdrop,backdropContainer:this._options.backdropContainer,backdropPadding:this._options.backdropPadding,redirect:this._options.redirect,reflexElement:this._options.steps[t].element,backdropElement:this._options.steps[t].element,orphan:this._options.orphan,duration:this._options.duration,delay:this._options.delay,template:this._options.template,onShow:this._options.onShow,onShown:this._options.onShown,onHide:this._options.onHide,onHidden:this._options.onHidden,onNext:this._options.onNext,onPrev:this._options.onPrev,onPause:this._options.onPause,onResume:this._options.onResume,onRedirectError:this._options.onRedirectError},this._options.steps[t])},i.prototype.init=function(n){return this._force=n,this.ended()?(this._debug("Tour ended, init prevented."),this):(this.setCurrentStep(),this._initMouseNavigation(),this._initKeyboardNavigation(),this._onResize(function(n){return function(){return n.showStep(n._current)}}(this)),this._onScroll(function(n){return function(){return n._showPopoverAndOverlay(n._current)}}(this)),null!==this._current&&this.showStep(this._current),this._inited=!0,this)},i.prototype.start=function(n){var t;return null==n&&(n=!1),this._inited||this.init(n),null===this._current&&(t=this._makePromise(null!=this._options.onStart?this._options.onStart(this):void 0),this._callOnPromiseDone(t,this.showStep,0)),this},i.prototype.next=function(){var n;return n=this.hideStep(this._current,this._current+1),this._callOnPromiseDone(n,this._showNextStep)},i.prototype.prev=function(){var n;return n=this.hideStep(this._current,this._current-1),this._callOnPromiseDone(n,this._showPrevStep)},i.prototype.goTo=function(n){var t;return t=this.hideStep(this._current,n),this._callOnPromiseDone(t,this.showStep,n)},i.prototype.end=function(){var i,r;return i=function(i){return function(){if(n(t).off("click.tour-"+i._options.name),n(t).off("keyup.tour-"+i._options.name),n(window).off("resize.tour-"+i._options.name),n(window).off("scroll.tour-"+i._options.name),i._setState("end","yes"),i._inited=!1,i._force=!1,i._clearTimer(),null!=i._options.onEnd)return i._options.onEnd(i)}}(this),r=this.hideStep(this._current),this._callOnPromiseDone(r,i)},i.prototype.ended=function(){return!this._force&&!!this._getState("end")},i.prototype.restart=function(){return this._removeState("current_step"),this._removeState("end"),this._removeState("redirect_to"),this.start()},i.prototype.pause=function(){var n;return(n=this.getStep(this._current))&&n.duration?(this._paused=!0,this._duration-=(new Date).getTime()-this._start,window.clearTimeout(this._timer),this._debug("Paused/Stopped step "+(this._current+1)+" timer ("+this._duration+" remaining)."),null!=n.onPause?n.onPause(this,this._duration):void 0):this},i.prototype.resume=function(){var n;return(n=this.getStep(this._current))&&n.duration?(this._paused=!1,this._start=(new Date).getTime(),this._duration=this._duration||n.duration,this._timer=window.setTimeout(function(n){return function(){return n._isLast()?n.next():n.end()}}(this),this._duration),this._debug("Started step "+(this._current+1)+" timer with duration "+this._duration),null!=n.onResume&&this._duration!==n.duration?n.onResume(this,this._duration):void 0):this},i.prototype.hideStep=function(t,i){var u,e,f,r;if(r=this.getStep(t))return this._clearTimer(),f=this._makePromise(null!=r.onHide?r.onHide(this,t):void 0),e=function(u){return function(){var f,e;if((f=n(r.element)).data("bs.popover")||f.data("popover")||(f=n("body")),f.popover("destroy").removeClass("tour-"+u._options.name+"-element tour-"+u._options.name+"-"+t+"-element").removeData("bs.popover"),r.reflex&&n(r.reflexElement).removeClass("tour-step-element-reflex").off(u._reflexEvent(r.reflex)+".tour-"+u._options.name),r.backdrop&&((e=null!=i&&u.getStep(i))&&e.backdrop&&e.backdropElement===r.backdropElement||u._hideOverlayElement(r)),null!=r.onHidden)return r.onHidden(u)}}(this),u=r.delay.hide||r.delay,"[object Number]"==={}.toString.call(u)&&u>0?(this._debug("Wait "+u+" milliseconds to hide the step "+(this._current+1)),window.setTimeout(function(n){return function(){return n._callOnPromiseDone(f,e)}}(this),u)):this._callOnPromiseDone(f,e),f},i.prototype.showStep=function(n){var u,f,r,e,o,i;return this.ended()?(this._debug("Tour ended, showStep prevented."),this):(i=this.getStep(n))&&(o=n<this._current,f=this._makePromise(null!=i.onShow?i.onShow(this,n):void 0),this.setCurrentStep(n),u=function(){switch({}.toString.call(i.path)){case"[object Function]":return i.path();case"[object String]":return this._options.basePath+i.path;default:return i.path}}.call(this),!i.redirect||!this._isRedirect(i.host,u,t.location)||(this._redirect(i,n,u),this._isJustPathHashDifferent(i.host,u,t.location)))?(e=function(t){return function(){if(t._isOrphan(i)){if(!1===i.orphan)return t._debug("Skip the orphan step "+(t._current+1)+".\nOrphan option is false and the element does not exist or is hidden."),void(o?t._showPrevStep():t._showNextStep());t._debug("Show the orphan step "+(t._current+1)+". Orphans option is true.")}if(i.autoscroll?t._scrollIntoView(n):t._showPopoverAndOverlay(n),i.duration)return t.resume()}}(this),r=i.delay.show||i.delay,"[object Number]"==={}.toString.call(r)&&r>0?(this._debug("Wait "+r+" milliseconds to show the step "+(this._current+1)),window.setTimeout(function(n){return function(){return n._callOnPromiseDone(f,e)}}(this),r)):this._callOnPromiseDone(f,e),f):void 0},i.prototype.getCurrentStep=function(){return this._current},i.prototype.setCurrentStep=function(n){return null!=n?(this._current=n,this._setState("current_step",n)):(this._current=this._getState("current_step"),this._current=null===this._current?null:parseInt(this._current,10)),this},i.prototype.redraw=function(){return this._showOverlayElement(this.getStep(this.getCurrentStep()))},i.prototype._setState=function(n,t){var i;if(this._options.storage){i=this._options.name+"_"+n;try{this._options.storage.setItem(i,t)}catch(n){n.code===DOMException.QUOTA_EXCEEDED_ERR&&this._debug("LocalStorage quota exceeded. State storage failed.")}return this._options.afterSetState(i,t)}return null==this._state&&(this._state={}),this._state[n]=t},i.prototype._removeState=function(n){var t;return this._options.storage?(t=this._options.name+"_"+n,this._options.storage.removeItem(t),this._options.afterRemoveState(t)):null!=this._state?delete this._state[n]:void 0},i.prototype._getState=function(n){var i,t;return this._options.storage?(i=this._options.name+"_"+n,t=this._options.storage.getItem(i)):null!=this._state&&(t=this._state[n]),void 0!==t&&"null"!==t||(t=null),this._options.afterGetState(n,t),t},i.prototype._showNextStep=function(){var t,i,n;return n=this.getStep(this._current),i=function(t){return function(){return t.showStep(n.next)}}(this),t=this._makePromise(null!=n.onNext?n.onNext(this):void 0),this._callOnPromiseDone(t,i)},i.prototype._showPrevStep=function(){var t,i,n;return n=this.getStep(this._current),i=function(t){return function(){return t.showStep(n.prev)}}(this),t=this._makePromise(null!=n.onPrev?n.onPrev(this):void 0),this._callOnPromiseDone(t,i)},i.prototype._debug=function(n){if(this._options.debug)return window.console.log("Bootstrap Tour '"+this._options.name+"' | "+n)},i.prototype._isRedirect=function(n,t,i){var r;return!(null==n||""===n||!("[object RegExp]"==={}.toString.call(n)&&!n.test(i.origin)||"[object String]"==={}.toString.call(n)&&this._isHostDifferent(n,i)))||(r=[i.pathname,i.search,i.hash].join(""),null!=t&&""!==t&&("[object RegExp]"==={}.toString.call(t)&&!t.test(r)||"[object String]"==={}.toString.call(t)&&this._isPathDifferent(t,r)))},i.prototype._isHostDifferent=function(n,t){switch({}.toString.call(n)){case"[object RegExp]":return!n.test(t.origin);case"[object String]":return this._getProtocol(n)!==this._getProtocol(t.href)||this._getHost(n)!==this._getHost(t.href);default:return!0}},i.prototype._isPathDifferent=function(n,t){return this._getPath(n)!==this._getPath(t)||!this._equal(this._getQuery(n),this._getQuery(t))||!this._equal(this._getHash(n),this._getHash(t))},i.prototype._isJustPathHashDifferent=function(n,t,i){var r;return(null==n||""===n||!this._isHostDifferent(n,i))&&(r=[i.pathname,i.search,i.hash].join(""),"[object String]"==={}.toString.call(t)&&this._getPath(t)===this._getPath(r)&&this._equal(this._getQuery(t),this._getQuery(r))&&!this._equal(this._getHash(t),this._getHash(r)))},i.prototype._redirect=function(i,r,u){var f;return n.isFunction(i.redirect)?i.redirect.call(this,u):(f="[object String]"==={}.toString.call(i.host)?""+i.host+u:u,this._debug("Redirect to "+f),this._getState("redirect_to")!==""+r?(this._setState("redirect_to",""+r),t.location.href=f):(this._debug("Error redirection loop to "+u),this._removeState("redirect_to"),null!=i.onRedirectError?i.onRedirectError(this):void 0))},i.prototype._isOrphan=function(t){return null==t.element||!n(t.element).length||n(t.element).is(":hidden")&&"http://www.w3.org/2000/svg"!==n(t.element)[0].namespaceURI},i.prototype._isLast=function(){return this._current<this._options.steps.length-1},i.prototype._showPopoverAndOverlay=function(n){var t;if(this.getCurrentStep()===n&&!this.ended())return(t=this.getStep(n)).backdrop&&this._showOverlayElement(t),this._showPopover(t,n),null!=t.onShown&&t.onShown(this),this._debug("Step "+(this._current+1)+" of "+this._options.steps.length)},i.prototype._showPopover=function(t,i){var r,u,f,e,o;if(n(".tour-"+this._options.name).remove(),e=n.extend({},this._options),f=this._isOrphan(t),t.template=this._template(t,i),f&&(t.element="body",t.placement="top"),(r=n(t.element)).addClass("tour-"+this._options.name+"-element tour-"+this._options.name+"-"+i+"-element"),t.options&&n.extend(e,t.options),t.reflex&&!f&&n(t.reflexElement).addClass("tour-step-element-reflex").off(this._reflexEvent(t.reflex)+".tour-"+this._options.name).on(this._reflexEvent(t.reflex)+".tour-"+this._options.name,function(n){return function(){return n._isLast()?n.next():n.end()}}(this)),o=!0===t.smartPlacement&&-1===t.placement.search(/auto/i),r.popover({placement:o?"auto "+t.placement:t.placement,trigger:"manual",title:t.title,content:t.content,html:!0,animation:t.animation,container:t.container,template:t.template,selector:t.element}).popover("show"),(u=r.data("bs.popover")?r.data("bs.popover").tip():r.data("popover").tip()).attr("id",t.id),"fixed"===r.css("position")&&u.css("position","fixed"),this._reposition(u,t),f)return this._center(u)},i.prototype._template=function(t,i){var f,e,o,s,r,u;return u=t.template,this._isOrphan(t)&&"[object Boolean]"!=={}.toString.call(t.orphan)&&(u=t.orphan),r=n(n.isFunction(u)?u(i,t):u),f=r.find(".popover-navigation"),o=f.find('[data-role="prev"]'),e=f.find('[data-role="next"]'),s=f.find('[data-role="pause-resume"]'),this._isOrphan(t)&&r.addClass("orphan"),r.addClass("tour-"+this._options.name+" tour-"+this._options.name+"-"+i),t.reflex&&r.addClass("tour-"+this._options.name+"-reflex"),t.prev<0&&o.addClass("disabled").prop("disabled",!0).prop("tabindex",-1),t.next<0&&e.addClass("disabled").prop("disabled",!0).prop("tabindex",-1),t.duration||s.remove(),r.clone().wrap("<div>").parent().html()},i.prototype._reflexEvent=function(n){return"[object Boolean]"==={}.toString.call(n)?"click":n},i.prototype._reposition=function(i,r){var o,s,h,c,f,e,u;if(c=i[0].offsetWidth,s=i[0].offsetHeight,u=i.offset(),f=u.left,e=u.top,(o=n(t).outerHeight()-u.top-i.outerHeight())<0&&(u.top=u.top+o),(h=n("html").outerWidth()-u.left-i.outerWidth())<0&&(u.left=u.left+h),u.top<0&&(u.top=0),u.left<0&&(u.left=0),i.offset(u),"bottom"===r.placement||"top"===r.placement){if(f!==u.left)return this._replaceArrow(i,2*(u.left-f),c,"left")}else if(e!==u.top)return this._replaceArrow(i,2*(u.top-e),s,"top")},i.prototype._center=function(t){return t.css("top",n(window).outerHeight()/2-t.outerHeight()/2)},i.prototype._replaceArrow=function(n,t,i,r){return n.find(".arrow").css(r,t?50*(1-t/i)+"%":"")},i.prototype._scrollIntoView=function(t){var f,e,h,o,r,i,s,u;if(s=this.getStep(t),!(f=n(s.element)).length)return this._showPopoverAndOverlay(t);switch(e=n(window),r=f.offset().top,o=f.outerHeight(),u=e.height(),i=0,s.placement){case"top":i=Math.max(0,r-u/2);break;case"left":case"right":i=Math.max(0,r+o/2-u/2);break;case"bottom":i=Math.max(0,r+o-u/2)}return this._debug("Scroll into view. ScrollTop: "+i+". Element offset: "+r+". Window height: "+u+"."),h=0,n("body, html").stop(!0,!0).animate({scrollTop:Math.ceil(i)},function(n){return function(){if(2==++h)return n._showPopoverAndOverlay(t),n._debug("Scroll into view.\nAnimation end element offset: "+f.offset().top+".\nWindow height: "+e.height()+".")}}(this))},i.prototype._onResize=function(t,i){return n(window).on("resize.tour-"+this._options.name,function(){return clearTimeout(i),i=setTimeout(t,100)})},i.prototype._onScroll=function(t,i){return n(window).on("scroll.tour-"+this._options.name,function(){return clearTimeout(i),i=setTimeout(t,100)})},i.prototype._initMouseNavigation=function(){var i;return i=this,n(t).off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']").on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']",function(n){return function(t){return t.preventDefault(),n.next()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']",function(n){return function(t){if(t.preventDefault(),n._current>0)return n.prev()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']",function(n){return function(t){return t.preventDefault(),n.end()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']",function(t){var r;return t.preventDefault(),(r=n(this)).text(i._paused?r.data("pause-text"):r.data("resume-text")),i._paused?i.resume():i.pause()})},i.prototype._initKeyboardNavigation=function(){if(this._options.keyboard)return n(t).on("keyup.tour-"+this._options.name,function(n){return function(t){if(t.which)switch(t.which){case 39:return t.preventDefault(),n._isLast()?n.next():n.end();case 37:if(t.preventDefault(),n._current>0)return n.prev()}}}(this))},i.prototype._makePromise=function(t){return t&&n.isFunction(t.then)?t:null},i.prototype._callOnPromiseDone=function(n,t,i){return n?n.then(function(n){return function(){return t.call(n,i)}}(this)):t.call(this,i)},i.prototype._showBackground=function(i,r){var f,h,c,o,l,e,a,u,s;for(c=n(t).height(),s=n(t).width(),u=[],o=0,l=(a=["top","bottom","left","right"]).length;o<l;o++)switch(e=a[o],f=null!=(h=this.backdrops)[e]?h[e]:h[e]=n("<div>",{"class":"tour-backdrop "+e}),n(i.backdropContainer).append(f),e){case"top":u.push(f.height(r.offset.top>0?r.offset.top:0).width(s).offset({top:0,left:0}));break;case"bottom":u.push(f.offset({top:r.offset.top+r.height,left:0}).height(c-(r.offset.top+r.height)).width(s));break;case"left":u.push(f.offset({top:r.offset.top,left:0}).height(r.height).width(r.offset.left>0?r.offset.left:0));break;case"right":u.push(f.offset({top:r.offset.top,left:r.offset.left+r.width}).height(r.height).width(s-(r.offset.left+r.width)));break;default:u.push(void 0)}return u},i.prototype._showOverlayElement=function(t){var i,r;return 0===(i=n(t.backdropElement)).length?r={width:0,height:0,offset:{top:0,left:0}}:(r={width:i.innerWidth(),height:i.innerHeight(),offset:i.offset()},i.addClass("tour-step-backdrop"),t.backdropPadding&&(r=this._applyBackdropPadding(t.backdropPadding,r))),this._showBackground(t,r)},i.prototype._hideOverlayElement=function(t){var i,u,r;n(t.backdropElement).removeClass("tour-step-backdrop");r=this.backdrops;for(u in r)(i=r[u])&&void 0!==i.remove&&i.remove();return this.backdrops=[]},i.prototype._applyBackdropPadding=function(n,t){return"object"==typeof n?(null==n.top&&(n.top=0),null==n.right&&(n.right=0),null==n.bottom&&(n.bottom=0),null==n.left&&(n.left=0),t.offset.top=t.offset.top-n.top,t.offset.left=t.offset.left-n.left,t.width=t.width+n.left+n.right,t.height=t.height+n.top+n.bottom):(t.offset.top=t.offset.top-n,t.offset.left=t.offset.left-n,t.width=t.width+2*n,t.height=t.height+2*n),t},i.prototype._clearTimer=function(){return window.clearTimeout(this._timer),this._timer=null,this._duration=null},i.prototype._getProtocol=function(n){return(n=n.split("://")).length>1?n[0]:"http"},i.prototype._getHost=function(n){return n=n.split("//"),(n=n.length>1?n[1]:n[0]).split("/")[0]},i.prototype._getPath=function(n){return n.replace(/\/?$/,"").split("?")[0].split("#")[0]},i.prototype._getQuery=function(n){return this._getParams(n,"?")},i.prototype._getHash=function(n){return this._getParams(n,"#")},i.prototype._getParams=function(n,t){var i,e,u,r,f;if(1===(r=n.split(t)).length)return{};for(f={},i=0,e=(r=r[1].split("&")).length;i<e;i++)f[(u=(u=r[i]).split("="))[0]]=u[1]||"";return f},i.prototype._equal=function(n,t){var u,i,f,e,o,r;if("[object Object]"==={}.toString.call(n)&&"[object Object]"==={}.toString.call(t)){if(e=Object.keys(n),o=Object.keys(t),e.length!==o.length)return!1;for(i in n)if(r=n[i],!this._equal(t[i],r))return!1;return!0}if("[object Array]"==={}.toString.call(n)&&"[object Array]"==={}.toString.call(t)){if(n.length!==t.length)return!1;for(i=u=0,f=n.length;u<f;i=++u)if(r=n[i],!this._equal(r,t[i]))return!1;return!0}return n===t},i}()})