/* VimeoPlayer - v2.6.10 - 2015-06-03 */
(function(r,l,Y){var Da,Ba,ga,Ga,ja,ma,qa,Ha,xa,ka,Ia,Qa,Va,Wa,La,Ma,Ja,na,ta,ha,ya,Na;(function(){(function(){for(var c=["webkit","moz"],b=0;b<c.length&&!r.requestAnimationFrame;++b){var a=c[b];r.requestAnimationFrame=r[a+"RequestAnimationFrame"];r.cancelAnimationFrame=r[a+"CancelAnimationFrame"]||r[a+"CancelRequestAnimationFrame"]}!/iP(ad|hone|od).*OS 6/.test(r.navigator.userAgent)&&r.requestAnimationFrame&&r.cancelAnimationFrame||(r.requestAnimationFrame=function(a){return setTimeout(a,0)},r.cancelAnimationFrame=
clearTimeout)})();Array.prototype.indexOf||(Array.prototype.indexOf=function(c){for(var b=0,a=this.length;b<a;b++)if(b in this&&this[b]===c)return b;return-1})})();(function(c,b,a){function d(){var a=Array.prototype.slice.apply(arguments),b=a.shift();C[b].forEach(function(b){"function"===typeof b&&b.apply(b,a)})}function g(a){return function(b,d){-1!==k.indexOf(b)&&a.call(this,b,d)}}function u(a){var b=null;"VIDEO"===a.tagName?b=a:(a=a.getElementsByTagName("video"),a[0]&&(b=a[0]));return b}function h(a){var b=
u(a);if(b&&b.webkitEnterFullscreen){try{b.readyState<b.HAVE_METADATA?(b.addEventListener("loadedmetadata",function Z(){b.removeEventListener("loadedmetadata",Z,!1);b.webkitEnterFullscreen();q=!!b.getAttribute("controls")},!1),b.load()):(b.webkitEnterFullscreen(),q=!!b.getAttribute("controls")),A=b}catch(d){return s("not_supported",a)}return!0}return s(t.request===Y?"not_supported":"not_enabled",a)}function z(){l.element||(m(),n())}function n(){a&&"webkitfullscreenchange"===t.change&&c.removeEventListener("resize",
z,!1)}var r=/i(Pad|Phone|Pod)/.test(navigator.userAgent)&&7<=parseInt(navigator.userAgent.replace(/^.*OS (\d+)_(\d+).*$/,"$1.$2"),10),t=function(){var a=b.createElement("video"),d={request:["requestFullscreen","webkitRequestFullscreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"],exit:["exitFullscreen","webkitCancelFullScreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],enabled:["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],
element:["fullscreenElement","webkitFullscreenElement","webkitCurrentFullScreenElement","mozFullScreenElement","msFullscreenElement"],change:["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],error:["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"]},c={},e;for(e in d)for(var k=0,g=d[e].length;k<g;k++)if(d[e][k]in a||d[e][k]in b||"on"+d[e][k].toLowerCase()in b){c[e]=d[e][k];break}return c}(),w={ENTER:"enter",EXIT:"exit",CHANGE:"change",
ERROR:"error"},k=[],C={};Object.keys(w).forEach(function(a){k.push(w[a]);C[w[a]]=[]});var A=null,q=null,F=function(){},x=[],G=!1;-1<navigator.userAgent.indexOf("Android")&&-1<navigator.userAgent.indexOf("Chrome")&&(G=parseInt(navigator.userAgent.replace(/^.*Chrome\/(\d+).*$/,"$1"),10)||!0);var L=function(a){var b=x[x.length-1];if(b&&(a!==b.element&&a!==A||!b.hasEntered)){"VIDEO"===a.tagName&&(A=a);if(1===x.length)l.onenter(l.element);b.enter.call(b.element,a||b.element);b.hasEntered=!0;d(w.ENTER,
l.element)}},m=function(){!A||q||r||(A.setAttribute("controls","controls"),A.removeAttribute("controls"));q=A=null;var a=x.pop();a&&(a.exit.call(a.element),d(w.EXIT,a.element),l.element||(x.forEach(function(a){a.exit.call(a.element);d(w.EXIT,a.element)}),x=[],l.onexit()))},s=function(a,b){if(0<x.length){var c=x.pop();b=b||c.element;c.error.call(b,a);l.onerror(b,a);d(w.ERROR,b,a)}},l={request:function(d,c,e,k){d=d||b.body;x.push({element:d,enter:c||F,exit:e||F,error:k||F});if(t.request===Y||a&&!1===
b[t.enabled]||!1!==G&&32>G)return h(d);if(a&&t.enabled===Y)t.enabled="webkitFullscreenEnabled",d[t.request](),setTimeout(function(){b[t.element]?b[t.enabled]=!0:(b[t.enabled]=!1,h(d))},250);else try{d[t.request](),setTimeout(function(){b[t.element]||s(a?"not_enabled":"not_allowed",d)},100)}catch(g){s("not_enabled",d)}},exit:function(){n();b[t.exit]()},toggle:function(a,b,d,c){l.element?l.exit():l.request(a,b,d,c)},videoEnabled:function(a){if(l.enabled)return!0;a=a||b.body;return(a=u(a))&&a.webkitSupportsFullscreen!==
Y?a.readyState<a.HAVE_METADATA?"maybe":a.webkitSupportsFullscreen:!1},on:g(function(a,b){C[a].push(b)}),off:g(function(a,b){var d=C[a].indexOf(b);-1<d&&C[a].splice(d,1)}),onenter:F,onexit:F,onchange:F,onerror:F};try{Object.defineProperties(l,{element:{enumerable:!0,get:function(){return A&&A.webkitDisplayingFullscreen?A:b[t.element]||null}},enabled:{enumerable:!0,get:function(){return"webkitCancelFullScreen"!==t.exit||a?!1!==G&&32>G?!1:b[t.enabled]||!1:!0}}})}catch(v){l.element=null,l.enabled=!1}t.change&&
b.addEventListener(t.change,function(b){l.onchange(l.element);d(w.CHANGE,l.element);l.element?(b=x[x.length-2])&&b.element===l.element?m():(L(l.element),a&&"webkitfullscreenchange"===t.change&&c.addEventListener("resize",z,!1)):m()},!1);b.addEventListener("webkitbeginfullscreen",function(a){var b=!0;if(0<x.length)for(var c=0,e=x.length;c<e;c++)if(u(x[c].element)===a.srcElement){b=!1;break}b&&x.push({element:a.srcElement,enter:F,exit:F,error:F});l.onchange(a.srcElement);d(w.CHANGE,l.srcElement);L(a.srcElement)},
!0);b.addEventListener("webkitendfullscreen",function(a){l.onchange(a.srcElement);d(w.CHANGE,a.srcElement);m(a.srcElement)},!0);t.error&&b.addEventListener(t.error,function(a){s("not_allowed")},!1);c.BigScreen=l})(r,l,self!==top);var P=function(){function c(){var b=arguments;if(1===b.length&&b[0]instanceof c)return b=b[0],this.red=b.red,this.green=b.green,this.blue=b.blue,this.alpha=b.alpha,this.hue=b.hue,this.saturation=b.saturation,this.lightness=b.lightness,this;if(1===b.length){if("string"===
typeof b[0]&&0<=b[0].indexOf("rgb")){b=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(,\s*([\d\.]+))?\)/.exec(b[0]);if(!b)throw Error("Invalid rgb value");this.rgba={red:parseInt(b[1],10),green:parseInt(b[2],10),blue:parseInt(b[3],10),alpha:parseFloat(b[5])||1};return this}var a=b[0]+"",a=a.replace("#","");if("string"!==typeof a||3!==a.length&&6!==a.length||isNaN(parseInt(a,16)))throw Error("Invalid hex value");this.hex=b[0];return this}if(3===b.length||4===b.length){for(a=0;3>a;a++)if(isNaN(parseInt(b[a],
10))||0>parseInt(b[a],10)||255<parseInt(b[a],10))throw Error("Invalid rgb value");if(b[3]&&0>parseFloat(b[3])||1<parseFloat(b[3]))throw Error("Invalid alpha value");this.rgba={red:b[0],green:b[1],blue:b[2],alpha:parseFloat(b[3])||1};return this}throw Error("Invalid color");}c.prototype={get complement(){var b=this.clone();b.rgb={red:255-this.red,green:255-this.green,blue:255-this.blue};return b},get hex(){return c.rgbToHex(this.red,this.green,this.blue)},set hex(b){this.rgba=c.hexToRgb(b);return this},
get hsl(){return"hsl("+this.hue+","+this.saturation+"%,"+Math.round(this.lightness)+"%)"},set hsl(b){this.hue=b.hue;this.saturation=b.saturation;this.lightness=b.lightness;b=c.hslToRgb(b.hue,b.saturation,b.lightness);this.red=b.red;this.green=b.green;this.blue=b.blue;this.alpha=b.alpha;return this},get luminance(){function b(a){return 0.03928>=a?a/12.92:Math.pow((a+0.055)/1.055,2.4)}var a=b(this.red/255),d=b(this.green/255),c=b(this.blue/255);return 0.2126*a+0.7152*d+0.0722*c},get rgb(){return"rgb("+
this.red+","+this.green+","+this.blue+")"},set rgb(b){this.rgba=b;return this},get rgba(){return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"},set rgba(b){this.red=b.red;this.green=b.green;this.blue=b.blue;this.alpha=b.alpha||1;b=c.rgbToHsl(b.red,b.green,b.blue);this.hue=b.hue;this.saturation=b.saturation;this.lightness=b.lightness;return this},get yiq(){return(299*this.red+587*this.green+114*this.blue)/1E3},clone:function(){return new c(this)},lighten:function(b,a,d){this.hsl=
{hue:this.hue,saturation:this.saturation,lightness:this.lightness+b};if(a&&d)for(b=d.contrast(this).ratio;b<a&&!(this.lighten(5),b=d.contrast(this).ratio,100<=this.lightness););return this},darken:function(b,a,d){this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness-b};if(a&&d)for(b=d.contrast(this).ratio;b<a&&!(this.darken(5),b=d.contrast(this).ratio,0>=this.lightness););return this},overlayOn:function(b){if(1<=this.alpha)return this;var a=this.clone();a.rgba={red:a.red*this.alpha+
b.red*b.alpha*(1-this.alpha),green:a.green*this.alpha+b.green*b.alpha*(1-this.alpha),blue:a.blue*this.alpha+b.blue*b.alpha*(1-this.alpha),alpha:a.alpha+b.alpha*(1-this.alpha)};return a},contrast:function(b){var a=this.alpha;if(1<=a){1>b.alpha&&(b=b.overlayOn(this));var d=this.luminance+0.05;b=b.luminance+0.05;var g=d/b;b>d&&(g=1/g);g=Math.round(10*g)/10;return{ratio:g,error:0,min:g,max:g}}var g=this.overlayOn(c.white).contrast(b).ratio,d=this.overlayOn(c.black).contrast(b).ratio,g=Math.max(g,d),u=
{red:Math.min(Math.max(0,(b.red-this.red*a)/(1-a)),255),green:Math.min(Math.max(0,(b.green-this.green*a)/(1-a)),255),blue:Math.min(Math.max(0,(b.blue-this.blue*a)/(1-a)),255)},a=this.clone();a.rgb=u;b=this.overlayOn(a).contrast(b).ratio;return{ratio:Math.round((b+g)/2*10)/10,error:Math.round((g-b)/2*10)/10,min:b,max:g,closest:a,farthest:d===g?c.white:c.black}},wcagAACompliant:function(b){return 4.5<=this.contrast(b).ratio},wcagAAACompliant:function(b){return 7<=this.contrast(b).ratio},yiqContrastColor:function(){return 120<=
this.yiq?new c(0,0,0):new c(255,255,255)}};c.hexToRgb=function(b){b+="";if(3===b.length||4===b.length){if(b=/^#?([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(b))b[1]+=b[1],b[2]+=b[2],b[3]+=b[3]}else b=/^#?([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(b);return b?{red:parseInt(b[1],16),green:parseInt(b[2],16),blue:parseInt(b[3],16),alpha:1}:null};c.rgbToHex=function(b,a,d){return"#"+(16777216+(Math.round(b)<<16)+(Math.round(a)<<8)+Math.round(d)).toString(16).slice(1)};c.rgbToHsl=function(b,
a,d){b/=255;a/=255;d/=255;var c=Math.max(b,a,d),e=Math.min(b,a,d),h=(c+e)/2,z=h,n=h;if(c===e)return{hue:0,saturation:0,lightness:100*n};var l=c-e,z=0.5<n?l/(2-c-e):l/(c+e);c===b?h=(a-d)/l+(a<d?6:0):c===a?h=(d-b)/l+2:c===d&&(h=(b-a)/l+4);return{hue:Math.round(h/6*360),saturation:Math.round(100*z),lightness:Math.round(100*n)}};c.hslToRgb=function(b,a,d){function c(a,b,d){0>d&&(d+=1);1<d&&(d-=1);return 1>6*d?a+6*(b-a)*d:1>2*d?b:2>3*d?a+6*(b-a)*(2/3-d):a}b/=360;a/=100;d/=100;if(0===a)return{red:Math.floor(255*
d),green:Math.floor(255*d),blue:Math.floor(255*d)};a=0.5>d?d*(1+a):d+a-a*d;d=2*d-a;return{red:Math.floor(255*c(d,a,b+1/3)),green:Math.floor(255*c(d,a,b)),blue:Math.floor(255*c(d,a,b-1/3))}};c.hslToHex=function(b,a,d){b=c.hslToRgb(b,a,d);return c.rgbToHex(b.red,b.green,b.blue)};c.white=new c("fff");c.black=new c("000");return c}(),Ea=function(){return{make:function(c){c=c||{};var b={};c.on=function(a,d){a=[].concat(a);for(var g=0,u=a.length;g<u;g++){var h=a[g];h&&(b[h]||(b[h]=[]),b[h].push(d))}return c};
c.once=function(a,b){function g(){b.apply(c.off(a,g),arguments)}g.handler=b;return c.on(a,g)};c.off=function(a,d){a=[].concat(a);for(var g=0,u=a.length;g<u;g++){var h=a[g];if(h&&h in b){var z=b[h].indexOf(d);if(-1===z){for(var n=0,l=b[h].length;n<l;n++)if(b[h][n].handler===d){z=g;break}if(-1===z)break}b[h].splice(z,1)}}return c};c.fire=function(a){if(!a)return c;if(a in b)for(var d=b[a].slice(0),g=0,u=d.length;g<u;g++)d[g].apply(c,d.slice.call(arguments,1));return c};return c}}}();(function(){function c(a){return z?
z:a.matches?z=a.matches:a.webkitMatchesSelector?z=a.webkitMatchesSelector:a.mozMatchesSelector?z=a.mozMatchesSelector:a.msMatchesSelector?z=a.msMatchesSelector:a.oMatchesSelector?z=a.oMatchesSelector:z=h.matchesSelector}function b(a,d,g){if("_root"==d)return g;if(a!==g){if(c(a).call(a,d))return a;if(a.parentNode)return n++,b(a.parentNode,d,g)}}function a(a,b,d,c){t[a.id]||(t[a.id]={});t[a.id][b]||(t[a.id][b]={});t[a.id][b][d]||(t[a.id][b][d]=[]);t[a.id][b][d].push(c)}function d(a,b,d,c){if(t[a.id])if(!b)for(var e in t[a.id])t[a.id].hasOwnProperty(e)&&
(t[a.id][e]={});else if(!c&&!d)t[a.id][b]={};else if(!c)delete t[a.id][b][d];else if(t[a.id][b][d])for(e=0;e<t[a.id][b][d].length;e++)if(t[a.id][b][d][e]===c){t[a.id][b][d].splice(e,1);break}}function g(a,d,c){if(t[a][c]){var e=d.target||d.srcElement,g,x,G={},u=x=0;n=0;for(g in t[a][c])t[a][c].hasOwnProperty(g)&&(x=b(e,g,w[a].element))&&h.matchesEvent(c,w[a].element,x,"_root"==g,d)&&(n++,t[a][c][g].match=x,G[n]=t[a][c][g]);d.stopPropagation=function(){d.cancelBubble=!0};for(x=0;x<=n;x++)if(G[x])for(u=
0;u<G[x].length;u++){if(!1===G[x][u].call(G[x].match,d)){h.cancel(d);return}if(d.cancelBubble)return}}}function u(b,c,e,q){function u(a){return function(b){g(x,b,a)}}if(this.element){b instanceof Array||(b=[b]);e||"function"!=typeof c||(e=c,c="_root");var x=this.id,G;for(G=0;G<b.length;G++)q?d(this,b[G],c,e):(t[x]&&t[x][b[G]]||h.addEvent(this,b[G],u(b[G])),a(this,b[G],c,e));return this}}function h(a,b){if(!(this instanceof h)){for(var d in w)if(w[d].element===a)return w[d];l++;w[l]=new h(a,l);return w[l]}this.element=
a;this.id=b}var z,n=0,l=0,t={},w={};h.prototype.on=function(a,b,d){return u.call(this,a,b,d)};h.prototype.off=function(a,b,d){return u.call(this,a,b,d,!0)};h.matchesSelector=function(){};h.cancel=function(a){a.preventDefault();a.stopPropagation()};h.addEvent=function(a,b,d){a.element.addEventListener(b,d,"blur"==b||"focus"==b)};h.matchesEvent=function(){return!0};r.Gator=h})();(function(c){var b=c.addEvent,a="onmspointerenter"in l,d="onmspointerleave"in l;c.addEvent=function(c,e,h){"mouseenter"===
e&&(e="mouseover");"mouseleave"===e&&(e="mouseout");"MSPointerEnter"!==e||a||(e="MSPointerOver");"MSPointerLeave"!==e||d||(e="MSPointerOut");b(c,e,h)};c.matchesEvent=function(b,c,e,z,n){return"mouseenter"===b||"mouseleave"===b||!a&&"MSPointerEnter"===b||!d&&"MSPointerLeave"===b?(b=n.relatedTarget?z&&c!==e?!1:e===n.relatedTarget?!1:e.contains(n.relatedTarget)?!1:!0:!0,b):!0}})(Gator);(function(c){var b=c.addEvent,a="undefined"===typeof r.PointerEvent&&"undefined"!==typeof r.MSPointerEvent,d={pointerdown:"MSPointerDown",
pointerup:"MSPointerUp",pointercancel:"MSPointerCancel",pointermove:"MSPointerMove",pointerenter:"MSPointerEnter",pointerleave:"MSPointerLeave",pointerover:"MSPointerOver",pointerout:"MSPointerOut"};c.addEvent=function(c,e,h){a&&d[e]&&(e=d[e]);b(c,e,h)}})(Gator);(function(c){var b=c.addEvent;c.addEvent=function(a,d,c){"transitionend"===d&&(b(a,"webkitTransitionEnd",c),b(a,"otransitionend",c));b(a,d,c)}})(Gator);var s=function(c,b){return{addCssRule:function(a,b,g){try{g=g||c.styleSheets[0],g.insertRule?
g.insertRule(a+"{"+b+"}",(g.cssRules||g.rules).length):g.addRule(a,b)}catch(u){}},attachClickHandler:function(a,d,g,u){var h=!1;u="function"===typeof d?g:u;g="function"===typeof d?d:g;d="function"===typeof d?null:d;var z=function(a){var d=!0;if(a.changedTouches){var n=c.elementFromPoint(a.changedTouches[0].pageX-b.pageXOffset,a.changedTouches[0].pageY-b.pageYOffset);null!==n&&this.contains(n)&&(d=g.call(this,a))}"function"===typeof u&&u.call(this,a);h=!0;return d},n=function(a){if(!h)return g.call(this,
a);h=!1};if(d)Gator(a).on("click",d,n).on("touchend",d,z);else Gator(a).on("click",n).on("touchend",z)},isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},limit:function(a,b,c){return a>c?c:b>a?b:a},openWindow:function(a,d,c,e,h){var z=(b.screenY||b.screenTop||0)+b.outerHeight/2-c/2,n=(b.screenX||b.screenLeft||0)+b.outerWidth/2-d/2;b.chrome&&-1!==b.navigator.userAgent.toLowerCase().indexOf("mac os x")&&(c+=27);b.safari&&(c+=47);return b.open(a,e,h+",width="+d+",height="+
c+",left="+n+",top="+z)},parseTime:function(a){var b=a.match(/t=([0-9hms:]+)/);null!==b&&(a=b[1]);var c=!1,e=0,h=0,z=0,n=0;(b=a.match(/^([0-9]+)$/))&&b.length&&(c=!0,n=b[1]);!1===c&&(b=a.match(/^(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?/),null!==b&&""!==b[0]&&(c=!0,h=b[2],z=b[4],n=b[6]));!1===c&&(b=a.match(/^([0-9:]+)/),null!==b&&(c=!0,a=a.split(":").reverse(),n=a[0],a[1]&&(z=a[1]),a[2]&&(h=a[2])));if(!c)return null;h&&(e+=3600*h);z&&(e+=60*z);n&&(e+=parseInt(n,10));return e},resetFocus:function(a){a=
(a||c).querySelectorAll("[tabindex]");for(var d=[],g=0,u,h,z=0,n=a.length;z<n;z++)u=a[z],h=b.getComputedStyle(u,""),0<u.tabIndex&&"none"!==h.display&&0<h.opacity&&"hidden"!==h.visibility&&(d[g++]=u);if(a=d.shift())a.focus(),a.blur()},round:function(a,b){a=parseFloat(a);if(isNaN(a))return 0;var c=Math.pow(10,b||3);return Math.round(a*c)/c},throttle:function(a,b){var c,e,h,z,n=0,l=function(){n=new Date;h=null;z=a.apply(c,e)};return function(){var t=new Date,w=b-(t-n);c=this;e=arguments;0>=w?(clearTimeout(h),
h=null,n=t,z=a.apply(c,e)):h||(h=setTimeout(l,w));return z}}}}(l,r),ra=function(c,b){function a(a,b,c){return F?Object.create(DOMException.prototype,{code:{enumerable:!0,value:a},message:{enumerable:!0,value:b},name:{enumerable:!0,value:c},toString:{value:function(){return"Error: "+this.message}}}):(b=Error(b),b.code=a,b.name=c,b)}function d(a){return F?Object.create(MediaError.prototype,{code:{enumerable:!0,value:a}}):{code:a,MEDIA_ERR_ABORTED:1,MEDIA_ERR_DECODE:3,MEDIA_ERR_NETWORK:2,MEDIA_ERR_SRC_NOT_SUPPORTED:4}}
function g(b,d,g){var k=function(b,d){if(!b||b[d]===Y)throw a("DOMException"in c?DOMException.INDEX_SIZE_ERR:1,"INDEX_SIZE_ERR: DOM Exception 1","INDEX_SIZE_ERR");return b[d]};return F?Object.create("object"===typeof TimeRanges?TimeRanges.prototype:Object.prototype,{length:{enumerable:!0,value:b},start:{value:function(a){return k(d,a)}},end:{value:function(a){return k(g,a)}}}):{length:b,start:function(a){return k(d,a)},end:function(a){return k(g,a)}}}function u(a){return"undefined"===typeof TextTrackList?
Object.create(Object.prototype,{length:{enumerable:!0,value:a.length},item:{enumerable:!0,value:function(b){return a[b]}}}):Object.create(TextTrackList.prototype,{length:{enumerable:!0,value:0}})}function h(a,b){return function(){if(a.type===k.TYPE_FLASH&&a.swf&&a.swfLoaded){var c="get"+b.charAt(0).toUpperCase()+b.slice(1);return a.swf[c]()}return a.type===k.TYPE_HTML&&a.video?a.video[b]:b in a.propertyValues?a.propertyValues[b]:k.properties[b].value}}function l(a,b){return function(c){a.propertyValues[b]=
c;try{if(a.type===k.TYPE_FLASH&&a.swf&&a.swfLoaded){var d="set"+b.charAt(0).toUpperCase()+b.slice(1);a.swf[d](c)}else a.type===k.TYPE_HTML&&a.video&&(a.video[b]=c)}catch(e){}}}function n(a,b){return function(){if(a.type===k.TYPE_FLASH)return a.swfLoaded?a.swf["_"+b]():a.queuedMethodCalls.push({method:b,args:arguments});if(a.type===k.TYPE_HTML)return a.video[b].apply(a.video,arguments)}}function r(a){if(!a)return null;a=a.split("?")[0].split(".");switch(a[a.length-1]){case "mp4":case "m3u8":return"video/mp4";
case "web":case "webm":return"video/webm";case "flv":return"video/x-flv"}return null}function t(a){a.style.display="none";a.setAttribute("hidden","");a.pause();a.src=""}function w(a){a.style.display="none";a.setAttribute("hidden","");try{a._pause(),a.setSrc("")}catch(b){}}function k(a,x){if(!a)throw Error("You must pass a valid element");var m=this;m.uuid=Math.round(1E3*Math.random()+(new Date).getTime());m.global="flideo_"+m.uuid;c[m.global]=m;var q={};F||(q=b.createElement("flideo"),b.body.appendChild(q));
var J=Ea.make({});m.queuedMethodCalls=[];m.propertyValues={};m.textTracks=[];var K=["webkitplaybacktargetavailabilitychanged","webkitcurrentplaybacktargetiswirelesschanged"],H={src:{enumerable:!0,get:h(m,"src"),set:function(c){m.propertyValues.src=c;var e=null;switch(r(c)){case "video/mp4":e=s&&s.h264.baseline?k.TYPE_HTML:k.TYPE_FLASH;break;case "video/webm":e=s&&s.webm?k.TYPE_HTML:k.TYPE_FLASH;break;case "video/x-flv":e=k.TYPE_FLASH}c=e!==k.TYPE_FLASH||v.flash.versionAtLeast(10,1)?e:null;0;m.type=
c;if(c===k.TYPE_HTML){for(var g=a.parentNode;g!==b&&!g.classList.contains("js-player");)g=g.parentNode;if(!m.video){m.video=g!==b?g.querySelector("video"):null;m.video?m.video.parentNode===g&&g.removeChild(m.video):m.video=b.createElement("video");m.video.setAttribute("x-webkit-airplay","allow");for(var g=m.video,h=m.eventCallback,e=m.textTracks,q=0,H=k.events.length;q<H;q++)g.addEventListener(k.events[q],h);h=0;for(q=e.length;h<q;h++)g.appendChild(e[h]);a.appendChild(m.video)}for(var A in m.propertyValues)"currentTime"!==
A&&(0,m.video[A]=m.propertyValues[A]);m.swf&&w(m.swf);m.video.style.display="";m.video.removeAttribute("hidden")}else if(c===k.TYPE_FLASH){if(!m.swf){e=m.global;h=x.swf;A=b.createElement("object");A.setAttribute("type","application/x-shockwave-flash");A.setAttribute("width","100%");A.setAttribute("height","100%");A.setAttribute("data",h);e={flashvars:"ready="+e+".flashReady",movie:h,allowfullscreen:"true",allowscriptaccess:"always",bgcolor:"#000000",wmode:"opaque",quality:"high",scalemode:"noscale"};
for(g in e)h=b.createElement("param"),h.setAttribute("name",g),h.setAttribute("value",e[g]),A.appendChild(h);m.swf=A;a.appendChild(m.swf)}m.video&&t(m.video);m.swf.style.display="";m.swf.removeAttribute("hidden");m.swfLoaded&&m.flashReady()}else m.video&&t(m.video),m.swf&&w(m.swf);m.type=c;null===c&&J.fire("error",{type:"error",target:{error:d(k.MEDIA_ERR_SRC_NOT_SUPPORTED)}})}},buffered:{enumerable:!0,get:function(){if(m.type===k.TYPE_HTML&&m.video)return m.video.buffered;if(m.type===k.TYPE_FLASH&&
m.swf&&m.swfLoaded){var a=m.swf.getBuffered();if(a)return g(a.length,a.start,a.end)}return g(0)}},seekable:{enumerable:!0,get:function(){if(m.type===k.TYPE_HTML&&m.video)return m.video.seekable;if(m.type===k.TYPE_FLASH&&m.swf&&m.swfLoaded){var a=m.swf.getSeekable();if(a)return g(a.length,a.start,a.end)}return g(0)}},error:{enumerable:!0,get:function(){if(m.type===k.TYPE_HTML&&m.video)return m.video.error;if(m.type===k.TYPE_FLASH&&m.swf&&m.swfLoaded){var a=m.swf.getError();if(a)return d(a.code)}return null}},
textTracks:{enumerable:!0,get:function(){if(m.type===k.TYPE_HTML&&m.video&&A){if(v.browser.firefox){for(var a=m.video.querySelectorAll("track"),b=[],c=0,d=a.length;c<d;c++)b.push(a[c].track);return b}return m.video.textTracks}return u([])}},canvasImageSource:{enumerable:!0,get:function(){return m.type===k.TYPE_HTML?m.video:null}},renderer:{enumerable:!0,get:function(){return m.type}},addEventListener:{enumerable:!0,value:function(a,b){if(0<=K.indexOf(a))m.video&&m.video.addEventListener(a,b);else J.on(a,
b)}},removeEventListener:{enumerable:!0,value:function(a,b){0<=K.indexOf(a)?m.video&&m.video.removeEventListener(a,b):J.off(a,b)}},appendChild:{enumerable:!0,value:function(a){m.type===k.TYPE_HTML&&m.video?("TRACK"===a.nodeName&&m.textTracks.push(a),m.video.appendChild(a)):0}},removeChild:{enumerable:!0,value:function(a){if(m.type===k.TYPE_HTML&&m.video){if("TRACK"===a.nodeName){var b=m.textTracks.indexOf(a);0<=b&&m.textTracks.splice(b,1)}m.video.removeChild(a);0===m.video.children.length&&m.video.removeAttribute("crossorigin")}else 0}},
firstChild:{enumerable:!0,get:function(){return m.type===k.TYPE_HTML&&m.video?m.video.firstChild:null}},children:{enumerable:!1,get:function(){return m.type===k.TYPE_HTML&&m.video?m.video.children:[]}}},B,D;for(D in k.properties)D in H||(B={enumerable:!0,get:h(m,D)},k.properties[D].readOnly||(B.set=l(m,D)),H[D]=B);B=0;for(D=k.methods.length;B<D;B++)H[k.methods[B]]={enumerable:!0,value:n(m,k.methods[B])};"WebKitPlaybackTargetAvailabilityEvent"in c&&(H.webkitShowPlaybackTargetPicker={enumerable:!0,
value:function(){m.video&&"webkitShowPlaybackTargetPicker"in m.video&&m.video.webkitShowPlaybackTargetPicker()}},H.webkitCurrentPlaybackTargetIsWireless={enumerable:!0,get:function(){return m.video&&"webkitCurrentPlaybackTargetIsWireless"in m.video?m.video.webkitCurrentPlaybackTargetIsWireless:!1}});Object.defineProperties(q,H);m.eventCallback=function(a){m.type===k.TYPE_HTML&&("error"!==a.type||!a.target.error||a.target.error.code!==k.MEDIA_ERR_DECODE&&a.target.error.code!==k.MEDIA_ERR_SRC_NOT_SUPPORTED?
J.fire(a.type,a):(s.h264.baseline="",s.h264.high="",q.src=q.src))};m.flashEventCallback=function(a){m.type===k.TYPE_FLASH&&("error"===a.type&&(a.target=m.node),J.fire(a.type,a))};m.flashReady=function(){if(!m.swfLoaded){for(var a=0,b=k.events.length;a<b;a++)m.swf.api_addEventListener(k.events[a],m.global+".flashEventCallback");m.swfLoaded=!0}for(var c in m.propertyValues)a="set"+c.charAt(0).toUpperCase()+c.slice(1),m.swf[a](m.propertyValues[c]);for(c=m.queuedMethodCalls.shift();c;)m.swf["_"+c.method](),
c=m.queuedMethodCalls.shift()};return q}var s=function(){function a(b){return RegExp(b.toLowerCase()).test(d)}var d=navigator.userAgent.toLowerCase(),g=a("android")?parseFloat(d.replace(/^.* android (\d+)\.(\d+).*$/,"$1.$2"))||!0:!1,h=g&&a("mobile"),k=a("iphone"),q=a("firefox"),x=b.createElement("video"),A=!1;try{x.canPlayType&&(A={h264:{baseline:x.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),high:x.canPlayType('video/mp4; codecs="avc1.64001E"').replace(/^no$/,"")},webm:x.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,
""),flv:x.canPlayType('video/x-flv; codecs="vp6"'),hls:x.canPlayType("application/vnd.apple.mpegurl")})}catch(t){}g&&(2.1===g||2.2===g||q&&!A.h264.baseline)&&(A.h264.baseline="probably");g&&!h&&(A.h264.high="probably");g&&(A.hls="");k&&2>c.devicePixelRatio&&(A.h264.high="");return A}(),A=function(){var a=b.createElement("video");return"undefined"!==typeof a.textTracks&&a.textTracks instanceof TextTrackList&&"function"===typeof a.addTextTrack}(),q=A&&"oncuechange"in b.createElement("track").track,
F;a:{try{Object.defineProperty({},"fakeprop",{})}catch(x){F=!1;break a}F=!0}k.TYPE_HTML="html";k.TYPE_FLASH="flash";k.NETWORK_EMPTY=0;k.NETWORK_IDLE=1;k.NETWORK_LOADING=2;k.NETWORK_NO_SOURCE=3;k.HAVE_NOTHING=0;k.HAVE_METADATA=1;k.HAVE_CURRENT_DATA=2;k.HAVE_FUTURE_DATA=3;k.HAVE_ENOUGH_DATA=4;k.MEDIA_ERR_ABORTED=1;k.MEDIA_ERR_DECODE=3;k.MEDIA_ERR_NETWORK=2;k.MEDIA_ERR_SRC_NOT_SUPPORTED=4;k.properties={error:{value:null,readOnly:!0},src:{value:""},currentSrc:{value:"",readOnly:!0},networkState:{value:k.NETWORK_EMPTY,
readOnly:!0},preload:{value:"auto"},buffered:{value:g(0),readOnly:!0},readyState:{value:k.HAVE_NOTHING,readOnly:!0},seeking:{value:!1,readOnly:!0},currentTime:{value:0},duration:{value:NaN,readOnly:!0},paused:{value:!0,readOnly:!0},defaultPlaybackRate:{value:1},playbackRate:{value:1},played:{value:g(0),readOnly:!0},seekable:{value:g(0),readOnly:!0},ended:{value:!1,readOnly:!0},autoplay:{value:!1},loop:{value:!1},controls:{value:!1},volume:{value:1},muted:{value:!1},defaultMuted:{value:!1},textTracks:{value:u([]),
readOnly:!0},width:{value:0},height:{value:0},videoWidth:{value:0,readOnly:!0},videoHeight:{value:0,readOnly:!0},poster:{value:""}};k.methods=["load","play","pause","canPlayType","addTextTrack"];k.events="abort canplay canplaythrough durationchange emptied ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");k.support={video:s,textTracks:A,cueChange:q};return k}(this,l);(function(){var c={templates:{},
render:function(b,a){return c.templates[b]?c.templates[b].call(c,a||{}):""},map:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},escape:function(b){return b.replace(/[&<>"'\/]/g,function(a){return c.map[a]})}};c.templates.buffer=function(b){return'<svg width="110%"><defs><pattern id="buffer" patternUnits="userSpaceOnUse" x="0" y="0" width="10" height="10" viewBox="0 0 10 10"><line x1="5" y1="-1" x2="-5" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /><line x1="10" y1="-1" x2="0" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /><line x1="15" y1="-1" x2="5" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /></pattern></defs><rect fill="url(#buffer)" width="100%" height="100%" /></svg>'};
c.templates.content_rating=function(b){return'<div class="content-rating"><h1>Hold up!</h1><p class="subtitle">This video does not match your content rating preferences.</p><p>It may contain content indended for mature audiences including: nudity, strong language, and violence. <a href="">Edit your content rating preferences.</a></p><button>I still want to watch this video</button><div class="logo">'+b.logo+"</div></div>"};c.templates.controlbar=function(b){var a='<button class="play rounded-box state-'+
b.playState+'" title="Play" data-title-play="Play" data-title-pause="Pause" aria-label="Play"><div class="tiny-bars"><svg width="100%" height="100%" viewBox="0 0 65 40"><defs><clipPath id="rounded-border"><rect height="100%" width="100%" x="0" y="0" rx="5"/></clipPath><pattern id="buffer" patternUnits="userSpaceOnUse" x="0" y="0" width="10" height="4" viewBox="0 0 10 4"><line x1="5" y1="-1" x2="-5" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /><line x1="10" y1="-1" x2="0" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /><line x1="15" y1="-1" x2="5" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /></pattern></defs><g clip-path="url(#rounded-border)"><rect class="buffer hidden" height="3" width="110%" x="0" y="37" fill="url(#buffer)"/><rect class="loaded" height="3" width="0" x="0" y="37" fill="#666"/><rect class="played fill" height="3" width="0" x="0" y="37"/></g></svg></div><div class="play-icon">',
a=a+(this.render("icon_play")||""),a=a+'</div><div class="pause-icon">'+(this.render("icon_pause")||""),a=a+'</div></button><div class="play-bar rounded-box"><div class="progress"><div class="buffer hidden">',a=a+(this.render("buffer")||""),a=a+('</div><div class="loaded" role="progressbar" aria-label="loaded" aria-valuemin="0" aria-valuemax="'+b.rawDuration+'" aria-valuenow="0"></div><div class="played" role="progressbar" aria-label="played" aria-valuemin="0" aria-valuemax="'+b.rawDuration+'" aria-valuenow="0"></div><div class="ghost-timecode invisible" role="presentation" aria-hidden="true"><div class="box">00:00</div></div><div class="timecode" role="presentation" aria-hidden="true"><div class="box">'+
b.duration+"</div></div></div> ");b.volume&&(a+=' <div class="volume" role="slider" aria-label="Volume (use arrow keys to change)" aria-valuemin="0" aria-valuemax="1" tabindex="0"><div></div><div></div><div></div><div></div><div></div></div> ');b.ccButton&&(a+=' <button class="toggle cc '+(b.ccOn?"on":"off")+'" title="Choose captions"> ',a+=this.render("icon_cc")||"",a+=" </button> ");b.hdButton&&(a+=' <button class="toggle hd '+(b.hdOn?"on":"off")+'" title="Turn HD '+(b.hdOn?"off":"on")+'" data-title-on="Turn HD off" data-title-off="Turn HD on" aria-label="HD"> ',
a+=this.render("icon_hd")||"",a+=" </button> ");b.airplayButton&&(a+=' <button class="toggle airplay hidden" title="Choose an AirPlay device" data-title-off="Choose an AirPlay device" data-title-on="Turn off AirPlay" hidden> ',a+=this.render("icon_airplay")||"",a+=" </button> ");b.scalingButton&&(a+=' <button class="scaling only-in-fullscreen" data-full-size="'+b.fullSize+'" data-title-full-size="View actual size" data-title-actual-size="View full size"> ',a+=this.render("icon_scaling")||"",a+=" </button> ");
a+=' <button class="fullscreen';b.fullscreenButton||(a+=" only-in-fullscreen");a+='" title="Enter full screen" data-title-fullscreen="Enter full screen" data-title-unfullscreen="Exit full screen" aria-label="Fullscreen"><div class="fullscreen-icon">';a+=this.render("icon_fullscreen")||"";a+='</div><div class="unfullscreen-icon">';a+=this.render("icon_unfullscreen")||"";a+="</div></button> ";b.vimeoLogo.show&&(a+=' <div class="logo"> ',b.vimeoLogo.showLink&&(a+=' <a href="'+b.vimeoLogo.url+'"',b.targetBlank&&
(a+=' target="_blank"'),a+=' title="Watch on vimeo.com" aria-label="Watch on vimeo.com" data-clip-link> '),a+=this.render("logo")||"",b.vimeoLogo.showLink&&(a+=" </a> "),a+=" </div> ");a+=' <div class="mobile-timecode" role="presentation" aria-hidden="true">'+b.duration+"</div></div> ";b.customLogo&&(a+=' <div class="custom-logo',b.customLogo.sticky&&(a+=" sticky"),a+='" style="width:'+b.customLogo.width+"px;height:"+b.customLogo.height+'px"> ',b.customLogo.showLink&&(a+='<a href="'+b.customLogo.url+
'" target="_blank">'),a+=' <img src="'+b.customLogo.img+'" alt=""> ',b.customLogo.showLink&&(a+="</a>"),a+=" </div>");return a+=""};c.templates.controlbar_trailer=function(b){var a;a='<button class="play trailer rounded-box" title="Play Trailer" aria-label="Play Trailer"><div><span class="play-icon">'+(this.render("icon_play")||"");a+="</span><p>"+b.text+"</p></div></button>";b.vimeoLogo.show&&(a+=' <div class="logo"> ',b.vimeoLogo.showLink&&(a+=' <a href="'+b.vimeoLogo.url+'"',b.targetBlank&&(a+=
' target="_blank"'),a+=' title="Watch on vimeo.com" aria-label="Watch on vimeo.com" data-clip-link> '),a+=this.render("logo")||"",b.vimeoLogo.showLink&&(a+=" </a> "),a+=" </div>");a+="";b.customLogo&&(a+=' <div class="custom-logo',b.customLogo.sticky&&(a+=" sticky"),a+='" style="width:'+b.customLogo.width+"px;height:"+b.customLogo.height+'px"> ',b.customLogo.showLink&&(a+='<a href="'+b.customLogo.url+'" target="_blank">'),a+=' <img src="'+b.customLogo.img+'" alt=""> ',b.customLogo.showLink&&(a+="</a>"),
a+=" </div>");return a+""};c.templates.error=function(b){var a='<div class="window-wrapper error"><h1>'+b.title+"</h1> ";b.message&&(a+=" <p>"+b.message+"</p> ");return a+"</div>"};c.templates.hd_not_allowed=function(b){return'<div class="window-wrapper no-hd"><h1>'+b.title+'</h1><p class="subtitle">'+b.subtitle+'</p><a href="'+b.url+'" target="_blank" role="button" data-clip-link>'+b.button+"</button></div>"};c.templates.hd_notification=function(b){return'<div class="hd-notification"><div class="hd-stroke"> '+
b.stroke+' </div><div class="hd-fill-wrapper"><div class="hd-fill"> '+b.fill+" </div></div></div>"};c.templates.help=function(b){var a='<div class="window-wrapper help"><h1>Keyboard Shortcuts</h1><dl><div class="volume-up secondary"><dt class="arrow">\u2191</dt><dd>Volume up</dd></div><div class="volume-down secondary"><dt class="arrow">\u2193</dt><dd>Volume down</dd></div><div class="scrub-forward secondary"><dt class="arrow">\u2192</dt><dd>Scrub forward</dd></div><div class="scrub-backwards secondary"><dt class="arrow">\u2190</dt><dd>Scrub backwards</dd></div><div class="like"><dt>L</dt><dd>Like</dd></div><div class="share"><dt>S</dt><dd>Share</dd></div><div class="watch-later"><dt>W</dt><dd>Watch Later</dd></div><div><dt>C</dt><dd>Toggle Captions</dd></div><div class="toggle-hd"><dt>H</dt><dd>Toggle HD</dd></div><div class="fullscreen"><dt>F</dt><dd>Fullscreen</dd></div> ';
b.onSite||(a+='<div class="view-on-vimeo"><dt>V</dt><dd>View on Vimeo</dd></div>');return a+' </dl><a href="https://vimeo.com" class="off-site" role="button">View on Vimeo.com</a></div>'};c.templates.icon_airplay=function(b){return'<svg class="airplay-icon" viewBox="0 0 44 36"><defs><clipPath id="triangle"><polygon points="-2,-2 -2,36 2,36 22,15 42,36 46,36 46,-2"/></clipPath></defs><rect class="stroke" stroke-width="5" width="44" height="26" x="0" y="2" clip-path="url(#triangle)"/><polygon class="fill" points="7,36 22,18 37,36"/></svg>'};
c.templates.icon_back=function(b){return'<svg class="icon-back" viewBox="0 0 64 64" preserveAspectRatio="xMidYMid"><path class="fill" d="M0 32l32 32v-20h32l0-24h-32v-20z"/></svg>'};c.templates.icon_broken_heart=function(b){return'<svg class="unlike-icon" viewBox="0 0 110 81" preserveAspectRatio="xMidYMid"><path class="fill" d="M82.496 1c-14.594 0-23.198 10.043-25.948 14.48l-6.77 10.727 13.661 8.543-13.661 12.535 5.695 15.348-9.686-15.348 11.389-11.975-11.969-7.402s4.22-14.27 4.621-15.521c.782-2.438.782-2.438-.813-3.289-5.516-2.944-12.608-8.098-21.509-8.098-16.299 0-27.506 15.037-27.506 27.885 0 12.795 12.562 22.558 22.245 27.592 9.186 4.771 30.601 18.349 32.755 24.523 2.154-6.174 23.57-19.752 32.753-24.523 9.684-5.034 22.247-14.797 22.247-27.592 0-12.848-11.208-27.885-27.504-27.885z"/></svg>'};
c.templates.icon_cc=function(b){return'<svg viewBox="0 0 20 14"><path class="fill" fill-rule="evenodd" clip-rule="evenodd" d="M17 0h-14c-1.657 0-3 1.343-3 3v8c0 1.656 1.343 3 3 3h14c1.657 0 3-1.344 3-3v-8c0-1.657-1.343-3-3-3zm-7.271 8.282c-.145.923-.516 1.686-1.105 2.268-.597.591-1.369.89-2.294.89-1.138 0-2.049-.402-2.706-1.195-.647-.786-.975-1.866-.975-3.215 0-1.458.372-2.603 1.105-3.403.65-.708 1.487-1.067 2.487-1.067 1.33 0 2.321.482 2.947 1.435.34.53.526 1.072.553 1.611l.013.236h-1.984l-.044-.169c-.092-.355-.207-.622-.343-.793-.239-.298-.591-.443-1.076-.443-.483 0-.856.209-1.14.641-.298.455-.449 1.12-.449 1.977 0 .851.156 1.49.466 1.898.298.395.666.588 1.122.588.469 0 .814-.16 1.058-.491.138-.183.255-.472.351-.856l.042-.17h2.013l-.041.258zm7.582 0c-.145.923-.516 1.686-1.104 2.268-.598.591-1.369.89-2.294.89-1.139 0-2.049-.402-2.707-1.195-.646-.785-.975-1.865-.975-3.214 0-1.458.372-2.603 1.106-3.403.649-.708 1.485-1.067 2.486-1.067 1.33 0 2.32.482 2.946 1.435.34.53.526 1.072.554 1.611l.012.236h-1.9829999999999999l-.043-.169c-.092-.355-.208-.623-.344-.793-.238-.298-.591-.443-1.076-.443-.483 0-.856.209-1.139.641-.299.455-.45 1.12-.45 1.977 0 .851.157 1.49.467 1.898.299.395.666.588 1.121.588.469 0 .814-.16 1.058-.491.138-.183.256-.472.352-.856l.042-.17h2.012l-.041.257z"/></svg>'};
c.templates.icon_clock=function(b){return'<svg class="watch-later-icon" viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"><polyline class="fill hour-hand" points="9.64,4.68 10.56,4.68 11.28,11.21 8.93,11.21 9.64,4.68" /><polyline class="fill minute-hand" points="14.19,13.65 13.7,14.14 8.58,10.4 10.44,8.5 14.19,13.65" /><circle class="stroke" cx="10" cy="10" r="8" stroke-width="2" /></svg>'};c.templates.icon_close=function(b){return'<svg class="icon-close" viewBox="0 0 64 64" preserveAspectRatio="xMidYMid"><path class="fill" d="M60 48.796l-16.812-16.796 16.812-16.796-11.204-11.204-16.796 16.804-16.804-16.804-11.196 11.204 16.796 16.796-16.796 16.796 11.196 11.204 16.804-16.804 16.796 16.804z"/></svg>'};
c.templates.icon_collections=function(b){return'<svg class="collections-icon" viewBox="0 0 24 24"><path class="fill" d="M24 12c0-.3-.1-.6-.4-.8l-2.7-2.3 2.4-1c.4-.1.7-.5.7-.9 0-.3-.1-.6-.4-.8l-7-6c-.1-.1-.4-.2-.6-.2-.1 0-.3 0-.4.1l-15 6c-.3.1-.6.5-.6.9 0 .3.1.6.4.8l2.7 2.3-2.4 1c-.4.1-.7.5-.7.9 0 .3.1.6.4.8l2.7 2.3-2.4 1c-.4.1-.7.5-.7.9 0 .3.1.6.4.8l7 6c.1.1.4.2.6.2.1 0 .3 0 .4-.1l15-6c.4-.1.6-.5.6-.9 0-.3-.1-.6-.4-.8l-2.7-2.3 2.4-1c.4-.1.7-.5.7-.9zm-8.2-9.8l5.3 4.5-12.9 5.1-5.3-4.5 12.9-5.1zm5.3 14.5L8.2 21.8l-5.3-4.5 1.9-.8 2.6 2.2c.1.2.4.3.6.3.1 0 .3 0 .4-.1l10.5-4.2 2.2 2zm-12.9.1l-5.3-4.5 1.9-.8 2.6 2.2c.1.2.4.3.6.3.1 0 .3 0 .4-.1l10.5-4.2 2.3 1.9-13 5.2z"/></svg>'};
c.templates.icon_download=function(b){return'<svg class="download-icon" viewBox="0 0 100 78.3"><path class="fill" d="M87.9,31.5c0-0.6,0.1-1.2,0.1-1.8C88,13.3,74.6,0,58.2,0c-11.8,0-22,6.9-26.8,17c-2.3-1.8-5.2-2.9-8.4-2.9c-7.6,0-13.7,6.1-13.7,13.7c0,1.4,0.2,2.8,0.6,4.1C4,35.4,0,41.8,0,49.2c0,11,8.9,20,19.8,20.1v0h0.2c0,0,0.1,0,0.1,0c0,0,0.1,0,0.1,0H30l-6.4-7.6c-2.7-3.3-3.4-7.3-1.7-10.8c1.6-3.5,5.2-5.6,9.4-5.6h4.4V34.2c0-6.6,5.4-11.9,11.9-11.9h4.2c6.6,0,11.9,5.4,11.9,11.9v11.2h4.4c4.2,0,7.8,2.1,9.4,5.6c1.6,3.5,1,7.6-1.7,10.8l-6.4,7.6h9.8c0.4,0,0.7,0.1,1.1,0.1c10.9,0,19.7-8.8,19.7-19.7C100,41.5,95,34.5,87.9,31.5z"/><path class="fill" d="M68.1,53.6H59c-1,0-2.3,0-3.6,0V34.2c0-2-1.6-3.6-3.6-3.6h-4.2c-2,0-3.6,1.6-3.6,3.6v19.5c-1.3,0-2.6,0-3.6,0h-9.1c-2,0-2.6,1.2-1.3,2.8l17.4,20.8c0.6,0.8,1.5,1.1,2.3,1.1s1.7-0.4,2.3-1.1l17.4-20.8C70.7,54.9,70.1,53.6,68.1,53.6z"/></svg>'};
c.templates.icon_embed=function(b){return'<svg class="embed-icon" viewBox="0 0 55 48" preserveAspectRatio="xMidYMid"><polygon class="fill" points="16.019,16.385 11.968,13.131 0,24.543 12.082,35.955 16.132,32.703 7.439,24.543"/><polygon class="fill" points="42.92,13.131 38.868,16.384 47.561,24.542 38.981,32.701 43.033,35.955 55,24.542"/><polygon class="fill" points="24.083,39.221 28.76,39.221 36.243,8.351 31.566,8.351"/></svg>'};c.templates.icon_facebook=function(b){return'<svg class="facebook-icon" viewBox="0 0 64 64" preserveAspectRatio="xMidYMid"><path class="fill" d="M35.992 64h-11.992v-32h-8v-11.028l8-0.004-0.013-6.497c0-8.997 2.44-14.471 13.037-14.471h8.824v11.030h-5.514c-4.127 0-4.325 1.541-4.325 4.418l-0.016 5.52h9.918l-1.169 11.028-8.741 0.004-0.008 32z"/></svg>'};
c.templates.icon_fullscreen=function(b){return'<svg viewBox="0 0 12 12" preserveAspectRatio="xMidYMid"><polyline class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6)" /><polyline class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6) rotate(90)" /><polyline class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6) rotate(180)" /><polyline class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6) rotate(270)" /></svg>'};
c.templates.icon_hd=function(b){var a='<svg viewBox="',a=b.notification?a+"-1 -1 104.717 49.035":a+"0 0 102.717 47.035",a=a+'" preserveAspectRatio="xMidYMid"><path class="',a=b.stroke?a+"stroke":a+"fill",a=a+'" d="M100.014 6.758c-1.352-2.162-3.244-3.781-5.676-5.134-2.434-1.083-5.947-1.624-10.274-1.624h-21.625l-7.297 47.035h21.895c2.434 0 5.676-.274 8.92-1.352 2.434-.542 4.596-1.627 7.03-3.785 2.161-1.621 4.324-4.055 5.675-7.028 1.621-2.701 2.973-6.757 3.786-11.623.269-3.244.269-6.487.269-9.19-.54-2.704-1.352-5.138-2.703-7.299zm-12.433 16.76c-.541 3.783-1.352 6.485-2.165 8.109-1.08 1.893-2.162 2.703-3.782 3.514-1.083.541-3.515 1.082-6.217 1.082h-3.517l3.517-25.41h3.782c3.514 0 6.217.811 7.568 2.703 1.083 1.625 1.352 5.135.814 10.002z"/><path class="',
a=b.stroke?a+"stroke":a+"fill";return a+'" d="M37.572,0L35.14,16.491H19.463L21.895,0H7.027L0,47.035h14.866l2.703-18.922h15.677l-2.971,18.922h14.866L52.439,0H37.572z"/></svg>'};c.templates.icon_heart=function(b){return'<svg class="like-icon" viewBox="0 0 110 81" preserveAspectRatio="xMidYMid"><path class="fill" d="M82.496 1c-14.698 0-25.969 11.785-27.496 13.457-1.526-1.672-12.798-13.457-27.494-13.457-16.299 0-27.506 15.037-27.506 27.885 0 12.795 12.562 22.558 22.245 27.592 9.186 4.771 30.601 18.349 32.755 24.523 2.154-6.174 23.57-19.752 32.755-24.523 9.684-5.034 22.245-14.797 22.245-27.592 0-12.848-11.206-27.885-27.504-27.885z"/></svg>'};
c.templates.icon_lock=function(b){return'<svg viewBox="0 0 46 76" preserveAspectRatio="xMidYMid"><path class="fill bolt" d="M5,42v-15C8,5 39,5 42,27v30h-7v-30C32,14 15,14 12,27v15z"/><rect class="fill" x="0" y="41" height="35" width="46" rx="4" ry="4"/></svg>'};c.templates.icon_mail=function(b){return'<svg class="mail-icon" viewBox="0 0 72 72" preserveAspectRatio="xMidYMid"><path class="fill" d="M71.754,57.6C71.9,57.169,72,56.718,72,56.241V16.759c0-0.453-0.092-0.881-0.225-1.291l-23.487,19.86L71.754,57.6z"/><path class="fill" d="M35.999,40.118l6.187-4.971l3.131-2.516L68.9,12.693c-0.387-0.113-0.789-0.193-1.213-0.193H4.312c-0.424,0-0.827,0.08-1.215,0.194l23.599,19.949l3.132,2.517L35.999,40.118z"/><path class="fill" d="M67.688,60.5c0.405,0,0.791-0.074,1.164-0.18L45.157,37.843l-9.159,7.361l-9.145-7.351L3.15,60.322C3.522,60.426,3.907,60.5,4.312,60.5H67.688z"/><path class="fill" d="M0.226,15.468C0.092,15.878,0,16.307,0,16.759v39.482c0,0.478,0.099,0.929,0.247,1.356l23.476-22.261L0.226,15.468z"/></svg>'};
c.templates.icon_pause=function(b){return'<svg viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"><rect class="fill" width="6" height="20" x="0" y="0" /><rect class="fill" width="6" height="20" x="12" y="0" /></svg>'};c.templates.icon_play=function(b){return'<svg viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"><polygon class="fill" points="1,0 20,10 1,20" /></svg>'};c.templates.icon_scaling=function(b){return'<svg viewBox="0 0 14 12" preserveAspectRatio="xMidYMid"><rect class="fill" y="6" width="8" height="6"/><polygon class="fill stroked" points="1,0 1,4 3,4 3,2 12,2 12,8 10,8 10,10 14,10 14,0"/><polygon class="fill filled" points="1,0 1,4 10,4 10,10 14,10 14,0"/></svg>'};
c.templates.icon_share=function(b){return'<svg class="share-icon" viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"><polygon class="fill" points="20,0 0,12 5,15 17,4 7,16 7,19 9,17 14,20"/></svg>'};c.templates.icon_tipjar=function(b){return'<svg class="tipjar-icon" viewBox="0 0 24 24"><path class="fill" d="M17.9 5.1V3h.5c.8 0 1.5-.7 1.5-1.5S19.3 0 18.4 0h-13c-.8 0-1.5.7-1.5 1.5S4.6 3 5.4 3h.5v2.1C3.1 5.6.9 8 .9 11v10c0 1.7 1.3 3 3 3h16c1.7 0 3-1.3 3-3V11c0-3-2.1-5.4-5-5.9zm-6 13.9c-2.2-3-6-2.8-6-6 0-1.7 1.3-3 3-3s3 1.5 3 1.5 1.3-1.5 3-1.5 3 1.3 3 3c0 3.2-3.7 3-6 6z"/></svg>'};
c.templates.icon_tumblr=function(b){return'<svg class="tumblr-icon" viewBox="0 0 12 20"><path class="fill" d="M7.865,19.958 C3.629,19.958 2.02,16.834 2.02,14.627 L2.02,8.105 L0,8.105 L0,5.527 C3.027,4.436 3.756,1.705 3.927,0.149 C3.938,0.042 4.022,0 4.07,0 L6.994,0 L6.994,5.084 L10.987,5.084 L10.987,8.105 L6.979,8.105 L6.979,14.318 C6.993,15.149 7.291,16.287 8.815,16.287 C8.843,16.287 8.872,16.287 8.9,16.286 C9.43,16.272 10.14,16.118 10.511,15.941 L11.471,18.788 C11.11,19.317 9.481,19.932 8.015,19.957 C7.964,19.958 7.915,19.958 7.865,19.958"/></svg>'};
c.templates.icon_twitter=function(b){return'<svg class="twitter-icon" viewBox="0 0 274 223" preserveAspectRatio="xMidYMid"><path class="fill" d="M85.98,222 C54.305,222 24.822,212.715 0,196.801 C4.388,197.319 8.853,197.584 13.38,197.584 C39.658,197.584 63.843,188.617 83.039,173.574 C58.495,173.121 37.781,156.905 30.644,134.621 C34.068,135.276 37.582,135.627 41.196,135.627 C46.312,135.627 51.267,134.942 55.974,133.66 C30.314,128.508 10.981,105.838 10.981,78.662 C10.981,78.426 10.981,78.191 10.985,77.957 C18.548,82.158 27.196,84.681 36.391,84.972 C21.341,74.914 11.438,57.746 11.438,38.287 C11.438,28.008 14.204,18.373 19.032,10.089 C46.696,44.023 88.025,66.353 134.641,68.692 C133.685,64.587 133.188,60.306 133.188,55.91 C133.188,24.935 158.302,-0.178 189.279,-0.178 C205.411,-0.178 219.988,6.634 230.22,17.535 C242.996,15.019 255,10.351 265.837,3.924 C261.649,17.021 252.756,28.013 241.175,34.955 C252.521,33.599 263.331,30.584 273.39,26.123 C265.87,37.371 256.36,47.25 245.402,55.158 C245.51,57.563 245.564,59.982 245.564,62.414 C245.564,136.533 189.148,222 85.98,222"/></svg>'};
c.templates.icon_unfullscreen=function(b){return'<svg viewBox="0 0 12 12" preserveAspectRatio="xMidYMid"><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6) "/><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6) rotate(90)" /><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6) rotate(180)" /><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6) rotate(270)" /></svg>'};
c.templates.icon_vod=function(b){return'<svg class="vod-icon" viewBox="0 0 21 23"><path class="fill" d="M19.602,4.716l-7.665-4.385C11.169-0.108,9.91-0.111,9.139,0.327L1.4,4.721C0.63,5.158,0,6.234,0,7.112v8.776c0,0.878,0.63,1.955,1.398,2.393l0.526,0.3l7.176,4.09c0.77,0.438,2.028,0.438,2.798,0l7.702-4.39c0.77-0.438,1.4-1.516,1.4-2.393V7.112C21,6.234,20.37,5.156,19.602,4.716z M7.336,15.761L7.337,7.24l8.008,4.26L7.336,15.761z"/></svg>'};c.templates.logo=function(b){return'<svg viewBox="0 0 140 40" preserveAspectRatio="xMidYMid" role="img" aria-label="Vimeo"><title>Vimeo</title><g><path class="fill logo-v" d="M31.277 18.832c-.14 3.052-2.27 7.229-6.39 12.531-4.259 5.536-7.863 8.306-10.811 8.306-1.825 0-3.371-1.687-4.633-5.059l-2.529-9.275c-.938-3.372-1.943-5.06-3.019-5.06-.234 0-1.054.494-2.458 1.477l-1.474-1.901c1.546-1.358 3.071-2.717 4.572-4.078 2.062-1.783 3.609-2.72 4.642-2.814 2.438-.234 3.938 1.433 4.502 5.001.608 3.851 1.03 6.246 1.266 7.182.704 3.195 1.476 4.791 2.321 4.791.657 0 1.641-1.037 2.954-3.108 1.312-2.072 2.015-3.649 2.109-4.732.188-1.789-.516-2.686-2.109-2.686-.75 0-1.522.173-2.318.514 1.54-5.044 4.481-7.495 8.823-7.355 3.22.095 4.737 2.184 4.552 6.266z"/><path class="fill logo-i" d="M50.613 28.713c-1.313 2.484-3.119 4.733-5.417 6.748-3.143 2.718-6.285 4.076-9.425 4.076-1.456 0-2.57-.469-3.343-1.406-.773-.938-1.137-2.153-1.09-3.653.045-1.548.526-3.938 1.441-7.173.914-3.232 1.373-4.967 1.373-5.201 0-1.218-.423-1.828-1.266-1.828-.282 0-1.079.494-2.393 1.477l-1.618-1.901c1.501-1.358 3.001-2.717 4.502-4.078 2.017-1.783 3.518-2.72 4.504-2.814 1.546-.14 2.684.314 3.411 1.367.726 1.052.996 2.417.81 4.098-.61 2.852-1.268 6.472-1.972 10.864-.046 2.01.681 3.014 2.182 3.014.656 0 1.827-.693 3.518-2.083 1.406-1.156 2.555-2.243 3.447-3.262l1.336 1.755zm-6.12-25.016c-.047 1.168-.633 2.288-1.76 3.361-1.266 1.212-2.767 1.82-4.501 1.82-2.672 0-3.963-1.166-3.869-3.499.045-1.213.76-2.381 2.144-3.501 1.384-1.119 2.919-1.68 4.609-1.68.984 0 1.805.387 2.462 1.155.656.772.961 1.553.915 2.344z"/><path class="fill logo-m" d="M94.543 28.713c-1.314 2.484-3.117 4.733-5.416 6.748-3.145 2.718-6.285 4.076-9.426 4.076-3.051 0-4.527-1.687-4.432-5.06.045-1.501.338-3.306.877-5.415.539-2.108.832-3.748.879-4.921.049-1.779-.492-2.673-1.623-2.673-1.223 0-2.682 1.456-4.375 4.362-1.788 3.05-2.754 6.003-2.894 8.861-.095 2.02.103 3.568.592 4.645-3.272.096-5.565-.444-6.873-1.617-1.171-1.032-1.708-2.742-1.614-5.135.045-1.501.276-3.001.69-4.502.414-1.5.644-2.837.69-4.011.095-1.734-.54-2.604-1.9-2.604-1.177 0-2.444 1.339-3.806 4.011-1.361 2.673-2.113 5.465-2.253 8.371-.094 2.627.074 4.456.503 5.486-3.219.096-5.505-.582-6.857-2.035-1.122-1.214-1.634-3.06-1.539-5.54.044-1.214.258-2.911.645-5.084.386-2.175.603-3.87.647-5.087.093-.841-.119-1.263-.633-1.263-.281 0-1.079.475-2.393 1.424l-1.687-1.901c.234-.184 1.71-1.545 4.432-4.078 1.969-1.828 3.306-2.766 4.009-2.812 1.219-.095 2.204.409 2.954 1.511s1.126 2.38 1.126 3.834c0 .469-.047.915-.14 1.336.703-1.077 1.523-2.017 2.463-2.814 2.156-1.874 4.572-2.931 7.245-3.166 2.298-.187 3.938.352 4.925 1.617.795 1.033 1.17 2.511 1.125 4.433.329-.28.681-.586 1.056-.915 1.078-1.267 2.133-2.273 3.164-3.023 1.736-1.267 3.541-1.97 5.418-2.112 2.25-.187 3.867.35 4.852 1.611.844 1.028 1.219 2.5 1.127 4.415-.047 1.309-.363 3.213-.949 5.712-.588 2.501-.879 3.936-.879 4.31-.049.982.047 1.659.279 2.034.236.373.797.559 1.689.559.656 0 1.826-.693 3.518-2.083 1.406-1.156 2.555-2.243 3.447-3.262l1.337 1.757z"/><path class="fill logo-e" d="M120.922 28.642c-1.361 2.249-4.033 4.495-8.02 6.743-4.971 2.856-10.012 4.284-15.125 4.284-3.797 0-6.52-1.267-8.16-3.797-1.172-1.735-1.734-3.797-1.688-6.189.045-3.797 1.736-7.407 5.064-10.832 3.658-3.75 7.973-5.627 12.945-5.627 4.596 0 7.033 1.873 7.314 5.615.188 2.384-1.125 4.842-3.938 7.368-3.004 2.76-6.781 4.515-11.328 5.263.842 1.169 2.109 1.752 3.799 1.752 3.375 0 7.059-.855 11.045-2.574 2.859-1.207 5.111-2.461 6.754-3.76l1.338 1.754zm-15.969-7.345c.045-1.259-.469-1.89-1.547-1.89-1.406 0-2.83.969-4.283 2.906-1.451 1.936-2.201 3.789-2.248 5.562-.025 0-.025.305 0 .911 2.295-.839 4.287-2.122 5.971-3.849 1.357-1.491 2.06-2.707 2.107-3.64z"/><path class="fill logo-o" d="M140.018 23.926c-.189 4.31-1.781 8.031-4.783 11.169-3.002 3.137-6.73 4.706-11.186 4.706-3.705 0-6.52-1.195-8.441-3.585-1.404-1.777-2.182-4.001-2.32-6.668-.236-4.029 1.217-7.729 4.361-11.101 3.377-3.746 7.619-5.618 12.732-5.618 3.281 0 5.766 1.102 7.457 3.301 1.594 2.015 2.32 4.614 2.18 7.796zm-7.95-.264c.047-1.269-.129-2.434-.527-3.49-.4-1.057-.975-1.587-1.725-1.587-2.391 0-4.361 1.293-5.906 3.877-1.316 2.115-2.02 4.371-2.111 6.766-.049 1.176.164 2.21.633 3.104.514 1.032 1.242 1.549 2.182 1.549 2.109 0 3.914-1.244 5.416-3.735 1.267-2.068 1.945-4.23 2.038-6.484z"/></g></svg>'};
c.templates.outer=function(b){var a='<div class="video-wrapper"><div class="video"><div class="flideo"></div></div></div><div class="target"></div><div class="captions with-controls hidden" hidden aria-live="assertive"><span></span></div><div class="outro-wrapper hidden" hidden><div class="outro" role="dialog" aria-live="assertive"></div></div><div class="controls-wrapper"><div class="title" role="contentinfo"></div><div class="controls"></div><div class="sidedock';b.showSidedock||(a+=" hidden");
a+='" role="toolbar"';b.showSidedock||(a+=" hidden");a=a+'></div></div><div class="overlay-wrapper hidden" hidden><div class="overlay-cell"><div class="overlay" role="dialog" aria-live="assertive"></div><div class="overlay-icon-wrapper hidden"><div class="overlay-icon"></div></div><div class="overlay-logo logo"></div></div><nav><button class="back cloaked" aria-label="Back">'+(this.render("icon_back")||"");a+='</button><button class="close" aria-label="Close overlay">';a+=this.render("icon_close")||
"";return a+='</button></nav></div><div class="notification-wrapper hidden" hidden><div class="notification-cell"><div class="notification" role="dialog" aria-live="assertive"></div></div></div>'};c.templates.outro_image=function(b){var a="<div> ";b.url&&(a+='<a href="'+b.url+'" target="_blank">');a+='<img src="'+b.svg_url+'" class="outro-image">';b.url&&(a+="</a>");return a+"</div>"};c.templates.outro_link=function(b){var a='<h1><a href="'+b.url+'" target="_blank">',a=a+(this.escape(b.text?b.text:
b.url)||"");return a+"</a></h1>"};c.templates.outro_text=function(b){return'<div class="text-wrapper"><div class="text">'+b.text+"</div></div>"};c.templates.outro_videos=function(b){for(var a="",c=0,e=b.contexts.length;c<e;c++){var a=a+"",u=b.contexts[c],a=a+'<div class="video-section';u.promoted&&(a+=" promoted");for(var a=a+('" data-videos="'+u.videos.length+'"><div><h1>'+u.context+'</h1><ul class="videos"> '),h=0,l=u.videos.length;h<l;h++)a+=' <li><a href="'+u.videos[h].url+'"',b.target&&(a+=' target="_blank"'),
a+=" title=\"'",a+=this.escape(u.videos[h].title)||"",a+="'",u.videos[h].owner.id!==b.owner&&(a+=" from ",a+=this.escape(u.videos[h].owner.name)||""),a+='" data-video-id="'+u.videos[h].id+'"><div class="img-wrapper"><img src="'+u.videos[h].thumbnail+'" alt="" width="295" height="166"></div><div class="header-wrapper"><header><h1>',a+=this.escape(u.videos[h].title)||"",a+="</h1> ",u.videos[h].owner.id!==b.owner&&(a+=" <h2><span>from</span>&nbsp;",a+=this.escape(u.videos[h].owner.name)||"",a+="</h2> "),
a+=" </header></div></a> ";a+=" </ul></div></div>"}return a+""};c.templates.outro_vod=function(b){var a='<div class="vod-wrapper"><h1 class="vod-header"><a href="'+b.url+'" target="_blank">',a=a+(this.escape(b.title)||""),a=a+"</a></h1> ";if(b.purchased)a+=' <a class="vod-watch-button" role="button" href="'+b.url+'" target="_blank">',a=b.preorder?a+("Watch on "+b.preorder+""):a+"Watch Now",a+="</a> ";else{for(var a=a+' <ul class="vod"> ',c=0,e=b.buttons.length;c<e;c++)a+=' <li><a class="vod-button '+
b.buttons[c].type+'" role="button" href="'+b.url+"#buy="+b.buttons[c].product_id+'" target="_blank" data-product-id="'+b.buttons[c].product_id+'" role="button"><div class="icon"> ',a="buy"===b.buttons[c].type?a+(this.render("icon_download")||""):a+(this.render("icon_vod")||""),a+=" </div><p>"+b.buttons[c].type.substr(0,1).toUpperCase()+b.buttons[c].type.substr(1)+" "+b.buttons[c].price+"</p></a></li> ";a+=" </ul> ";b.preorder&&(a+=" <p>Preorder now. Watch on "+b.preorder+".</p> ")}return a+"</div>"};
c.templates.password=function(b){return'<div class="window-wrapper password form"><h1>'+b.title+'</h1><p class="subtitle">'+b.subtitle+'</p><form action="'+b.action+'" method="post" novalidate><div class="validation-bubble hidden"><div class="validation-bubble-arrow-clipper"><div class="validation-bubble-arrow"></div></div><div class="validation-bubble-message"></div></div><input type="password" name="password" placeholder="Password" required aria-required="true" aria-label="Password"><input type="submit" value="Watch Video"></form></div>'};
c.templates.private_locked=function(b){return'<div class="window-wrapper login"><h1>'+b.title+'</h1><p class="subtitle">'+b.subtitle+'</p><a href="'+b.action+'" class="popup" target="_blank" role="button" aria-label="Log in (opens in a new window)">Log in</a></div>'};c.templates.private_unlocked=function(b){return'<div class="window-wrapper form unlocked"><h1>Private Video</h1><p class="subtitle">You are logged in and have permission to watch (congrats).</p><button>Watch Video</button></div>'};c.templates.share=
function(b){var a='<div class="share-wrapper"><section class="share-screen'+(b.embedOnly?" cloaked":"")+'"><h1>Share</h1><ul class="buttons"><li><a href="'+b.playerShareUrl+'/facebook" target="_blank" class="facebook" title="Share on Facebook" role="button" aria-label="Share on Facebook">',a=a+(this.render("icon_facebook")||""),a=a+('</a><li><a href="'+b.playerShareUrl+'/twitter" target="_blank" class="twitter" title="Share on Twitter" role="button" aria-label="Share on Twitter">'),a=a+(this.render("icon_twitter")||
""),a=a+('</a><li><a href="'+b.playerShareUrl+'/tumblr" target="_blank" class="tumblr" title="Share on Tumblr" role="button" aria-label="Share on Tumblr">'),a=a+(this.render("icon_tumblr")||""),a=a+"</a> ";b.url&&(a=a+' <li><a href="mailto:?subject='+(encodeURIComponent("Check out \u201c"+b.title+"\u201d by "+b.owner+" on Vimeo")||""),a+="&amp;body=",a+=encodeURIComponent("Check out \u201c"+b.title+"\u201d by "+b.owner+" on Vimeo.\n\nThe video is available for your viewing pleasure at "+b.shareUrl+
"\n\nIf you like this video, make sure you share it, too!\n\nVimeo is filled with lots of amazing videos. See more at https://vimeo.com.")||"",a+='" class="email" title="Share via E-mail" role="button" aria-label="Share via E-Mail">',a+=this.render("icon_mail")||"",a+="</a> ");a+=" </ul> ";b.embed&&(a+=' <ul class="buttons"><li><a href="'+b.url+'#share" target="_blank" class="embed" title="Get embed code" role="button" aria-label="Get embed code">',a+=this.render("icon_embed")||"",a+="</a></li></ul> ");
b.url&&(a+=' <p class="footnote share"><a class="clip_url" href="'+b.url+'" target="_blank">'+b.shareUrl+"</a></p> ");a+=" </section> ";b.embed&&(a+=' <section class="embed-screen'+(b.embedOnly?"":" cloaked")+'"><div class="embed-wrapper"><h1>Embed</h1><p class="subtitle">Add this video to your site with the embed code below.</p><div class="embed-code form"><div><input type="text" name="embed_code" title="Embed code" value="'+b.embedCode+'" spellcheck="false" aria-readonly="true"',b.readOnly&&(a+=
" readonly"),a+="></div> ",b.copyButton&&(a+=' <button class="embed-copy" data-clipboard-text=\''+b.embedCode+"'>Copy</button> "),a+=" </div> ",b.customizeEmbed&&(a+=' <p class="footnote"><a href="'+b.url+'#embed" target="_blank">Customize this embed</a> on Vimeo</p> '),a+=" </div></section> ");return a+="</div>"};c.templates.sidedock=function(b){var a="";b.vodButton&&(a+=' <div class="box" data-vod-preorder="'+b.vodPreorder+'" data-vod-expiring="'+b.expiring+'" data-vod-purchased="'+b.purchased+
'"><label class="rounded-box vod-label visible',b.expiring&&(a+=" expiring"),a+='" role="presentation"><span>'+b.vodLabel+'</span></label><button class="vod-button rounded-box',b.purchased&&(a+=" on"),a=a+'"> '+(this.render("icon_vod")||""),a+=" </button></div>");b.likeButton&&(a+=' <div class="box"><label class="rounded-box hidden like-label" role="presentation"><span>',a=b.liked?a+"Unlike":a+"Like",a+='</span></label><button class="like-button rounded-box',b.liked&&(a+=" on"),a+='" aria-label="',
a=b.liked?a+"Unlike":a+"Like",b.loggedIn||(a+=" (opens in a new window)"),a+='" data-label-add="Like" data-label-add-logged-out="Like (opens in a new window)" data-label-remove="Unlike"> ',a+=this.render("icon_heart")||"",a+=" </button></div>");b.watchLaterButton&&(a+=' <div class="box"><label class="rounded-box hidden watch-later-label" role="presentation"><span>',a=b.addedToWatchLater?a+"Remove from":a+"Add to",a+=' Watch Later</span></label><button class="watch-later-button rounded-box',b.addedToWatchLater&&
(a+=" on"),a+='" aria-label="',a=b.addedToWatchLater?a+"Remove from":a+"Add to",a+=" Watch Later",b.loggedIn||(a+=" (opens in a new window)"),a+='" data-label-add="Add to Watch Later" data-label-add-logged-out="Add to Watch Later (opens in a new window)" data-label-remove="Remove from Watch Later"> ',a+=this.render("icon_clock")||"",a+=" </button></div>");b.shareButton&&(a+=' <div class="box"><label class="rounded-box hidden share-label" role="presentation"><span>'+b.shareButtonLabel+'</span></label><button class="share-button rounded-box" aria-label="'+
b.shareButtonLabel+'"> ',a+=this.render("icon_share")||"",a+=" </button></div>");b.collectionsButton&&(a+=' <div class="box"><label class="rounded-box hidden collections-label" role="presentation"><span>Add to Collections</span></label><button class="collections-button rounded-box" aria-label="Add to Collections"> ',a+=this.render("icon_collections")||"",a+=" </button></div>");b.tipJarButton&&(a+=' <div class="box"><label class="rounded-box hidden tip-jar-label" role="presentation"><span>Tip this video</span></label><button class="tip-jar-button rounded-box" aria-label="Tip this video"> ',
a+=this.render("icon_tipjar")||"",a+=" </button></div>");return a+=""};c.templates.title=function(b){var a="<header> ";b.badge&&(a+=' <div class="badge"><a href="'+b.badge.link+'"',b.targetBlank&&(a+=' target="_blank"'),a+='><img src="'+b.badge.img+'"',b.badge.offset&&(a+=' style="margin-top:'+b.badge.offset.y+"px;margin-left:"+b.badge.offset.x+'px"'),a+=' width="'+b.badge.width+'" height="'+b.badge.height+'" alt="'+b.badge.name+' Badge"></a></div> ');b.showPortrait&&(a+=' <div class="portrait" aria-hidden="true"> ',
b.linkToOwner&&(a+='<a tabindex="-1" href="'+b.ownerLink+'"',b.targetBlank&&(a+=' target="_blank"'),a+=">"),a+=' <img src="'+b.portraitImg+'" alt="Portrait image for ',a+=this.escape(b.owner)||"",a+='" width="60" height="60"> ',b.linkToOwner&&(a+="</a>"),a+=" </div> ");a+=' <div class="headers"> ';b.showTitle&&(a+=" <h1> ",b.showTitleLink&&(a+='<a href="'+b.titleLink+'"',b.targetBlank&&(a+=' target="_blank"'),a+=" data-clip-link>"),a+=this.escape(b.title)||"",b.showTitleLink&&(a+="</a>"),a+=" </h1> ");
b.showByline&&(a+=" <h2> from ",b.linkToOwner?(a+='<a href="'+b.ownerLink+'"',b.targetBlank&&(a+=' target="_blank"'),a+=">"):a+='<span class="user">',a+=this.escape(b.owner)||"",a=b.linkToOwner?a+"</a>":a+"</span>",b.bylineBadge&&(a+="&nbsp; ",b.bylineBadge.link&&(a+='<a tabindex="-1" href="'+b.bylineBadge.link+'"',b.targetBlank&&(a+=' target="_blank"'),a+=">"),a+=' <span class="byline-badge '+b.bylineBadge.cssClass+'">'+b.bylineBadge.cssClass+"</span> ",b.bylineBadge.link&&(a+="</a>")),a+=" </h2> ");
return a+" </div></header>"};"undefined"!==typeof module&&module.exports?module.exports=c:r.Aftershave=c})();na=1;ta=2;ha=3;ya=4;Na=9;var ba={like:{will:"willLikeVideo",did:"didLikeVideo"},unlike:{will:"willUnlikeVideo",did:"didUnlikeVideo"},addToWatchLater:{will:"willAddToWatchLater",did:"didAddToWatchLater"},removeFromWatchLater:{will:"willRemoveFromWatchLater",did:"didRemoveFromWatchLater"},purchase:{will:"willOpenVodPurchaseForm",did:"didOpenVodPurchaseForm"},shareOverlay:{will:"willOpenShareOverlay",
did:"didOpenShareOverlay"},loginForm:{will:"willOpenLoginForm",did:"didOpenLoginForm"},tipJar:{will:"willOpenTipJarForm",did:"didOpenTipJarForm"},collectionsOverlay:{will:"willOpenCollectionsOverlay",did:"didOpenCollectionsOverlay"}};Da=1;Ba=2;ga=3;Ga=4;ja=5;ma=6;qa=7;Ha=9;xa=10;ka=11;Ia=12;Qa=14;Va=15;Wa=16;La=17;Ma=18;Ja=19;var c={error:49,playInitiated:50,paused:51,played:52,loadProgress:53,playProgress:54,seeked:55,ended:56,bufferStarted:57,bufferEnded:58,volumeChanged:59,qualityChanged:60,targetTimeReached:61,
cueChanged:62,fullscreenButtonPressed:100,pauseButtonPressed:101,playButtonPressed:102,hdButtonPressed:103,ccButtonPressed:104,scrubbingStarted:105,scrubbingEnded:106,volumeScrubbingStarted:107,volumeScrubbingEnded:108,controlBarVisibilityChanged:109,sidedockVisibilityChanged:110,menuVisibilityChanged:111,captionsChanged:112,willEnterFullscreen:150,didEnterFullscreen:151,willExitFullscreen:152,didExitFullscreen:153,likeButtonPressed:200,watchLaterButtonPressed:201,shareButtonPressed:202,embedButtonPressed:203,
scalingButtonPressed:204,vodButtonPressed:205,tipJarButtonPressed:206,collectionsButtonPressed:207,overlayOpened:250,overlayClosed:251,overlayCleared:252,overlayCloseButtonPressed:253,facebookButtonPressed:254,twitterButtonPressed:255,tumblrButtonPressed:256,emailButtonPressed:257,embedCodeCopied:258,popupOpened:259,mousedOut:300,mousedOver:301,mouseTimeout:302,liked:303,unliked:304,addedToWatchLater:305,removedFromWatchLater:306,userLogIn:307,userLoggedIn:308,userLoggedOut:309,loginFailure:310,colorChanged:311,
configChanged:312,passwordUnlocked:313,privateUnlocked:314,enteredTinyMode:315,enteredMiniMode:320,enteredNormalMode:316,signatureExpired:317,requestConfigReloaded:318,embedSettingChanged:319,outroDisplayed:321,outroHidden:322,outroVideoPressed:323,becameActive:324,becameInactive:325,tipped:326,titleModuleReady:350,sidedockModuleReady:351,controlBarModuleReady:352,videoModuleReady:353,overlayModuleReady:354,notificationModuleReady:355,statsModuleReady:356,apiModuleReady:357,analyticsModuleReady:358,
ready:359,notificationHidden:400,airPlayAvailable:500,airPlayNotAvailable:501,airPlayActivated:502,airPlayDeactivated:503,airPlayButtonPressed:504},Za=function(){return function(e,b,a,d){function g(a){if(a&&0<a.clientX&&0<a.clientY)try{l.activeElement.blur()}catch(b){}}function u(a){a&&(f.config=a,f.storageModule.reset(f.config),y.fire(ka,f.config.embed.color),y.fire(c.configChanged,f.config));f.videoModule||f.config.view===ya||f.config.view===ta?Q.style.backgroundImage="none":(w(f.config.video.thumbs),
f.videoModule=new Oa(f.config,y,ca))}function h(){switch(f.config.view){case ya:0;R=["password"];S=!0;z();break;case ta:0;P=!0;R=f.config.user.logged_in?["error",{title:"Private Video",message:"Sorry, you don&rsquo;t have permission to watch.",modal:!0,logo:!!f.config.embed.settings.branding,icon:"lock"}]:["private-locked"];S=!0;z();return;case ha:0;0;u();f.config.embed.autoplay||P||(R=["private-unlocked"]);z();break;case Na:Q.classList.add("invisible"),y.fire(ja,"content-rating"),y.once(c.overlayClosed,
function(){Q.classList.remove("invisible")})}P=null}function z(){S&&$&&T&&(q(),R?(R.unshift(ja),y.fire.apply(null,R),R=null,r.requestAnimationFrame(function(){f.element.classList.remove("loading")})):f.element.classList.remove("loading"))}function n(a,b){0;var c=(new Date).getTime(),d=f.config&&f.config.video.id,e=f.config&&f.config.request.session,g=f.config&&f.config.request.referrer,x=f.config&&f.config.embed.on_site,k=f.config&&f.config.embed.context,p=a;isNaN(a)||(p=(f.config?"//"+f.config.player_url:
"")+"/video/"+a+"/config"+r.location.search);var q=new XMLHttpRequest;q.open("GET",p,!0);q.withCredentials=!0;q.onload=function(){f.config=JSON.parse(q.responseText);V=(new Date).getTime()+1E3*f.config.request.expires;f.config.video.id===d&&(f.config.request.session=e);g&&(f.config.request.referrer=g);x&&(f.config.embed.on_site=1,f.config.embed.context=k);var a=(new Date).getTime()-c;r._gaq&&r._gaq.push(["player._trackTiming","Player","Config Load",a]);0;F();f.storageModule&&f.storageModule.reset(f.config);
y.fire(ka,f.config.embed.color);d&&h();f.config.embed.on_site||(l.title=f.config.view===na||f.config.view===ha?f.config.video.title+" from "+f.config.video.owner.name+" on Vimeo":"Private Video on Vimeo");b.call(q)};q.send()}function M(a){0;var b=(new Date).getTime(),c=f.config&&f.config.request.referrer,d=new XMLHttpRequest;d.open("GET","//"+f.config.player_url+"/video/"+f.config.video.id+"/config/request?session="+f.config.request.session+"&signature="+f.config.request.signature+"&time="+f.config.request.timestamp+
"&expires="+f.config.request.expires,!0);d.withCredentials=!0;d.onload=function(){f.config.request=JSON.parse(d.responseText);c&&(f.config.request.referrer=c);V=(new Date).getTime()+1E3*f.config.request.expires;0;var e=(new Date).getTime()-b;r._gaq&&r._gaq.push(["player._trackTiming","Player","Config.Request Load",e]);0;a.call(d)};d.send()}function t(a,b){f.element.classList.add("loading");T=S=ga=!1;n(a,function(){0;y.fire(ka,f.config.embed.color);history&&history.replaceState&&!f.config.embed.on_site&&
history.replaceState({id:f.config.video.id},"","/video/"+f.config.video.id);y.fire(c.configChanged,f.config,!0);y.fire(qa,!0);T=!0;G();r.requestAnimationFrame(z);b&&b()})}function w(a){if(f.element.clientWidth){var b=f.element.clientWidth*v.devicePixelRatio,c=f.element.clientHeight*v.devicePixelRatio,d=a["640"];900<=b&&a["960"]&&(d=a["960"]);1E3<=b&&a["1280"]&&(d=a["1280"]);if(a.base){var e=b,g=c;0!==e%320&&(e=100*Math.ceil(b/100),g=Math.round(e/b*c));d=a.base+(f.config.request.flags.webp?".webp":
".jpg");d+="?mw="+e+"&mh="+g;1<v.devicePixelRatio&&(d+="&q=70")}Q.setAttribute("data-thumb",d);ga=!0;if(f.config.embed.autoplay&&"beginning"!==f.config.embed.outro)k();else{var h=new Image;h.src=d;f.config.embed.autoplay?k():(h.onload=function(){"none"!==Q.style.backgroundImage&&(Q.style.backgroundImage="url("+d+")");var a=f.config.video.width/f.config.video.height,b=h.width/h.height;(b<=0.95*a||b>=1.05*a)&&Q.classList.remove("cover");k()},h.onerror=k,setTimeout(k,2E3))}}}function k(){S=!0;z()}function C(){var a=
f.element.clientWidth,b=f.element.clientHeight,c=f.config.video.width/f.config.video.height,d=a-b*c,e=b-a/c,c=Q.querySelector(".flideo");0<d&&10>d||0<e&&10>e?(0,a=Math.max(a/(a-d),b/(b-e)),Q.classList.add("cover"),c.style.webkitTransform="scale("+a+")",c.style.transform="scale("+a+")"):(Q.classList.remove("cover"),c.style.webkitTransform="",c.style.transform="")}function A(a,b,c){if(d&&d[a.will]&&!1===d[a.will].apply(null,[f.config.video.id].concat(c)))0;else if(b.apply(null,[f.config.video.id].concat(c)),
d&&d[a.did])d[a.did]()}function q(){var a=W,b=r.getComputedStyle(f.element,":after");b&&(W=b.getPropertyValue("content").replace(/"/g,""),0,W&&a!==W&&y.fire(za[W]))}function F(){d&&ba.tipJar.will in d||(0,f.config.embed.settings.tipjar=0);d&&ba.collectionsOverlay.will in d||(0,f.config.embed.settings.collections=0)}function x(){f.config.view!==na&&f.config.view!==ha||!f.config.embed.settings||f.config.embed.settings.playbar?f.element.classList.remove("no-playbar"):f.element.classList.add("no-playbar");
f.config.embed.settings.fullscreen?f.element.classList.add("with-fullscreen"):f.element.classList.remove("with-fullscreen");f.config.embed.settings.custom_logo?(f.element.classList.add("with-custom-logo"),f.config.embed.settings.custom_logo.sticky&&f.element.classList.add("with-sticky-custom-logo")):(f.element.classList.remove("with-custom-logo"),f.element.classList.remove("with-sticky-custom-logo"))}function G(){f.config.video.thumbs&&w(f.config.video.thumbs);y.on([c.playInitiated,c.playButtonPressed],
function(){Q.style.backgroundImage="none"});C();Gator(r).on("resize",C);y.on(c.didEnterFullscreen,function(){"none"===Q.style.backgroundImage&&"beginning"!==f.config.embed.outro||w(f.config.video.thumbs)});Gator(r).on("resize",function(){ga||w(f.config.video.thumbs)})}function L(){f.apiModule=new $a(f.config,y);Object.keys(f.apiModule).forEach(function(a){if("function"===typeof f.apiModule[a])Object.defineProperty(aa,a,{enumerable:!0,value:f.apiModule[a]});else{var b={enumerable:!0,get:f.apiModule[a].get};
f.apiModule[a].set&&(b.set=f.apiModule[a].set);Object.defineProperty(aa,a,b)}});f.colorModule=new ab(f.config,y,f.uuid,f.element.id,p);f.overlayModule=new bb(f.config,y,oa);f.statsModule=new cb(f.config,y);f.analyticsModule=new db(f.config,y);f.metricsModule=new eb(f.config,y);f.controlsModule=new fb(f.config,y,f.element);f.titleModule=new gb(f.config,y,Sa);f.controlBarModule=new hb(f.config,y,la);f.sidedockModule=new ib(f.config,y,pa);f.notificationModule=new jb(f.config,y,Y);f.outroModule=new kb(f.config,
y,ia);f.popupModule=new lb(f.config,y);f.captionsModule=new mb(f.config,y,ra,f.element);f.keyboardModule=new nb(f.config,y,f.element);Object.defineProperties(aa,{pauseKeyboard:{enumerable:!0,value:f.keyboardModule.pause},unpauseKeyboard:{enumerable:!0,value:f.keyboardModule.unpause}});f.config.view!==ya&&f.config.view!==ta&&(f.videoModule=new Oa(f.config,y,ca));T=!0;z()}function m(){f.config.embed.fullscreen=!0;if(!BigScreen.enabled||v.browser.bb10)f.element.classList.add("no-fullscreen-api-support"),
BigScreen.videoEnabled(f.element)||(f.element.classList.add("no-fullscreen-support"),f.config.embed.fullscreen=!1);var a=!1,b=!1;y.on(Wa,function(){BigScreen.enabled||BigScreen.videoEnabled(f.element)?(y.fire(c.willEnterFullscreen),b=!1,BigScreen.request(f.element)):y.fire(Ja,!0)});y.on(c.fullscreenButtonPressed,function(){BigScreen.element?(y.fire(c.willExitFullscreen),BigScreen.exit()):(y.fire(c.willEnterFullscreen),b=!0,BigScreen.request(f.element))});var d=BigScreen.onenter,e=BigScreen.onexit;
BigScreen.onenter=function(e){a||(f.element.contains(e)?a||(a=!0,y.fire(c.didEnterFullscreen,f.element===e,b)):"function"===typeof d&&d(e))};BigScreen.onexit=function(){a?a&&(a=!1,y.fire(c.didExitFullscreen,b),b||y.fire(Ja,!1),b=!1):"function"===typeof e&&e()};Gator(f.element).on("click","a",function(a){BigScreen.element===f.element&&BigScreen.exit()});Gator(f.element).on("gestureend",function(a){1<a.scale&&y.fire(c.fullscreenButtonPressed)});if("undefined"!==typeof MSGesture){var g=1,h=new MSGesture;
h.target=f.element;Gator(f.element).on("pointerdown",function(a){h.addPointer(a.pointerId)}).on(["MSGestureChange"],function(a){g*=a.scale}).on(["MSGestureEnd"],function(){(!a&&2<=g||a&&1>g)&&y.fire(c.fullscreenButtonPressed);g=1})}}function E(){y.on([c.scrubbingStarted,c.volumeScrubbingStarted],function(){f.element.classList.add("scrubbing")});y.on([c.scrubbingEnded,c.volumeScrubbingEnded],function(){f.element.classList.remove("scrubbing")})}function J(){function a(b){var d=f.config.video.url;if(!(!d||
b&&b.metaKey))if(0<f.config._video.currentTime&&f.config._video.currentTime<f.config.video.duration-30&&!f.config._video.paused&&(d+="#at="+Math.floor(f.config._video.currentTime)),f.config.embed.on_site)r.location=d;else return r.open(d),g(b),y.fire(c.pauseButtonPressed),!1}Gator(f.element).on("click","a[data-clip-link]",a);y.on(xa,a)}function K(a,b){y.fire(Ia);if(null===V)Aa.push([a,b]);else{var c=new XMLHttpRequest;c.open(b,"//"+f.config.player_url+"/video/"+f.config.video.id+"/"+a+"?signature="+
f.config.request.signature+"&session="+f.config.request.session+"&time="+f.config.request.timestamp+"&expires="+f.config.request.expires,!0);c.withCredentials=!0;c.send()}}function H(){y.on(c.vodButtonPressed,function(a){f.config.user.purchased?!f.config.video.vod.is_feature&&f.config.video.vod.feature_id?t(f.config.video.vod.feature_id,function(){y.fire(c.playButtonPressed)}):y.fire(c.playButtonPressed):A(ba.purchase,function(){y.fire(ma,"purchase",{productId:a})},a)})}function B(){y.on(c.tipJarButtonPressed,
function(){A(ba.tipJar,function(){y.fire(ma,"tip-jar")})})}function D(){y.on(c.collectionsButtonPressed,function(){A(ba.collections,function(){})})}function I(){y.on(c.likeButtonPressed,function(){f.config.user.logged_in?f.config.user.liked?A(ba.unlike,function(){K("like","DELETE");f.config.user.liked=!1;y.fire(c.unliked)}):A(ba.like,function(){K("like","PUT");f.config.user.liked=!0;y.fire(c.liked)}):A(ba.loginForm,function(){y.fire(ma,"login-like")},"like")})}function Z(){y.on(c.watchLaterButtonPressed,
function(){f.config.video.url&&(f.config.user.logged_in?f.config.user.watch_later?A(ba.removeFromWatchLater,function(){K("watch-later","DELETE");f.config.user.watch_later=!1;y.fire(c.removedFromWatchLater)}):A(ba.addToWatchLater,function(){K("watch-later","PUT");f.config.user.watch_later=!0;y.fire(c.addedToWatchLater)}):A(ba.loginForm,function(){y.fire(ma,"login-watch-later")},"watch-later"))})}function N(){y.on(c.shareButtonPressed,function(){var a=function(){y.fire(ja,"share",f.config.embed.settings.share&&
f.config.embed.settings.share.embed_only)};BigScreen.element?a():A(ba.shareOverlay,a)});y.on(c.embedButtonPressed,function(){f.config.embed.settings.share.embed_only&&A(ba.shareOverlay,function(){y.fire(ja,"share",!0)})});y.on(c.overlayClosed,function(){s.resetFocus(f.element)})}function O(){y.on(Ba,t);y.on(c.configChanged,function(){x()});y.on(c.userLoggedOut,function(){n(f.config.video.id,function(){y.fire(c.configChanged,f.config)})});y.on(c.userLogIn,function(a){n(f.config.video.id,function(){0;
y.fire(c.configChanged,f.config);if(f.config.user.logged_in)switch(y.fire(c.userLoggedIn,a),a){case "like":f.config.user.liked&&y.fire(c.liked);break;case "watch-later":f.config.user.watch_later&&y.fire(c.addedToWatchLater);break;case "private":y.fire(c.privateUnlocked)}else y.fire(c.loginFailure)})})}function ua(){var a=!1;y.on(Ia,function(){V&&V-1E3<=(new Date).getTime()&&(y.fire(c.signatureExpired),V=null)});y.on(c.signatureExpired,function(){a||(a=!0,M(function(){a=!1;y.fire(c.requestConfigReloaded,
f.config.request)}))});y.on(c.requestConfigReloaded,function(){if(0<Aa.length)for(var a=Aa.shift();a;)K.apply(null,a),a=Aa.shift()})}function fa(){function a(){if(0===r.innerWidth)0,setTimeout(a,250);else{var b,c=90===Math.abs(r.orientation)?screen.height:screen.width;v.mobileAndroid&&!v.browser.chrome&&!v.browser.opera&&4<=v.android&&(c/=r.devicePixelRatio);b=c/r.innerWidth;c=Math.round(10*Math.pow(b,-1.2));c=Math.max(c,10)+"px";b=Math.round(10*Math.pow(b,-0.7));b=Math.max(b,10)+"px";la.style.fontSize=
c;pa.style.fontSize=b;Sa.style.fontSize=b}}y.on(c.didEnterFullscreen,function(){la.style.fontSize="";pa.style.fontSize="";Sa.style.fontSize=""}).on(c.didExitFullscreen,a);v.touch&&f.element.classList.add("touch-support");p&&(f.element.classList.add("mobile"),a())}function Ca(){if(v.iOS&&!f.config&&null===f.element.querySelector("video")){var a=l.createElement("video");f.element.appendChild(a);a.play();a.pause()}if(!f.config)return n(b,Ca);V=(new Date).getTime()+1E3*f.config.request.expires;0;f.config._video=
{};if(p||v.iPad||v.android)f.config.embed.autoplay=0;F();f.storageModule=new ob(f.config,y);a=s.parseTime(l.location.hash);null!==a&&(f.config.embed.time=s.limit(a,0,f.config.video.duration),v.touch||(f.config.embed.autoplay=1),-1<l.location.hash.indexOf("at=")&&history&&history.replaceState&&history.replaceState("",l.title,r.location.pathname));var a=f.config.video.vod&&"purchase_options"in f.config.video.vod&&f.config.video.vod.purchase_options.length,d=f.element.querySelector("video");f.element.innerHTML=
Aftershave.render("outer",{showSidedock:f.config.embed.settings.instant_sidedock||a});d&&f.element.appendChild(d);Q=f.element.querySelector(".video");ca=f.element.querySelector(".video-wrapper");Sa=f.element.querySelector(".title");pa=f.element.querySelector(".sidedock");la=f.element.querySelector(".controls");oa=f.element.querySelector(".overlay-wrapper");Y=f.element.querySelector(".notification-wrapper");ia=f.element.querySelector(".outro-wrapper");ra=f.element.querySelector(".captions");x();G();
L();m();E();J();H();B();D();I();Z();N();O();y.on([c.passwordUnlocked,c.privateUnlocked],u);Gator(r).on("resize",q);"undefined"!==typeof MutationObserver&&(new MutationObserver(q)).observe(f.element,{attributes:!0,attributeFilter:["class"]});ua();fa();Gator(f.element).on("click",["a","button","[tabindex]"],g);h();Object.preventExtensions&&Object.preventExtensions(aa);for(y.fire(c.ready);da.length;)da.shift().call(aa)}var f=this;f.element=e;f.uuid=Math.round(1E3*Math.random()+(new Date).getTime());
e.classList.add("player-"+f.uuid);e.id||(e.id="player"+f.uuid);f.config=null;isNaN(b)&&"string"!==typeof b&&(f.config=b);d=d||null;var p=v.mobileAndroid||v.iPhone||v.windowsPhone||v.browser.bb10,V=null,Aa=[],y=Ea.make(),ga=!1,S=!1,T=!1,R,P=null,Q=null,ca=null,Sa=null,pa=null,la=null,oa=null,Y=null,ia=null,ra=null,W=null,za={tiny:c.enteredTinyMode,mini:c.enteredMiniMode,normal:c.enteredNormalMode,none:c.enteredNormalMode},aa={},da=[];Object.defineProperties(aa,{config:{enumerable:!0,get:function(){return f.config},
set:function(a){f.config=a;y.fire(c.configChanged,f.config)}},delegate:{enumerable:!0,set:function(a){d=a}},ready:{enumerable:!0,value:function(a){if("function"!==typeof a)throw new TypeError("You can only pass a function to ready().");da.push(a)}}});var $=!0===a;if(!0!==a){var ea=function(){if(!$){$=!0;setTimeout(z,100);var b=(new Date).getTime()-a.startTime;r._gaq&&r._gaq.push(["player._trackTiming","Player","CSS Load",b]);0}};a.link.addEventListener("load",ea,!1);var X=function(){var b=!1;try{var c=
a.link.sheet,d;c&&(d=c.cssRules,b=null===d,!b&&d&&(c.insertRule("-curl-css-test {}",0),c.deleteRule(0),b=!0))}catch(e){b="[object Opera]"!==Object.prototype.toString.call(r.opera)&&/security|denied/i.test(e.message)}if(!b)return setTimeout(X,50);ea()};X()}Ca();return aa}}(),db=function(){return function(e,b){function a(){switch(e._video&&e._video.currentRenderer){case "html":return"HTML5";case "flash":return"Flideo";case "moogaloop":return"Moogaloop";default:return"Player"}}function d(a,b){0;r._gaq&&
r._gaq.push(["player._trackSocial",a,b,e.video.share_url])}var g=e.request.session,u=!0;(function(){e.request.flags.dnt?0:(b.on(c.facebookButtonPressed,function(){d("Facebook","share")}),b.on(c.twitterButtonPressed,function(){d("Twitter","tweet")}),b.on(c.tumblrButtonPressed,function(){d("Tumblr","share")}),b.on(c.emailButtonPressed,function(){d("Email","email")}))})();(function(){var d;b.on([c.bufferStarted,c.scrubbingStarted],function(a){d||(d=a||(new Date).getTime())});b.on(c.bufferEnded,function(){if(0<
d){var b=e._video.currentFile.quality,c="Buffer Time";u&&(u=!1,c="Start Time");var g=d,g=(new Date).getTime()-g;0;r._gaq&&r._gaq.push(["player._trackTiming",a(),c,g,b]);d=null}})})();(function(){function a(){try{t=new ns_.StreamingTag({customerC2:e.request.comscore_id}),u&&(d(),u=!1)}catch(b){}}function d(){try{t.playContentPart({ns_st_ci:e.video.id})}catch(a){}}if(e.request.flags.dnt||!e.request.flags.plays)0;else{var g=l.getElementById("player-comscore"),u=!1,t;b.on(c.played,function(){if(!t){if("undefined"===
typeof ns_){if(!g){g=l.createElement("script");g.id="player-comscore";g.async=!0;g.src=e.request.urls.comscore_js;var b=l.getElementsByTagName("script")[0];b.parentNode.insertBefore(g,b)}g.addEventListener("load",a,!1);u=!0;return}a()}d()});b.on(c.paused,function(){try{t&&t.stop()}catch(a){}})}})();(function(){if(e.request.flags.dnt||!e.request.flags.plays)0;else if("tracking_pixel"in e.video)b.on(c.playInitiated,function(){try{(new Image).src=e.video.tracking_pixel}catch(a){}})})();(function(){b.on(c.configChanged,
function(a){e=a;g!==a.request.session&&(r._gaq&&r._gaq.push(["player._trackPageview","/video/"+e.video.id]),u=!0)})})();b.fire(c.analyticsModuleReady);return{}}}(),$a=function(e){return function(b,a){function d(a,b){this.message=b;try{h({event:"error",data:{message:b,code:a}})}catch(c){}}function g(){if(b.view===ta)throw new d("private_video","The video is private.");if(b.view===ya)throw new d("password_video","The video is password-protected. The viewer must enter the password first.");}function u(a){if(!a||
""===a)return{};if("object"===typeof a)return a;try{return JSON.parse(a)}catch(b){var c={};a.split("&").forEach(function(a){try{var b=a.split("="),d=decodeURIComponent(b[0]),e=decodeURIComponent(b[1]);"id"!==d&&("params"===d&&(d="value"),e=e.split(",")[0],c[d]=e)}catch(g){}});return c}}function h(a){if(a.event&&(C.fire(a.event,a.data),!k[a.event]))return;if(A){var c="";b.embed.player_id&&(a.player_id=b.embed.player_id);if(1===b.embed.api){c=a.event;if(1===b.embed.api){for(var d in J)if(J[d]===a.event){c=
d;break}switch(c){case "onSeek":case "onProgress":delete a.data.percent;delete a.data.duration;break;case "onLoading":delete a.data.seconds,delete a.data.duration}}d="method="+encodeURIComponent(c||a.method);d+="&params=";c=[];if(a.value!==Y)c.push(encodeURIComponent(a.value));else if("object"===typeof a.data)for(var g in a.data)c.push(encodeURIComponent(a.data[g]));else a.data!==Y&&c.push(encodeURIComponent(a.data));a.player_id&&c.push(a.player_id);c=d+=c.join(",")}else try{c=JSON.stringify(a)}catch(q){}0;
if(e.parent!=e)try{e.parent.postMessage(c,t)}catch(x){}}}function z(a){if(!a||"_"===a.substr(0,1))return null;1===b.embed.api&&(a=a.replace("api_",""));switch(a){case "changeColor":return K.color.set;case "paused":return K.paused.get;case "seekTo":return K.currentTime.set}if("function"===typeof K[a])return K[a];var c=a.substr(0,3);a=a.substr(3,1).toLowerCase()+a.substr(4);return K[a]&&K[a][c]?K[a][c]:null}function n(a){if(0===(l.referrer||e.location.origin||e.location.href).indexOf(a.origin)){var b=
u(a.data),c=b.method,b=b.value,d=z(c);d&&(0,a=d.call(a,b),a!==Y&&""!==a&&h({method:c,value:a}))}}function r(){if(F&&G){try{switch(G){case "not-supported":throw new d("not_supported","This video is not supported in this browser.");case "no-files":throw new d("file_error","There was an error loading the files for this video.");default:throw new d("playback","An error occurred during playback.");}}catch(a){}G=null}}var t=l.referrer||b.request.referrer;try{t=decodeURIComponent(t)}catch(w){t=unescape(t)}var k=
{ready:!0,error:!0},C=Ea.make({}),A=!(!e.postMessage||!e.parent.postMessage),q=null,F=!1,x=!1,G=null,L=!1,m,E="play pause finish playProgress loadProgress seek cuechange".split(" "),J={onFinish:"finish",onLoading:"loadProgress",onLoad:"ready",onProgress:"playProgress",onPlay:"play",onPause:"pause",onSeek:"seek"};d.prototype=Error();var K={addEventListener:function(a,b){a in J&&(a=J[a]);if(0>E.indexOf(a))throw new d("invalid_event",'"'+a+'" is not a valid event. Valid events are: '+E.join(", ")+".");
if(b)C.on(a,b);else k[a]=!0;0},removeEventListener:function(a,b){b?C.off(a,b):k[a]=!1;0},play:function(){g();if("[object MessageEvent]"===Object.prototype.toString.call(this)&&"undefined"!==typeof v&&(v.iPhone||v.iPad||v.iPod)&&!L)throw new d("play","The viewer must initiate playback first.");a.fire(c.playButtonPressed,!0)},pause:function(){g();a.fire(c.pauseButtonPressed)},loadVideo:function(c,e){if(!b.embed.on_site&&isNaN(c))throw new d("invalid_video","The video id must be a number.");a.fire(Ba,
c,e)},unload:function(){b.view!==na&&b.view!==ha||a.fire(qa)},_setEmbedSetting:function(d,e){b.embed.on_site&&(d in b.embed.settings||"custom_logo"===d)&&(e="object"===typeof e?e:Number(e),"badge"===d&&(e?e=m:m=b.embed.settings.badge),b.embed.settings[d]=e,a.fire(c.embedSettingChanged,d,e),a.fire(c.configChanged,b))},color:{get:function(){return b.embed.color.replace("#","")},set:function(c){if(b.embed.settings.color&&!b.embed.on_site)throw new d("color_locked","The creator of the video has chosen to always use "+
(new P(b.embed.color)).hex+".");c=(c+"").replace("#","");if("string"!==typeof c||3!==c.length&&6!==c.length||isNaN(parseInt(c,16)))throw new d("invalid_color","The color should be 3- or 6-digit hex value.");if("undefined"===typeof P||"implement"in P)a.fire(ka,c);else try{var e=new P(c);a.fire(ka,e);if(3>(new P(23,35,34,0.75)).contrast(e).ratio)throw new d("color_contrast","Specified color does not meet minimum contrast ratio. We recommend using brighter colors. See WCAG 2.0 guidelines: http://www.w3.org/TR/WCAG/#visual-audio-contrast");
}catch(g){}}},currentTime:{get:function(){return b._video&&0.1<b._video.currentTime?s.round(b._video.currentTime):0},set:function(e){e=parseFloat(e);if(isNaN(e)||0>e||e>b.video.duration)throw new d("invalid_time","Seconds must be a positive float less than the duration of the video ("+b.video.duration+").");a.fire(Da,null,e);a.fire(c.mousedOver)}},duration:{get:function(){return s.round(b.video.duration)}},loop:{get:function(){return!!b.embed.loop},set:function(b){a.fire(8,b)}},paused:{get:function(){return b._video&&
"paused"in b._video?!!b._video.paused:!0}},videoEmbedCode:{get:function(){return b.video.embed_code}},videoHeight:{get:function(){return b.video.video_height||b.video.height}},videoId:{get:function(){return b.video.id}},videoTitle:{get:function(){return b.video.title}},videoWidth:{get:function(){return b.video.video_width||b.video.width}},videoUrl:{get:function(){return b.video.url}},volume:{get:function(){var a=s.round(b.request.cookie.volume);return 1===b.embed.api?Math.round(100*a):a},set:function(c){c=
parseFloat(c);1===b.embed.api&&(c/=100);if(isNaN(c)||0>c||1<c)throw new d("invalid_volume","Volume should be a float between 0 and 1.");q=c;a.fire(ga,c,!0)}}};a.on(c.playInitiated,function(){L=!0});e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n);(function(){a.on(c.played,function(){x||(x=!0,h({event:"play"}))});a.on(c.paused,function(){x=!1;h({event:"pause"})});a.on(c.ended,function(){x=!1;h({event:"finish"})});a.on(c.playProgress,function(a,b,c){h({event:"playProgress",
data:{seconds:s.round(a),percent:s.round(c),duration:s.round(b)}})});a.on(c.loadProgress,function(a,b,c){h({event:"loadProgress",data:{bytesLoaded:-1,bytesTotal:-1,percent:s.round(c),duration:s.round(b),seconds:s.round(a)}})});a.on(c.seeked,function(a,b,c){h({event:"seek",data:{seconds:s.round(a),percent:s.round(c),duration:s.round(b)}})});a.on(c.error,function(a){G=a;r()});a.on(c.cueChanged,function(a,b){var c=null,d=null;a&&(d=a.split("."),c=d[0],d=d[1]);h({event:"cuechange",data:{language:c,kind:d,
cues:b}})})})();(function(){a.on(qa,function(){G=null;L=!1})})();(function(){a.on(c.configChanged,function(c){b=c;q&&setTimeout(function(){0;a.fire(ga,q,!0)},0)})})();a.fire(c.apiModuleReady);a.on(c.ready,function(){F=!0;h({event:"ready"});r()});return K}}(this),mb=function(){var e="ar fa he iw ku ps sd ur yi".split(" ");return function(b,a,d,g){function u(){d.style.fontSize=Math.max(10,Math.round(0.045*g.clientHeight))+"px"}function h(){d.classList.remove("hidden");d.removeAttribute("hidden")}var z=
!1,n=!1;(function(){a.on(c.cueChanged,function(a,b){for(;d.firstChild;)d.removeChild(d.firstChild);if(b.length){var c=l.createDocumentFragment();b.forEach(function(a){var b=l.createElement("span");b.innerHTML=a.html;c.appendChild(b)});d.appendChild(c);z?h():n=!0}else d.classList.add("hidden"),d.setAttribute("hidden","")}).on(c.captionsChanged,function(a){a?(a=a.split(".")[0],d.setAttribute("lang",a),0<=e.indexOf(a)?d.setAttribute("dir","rtl"):d.removeAttribute("dir")):(d.removeAttribute("dir"),d.removeAttribute("lang"))}).on(c.playInitiated,
function(){z=!0;n&&(n=!1,h())}).on(qa,function(){z=!1})})();u();r.addEventListener("resize",u,!1);a.on([c.didEnterFullscreen,c.didExitFullscreen],u);(function(){a.on(c.controlBarVisibilityChanged,function(a){a?d.classList.add("with-controls"):d.classList.remove("with-controls")})})();(function(){a.on(c.overlayOpened,function(){d.classList.add("invisible")}).on(c.overlayClosed,function(){d.classList.remove("invisible")})})();(function(){a.on(c.ended,function(){"nothing"!==b.embed.outro&&d.classList.add("invisible")}).on([c.played,
c.scrubbingStarted],function(){d.classList.remove("invisible")})})();return{rtl:e}}}(),ab=function(){var e=[".title a"],b=[".title a:hover"],a="a;.overlay-wrapper .footnote.share a:hover;.title h1;.title span.user;.outro .video-section > div > h1 a:hover;.outro .videos h1;.outro .videos h2;.menu li:hover;.menu li.active".split(";"),d=["a:hover"],g=[".overlay-wrapper .close:hover .fill",".overlay-wrapper .back:hover .fill"],u=[".play-bar .on .fill",".play-bar a:hover .fill",".play-bar button:not(.toggle):hover .fill",
".tiny-bars .fill",".sidedock .on .fill"],h=[".sidedock .on:hover .fill"],r=[".play-bar .on .stroke",".sidedock .on .stroke"],n=[".sidedock .on:hover .stroke"],v='.sidedock button:hover;.player.touch-support .sidedock button:active;.controls .play:hover;.controls .play-bar .played;.controls .play-bar .fullscreen.tiny:hover;.controls .volume div;.overlay .buttons li;.overlay .window-wrapper button;.overlay .window-wrapper input[type="submit"];.overlay .window-wrapper a[role="button"];.overlay .embed-copy;.outro a[role="button"];.outro .videos li:hover img;.outro .videos li a:focus img;.outro .vod li;.menu li.active:before'.split(";"),
t=[".outro .videos li:hover img",".outro .videos li a:focus img",".menu li.active:before"],w='.overlay-wrapper .overlay .buttons li a;.overlay-wrapper .overlay button.embed-copy;.overlay-wrapper .footnote.share a:hover;.overlay .window-wrapper button;.overlay .window-wrapper input[type="submit"];.overlay .window-wrapper a[role="button"];.outro .vod-header a:hover;.outro .vod-wrapper a[role="button"];.outro-wrapper .outro-inner a[role="button"];.sidedock button:hover;.play:hover'.split(";"),k='.controls .play:hover .fill;.sidedock button:hover .fill;.play-bar a:hover .fill;.play-bar button:not(.toggle):hover .fill;.controls .play-bar .fullscreen.tiny:hover .fill;.sidedock .on .fill;.overlay .share-wrapper a[role="button"] .fill;.outro .vod-wrapper a[role="button"] .fill'.split(";"),
C=[".controls .play:hover .stroke",".sidedock button:hover .stroke",".sidedock .on .stroke"],A=['.overlay-wrapper .overlay a[role="button"]',".overlay-wrapper .overlay button.embed-copy",".sidedock button:hover",".play:hover",'.outro a[role="button"]'],q=[".controls .play:hover .fill",".sidedock button:hover .fill",".controls .play-bar .fullscreen.tiny:hover .fill"],F=[".sidedock button:hover .stroke"],x=[".menu li:active:before"],G=['.overlay .window-wrapper input[type="submit"]:active',".overlay .embed-copy.zeroclipboard-is-active",
'.overlay a[role="button"]:active',".outro .vod-watch-button:active",".sidedock button:active"];return function(L,m,E,J,K){function H(a,b){var c=".player-"+E+" ",c=c+a.join(","+c);if(b)var d="#"+J+" ",c=c+(","+d+a.join(","+d));K&&(c=c.replace(/:hover/g,":active"));return c}var B=null;(function(){m.on(ka,function(D){var I;try{I=new P(D)}catch(J){I=new P("00adef")}var N;D=I;if(B)for(;0<B.cssRules.length;)B.deleteRule(0);else I=l.createElement("style"),I.setAttribute("data-player",E),l.querySelector("head").appendChild(I),
B=I.sheet;I=D.complement;var O=new P(23,35,34,0.75),ua=(new P(0,0,0,0.15)).overlayOn(D);3>O.contrast(I).ratio&&I.lighten(5,3,O);O=40>D.lightness?D.clone().lighten(15,3,D):D.clone().darken(15,3,D);s.addCssRule(H(e,!0),"color:"+D.hex+" !important",B);s.addCssRule(H(b,!0),"color:"+I.hex+" !important",B);s.addCssRule(H(a),"color:"+D.hex,B);s.addCssRule(H(u),"fill:"+D.hex,B);s.addCssRule(H(r),"stroke:"+D.hex,B);s.addCssRule(H(v),"background-color:"+D.hex,B);s.addCssRule(H(t),"border-color:"+D.hex,B);s.addCssRule(H(d),
"color:"+I.hex,B);s.addCssRule(H(g),"fill:"+I.hex,B);s.addCssRule(H(h),"fill:"+O.hex,B);s.addCssRule(H(n),"stroke:"+O.hex,B);s.addCssRule(H(x),"border-color:"+ua.hex,B);s.addCssRule(H(G),"background-color:"+ua.hex,B);0.95<D.luminance&&(I=D.clone().darken(15,3,D),s.addCssRule(H(w),"color:"+I.hex,B),s.addCssRule(H(k),"fill:"+I.hex,B),s.addCssRule(H(C),"stroke:"+I.hex,B),O=I.clone().darken(15,3,I),s.addCssRule(H(h),"fill:"+O.hex,B),s.addCssRule(H(n),"stroke:"+O.hex,B));175<D.yiq&&0.95>D.luminance&&(N=
O.clone().darken(15,3,O),s.addCssRule(H(h),"fill:"+N.hex,B),s.addCssRule(H(n),"stroke:"+N.hex,B),s.addCssRule(H(A),"color:"+O.hex,B),s.addCssRule(H(q),"fill:"+O.hex,B),s.addCssRule(H(F),"stroke:"+O.hex,B));N={main:D.hex,selected:O.hex,sidedockHover:N?O.hex:0.95<D.luminance?I.hex:P.white.hex,sidedockSelected:0.95<D.luminance?I.hex:D.hex,sidedockSelectedHover:N?N.hex:O.hex};L._colors=N;L.embed.color=N.main.replace("#","");m.fire(c.colorChanged,L.embed.color)});m.fire(ka,L.embed.color)})();return{}}}(),
fb=function(){return function(e,b,a){function d(){clearTimeout(k);k=null}function g(){L&&(clearTimeout(k),k=setTimeout(h,C))}function u(){BigScreen.element&&BigScreen.element===a&&!F&&(a.style.cursor="none",F=q=!0)}function h(a){if(G||x)d(),l.activeElement&&(J.contains(l.activeElement)||K.contains(l.activeElement))||(b.fire(a?c.mousedOut:c.mouseTimeout),q=!0,E.classList.add("hidden"),E.setAttribute("hidden",""),A=!0,u())}function z(){G&&x||(b.fire(c.mousedOver),E.classList.remove("hidden"),E.removeAttribute("hidden"));
g()}function n(){G||x?a.setAttribute("tabindex","-1"):G||x||a.setAttribute("tabindex","0")}function s(){b.on([c.playProgress,c.seeked],function I(a){a>=m&&null===k&&(b.fire(c.targetTimeReached),b.off([c.playProgress,c.seeked],I))})}var t=2E3,w=4500,k=null,C=v.touch?w:t,A=!0,q=!0,F=!1,x=!0,G=!1,L=!1,m=1.75,E=a.querySelector(".target"),J=a.querySelector(".sidedock"),K=a.querySelector(".controls"),H=a.querySelector(".title"),B=a.querySelector(".video");(function(){function c(){b.fire(Ia);z()}function e(b){C=
t;q?q=!1:(F&&(a.style.cursor="default",F=!1),0===b.screenX||b.screenX===screen.width-1||0===b.screenY||b.screenY===screen.height-1?(d(),u(),f&&(h(!0),f=!1)):(f=!0,A&&z(),g()))}function k(){C=w;g()}function m(){h(!0)}function n(a){var b=K.contains(a.target)||J.contains(a.target);G&&x?b||!G&&!x||h(!0):z();if(a.target===E||B.contains(a.target))return!1}function ua(a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)return C=t,c(a);C=w;n(a)}function l(a){if("mouse"===a.pointerType||
a.pointerType===a.MSPOINTER_TYPE_MOUSE)return e(a)}function r(a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)return m(a)}var f=!0;if(v.pointerEvents)Gator(a).on("pointerenter",ua).on("pointermove",l).on("pointerleave",r);else Gator(a).on("touchmove",k).on("touchend",n).on("mouseenter",c).on("mousemove",e).on("mouseleave",m)})();(function(){b.on([c.ended,c.played,c.paused],z).on([c.bufferEnded,c.scrubbingEnded,c.volumeChanged],g).on(c.playInitiated,function(){L=!0});b.on(c.controlBarVisibilityChanged,
function(a){x=a;n()}).on(c.sidedockVisibilityChanged,function(a){G=a;n()})})();(function(){var d=!1,g=!1,q=0;b.on(c.menuVisibilityChanged,function(a){g=a});Gator(a).on(v.pointerEvents?"pointerup":"click",function(a){!g&&2!==a.button&&a.target.classList&&(a.target.classList.contains("title")||a.target.classList.contains("sidedock")||a.target.classList.contains("target")||H.contains(a.target.parentNode)&&"HEADER"===a.target.parentNode.tagName||B.contains(a.target))&&("pointerup"!==a.type&&"MSPointerUp"!==
a.type||"mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)&&(q++,1===q&&setTimeout(function(){1===q?b.fire(e._video.paused?c.playButtonPressed:c.pauseButtonPressed):b.fire(c.fullscreenButtonPressed);q=0},200))});Gator(a).on("mousedown",".video-wrapper",function(a){if(!d)return E.classList.remove("hidden"),E.removeAttribute("hidden"),2!==a.button&&l.createEvent&&(a=l.createEvent("MouseEvents"),a.initMouseEvent("click",!0,!0,r,1,0,0,0,0,!1,!1,!1,!1,0,null),E.dispatchEvent(a)),!1}).on("contextmenu",
".video",function(a){E.classList.remove("hidden");E.removeAttribute("hidden");return!1});b.on(Ja,function(a){a?(d=!0,E.classList.add("hidden")):(d=!1,E.classList.remove("hidden"))})})();(function(){if(!v.touch){var d,e;Gator(a).on("focus","a, button, input, [tabindex]",function(){e=this;clearTimeout(d);d=null;l.activeElement===this&&z()});Gator(a).on("blur","a, button, input, [tabindex]",function(){l.activeElement===this&&(d=setTimeout(h,50))});a.addEventListener("focus",function(a){z();e&&e.focus()},
!1);b.on(c.overlayOpened,function(){a.setAttribute("tabindex","-1")})}})();(function(){b.on(c.didEnterFullscreen,u).on(c.didExitFullscreen,function(a){A=!0;a?h():(z(),d())})})();s();(function(){b.on(qa,function(){x=q=A=!0;L=G=!1;s();d()})})();return{}}}(),hb=function(){function e(a,b,c){a+="";return Array(b-a.length+1).join(c||"0")+a}function b(a,b){var c=Math.floor(a/3600%60),u=Math.floor(a/60%60);a=Math.floor(a%60);if(b){var h=a+" second"+(1===a?"":"s");0<u&&(h=u+" minute"+(1===u?"":"s")+", "+h);
0<c&&(h=c+" hour"+(1===c?"":"s")+", "+h);return h}return(0<c?c+":":"")+e(u,2)+":"+e(a,2)}return function(a,d,e){function u(){if(!y){var a=ca.getBoundingClientRect().right;ca.offsetWidth<ca.clientWidth&&(a*=100);var b=parseInt(r.getComputedStyle(ca,"").borderRightWidth,10);y=a-b}return y}function h(a){var b;if(!P){b=ca.getBoundingClientRect().left;ca.offsetWidth<ca.clientWidth&&(b*=100);var c=parseInt(r.getComputedStyle(ca,"").borderLeftWidth,10);P=b+c}b=P;c=u()-b;return s.limit((a-b)/c,0,1)}function z(){if(Ca&&
!f&&p&&(a._video.loadProgress||a._video.currentTime)){var b=(a._video.loadProgress||0)/a.video.duration*65,c=(a._video.currentTime||0)/a.video.duration*65;r.requestAnimationFrame(function(){R.setAttribute("width",b);ba.setAttribute("width",c)})}}function n(b,c){K&&!fa&&(c=c||a.video.duration*b||0,r.requestAnimationFrame(function(){M(b,c);t(b,c)}))}function M(a,c){oa.style.left=Math.min(s.round(100*a),100)+"%";ka.innerHTML=b(c)}function t(a,c){la.style.width=Math.min(s.round(100*a),100)+"%";la.setAttribute("aria-valuenow",
s.round(c));la.setAttribute("aria-valuetext",b(Math.round(c),!0)+" played")}function w(a,c){pa.style.width=Math.min(s.round(100*a),100)+"%";pa.setAttribute("aria-valuenow",s.round(c));pa.setAttribute("aria-valuetext",b(c,!0)+" loaded")}function k(){K=!0;Aa&&(p=!1,e.classList.add("invisible"),L(),F());S.classList.contains("state-playing")?(d.fire(c.pauseButtonPressed),C()):(d.fire(c.playButtonPressed),A())}function C(){V=!1;S.classList.remove("state-playing");S.classList.add("state-paused");var a=
S.getAttribute("data-title-play");S.setAttribute("title",a);S.setAttribute("aria-label",a)}function A(){V=!0;Aa&&L();S.classList.add("state-playing");S.classList.remove("state-paused");var a=S.getAttribute("data-title-pause");S.setAttribute("title",a);S.setAttribute("aria-label",a)}function q(){!p||J||!(K&&ua||B)||H||va&&!B||B&&a.view===ha||Z||D||(p=!1,d.fire(c.controlBarVisibilityChanged,p),e.classList.add("invisible"))}function F(){p||B||(e.classList.remove("hidden"),e.removeAttribute("hidden"),
z(),setTimeout(function(){p=!0;d.fire(c.controlBarVisibilityChanged,p);e.classList.remove("invisible")},0))}function x(b,c){var e=[];"text_tracks"in a.request&&(a.request.text_tracks.forEach(function(a){var b=a.lang+"."+a.kind,c="CC"===a.label.substring(a.label.length-2);e.push({label:a.label+("captions"!==a.kind||c?"":" CC"),id:b,active:ea===b})}),e.push({label:"None",id:"off",active:null===ea}));var f=new pb(e,b,c,d);f.on("selected",function(a){"off"===a?d.fire(Ma):d.fire(La,a)});return f}function G(){r.requestAnimationFrame(function(){M(0,
a.video.duration);t(0,0);w(0,0)})}function L(){if(a.view===na||a.view===ha){var c=a.embed.settings,d={show:c.logo,showLink:!!a.video.url,url:a.video.url};if(c.custom_logo){var f=c.custom_logo,q=f.img;2<=v.devicePixelRatio&&(q=q.replace(/(mw|mh)=(\d+)/g,function(a,b,c){return b+"="+2*parseInt(c,10)}));f={showLink:null!==f.url,url:f.url,img:q,sticky:f.sticky,width:f.width,height:f.height}}!a.video.vod||!a.video.vod.is_trailer&&!a.video.vod.is_free_episode||K||V||a.embed.autoplay?(q="text_tracks"in a.request&&
a.request.text_tracks.length,c={targetBlank:0===a.embed.on_site,playState:V?"playing":"paused",volume:E&&c.volume,ccButton:ra.support.textTracks&&q,ccOn:null!==ea,hdButton:a.video.hd,hdOn:a.video.allow_hd&&(null===a.request.cookie.hd?a.video.default_to_hd:a.request.cookie.hd),airplayButton:v.airPlay,scalingButton:c.scaling,fullSize:a.request.cookie.scaling?1:0,fullscreenButton:c.fullscreen,vimeoLogo:d,duration:b(a.video.duration),rawDuration:a.video.duration},f&&(c.customLogo=f),e.classList.remove("trailer"),
Aa=!1,e.innerHTML=Aftershave.render("controlbar",c),S=e.querySelector(".play"),T=S.querySelector(".buffer"),R=S.querySelector(".loaded"),ba=S.querySelector(".played"),Q=e.querySelector(".play-bar"),ca=e.querySelector(".progress"),Y=Q.querySelector(".buffer"),pa=Q.querySelector(".loaded"),la=Q.querySelector(".played"),oa=e.querySelector(".timecode"),ka=oa.querySelector(".box"),ia=e.querySelector(".ghost-timecode"),ma=ia.querySelector(".box"),(W=e.querySelector(".volume"))&&(za=[].slice.call(W.querySelectorAll("div"),
0)),aa=e.querySelector(".hd"),da=e.querySelector(".play-bar .cc"),v.airPlay&&(X=e.querySelector(".airplay")),wa=e.querySelector(".scaling"),U=e.querySelector(".fullscreen"),H=!1):(e.classList.add("trailer"),c={vimeoLogo:d,text:a.video.vod.button_text||"Watch Trailer"},f&&(c.customLogo=f),e.innerHTML=Aftershave.render("controlbar_trailer",c),S=e.querySelector(".play"),Aa=!0)}}function m(){d.on(c.loadProgress,function(a,b,c){J||r.requestAnimationFrame(function(){w(c,a);z()})})}var E=!0,J=!1,K=!1,H=
!1,B=!1,D=!1,I=!1,Z=!1,N=!1,O=!1,ua=!1,fa=!1,Ca,f=!1,p=!0,V=!1,Aa=!1,y=null,P=null,S,T,R,ba,Q,ca,Y,pa,la,oa,ka,ia,ma,W,za,aa,da,$,ea=null,X,va=!1,wa,U;L();(function(){s.attachClickHandler(e,".play",k);d.on([c.playInitiated,c.playButtonPressed],A);d.on([c.pauseButtonPressed,c.paused,c.error],C);d.on(c.played,function(){A()});d.on(c.ended,function(){fa=!1;C();n(1)});d.on(c.overlayOpened,function(a){"notsupported"===a&&C()})})();(function(){function b(a){if(q===a.pointerId&&!1!==a.isPrimary){var c=a.clientX;
a.targetTouches&&0<a.targetTouches.length&&(c=a.targetTouches[0].clientX,a.preventDefault());a=h(c);n(a);d.fire(Da,a)}}function f(a){var q=a.type;"pointerup"===q||"MSPointerUp"===q?Gator(e).off("pointermove",".progress",b).off("pointerup",".progress",f):"touchend"===a.type?Gator(e).off("touchmove",b).off("touchend",f):Gator(l).off("mousemove",b).off("mouseup",f);d.fire(c.scrubbingEnded)}d.on(c.playProgress,function(b,c,d){fa&&(0===a.embed.time||0<a.embed.time&&b>=a.embed.time)&&(fa=!1);D||(n(d,b),
z())});d.on(c.scrubbingStarted,function(a){D=!0;I=a});d.on(c.scrubbingEnded,function(){I=D=!1});var q;d.on(c.seeked,function(a,b,c){I&&n(c)});Gator(e).on(v.pointerEvents?"pointerdown":["touchstart","mousedown"],".progress",function(a){if(!a.button||2!==a.button){d.fire(c.scrubbingStarted);var x=a.type;if("pointerdown"===x||"MSPointerDown"===x){q=a.pointerId;try{a.target.msSetPointerCapture?a.target.msSetPointerCapture(q):a.target.setPointerCapture(q)}catch(k){}Gator(e).on("pointermove",".progress",
b).on("pointerup",".progress",f)}else if("touchstart"===x)Gator(e).on("touchmove",b).on("touchend",f);else Gator(l).on("mousemove",b).on("mouseup",f);x=a.clientX;a.targetTouches&&0<a.targetTouches.length&&(x=a.targetTouches[0].clientX,a.preventDefault());a=h(x);n(a);d.fire(Da,a,null);return!1}})})();(function(){d.on(c.bufferStarted,function(){Y.classList.remove("hidden");T.setAttribute("class",T.getAttribute("class").replace(/\s+hidden/,""));Z=!0;F()});d.on(c.bufferEnded,function(){Y.classList.add("hidden");
T.setAttribute("class",T.getAttribute("class")+" hidden");Z=!1})})();(function(){function f(a){a.target===Q&&(a=h(a.clientX),n(a),d.fire(Da,a))}function q(){ia&&ia.classList.add("invisible");O=!1;Gator(Q).off("click",f)}Gator(e).on("mouseenter",".progress",function(a){O||(r.requestAnimationFrame(function(){ia.classList.remove("invisible");O=!0}),Gator(Q).on("click",f))}).on("mousemove",".play-bar",function(c){if(O){var d=h(c.clientX),e=(100*d).toFixed(3);r.requestAnimationFrame(function(){ia.style.left=
e+"%";ma.innerHTML=b(a.video.duration*d);c.clientX>u()+10&&q()})}}).on("mouseleave",".play-bar",q);Gator(e).on("transitionend",".ghost-timecode",function(a){"opacity"===a.propertyName&&"0"===r.getComputedStyle(this,"").opacity&&(ia.style.left=0)},!1);d.on(c.mousedOut,q)})();(function(){function a(b){var c=b.clientX;b.targetTouches&&(c=b.targetTouches[0].clientX,b.preventDefault());b=q(c);d.fire(ga,b);f(b)}function b(f){N=!1;d.fire(c.volumeScrubbingEnded);var q=f.type;"pointerup"===q||"MSPointerUp"===
q?Gator(e).off("pointermove",".volume",a).off("pointerup",".volume",b):"touchend"===f.type?Gator(l).off("touchmove",a).off("touchend",b):Gator(l).off("mousemove",a).off("mouseup",b);W.setAttribute("tabindex",W.getAttribute("data-tabindex"));W.removeAttribute("data-tabindex")}function f(a){if(W){var b=a/(1/za.length),c=Math.ceil(b),d=b%1,e;0.33>=d&&(e="fill1");0.33<d&&0.66>=d&&(e="fill2");za.forEach(function(a,b){a.classList.remove("fill0");a.classList.remove("fill1");a.classList.remove("fill2");b===
c-1&&d&&0.66>=d?a.classList.add(e):b>c-1&&a.classList.add("fill0")});W.setAttribute("aria-valuenow",a.toFixed(3));W.setAttribute("aria-valuetext",Math.round(100*a)+"%")}}function q(a){var b=W.getBoundingClientRect().left,c=W.getBoundingClientRect().right-b;return s.limit((a-b)/c,0,1)}Gator(e).on("mouseover",".volume div",function(){var a=this;a.classList.add("hover");r.requestAnimationFrame(function(){r.requestAnimationFrame(function(){a.classList.remove("hover");a.classList.add("animate")})})});
Gator(e).on("transitionend",".volume div",function(a){"height"===a.propertyName&&12===this.clientHeight&&this.classList.remove("animate")});Gator(l).on("contextmenu",".volume",function(){this.blur()});var x;Gator(e).on(v.pointerEvents?"pointerdown":["touchstart","mousedown"],".volume",function(k){if(1===k.which){W.setAttribute("data-tabindex",W.getAttribute("tabindex"));W.removeAttribute("tabindex");N=!0;d.fire(c.volumeScrubbingStarted);var h=k.type;if("pointerdown"===h||"MSPointerDown"===h){x=k.pointerId;
try{k.target.msSetPointerCapture?k.target.msSetPointerCapture(x):k.target.setPointerCapture(x)}catch(A){}Gator(e).on("pointermove",".volume",a).on("pointerup",".volume",b)}else if("touchstart"===h)Gator(l).on("touchmove",a).on("touchend",b);else Gator(l).on("mousemove",a).on("mouseup",b);h=k.clientX;k.targetTouches&&(h=k.targetTouches[0].clientX);k=q(h);d.fire(ga,k);f(k)}});d.on(c.volumeChanged,function(a){!N&&za&&f(a)})})();(function(){function a(b){ea=b;$&&($.setActiveItem(b),setTimeout(function(){$.hide()},
100));da&&(da.classList.add("on"),da.classList.remove("off"))}function b(){ea=null;$&&($.setActiveItem("off"),setTimeout(function(){$.hide()},100));da&&(da.classList.add("off"),da.classList.remove("on"))}s.attachClickHandler(e,".cc",function(){d.fire(c.ccButtonPressed)});d.on(c.ccButtonPressed,function(a){$?a&&$.toggle(a):(0,$=x(da,Q),$.show(a))});d.on(c.captionsChanged,function(c){if(c)return a(c);b()}).on(c.controlBarVisibilityChanged,function(a){a||$&&$.hide()})})();(function(){s.attachClickHandler(e,
".hd",function(){d.fire(c.hdButtonPressed)});d.on(c.hdButtonPressed,function(){if(!a.video.allow_hd)return d.fire(ja,"hd-not-allowed");var b=aa.classList.contains("on")?"sd":"hd";d.fire(Ha,b)});d.on(Ha,function(a){aa&&("hd"===a?(aa.classList.add("on"),aa.classList.remove("off"),aa.setAttribute("title",aa.getAttribute("data-title-on"))):(aa.classList.add("off"),aa.classList.remove("on"),aa.setAttribute("title",aa.getAttribute("data-title-off"))))});d.on(Qa,function(){L()}).on(Va,function(){E=!1;L()})})();
(function(){v.airPlay&&(s.attachClickHandler(e,".airplay",function(){d.fire(c.airPlayButtonPressed)}),d.on(c.airPlayAvailable,function(){X&&(X.classList.remove("hidden"),X.hidden=!1)}).on(c.airPlayNotAvailable,function(){X&&(X.classList.add("hidden"),X.hidden=!0)}).on(c.airPlayActivated,function(){va=!0;X&&(X.classList.add("on"),X.setAttribute("title",X.getAttribute("data-title-on")));F()}).on(c.airPlayDeactivated,function(){va=!1;X&&(X.classList.remove("on"),X.setAttribute("title",X.getAttribute("data-title-off")))}))})();
(function(){function b(a){wa&&(wa.setAttribute("data-full-size",a?"1":"0"),wa.setAttribute("title",wa.getAttribute(a?"data-title-full-size":"data-title-actual-size")))}s.attachClickHandler(e,".scaling",function(){d.fire(c.scalingButtonPressed);d.fire(Ga,!a.request.cookie.scaling)});d.on(Ga,b);b(a.request.cookie.scaling)})();(function(){s.attachClickHandler(e,".fullscreen",function(){d.fire(c.fullscreenButtonPressed)});d.on(c.didEnterFullscreen,function(){f=!0;U&&(U.setAttribute("title",U.getAttribute("data-title-unfullscreen")),
U.classList.remove("tiny"))});d.on(c.didExitFullscreen,function(a){f=!1;U&&U.setAttribute("title",U.getAttribute("data-title-fullscreen"));z();a||(J=!0,G());Ca&&U&&U.classList.add("tiny")})})();(function(){d.on([c.mousedOver,c.bufferStarted,c.scrubbingStarted,ga],F).on([c.mousedOut,c.mouseTimeout],q).on(c.willEnterFullscreen,function(){H=!1;q()}).on(c.willExitFullscreen,function(){H=!1}).on(c.targetTimeReached,function(){ua=!0;q()}).on(ga,function(a,b){b||F()});Gator(e).on(["pointerenter","pointerleave",
"mouseenter","mouseleave"],[".play",".play-bar",".custom-logo",".menu"],function(a){if("pointerType"in a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)H="pointerenter"===a.type||"MSPointerEnter"===a.type}else H="mouseover"===a.type});Gator(e).on("transitionend",function(a){this===e&&"opacity"===a.propertyName&&e.classList.contains("invisible")&&(e.classList.add("hidden"),e.setAttribute("hidden",""))})})();(function(){d.on(c.overlayOpened,function(a){if("notsupported"!==a&&"private-unlocked"!==
a&&"help"!==a)B=!0,q();else{a=e.querySelectorAll("a, button, input, [tabindex]");for(var b=0,c=a.length;b<c;b++){var d=a[b].getAttribute("tabindex");d&&a[b].setAttribute("data-tabindex",d);a[b].setAttribute("tabindex","-1")}}}).on(c.overlayClosed,function(){B=!1;F();for(var a=e.querySelectorAll("[tabindex]"),b=0,c=a.length;b<c;b++){var d=a[b].getAttribute("data-tabindex");d&&"null"!==d?a[b].setAttribute("tabindex",d):a[b].removeAttribute("tabindex");a[b].removeAttribute("data-tabindex")}})})();(function(){d.on(c.configChanged,
function(b){a=b;L();a.view===ha&&F();P=y=null})})();(function(){d.on(qa,function(){G();F();ua=J=fa=N=D=H=K=!1;$&&($.destroy(),$=null)});Gator(r).on("resize",function(){P=y=null})})();(function(){d.on(c.enteredTinyMode,function(){Ca=!0;U&&U.classList.add("tiny")}).on(c.enteredMiniMode,function(){Ca=!1;U&&U.classList.remove("tiny")}).on(c.enteredNormalMode,function(){Ca=!1;U&&U.classList.remove("tiny")})})();d.on(c.playInitiated,function(){m();K=!0;var b=a.embed.time||a._video.currentTime;n(b/a.video.duration,
b);fa=!0});d.fire(c.controlBarModuleReady);return{}}}(),nb=function(){var e=0.05,b={16:"shift",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down"};return function(a,d,g){function u(){L&&"help"===m&&d.fire(c.overlayCloseButtonPressed)}function h(a){"number"!==typeof a.which&&(a.which=a.keyCode);return a}function r(a){if("keypress"===a.type){var c=String.fromCharCode(a.which);a.shiftKey||(c=c.toLowerCase());return c}return a.which in b?b[a.which]:String.fromCharCode(a.which).toLowerCase()}function n(a){a=
a.target||a.srcElement;return"INPUT"===a.tagName||"SELECT"===a.tagName||"TEXTAREA"===a.tagName||a.isContentEditable}function v(a){a=s.isArray(a)?a:[a];if(L&&"help"===m){d.fire(c.overlayCloseButtonPressed);if(a[0]===ja&&"help"===a[1])return!1;if(a[0]!==xa)return setTimeout(function(){d.fire.apply(null,a)},250),!1}d.fire.apply(null,a);return!1}function t(b,e){I||(e&&!a._video.paused&&d.fire(c.pauseButtonPressed),d.fire(c.scrubbingStarted,!0),I=!0);var q=D,k=Math.ceil(J),x=Math.ceil(K-J),q=q/H;q--;B=
x*(q*q*q+1)+k;D++;1===D&&(B=a.video.fps);k=e?1:B;k="right"===b?k:-k;k=(Math["right"===b?"ceil":"floor"](a._video.currentTime*a.video.fps)+k)/a.video.fps;d.fire(Da,null,k)}function w(a){var b=E.focusableItems,c=b.indexOf(l.activeElement);a="up"===a?c-1:c+1;c=null;return(c=a>=b.length?b[0]:0>a?b[b.length-1]:b[a])?(c.focus(),!1):!0}function k(){if(E)return!0;if(!l.activeElement||l.activeElement===l.body)return d.fire(c[a._video.paused?"playButtonPressed":"pauseButtonPressed"]),u(),!1}function C(){if(E)return E.element.contains(l.activeElement)&&
E.button.focus(),E.hide(),!1;if(l.activeElement&&g.contains(l.activeElement))return l.activeElement.blur(),!0;if(L)return d.fire(c.overlayCloseButtonPressed),!1}function A(){if(E)return E.element.contains(l.activeElement)?w("up"):!0;if(a.embed.on_site&&l.activeElement&&!g.contains(l.activeElement))return!0;u();d.fire(ga,e,!1,!0);return!1}function q(){if(E)return E.element.contains(l.activeElement)?w("down"):!0;if(a.embed.on_site&&l.activeElement&&!g.contains(l.activeElement))return!0;u();d.fire(ga,
-e,!1,!0);return!1}function F(a,b){if(E)return E.element.contains(l.activeElement)?w("left"===b?"up":"down"):!0;u();if(l.activeElement&&l.activeElement===G)return d.fire(ga,"left"===b?-e:e,!1,!0),!1;a.shiftKey||0===D?t(b,a.shiftKey):Z(b,a.shiftKey)}var x=!!a.embed.on_site,G=g.querySelector(".volume"),L=!1,m,E=!1,J=a.video.fps/5,K=Math.max(J,0.618*a.video.duration),H=100,B=J,D=0,I=!1,Z=s.throttle(t,80);(function(){d.on(c.overlayOpened,function(a){L=!0;m=a;"notsupported"===a&&(x=!0)});d.on(c.overlayClosed,
function(){L=!1;m=null})})();(function(){d.on(c.menuVisibilityChanged,function(a,b){E=a?b:!1})})();(function(){d.on(c.configChanged,function(b,c){a=b;c&&(x=!1)})})();(function(){function e(c){h(c);var d;d=c.ctrlKey||c.metaKey||c.altKey?!1:c.which in b?"keydown"===c.type:"keypress"===c.type;d&&!n(c)&&(x?0:a.view===na||a.view===ha)&&(d=r(c),d in g&&("function"===typeof g[d]?!1===g[d](c,d)&&(c.preventDefault(),c.stopPropagation()):!1===v(g[d])&&(c.preventDefault(),c.stopPropagation())))}var g={l:c.likeButtonPressed,
w:c.watchLaterButtonPressed,s:c.shareButtonPressed,c:[c.ccButtonPressed,!0],h:c.hdButtonPressed,f:c.fullscreenButtonPressed,space:k,up:A,down:q,left:F,right:F,esc:C,"?":[ja,"help"]};a.embed.on_site||(g.v=xa);l.addEventListener("keydown",e,!1);l.addEventListener("keypress",e,!1);l.addEventListener("keyup",function(b){h(b);if(!n(b)&&(x?0:a.view===na||a.view===ha)){var e=r(b);if("left"===e||"right"===e)B=J,D=0,d.fire(c.scrubbingEnded,b.shiftKey),I=!1}},!1)})();(function(){d.on(c.becameActive,function(){x=
!1}).on(c.becameInactive,function(){x=!0});a.embed.on_site&&l.querySelector(".player")===g&&(x=!1)})();return{pause:function(){x=!0},unpause:function(){x=!1}}}}(),pb=function(){return function(e,b,a,d){function g(){var c=b.getBoundingClientRect(),d=a.getBoundingClientRect(),e=w.getBoundingClientRect(),q=c.left+c.width/2-e.width/2-d.left,k=d.height,e=d.left+q+e.width,g=a.classList.contains("play-bar")?d.right:d.width-parseInt(r.getComputedStyle(a).paddingRight,10);e>g&&(q-=e-g,c=c.left-(d.left+q)+
c.width/2,c!==A&&(s.addCssRule(".player .menu::after","left:"+c+"px",l.styleSheets[l.styleSheets.length-1]),A=c));w.style.left=q+"px";w.style.bottom=k+"px"}function u(a){var b=l.createElement("ul");b.classList.add("menu");b.classList.add("rounded-box");b.classList.add("hidden");b.classList.add("invisible");b.setAttribute("hidden","");b.setAttribute("id",q);b.setAttribute("role","menu");var c=l.createDocumentFragment();a.forEach(function(a){var b=l.createElement("li");b.setAttribute("tabindex","0");
b.setAttribute("role","menuitemradio");b.setAttribute("aria-checked","false");b.setAttribute("data-id",a.id);b.innerHTML="<span>"+a.label+"</span>";a.active&&(b.classList.add("active"),b.setAttribute("aria-checked","true"),k=b);c.appendChild(b)});b.appendChild(c);return b}function h(a){a=a||b.contains(l.activeElement);w.classList.remove("hidden");w.removeAttribute("hidden");g();g();b.setAttribute("aria-expanded","true");C=!0;d.fire(c.menuVisibilityChanged,C,v);r.requestAnimationFrame(function(){w.classList.remove("invisible");
w.classList.add("open");a&&(k||[].slice.call(w.querySelectorAll("[tabindex]"),0)[0]).focus()})}function z(){b.setAttribute("aria-expanded","false");C=!1;d.fire(c.menuVisibilityChanged,C,v);w.classList.add("invisible")}function n(a){if(C)return z(),!1;h(a);return!0}var v,t=Ea.make(),w=null,k=null,C=!1,A,q="menu-"+Math.round(1E3*Math.random()+(new Date).getTime());(function(){w=u(e);b.setAttribute("aria-controls",q);b.setAttribute("aria-expanded","false");b.setAttribute("aria-haspopup","true");s.attachClickHandler(w,
["li","span"],function(){t.fire("selected",("SPAN"===this.tagName?this.parentElement:this).getAttribute("data-id"))});s.attachClickHandler(b,function(){n()});Gator(r).on("focus",function(){w.contains(l.activeElement)||l.activeElement===b||z()});var c=function(a){if(("keypress"===a.type&&13===a.which||"keydown"===a.type&&32===a.which)&&w.contains(l.activeElement))return t.fire("selected",l.activeElement.getAttribute("data-id")),z(),!1};Gator(w).on("keydown",c);Gator(w).on("keypress",c);a.insertBefore(w,
b.nextSibling)})();(function(){Gator(l).on("click",function(a){C&&!b.contains(a.target)&&z()});Gator(w).on("transitionend",function(a){this===w&&"opacity"===a.propertyName&&w.classList.contains("invisible")&&(w.classList.add("hidden"),w.setAttribute("hidden",""),w.classList.remove("open"))});r.addEventListener("blur",z,!1);d.on(c.didExitFullscreen,z).on(c.controlBarVisibilityChanged,function(a){a||z()})})();return v={show:h,hide:z,toggle:n,setActiveItem:function(a){k&&(k.classList.remove("active"),
k.setAttribute("aria-checked","false"));if(a=w.querySelector('[data-id="'+a+'"]'))a.classList.add("active"),k.setAttribute("aria-checked","true"),k=a},on:t.on,off:t.off,destroy:function(){w.parentElement.removeChild(w)},button:b,element:w,get focusableItems(){return[].slice.call(w.querySelectorAll("[tabindex]"),0)}}}}(),eb=function(){return function(e,b){function a(){return Date.now?Date.now():(new Date).getTime()}function d(b){var c=!0;b&&(c=!1,t&&!w&&(b=a()-k,1E3<=b&&g("video-exit-before-start",
{time:b/1E3})));b=u;u=[];if(0!==b.length&&(b=JSON.stringify(b),!navigator.sendBeacon||!navigator.sendBeacon(l,b))){var e=new XMLHttpRequest;e.open("POST",l,c);e.setRequestHeader("Content-Type","text/plain");e.onload=function(){};e.send(b)}s=!0;setTimeout(d,n)}function g(a,b){var c;c=e._video.currentFile||e._video.previousFile;e._video.currentFile||(c.id=0,c.profile=-1);c={clip_id:e.video.id,video_file_id:c.id||0,delivery:c.hls?"hls":"progressive",profile_id:c.profile||-1,player_type:"html",autoplay:e.embed.autoplay,
cdn:c.cdn||"akamai",origin:c.origin,secure:c.url&&0===c.url.indexOf("https"),vod:e.video.vod?1:0,embed:!e.embed.on_site};for(var k in b)b.hasOwnProperty(k)&&(c[k]=b[k]);c.name=a;c.event_time=e.request.timestamp+(parseInt(Date.now()/1E3,10)-h);u.push(c);s||(s=!0,setTimeout(d,n))}var u=[],h=parseInt(Date.now()/1E3,10),l=e.request.urls.blurr,n=3E4,s=!1,t=!1,w=!1,k,v,A;(function(){e.request.flags.blurr&&(l?(0,b.on(c.playInitiated,function(){t||(g("video-start-attempt"),t=!0,k=a(),g("video-fullscreen-enabled",
{enabled:BigScreen.enabled}))}),b.on(c.playProgress,function(){if(!w){w=!0;var b=(a()-k)/1E3;g("video-start-time",{time:b})}}),b.on(c.bufferStarted,function(){v||(A=e._video.currentTime,v=a())}),b.on(c.bufferEnded,function(){w&&g("video-buffered",{time:(a()-v)/1E3,video_time:A});v=null}),b.on(c.error,function(a){if(t){var b=-1!==["not-supported","decode","network","unknown"].indexOf(a);w?b&&g("video-playback-error",{type:a,video_time:e._video.currentTime}):b&&g("video-start-failure",{type:a})}}),
r.addEventListener("beforeunload",d,!1)):0)})();(function(){b.on(c.configChanged,function(a){e=a;w=t=!1;h=parseInt(Date.now()/1E3,10);l=e.request.urls.blurr})})()}}(),jb=function(){return function(e,b,a){function d(b){b="watchlater"===b||"unwatchlater"===b?0.5:0.4;var c=a.clientHeight;a.clientHeight>a.clientWidth&&(c=a.clientWidth);return{height:Math.round(c*b),width:Math.round(c*b*1.6)}}function g(a,b){var c=a.querySelector(".hour-hand"),d=a.querySelector(".minute-hand");if(c&&d){var e=b?1:-1,q=
new Date,g=Math.abs(q.getHours()-12),h=q.getMinutes(),q=h/60*360-135,g=g/12*360+h/60*5,n=g+45*e,u=q+540*e;if(v.browser.firefox||v.browser.opera){c.setAttribute("transform","rotate("+g+",10 10)");d.setAttribute("transform","rotate("+q+",10 10)");h=l.createElementNS("http://www.w3.org/2000/svg","animateTransform");h.setAttribute("attributeName","transform");h.setAttribute("type","rotate");h.setAttribute("begin","0.1s");h.setAttribute("repeatCount","indefinite");var m=h.cloneNode(!1);m.setAttribute("from",
g+" 10 10");m.setAttribute("to",g+360*e+" 10 10");m.setAttribute("dur","0.8s");c.appendChild(m);g=h.cloneNode(!1);g.setAttribute("from",q+" 10 10");g.setAttribute("to",q+360*e+" 10 10");g.setAttribute("dur","9.6s");d.appendChild(g)}else c.style[v.transformProperty+"Origin"]="46% 81.5%",d.style[v.transformProperty+"Origin"]="25.5% 26.5%",c.style[v.transformProperty]="rotate("+g+"deg)",d.style[v.transformProperty]="rotate("+q+"deg)";r.requestAnimationFrame(function(){a.classList.add("animate");v.browser.firefox||
v.browser.opera||r.requestAnimationFrame(function(){c.style[v.transformProperty]="rotate("+n+"deg)";d.style[v.transformProperty]="rotate("+u+"deg)"})})}}function u(b,c){a.classList.remove("hidden");a.removeAttribute("hidden");a.setAttribute("data-name",b);var e=d(b),e="width:"+e.width+"px;height:"+e.height+"px";n.style.cssText=e;n.innerHTML=c;"watchlater"!==b&&"unwatchlater"!==b||g(n,"watchlater"===b);"hd"===b&&(n.querySelector(".hd-notification").style.cssText=e,n.querySelector(".hd-fill").style.cssText=
e);clearTimeout(M);a.classList.remove("animate");r.requestAnimationFrame(function(){a.classList.remove("invisible");"hd"!==b&&(M=setTimeout(h,750))})}function h(){a.classList.add("animate");a.classList.add("invisible")}function s(){a.classList.remove("animate");a.classList.remove("invisible");a.classList.add("hidden");a.setAttribute("hidden","");a.removeAttribute("data-name");n.innerHTML="";n.classList.remove("filled");n.classList.remove("animate");b.fire(c.notificationHidden)}var n=a.querySelector(".notification"),
M;(function(){Gator(a).on("transitionend",function(b){n.contains(b.target)&&"height"===b.propertyName?setTimeout(h,100):b.target===a&&"opacity"===b.propertyName&&r.requestAnimationFrame(s)})})();(function(){b.on(c.liked,function(a){a||u("like",Aftershave.render("icon_heart"))});b.on(c.unliked,function(a){a||u("unlike",Aftershave.render("icon_broken_heart"))})})();(function(){b.on(c.addedToWatchLater,function(a){a||u("watchlater",Aftershave.render("icon_clock"))});b.on(c.removedFromWatchLater,function(a){a||
u("unwatchlater",Aftershave.render("icon_clock"))})})();(function(){b.on(Ha,function(a,b){0;b||("sd"===a&&n.classList.add("filled"),r.requestAnimationFrame(function(){u("hd",Aftershave.render("hd_notification",{stroke:Aftershave.render("icon_hd",{stroke:!0,notification:!0}),fill:Aftershave.render("icon_hd",{notification:!0})}),!0);r.requestAnimationFrame(function(){"sd"===a?n.classList.remove("filled"):n.classList.add("filled")})}))})})();(function(){b.on(c.configChanged,function(a){})})();b.fire(c.notificationModuleReady);
return{}}}(),kb=function(){return function(e,b,a){function d(a){if("vod"===e.embed.outro)n={purchased:e.user.purchased,title:e.video.vod.feature_title,url:e.video.vod.url,buttons:e.video.vod.purchase_options,preorder:e.video.vod.date_available},!0===v&&u();else{0;t=!0;var b=new XMLHttpRequest;b.open("GET","//"+e.player_url+"/video/"+e.video.id+"/outro?on_site="+e.embed.on_site,!0);b.withCredentials=!0;b.onload=function(){try{var c=JSON.parse(b.response);0;n=c.data;if("videos"===c.type||"promoted"===
c.type){n={contexts:s.isArray(n)?n:[n],owner:e.video.owner.id};for(var c=0,d=n.contexts.length;c<d;c++)for(var g=0,h=n.contexts[c].videos.length;g<h;g++)(new Image).src=n.contexts[c].videos[g].thumbnail}"function"===typeof a&&a()}catch(x){}};b.send()}}function g(){var a=r.getComputedStyle(l.querySelector("header h1"),null),b=a.getPropertyValue("-webkit-line-clamp"),a=a.textOverflow;if(!b)for(var b=l.querySelectorAll("header h1"),c=0,d=b.length;c<d;c++)if("clip"===a)for(var e=b[c],g=e.innerHTML;e.scrollHeight>
e.offsetHeight;)g=g.substring(0,g.length-1),e.innerHTML=g+"&hellip;";else b[c].style.display="inherit"}function u(){"beginning"===e.embed.outro?b.fire(qa):null!==n||t?n&&("videos"!==e.embed.outro&&"promoted"!==e.embed.outro||0!==n.contexts.reduce(function(a,b){return a+b.videos.length},0))&&(n.target=!e.embed.on_site,l.innerHTML=Aftershave.render("outro_"+("promoted"===e.embed.outro?"videos":e.embed.outro),n),l.setAttribute("data-type",e.embed.outro),a.classList.remove("hidden"),a.removeAttribute("hidden"),
"videos"===e.embed.outro&&g(),r.requestAnimationFrame(function(){r.requestAnimationFrame(function(){a.classList.add("in");var d=[];if(n.contexts)for(var e=0;e<n.contexts.length;e++)for(var g=0;g<n.contexts[e].videos.length;g++){var h=n.contexts[e].videos[g].id,q=l.querySelector('[data-video-id="'+h+'"]');q&&0<q.clientWidth&&d.push(h)}b.fire(c.outroDisplayed,d)})})):d(u)}function h(){r.requestAnimationFrame(function(){a.classList.remove("in");b.fire(c.outroHidden)})}var l=a.querySelector(".outro"),
n=null,v=!1,t=!1;(function(){b.on(c.playProgress,function(a,b,c){v=!1;!t&&null===n&&a>=b-10&&d()})})();(function(){b.on(c.playInitiated,function(){if("nothing"===e.embed.outro||"beginning"===e.embed.outro)n=!1});b.on(c.ended,function(){v=!0;u()});Gator(a).on("click",".videos a",function(a){b.fire(c.outroVideoPressed,parseInt(this.getAttribute("data-video-id"),10))});Gator(a).on("transitionend",function(b){a.classList.contains("in")||(a.classList.add("hidden"),a.setAttribute("hidden",""))},!1);b.on([c.played,
c.seeked,c.scrubbingStarted],h)})();(function(){b.on(ja,function(){setTimeout(function(){a.classList.add("hidden")},150)});b.on(c.overlayClosed,function(){a.classList.contains("in")&&a.classList.remove("hidden")})})();(function(){b.on(qa,function(){n=null;t=!1})})();(function(){b.on(c.configChanged,function(a){e=a})})();(function(){s.attachClickHandler(a,".vod-button",function(){var a=this.getAttribute("data-product-id");b.fire(c.vodButtonPressed,a);return!1});s.attachClickHandler(a,".vod-watch-button",
function(){if(!("date_available"in e.video.vod))return h(),b.fire(c.vodButtonPressed),!1})})();return{}}}(),bb=function(){var e="Uh Oh!{D&rsquo;Oh!{Aw fiddlesticks!{Jeepers!{Oh dear!{Ouch!{Zoinks!{Awww, snap!{Blast!{Curses!{ACK!{Aw shucks.{Major bummer.{Dag-nab-it!{Aargh!{Boo-hoo!{&iexcl;Ay caramba!".split("{");return function(b,a,d){function g(){var a=d.getBoundingClientRect(),b=m.getBoundingClientRect(),c=K.getBoundingClientRect();return a.height-(b.bottom+(a.height-b.bottom)/2)-c.height/2+"px"}
function u(){var a=d.getBoundingClientRect(),b=m.getBoundingClientRect(),c=E.getBoundingClientRect();0;0;0;var e=a.height/2,a=b.bottom+(a.height-b.bottom)/2;0;0;return{top:e-c.height/2+"px",transform:"translateY("+(a-e)+"px)"}}function h(b,e){0;d.setAttribute("data-name",b);m.innerHTML=e.template;N=l.activeElement;N.blur();e.modal&&(d.classList.add("modal"),d.setAttribute("data-modal","true"));e.wrapperClass&&d.classList.add(e.wrapperClass);e.icon.type&&(e.logo&&(K.classList.remove("hidden"),E.classList.add("cloaked"),
r.requestAnimationFrame(function(){K.innerHTML=Aftershave.render("logo");K.style.bottom=g()})),E.classList.remove("hidden"),J.innerHTML=e.icon.html,r.requestAnimationFrame(function(){var a=u();E.style.top=a.top;E.style[v.transformProperty]=a.transform}),d.setAttribute("data-icon",e.icon.type),E.setAttribute("data-icon",e.icon.type),J.setAttribute("data-icon",e.icon.type),"private-unlocked"===b&&J.classList.add("open"));d.classList.add("invisible");d.classList.remove("hidden");d.removeAttribute("hidden");
d.classList.add("in");Z=e;I=b;D=!0;a.fire(c.overlayOpened,b);-1<["share","hd-not-allowed"].indexOf(b)&&s.resetFocus(d);r.requestAnimationFrame(function(){d.classList.remove("invisible");r.requestAnimationFrame(function(){m.classList.add("in");L.classList.add("in")})})}function z(){m.classList.remove("in");m.classList.add("out")}function n(b){"true"!==d.getAttribute("data-modal")&&D&&(L.classList.remove("in"),L.classList.add("out"),z(),d.classList.remove("in"),d.classList.add("out"),clearTimeout(H),
H=setTimeout(M,200),b&&b.preventDefault&&b.preventDefault(),(b=d.querySelector(".back"))&&b.classList.add("cloaked"),a.fire(c.overlayClosed),D=!1,Z=I=null,r.requestAnimationFrame(function(){N&&(N.focus(),N=null)}))}function M(){d.setAttribute("hidden","");d.removeAttribute("data-name");d.removeAttribute("data-icon");d.classList.add("hidden");d.classList.remove("out");d.classList.remove("embed-active");d.classList.remove("modal");d.classList.remove("embed-only");L.classList.remove("out");L.classList.remove("in");
E.removeAttribute("data-icon");E.classList.add("hidden");E.classList.remove("animate");J.removeAttribute("data-icon");J.innerHTML="";K.classList.add("hidden");m.classList.remove("out");m.innerHTML="";a.fire(c.overlayCleared)}function t(){d.setAttribute("data-modal","false")}function w(a){if("yes"===a.form.getAttribute("data-bubble")){a.form.setAttribute("data-bubble","no");var b=d.querySelector(".validation-bubble");b.querySelector(".validation-bubble-message").innerHTML=a.validationMessage||"There is an error with this input.";
var c=a.getBoundingClientRect(),e=a.form.getBoundingClientRect();b.style.left=c.left-e.left+"px";b.style.top=c.height+1+"px";b.classList.remove("hidden");a.focus();r.requestAnimationFrame(function(){b.classList.add("animate")});k()}}function k(a){var b=d.querySelector(".validation-bubble");if(b){if(a)return clearTimeout(B),b.classList.remove("animate");clearTimeout(B);B=setTimeout(function(){b.classList.remove("animate")},5E3)}}function C(a){var b=d.querySelector("input[type=password]");if(!b.form.classList.contains("submitted"))return null;
b.setAttribute("aria-invalid","false");b.setCustomValidity("");if(b.checkValidity&&!b.checkValidity())return b.setAttribute("aria-invalid","true"),b.validity.valueMissing&&b.setCustomValidity("Please enter the password."),a||w(b),!1;k(!0);return!0}function A(a,b,c){s.resetFocus(d);var e=Array.prototype.slice.call(a.querySelectorAll("input"),0).map(function(a){if(a.name)return encodeURIComponent(a.name)+"="+encodeURIComponent(a.value)}).join("&"),g=new XMLHttpRequest;g.open(a.method,a.action+r.location.search,
!0);g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");g.withCredentials=!0;g.timeout=3E3;g.onload=function(){var a;try{a=JSON.parse(g.responseText)}catch(c){}b(a,g)};g.onerror=function(a){c(a)};g.send(e)}function q(){E.classList.remove("cloaked");E.classList.add("animate");r.requestAnimationFrame(function(){E.style[v.transformProperty]="translateY(-10px)"})}function F(){J.classList.add("open")}function x(){return{modal:!1,template:null,logo:!1,icon:{type:null,html:null}}}function G(a,
c){a.template=Aftershave.render("share",{url:b.video.url,shareUrl:b.video.share_url,playerShareUrl:"//"+b.player_url+"/video/"+b.video.id+"/share",title:b.video.title,owner:b.video.owner.name,embed:"public"===b.video.embed_permission&&b.embed.settings.embed,embedOnly:b.embed.settings.share&&b.embed.settings.share.embed_only,embedCode:b.video.embed_code.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),copyButton:O||v.flash.installed,customizeEmbed:!!b.video.url,
readOnly:!v.touch});b.embed.settings.share&&b.embed.settings.share.embed_only&&(a.wrapperClass="embed-only");return a}var L=d.querySelector(".overlay-cell"),m=d.querySelector(".overlay"),E=d.querySelector(".overlay-icon-wrapper"),J=E.querySelector(".overlay-icon"),K=d.querySelector(".overlay-logo"),H,B,D=!1,I=null,Z=null,N,O=!1;(function(){a.on(ja,function(d,e){0;O=l.queryCommandSupported&&l.queryCommandSupported("copy");var g=function(){var a=x();switch(d){case "share":return h(d,G(a,e));case "private-locked":return a.icon=
{type:"lock",html:Aftershave.render("icon_lock")},a.modal=!0,a.logo=!0,a.template=Aftershave.render("private_locked",{title:"Private Video",subtitle:"Log in to watch (if you have permission).",action:("dev"===b.build.rpc?"http":"https")+"://"+b.vimeo_url+"/log_in"}),h(d,a);case "hd-not-allowed":return a.icon={type:"hd",html:Aftershave.render("icon_hd")},a.template=Aftershave.render("hd_not_allowed",{title:"Sorry, HD not available here",subtitle:"Watch this video in HD on Vimeo.com",button:"Watch in HD now",
url:b.video.url}),h(d,a);case "password":return a.icon={type:"lock",html:Aftershave.render("icon_lock")},a.template=Aftershave.render("password",{title:"Password Required",subtitle:"If you&rsquo;ve got it, enter it below.",action:"//"+b.player_url+"/video/"+b.video.id+"/check-password"}),a.modal=!0,a.logo=!!b.embed.settings.branding,h(d,a);case "private-unlocked":return a.icon={type:"lock",html:Aftershave.render("icon_lock")},a.template=Aftershave.render("private_unlocked"),h(d,a);case "error":return a.template=
Aftershave.render("error",{title:e.title,message:e.message}),a.modal=!!e.modal,a.logo=!!e.logo,e.icon&&"lock"===e.icon&&(a.icon={type:"lock",html:Aftershave.render("icon_lock")}),h(d,a);case "help":return a.template=Aftershave.render("help",{onSite:b.embed.on_site}),h(d,a);case "content-rating":return a.template=Aftershave.render("content_rating",{logo:Aftershave.render("logo")}),a.modal=!0,h(d,a)}};if(D){if("share"!==I&&"help"!==I&&"hd-not-allowed"!==I||I!==d)a.once(c.overlayCleared,g),t();n()}else g()});
Gator(d).on("input","input",function(){this.form.classList.add("interacted")}).on(["focus","blur"],"input",function(){k(!0)}).on("transitionend",".validation-bubble",function(a){"opacity"===a.propertyName&&"0"===r.getComputedStyle(this,"").opacity&&this.classList.add("hidden")});a.on([c.overlayCloseButtonPressed,c.played],n);a.on(c.privateUnlocked,function(){"private-locked"===I&&(t(),n())});a.on(c.configChanged,function(a){"share"===I&&(Z=G(x(),a.embed.settings.share.embed_only),m.innerHTML=Z.template)});
Gator(r).on("resize",function(){if(D){K.style.bottom=g();var a=u();E.style.top=a.top;E.style[v.transformProperty]=a.transform}})})();(function(){Gator(d).on("transitionend",".overlay-logo",function(a){"opacity"===a.propertyName&&this.classList.contains("animate")&&(K.classList.add("hidden"),K.classList.remove("animate"))});Gator(d).on("transitionend",".overlay-icon-wrapper",function(a){-1<a.propertyName.indexOf("transform")&&(""===this.style[v.transformProperty]?(this.classList.remove("centered"),
"lock"!==this.getAttribute("data-icon")||J.classList.contains("open")||J.querySelector("canvas")?J.classList.add("pulled-back"):setTimeout(F,100)):"translateY(-10px)"===this.style[v.transformProperty]&&(E.classList.add("centered"),E.style[v.transformProperty]=""))});Gator(d).on("transitionend",".overlay-icon",function(a){-1<a.propertyName.indexOf("transform")&&(this.classList.contains("out")?(t(),n()):this.classList.contains("pulled-back")?(J.classList.add("out"),J.classList.remove("pulled-back")):
this.classList.contains("open")&&J.classList.add("pulled-back"))})})();(function(){function e(){a.fire(c.embedCodeCopied);var b=l.querySelector(".embed-copy");b.innerHTML="Copied!";clearTimeout(g);g=setTimeout(function(){b.innerHTML="Copy"},2E3)}var g;Gator(d).on("transitionend",".share-screen",function(a){"opacity"===a.propertyName&&"0"===r.getComputedStyle(this,"").opacity&&this.classList.add("cloaked")}).on("transitionend",".embed-screen",function(a){"opacity"===a.propertyName&&"0"===r.getComputedStyle(this,
"").opacity&&(d.querySelector(".back").classList.add("cloaked"),this.classList.add("cloaked"),s.resetFocus(d))}).on("copy","input[name=embed_code]",function(){a.fire(c.embedCodeCopied)});s.attachClickHandler(d,".back",function(){d.querySelector(".share-screen").classList.remove("cloaked");d.classList.remove("embed-active");return!1});s.attachClickHandler(d,".facebook",function(){a.fire(c.facebookButtonPressed,this.href);try{l.activeElement.blur()}catch(b){}return!1});s.attachClickHandler(d,".twitter",
function(){a.fire(c.twitterButtonPressed,this.href);try{l.activeElement.blur()}catch(b){}return!1});s.attachClickHandler(d,".tumblr",function(){a.fire(c.tumblrButtonPressed,this.href);try{l.activeElement.blur()}catch(b){}return!1});s.attachClickHandler(d,".email",function(){a.fire(c.emailButtonPressed);r.location=this.href;try{l.activeElement.blur()}catch(b){}return!1});s.attachClickHandler(d,".embed",function(){a.fire(c.embedButtonPressed);try{l.activeElement.blur()}catch(b){}return!1});s.attachClickHandler(d,
".embed-copy",function(){if(O){l.querySelector("input[name=embed_code]").select();try{l.execCommand("copy")&&e()}catch(a){0}l.activeElement.blur();return!1}});if(v.touch)Gator(m).on("focus","input[name=embed_code]",function(){0;var a=this;setTimeout(function(){a.setSelectionRange(0,9999);a.setAttribute("readonly","readonly")},0)}).on("blur","input",function(){this.removeAttribute("readonly")});else Gator(m).on("click","input[name=embed_code]",function(){this.setSelectionRange(0,9999)});a.on(c.facebookButtonPressed,
function(a){s.openWindow(a,580,400,"facebook","scrollbars=yes,resizable=yes,toolbar=no")}).on(c.twitterButtonPressed,function(a){s.openWindow(a,550,420,"twitter","scrollbars=yes,resizable=yes,toolbar=no")}).on(c.tumblrButtonPressed,function(a){s.openWindow(a,540,600,"tumblr","scrollbars=yes,resizable=yes,toolbar=no")}).on(c.embedButtonPressed,function(){function a(){var c=l.querySelector(".embed-copy");(new ZeroClipboard(c,{moviePath:b.request.urls.zeroclip_swf,trustedDomains:["*"],allowScriptAccess:"always"})).on("complete",
e)}b.embed.settings.share.embed_only||(d.querySelector(".back").classList.remove("cloaked"),d.querySelector(".embed-screen").classList.remove("cloaked"),d.classList.add("embed-active"));if(!O&&v.flash.installed)if(l.getElementById("zc_script_loaded"))a();else{var c=l.createElement("script"),g;c.setAttribute("id","zc_script_loaded");c.setAttribute("src",b.request.urls.zeroclip_js);c.onreadystatechange=c.onload=function(){g||(0,a());g=!0};l.getElementsByTagName("head")[0].appendChild(c)}})})();(function(){Gator(m).on("click",
".popup",function(){a.fire(ma,"login-private-locked");return!1})})();(function(){function b(d){function e(a){g.classList.remove("loading");f.setCustomValidity("Uh oh. There was a problem. Please try again.");f.setAttribute("aria-invalid","true");w(f)}if(!C())return!1;var f=d.querySelector("input[type=password]"),g=d.querySelector("input[type=submit]");g.classList.add("loading");A(d,function(b,d){!1===b?e(d.status,d):(a.fire(c.passwordUnlocked,b),"icon-hidden"===r.getComputedStyle(L,":after").content?
(t(),n()):(K.classList.add("animate"),q(),t(),z()))},e)}Gator(m).on("click",".password input[type=submit]",function(){this.form.classList.add("submitted");this.form.setAttribute("data-bubble","yes");C(!0)}).on("submit",".password form",function(){b(this);return!1}).on(["focus","input"],[".password input[type=email]",".password input[type=password]"],function(){C()})})();(function(){s.attachClickHandler(m,".unlocked button",function(){K.classList.add("animate");q();t();z();if(!v.iPad&&!v.iPhone)a.once(c.overlayCleared,
function(){a.fire(c.playButtonPressed)})})})();(function(){s.attachClickHandler(m,".content-rating button",function(){t();n()})})();(function(){a.on(c.error,function(d,g){var q=d,f=g&&g.title||"Sorry",k=g&&g.message||"There was an issue with playback.",A=-1<r.location.search.indexOf("partypooper=1")||-1<r.location.search.indexOf("fun=0");switch(d){case "no-files":q="notsupported";f=A?"Sorry":e[Math.floor(Math.random()*e.length)];k="There was an error loading the files for this video.";break;case "not-supported":q=
"notsupported";f=A?"Sorry":e[Math.floor(Math.random()*e.length)];k="This video can&rsquo;t be played with your current setup.";0.5<b._video.currentTime&&(k="There was an issue playing this video.");break;case "decode":q="decode",f="Oops!",k="There was a problem with this video."}var m=x();m.modal=g&&g.modal||!0;m.template=Aftershave.render("error",{title:f,message:k});D?(n(),a.once(c.overlayClosed,function(){h(q,m)})):h(q,m)})})();(function(){a.on(c.configChanged,function(a){b=a;r.requestAnimationFrame(function(){t();
n()})})})();(function(){s.attachClickHandler(d,".close",function(){a.fire(c.overlayCloseButtonPressed)});Gator(d).on(["click","touchend"],[".window-wrapper",".share-wrapper",".overlay-logo"],function(a){a.stopPropagation()}).on(["click","touchend"],[".overlay-cell","nav"],function(){a.fire(c.overlayCloseButtonPressed);return!1})})();a.fire(c.overlayModuleReady);return{}}}(),ib=function(){return function(e,b,a){function d(){!M||O||!(t&&N||k)||w||C&&!k||(M=!1,b.fire(c.sidedockVisibilityChanged,M),a.classList.add("invisible"))}
function g(){M||k||(a.classList.add("invisible"),a.classList.remove("hidden"),a.removeAttribute("hidden"),a.classList.contains("vod")&&(a.classList.remove("vod"),a.setAttribute("data-vod-highlight","no"),A.classList.remove("bouncing")),setTimeout(function(){M=!0;b.fire(c.sidedockVisibilityChanged,M);a.classList.remove("invisible")},0))}function u(a,b,c){var d="data-label-"+c;a.setAttribute("aria-label",a.getAttribute("add"!==c||e.user.logged_in?d:"data-label-add-logged-out"));b.classList.add("hidden");
b.setAttribute("hidden","");b.firstChild.innerHTML=a.getAttribute(d)}function h(){var a=D.indexOf(this);I.forEach(function(b,c){c!==a&&b&&b.classList.add("invisible")});0<=a&&(I[a].classList.add("invisible"),I[a].classList.remove("hidden"),I[a].removeAttribute("hidden",""),Z=r.requestAnimationFrame(function(){Z=r.requestAnimationFrame(function(){I[a].classList.remove("invisible");I[a].classList.add("visible")})}))}function l(){var a="BUTTON"===this.tagName?this:this.querySelector("button"),a=D.indexOf(a);
0<=a&&(Z&&(r.cancelAnimationFrame(Z),Z=null),I[a].classList.add("invisible"))}function n(){if(e.view===na||e.view===ha){e.video.vod&&"purchase_options"in e.video.vod&&e.video.vod.purchase_options.length&&"no"!==a.getAttribute("data-vod-highlight")&&!e.embed.settings.instant_sidedock?a.classList.add("vod"):v.touch&&(M=!0,b.fire(c.sidedockVisibilityChanged,M),a.classList.remove("hidden"),a.removeAttribute("hidden"),a.classList.remove("invisible"));var d=e.embed.settings,g=e.video.vod&&"purchase_options"in
e.video.vod&&e.video.vod.purchase_options.length;a.innerHTML=Aftershave.render("sidedock",{loggedIn:!!e.user.logged_in,vodButton:g&&d.vod,purchased:e.video.vod&&e.user.purchased?1:0,vodLabel:g&&e.video.vod.purchase_options[0].label,vodPreorder:g&&"date_available"in e.video.vod?1:0,expiring:g&&e.video.vod.purchase_options[0].expiring?1:0,likeButton:d.like,liked:e.user.liked,watchLaterButton:d.watch_later,addedToWatchLater:e.user.watch_later,shareButton:d.share,shareButtonLabel:d.share&&d.share.embed_only?
"Embed":"Share",collectionsButton:d.collections,tipJarButton:d.tipjar});A=a.querySelector(".vod-button");q=a.querySelector(".vod-label");"ondemand.main"!==e.embed.context||e.user.purchased||(q.classList.add("hidden"),q.classList.remove("visible"));F=a.querySelector(".like-button");x=a.querySelector(".like-label");G=a.querySelector(".watch-later-button");L=a.querySelector(".watch-later-label");m=a.querySelector(".share-button");E=a.querySelector(".share-label");J=a.querySelector(".collections-button");
K=a.querySelector(".collections-label");H=a.querySelector(".tip-jar-button");B=a.querySelector(".tip-jar-label");D=[A,F,G,m,J,H];I=[q,x,L,E,K,B]}}var M=!1,t=!1,w=!1,k=!1,C=!1,A,q,F,x,G,L,m,E,J,K,H,B,D=[],I=[],Z=null,N=!1,O=!1;n();(function(){s.attachClickHandler(a,".vod-button",function(){b.fire(c.vodButtonPressed);q.classList.add("hidden");q.setAttribute("hidden","")},l)})();(function(){s.attachClickHandler(a,".like-button",function(){b.fire(c.likeButtonPressed)},l);b.on(c.liked,function(){F&&(F.classList.add("on"),
u(F,x,"remove"))});b.on(c.unliked,function(){F&&(F.classList.remove("on"),u(F,x,"add"))})})();(function(){s.attachClickHandler(a,".watch-later-button",function(){b.fire(c.watchLaterButtonPressed)},l);b.on(c.addedToWatchLater,function(){G&&(G.classList.add("on"),u(G,L,"remove"))});b.on(c.removedFromWatchLater,function(){G&&(G.classList.remove("on"),u(G,L,"add"))})})();(function(){s.attachClickHandler(a,".share-button",function(){b.fire(e.embed.settings.share.embed_only?c.embedButtonPressed:c.shareButtonPressed);
return!1},l)})();(function(){s.attachClickHandler(a,".collections-button",function(){b.fire(c.collectionsButtonPressed)},l)})();(function(){s.attachClickHandler(a,".tip-jar-button",function(){b.fire(c.tipJarButtonPressed)},l);b.on(c.tipped,function(){H.classList.add("on")})})();(function(){Gator(a).on("blur","button",l).on("mouseleave",".box",l).on(["focus","pointerdown","touchstart","mouseenter"],"button",h).on("transitionend","label",function(a){"opacity"===a.propertyName&&a.target.classList.contains("invisible")&&
(a.target.classList.add("hidden"),a.target.setAttribute("hidden",""),a.target.classList.remove("visible"))});s.attachClickHandler(a,"label",function(){var a=I.indexOf(this);0<=a&&D[a].click()})})();(function(){b.on([c.mousedOut,c.mouseTimeout],d).on(c.mousedOver,g).on(c.targetTimeReached,function(){N=!0;d()}).on(c.played,function(){t=!0});Gator(a).on(["pointerenter","pointerleave","mouseenter","mouseleave"],function(a){if("pointerType"in a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)w=
"pointerenter"===a.type||"MSPointerEnter"===a.type}else w="mouseover"===a.type});Gator(a).on("transitionend",function(b){"opacity"===b.propertyName&&a.classList.contains("invisible")&&(a.classList.add("hidden"),a.setAttribute("hidden",""))})})();(function(){b.on(c.willEnterFullscreen,function(){w=!1;d()}).on(c.didExitFullscreen,function(a){a||(O=!0)})})();(function(){b.on(c.airPlayActivated,function(){C=!0;g()}).on(c.airPlayDeactivated,function(){C=!1})})();(function(){b.on(c.overlayOpened,function(){k=
!0;w=!1;d()}).on(c.overlayClosed,function(){k=!1;g()})})();(function(){b.on(c.configChanged,function(b,c){e=b;c&&a.removeAttribute("data-vod-highlight");n()})})();(function(){b.on(qa,function(){N=w=!1;d();O=w=t=!1})})();b.fire(c.sidedockModuleReady);return{}}}(),cb=function(){return function(e,b){function a(a){return Object.keys(a).map(function(b){return encodeURIComponent(b)+"="+encodeURIComponent(a[b])}).join("&")}function d(c,d,g,h){b.fire(Ia);if(v)C.push([c,d,g,0]);else{d.signature=e.request.signature;
d.session=e.request.session;d.time=e.request.timestamp;d.expires=e.request.expires;var k=a(d),l=new XMLHttpRequest;l.open("POST","https://"+e.player_url+c,!g);l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.withCredentials=!0;l.onload=function(){200!==l.status&&2>h&&C.push([c,d,g,h+1])};l.send(k)}}function g(a,b,c){d(a,{referrer:e.request.referrer,embed:!e.embed.on_site,context:e.embed.context,autoplay:e.embed.autoplay,id:e.video.id,vodId:e.video.vod&&e.video.vod.id?e.video.vod.id:
null,vodSaleId:e.video.vod&&e.video.vod.sale_id?e.video.vod.sale_id:null,userId:e.user.id,userAccountType:e.user.account_type,userIsMod:e.user.mod?1:0,ownerId:e.video.owner.id,ownerAccountType:e.video.owner.account_type,privacy:e.video.privacy,rating:e.video.rating?e.video.rating.id:null,type:e._video.currentRenderer,videoFileId:e._video.currentFile.id||0,delivery:e._video.currentFile.hls?"hls":"progressive",quality:e._video.currentFile.quality,duration:s.round(e.video.duration),seconds:s.round(b)},
c)}function l(a,b){e.request.flags.partials&&e.request.flags.plays&&(a=Math.round(1E3*a)/1E3||0,a>n&&!M&&(0,n=a,g("/log/partial",a,b)))}function h(a,b){if(e.request.flags.dnt)0;else{b=b||{};var c={referrer:e.request.referrer,embed:!e.embed.on_site,context:e.embed.context,id:e.video.id,vodId:e.video.vod&&e.video.vod.id?e.video.vod.id:null,vodSaleId:e.video.vod&&e.video.vod.sale_id?e.video.vod.sale_id:null,userId:e.user.id,userAccountType:e.user.account_type,ownerId:e.video.owner?e.video.owner.id:0,
duration:s.round(e.video.duration),seconds:s.round(e._video.currentTime)},g;for(g in b)b.hasOwnProperty(g)&&(c[g]=b[g]);d("/log/"+a,c)}}var v=!1,n=0,M=!1,t=0,w=!1,k,C=[];k={};(function(){b.on(c.playProgress,function(a,b,c){b=Math.floor(a);0!==b%30||k[b]||(l(a),k[b]=!0)});b.on(c.playInitiated,function(){!w&&e.request.flags.plays&&(w=!0,g("/log/play",0))});b.on(c.paused,function(a){l(a)});b.on(c.seeked,function(a,b,c){t=a;M||l(t)});b.on(c.scrubbingStarted,function(){M=!0});b.on(c.scrubbingEnded,function(){M=
!1;l(t)});b.on(c.hdButtonPressed,function(){l(e._video.currentTime)});b.on(c.ended,function(){l(e.video.duration)});r.addEventListener("beforeunload",function(){e._video&&0<e._video.currentTime&&l(e._video.currentTime,!0)})})();(function(){function a(b){return function(){h(b)}}e.request.flags.dnt?0:([{type:"share_press",event:c.shareButtonPressed},{type:"facebook_press",event:c.facebookButtonPressed},{type:"twitter_press",event:c.twitterButtonPressed},{type:"tumblr_press",event:c.tumblrButtonPressed},
{type:"email_press",event:c.emailButtonPressed},{type:"embed_press",event:c.embedButtonPressed},{type:"login_success",event:c.userLoggedIn},{type:"airplay",event:c.airPlayActivated},{type:"vod_press",event:c.vodButtonPressed}].forEach(function(c){b.on(c.event,a(c.type))}),b.on(c.outroDisplayed,function(a){var b={outroType:e.embed.outro,ownerAccountType:e.video.owner.account_type};a.length&&(b.outroVideos=a.join(","));h("outro_displayed",b)}).on(c.outroVideoPressed,function(a){h("outro_video_press",
{ownerAccountType:e.video.owner.account_type,videoId:a})}).on(c.likeButtonPressed,function(){h("like_press",{add:!e.user.liked})}).on(c.watchLaterButtonPressed,function(){h("watch_later_press",{add:!e.user.watch_later})}).on(c.popupOpened,function(a){0===a.indexOf("login-")&&h("login_attempt")}).on(c.captionsChanged,function(a){if(a){var b;e.request.text_tracks.forEach(function(c){c.lang+"."+c.kind===a&&(b=c)});b&&h("text_track_change",{textTrackLanguage:b.lang,textTrackKind:b.kind})}else h("text_track_change")}))})();
(function(){b.on(c.signatureExpired,function(){v=!0});b.on(c.requestConfigReloaded,function(a){e.request=a;v=!1;if(0<C.length)for(a=C.shift();a;)d.apply(null,a),a=C.shift()});b.on(c.configChanged,function(a,b){e=a;b&&(n=0,M=w=!1,k={})})})();(function(){var a=["not-supported","decode","network","aborted","unknown"];b.on(c.error,function(b,c){0<=a.indexOf(b)&&d("/log/"+b.replace("-","")+"_error",{id:e.video.id,context:e.embed.context})})})();b.fire(c.statsModuleReady);return{}}}(),ob=function(e){var b=
["hd","scaling","volume","captions"];return function(a,d){function g(a){if(k.loaded)try{k.frame.contentWindow.postMessage(a,k.origin),r.postMessage(a,r.location.origin)}catch(b){}else k.queue.push(a)}function u(b,e){switch(b){case "sync_hd":a.video.allow_hd&&d.fire(Ha,1===e?"hd":"sd",!0);break;case "sync_scaling":d.fire(Ga,!!e);break;case "sync_volume":d.fire(ga,e,!0);break;case "sync_captions":if(null===e){d.fire(Ma,!0);break}d.fire(La,e,!0);break;case "sync_login":if(4<C)break;C++;e&&!a.user.logged_in?
d.fire(c.userLogIn):!e&&a.user.logged_in&&d.fire(c.userLoggedOut);break;case "sync_active":null!==e&&e!==a.request.session&&d.fire(c.becameInactive)}}function h(a){return!0===a||!1===a?+a:"null"===a?null:a}function s(a){var b=l.cookie;return b&&""!==b?b.split(";").reduce(function(b,c){c=c.trim();return 0===c.indexOf(a+"=")?decodeURIComponent(c.substr(a.length+1)):b},null):null}function n(c,d){d=h(d);0<=b.indexOf(c)&&(a.request.cookie[c]=d);g({method:"set",key:"sync_"+c,val:d,session:a.request.session});
var e=[];0<=b.indexOf(c)&&e.push(c+"="+d);var k=v(b),n;for(n in k)n in k&&null!==k[n]&&n!==c&&e.push(n+"="+k[n]);e='"'+e.join("&")+'"';k=new Date;k.setFullYear(k.getFullYear()+1);k=k.toGMTString();e=h(e);e="player="+e+";"+("expires="+k+";");e+="path=/;";e+="domain="+a.request.cookie_domain+";";l.cookie=e}function v(a){var b=s("player");if(!b)return null;var b=b.substring(1,b.length-1),c={};b.split("&").forEach(function(a){a=a.split("=");c[a[0]]=decodeURIComponent(a[1]||"")});var b=[].concat(a),d=
b.reduce(function(a,b){if(b in c){var d=parseFloat(c[b]);a[b]=isNaN(d)?c[b]:d;return a}a[b]=null;return a},{});return 1===b.length?d[a]:d}function t(b){b&&(a=b);n("login",!!a.user.logged_in)}if(!e.localStorageProxy){var w=l.createElement("a");w.href=a.request.urls.proxy;e.localStorageProxy={src:w.href,origin:w.origin||w.protocol.replace(":","")+"://"+w.host,loaded:!1,queue:[],frame:null,loadTimeout:null,pingTimeout:null}}var k=e.localStorageProxy,C=0;t();(function(){d.on(c.qualityChanged,function(b,
c){a.request.cookie.hd="hd"===b?1:0;c||n("hd","hd"===b)})})();(function(){d.on(Ga,function(a){n("scaling",!!a)})})();(function(){d.on(c.volumeChanged,function(b,c){a.request.cookie.volume=h(b);c||n("volume",b)})})();(function(){d.on(c.captionsChanged,function(b,c){a.request.cookie.captions=h(b);c||n("captions",b)})})();(function(){d.on(c.playButtonPressed,function(b){b||(n("active",a.request.session),d.fire(c.becameActive))});d.on([c.pauseButtonPressed,c.ended],function(){v("active")===a.request.session&&
n("active",null)})})();(function(){d.on(c.userLoggedIn,function(){n("login",!0)})})();(function(){if(!k.frame){var a=l.createElement("iframe");a.src=k.src;a.setAttribute("title","Vimeo LocalStorage Proxy");a.setAttribute("aria-hidden","true");a.setAttribute("hidden","");a.onload=function(b){k.loaded||(a.contentWindow.postMessage({method:"ping"},k.origin),k.pingTimeout=setTimeout(function(){0},500));k.loadTimeout&&(clearTimeout(k.loadTimeout),k.loadTimeout=null)};k.loadTimeout=setTimeout(function(){0},
1E4);l.body.appendChild(a);k.frame=a}})();(function(){r.addEventListener("message",function(b){if(b.origin===k.origin)if("ready"===b.data||"ping"===b.data){if(!k.loaded)for(clearTimeout(k.pingTimeout),k.pingTimeout=null,k.loaded=!0;k.queue.length;)b=k.queue.shift(),g(b)}else"object"===typeof b.data&&"key"in b.data&&"newValue"in b.data&&u(b.data.key,b.data.newValue);else b.origin===r.location.origin&&b.data.session!==a.request.session&&u(b.data.key,b.data.val)},!1)})();(function(){b.concat("login",
"active").forEach(function(a){try{r.localStorage.removeItem(a)}catch(b){}})})();return{reset:t}}}(Za),lb=function(){return function(e,b){var a=null;(function(){b.on(ma,function(d,g){var l="//"+e.player_url,h=l+"/video/"+e.video.id;switch(d){case "login-like":a=s.openWindow(h+"/login/like",670,545,"login");b.fire(c.popupOpened,d);break;case "login-watch-later":a=s.openWindow(h+"/login/watch-later",670,545,"login");b.fire(c.popupOpened,d);break;case "login-private-locked":a=s.openWindow(h+"/login/private",
670,545,"login");b.fire(c.popupOpened,d);break;case "purchase":l=l+"/video/"+(e.video.vod.feature_id||e.video.id)+"/purchase/vod";g&&g.productId&&(l+="/"+g.productId);l+="?referrer="+encodeURIComponent(e.request.referrer);a=s.openWindow(l,790,670,"purchase");b.fire(c.popupOpened,d);break;case "tip-jar":l=l+"/video/"+e.video.id+"/purchase/tipjar?referrer="+encodeURIComponent(e.request.referrer),a=s.openWindow(l,790,670,"tip-jar"),b.fire(c.popupOpened,d)}});r.closePopup=function(){if(a){try{a.close()}catch(b){}a=
null}}})();(function(){e.embed.on_site||(r.confirmPurchase=function(a,e,l){if(e)return b.fire(Ba,a);l&&b.fire(c.playButtonPressed)})})();(function(){e.embed.on_site||(r.confirmTipJar=function(a){b.fire(c.tipped)})})();(function(){e.embed.on_site||(r.confirmLoginAction=function(a,e){b.fire(c.userLogIn,e)})})();return{}}}(),v=function(){function c(a){return RegExp(a.toLowerCase()).test(b)}var b=navigator.userAgent.toLowerCase(),a=c("android")?parseFloat(b.replace(/^.* android (\d+)\.(\d+).*$/,"$1.$2"))||
!0:!1,d=r.devicePixelRatio||1,g=c("windows phone")||c("iemobile")?parseFloat(b.replace(/^.* windows phone (os )?(\d+)\.(\d+).*$/,"$2.$3"))||!0:!1,u=c("msie")?parseFloat(b.replace(/^.*msie (\d+).*$/,"$1")):!1,h=c("trident")?parseFloat(b.replace(/^.*trident\/(\d+)\.(\d+).*$/,"$1.$2"))+4:!1,s=c("ipad;")||c("iphone;")||c("ipod touch;")?parseFloat(b.replace(/^.* os (\d+)_(\d+).*$/,"$1.$2")):!1;return{airPlay:"WebKitPlaybackTargetAvailabilityEvent"in r,android:a,iOS:s,mobileAndroid:a&&c("mobile"),browser:{bb10:c("bb10"),
chrome:c("chrome"),firefox:c("firefox"),ie:u||h,edge:c("edge"),opera:c("opera"),safari:c("safari")&&c("apple")&&!c("chrome")&&!c("android")},devicePixelRatio:d,flash:function(){var a=navigator,b=!1,c=[0,0,0],d=null;if("undefined"!==typeof a.plugins&&"object"===typeof a.plugins["Shockwave Flash"])!(d=a.plugins["Shockwave Flash"].description)||"undefined"!==typeof a.mimeTypes&&a.mimeTypes["application/x-shockwave-flash"]&&!a.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(b=!0,d=d.replace(/^.*\s+(\S+\s+\S+$)/,
"$1"),c[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10),c[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10),c[2]=/[a-zA-Z]/.test(d)?parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if("undefined"!==typeof r.ActiveXObject)try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");e&&(d=e.GetVariable("$version"))&&(b=!0,d=d.split(" ")[1].split(","),c=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)])}catch(g){}return{installed:b,version:c.join("."),major:c[0],minor:c[1],revision:c[2],versionAtLeast:function(a,
b,d){a=a||10;b=b||1;d=d||0;for(var e=c,g=arguments,h=Math.min(e.length,g.length),k=0;k<h;k++){if(e[k]>=g[k]){if(k+1<h&&e[k]===g[k])continue;return!0}return!1}}}}(),iPhone:c("iphone;")||c("ipod touch;")||c("ipod;"),iPad:c("ipad;"),iPadNonRetina:c("ipad;")&&2>d,mac:c("mac os"),pointerEvents:r.navigator.pointerEnabled||r.navigator.msPointerEnabled||!1,svg:!!l.createElementNS&&!!l.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,touch:"ontouchstart"in r||r.DocumentTouch&&l instanceof
DocumentTouch||c("windows phone")||1<r.navigator.maxTouchPoints||r.navigator.msMaxTouchPoints||!1,transformProperty:function(a){var b=l.createElement("div"),c=a.charAt(0).toUpperCase()+a.slice(1);a=(a+" "+["Webkit","Moz","O","ms"].join(c+" ")+c).split(" ");for(var d in a)if(c=a[d],b.style[c]!==Y)return c}("transform"),windowsPhone:g}}(),gb=function(){return function(e,b,a){function d(){n=!1;a.classList.add("invisible")}function g(){a.classList.remove("hidden");a.removeAttribute("hidden");setTimeout(function(){n=
!0;a.classList.remove("invisible")},0)}function l(){n&&(t?d():A?d():w||k&&(C?s||d():d()))}function h(){n||C&&!q&&(A||(w?g():k||t?e.embed.settings.info_on_pause&&C&&!t&&g():g()))}function r(){if(e.view===na||e.view===ha){var b={targetBlank:0===e.embed.on_site,linkToOwner:null!==e.video.owner.url,ownerLink:e.video.owner.url,showPortrait:!!e.embed.settings.portrait,portraitImg:e.video.owner[1<v.devicePixelRatio?"img_2x":"img"],showTitle:!!e.embed.settings.title,showTitleLink:null!==e.video.url,titleLink:e.video.url,
title:e.video.title,showByline:!!e.embed.settings.byline,owner:e.video.owner.name};e.embed.settings.byline_badge&&(b.bylineBadge={cssClass:e.embed.settings.byline_badge.type,link:e.embed.settings.byline_badge.url||!1});var c=e.embed.settings.badge;if(c){var d=1<v.devicePixelRatio?"img_2x":"img";v.svg&&c.svg&&(d="svg");b.showPortrait=!1;b.badge={link:c.link,img:c[d],offset:c.offset||!1,width:c.width,height:c.height,name:c.name}}e.embed.autoplay&&(a.classList.add("hidden"),a.setAttribute("hidden",""));
a.innerHTML=Aftershave.render("title",b)}}var n=!0,s=!1,t=!1,w=!1,k=!1,C=!0,A=!1,q=!1,F=!1;r();(function(){b.on([c.mousedOut,c.mouseTimeout],l).on(c.mousedOver,h).on(c.playInitiated,function(){k=!0;C=!1;l()}).on([c.playButtonPressed,c.played],function(){q=C=!1;l()}).on(c.paused,function(a,b){b||(C=!0,h())}).on(c.ended,function(){A=!0;l()}).on(c.scrubbingStarted,function(){F=C;q=!0}).on(c.scrubbingEnded,function(){F&&(q=!1)}).on(c.willEnterFullscreen,function(){l()}).on(c.didExitFullscreen,function(a){a||
h()});Gator(a).on(["pointerenter","pointerleave","mouseenter","mouseleave"],function(a){if("pointerType"in a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)s="pointerenter"===a.type||"MSPointerEnter"===a.type}else s="mouseover"===a.type});Gator(a).on("transitionend",function(b){"opacity"===b.propertyName&&a.classList.contains("invisible")&&(a.classList.add("hidden"),a.setAttribute("hidden",""))},!1)})();(function(){b.on(c.ended,function(a){l()})})();(function(){b.on(c.airPlayActivated,
function(){w=!0;h()}).on(c.airPlayDeactivated,function(){w=!1;l()})})();(function(){b.on(c.overlayOpened,function(a){"notsupported"!==a&&"private-unlocked"!==a&&"help"!==a&&(t=!0,s=!1,l())}).on(c.overlayClosed,function(){s=t=!1;setTimeout(h,0)})})();(function(){b.on(c.configChanged,function(a){e=a;r();e.view===ha&&h()})})();(function(){b.on(qa,function(){k=!1;C=!0;q=A=!1;h()})})();b.fire(c.titleModuleReady);return{}}}(),Oa=function(){function e(a){a=/^(?:(\d{2,}):)?(\d{2}):(\d{2})[,.](\d{3})$/.exec(a);
if(!a)return-1;var b=parseInt(a[4],10)/1E3,b=b+parseInt(a[3],10);a[2]&&(b+=60*parseInt(a[2],10));a[1]&&(b+=3600*parseInt(a[1],10));return b}function b(a){var b=0;a=a.split(/(?:(?:\r\n|\n){2,})/);var c=[],l=null;do 0===b&&/^\uFEFF?WEBVTT(?: .*)?/.test(a[b])&&b++,(l=/^(?:(.*)(?:\r\n|\n))?([\d:,.]+) --\x3e ([\d:,.]+)(.*)?(?:\r\n|\n)([\s\S]*)/.exec(a[b]))&&c.push({startTime:e(l[2]),endTime:e(l[3]),text:l[5]}),b++;while(b<a.length);return c}return function(a,d,e){function u(a){var b={},c,d;for(d in a.codecs)if(c=
a.codecs[d],a[c])for(var e in a[c]){var f;if(f=a[c].hasOwnProperty(e))f=N?"h264"===c?2<=Z?""!==N.h264.high:""===("mobile"===e?N.h264.baseline:N.h264.high)||2>Z&&"1080p"===e&&O?!1:!0:"vp8"===c?""!==N.webm:void 0:!1,f=f&&!(v.iPadNonRetina&&921600<a[c][e].width*a[c][e].height);f&&(b[e]=a[c][e],b[e].quality=e)}0;return b}function h(a){var b={},c,d;for(d in a.codecs)if(c=a.codecs[d],a[c])for(var e in a[c])a[c].hasOwnProperty(e)&&(b[e]=a[c][e],b[e].quality=e);0;return b}function z(){d.fire(c.bufferStarted);
Q=ca=!0;ba||a._video.currentFile.hls||p.pause()}function n(){p.preload="";f.classList.remove("cloaked");wa?(d.fire(c.error,wa),E()):(d.fire(Ia),R||(0,X||p.load(),d.fire(c.playInitiated),z(),R=!0,v.android&&!v.browser.chrome&&p.play()),T=S=!0,ba&&(Fa=!0,d.fire(Wa)),X&&M())}function M(){oa||Ba||($=ca=!1,T&&p.paused&&(0,ea&&w(ea,function(){ea=null}),p.play()))}function t(a){var b=p.duration;b&&a>b&&(a=b);if(0<p.seekable.length)for(var b=0,c=p.seekable.length;b<c;b++)if(p.seekable.start(b)<=a&&p.seekable.end(b)>=
a)return!0;return!1}function w(b,c){t(b)?(b=s.limit(b,0,(p.duration||a.duration)-0.01),p.currentTime=b,a._video.currentTime=b,c&&c()):(U=b,ta=c,ya||(ra.events.forEach(function(a){p.addEventListener(a,k,!1)}),ya=!0))}function k(){U&&t(U)&&(ra.events.forEach(function(a){p.removeEventListener(a,k,!1)}),ya=!1,U=s.limit(U,0,(p.duration||a.duration)-0.01),p.currentTime=U,a._video.currentTime=U,ta&&ta(),M(),ta=U=null)}function C(a,b,c,d){return a+b}function A(){if(p.buffered.length){var a=(new Date).getTime(),
b=p.buffered.end(p.buffered.length-1);na||(na=a);W.push(b-aa);W=W.slice(-10);za=W.reduce(C)/W.length;ia=null;na=a;aa=b;ia=!0;Math.round(b)!==Math.round(p.duration)?ia=setTimeout(A,1E3):0}}function q(a,b){var c=a.length-1;if(1<a.length)for(var d=0,e=a.length;d<e;d++)if(a.start(d)<=b&&a.end(d)>=b){c=d;break}return c}function F(b){R&&(ma||(ma=(new Date).getTime()),ia||A());if(!va&&p.buffered&&0<p.buffered.length){b=b||p.currentTime;b=q(p.buffered,b);b=p.buffered.end(b);var e=b/p.duration;a._video.loadProgress=
b;d.fire(c.loadProgress,b,p.duration,e);Q&&(T&&b===p.duration?M():(p.duration-p.buffered.end(p.buffered.length-1))/za+2<=p.duration-p.currentTime&&(0,M()))}}function x(a){var b=["hd","sd","mobile"];for(a=b.indexOf(a);3>a;a++){var c=b[a];if(P[c])return P[c];if(fa[c])return fa[c]}return null}function G(a,b){!R||p.ended?(J(x(a)),d.fire(c.qualityChanged,a,b)):(va=!0,ea||(ea=p.currentTime),T=!p.paused,$=!0,p.pause(),z(),d.once(c.notificationHidden,function(){m(a,b)}))}function L(){V||(f.insertAdjacentHTML("beforebegin",
'<canvas class="snapshot"></canvas>'),V=e.querySelector(".snapshot"));var b=V.getContext("2d");if(b&&p.canvasImageSource){V.setAttribute("width",p.videoWidth+"px");V.setAttribute("height",p.videoHeight+"px");var c=0,d=0,h=0,k=0,h=Y.clientWidth||Ua.width,k=Y.clientHeight||Ua.height,l=a.video.width/a.video.height;h/k>=l?(d=k,c=(l*k).toFixed(2)):(c=h,d=(h/l).toFixed(2));h=Math.max((h-c)/2,0);k=Math.max((k-d)/2,0);V.style.cssText="width:"+c+"px;height:"+d+"px;left:"+h+"px;top:"+k+"px";b.drawImage(p.canvasImageSource,
0,0,V.width,V.height);V.classList.remove("hidden")}}function m(a,b){L();J(x(a));p.load();d.fire(c.qualityChanged,a,b);w(ea,function(){va=!1})}function E(){Y.style.backgroundImage="url("+Y.getAttribute("data-thumb")+")"}function J(b){if(b&&(X=!1,a._video.previousFile=a._video.currentFile,a._video.currentFile=b,p.src=a._video.currentFile.url,a._video.currentRenderer=p.renderer,!Ea)){b=p.volume;p.volume=0.999;if(0.999!==s.round(p.volume)||v.android)0,d.fire(Va);p.volume=b;Ea=!0}}function K(a){for(var b=
!1,c=null,d=a.split(".")[0],e=d.substr(0,2),f=null,g=null,h=p.textTracks,k=0,l=h.length;k<l;k++){var m=h[k].language+"."+h[k].kind;if(m===a)b=!0,c=m,f=h[k];else if(h[k].mode=Xa,!b){var n=h[k].language===e;if(h[k].language===d||!c&&n)c=m,g=h[k]}}!b&&g&&(f=g);!X&&v.browser.firefox&&(Ra=c,f=null);f&&(f.mode=Pa);return{track:f,id:c}}function H(a){a=a.target;if(a.mode===Ya&&!Fa){if(a.language+"."+a.kind!==sa){0;a.mode=Xa;return}0;a.mode=Pa}var b=a.activeCues,e=[],f;if(b&&0<b.length)for(var g=0,h=a.activeCues.length;g<
h;g++)""!==b[g].text.replace(/^\s+|\s+$/gm,"")&&(f=l.createElement("span"),f.appendChild(b[g].getCueAsHTML()),e.push({html:f.innerHTML.replace("\n","<br>"),text:b[g].text}));d.fire(c.cueChanged,a.id,e)}function B(){if(0===Object.keys(P).length&&0===Object.keys(fa).length)d.fire(c.error,"no-files");else{var b=a.video.hd&&a.video.allow_hd,e=b&&(null===a.request.cookie.hd?a.video.default_to_hd:a.request.cookie.hd);if(v.touch&&2E3>screen.width&&!v.browser.edge){if(N.hls&&a.request.files.hls){a.video.hd=
!1;d.fire(Qa);J({cdn:a.request.files.hls.cdn,url:a.request.files.hls.all,origin:a.request.files.hls.origin,quality:"sd",hls:!0});return}b&&(v.windowsPhone||v.android&&v.mobileAndroid||v.browser.bb10?0:N.h264.high)?b=x(e?"hd":"sd"):(a.video.hd=!1,d.fire(Qa),b=x("sd"))}else b=x(e?"hd":"sd");b?J(b):d.fire(c.error,"not-supported")}}function D(){if("text_tracks"in a.request&&0<a.request.text_tracks.length)a.request.text_tracks.forEach(function(a){if(ha)p.addTextTrack(a.kind,a.label,a.lang).addEventListener("cuechange",
H);else{var b=l.createElement("track");b.setAttribute("data-id",a.id);b.setAttribute("src",v.browser.firefox?a.direct_url:a.url);b.setAttribute("kind",a.kind);b.setAttribute("srclang",a.lang);b.setAttribute("label",a.label);p.appendChild(b);ra.support.cueChange&&b.track.addEventListener("cuechange",H)}});else{for(;p.firstChild;)p.removeChild(p.firstChild);d.fire(c.cueChanged,null,[])}}var I=!1,Z=v.devicePixelRatio,N=ra.support.video,O=v.touch,P,fa,Y=e.querySelector(".video"),f=e.querySelector(".flideo"),
p=null,V=null,ba=v.mobileAndroid||v.android&&!v.browser.chrome&&!v.browser.firefox&&!v.browser.opera||v.windowsPhone||8<=v.iOS&&!v.iPad,y=8<=v.iOS&&!v.iPad,ha=v.browser.ie||8<=v.iOS,S=!1,T=!1,R=!1,ka=!1,Q=!1,ca=!1,ja=!1,pa=!1,la=!1,oa=!1,ma,ia,na,W=[],za=0,aa=0,da,$=!1,ea,X=!1,va=!0,wa=null,U=null,ta=null,ya=!1,Ba=!1,Fa=!1,xa=!1,Ea=!1,sa=null,Ra=null,Ta=[],Na=0,Oa=0,Ua={width:0,height:0};a._video={};a._video.paused=!0;a._video.ended=!1;a._video.currentTime=0;a._video.loadProgress=0;a._video.currentFile=
{};var Ka="undefined"!==typeof TextTrack?TextTrack:{},Xa="DISABLED"in Ka?Ka.DISABLED:"disabled",Pa="HIDDEN"in Ka?Ka.HIDDEN:"hidden",Ya="SHOWING"in Ka?Ka.SHOWING:"showing";f.classList.add("cloaked");y&&f.classList.add("hide-webkit-controls");P=u(a.request.files);fa=h(a.request.files);p=new ra(f,{swf:a.request.urls.flideo});p.preload="none";if(ba||8<=v.iOS)p.preload="metadata";(function(){d.on(c.mousedOver,function(){I||!a.request.flags.preload_video||X||"metadata"===p.preload||(p.preload="metadata")})})();
(function(){p.addEventListener("loadedmetadata",function(b){X=!0;Ra&&(sa=K(Ra).id,Ra=null);b=p.duration;isFinite(b)&&0<b&&(a.video.duration=b);a.video.video_width=p.videoWidth;a.video.video_height=p.videoHeight;T&&(p.preload="")});p.addEventListener("durationchange",function(b){b=p.duration;isFinite(b)&&0<b&&(a.video.duration=b)});p.addEventListener("waiting",function(){pa||v.browser.firefox||z()},!1);p.addEventListener("canplay",function(){ka=!0;if(a.embed.autoplay||T||S&&!R)0,M()},!1);p.addEventListener("canplaythrough",
function(){(ca||T&&p.paused)&&M()},!1);p.addEventListener("progress",function(a){F()},!1)})();(function(){d.on(c.playInitiated,function(){f.classList.remove("cloaked");e.classList.remove("invisible")}).on(c.playButtonPressed,n).on(c.pauseButtonPressed,function(){T=!1;p.pause()}).on(c.becameInactive,function(){0>r.location.search.indexOf("autopause=0")&&!p.paused&&(T=!1,p.pause())});p.addEventListener("play",function(b){va=!1;R||ka?(f.classList.remove("invisible"),d.fire(c.played,p.currentTime),a._video.paused=
!1,a._video.ended=!1):(d.fire(c.playInitiated),T=S=R=!0)},!1);p.addEventListener("pause",function(b){a._video.paused=!0;!R||ca||oa||$||d.fire(c.paused,p.currentTime,p.ended);da&&(clearTimeout(da),da=null)},!1);p.addEventListener("playing",function(a){R||(d.fire(c.playInitiated),R=!0);F();ja=!0},!1);p.addEventListener("timeupdate",function(b){b=p.currentTime;a._video.currentRenderer=p.renderer;R&&0<b&&!la&&!Fa&&(clearTimeout(da),da=setTimeout(function(){!1!==p.paused||la||Fa||(0,z())},2E3));ja&&Q&&
0<b&&(0,ja=!1,Q&&(d.fire(c.bufferEnded),Q=ca=!1));if(0<p.buffered.length&&!Q){var e=q(p.buffered,b),e=p.buffered.end(e);if(!Fa&&0<b&&b<p.duration&&e===b){0;z();return}}va||(e=p.duration,d.fire(c.playProgress,b,e,b/e),a._video.currentTime=b,ea&&b>ea&&(ea=null));V&&(V.classList.add("hidden"),V=null);if(ra.support.textTracks&&!ra.support.cueChange){b=p.textTracks;for(var e=0,f=b.length;e<f;e++)if(b[e].mode===Pa){if(Ta.length!==b[e].activeCues.length){H({target:b[e]});Ta=[].slice.call(b[e].activeCues);
break}for(var g=0,h=b[e].activeCues.length;g<h;g++)if(b[e].activeCues[g].startTime!==Ta[g].startTime){H({target:b[e]});Ta=[].slice.call(b[e].activeCues);break}}}},!1);p.addEventListener("ended",function(b){oa||(a.embed.loop?p.play():(d.fire(c.ended),T=!1,a._video.paused=!0,a._video.ended=!0))},!1)})();(function(){var b=!1;r.addEventListener("beforeunload",function(){b=!0});p.addEventListener("error",function(e){if(!b&&e.target.error){var f=a._video.currentFile?a._video.currentFile.quality:null;if(null!==
p.currentSrc&&f)switch(e.target.error.code){case e.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:0;e=f;P[f]&&fa[f]&&P[f].url!==fa[f].url||(delete fa[f],e=null,"hd"===f?e="sd":"sd"===f&&(e="mobile"));delete P[f];a._video.previousFile=a._video.currentFile;a._video.currentFile=x(e);0;a._video.currentFile?J(a._video.currentFile):("metadata"===p.preload?0:d.fire(c.error,"not-supported"),wa="not-supported");break;case e.target.error.MEDIA_ERR_DECODE:0;d.fire(c.error,"decode");break;case e.target.error.MEDIA_ERR_NETWORK:0;
d.fire(c.error,"network");break;case e.target.error.MEDIA_ERR_ABORTED:0;break;default:0,d.fire(c.error,"unknown")}else 0}})})();(function(){function b(){var a=l.createElement("style");l.querySelector("head").appendChild(a);f=a.sheet}function c(){var d=(p.videoHeight||a.video.height)/(r.devicePixelRatio||1),e=Math.min((p.videoWidth||a.video.width)/(r.devicePixelRatio||1),screen.width),d=Math.min(d,screen.height);if(Oa!==e||Na!==d){var g="width:"+e+"px;",g=g+("height:"+d+"px;"),g=g+("margin-left:-"+
(e/2).toFixed(2)+"px;"),g=g+("margin-top:-"+(d/2).toFixed(2)+"px;"),g=g+"top:50%;",g=g+"left:50%;";f||b();[".player:-webkit-full-screen .video-wrapper .video.native-size",".player:-moz-full-screen .video-wrapper .video.native-size",".player:-ms-fullscreen .video-wrapper .video.native-size",".player:fullscreen .video-wrapper .video.native-size"].forEach(function(a){s.addCssRule(a,g,f)});Na=d;for(Oa=e;1<f.cssRules.length;)f.deleteRule(0)}}function e(a){a?Y.classList.remove("native-size"):(c(),Y.classList.add("native-size"))}
var f;p.addEventListener("loadedmetadata",function(){c()});d.on(Ga,e);e(a.request.cookie.scaling)})();(function(){d.on(8,function(b){a.embed.loop=!!b;p.loop=!!b});d.fire(8,a.embed.loop)})();(function(){d.on(c.scrubbingStarted,function(){T=!p.paused;oa=la=!0;p.pause();clearTimeout(da)});d.on(c.scrubbingEnded,function(a){oa=!1;a||M()});d.on(Da,function(b,e){e||(e=(p.duration||a.video.duration)*s.limit(b,0,1));e=s.limit(e,0,p.duration||a.video.duration);R||(d.fire(c.playButtonPressed),T=S=R=!0);w(e,
function(){d.fire(c.seeked,p.currentTime,p.duration,p.currentTime/p.duration)})});p.addEventListener("seeking",function(){pa=!0},!1);p.addEventListener("seeked",function(){F();la=pa=!1;p.readyState!==HTMLMediaElement.HAVE_ENOUGH_DATA||oa||M()},!1)})();(function(){d.on(ga,function(a,b,e){e&&(a+=p.volume);p.volume=s.limit(a,0,1);d.fire(c.volumeChanged,s.limit(a,0,1),b)});d.fire(ga,a.request.cookie.volume,!0)})();(function(){d.on(Ha,function(a,b){"hd"===a?(0,G("hd",b)):(0,G("sd",b))})})();(function(){d.on(c.overlayOpened,
function(){Ba=!0;R&&!xa&&(T=!p.paused,p.pause())});d.on(c.overlayClosed,function(){Ba=!1;T&&!xa&&M()})})();(function(){d.on(c.didEnterFullscreen,function(a,b){a||(f.classList.remove("cloaked"),R||v.browser.safari||(p.poster=Y.getAttribute("data-thumb")),Fa=!0);b||!v.windowsPhone||v.browser.edge||d.fire(Ja,!0);Ua.width=f.clientWidth;Ua.height=f.clientHeight});d.on(c.didExitFullscreen,function(a){p.poster="";R||f.classList.add("cloaked");Fa=!1;ba&&(p.pause(),T=!1)});d.on(c.playInitiated,function(){p.poster=
""})})();(function(){d.on(Ja,function(a){a?(p.controls=!0,e.classList.add("native-controls")):(p.controls=!1,e.classList.remove("native-controls"))})})();(function(){d.on(c.signatureExpired,function(){I=!0;ea=p.currentTime});d.on(c.requestConfigReloaded,function(b){a.request=b;I=!1;P=u(a.request.files);fa=h(a.request.files);b=p.currentTime;B();w(b)});d.on(c.configChanged,function(b,c){var d=a._video.currentFile;a=b;P=u(a.request.files);fa=h(a.request.files);a._video={paused:p.paused,ended:p.ended,
currentTime:p.currentTime,currentFile:d,currentRenderer:p.renderer};F()})})();(function(){Gator(f).on("transitionend",function(a){"opacity"===a.propertyName&&"0"===r.getComputedStyle(this,"").opacity&&f.classList.remove("transition")},!1);d.on(qa,function(b){0;va=!0;p.paused||(p.pause(),d.fire(c.paused,p.currentTime));E();f.classList.add("transition");f.classList.add("invisible");T=R=!1;wa=null;a._video.paused=!0;a._video.ended=!1;a._video.currentTime=0;a._video.loadProgress=0;setTimeout(function(){p.currentTime=
0},300);b&&(p.preload="none",B(),D())})})();B();(function(){0<a.embed.time&&w(a.embed.time,function(){a.embed.time=0})})();(function(){v.airPlay&&(0,p.addEventListener("webkitplaybacktargetavailabilitychanged",function(a){switch(a.availability){case "available":0;d.fire(c.airPlayAvailable);break;case "not-available":0,d.fire(c.airPlayNotAvailable)}}),p.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(a){if(p.webkitCurrentPlaybackTargetIsWireless)return xa=!0,d.fire(c.airPlayActivated);
xa=!1;d.fire(c.airPlayDeactivated)}),d.on(c.airPlayButtonPressed,function(){p.webkitShowPlaybackTargetPicker()}))})();(function(){ra.support.textTracks&&(d.on(c.didEnterFullscreen,function(a){var b=p.textTracks;if(!a&&0<b.length){a=0;for(var c=b.length;a<c;a++)b[a].mode===Pa&&(b[a].mode=Ya)}}).on(c.didExitFullscreen,function(){var a=p.textTracks;if(0<a.length)for(var b=0,e=a.length;b<e;b++)if(a[b].mode===Ya){a[b].mode=Pa;var f=a[b].language+"."+a[b].kind;f!==sa&&(sa=f,d.fire(c.captionsChanged,sa))}}).on(La,
function(e){if(sa!==e){var f=K(e);sa=f.id;if(f.track&&0===f.track.cues.length&&ha){var g=a.request.text_tracks.reduce(function(a,b){return b.lang+"."+b.kind===f.id?b.direct_url:a},"");0;var h=new XMLHttpRequest;h.open("GET",g,!0);h.onload=function(){b(h.responseText).forEach(function(a){a=new TextTrackCue(a.startTime,a.endTime,a.text);f.track.addCue(a)})};h.send()}f.track&&H({target:f.track});g=!1;sa!==e&&(g=!0);d.fire(c.captionsChanged,sa,g)}}).on(Ma,function(){for(var a=p.textTracks,b=0,e=a.length;b<
e;b++)a[b].mode=Xa;d.fire(c.cueChanged,null,[]);sa&&d.fire(c.captionsChanged);sa=null}),D(),"text_tracks"in a.request&&0<a.request.text_tracks.length&&(null!==a.request.cookie.captions?d.fire(La,a.request.cookie.captions,!0):d.fire(Ma,!0)))})();a.embed.autoplay&&(p.preload="",S=!0,d.fire(c.playButtonPressed));d.fire(c.videoModuleReady)}}();r.VimeoPlayer=Za})(window,document);
