function getGlobal(){return function(){return this.dust}.call(null)}!function(a){function b(a){if(h){var b=[];if(a.querySelectorAll)b=a.querySelectorAll("[data-squery]");else for(var d=a.getElementsByTagName("*"),e=0,f=d.length;f>e;++e)d[e].getAttribute("data-squery")&&b.push(d[e]);for(e=0,f=b.length;f>e;++e)c(b[e]);a.getAttribute&&a.getAttribute("data-squery")&&c(a)}}function c(a){for(var b=[],c=a.getAttribute("data-squery").split(" "),d=0,e=c.length;e>d;++d){var f=/(.*):([0-9]*)(px|em)=(.*)/.exec(c[d]);f&&b.push(f)}a.cq_rules=a.cq_rules||[],a.cq_rules=a.cq_rules.concat(b),g.push(a)}function d(){for(var a=0,b=g.length;b>a;++a){el=g[a];for(var c=0,d=el.cq_rules.length;d>c;++c){var e=el.cq_rules[c],f=parseInt(e[2]);"em"===e[3]&&(f=k(parseFloat(e[2]),el));var h=el,i=e[4],l=h.cloneNode(!0);l.className=(" "+l.className+" ").replace(" "+i+" "," "),l.style.height=0,l.style.visibility="hidden",l.style.overflow="hidden",l.style.clear="both",i=h.parentNode,i.insertBefore(l,h),h=l.offsetWidth,i.removeChild(l),j[e[1]](h,f)?0>el.className.indexOf(e[4])&&(el.className+=" "+e[4]):(e=el.className.replace(RegExp("(^| )"+e[4]+"( |$)"),"$1"),e=e.replace(/ $/,""),el.className=e)}}}function e(){if(!i){i=!0,b(f),d(),a.addEventListener&&a.addEventListener("resize",d,!1);var c=k(1,f.body);a.setInterval(function(){var a=k(1,f.body);a!==c&&(d(),c=a)},100)}}var f=a.document,g=[],h=!0,i=!1,j={"min-width":function(a,b){return a>b},"max-width":function(a,b){return b>a}},k=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.memoize=a.memoize||{},b in a.memoize?a.memoize[b]:a.memoize[b]=a.apply(this,b)}}(function(a,b){var c=f.createElement("div");c.style.fontSize="1em",c.style.margin="0",c.style.padding="0",c.style.border="none",c.style.width="1em",b.appendChild(c);var d=c.offsetWidth;return b.removeChild(c),Math.round(d*a)});f.addEventListener?(f.addEventListener("DOMContentLoaded",e,!1),a.addEventListener("load",e,!1)):f.attachEvent&&(f.attachEvent("onreadystatechange",e),a.attachEvent("onload",e)),a.SelectorQueries={add:function(a,b,c,e){for(var c=/([0-9]*)(px|em)/.exec(c),f=0,h=a.length;h>f;++f){var j=a[f];j.cq_rules=j.cq_rules||[],j.cq_rules.push([null,b,c[1],c[2],e]),g.push(j)}i&&d()},addElements:function(a){for(var c=0,e=a.length;e>c;++c)b(a[c]);i&&d()},ignoreDataAttributes:function(){h=!1}}}(this);var dust={};!function(dust){function Context(a,b,c){this.stack=a,this.global=b,this.blocks=c}function Stack(a,b,c,d){this.tail=b,this.isObject=!dust.isArray(a)&&a&&"object"==typeof a,this.head=a,this.index=c,this.of=d}function Stub(a){this.head=new Chunk(this),this.callback=a,this.out=""}function Stream(){this.head=new Chunk(this)}function Chunk(a,b,c){this.root=a,this.next=b,this.data=[],this.flushable=!1,this.taps=c}function Tap(a,b){this.head=a,this.tail=b}dust.helpers={},dust.cache={},dust.register=function(a,b){a&&(dust.cache[a]=b)},dust.render=function(a,b,c){var d=new Stub(c).head;dust.load(a,d,Context.wrap(b,a)).end()},dust.stream=function(a,b){var c=new Stream;return dust.nextTick(function(){dust.load(a,c.head,Context.wrap(b,a)).end()}),c},dust.renderSource=function(a,b,c){return dust.compileFn(a)(b,c)},dust.compileFn=function(a,b){var c=dust.loadSource(dust.compile(a,b));return function(a,d){var e=d?new Stub(d):new Stream;return dust.nextTick(function(){c(e.head,Context.wrap(a,b)).end()}),e}},dust.load=function(a,b,c){var d=dust.cache[a];return d?d(b,c):dust.onLoad?b.map(function(b){dust.onLoad(a,function(d,e){return d?b.setError(d):(dust.cache[a]||dust.loadSource(dust.compile(e,a)),void dust.cache[a](b,c).end())})}):b.setError(new Error("Template Not Found: "+a))},dust.loadSource=function(source,path){return eval(source)},Array.isArray?dust.isArray=Array.isArray:dust.isArray=function(a){return"[object Array]"==Object.prototype.toString.call(a)},dust.nextTick=function(){return"undefined"!=typeof process?process.nextTick:function(a){setTimeout(a,0)}}(),dust.isEmpty=function(a){return dust.isArray(a)&&!a.length?!0:0===a?!1:!a},dust.filter=function(a,b,c){if(c)for(var d=0,e=c.length;e>d;d++){var f=c[d];"s"===f?b=null:"function"==typeof dust.filters[f]&&(a=dust.filters[f](a))}return b&&(a=dust.filters[b](a)),a},dust.filters={h:function(a){return dust.escapeHtml(a)},j:function(a){return dust.escapeJs(a)},u:encodeURI,uc:encodeURIComponent,js:function(a){return JSON?JSON.stringify(a):a},jp:function(a){return JSON?JSON.parse(a):a}},dust.makeBase=function(a){return new Context(new Stack,a)},Context.wrap=function(a,b){if(a instanceof Context)return a;var c={};return c.__templates__=[],c.__templates__.push(b),new Context(new Stack(a),c)},Context.prototype.get=function(a){for(var b,c=this.stack;c;){if(c.isObject&&(b=c.head[a],void 0!==b))return b;c=c.tail}return this.global?this.global[a]:void 0},Context.prototype.getPath=function(a,b){var c,d=this.stack,e=b.length,f=a?void 0:this.stack.tail;if(a&&0===e)return d.head;d=d.head;for(var g=0;d&&e>g;)for(c=d,d=d[b[g]],g++;!d&&!a;){if(g>1)return void 0;f?(d=f.head,f=f.tail,g=0):a||(d=this.global,a=!0,g=0)}return"function"==typeof d?function(){return d.apply(c,arguments)}:d},Context.prototype.push=function(a,b,c){return new Context(new Stack(a,this.stack,b,c),this.global,this.blocks)},Context.prototype.rebase=function(a){return new Context(new Stack(a),this.global,this.blocks)},Context.prototype.current=function(){return this.stack.head},Context.prototype.getBlock=function(a,b,c){"function"==typeof a&&(a=a(b,c).data.join(""),b.data=[]);var d=this.blocks;if(d)for(var e,f=d.length;f--;)if(e=d[f][a])return e},Context.prototype.shiftBlocks=function(a){var b,c=this.blocks;return a?(b=c?c.concat([a]):[a],new Context(this.stack,this.global,b)):this},Stub.prototype.flush=function(){for(var a=this.head;a;){if(!a.flushable)return a.error?(this.callback(a.error),void(this.flush=function(){})):void 0;this.out+=a.data.join(""),a=a.next,this.head=a}this.callback(null,this.out)},Stream.prototype.flush=function(){for(var a=this.head;a;){if(!a.flushable)return a.error?(this.emit("error",a.error),void(this.flush=function(){})):void 0;this.emit("data",a.data.join("")),a=a.next,this.head=a}this.emit("end")},Stream.prototype.emit=function(a,b){if(!this.events)return!1;var c=this.events[a];if(!c)return!1;if("function"==typeof c)c(b);else for(var d=c.slice(0),e=0,f=d.length;f>e;e++)d[e](b)},Stream.prototype.on=function(a,b){return this.events||(this.events={}),this.events[a]?"function"==typeof this.events[a]?this.events[a]=[this.events[a],b]:this.events[a].push(b):this.events[a]=b,this},Stream.prototype.pipe=function(a){return this.on("data",function(b){a.write(b,"utf8")}).on("end",function(){a.end()}).on("error",function(b){a.error(b)}),this},Chunk.prototype.write=function(a){var b=this.taps;return b&&(a=b.go(a)),this.data.push(a),this},Chunk.prototype.end=function(a){return a&&this.write(a),this.flushable=!0,this.root.flush(),this},Chunk.prototype.map=function(a){var b=new Chunk(this.root,this.next,this.taps),c=new Chunk(this.root,b,this.taps);return this.next=c,this.flushable=!0,a(c),b},Chunk.prototype.tap=function(a){var b=this.taps;return b?this.taps=b.push(a):this.taps=new Tap(a),this},Chunk.prototype.untap=function(){return this.taps=this.taps.tail,this},Chunk.prototype.render=function(a,b){return a(this,b)},Chunk.prototype.reference=function(a,b,c,d){return"function"==typeof a&&(a.isFunction=!0,a=a.apply(b.current(),[this,b,null,{auto:c,filters:d}]),a instanceof Chunk)?a:dust.isEmpty(a)?this:this.write(dust.filter(a,c,d))},Chunk.prototype.section=function(a,b,c,d){if("function"==typeof a&&(a=a.apply(b.current(),[this,b,c,d]),a instanceof Chunk))return a;var e=c.block,f=c["else"];if(d&&(b=b.push(d)),dust.isArray(a)){if(e){var g=a.length,h=this;if(g>0){b.stack.head&&(b.stack.head.$len=g);for(var i=0;g>i;i++)b.stack.head&&(b.stack.head.$idx=i),h=e(h,b.push(a[i],i,g));return b.stack.head&&(b.stack.head.$idx=void 0,b.stack.head.$len=void 0),h}if(f)return f(this,b)}}else if(a===!0){if(e)return e(this,b)}else if(a||0===a){if(e)return e(this,b.push(a))}else if(f)return f(this,b);return this},Chunk.prototype.exists=function(a,b,c){var d=c.block,e=c["else"];if(dust.isEmpty(a)){if(e)return e(this,b)}else if(d)return d(this,b);return this},Chunk.prototype.notexists=function(a,b,c){var d=c.block,e=c["else"];if(dust.isEmpty(a)){if(d)return d(this,b)}else if(e)return e(this,b);return this},Chunk.prototype.block=function(a,b,c){var d=c.block;return a&&(d=a),d?d(this,b):this},Chunk.prototype.partial=function(a,b,c){var d;b.global&&b.global.__templates__&&b.global.__templates__.push(a),c?(d=dust.makeBase(b.global),d.blocks=b.blocks,b.stack&&b.stack.tail&&(d.stack=b.stack.tail),d=d.push(c),d=d.push(b.stack.head)):d=b;var e;return e="function"==typeof a?this.capture(a,d,function(a,b){dust.load(a,b,d).end()}):dust.load(a,this,d),b.global&&b.global.__templates__&&b.global.__templates__.pop(),e},Chunk.prototype.helper=function(a,b,c,d){return dust.helpers[a]?dust.helpers[a](this,b,c,d):this},Chunk.prototype.capture=function(a,b,c){return this.map(function(d){var e=new Stub(function(a,b){a?d.setError(a):c(b,d)});a(e.head,b).end()})},Chunk.prototype.setError=function(a){return this.error=a,this.root.flush(),this},Tap.prototype.push=function(a){return new Tap(a,this)},Tap.prototype.go=function(a){for(var b=this;b;)a=b.head(a),b=b.tail;return a};var HCHARS=new RegExp(/[&<>\"\']/),AMP=/&/g,LT=//g,QUOT=/\"/g,SQUOT=/\'/g;dust.escapeHtml=function(a){return"string"==typeof a&&HCHARS.test(a)?a.replace(AMP,"&").replace(LT,"<").replace(GT,">").replace(QUOT,""").replace(SQUOT,"'"):a};var BS=/\\/g,FS=/\//g,CR=/\r/g,LS=/\u2028/g,PS=/\u2029/g,NL=/\n/g,LF=/\f/g,SQ=/'/g,DQ=/"/g,TB=/\t/g;dust.escapeJs=function(a){return"string"==typeof a?a.replace(BS,"\\\\").replace(FS,"\\/").replace(DQ,'\\"').replace(SQ,"\\'").replace(CR,"\\r").replace(LS,"\\u2028").replace(PS,"\\u2029").replace(NL,"\\n").replace(LF,"\\f").replace(TB,"\\t"):a}}(dust),"undefined"!=typeof exports&&("undefined"!=typeof process&&require("./server")(dust),module.exports=dust),function(){function a(a,b){return a.write('
').reference(b.getPath(!1,["model","name"]),b,"h",["s"]).write("
")}return dust.register("TestTemplate",a),a}(),function(){function a(a,b){return a.write('').reference(b.getPath(!1,["model","annotation"]),b,"h").write("
")}return dust.register("ajsAnnotationDefault",a),a}(),function(){function a(a,c){return a.write('').reference(c.getPath(!1,["model","callToAction","title"]),c,"h",["s"]).write("
").reference(c.getPath(!1,["model","callToAction","subtitle"]),c,"h",["s"]).write("
").section(c.getPath(!1,["model","assetGateway"]),c,{"else":b,block:g},{}).write("
")}function b(a,b){return a.write('').section(b.getPath(!1,["model","callToAction","button","image"]),b,{"else":e,block:f},{}).write("")}function c(a,b){return a}function d(a,b){return a.write("position:absolute;").reference(b.get(["pos"],!1),b,"h").write(":").reference(b.get(["val"],!1),b,"h").write(";")}function e(a,b){return a.reference(b.getPath(!1,["model","callToAction","button","text"]),b,"h",["s"])}function f(a,b){return a.write('')}function g(a,b){return a.write('').section(b.getPath(!1,["model","callToAction","button","image"]),b,{"else":j,block:k},{}).write("")}function h(a,b){return a}function i(a,b){return a.write("position:absolute;").reference(b.get(["pos"],!1),b,"h").write(":").reference(b.get(["val"],!1),b,"h").write(";")}function j(a,b){return a.reference(b.getPath(!1,["model","callToAction","button","text"]),b,"h",["s"])}function k(a,b){return a.write('')}return dust.register("ajsEndOfVideoCallToActionBackground",a),a}(),function(){function a(a,c){return a.write('').reference(c.getPath(!1,["model","callToAction","title"]),c,"h",["s"]).write("
").reference(c.getPath(!1,["model","callToAction","subtitle"]),c,"h",["s"]).write("
").section(c.getPath(!1,["model","assetGateway"]),c,{"else":b,block:g},{}).write("
")}function b(a,b){return a.write('').section(b.getPath(!1,["model","callToAction","button","image"]),b,{"else":e,block:f},{}).write("")}function c(a,b){return a}function d(a,b){return a.reference(b.get(["pos"],!1),b,"h").write(":").reference(b.get(["val"],!1),b,"h").write(";")}function e(a,b){return a.reference(b.getPath(!1,["model","callToAction","button","text"]),b,"h",["s"])}function f(a,b){return a.write('')}function g(a,b){return a.write('').section(b.getPath(!1,["model","callToAction","button","image"]),b,{"else":j,block:k},{}).write("")}function h(a,b){return a}function i(a,b){return a.reference(b.get(["pos"],!1),b,"h").write(":").reference(b.get(["val"],!1),b,"h").write(";")}function j(a,b){return a.reference(b.getPath(!1,["model","callToAction","button","text"]),b,"h",["s"])}function k(a,b){return a.write('')}return dust.register("ajsEndOfVideoCallToActionBackgroundImage",a),a}(),function(){function a(a,d){return a.write('').reference(d.getPath(!1,["model","callToAction","title"]),d,"h",["s"]).write("
").reference(d.getPath(!1,["model","callToAction","subtitle"]),d,"h",["s"]).write("
").section(d.getPath(!1,["model","assetGateway"]),d,{"else":b,block:c},{}).write("
")}function b(a,b){return a.write('').reference(b.getPath(!1,["model","callToAction","button","text"]),b,"h",["s"]).write("")}function c(a,b){return a.write('').reference(b.getPath(!1,["model","callToAction","button","text"]),b,"h",["s"]).write("")}return dust.register("ajsEndOfVideoCallToActionDefault",a),a}(),function(){function a(a,e){return a.write('').reference(e.getPath(!1,["model","callToAction","title"]),e,"h",["s"]).write("
").reference(e.getPath(!1,["model","callToAction","subtitle"]),e,"h",["s"]).write("
").section(e.getPath(!1,["model","assetGateway"]),e,{"else":b,block:c},{}).write('
")}function b(a,b){return a.write('').reference(b.getPath(!1,["model","callToAction","button","text"]),b,"h",["s"]).write("")}function c(a,b){return a.write('').reference(b.getPath(!1,["model","callToAction","button","text"]),b,"h",["s"]).write("")}function d(a,b){return a.write("")}function e(a,b){return a.write('href="').reference(b.get(["linkUrl"],!1),b,"h").write('"')}function f(a,b){return a.write('data-video-change="').reference(b.get(["linkId"],!1),b,"h").write('"')}return dust.register("ajsEndOfVideoDefault",a),a}(),function(){function a(a,c){return a.write('")}function b(a,b){return a.write('")}return dust.register("ajsEndOfVideoRelatedVideosDefault",a),a}(),function(){function a(a,d){return a.write('').section(d.getPath(!1,["model","linkUrl"]),d,{block:b},{}).write('
').reference(d.getPath(!1,["model","text"]),d,"h").write("
").section(d.getPath(!1,["model","linkUrl"]),d,{block:c},{}).write("
")}function b(a,b){return a.write('')}function c(a,b){return a.write(" ")}return dust.register("ajsHotspotDefault",a),a}(),function(){function a(a,b){return a.write('")}return dust.register("ajsHotspotSplashPageDefault",a),a}(),function(){function a(a,b){return a.write('')}return dust.register("ajsLogoDefault",a),a}(),function(){function a(a,d){return a.write('').section(d.getPath(!1,["model","assetGateway"]),d,{"else":b,block:c},{}).write("
")}function b(a,b){return a.write('').reference(b.getPath(!1,["model","text"]),b,"h",["s"]).write("")}function c(a,b){return a.write('').reference(b.getPath(!1,["model","text"]),b,"h",["s"]).write("")}return dust.register("ajsPauseCallToActionBackground",a),a}(),function(){function a(a,d){return a.write('').section(d.getPath(!1,["model","assetGateway"]),d,{"else":b,block:c},{}).write("
")}function b(a,b){return a.write('')}function c(a,b){return a.write('')}return dust.register("ajsPauseCallToActionBackgroundImageCTA",a),a}(),function(){function a(a,c){return a.write('').section(c.getPath(!1,["model","image"]),c,{"else":b,block:g},{}).write("
")}function b(a,b){return a.section(b.getPath(!1,["model","assetGateway"]),b,{"else":c,block:f},{})}function c(a,b){return a.section(b.getPath(!1,["model","link"]),b,{"else":d,block:e},{})}function d(a,b){return a.reference(b.getPath(!1,["model","text"]),b,"h",["s"])}function e(a,b){return a.write('').reference(b.getPath(!1,["model","text"]),b,"h",["s"]).write("")}function f(a,b){return a.write('').reference(b.getPath(!1,["model","text"]),b,"h",["s"]).write("")}function g(a,b){return a.section(b.getPath(!1,["model","assetGateway"]),b,{"else":h,block:i},{})}function h(a,b){return a.write('')}function i(a,b){return a.write('')}return dust.register("ajsPauseCallToActionDefault",a),a}(),function(){function a(a,b){return a.write('').reference(b.getPath(!1,["model","title"]),b,"h").write("
")}return dust.register("ajsTitleDefault",a),a}(),function(){function a(a,c){return a.write('")}function b(a,b){return a.write('")}return dust.register("related",a),a}(),function(){function a(a,c){return a.write('")}function b(a,b){return a.write("")}return dust.register("relatedInsert",a),a}(),function(){function m(){return function(){}}function p(a){return function(){return this[a]}}function q(a){return function(){return a}}function u(a,b,c){if("string"==typeof a){if(0===a.indexOf("#")&&(a=a.slice(1)),u.wa[a])return u.wa[a];a=u.v(a)}if(!a||!a.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return a.player||new u.w(a,b,c)}function D(a){a.t("vjs-lock-showing")}function E(a,c,d,e){return d!==b?(a.a.style[c]=-1!==(""+d).indexOf("%")||-1!==(""+d).indexOf("px")?d:"auto"===d?"":d+"px",e||a.j("resize"),a):a.a?(d=a.a.style[c],e=d.indexOf("px"),-1!==e?parseInt(d.slice(0,e),10):parseInt(a.a["offset"+u.$(c)],10)):0}function F(a,b){var c,d,e,f;return c=a.a,d=u.Xc(c),f=e=c.offsetWidth,c=a.handle,a.g.zd?(f=d.top,d=b.changedTouches?b.changedTouches[0].pageY:b.pageY,c&&(c=c.v().offsetHeight,f+=c/2,e-=c),Math.max(0,Math.min(1,(f-d+e)/e))):(e=d.left,d=b.changedTouches?b.changedTouches[0].pageX:b.pageX,c&&(c=c.v().offsetWidth,e+=c/2,f-=c),Math.max(0,Math.min(1,(d-e)/f)))}function ca(a,b){a.Z(b),b.d("click",u.bind(a,function(){D(this)}))}function H(a){a.oa=f,a.va.m("vjs-lock-showing"),a.a.setAttribute("aria-pressed",f),a.J&&0e;e++)c=a[e],d=c.nodeName.toLowerCase(),"source"===d?b.sources.push(u.wb(c)):"track"===d&&b.tracks.push(u.wb(c))}return b}function J(a,b,c){a.h?(a.aa=l,a.h.D(),a.Db&&(a.Db=l,clearInterval(a.Qa)),a.Eb&&K(a),a.h=l):"Html5"!==b&&a.F&&(a.a.removeChild(a.F),a.F.player=j,a.F=j),a.ia=b,a.aa=l;var d=u.k.B({source:c,parentEl:a.a},a.g[b.toLowerCase()]);c&&(c.src==a.u.src&&0g;g++)d=f[g],d.id()===b?(d.show(),e=d):c&&d.K()==c&&0Chrome or download the latest Adobe Flash Player.'},"GENERATED_CDN_VSN"!==u.Rb&&(v.options.flash.swf=u.Bc+"vjs.zencdn.net/"+u.Rb+"/video-js.swf"),u.wa={},u.ka=u.CoreObject=m(),u.ka.extend=function(a){var b,c;a=a||{},b=a.init||a.i||this.prototype.init||this.prototype.i||m(),c=function(){b.apply(this,arguments)},c.prototype=u.k.create(this.prototype),c.prototype.constructor=c,c.extend=u.ka.extend,c.create=u.ka.create;for(var d in a)a.hasOwnProperty(d)&&(c.prototype[d]=a[d]);return c},u.ka.create=function(){var a=u.k.create(this.prototype);return this.apply(a,arguments),a},u.d=function(a,b,c){var d=u.getData(a);d.z||(d.z={}),d.z[b]||(d.z[b]=[]),c.s||(c.s=u.s++),d.z[b].push(c),d.W||(d.disabled=l,d.W=function(b){if(!d.disabled){b=u.gc(b);var c=d.z[b.type];if(c)for(var c=c.slice(0),e=0,f=c.length;f>e&&!b.lc();e++)c[e].call(a,b)}}),1==d.z[b].length&&(document.addEventListener?a.addEventListener(b,d.W,l):document.attachEvent&&a.attachEvent("on"+b,d.W))},u.n=function(a,b,c){if(u.kc(a)){var d=u.getData(a);if(d.z)if(b){var e=d.z[b];if(e){if(c){if(c.s)for(d=0;d=0;d--)c[d]===b&&c.splice(d,1);a.className=c.join(" ")}},u.ma=u.e("video"),u.G=navigator.userAgent,u.Hc=/iPhone/i.test(u.G),u.Gc=/iPad/i.test(u.G),u.Ic=/iPod/i.test(u.G),u.Fc=u.Hc||u.Gc||u.Ic;var aa=u,x,y=u.G.match(/OS (\d+)_/i);x=y&&y[1]?y[1]:b,aa.Cd=x,u.Dc=/Android/i.test(u.G);var ba=u,z,A=u.G.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),B,C;A?(B=A[1]&&parseFloat(A[1]),C=A[2]&&parseFloat(A[2]),z=B&&C?parseFloat(A[1]+"."+A[2]):B?B:j):z=j,ba.Cc=z,u.Jc=u.Dc&&/webkit/i.test(u.G)&&2.3>u.Cc,u.Ec=/Firefox/i.test(u.G),u.Dd=/Chrome/i.test(u.G),u.Mc="ontouchstart"in window,u.wb=function(a){var b,c,d,e;if(b={},a&&a.attributes&&0=0;g--)d=c[g].name,e=c[g].value,("boolean"==typeof a[d]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+d+","))&&(e=e!==j?f:l),b[d]=e}return b},u.Hd=function(a,b){var c="";return document.defaultView&&document.defaultView.getComputedStyle?c=document.defaultView.getComputedStyle(a,"").getPropertyValue(b):a.currentStyle&&(c=a["client"+b.substr(0,1).toUpperCase()+b.substr(1)]+"px"),c},u.yb=function(a,b){b.firstChild?b.insertBefore(a,b.firstChild):b.appendChild(a)},u.Nb={},u.v=function(a){return 0===a.indexOf("#")&&(a=a.slice(1)),document.getElementById(a)},u.Ka=function(a,b){b=b||a;var c=Math.floor(a%60),d=Math.floor(a/60%60),e=Math.floor(a/3600),f=Math.floor(b/60%60),g=Math.floor(b/3600);return(isNaN(a)||1/0===a)&&(e=d=c="-"),e=e>0||g>0?e+":":"",e+(((e||f>=10)&&10>d?"0"+d:d)+":")+(10>c?"0"+c:c)},u.Pc=function(){document.body.focus(),document.onselectstart=q(l)},u.yd=function(){document.onselectstart=q(f)},u.trim=function(a){return(a+"").replace(/^\s+|\s+$/g,"")},u.round=function(a,b){return b||(b=0),Math.round(a*Math.pow(10,b))/Math.pow(10,b)},u.sb=function(a,b){return{length:1,start:function(){return a},end:function(){return b}}},u.get=function(a,b,c){var d,e;"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(a){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(b){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(c){}throw Error("This browser does not support XMLHttpRequest.")}),e=new XMLHttpRequest;try{e.open("GET",a)}catch(f){c(f)}d=0===a.indexOf("file:")||0===window.location.href.indexOf("file:")&&-1===a.indexOf("http"),e.onreadystatechange=function(){4===e.readyState&&(200===e.status||d&&0===e.status?b(e.responseText):c&&c())};try{e.send()}catch(g){c&&c(g)}},u.qd=function(a){try{var b=window.localStorage||l;b&&(b.volume=a)}catch(c){22==c.code||1014==c.code?u.log("LocalStorage Full (VideoJS)",c):18==c.code?u.log("LocalStorage not allowed (VideoJS)",c):u.log("LocalStorage Error (VideoJS)",c)}},u.ic=function(a){return a.match(/^https?:\/\//)||(a=u.e("div",{innerHTML:'x'}).firstChild.href),a},u.log=function(){u.log.history=u.log.history||[],u.log.history.push(arguments),window.console&&window.console.log(Array.prototype.slice.call(arguments))},u.Xc=function(a){var b,c;return a.getBoundingClientRect&&a.parentNode&&(b=a.getBoundingClientRect()),b?(a=document.documentElement,c=document.body,{left:b.left+(window.pageXOffset||c.scrollLeft)-(a.clientLeft||c.clientLeft||0),top:b.top+(window.pageYOffset||c.scrollTop)-(a.clientTop||c.clientTop||0)}):{left:0,top:0}},u.c=u.ka.extend({i:function(a,b,c){if(this.b=a,this.g=u.k.copy(this.g),b=this.options(b),this.Q=b.id||(b.el&&b.el.id?b.el.id:a.id()+"_component_"+u.s++),this.cd=b.name||j,this.a=b.el||this.e(),this.H=[],this.pb={},this.V={},(a=this.g)&&a.children){var d=this;u.k.ta(a.children,function(a,b){b!==l&&!b.loadEvent&&(d[a]=d.Z(a,b))})}this.M(c)}}),t=u.c.prototype,t.D=function(){if(this.j("dispose"),this.H)for(var a=this.H.length-1;a>=0;a--)this.H[a].D&&this.H[a].D();this.V=this.pb=this.H=j,this.n(),this.a.parentNode&&this.a.parentNode.removeChild(this.a),u.qc(this.a),this.a=j},t.L=p("b"),t.options=function(a){return a===b?this.g:this.g=u.k.fc(this.g,a)},t.e=function(a,b){return u.e(a,b)},t.v=p("a"),t.id=p("Q"),t.name=p("cd"),t.children=p("H"),t.Z=function(a,b){var c,d;return"string"==typeof a?(d=a,b=b||{},c=b.componentClass||u.$(d),b.name=d,c=new window.videojs[c](this.b||this,b)):c=a,this.H.push(c),"function"==typeof c.id&&(this.pb[c.id()]=c),(d=d||c.name&&c.name())&&(this.V[d]=c),"function"==typeof c.el&&c.el()&&(this.ra||this.a).appendChild(c.el()),c},t.removeChild=function(a){if("string"==typeof a&&(a=this.V[a]),a&&this.H){for(var b=l,c=this.H.length-1;c>=0;c--)if(this.H[c]===a){b=f,this.H.splice(c,1);break}b&&(this.pb[a.id]=j,this.V[a.name]=j,(b=a.v())&&b.parentNode===(this.ra||this.a)&&(this.ra||this.a).removeChild(a.v()))}},t.T=q(""),t.d=function(a,b){return u.d(this.a,a,u.bind(this,b)),this},t.n=function(a,b){return u.n(this.a,a,b),this},t.U=function(a,b){return u.U(this.a,a,u.bind(this,b)),this},t.j=function(a,b){return u.j(this.a,a,b),this},t.M=function(a){return a&&(this.aa?a.call(this):(this.Ra===b&&(this.Ra=[]),this.Ra.push(a))),this},t.Ta=function(){this.aa=f;var a=this.Ra;if(a&&0b;b++)a[b].call(this);this.Ra=[],this.j("ready")}},t.m=function(a){return u.m(this.a,a),this},t.t=function(a){return u.t(this.a,a),this},t.show=function(){return this.a.style.display="block",this},t.C=function(){return this.a.style.display="none",this},t.disable=function(){this.C(),this.show=m()},t.width=function(a,b){return E(this,"width",a,b)},t.height=function(a,b){return E(this,"height",a,b)},t.Tc=function(a,b){return this.width(a,f).height(b)},u.q=u.c.extend({i:function(a,b){u.c.call(this,a,b);var c=l;this.d("touchstart",function(a){a.preventDefault(),c=f}),this.d("touchmove",function(){c=l});var d=this;this.d("touchend",function(a){c&&d.p(a),a.preventDefault()}),this.d("click",this.p),this.d("focus",this.Na),this.d("blur",this.Ma)}}),t=u.q.prototype,t.e=function(a,b){return b=u.k.B({className:this.T(),innerHTML:''+(this.pa||"Need Text")+"
",nd:"button","aria-live":"polite",tabIndex:0},b),u.c.prototype.e.call(this,a,b)},t.T=function(){return"vjs-control "+u.c.prototype.T.call(this)},t.p=m(),t.Na=function(){u.d(document,"keyup",u.bind(this,this.ba))},t.ba=function(a){(32==a.which||13==a.which)&&(a.preventDefault(),this.p())},t.Ma=function(){u.n(document,"keyup",u.bind(this,this.ba))},u.O=u.c.extend({i:function(a,b){u.c.call(this,a,b),this.Oc=this.V[this.g.barName],this.handle=this.V[this.g.handleName],a.d(this.oc,u.bind(this,this.update)),this.d("mousedown",this.Oa),this.d("touchstart",this.Oa),this.d("focus",this.Na),this.d("blur",this.Ma),this.d("click",this.p),this.b.d("controlsvisible",u.bind(this,this.update)),a.M(u.bind(this,this.update)),this.P={}}}),t=u.O.prototype,t.e=function(a,b){return b=b||{},b.className+=" vjs-slider",b=u.k.B({nd:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},b),u.c.prototype.e.call(this,a,b)},t.Oa=function(a){a.preventDefault(),u.Pc(),this.P.move=u.bind(this,this.Gb),this.P.end=u.bind(this,this.Hb),u.d(document,"mousemove",this.P.move),u.d(document,"mouseup",this.P.end),u.d(document,"touchmove",this.P.move),u.d(document,"touchend",this.P.end),this.Gb(a)},t.Hb=function(){u.yd(),u.n(document,"mousemove",this.P.move,l),u.n(document,"mouseup",this.P.end,l),u.n(document,"touchmove",this.P.move,l),u.n(document,"touchend",this.P.end,l),this.update()},t.update=function(){if(this.a){var a,b=this.xb(),c=this.handle,d=this.Oc;if(isNaN(b)&&(b=0),a=b,c){a=this.a.offsetWidth;var e=c.v().offsetWidth;a=e?e/a:0,b*=1-a,a=b+a/2,c.v().style.left=u.round(100*b,2)+"%"}d.v().style.width=u.round(100*a,2)+"%"}},t.Na=function(){u.d(document,"keyup",u.bind(this,this.ba))},t.ba=function(a){37==a.which?(a.preventDefault(),this.uc()):39==a.which&&(a.preventDefault(),this.vc())},t.Ma=function(){u.n(document,"keyup",u.bind(this,this.ba))},t.p=function(a){a.stopImmediatePropagation(),a.preventDefault()},u.ea=u.c.extend(),u.ea.prototype.defaultValue=0,u.ea.prototype.e=function(a,b){return b=b||{},b.className+=" vjs-slider-handle",b=u.k.B({innerHTML:''+this.defaultValue+""},b),u.c.prototype.e.call(this,"div",b)},u.la=u.c.extend(),u.la.prototype.e=function(){var a=this.options().Rc||"ul";return this.ra=u.e(a,{className:"vjs-menu-content"}),a=u.c.prototype.e.call(this,"div",{append:this.ra,className:"vjs-menu"}),a.appendChild(this.ra),u.d(a,"click",function(a){a.preventDefault(),a.stopImmediatePropagation()}),a},u.N=u.q.extend({i:function(a,b){u.q.call(this,a,b),this.selected(b.selected)}}),u.N.prototype.e=function(a,b){return u.q.prototype.e.call(this,"li",u.k.B({className:"vjs-menu-item",innerHTML:this.g.label},b))},u.N.prototype.p=function(){this.selected(f)},u.N.prototype.selected=function(a){a?(this.m("vjs-selected"),this.a.setAttribute("aria-selected",f)):(this.t("vjs-selected"),this.a.setAttribute("aria-selected",l))},u.R=u.q.extend({i:function(a,b){u.q.call(this,a,b),this.va=this.Ja(),this.Z(this.va),this.J&&0===this.J.length&&this.C(),this.d("keyup",this.ba),this.a.setAttribute("aria-haspopup",f),this.a.setAttribute("role","button")}}),t=u.R.prototype,t.oa=l,t.Ja=function(){var a=new u.la(this.b);if(this.options().title&&a.v().appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.A),wd:-1})),this.J=this.createItems())for(var b=0;b=0&&a.end(b)!==c&&(c=a.end(b),this.u.kb=c),u.sb(0,c)},t.Ia=function(){return this.duration()?this.buffered().end(0)/this.duration():0},t.volume=function(a){return a!==b?(a=Math.max(0,Math.min(1,parseFloat(a))),this.u.volume=a,M(this,"setVolume",a),u.qd(a),this):(a=parseFloat(L(this,"volume")),isNaN(a)?1:a)},t.muted=function(a){return a!==b?(M(this,"setMuted",a),this):L(this,"muted")||l},t.Sa=function(){return L(this,"supportsFullScreen")||l},t.xa=function(){var a=u.Nb.xa;return this.I=f,a?(u.d(document,a.ub,u.bind(this,function(b){this.I=document[a.I],this.I===l&&u.n(document,a.ub,arguments.callee),this.j("fullscreenchange")})),this.a[a.sc]()):this.h.Sa()?M(this,"enterFullScreen"):(this.Zc=f,this.Uc=document.documentElement.style.overflow,u.d(document,"keydown",u.bind(this,this.hc)),document.documentElement.style.overflow="hidden",u.m(document.body,"vjs-full-window"),this.j("enterFullWindow"),this.j("fullscreenchange")),this},t.nb=function(){var a=u.Nb.xa;return this.I=l,a?document[a.mb]():this.h.Sa()?M(this,"exitFullScreen"):(N(this),this.j("fullscreenchange")),this},t.hc=function(a){27===a.keyCode&&(this.I===f?this.nb():N(this))},t.src=function(a){if(a instanceof Array){var b;a:{b=a;for(var c=0,d=this.g.techOrder;cCurrent Time 0:00',"aria-live":"off"}),a.appendChild(u.e("div").appendChild(this.content)),a},u.Xa.prototype.Ba=function(){var a=this.b.Lb?this.b.u.currentTime:this.b.currentTime();this.content.innerHTML='Current Time '+u.Ka(a,this.b.duration())},u.Ya=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.d("timeupdate",u.bind(this,this.Ba))}}),u.Ya.prototype.e=function(){var a=u.c.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.content=u.e("div",{className:"vjs-duration-display",innerHTML:'Duration Time 0:00',"aria-live":"off"}),a.appendChild(u.e("div").appendChild(this.content)),a},u.Ya.prototype.Ba=function(){var a=this.b.duration();a&&(this.content.innerHTML='Duration Time '+u.Ka(a))},u.$b=u.c.extend({i:function(a,b){u.c.call(this,a,b)}}),u.$b.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"/
"})},u.eb=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.d("timeupdate",u.bind(this,this.Ba))}}),u.eb.prototype.e=function(){var a=u.c.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.content=u.e("div",{className:"vjs-remaining-time-display",innerHTML:'Remaining Time -0:00',"aria-live":"off"}),a.appendChild(u.e("div").appendChild(this.content)),a},u.eb.prototype.Ba=function(){this.b.duration()&&(this.content.innerHTML='Remaining Time -'+u.Ka(this.b.duration()-this.b.currentTime()))},u.Fa=u.q.extend({i:function(a,b){u.q.call(this,a,b)}}),u.Fa.prototype.pa="Fullscreen",u.Fa.prototype.T=function(){return"vjs-fullscreen-control "+u.q.prototype.T.call(this)},u.Fa.prototype.p=function(){this.b.I?(this.b.nb(),this.a.children[0].children[0].innerHTML="Fullscreen"):(this.b.xa(),this.a.children[0].children[0].innerHTML="Non-Fullscreen")},u.cb=u.c.extend({i:function(a,b){u.c.call(this,a,b)}}),u.cb.prototype.g={children:{seekBar:{}}},u.cb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})},u.Xb=u.O.extend({i:function(a,b){u.O.call(this,a,b),a.d("timeupdate",u.bind(this,this.Aa)),a.M(u.bind(this,this.Aa))}}),t=u.Xb.prototype,t.g={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"},t.oc="timeupdate",t.e=function(){return u.O.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})},t.Aa=function(){var a=this.b.Lb?this.b.u.currentTime:this.b.currentTime();this.a.setAttribute("aria-valuenow",u.round(100*this.xb(),2)),this.a.setAttribute("aria-valuetext",u.Ka(a,this.b.duration()))},t.xb=function(){var a;return"Flash"===this.b.ia&&this.b.seeking()?(a=this.b.u,a=a.nc?a.nc:this.b.currentTime()):a=this.b.currentTime(),a/this.b.duration()},t.Oa=function(a){u.O.prototype.Oa.call(this,a),this.b.Lb=f,this.Ad=!this.b.paused(),this.b.pause()},t.Gb=function(a){a=F(this,a)*this.b.duration(),a==this.b.duration()&&(a-=.1),this.b.currentTime(a)},t.Hb=function(a){u.O.prototype.Hb.call(this,a),this.b.Lb=l,this.Ad&&this.b.play()},t.vc=function(){this.b.currentTime(this.b.currentTime()+5)},t.uc=function(){this.b.currentTime(this.b.currentTime()-5)},u.$a=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.d("progress",u.bind(this,this.update))}}),u.$a.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:'Loaded: 0%'})},u.$a.prototype.update=function(){this.a.style&&(this.a.style.width=u.round(100*this.b.Ia(),2)+"%")},u.Vb=u.c.extend({i:function(a,b){u.c.call(this,a,b)}}),u.Vb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:'Progress: 0%'})},u.fb=u.ea.extend(),u.fb.prototype.defaultValue="00:00",u.fb.prototype.e=function(){return u.ea.prototype.e.call(this,"div",{className:"vjs-seek-handle"})},u.hb=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.h&&a.h.l&&a.h.l.volumeControl===l&&this.m("vjs-hidden"),a.d("loadstart",u.bind(this,function(){a.h.l&&a.h.l.volumeControl===l?this.m("vjs-hidden"):this.t("vjs-hidden")}))}}),u.hb.prototype.g={children:{volumeBar:{}}},u.hb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})},u.gb=u.O.extend({i:function(a,b){u.O.call(this,a,b),a.d("volumechange",u.bind(this,this.Aa)),a.M(u.bind(this,this.Aa)),setTimeout(u.bind(this,this.update),0)}}),t=u.gb.prototype,t.Aa=function(){this.a.setAttribute("aria-valuenow",u.round(100*this.b.volume(),2)),this.a.setAttribute("aria-valuetext",u.round(100*this.b.volume(),2)+"%")},t.g={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"},t.oc="volumechange",t.e=function(){return u.O.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})},t.Gb=function(a){this.b.volume(F(this,a))},t.xb=function(){return this.b.muted()?0:this.b.volume()},t.vc=function(){this.b.volume(this.b.volume()+.1)},t.uc=function(){this.b.volume(this.b.volume()-.1)},u.ac=u.c.extend({i:function(a,b){u.c.call(this,a,b)}}),u.ac.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},u.ib=u.ea.extend(),u.ib.prototype.defaultValue="00:00",u.ib.prototype.e=function(){return u.ea.prototype.e.call(this,"div",{className:"vjs-volume-handle"})},u.da=u.q.extend({i:function(a,b){u.q.call(this,a,b),a.d("volumechange",u.bind(this,this.update)),a.h&&a.h.l&&a.h.l.volumeControl===l&&this.m("vjs-hidden"),a.d("loadstart",u.bind(this,function(){a.h.l&&a.h.l.volumeControl===l?this.m("vjs-hidden"):this.t("vjs-hidden")}))}}),u.da.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'Mute
'})},u.da.prototype.p=function(){this.b.muted(this.b.muted()?l:f)},u.da.prototype.update=function(){var a=this.b.volume(),b=3;for(0===a||this.b.muted()?b=0:.33>a?b=1:.67>a&&(b=2),this.b.muted()?"Unmute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Unmute"):"Mute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Mute"),a=0;4>a;a++)u.t(this.a,"vjs-vol-"+a);u.m(this.a,"vjs-vol-"+b)},u.na=u.R.extend({i:function(a,b){u.R.call(this,a,b),a.d("volumechange",u.bind(this,this.update)),a.h&&a.h.l&&a.h.l.zc===l&&this.m("vjs-hidden"),a.d("loadstart",u.bind(this,function(){a.h.l&&a.h.l.zc===l?this.m("vjs-hidden"):this.t("vjs-hidden")})),this.m("vjs-menu-button")}}),u.na.prototype.Ja=function(){var a=new u.la(this.b,{Rc:"div"}),b=new u.gb(this.b,u.k.B({zd:f},this.g.Sd));return a.Z(b),a},u.na.prototype.p=function(){u.da.prototype.p.call(this),u.R.prototype.p.call(this)},u.na.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'Mute
'})},u.na.prototype.update=u.da.prototype.update,u.bb=u.q.extend({i:function(a,b){u.q.call(this,a,b),(!a.poster()||!a.controls())&&this.C(),a.d("play",u.bind(this,this.C))}}),u.bb.prototype.e=function(){var a=u.e("div",{className:"vjs-poster",tabIndex:-1}),b=this.b.poster();return b&&("backgroundSize"in a.style?a.style.backgroundImage='url("'+b+'")':a.appendChild(u.e("img",{src:b}))),a},u.bb.prototype.p=function(){this.L().controls()&&this.b.play()},u.Ub=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.d("canplay",u.bind(this,this.C)),a.d("canplaythrough",u.bind(this,this.C)),a.d("playing",u.bind(this,this.C)),a.d("seeked",u.bind(this,this.C)),a.d("seeking",u.bind(this,this.show)),a.d("seeked",u.bind(this,this.C)),a.d("error",u.bind(this,this.show)),a.d("waiting",u.bind(this,this.show))}}),u.Ub.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-loading-spinner"})},u.Va=u.q.extend(),u.Va.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:"","aria-label":"play video"})},u.Va.prototype.p=function(){this.b.play()},u.r=u.c.extend({i:function(a,b,c){u.c.call(this,a,b,c);var d,e;e=this,d=this.L(),a=function(){if(d.controls()&&!d.Pb()){var a,b;e.d("mousedown",e.p),e.d("touchstart",function(a){a.preventDefault(),a.stopPropagation(),b=I(this.b)}),a=function(a){a.stopPropagation(),b&&this.b.rc()},e.d("touchmove",a),e.d("touchleave",a),e.d("touchcancel",a),e.d("touchend",a);var c,g,h;c=0,e.d("touchstart",function(){c=(new Date).getTime(),h=f}),a=function(){h=l},e.d("touchmove",a),e.d("touchleave",a),e.d("touchcancel",a),e.d("touchend",function(){h===f&&(g=(new Date).getTime()-c,250>g&&this.j("tap"))}),e.d("tap",e.jd)}},b=u.bind(e,e.md),this.M(a),d.d("controlsenabled",a),d.d("controlsdisabled",b)}}),u.r.prototype.md=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")},u.r.prototype.p=function(a){0===a.button&&this.L().controls()&&(this.L().paused()?this.L().play():this.L().pause())},u.r.prototype.jd=function(){I(this.L(),!I(this.L()))},u.r.prototype.l={volumeControl:f,fullscreenResize:l,progressEvents:l,timeupdateEvents:l},u.media={},u.media.Ua="play pause paused currentTime setCurrentTime duration buffered volume setVolume muted setMuted width height supportsFullScreen enterFullScreen src load currentSrc preload setPreload autoplay setAutoplay loop setLoop error networkState readyState seeking initialTime startOffsetTime played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks defaultPlaybackRate playbackRate mediaGroup controller controls defaultMuted".split(" ");for(var i=u.media.Ua.length-1;i>=0;i--)u.r.prototype[u.media.Ua[i]]=ea();u.o=u.r.extend({i:function(a,b,c){if(this.l.volumeControl=u.o.Qc(),this.l.movingMediaElementInDOM=!u.Fc,this.l.fullscreenResize=f,u.r.call(this,a,b,c),(b=b.source)&&this.a.currentSrc==b.src?a.j("loadstart"):b&&(this.a.src=b.src),u.Mc&&a.options().nativeControlsForTouch!==l){var d,e,g,h;d=this,e=this.L(),b=e.controls(),d.a.controls=!!b,g=function(){d.a.controls=f},h=function(){d.a.controls=l},e.d("controlsenabled",g),e.d("controlsdisabled",h),b=function(){e.n("controlsenabled",g),e.n("controlsdisabled",h)},d.d("dispose",b),e.d("usingcustomcontrols",b),e.Pb(f)}for(a.M(function(){this.F&&this.g.autoplay&&this.paused()&&(delete this.F.poster,this.play())}),a=u.o.Za.length-1;a>=0;a--)u.d(this.a,u.o.Za[a],u.bind(this.b,this.Wc));this.Ta()}}),t=u.o.prototype,t.D=function(){u.r.prototype.D.call(this)},t.e=function(){var a=this.b,b=a.F;b&&this.l.movingMediaElementInDOM!==l||(b?(b.player=j,a.F=j,a.v().removeChild(b),b=b.cloneNode(l)):b=u.e("video",{id:a.id()+"_html5_api",className:"vjs-tech"}),b.player=a,u.yb(b,a.v()));for(var c=["autoplay","preload","loop","muted"],d=c.length-1;d>=0;d--){var e=c[d];a.g[e]!==j&&(b[e]=a.g[e])}return b},t.Wc=function(a){this.j(a),a.stopPropagation()},t.play=function(){this.a.play()},t.pause=function(){this.a.pause()},t.paused=function(){return this.a.paused},t.currentTime=function(){return this.a.currentTime},t.pd=function(a){try{this.a.currentTime=a}catch(b){u.log(b,"Video is not ready. (Video.js)")}},t.duration=function(){return this.a.duration||0},t.buffered=function(){return this.a.buffered},t.volume=function(){return this.a.volume},t.ud=function(a){this.a.volume=a},t.muted=function(){return this.a.muted},t.sd=function(a){this.a.muted=a},t.width=function(){return this.a.offsetWidth},t.height=function(){return this.a.offsetHeight},t.Sa=function(){return"function"!=typeof this.a.webkitEnterFullScreen||!/Android/.test(u.G)&&/Chrome|Mac OS X 10.5/.test(u.G)?l:f},t.src=function(a){this.a.src=a},t.load=function(){this.a.load()},t.currentSrc=function(){return this.a.currentSrc},t.Pa=function(){return this.a.Pa},t.td=function(a){this.a.Pa=a},t.autoplay=function(){return this.a.autoplay},t.od=function(a){this.a.autoplay=a},t.controls=function(){return this.a.controls},t.loop=function(){return this.a.loop;
},t.rd=function(a){this.a.loop=a},t.error=function(){return this.a.error},t.seeking=function(){return this.a.seeking},u.o.isSupported=function(){return!!u.ma.canPlayType},u.o.lb=function(a){try{return!!u.ma.canPlayType(a.type)}catch(b){return""}},u.o.Qc=function(){var a=u.ma.volume;return u.ma.volume=a/2+.1,a!==u.ma.volume},u.o.Za="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange volumechange".split(" "),u.Jc&&(document.createElement("video").constructor.prototype.canPlayType=function(a){return a&&-1!=a.toLowerCase().indexOf("video/mp4")?"maybe":""}),u.f=u.r.extend({i:function(a,b,c){u.r.call(this,a,b,c);var d=b.source;c=b.parentEl;var e=this.a=u.e("div",{id:a.id()+"_temp_flash"}),g=a.id()+"_flash_api";a=a.g;var h=u.k.B({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:a.autoplay,preload:a.Pa,loop:a.loop,muted:a.muted},b.flashVars),i=u.k.B({wmode:"opaque",bgcolor:"#000000"},b.params),j=u.k.B({id:g,name:g,"class":"vjs-tech"},b.attributes);if(d&&(d.type&&u.f.ad(d.type)?(a=u.f.wc(d.src),h.rtmpConnection=encodeURIComponent(a.qb),h.rtmpStream=encodeURIComponent(a.Mb)):h.src=encodeURIComponent(u.ic(d.src))),u.yb(e,c),b.startTime&&this.M(function(){this.load(),this.play(),this.currentTime(b.startTime)}),b.iFrameMode!==f||u.Ec)u.f.Vc(b.swf,e,h,i,j);else{var k=u.e("iframe",{id:g+"_iframe",name:g+"_iframe",className:"vjs-tech",scrolling:"no",marginWidth:0,marginHeight:0,frameBorder:0});h.readyFunction="ready",h.eventProxyFunction="events",h.errorEventProxyFunction="errors",u.d(k,"load",u.bind(this,function(){var a,c=k.contentWindow;a=k.contentDocument?k.contentDocument:k.contentWindow.document,a.write(u.f.jc(b.swf,h,i,j)),c.player=this.b,c.ready=u.bind(this.b,function(b){var c=this.h;c.a=a.getElementById(b),u.f.ob(c)}),c.events=u.bind(this.b,function(a,b){this&&"flash"===this.ia&&this.j(b)}),c.errors=u.bind(this.b,function(a,b){u.log("Flash Error",b)})})),e.parentNode.replaceChild(k,e)}}}),t=u.f.prototype,t.D=function(){u.r.prototype.D.call(this)},t.play=function(){this.a.vjs_play()},t.pause=function(){this.a.vjs_pause()},t.src=function(a){if(u.f.$c(a)?(a=u.f.wc(a),this.Nd(a.qb),this.Od(a.Mb)):(a=u.ic(a),this.a.vjs_src(a)),this.b.autoplay()){var b=this;setTimeout(function(){b.play()},0)}},t.currentSrc=function(){var a=this.a.vjs_getProperty("currentSrc");if(a==j){var b=this.Ld(),c=this.Md();b&&c&&(a=u.f.vd(b,c))}return a},t.load=function(){this.a.vjs_load()},t.poster=function(){this.a.vjs_getProperty("poster")},t.buffered=function(){return u.sb(0,this.a.vjs_getProperty("buffered"))},t.Sa=q(l);var R=u.f.prototype,S="rtmpConnection rtmpStream preload currentTime defaultPlaybackRate playbackRate autoplay loop mediaGroup controller controls volume muted defaultMuted".split(" "),T="error currentSrc networkState readyState seeking initialTime duration startOffsetTime paused played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks".split(" "),U;for(U=0;U'}),d=u.k.B({data:a,width:"100%",height:"100%"},d),u.k.ta(d,function(a,b){g+=a+'="'+b+'" '}),'"},u.f.vd=function(a,b){return a+"&"+b},u.f.wc=function(a){var b={qb:"",Mb:""};if(!a)return b;var c,d=a.indexOf("&");return-1!==d?c=d+1:(d=c=a.lastIndexOf("/")+1,0===d&&(d=c=a.length)),b.qb=a.substring(0,d),b.Mb=a.substring(c,a.length),b},u.f.ad=function(a){return a in u.f.xc},u.f.Lc=/^rtmp[set]?:\/\//i,u.f.$c=function(a){return u.f.Lc.test(a)},u.Kc=u.c.extend({i:function(a,b,c){if(u.c.call(this,a,b,c),a.g.sources&&0!==a.g.sources.length)a.src(a.g.sources);else for(b=0,c=a.g.techOrder;be;e++)if(d=u.trim(a[e])){for(-1==d.indexOf("-->")?(b=d,d=u.trim(a[++e])):b=this.fa.length,b={id:b,index:this.fa.length},c=d.split(" --> "),b.startTime=ga(c[0]),b.ua=ga(c[1]),c=[];a[++e]&&(d=u.trim(a[e]));)c.push(d);b.text=c.join("
"),this.fa.push(b)}this.ha=2,this.j("loaded")},t.update=function(){if(0=this.La||this.La===b?g=this.vb!==b?this.vb:0:(k=f,g=this.Cb!==b?this.Cb:h.length-1);;){if(e=h[g],e.ua<=a)j=Math.max(j,e.ua),e.Ha&&(e.Ha=l);else if(ai;i++)h+=''+a[i].text+"";this.a.innerHTML=h,this.j("cuechange")}}},t.reset=function(){this.La=0,this.Kb=this.b.duration(),this.Cb=this.vb=0},u.Sb=u.X.extend(),u.Sb.prototype.A="captions",u.Yb=u.X.extend(),u.Yb.prototype.A="subtitles",u.Tb=u.X.extend(),u.Tb.prototype.A="chapters",u.Zb=u.c.extend({i:function(a,b,c){if(u.c.call(this,a,b,c),a.g.tracks&&0c;c++)a=b[c],a.K()==this.ca.K()&&2==a.mode()&&(e=l);this.selected(e)},u.S=u.R.extend({i:function(a,b){u.R.call(this,a,b),1>=this.J.length&&this.C()}}),u.S.prototype.sa=function(){var a,b=[];b.push(new u.ab(this.b,{kind:this.A}));for(var c=0;cd;d++)if(a=c[d],a.K()==this.A&&a.tb()){if(2>a.readyState())return this.Fd=a,void a.d("loaded",u.bind(this,this.Ja));b=a;break}if(c=this.va=new u.la(this.b),c.a.appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.A),wd:-1})),b){a=b.fa;for(var g,d=0,e=a.length;e>d;d++)g=a[d],g=new u.Wa(this.b,{track:b,cue:g}),f.push(g),c.Z(g)}return 0e;e++){if(!(c=d[e])||!c.getAttribute){u.jb();break}c.player===b&&(a=c.getAttribute("data-setup"),a!==j&&(a=u.JSON.parse(a||"{}"),v(c,a)))}else u.Ac||u.jb()},u.jb=function(){setTimeout(u.cc,1)},"complete"===document.readyState?u.Ac=f:u.U(window,"load",function(){u.Ac=f}),u.jb(),u.ld=function(a,b){u.w.prototype[a]=b};var ha=this;ha.Bd=f,$("videojs",u),$("_V_",u),$("videojs.options",u.options),$("videojs.players",u.wa),$("videojs.cache",u.qa),$("videojs.Component",u.c),u.c.prototype.player=u.c.prototype.L,u.c.prototype.dispose=u.c.prototype.D,u.c.prototype.createEl=u.c.prototype.e,u.c.prototype.el=u.c.prototype.v,u.c.prototype.addChild=u.c.prototype.Z,u.c.prototype.children=u.c.prototype.children,u.c.prototype.on=u.c.prototype.d,u.c.prototype.off=u.c.prototype.n,u.c.prototype.one=u.c.prototype.U,u.c.prototype.trigger=u.c.prototype.j,u.c.prototype.triggerReady=u.c.prototype.Ta,u.c.prototype.show=u.c.prototype.show,u.c.prototype.hide=u.c.prototype.C,u.c.prototype.width=u.c.prototype.width,u.c.prototype.height=u.c.prototype.height,u.c.prototype.dimensions=u.c.prototype.Tc,u.c.prototype.ready=u.c.prototype.M,u.c.prototype.addClass=u.c.prototype.m,u.c.prototype.removeClass=u.c.prototype.t,$("videojs.Player",u.w),u.w.prototype.dispose=u.w.prototype.D,u.w.prototype.requestFullScreen=u.w.prototype.xa,u.w.prototype.cancelFullScreen=u.w.prototype.nb,u.w.prototype.bufferedPercent=u.w.prototype.Ia,u.w.prototype.usingNativeControls=u.w.prototype.Pb,$("videojs.MediaLoader",u.Kc),$("videojs.TextTrackDisplay",u.Zb),$("videojs.ControlBar",u.Ea),$("videojs.Button",u.q),$("videojs.PlayToggle",u.Wb),$("videojs.FullscreenToggle",u.Fa),$("videojs.BigPlayButton",u.Va),$("videojs.LoadingSpinner",u.Ub),$("videojs.CurrentTimeDisplay",u.Xa),$("videojs.DurationDisplay",u.Ya),$("videojs.TimeDivider",u.$b),$("videojs.RemainingTimeDisplay",u.eb),$("videojs.Slider",u.O),$("videojs.ProgressControl",u.cb),$("videojs.SeekBar",u.Xb),$("videojs.LoadProgressBar",u.$a),$("videojs.PlayProgressBar",u.Vb),$("videojs.SeekHandle",u.fb),$("videojs.VolumeControl",u.hb),$("videojs.VolumeBar",u.gb),$("videojs.VolumeLevel",u.ac),$("videojs.VolumeMenuButton",u.na),$("videojs.VolumeHandle",u.ib),$("videojs.MuteToggle",u.da),$("videojs.PosterImage",u.bb),$("videojs.Menu",u.la),$("videojs.MenuItem",u.N),$("videojs.MenuButton",u.R),u.R.prototype.createItems=u.R.prototype.sa,u.S.prototype.createItems=u.S.prototype.sa,u.Da.prototype.createItems=u.Da.prototype.sa,$("videojs.SubtitlesButton",u.Ga),$("videojs.CaptionsButton",u.Ca),$("videojs.ChaptersButton",u.Da),$("videojs.MediaTechController",u.r),u.r.prototype.features=u.r.prototype.l,u.r.prototype.l.volumeControl=u.r.prototype.l.zc,u.r.prototype.l.fullscreenResize=u.r.prototype.l.Gd,u.r.prototype.l.progressEvents=u.r.prototype.l.Kd,u.r.prototype.l.timeupdateEvents=u.r.prototype.l.Pd,$("videojs.Html5",u.o),u.o.Events=u.o.Za,u.o.isSupported=u.o.isSupported,u.o.canPlaySource=u.o.lb,u.o.prototype.setCurrentTime=u.o.prototype.pd,u.o.prototype.setVolume=u.o.prototype.ud,u.o.prototype.setMuted=u.o.prototype.sd,u.o.prototype.setPreload=u.o.prototype.td,u.o.prototype.setAutoplay=u.o.prototype.od,u.o.prototype.setLoop=u.o.prototype.rd,$("videojs.Flash",u.f),u.f.isSupported=u.f.isSupported,u.f.canPlaySource=u.f.lb,u.f.onReady=u.f.onReady,$("videojs.TextTrack",u.X),u.X.prototype.label=u.X.prototype.label,$("videojs.CaptionsTrack",u.Sb),$("videojs.SubtitlesTrack",u.Yb),$("videojs.ChaptersTrack",u.Tb),$("videojs.autoSetup",u.cc),$("videojs.plugin",u.ld),$("videojs.createTimeRange",u.sb)}();var VjsPluginComponents;!function(a){function b(a){return function(b){return function(d){var e=c(a,b);return"undefined"==typeof e&&(e=d(),e.serviceName=b,a.addChild(e)),e}}}function c(a,b){var c=a.children();return jQuery.grep(c,function(a){return a.serviceName===b})[0]}a.ApplySingleService=b,a.GetService=c}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a){this._player=a,this._component=new _V_.Component(a.toOriginal(),{el:this.createEl()})}return a.prototype.dispose=function(){this._component.dispose()},a.prototype.createEl=function(a,b){return this.elCreator(a,b)},a.prototype.elCreator=function(a,b){var c=document.createElement(a||"div");for(var d in b)b.hasOwnProperty(d)&&(-1!==d.indexOf("aria-")||"role"==d?c.setAttribute(d,b[d]):c[d]=b[d]);return c},a.prototype.el=function(){return this._component.el()},a.prototype.addChild=function(a,b){void 0===b?this._component.addChild(a):this._component.addChild(a,b)},a.prototype.children=function(){return this._component.children()},a.prototype.on=function(a,b){this._component.on(a,b)},a.prototype.off=function(a,b){this._component.off(a,b)},a.prototype.one=function(a,b){this._component.one(a,b)},a.prototype.trigger=function(a,b){this._component.trigger(a,b)},a.prototype.show=function(){this._component.show()},a.prototype.hide=function(){this._component.hide()},a.prototype.width=function(){return this._component.width()},a.prototype.height=function(){return this._component.height()},a.prototype.dimensions=function(a,b){this._component.dimensions(a,b)},a.prototype.addClass=function(a){jQuery(this.el()).addClass(a)},a.prototype.removeClass=function(a){jQuery(this.el()).removeClass(a)},a.prototype.unlockShowing=function(){this._component.unlockShowing&&this._component.unlockShowing()},a.prototype.lockShowing=function(){this._component.lockShowing()},a}();a.Component=b}(VjsPluginComponents||(VjsPluginComponents={}));var __extends=this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);c.prototype=b.prototype,a.prototype=new c},VjsPluginComponents;!function(a){var b=function(a){function b(b){var c=this;a.call(this,b),this.on("click",function(){c.onClick()}),this.on("focus",function(){c.onFocus()}),this.on("blur",function(){c.onBlur()}),this._component=new _V_.Component(b.toOriginal(),{el:this.createEl()})}return __extends(b,a),b.prototype.createEl=function(b,c){return a.prototype.createEl.call(this,b,c)},b.prototype.onClick=function(){},b.prototype.onFocus=function(){},b.prototype.onBlur=function(){},b}(a.Component);a.Button=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a,b,c){var d=this;this._player=a,this._previouslyWatchedSpan={start:0,end:0},this._handlersToTrigger=b,this._timeBasedEventsToTrigger=c,this._timeBasedEventsToTrigger.on("create",function(a){d.updateTimeBasedEventState(d._previouslyWatchedSpan.start,a.entity)}),this._player.on("videoWatched",function(a){d.triggerTimeBasedEvents(a)})}return a.prototype.triggerTimeBasedEvents=function(a){var b=this;a.start!=this._previouslyWatchedSpan.end&&(this._handlersToTrigger.reset(function(b){return a.start>b.time?!1:a.start==b.time&&"approach"==b.boundaryType?!1:!0}),this.updateTimeBasedEventStates(a.start));for(var c=this.CheckIfEventTriggered(a.start)(a.end),d=function(){return b._handlersToTrigger.getCurrent()};!this._handlersToTrigger.isFinished()&&c(d().time)(d().boundaryType);){this.triggerHandler(d().handler,d().time,a.end);var e=d();e++,this._handlersToTrigger.update(e),this._handlersToTrigger.moveNext()}this._previouslyWatchedSpan={start:a.start,end:a.end}},a.prototype.CheckIfEventTriggered=function(a){return function(b){return function(c){return function(d){switch(d){case"point":return c>=a&&b>=c?!0:!1;case"approach":return c>a&&b>=c?!0:!1;case"depart":return c>=a&&b>c?!0:!1;default:throw Error("Invalid boundary type entered: "+d+"; Valid types are: 'point', 'approach' and 'depart'")}}}}},a.prototype.triggerHandler=function(a,b,c){a({eventTime:b,callTime:c})},a.prototype.updateTimeBasedEventStates=function(a){for(var b=this._timeBasedEventsToTrigger.toList(),c=0;c=b.startEvent.time&&a<=b.endEvent.time||this.triggerHandler(b.endEvent.handler,b.startEvent.time,a):a>=b.startEvent.time&&a<=b.endEvent.time&&this.triggerHandler(b.startEvent.handler,b.startEvent.time,a)},a.prototype.isPointStillToBePlayed=function(a,b){return b>a.time?!1:b==a.time&&"approach"==a.boundaryType?!1:!0},a.name="timeBasedEventManager",a}();a.TimeBasedEventManager=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){function b(a){return function(b){return function(c){var d=jQuery("",{id:b+c.toString(),"class":b});return d.appendTo(jQuery(a)),d}}}a.ContainerBuilder=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(){}return a.prototype.getCurrentTime=function(){return(new Date).getTime()},a}();a.DateService=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a){this.src=a.src,this.type=a.type,this.resolution=this.getResolutionFromSource(a)}return a.prototype.getResolutionFromSource=function(a){return a["data-resolution"].match("[0-9]*")[0]},a}();a.VideoSource=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function b(a,b){this._sourcesByType={},this._player=a,this._setSource=b,this.id=this._player.id(),this.aspectRatio="16:9"}return b.prototype.getWithSrc=function(a){return jQuery.grep(this._player.options().sources,function(b){return b.src==a})[0]},b.prototype.getPlayingSource=function(){return void 0===this._selectedSource&&(this._selectedSource=new a.VideoSource(this.getWithSrc(this._player.currentSrc()))),this._selectedSource},b.prototype.setPlayingMatching=function(a){this.setPlayingSource(a(this.listSources()))},b.prototype.setPlayingSource=function(a){this._selectedSource=a,this._setSource(a.src)},b.prototype.listSourcesByType=function(a){if(void 0===this._sourcesByType[a]){var b=jQuery.grep(this.listSources(),function(b){return b.type==a});this._sourcesByType[a]=b,this._sourcesByType[a].sort(function(a,b){return parseFloat(b.resolution)-parseFloat(a.resolution)})}return this._sourcesByType[a]},b.prototype.listSources=function(){var b=this;return"undefined"==typeof this._sources&&(this._sources=[],jQuery.each(this._player.options().sources,function(c,d){b._sources.push(new a.VideoSource(d))})),this._sources},b}();a.DefaultVideo=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a){var b=function(){"undefined"!=typeof a.duration()&&0!==a.duration()&&a.trigger("durationset")};a.on("durationchange",b)}return a.name="durationSetEmitter",a}();a.DurationSetEmitter=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){function b(a,b){return a.time-b.time==0?c(a.boundaryType)-c(b.boundaryType):a.time-b.time}function c(a){switch(a.toLowerCase()){case"approach":return 0;case"point":return 1;case"depart":return 2;default:throw Error("Invalid boundary type entered: "+a)}}a.EventSortingFunction=b,a.getBoundaryOrdering=c}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){function b(a){a.sort(function(a,b){return a.id-b.id});for(var b=0;bb+1)return b+1;return b+1}a.GetNextFreeId=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a){this._objects=[],this._observable=a,this._idCount=1}return a.prototype.create=function(a){return a.id=this._idCount,this._idCount++,this._objects.push(a),this.trigger("create",{entity:a}),a},a.prototype.getEntity=function(a){var b=jQuery.grep(this._objects,function(b){return b.id==a});return 0!=b.length?b[0]:null},a.prototype.remove=function(a){var b=this._objects.length;return this._objects=jQuery.grep(this._objects,function(b){return b.id!=a}),this.trigger("remove",{id:a}),b!==this._objects.length},a.prototype.update=function(a){var b=this.getIndexForId(a.id),c=!1;return null!==b&&(this._objects[b]=a,c=!0),this.trigger("update",{entity:a}),c},a.prototype.on=function(a,b){this._observable.on(a,b)},a.prototype.trigger=function(a,b){this._observable.trigger(a,b)},a.prototype.toList=function(){return this._objects},a.prototype.clear=function(){return this._objects=[],this.trigger("clear",{}),!0},a.prototype.getIndexForId=function(a){for(var b=0;b.5&&this.resetWatchTime();var a=this.getFixedCurrentTime();this.trigger("videoWatched",{start:this._watchStartTime,end:a}),this._watchStartTime=a},b.prototype.resetWatchTime=function(){this._watchStartTime=this.getFixedCurrentTime()},b.prototype.getFixedCurrentTime=function(){return"undefined"==typeof this._player.duration()||this._player.currentTime()f;f++)d[f](c)}}a.TriggerEventHooks=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function b(a,b,c,d){this._eventRepository=d,this._player=b,this._layerRepository=c,this._baseRepository=a}return b.prototype.createFromSpecification=function(b){var c=this._layerRepository.createFromSpecification(b),d={id:0,name:b.name,layer:c},d=this.create(d);a.TriggerEventHooks(b.events,"onCreate",{player:this._player,overlay:d,overlays:this});for(var e=this.registerOverlayDisplay(d,b.events),f=0;fc&&(c=0),0>d&&(d=0),{x:c,y:d}},b}();a.Player=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a){this._baseRepository=a}return a.prototype.create=function(a){return a.boundaryType=a.boundaryType||"point",a.callCount=0,this._baseRepository.create(a)},a.prototype.on=function(a,b){this._baseRepository.on(a,b)},a.prototype.trigger=function(a,b){this._baseRepository.trigger(a,b)},a.prototype.toList=function(){return this._baseRepository.toList()},a.prototype.getEntity=function(a){return this._baseRepository.getEntity(a)},a.prototype.remove=function(a){return this._baseRepository.remove(a)},a.prototype.update=function(a){return this._baseRepository.update(a)},a.prototype.clear=function(){return this._baseRepository.clear()},a}();a.SinglePointEventRepository=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a,b){this._baseRepository=a,this._singlePointEventRepository=b}return a.prototype.create=function(a){return"undefined"==typeof a.isOn&&(a.isOn=!1),a.startEvent.boundaryType=a.startEvent.boundaryType||"point",a.endEvent.boundaryType=a.endEvent.boundaryType||"depart",a.startEvent=this.addAdditionalFunctionalityToEvent(a.startEvent,function(){a.isOn=!0}),a.endEvent=this.addAdditionalFunctionalityToEvent(a.endEvent,function(){a.isOn=!1}),a.startEvent=this._singlePointEventRepository.create(a.startEvent),a.endEvent=this._singlePointEventRepository.create(a.endEvent),this._baseRepository.create(a)},a.prototype.on=function(a,b){this._baseRepository.on(a,b)},a.prototype.trigger=function(a,b){this._baseRepository.trigger(a,b)},a.prototype.toList=function(){return this._baseRepository.toList()},a.prototype.getEntity=function(a){return this._baseRepository.getEntity(a)},a.prototype.remove=function(a){var b=this.getEntity(a);return null!==b&&(this._singlePointEventRepository.remove(b.endEvent.id),this._singlePointEventRepository.remove(b.startEvent.id)),this._baseRepository.remove(a)},a.prototype.update=function(a){return this._baseRepository.update(a)},a.prototype.clear=function(){return this._baseRepository.clear()},a.prototype.addAdditionalFunctionalityToEvent=function(a,b){return{time:a.time,handler:function(c){b(c),a.handler(c)},maxCallCount:a.maxCallCount,boundaryType:a.boundaryType,callCount:a.callCount,id:a.id}},a}();a.TimeBasedEventRepository=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a,b){this._previousElapsed=0,this._elapsed=0,this._running=!1,this._delayService=a,this._dateService=b}return a.prototype.start=function(){var a=this;0==this._running&&(this._lastStart=this._dateService.getCurrentTime(),this._interval=this._delayService.setTimeout(function(){a.renewUpdateTime()},100),this._running=!0)},a.prototype.renewUpdateTime=function(){var a=this;this._interval=this._delayService.setTimeout(function(){a.renewUpdateTime()},100),this.updateTime()},a.prototype.updateTime=function(){var a=this._dateService.getCurrentTime()-this._lastStart;this._elapsed=a},a.prototype.stop=function(){1==this._running&&(this._previousElapsed+=this._elapsed,this._delayService.clearTimeout(this._interval),this._elapsed=0,this._running=!1)},a.prototype.reset=function(){this._previousElapsed=0,this._elapsed=0,this._lastStart=this._dateService.getCurrentTime()},a.prototype.getTime=function(){return this._previousElapsed+this._elapsed},a}();a.Timer=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(){this.delegates=[]}return a}();a.TriggerableEvent=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a,b,c){this._sourcesByType={},this._sources=a,this._setSource=b,this.aspectRatio=c||"16:9"}return a.prototype.getWithSrc=function(a){return jQuery.grep(this.listSources(),function(b){return b.src===a})[0]},a.prototype.getPlayingSource=function(){return void 0===this._selectedSource?null:this._selectedSource},a.prototype.setPlayingMatching=function(a){this.setPlayingSource(a(this.listSources()))},a.prototype.setPlayingSource=function(a){this._selectedSource=a,this._setSource(a.src)},a.prototype.listSourcesByType=function(a){if(void 0===this._sourcesByType[a]){var b=jQuery.grep(this.listSources(),function(b){return b.type==a});this._sourcesByType[a]=b,this._sourcesByType[a].sort(function(a,b){return parseFloat(b.resolution)-parseFloat(a.resolution)})}return this._sourcesByType[a]},a.prototype.listSources=function(){return this._sources},a}();a.Video=b}(VjsPluginComponents||(VjsPluginComponents={}));var VjsPluginComponents;!function(a){var b=function(){function a(a,b,c){var d=this;this._index=0,this._objects=[],this._repository=c,this._sortFunction=a,this._filterFunction=b,this.updateLocalArray(),this._repository.on("create",function(){d.updateLocalArray()}),this._repository.on("remove",function(){d.updateLocalArray()})}return a.prototype.updateLocalArray=function(){this._objects=jQuery.grep(this._repository.toList(),this._filterFunction).sort(this._sortFunction)},a.prototype.getCurrent=function(){return this._objects[this._index]},a.prototype.moveNext=function(){this._index++},a.prototype.hasNext=function(){return this._index=this._objects.length},a.prototype.reset=function(a){for(this._index=0;this.hasNext()&&!a(this._objects[this._index]);)this.moveNext()},a.prototype.add=function(a){return this._repository.create(a)},a.prototype.removeCurrent=function(){this._repository.remove(this._objects[this._index].id)},a.prototype.update=function(a){this._repository.update(a)},a.prototype.remove=function(a){return this._repository.remove(a)},a}();a.WalkableList=b}(VjsPluginComponents||(VjsPluginComponents={}));var __extends=this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);c.prototype=b.prototype,a.prototype=new c},GoogleAnalytics;!function(a){var b=function(){function a(){return Array.apply(this,arguments),[]}return a.prototype.pop=function(){return""},a.prototype.push=function(a){return 0},a}();a.XArray=b;var c=function(a){function b(){a.apply(this,arguments)}return __extends(b,a),b.prototype.push=function(b){return window._gaq&&_gaq.push(b),a.prototype.push.call(this,b)},b}(b);a.AnalyticsWrapper=c}(GoogleAnalytics||(GoogleAnalytics={}));var GoogleAnalytics;!function(a){var b=function(){function a(a,b){this._timer=b,a.on("canplay",this._timer.stop),a.on("canplaythrough",this._timer.stop),a.on("playing",this._timer.stop),a.on("waiting",this._timer.start)}return a.name="loadingTimeObserver",a}();a.LoadingTimeObserver=b}(GoogleAnalytics||(GoogleAnalytics={}));var GoogleAnalytics;!function(a){var b=function(){function a(a,b,c,d){this._seeked=!1,this._seeking=!1;try{this._eventHasFired={Play:!1},this._category="Videos",this._watchTriggerIndex=0,this._title=location.pathname.substring(1),this._player=a,this._analytics=b,this._triggeredPoints=[],this._loadingTimer=c,this._singlePointEventRepository=d,this.setupEvents()}catch(e){this._player.trigger("error",e)}}return a.prototype.setupEvents=function(){var a=this;this._player.on("action",function(b){a.reportSingleEvent(b.args.name)}),this._player.on("play",function(){a.reportSingleEvent("Play")}),this._player.on("pause",function(){a.reportEvent("Pause")}),this._player.on("error",function(){a.reportEvent("Error")}),this._player.on("share",function(b){a.reportEvent("Share_"+b.args.share)}),this._player.on("changeresolution",function(){a.reportQualityChangeEvent()}),this._player.on("seeking",function(){a._seeking=!0}),this._player.on("playing",function(){a._seeking=!1}),this._player.on("canplay",function(){a._seeking=!1}),this._player.on("canplaythrough",function(){a._seeking=!1}),"undefined"!=typeof this._player.duration()&&this.resetTimingEvents(),this._player.on("durationset",function(){a.resetTimingEvents()})},a.prototype.resetTimingEvents=function(){var a=this;this._singlePointEventRepository.clear();for(var b=[.5,5,10,15,30,45,60,90,120,150,180,210,240,270,300,330,360,390,420,450,480,510,540,570,600,630,660,690,720,750,780,810,840,870,900,930,960,990,1020,1050,1080,1110,1140,1170,1200],c=function(b){return function(){a.reportTimeWatchedEvent(b)}};b.length>0&&b[0]a.callCount},d);return new VjsPluginComponents.TimeBasedEventManager(new VjsPluginComponents.PlayObserver(b._player),a,e)}),new VjsPluginComponents.ObservableSubRepository(d,new VjsPluginComponents.Observable)),g=c("LoadingTimeObserver")(function(){return new a.LoadingTimeObserver(b._player,new VjsPluginComponents.Timer(window,new VjsPluginComponents.DateService))});c("PlayerAnalyticsObserver")(function(){return new a.PlayerAnalyticsObserver(b._player,new a.AnalyticsWrapper,g,f)})},b}();a.Plugin=b}(GoogleAnalytics||(GoogleAnalytics={})),_V_.plugin("googleAnalyticsPlugin",function(a){var b=new GoogleAnalytics.Plugin(this);b.enable()});var Overlay;!function(a){var b=function(){function a(a){this._player=new VjsPluginComponents.Player(a)}return a.prototype.enable=function(a,b){var c=this;this._player.getVideo().overlays=a;var d=VjsPluginComponents.ApplySingleService(this._player),e=(d("DurationSetEmitter")(function(){return new VjsPluginComponents.DurationSetEmitter(c._player)}),d("SinglePointEventRepository")(function(){return new VjsPluginComponents.SinglePointEventRepository(new VjsPluginComponents.ObservableRepository(new VjsPluginComponents.Observable))})),f=d("TimeBasedEventRepository")(function(){return new VjsPluginComponents.TimeBasedEventRepository(new VjsPluginComponents.ObservableRepository(new VjsPluginComponents.Observable),e)}),g=d("LayerRepository")(function(){return new VjsPluginComponents.LayerRepository(new VjsPluginComponents.ObservableRepository(new VjsPluginComponents.Observable),dust,VjsPluginComponents.ContainerBuilder(c._player.el())("vjsOverlay"))}),h=d("OverlayRepository")(function(){return new VjsPluginComponents.OverlayRepository(new VjsPluginComponents.ObservableRepository(new VjsPluginComponents.Observable),c._player,g,f)}),i=(d("TimeBasedEventManager")(function(){var a=new VjsPluginComponents.WalkableList(VjsPluginComponents.EventSortingFunction,function(a){return"undefined"==typeof a.maxCallCount||a.maxCallCount>a.callCount},e);return new VjsPluginComponents.TimeBasedEventManager(new VjsPluginComponents.PlayObserver(c._player),a,f)}),new VjsPluginComponents.OverlayRepository(new VjsPluginComponents.ObservableSubRepository(h,new VjsPluginComponents.Observable),this._player,g,f));if("undefined"!=typeof b)for(var j=0;j1&&(this.buttonText=c.getVideo().getPlayingSource().resolution+"p",jQuery(this.el()).html(''+this.buttonText+"
"),this.menu=new a.ResolutionMenu(this._player),jQuery.each(this.menu.items,function(a,b){jQuery(b.el()).click(function(){var a=b;d.buttonText=a.label;d.el(),jQuery(d.el()).children(".vjs-quality-text");jQuery(d.el()).find(".vjs-quality-text").html(d.buttonText)})}),this.addChild(this.menu))}return __extends(c,b),c.prototype.createEl=function(){var a={className:this.buildCSSClass(),innerHTML:''+this.buttonText+"
",role:"button","aria-live":"polite",tabIndex:0},c="div";return b.prototype.createEl.call(this,c,a)},c.prototype.buildCSSClass=function(){return"vjs-quality-button vjs-menu-button vjs-control"},c.prototype.onFocus=function(){var a=this;this.menu.lockShowing(),this.menu.el().style.display="block";var b=this.menu.items;b[b.length-1].one("blur",function(){a.menu.unlockShowing()})},c.prototype.onBlur=function(){},c.prototype.onClick=function(){var a=this;this.one("mouseout",function(){a.menu.unlockShowing(),a.el().blur()})},c}(VjsPluginComponents.Component);a.ResolutionSelectionButton=b}(ResolutionSwitching||(ResolutionSwitching={}));var ResolutionSwitching;!function(a){var b=function(){function b(a){this._player=a}return b.prototype.enable=function(){var b=(this._player.children(),new a.ResolutionSelectionButton(new VjsPluginComponents.Player(this._player)));if(b.menu){b.menu.el();this._player.controlBar.addChild(b)}},b}();a.Plugin=b}(ResolutionSwitching||(ResolutionSwitching={})),_V_.plugin("resolutionSwitchingPlugin",function(a){var b=new ResolutionSwitching.Plugin(this);b.enable()});var Sharing;!function(a){a.defaultDefinitions=[{label:"facebook",link:"http://www.facebook.com/sharer/sharer.php?u="+window.location.href,imageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/facebook16x16.png",largeImageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/facebook24x24.png",popupHeight:400,popupWidth:450,icon:""},{label:"twitter",link:"https://twitter.com/intent/tweet?original_referer="+window.location.href+"&url="+window.location.href,imageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/twitter16x16.png",largeImageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/twitter24x24.png",popupHeight:500,popupWidth:600,icon:""},{label:"linkedIn",link:"https://www.linkedin.com/cws/share?url="+window.location.href,imageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/linkedin16x16.png",largeImageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/linkedin24x24.png",popupHeight:400,popupWidth:450,icon:""},{label:"google+",link:"https://plus.google.com/share?url="+window.location.href,imageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/googleplus16x16.png",largeImageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/googleplus24x24.png",popupHeight:400,popupWidth:450,icon:""},{label:"tumblr",link:"http://tumblr.com/share",imageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/tumblr16x16.png",largeImageSource:"http://atlantis-js.s3.amazonaws.com/release/icons/tumblr24x24.png",popupHeight:500,popupWidth:500,icon:""}]}(Sharing||(Sharing={}));var __extends=this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);c.prototype=b.prototype,a.prototype=new c},Sharing;!function(a){var b=function(a){function b(b,c){var d=this;this._source=c,a.call(this,b),jQuery(document).ready(function(){"24px"===jQuery(d.el()).children(".vjs-share-icon").css("font-size")&&jQuery(d.el()).children(".vjs-share-icon").attr("src",d._source.largeImageSource)})}return __extends(b,a),b.prototype.onClick=function(){window.open(this._source.link,"","resizable=no,status=no,location=no,toolbar=no,menubar=no,fullscreen=no,scrollbars=no,dependent=no,width="+this._source.popupWidth+",height="+this._source.popupHeight),this._player.trigger("share",{share:this._source.label})},b.prototype.createEl=function(b,c){return a.prototype.createEl.call(this,"li",jQuery.extend({className:"vjs-menu-item",innerHTML:""+this._source.label+"
"},c))},b}(VjsPluginComponents.MenuItem);a.SharingMenuItem=b}(Sharing||(Sharing={}));var Sharing;!function(a){var b=function(b){function c(a,c){b.call(this,a),this.kind="share",this.className="vjs-share-button",this.buttonText="";var d=jQuery(document.createElement("li")).addClass("vjs-menu-title").html(this.kind);jQuery(this.el()).append(d);var e=jQuery(document.createElement("div")).addClass("vjs-menu-arrow"),f=jQuery(document.createElement("li")).append(e).addClass("vjs-menu-arrow");jQuery(this.el()).append(d),this.createItems(c),jQuery(this.el()).append(f)}return __extends(c,b),c.prototype.createItems=function(b){var c=this;jQuery.each(b,function(b,d){c.addItem(new a.SharingMenuItem(c._player,d))})},c}(VjsPluginComponents.Menu);a.SharingMenu=b}(Sharing||(Sharing={}));var Sharing;!function(a){var b=function(b){function c(c,d){this.kind="sharing",this.className="vjs-sharing-button",this.buttonText="",b.call(this,c),this._player=c,this.menu=new a.SharingMenu(this._player,d),this.addChild(this.menu)}return __extends(c,b),c.prototype.createEl=function(){var a={className:this.buildCSSClass(),innerHTML:''+this.buttonText+"
",role:"button","aria-live":"polite",tabIndex:0},c="div";return b.prototype.createEl.call(this,c,a)},c.prototype.buildCSSClass=function(){return"vjs-sharing-button vjs-menu-button vjs-control"},c.prototype.onFocus=function(){var a=this;this.menu.lockShowing(),this.menu.el().style.display="block";var b=this.menu.items;b[b.length-1].one("blur",function(){a.menu.unlockShowing()})},c.prototype.onBlur=function(){},c.prototype.onClick=function(){var a=this;this.one("mouseout",function(){a.menu.unlockShowing(),a.el().blur()})},c}(VjsPluginComponents.Component);a.SharingButton=b}(Sharing||(Sharing={}));var Sharing;!function(a){var b=function(){function b(a){this._player=a}return b.prototype.enable=function(){var b=new a.SharingButton(new VjsPluginComponents.Player(this._player),a.defaultDefinitions);this._player.controlBar.addChild(b)},b}();a.Plugin=b}(Sharing||(Sharing={})),_V_.plugin("sharingPlugin",function(a){var b=new Sharing.Plugin(this);b.enable()}),function(a){a.path={};var b={rotate:function(a,b){var c=b*Math.PI/180,d=Math.cos(c),e=Math.sin(c);return[d*a[0]-e*a[1],e*a[0]+d*a[1]]},scale:function(a,b){return[b*a[0],b*a[1]]},add:function(a,b){return[a[0]+b[0],a[1]+b[1]]},minus:function(a,b){return[a[0]-b[0],a[1]-b[1]]}};a.path.bezier=function(c,d){c.start=a.extend({angle:0,length:.3333},c.start),c.end=a.extend({angle:0,length:.3333},c.end),this.p1=[c.start.x,c.start.y],this.p4=[c.end.x,c.end.y];var e=b.minus(this.p4,this.p1),f=b.scale(e,c.start.length),g=b.scale(e,-1),h=b.scale(g,c.end.length);f=b.rotate(f,c.start.angle),this.p2=b.add(this.p1,f),h=b.rotate(h,c.end.angle),this.p3=b.add(this.p4,h),this.f1=function(a){return a*a*a},this.f2=function(a){return 3*a*a*(1-a)},this.f3=function(a){return 3*a*(1-a)*(1-a)},this.f4=function(a){return(1-a)*(1-a)*(1-a)},this.css=function(a){var b=this.f1(a),c=this.f2(a),e=this.f3(a),f=this.f4(a),g={};return d&&(g.prevX=this.x,g.prevY=this.y),g.x=this.x=this.p1[0]*b+this.p2[0]*c+this.p3[0]*e+this.p4[0]*f+.5|0,g.y=this.y=this.p1[1]*b+this.p2[1]*c+this.p3[1]*e+this.p4[1]*f+.5|0,g.left=g.x+"px",g.top=g.y+"px",g}},a.path.arc=function(a,b){for(var c in a)this[c]=a[c];for(this.dir=this.dir||1;this.start>this.end&&this.dir>0;)this.start-=360;for(;this.startc?b:c,f=b,g=0;ge)return a[g].path(d);return a[g-1].path(1)}}function c(a,c){var d=[],e=b(a.position,a.start),f=function(a,b,c){var d=parseFloat(jQuery(c.el()).css("width").slice(0,-2)),e=parseFloat(jQuery(c.el()).css("height").slice(0,-2)),f=d-2*b.x,g=e-2*b.y,h=a.x*f,i=a.y*g;return{x:h,y:i}},g=function(a){var b=parseFloat(jQuery(a.el()).css("width").slice(0,-2)),c=parseFloat(jQuery(a.el()).css("height").slice(0,-2)),d=a.getVideo().aspectRatio.split(":"),e=parseFloat(d[0])/parseFloat(d[1]),f=(b-c*e)/2,g=(c-b/e)/2;return 0>f&&(f=0),0>g&&(g=0),{x:f,y:g}},h=function(a,b){var c=g(b),d=f(a,c,b),e=d.x+c.x,h=d.y+c.y;return{x:e,y:h}};"splash"===a.linkTarget&&d.push(function(a){a.overlay.layer.container.children().click(function(){a.player.pause();var b=a.overlays.getEntityByName("hotspotSplashPage"+c);b.layer.container.addClass("vjsVisible")})});var i=function(a,b){var c=e(b),d=h(c,a.player),f=jQuery(a.overlay.layer.container.children()[0]);f.css("left",d.x+"px"),f.css("top",d.y+"px")},j=function(b){var c=f({x:a.width,y:a.height},g(b.player),b.player),d=jQuery(b.overlay.layer.container.children()[0]),e=parseInt(d.css("width").slice(0,-2)),h=parseInt(d.css("height").slice(0,-2)),i=c.x/e,j=c.y/h;d.css("-ms-transform","scale("+i+","+j+")"),d.css("-webkit-transform","scale("+i+","+j+")"),d.css("transform","scale("+i+","+j+")"),d.css("-webkit-transform-origin","top left"),d.find(".ajs-parent-height").css("height",c.y+"px"),d.find(".ajs-half-negative-parent-margin-bottom").css("margin-bottom",-c.y/2+"px")};d.push(function(b){jQuery("input.css3button").click(function(){b.player.trigger("action",{name:"hotspotclick"})}),i(b,a.start),j(b),b.player.on("fullscreenchange",function(){setTimeout(function(){i(b,b.player.currentTime()),j(b)},100)})});for(var k="undefined"!=typeof a.template?a.template:"ajsHotspotDefault",l=a.start,m=0;m