0% found this document useful (0 votes)
18K views

Player

Uploaded by

Marefu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18K views

Player

Uploaded by

Marefu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 164

/* VimeoPlayer - v3.36.3 - 2021-06-16 - https://player.vimeo.com/NOTICE.

txt */
!function(t){"use strict";var n="undefined"!=typeof globalThis?
globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?
global:"undefined"!=typeof self?self:{};function i(t,n,i){return
t(i={path:n,exports:{},require:function(t,n){return function(){throw new
Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
(null==n&&i.path)}},i.exports),i.exports}var e=i((function(t,i){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and
contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-
promise/master/LICENSE
* @version v4.2.6+9869a4bc
*/
t.exports=function(){function t(t){return"function"==typeof t}var i=Array.isArray?
Array.isArray:function(t){return"[object
Array]"===Object.prototype.toString.call(t)},e=0,r=void 0,o=void 0,u=function(t,n)
{d[e]=t,d[e+1]=n,2===(e+=2)&&(o?o(v):p())},a="undefined"!=typeof window?window:void
0,s=a||{},c=s.MutationObserver||s.WebKitMutationObserver,l="undefined"==typeof
self&&"undefined"!=typeof process&&"[object
process]"==={}.toString.call(process),f="undefined"!=typeof
Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof
MessageChannel;function h(){var t=setTimeout;return function(){return t(v,1)}}var
d=new Array(1e3);function v(){for(var t=0;t<e;t+=2)(0,d[t])(d[t+1]),d[t]=void
0,d[t+1]=void 0;e=0}var p=void 0;function m(t,n){var i=this,e=new
this.constructor(g);void 0===e[w]&&I(e);var r=i._;if(r){var o=arguments[r-
1];u((function(){return C(r,e,o,i.k)}))}else A(i,e,t,n);return e}function b(t)
{if(t&&"object"==typeof t&&t.constructor===this)return t;var n=new this(g);return
E(n,t),n}p=l?function(){return process.nextTick(v)}:c?function(){var t=0,n=new
c(v),i=document.createTextNode("");return n.observe(i,{characterData:!
0}),function(){i.data=t=++t%2}}():f?function(){var t=new MessageChannel;return
t.port1.onmessage=v,function(){return t.port2.postMessage(0)}}():void 0===a?
function(){try{var t=Function("return this")().require("vertx");return void 0!
==(r=t.runOnLoop||t.runOnContext)?function(){r(v)}:h()}catch(t){return h()}}
():h();var w=Math.random().toString(36).substring(2);function g(){}var
y={error:null};function _(t){try{return t.then}catch(t){return
y.error=t,y}}function k(n,i,e)
{i.constructor===n.constructor&&e===m&&i.constructor.resolve===b?function(t,n)
{1===n._?S(t,n.k):2===n._?x(t,n.k):A(n,void 0,(function(n){return E(t,n)}),
(function(n){return x(t,n)}))}(n,i):e===y?(x(n,y.error),y.error=null):void 0===e?
S(n,i):t(e)?function(t,n,i){u((function(t){var e=!1,r=function(i,r,o,u)
{try{i.call(r,(function(i){e||(e=!0,n!==i?E(t,i):S(t,i))}),(function(n){e||(e=!
0,x(t,n))}))}catch(t){return t}}(i,n,0,0,t.T);!e&&r&&(e=!0,x(t,r))}),t)}
(n,i,e):S(n,i)}function E(t,n){t===n?x(t,new TypeError("You cannot resolve a
promise with itself")):function(t){var n=typeof t;return null!
==t&&("object"===n||"function"===n)}(n)?k(t,n,_(n)):S(t,n)}function T(t)
{t.S&&t.S(t.k),M(t)}function S(t,n){void 0===t._&&(t.k=n,t._=1,0!
==t.A.length&&u(M,t))}function x(t,n){void 0===t._&&(t._=2,t.k=n,u(T,t))}function
A(t,n,i,e){var
r=t.A,o=r.length;t.S=null,r[o]=n,r[o+1]=i,r[o+2]=e,0===o&&t._&&u(M,t)}function M(t)
{var n=t.A,i=t._;if(0!==n.length){for(var e=void 0,r=void
0,o=t.k,u=0;u<n.length;u+=3)e=n[u],r=n[u+i],e?
C(i,e,r,o):r(o);t.A.length=0}}function C(n,i,e,r){var o=t(e),u=void 0,a=void
0,s=void 0,c=void 0;if(o){if((u=function(t,n){try{return t(n)}catch(t){return
y.error=t,y}}(e,r))===y?(c=!0,a=u.error,u.error=null):s=!0,i===u)return void
x(i,new TypeError("A promises callback cannot return that same promise."))}else
u=r,s=!0;void 0!==i._||(o&&s?E(i,u):c?x(i,a):1===n?S(i,u):2===n&&x(i,u))}var
R=0;function I(t){t[w]=R++,t._=void 0,t.k=void 0,t.A=[]}var O=function(){function
t(t,n){this.M=t,this.promise=new t(g),this.promise[w]||I(this.promise),i(n)?
(this.length=n.length,this.C=n.length,this.k=new
Array(this.length),0===this.length?S(this.promise,this.k):
(this.length=this.length||
0,this.R(n),0===this.C&&S(this.promise,this.k))):x(this.promise,new Error("Array
Methods must be provided an Array"))}return t.prototype.R=function(t){for(var
n=0;void 0===this._&&n<t.length;n++)this.I(t[n],n)},t.prototype.I=function(t,n){var
i=this.M,e=i.resolve;if(e===b){var r=_(t);if(r===m&&void 0!
==t._)this.O(t._,n,t.k);else if("function"!=typeof r)this.C--,this.k[n]=t;else
if(i===j){var o=new i(g);k(o,t,r),this.L(o,n)}else this.L(new i((function(n){return
n(t)})),n)}else this.L(e(t),n)},t.prototype.O=function(t,n,i){var
e=this.promise;void 0===e._&&(this.C--,2===t?
x(e,i):this.k[n]=i),0===this.C&&S(e,this.k)},t.prototype.L=function(t,n){var
i=this;A(t,void 0,(function(t){return i.O(1,n,t)}),(function(t){return
i.O(2,n,t)}))},t}(),j=function(){function n(t){this[w]=R++,this.k=this._=void
0,this.A=[],g!==t&&("function"!=typeof t&&function(){throw new TypeError("You must
pass a resolver function as the first argument to the promise constructor")}(),this
instanceof n?function(t,n){try{n((function(n){E(t,n)}),(function(n)
{x(t,n)}))}catch(n){x(t,n)}}(this,t):function(){throw new TypeError("Failed to
construct 'Promise': Please use the 'new' operator, this object constructor cannot
be called as a function.")}())}return n.prototype.catch=function(t){return
this.then(null,t)},n.prototype.finally=function(n){var i=this.constructor;return
t(n)?this.then((function(t){return i.resolve(n()).then((function(){return t}))}),
(function(t){return i.resolve(n()).then((function(){throw
t}))})):this.then(n,n)},n}();return j.prototype.then=m,j.all=function(t){return new
O(this,t).promise},j.race=function(t){var n=this;return i(t)?new n((function(i,e)
{for(var r=t.length,o=0;o<r;o++)n.resolve(t[o]).then(i,e)})):new n((function(t,n)
{return n(new TypeError("You must pass an array to
race."))}))},j.resolve=b,j.reject=function(t){var n=new this(g);return
x(n,t),n},j.D=function(t){o=t},j.P=function(t){u=t},j.N=u,j.polyfill=function(){var
t=void 0;if(void 0!==n)t=n;else if("undefined"!=typeof self)t=self;else
try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because
global object is unavailable in this environment")}var i=t.Promise;if(i){var
e=null;try{e=Object.prototype.toString.call(i.resolve())}catch(t){}if("[object
Promise]"===e&&!i.cast)return}t.Promise=j},j.Promise=j,j}()})),r=window.Promise||
e;r.allSettled||(r.allSettled=function(t){return r.all(t.map((function(t){return
t.then((function(t){return{status:"fulfilled",value:t}})).catch((function(t)
{return{status:"rejected",reason:t}}))})))});var o,u,a,s,c={object:!0,symbol:!
0},l=function(t){return null!=t},f=Object.keys,h=function(){try{return
Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return
f(l(t)?Object(t):t)},d=function(t){if(!l(t))throw new TypeError("Cannot use null or
undefined");return t},v=Math.max,p=function(){var
t,n=Object.assign;return"function"==typeof n&&(n(t={foo:"raz"},{bar:"dwa"},
{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,n)
{var i,e,r,o=v(arguments.length,2);for(t=Object(d(t)),r=function(e)
{try{t[e]=n[e]}catch(t){i||(i=t)}},e=1;e<o;+
+e)n=arguments[e],h(n).forEach(r);if(void 0!==i)throw i;return
t},m=Array.prototype.forEach,b=Object.create,w=function(t,n){var i;for(i in
t)n[i]=t[i]},g=function(t){var n=b(null);return m.call(arguments,(function(t)
{l(t)&&w(Object(t),n)})),n},y=function(t){return"function"==typeof
t},_="razdwatrzy",k=String.prototype.indexOf,E="function"==typeof _.contains&&!
0===_.contains("dwa")&&!1===_.contains("foo")?String.prototype.contains:function(t)
{return k.call(this,t,arguments[1])>-1},T=i((function(t){(t.exports=function(t,n)
{var i,e,r,o,u;return arguments.length<2||"string"!=typeof t?
(o=n,n=t,t=null):o=arguments[2],null==t?(i=r=!0,e=!1):
(i=E.call(t,"c"),e=E.call(t,"e"),r=E.call(t,"w")),u={value:n,configurable:i,enumera
ble:e,writable:r},o?p(g(o),u):u}).gs=function(t,n,i){var e,r,o,u;return"string"!
=typeof t?(o=i,i=n,n=t,t=null):o=arguments[3],null==n?n=void 0:y(n)?null==i?i=void
0:y(i)||(o=i,i=void 0):(o=n,n=i=void 0),null==t?(e=!0,r=!1):
(e=E.call(t,"c"),r=E.call(t,"e")),u={get:n,set:i,configurable:e,enumerable:r},o?
p(g(o),u):u}})),S=function(t){if(!function(t){return!!t&&("symbol"==typeof t||!!
t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTa
g])}(t))throw new TypeError(t+" is not a symbol");return
t},x=Object.create,A=Object.defineProperties,M=Object.defineProperty,C=Object.proto
type,R=x(null);if("function"==typeof Symbol){o=Symbol;try{String(o()),s=!0}catch(t)
{}}var I=function(){var t=x(null);return function(n){for(var i,e,r=0;t[n+(r||"")];)
++r;return t[n+=r||""]=!0,M(C,i="@@"+n,T.gs(null,(function(t){e||(e=!
0,M(this,i,T(t)),e=!1)}))),i}}();a=function(t){if(this instanceof a)throw new
TypeError("TypeError: Symbol is not a constructor");return u(t)};var O=u=function
t(n){var i;if(this instanceof t)throw new TypeError("TypeError: Symbol is not a
constructor");return s?o(n):(i=x(a.prototype),n=void 0===n?"":String(n),A(i,
{F:T("",n),U:T("",I(n))}))};A(u,{for:T((function(t){return R[t]?
R[t]:R[t]=u(String(t))})),keyFor:T((function(t){var n;for(n in
S(t),R)if(R[n]===t)return n})),hasInstance:T("",o&&o.hasInstance||
u("hasInstance")),isConcatSpreadable:T("",o&&o.isConcatSpreadable||
u("isConcatSpreadable")),iterator:T("",o&&o.iterator||
u("iterator")),match:T("",o&&o.match||u("match")),replace:T("",o&&o.replace||
u("replace")),search:T("",o&&o.search||u("search")),species:T("",o&&o.species||
u("species")),split:T("",o&&o.split||
u("split")),toPrimitive:T("",o&&o.toPrimitive||
u("toPrimitive")),toStringTag:T("",o&&o.toStringTag||
u("toStringTag")),unscopables:T("",o&&o.unscopables||
u("unscopables"))}),A(a.prototype,{constructor:T(u),toString:T("",(function()
{return this.U}))}),A(u.prototype,{toString:T((function(){return"Symbol
("+S(this).F+")"})),valueOf:T((function(){return
S(this)}))}),M(u.prototype,u.toPrimitive,T("",(function(){var
t=S(this);return"symbol"==typeof t?
t:t.toString()}))),M(u.prototype,u.toStringTag,T("c","Symbol")),M(a.prototype,u.toS
tringTag,T("c",u.prototype[u.toStringTag])),M(a.prototype,u.toPrimitive,T("c",u.pro
totype[u.toPrimitive]));var j=function(){var t;if("function"!=typeof Symbol)return!
1;t=Symbol("test symbol");try{String(t)}catch(t){return!1}return!!c[typeof
Symbol.iterator]&&!!c[typeof Symbol.toPrimitive]&&!!c[typeof Symbol.toStringTag]}
()?Symbol:O;if(function(){for(var t=["webkit","moz"],n=0;n<t.length&&!
window.requestAnimationFrame;++n){var
i=t[n];window.requestAnimationFrame=window[i+"RequestAnimationFrame"],window.cancel
AnimationFrame=window[i+"CancelAnimationFrame"]||
window[i+"CancelRequestAnimationFrame"]}!/iP(ad|hone|od).*OS

6/.test(window.navigator.userAgent)&&window.requestAnimationFrame&&window.cancelAni
mationFrame||(window.requestAnimationFrame=function(t){return
setTimeout(t,0)},window.cancelAnimationFrame=clearTimeout)}(),Number.isInteger||
(Number.isInteger=function(t){return"number"==typeof
t&&isFinite(t)&&Math.floor(t)===t}),"undefined"!=typeof DOMTokenList&&!function()
{var t=document.createElement("div");return t.classList.toggle("test-class",!1),!
t.classList.contains("test-class")}()){var
L=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,n){!0!
==n?!1!==n?L.call(this,t):this.remove(t):this.add(t)}}"function"!=typeof
Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot
convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i+
+){var e=arguments[i];if(null!=e)for(var r in
e)e.hasOwnProperty(r)&&(n[r]=e[r])}return n}),Array.prototype.find||
Object.defineProperty(Array.prototype,"find",{value:function(t){for(var
n=Object(this),i=n.length>>>0,e=arguments[1],r=0;r<i;){var
o=n[r];if(t.call(e,o,r,n))return o;r++}}}),Array.prototype.findIndex||
Object.defineProperty(Array.prototype,"findIndex",{value:function(t){for(var
n=Object(this),i=n.length>>>0,e=arguments[1],r=0;r<i;){var
o=n[r];if(t.call(e,o,r,n))return r;r++}return-1}}),Array.prototype.includes||
Object.defineProperty(Array.prototype,"includes",{value:function(t,n)
{if(null==this)throw new TypeError('"this" is null or not defined');var
i=Object(this),e=i.length>>>0;if(0===e)return!1;var r=0|n,o=Math.max(r>=0?r:e-
Math.abs(r),0);function u(t,n){return t===n||"number"==typeof t&&"number"==typeof
n&&isNaN(t)&&isNaN(n)}for(;o<e;){if(u(i[o],t))return!0;o++}return!
1}}),String.prototype.includes||(String.prototype.includes=function(t,n)
{return"number"!=typeof n&&(n=0),!(n+t.length>this.length)&&-1!
==this.indexOf(t,n)}),Object.values||(Object.values=function(t){return
Object.keys(t).map((function(n){return t[n]}))}),String.prototype.startsWith||
(String.prototype.startsWith=function(t,n){return this.slice(n||
0,t.length)===t}),String.prototype.endsWith||
(String.prototype.endsWith=function(t,n){return(void 0===n||
n>this.length)&&(n=this.length),this.substring(n-
t.length,n)===t}),Number.isNaN=Number.isNaN||function(t){return"number"==typeof
t&&t!=t},void 0===Number.parseFloat&&(Number.parseFloat=window.parseFloat),void
0===Number.parseInt&&(Number.parseInt=window.parseInt),void
0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof
t&&isFinite(t)}),Array.prototype.entries||(Array.prototype.entries=function(){var
t,n=this,i=0;function e(){}return e.prototype.next=function(){return i>n.length-
1&&(t=!0),t?{value:void 0,done:!0}:{value:[i,n[i++]],done:!
1}},e.prototype[j.iterator]=function(){return this},new
e}),Array.prototype[j.iterator]||(Array.prototype[j.iterator]=function(){var
t,n=this,i=0;function e(){}return e.prototype.next=function(){return i>n.length-
1&&(t=!0),t?{value:void 0,done:!0}:{value:n[i++],done:!
1}},e.prototype[j.iterator]=function(){return this},new e});var D=window.Map||
function(){var t,n,i,e=function(){n=[],i=[]},r=function(i){return-
1<(t=n.indexOf(i))};return e(),{get size(){return
n.length},has:r,clear:e,get:function(t){return i[n.indexOf(t)]},keys:function()
{return n.slice()},values:function(){return i.slice()},entries:function(){return
n.map((function(t,n){return[t,i[n]]}))},delete:function(e){return
r(e)&&n.splice(t,1)&&!!i.splice(t,1)},forEach:function(t,e){var
r=this;i.forEach((function(i,o){return t.call(e,i,n[o],r)}))},set:function(e,o)
{return r(e)?i[t]=o:i[n.push(e)-1]=o,this}}},P=window.WeakMap||function(){var
t=Object.defineProperty,n=Date.now()%1e9,i=function()
{this.name="__st"+(1e9*Math.random()>>>0)+n+++"__"};return
i.prototype.set=function(n,i){if("object"!==V(n)&&"function"!=typeof n)throw new
TypeError("Invalid value used as weak map key");var e=n[this.name];return
e&&e[0]===n?e[1]=i:t(n,this.name,{value:[n,i],writable:!
0}),this},i.prototype.get=function(t){var n;return(n=t[this.name])&&n[0]===t?
n[1]:void 0},i.prototype.delete=function(t){var n=t[this.name];return!(!n||n[0]!
==t||(n[0]=n[1]=void 0,0))},i.prototype.has=function(t){var n=t[this.name];return!!
n&&n[0]===t},i}(),N=window.Array.from,F=[1];
/**
* @license
*
* Portions of this polyfill are a derivative work of the Polymer project, which
requires the following licence notice:
*
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
http://polymer.github.io/PATENTS.txt
*/"function"==typeof N&&N(F)===F&&(N=!1);var U=N||function(t)
{return[].slice.call(t,0)};function V(t){return(V="function"==typeof
j&&"symbol"==typeof j.iterator?function(t){return typeof t}:function(t){return
t&&"function"==typeof j&&t.constructor===j&&t!==j.prototype?"symbol":typeof t})
(t)}function B(t,n){for(var i=0;i<n.length;i++){var
e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!
0),Object.defineProperty(t,e.key,e)}}function H(t,n,i){return
n&&B(t.prototype,n),i&&B(t,i),t}function q(t,n,i){return n in t?
Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!
0}):t[n]=i,t}function W(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols)
{var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return
Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return
i}function z(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?
arguments[n]:{};n%2?W(Object(i),!0).forEach((function(n)
{q(t,n,i[n])})):Object.getOwnPropertyDescriptors?
Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):W(Object(i)).forEach
((function(n)
{Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return
t}function G(t,n)
{t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}fun
ction K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return
t.__proto__||Object.getPrototypeOf(t)})(t)}function Y(t,n)
{return(Y=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})
(t,n)}function J(){if("undefined"==typeof Reflect||!Reflect.construct)return!
1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!
0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function()
{}))),!0}catch(t){return!1}}function $(t,n,i){return($=J()?
Reflect.construct:function(t,n,i){var e=[null];e.push.apply(e,n);var
r=new(Function.bind.apply(t,e));return
i&&Y(r,i.prototype),r}).apply(null,arguments)}function X(t){var
n="function"==typeof D?new D:void 0;return(X=function(t){if(null===t||!function(t)
{return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return
t;if("function"!=typeof t)throw new TypeError("Super expression must either be null
or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,i)}function i()
{return $(t,arguments,K(this).constructor)}return
i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!
1,writable:!0,configurable:!0}}),Y(i,t)})(t)}function Z(t){if(void 0===t)throw new
ReferenceError("this hasn't been initialised - super() hasn't been called");return
t}function Q(t,n){return function(t){if(Array.isArray(t))return t}(t)||
function(t,n){if(void 0!==j&&j.iterator in Object(t)){var i=[],e=!0,r=!1,o=void
0;try{for(var u,a=t[j.iterator]();!(e=(u=a.next()).done)&&(i.push(u.value),!n||
i.length!==n);e=!0);}catch(t){r=!0,o=t}finally{try{e||null==a.return||
a.return()}finally{if(r)throw o}}return i}}(t,n)||nt(t,n)||function(){throw new
TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be
iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function
tt(t){return function(t){if(Array.isArray(t))return it(t)}(t)||function(t){if(void
0!==j&&j.iterator in Object(t))return U(t)}(t)||nt(t)||function(){throw new
TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be
iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function
nt(t,n){if(t){if("string"==typeof t)return it(t,n);var
i=Object.prototype.toString.call(t).slice(8,-
1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?
U(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?
it(t,n):void 0}}function it(t,n){(null==n||n>t.length)&&(n=t.length);for(var
i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function et(t,n){var i;if(void
0===j||null==t[j.iterator]){if(Array.isArray(t)||(i=nt(t))||n&&t&&"number"==typeof
t.length){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!
1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable
instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]
() method.")}return(i=t[j.iterator]()).next.bind(i)}var rt=i((function(t,n)
{t.exports=function(t){var n={};return(t=t||{}).prependOn=function(n,i){return
t.on(n,i,!0)},t.eventNames=function(){return Object.keys(n)},t.on=function(i,e,r)
{for(var o=0,u=(i=[].concat(i)).length;o<u;o++){var a=i[o];if(!a)throw new
Error("Tried to listen for an undefined event.");n[a]||(n[a]=[]),r?
n[a].unshift(e):n[a].push(e)}return t},t.once=function(n,i,e){function r()
{i.apply(t.off(n,r),arguments)}return r.handler=i,t.on(n,r,e)},t.off=function(i,e)
{if(!i)return n={},t;for(var r=0,o=(i=[].concat(i)).length;r<o;r++){var u=i[r];if(!
u)throw new Error("Tried to remove an undefined event.");if(u in n)if(e){var
a=n[u].indexOf(e);if(-1===a)for(var s=0,c=n[u].length;s<c;s++)if(n[u]
[s].handler===e){a=r;break}if(-1===a)return t;n[u].splice(a,1)}else delete
n[u]}return t},t.fire=function(i){if(!i)throw new Error("Tried to fire an undefined
event.");if(i in n)for(var e=n[i].slice(0),r=0,o=e.length;r<o;r+
+)if(e[r].apply(t,e.slice.call(arguments,1)),t.V){delete t.V;break}return
t},t.halt=function(){return t.V=!0,t},t}}));function ot(t){return function(n)
{for(var i=arguments.length,e=new Array(i>1?i-1:0),r=1;r<i;r++)e[r-
1]=arguments[r];return e.forEach((function(i){for(var e in i){var
r=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,Object.assign(r,t)
)}})),n}}var ut=ot({enumerable:!1,configurable:!0,writeable:!
1}),at=ot({enumerable:!1,configurable:!1,writeable:!1}),st=ot({enumerable:!
0,configurable:!0,writeable:!1}),ct="",lt={defer:!0,async:!0};function ft(t,n)
{n=Object.assign(lt,n);var i=window.vpimport__=window.vpimport__||{cache:
{}};if(i.cache[t])return i.cache[t].H;var e=new r((function(e,r){var
o=document.getElementsByTagName("head")
[0],u=document.createElement("script");u.src=ct+t,u.defer=n.defer,u.async=n.async,u
.onreadystatechange=u.onload=function(){var n=Object.keys(i).filter((function(t)
{return"cache"!==t}))[0];i.cache[t].W=i[n],delete
i[n],e(i.cache[t].W),o.removeChild(u)},u.onerror=function(n){r(n),delete
i.cache[t],o.removeChild(u)},o.appendChild(u)}));return i.cache[t]={H:e},e}function
ht(t){for(var n=function(t){return t&&"object"===V(t)},i=arguments.length,e=new
Array(i>1?i-1:0),r=1;r<i;r++)e[r-1]=arguments[r];return e.reduce((function(t,i)
{return Object.keys(i||{}).forEach((function(e){var r=t[e],o=i[e];r&&void 0===o||
(Array.isArray(o)?t[e]=(r||[]).concat(o):n(o)?
t[e]=ht({},r,o):t[e]=o)})),t}),t)}function dt(){var t,n,i=new r((function(i,e)
{t=i,n=e}));return i.resolve=t,i.reject=n,i}function vt(t,n){for(var
i=t,e=0;e<n.length;e++)if(n.start(e)<=t&&n.end(e)>=t){i=n.end(e);break}return i-
t}function pt(t,n){if(!n||!n.length)return 0;if(1===n.length&&n.end(0)-
n.start(0)<1e-6)return 0;for(var i=0,e=n.length-1;e>=0&&n.end(e)>t;--e)i+=n.end(e)-
Math.max(n.start(e),t);return i}function mt(t){return"string"!=typeof t?
{}:t.replace("?","").split("&").reduce((function(t,n){if(n.length>0){var
i=Q(n.split("="),2),e=i[0],r=i[1];t[e]=decodeURIComponent(r)}return t}),
{})}function bt(t){var n=document.createElement("a");return n.href=t,n}function
wt(t,n){var i=function(t){if("object"!==V(t))return"";var n=[];for(var i in
t)t.hasOwnProperty(i)&&n.push(encodeURIComponent(i)
+"="+encodeURIComponent(t[i]));return n.length?n.join("&"):""}
(n);return"".concat(t).concat(i?"?".concat(i):"")}function gt(t){var
n=t.split("://");if(2!==n.length)return null;var
i=n[1].split("/");if(i.length>1)return i[0];var
e=n[1].split("?");if(e.length>1)return e[0];var r=n[1].split("#");return
r.length>1?r[0]:n[1]}function yt(t,n,i){switch(i.length){case 0:return
t.call(n);case 1:return t.call(n,i[0]);case 2:return t.call(n,i[0],i[1]);case
3:return t.call(n,i[0],i[1],i[2])}return t.apply(n,i)}function _t(t){return t}var
kt=Math.max;function Et(t,n,i){return n=kt(void 0===n?t.length-1:n,0),function()
{for(var e=arguments,r=-1,o=kt(e.length-n,0),u=Array(o);++r<o;)u[r]=e[n+r];r=-
1;for(var a=Array(n+1);++r<n;)a[r]=e[r];return a[n]=i(u),yt(t,this,a)}}function
Tt(t){return function(){return t}}var St="object"==("undefined"==typeof
global?"undefined":V(global))&&global&&global.Object===Object&&global,xt="object"==
("undefined"==typeof
self?"undefined":V(self))&&self&&self.Object===Object&&self,At=St||xt||
Function("return this")
(),Mt=At.Symbol,Ct=Object.prototype,Rt=Ct.hasOwnProperty,It=Ct.toString,Ot=Mt?
Mt.toStringTag:void 0,jt=Object.prototype.toString,Lt=Mt?Mt.toStringTag:void
0;function Dt(t){return null==t?void 0===t?"[object Undefined]":"[object
Null]":Lt&&Lt in Object(t)?function(t){var n=Rt.call(t,Ot),i=t[Ot];try{t[Ot]=void
0;var e=!0}catch(t){}var r=It.call(t);return e&&(n?t[Ot]=i:delete t[Ot]),r}
(t):function(t){return jt.call(t)}(t)}function Pt(t){var n=V(t);return null!
=t&&("object"==n||"function"==n)}function Nt(t){if(!Pt(t))return!1;var
n=Dt(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object
AsyncFunction]"==n||"[object Proxy]"==n}var Ft=At["G"],Ut=function(){var t=/[^.]+
$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}
(),Vt=Function.prototype.toString;function Bt(t){if(null!=t){try{return
Vt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Ht=/^\[object .+?
Constructor\]
$/,qt=Function.prototype,Wt=Object.prototype,zt=qt.toString,Gt=Wt.hasOwnProperty,Kt
=RegExp("^"+zt.call(Gt).replace(/[\\^$.*+?()[\]{}|]/g,"\\
$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")
+"$");function Yt(t,n){var i=function(t,n){return null==t?void 0:t[n]}(t,n);return
function(t){return!(!Pt(t)||function(t){return!!Ut&&Ut in t}(t))&&(Nt(t)?
Kt:Ht).test(Bt(t))}(i)?i:void 0}var Jt=function(){try{var
t=Yt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),$t=Jt?
function(t,n){return Jt(t,"toString",{configurable:!0,enumerable:!
1,value:Tt(n),writable:!0})}:_t,Xt=Date.now,Zt=function(t){var
n=0,i=0;return function(){var e=Xt(),r=16-(e-i);if(i=e,r>0){if(++n>=800)return
arguments[0]}else n=0;return t.apply(void 0,arguments)}}($t);function Qt(t,n)
{return Zt(Et(t,n,_t),t+"")}function tn(t,n){return t===n||t!=t&&n!=n}function
nn(t,n){for(var i=t.length;i--;)if(tn(t[i][0],n))return i;return-1}var
en=Array.prototype.splice;function rn(t){var n=-1,i=null==t?
0:t.length;for(this.clear();++n<i;){var
e=t[n];this.set(e[0],e[1])}}rn.prototype.clear=function()
{this.K=[],this.size=0},rn.prototype.delete=function(t){var
n=this.K,i=nn(n,t);return!(i<0||(i==n.length-1?n.pop():en.call(n,i,1),--
this.size,0))},rn.prototype.get=function(t){var n=this.K,i=nn(n,t);return i<0?void
0:n[i][1]},rn.prototype.has=function(t){return nn(this.K,t)>-
1},rn.prototype.set=function(t,n){var i=this.K,e=nn(i,t);return e<0?(+
+this.size,i.push([t,n])):i[e][1]=n,this};var
on=Yt(At,"Map"),un=Yt(Object,"create"),an=Object.prototype.hasOwnProperty,sn=Object
.prototype.hasOwnProperty;function cn(t){var n=-1,i=null==t?
0:t.length;for(this.clear();++n<i;){var e=t[n];this.set(e[0],e[1])}}function
ln(t,n){var i=t.K;return function(t){var
n=V(t);return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!
==t:null===t}(n)?i["string"==typeof n?"string":"hash"]:i.map}function fn(t){var n=-
1,i=null==t?0:t.length;for(this.clear();++n<i;){var
e=t[n];this.set(e[0],e[1])}}function hn(t){var n=this.K=new
rn(t);this.size=n.size}function dn(t,n,i){"__proto__"==n&&Jt?Jt(t,n,{configurable:!
0,enumerable:!0,value:i,writable:!0}):t[n]=i}function vn(t,n,i){(void 0===i||
tn(t[n],i))&&(void 0!==i||n in t)||dn(t,n,i)}cn.prototype.clear=function()
{this.K=un?un(null):{},this.size=0},cn.prototype.delete=function(t){var
n=this.has(t)&&delete this.K[t];return this.size-=n?
1:0,n},cn.prototype.get=function(t){var n=this.K;if(un){var
i=n[t];return"__lodash_hash_undefined__"===i?void 0:i}return an.call(n,t)?n[t]:void
0},cn.prototype.has=function(t){var n=this.K;return un?void 0!
==n[t]:sn.call(n,t)},cn.prototype.set=function(t,n){var i=this.K;return
this.size+=this.has(t)?0:1,i[t]=un&&void
0===n?"__lodash_hash_undefined__":n,this},fn.prototype.clear=function()
{this.size=0,this.K={hash:new cn,map:new(on||rn),string:new
cn}},fn.prototype.delete=function(t){var n=ln(this,t).delete(t);return this.size-
=n?1:0,n},fn.prototype.get=function(t){return
ln(this,t).get(t)},fn.prototype.has=function(t){return
ln(this,t).has(t)},fn.prototype.set=function(t,n){var i=ln(this,t),e=i.size;return
i.set(t,n),this.size+=i.size==e?0:1,this},hn.prototype.clear=function(){this.K=new
rn,this.size=0},hn.prototype.delete=function(t){var n=this.K,i=n.delete(t);return
this.size=n.size,i},hn.prototype.get=function(t){return
this.K.get(t)},hn.prototype.has=function(t){return
this.K.has(t)},hn.prototype.set=function(t,n){var i=this.K;if(i instanceof rn){var
e=i.K;if(!on||e.length<199)return e.push([t,n]),this.size=+
+i.size,this;i=this.K=new fn(e)}return i.set(t,n),this.size=i.size,this};var
pn=function(t,n,i){for(var e=-1,r=Object(t),o=i(t),u=o.length;u--;){var a=o[+
+e];if(!1===n(r[a],a,r))break}return t},mn="object"==(void
0===t?"undefined":V(t))&&t&&!t.nodeType&&t,bn=mn&&"object"==("undefined"==typeof
module?"undefined":V(module))&&module&&!
module.nodeType&&module,wn=bn&&bn.exports===mn?At.Buffer:void 0,gn=wn?
wn.allocUnsafe:void 0;function yn(t,n){if(n)return t.slice();var i=t.length,e=gn?
gn(i):new t.constructor(i);return t.copy(e),e}var _n=At.Uint8Array;function kn(t)
{var n=new t.constructor(t.byteLength);return new _n(n).set(new _n(t)),n}function
En(t,n){var i=n?kn(t.buffer):t.buffer;return new
t.constructor(i,t.byteOffset,t.length)}function Tn(t,n){var i=-1,e=t.length;for(n||
(n=Array(e));++i<e;)n[i]=t[i];return n}var Sn=Object.create,xn=function(){function
t(){}return function(n){if(!Pt(n))return{};if(Sn)return Sn(n);t.prototype=n;var
i=new t;return t.prototype=void 0,i}}();function An(t,n){return function(i){return
t(n(i))}}var Mn=An(Object.getPrototypeOf,Object),Cn=Object.prototype;function Rn(t)
{var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||Cn)}function
In(t){return"function"!=typeof t.constructor||Rn(t)?{}:xn(Mn(t))}function On(t)
{return null!=t&&"object"==V(t)}function jn(t){return On(t)&&"[object
Arguments]"==Dt(t)}var
Ln=Object.prototype,Dn=Ln.hasOwnProperty,Pn=Ln.propertyIsEnumerable,Nn=jn(function(
){return arguments}())?jn:function(t){return On(t)&&Dn.call(t,"callee")&&!
Pn.call(t,"callee")},Fn=Array.isArray;function Un(t){return"number"==typeof t&&t>-
1&&t%1==0&&t<=9007199254740991}function Vn(t){return null!=t&&Un(t.length)&&!
Nt(t)}var Bn="object"==(void 0===t?"undefined":V(t))&&t&&!
t.nodeType&&t,Hn=Bn&&"object"==("undefined"==typeof
module?"undefined":V(module))&&module&&!
module.nodeType&&module,qn=Hn&&Hn.exports===Bn?At.Buffer:void 0,Wn=(qn?
qn.isBuffer:void 0)||function(){return!
1},zn=Function.prototype,Gn=Object.prototype,Kn=zn.toString,Yn=Gn.hasOwnProperty,Jn
=Kn.call(Object);function $n(t){if(!On(t)||"[object Object]"!=Dt(t))return!1;var
n=Mn(t);if(null===n)return!0;var
i=Yn.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i instanceof
i&&Kn.call(i)==Jn}var Xn={};function Zn(t){return function(n){return
t(n)}}Xn["[object Float32Array]"]=Xn["[object Float64Array]"]=Xn["[object
Int8Array]"]=Xn["[object Int16Array]"]=Xn["[object Int32Array]"]=Xn["[object
Uint8Array]"]=Xn["[object Uint8ClampedArray]"]=Xn["[object
Uint16Array]"]=Xn["[object Uint32Array]"]=!0,Xn["[object Arguments]"]=Xn["[object
Array]"]=Xn["[object ArrayBuffer]"]=Xn["[object Boolean]"]=Xn["[object
DataView]"]=Xn["[object Date]"]=Xn["[object Error]"]=Xn["[object
Function]"]=Xn["[object Map]"]=Xn["[object Number]"]=Xn["[object
Object]"]=Xn["[object RegExp]"]=Xn["[object Set]"]=Xn["[object
String]"]=Xn["[object WeakMap]"]=!1;var Qn="object"==(void
0===t?"undefined":V(t))&&t&&!t.nodeType&&t,ti=Qn&&"object"==("undefined"==typeof
module?"undefined":V(module))&&module&&!
module.nodeType&&module,ni=ti&&ti.exports===Qn&&St.process,ii=function(){try{return
ti&&ti.require&&ti.require("util").types||
ni&&ni.binding&&ni.binding("util")}catch(t){}}(),ei=ii&&ii.isTypedArray,ri=ei?
Zn(ei):function(t){return On(t)&&Un(t.length)&&!!Xn[Dt(t)]};function oi(t,n)
{if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var
ui=Object.prototype.hasOwnProperty;function ai(t,n,i){var
e=t[n];ui.call(t,n)&&tn(e,i)&&(void 0!==i||n in t)||dn(t,n,i)}function si(t,n,i,e)
{var r=!i;i||(i={});for(var o=-1,u=n.length;++o<u;){var a=n[o],s=e?
e(i[a],t[a],a,i,t):void 0;void 0===s&&(s=t[a]),r?dn(i,a,s):ai(i,a,s)}return i}var
ci=/^(?:0|[1-9]\d*)$/;function li(t,n){var i=V(t);return!!(n=null==n?
9007199254740991:n)&&("number"==i||"symbol"!=i&&ci.test(t))&&t>-1&&t%1==0&&t<n}var
fi=Object.prototype.hasOwnProperty;function hi(t,n){var i=Fn(t),e=!i&&Nn(t),r=!i&&!
e&&Wn(t),o=!i&&!e&&!r&&ri(t),u=i||e||r||o,a=u?function(t,n){for(var i=-
1,e=Array(t);++i<t;)e[i]=n(i);return e}(t.length,String):[],s=a.length;for(var c in
t)!n&&!fi.call(t,c)||u&&("length"==c||r&&("offset"==c||"parent"==c)||
o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||li(c,s))||a.push(c);return
a}var di=Object.prototype.hasOwnProperty;function vi(t){return Vn(t)?hi(t,!
0):function(t){if(!Pt(t))return function(t){var n=[];if(null!=t)for(var i in
Object(t))n.push(i);return n}(t);var n=Rn(t),i=[];for(var e in t)("constructor"!
=e||!n&&di.call(t,e))&&i.push(e);return i}(t)}function pi(t,n,i,e,r){t!==n&&pn(n,
(function(o,u){if(r||(r=new hn),Pt(o))!function(t,n,i,e,r,o,u){var
a=oi(t,i),s=oi(n,i),c=u.get(s);if(c)vn(t,i,c);else{var l=o?o(a,s,i+"",t,n,u):void
0,f=void 0===l;if(f){var h=Fn(s),d=!h&&Wn(s),v=!h&&!d&&ri(s);l=s,h||d||v?Fn(a)?
l=a:function(t){return On(t)&&Vn(t)}(a)?l=Tn(a):d?(f=!1,l=yn(s,!0)):v?(f=!
1,l=En(s,!0)):l=[]:$n(s)||Nn(s)?(l=a,Nn(a)?l=function(t){return si(t,vi(t))}
(a):Pt(a)&&!Nt(a)||(l=In(s))):f=!
1}f&&(u.set(s,l),r(l,s,e,o,u),u.delete(s)),vn(t,i,l)}}(t,n,u,i,pi,e,r);else{var
a=e?e(oi(t,u),o,u+"",t,n,r):void 0;void 0===a&&(a=o),vn(t,u,a)}}),vi)}function
mi(t,n,i,e,r,o){return Pt(t)&&Pt(n)&&(o.set(n,t),pi(t,n,void
0,mi,o),o.delete(n)),t}function bi(t){return Qt((function(n,i){var e=-
1,r=i.length,o=r>1?i[r-1]:void 0,u=r>2?i[2]:void
0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,u&&function(t,n,i){if(!
Pt(i))return!1;var e=V(n);return!!("number"==e?Vn(i)&&li(n,i.length):"string"==e&&n
in i)&&tn(i[n],t)}(i[0],i[1],u)&&(o=r<3?void 0:o,r=1),n=Object(n);++e<r;){var
a=i[e];a&&t(n,a,e,o)}return n}))}var wi=bi((function(t,n,i,e)
{pi(t,n,i,e)})),gi=Qt((function(t){return t.push(void 0,mi),yt(wi,void
0,t)})),yi=function(){function t(t){this.Y=!1,this.J=!1,this.$=t,rt(this)}H(t,null,
[{key:"displayName",get:function(){return"ExternalDisplay"}},
{key:"supported",get:function(){return!1}},
{key:"supportedVideoTypes",get:function(){return[]}}]);var n=t.prototype;return
n.showPicker=function(){},n.getFile=function(){var
t=this.constructor.displayName.replace("ExternalDisplay","");if(this.
$.externalDisplayFiles[t])return this.$.externalDisplayFiles[t];var
n=this.constructor.supportedVideoTypes,i=this.$.files.filter((function(t){return-1!
==n.indexOf(t.mime)})).sort((function(t,i){return t.mime===i.mime?t.priority-
i.priority:n.indexOf(t.mime)-n.indexOf(i.mime)}));if(!i.length)throw new Error("No
files available for ".concat(this.constructor.displayName," external
display."));return i[0]},H(t,[{key:"active",get:function(){return this.J}},
{key:"available",get:function(){return this.Y}},{key:"element",get:function()
{return document.createElement("div")}}]),t}
(),_i={ABORT:"abort",CAN_PLAY:"canplay",CAN_PLAY_THROUGH:"canplaythrough",DURATION_
CHANGE:"durationchange",EMPTIED:"emptied",ENDED:"ended",ENTER_PICTURE_IN_PICTURE:"e
nterpictureinpicture",LEAVE_PICTURE_IN_PICTURE:"leavepictureinpicture",ERROR:"error
",LOADED_DATA:"loadeddata",LOADED_METADATA:"loadedmetadata",LOAD_START:"loadstart",
PAUSE:"pause",PLAY:"play",PLAYING:"playing",PROGRESS:"progress",RATE_CHANGE:"ratech
ange",RESIZE:"resize",SEEKED:"seeked",SEEKING:"seeking",STALLED:"stalled",SUSPEND:"
suspend",TIM
E_UPDATE:"timeupdate",VOLUME_CHANGE:"volumechange",WAITING:"waiting",WEBKIT_BEGIN_F
ULLSCREEN:"webkitbeginfullscreen",WEBKIT_END_FULLSCREEN:"webkitendfullscreen",WEBKI
T_PRESENTATION_MODE_CHANGED:"webkitpresentationmodechanged"},ki={AVAILABLE:"externa
ldisplayavailable",UNAVAILABLE:"externaldisplayunavailable",ACTIVATED:"externaldisp
layactivated",DEACTIVATED:"externaldisplaydeactivated"},Ei={AIRPLAY_AVAILABLE:"avai
lable",AIRPLAY_UNAVAILABLE:"unavailable",AIRPLAY_ACTIVATED:"activated",AIRPLAY_DEAC
TIVATED:"deactivated"},Ti={SCANNER_CHANGE:"scannerchange",SCANNER_ERROR:"scannererr
or",FILE_ERROR:"fileerror",FILE_SRC_UPDATE:"filesrcupdate",DOWNLOAD_START:"download
start",DOWNLOAD_END:"downloadend",DOWNLOAD_ERROR:"downloaderror",DOWNLOAD_TIMEOUT:"
downloadtimeout",DRM_AUTH_FAILURE:"drmauthfailure",DRM_AUTH_SUCCESS:"drmauthsuccess
",DRM_FAILURE:"drmfailure",DRM_KEY_SWITCH:"drmkeyswitch",DRM_OUTPUT_RESTRICTED:"drm
outputrestricted",EME_UNSUPPORTED:"emeunsupported",CURRENT_FILE_CHANGE:"currentfile
change",MEDIA_URL_EXPIRED:"mediaurlexpired",MEDIA_URL_BAD_REQUEST:"mediaurlbadreque
st",STREAM_CHANGE:"streamchange",STREAM_CHANGE_START:"streamchangestart",STREAM_UPD
ATED:"streamupdated",STREAM_BUFFER_START:"streambufferstart",STREAM_BUFFER_END:"str
eambufferend",DROPPED_FRAMES:"droppedframes",BANDWIDTH:"bandwidth",STREAM_TARGET_CH
ANGE:"streamtargetchange",PRESENTATION_MODE_CHANGE:"presentationmodechange",CUE_POI
NT:"cuepoint",BUFFER_OCCUPANCY:"bufferoccupancy",MANIFEST_TIMEOUT:"manifesttimeout"
,MANIFEST_LOADED:"manifestloaded",STREAMS_LOADED:"streamsloaded",TEXT_SRC_UPDATE:"t
exttracksrcupdate",TEXT_TRACKS_AVAILABLE:"texttracksavailable",AV_DURATION_MISMATCH
:"avdurationmismatch",BUFFER_STARTED:"bufferstarted",BUFFER_ENDED:"bufferended",QUO
TA_EXCEEDED_ERROR:"quotaexceedederror",CHAPTER_CUES_UPDATED:"chaptercuesupdated",AP
PEND_BUFFER_END:"appendbufferend"},Si={STREAM_ONLINE:"livestreamonline",STREAM_OFFL
INE:"livestreamoffline",BUFFER_GAP_JUMP:"livebuffergapjump",BUFFER_GAP_JUMP_PREVENT
:"livebuffergapjumpprevent",STALL_JUMP:"livestalljump"},xi={CAMERA_UPDATE:"cameraup
date",CAMERA_CHANGE:"camerachange",MOTION_START:"motionstart",MOTION_END:"motionend
",SPATIAL_UNSUPPORTED:"spatialunsupported",WEBVR_ENTER:"entervr",WEBVR_EXIT:"exitvr
",WEBVR_HARDWARE_AVAILABLE:"webvrhardwareavailable"},Ai={MEDIASESSION_PLAY:"mediase
ssionplay",MEDIASESSION_PAUSE:"mediasessionpause",MEDIASESSION_SEEK_FORWARD:"medias
essionseekforward",MEDIASESSION_SEEK_BACKWARD:"mediasessionseekbackward"},Mi={BRAIN
_ML_MODEL_ERR:"brainmlmodelerr",BRAIN_ML_MODEL_NET_ERR:"brainmlmodelresperr",BRAIN_
ML_MODEL_TIMEOUT:"brainmlmodeltimeout",BRAIN_ML_SWITCH_TO_SKYFIRE:"brainmlmodelswit
chtoskyfire",BRAIN_ML_MODEL_INPUTS:"brainmlmodelinputs"},Ci=Object.assign({},_i,ki,
Ei,Ti,xi,Si,Ai,Mi),AirPlayExternalDisplay=function(t){function
AirPlayExternalDisplay(n){var i;return(i=t.call(this,n)||
this).X=document.createElement("video"),i.X.setAttribute("data-
airplay",""),i.X.setAttribute("x-webkit-
airplay","allow"),i.addVideoEventListeners(),i}G(AirPlayExternalDisplay,t),H(AirPla
yExternalDisplay,null,[{key:"displayName",get:function()
{return"AirPlayExternalDisplay"}},{key:"supported",get:function()
{return"WebKitPlaybackTargetAvailabilityEvent"in window}},
{key:"supportedVideoTypes",get:function()
{return["application/vnd.apple.mpegurl","video/mp4"]}}]);var
n=AirPlayExternalDisplay.prototype;return n.addVideoEventListeners=function(){var
t=this,n=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:this.X;n.addEventListener(_i.LOADED_METADATA,(function(n)
{t.fire(_i.LOADED_METADATA,n)})),n.addEventListener("webkitplaybacktargetavailabili
tychanged",(function(n){switch(n.availability){case"available":t.Y||(t.Y=!
0,t.fire(Ei.AIRPLAY_AVAILABLE));break;case"not-available":t.Y&&(t.Y=!
1,t.fire(Ei.AIRPLAY_UNAVAILABLE))}})),n.addEventListener("webkitcurrentplaybacktarg
etiswirelesschanged",(function(n)
{if(n.target.webkitCurrentPlaybackTargetIsWireless)return t.J=!0,void
t.fire(Ei.AIRPLAY_ACTIVATED);t.J=!
1,t.fire(Ei.AIRPLAY_DEACTIVATED)}))},n.showPicker=function(){var
t=this;this.X.webkitShowPlaybackTargetPicker(),this.loadMetadata().then((function()
{return t.X.webkitShowPlaybackTargetPicker()})).catch((function()
{}))},n.loadMetadata=function(){var t=this;return this.X.readyState>=1?
r.resolve():new r((function(n,i){t.X.addEventListener(_i.LOADED_METADATA,
(function(){n()})),t.X.src=t.getFile().src}))},H(AirPlayExternalDisplay,
[{key:"element",get:function(){return this.X},set:function(t){if(!(t instanceof
HTMLVideoElement))throw new TypeError("The element for AirPlay must be a
<video>.");t!
==this.X&&(this.addVideoEventListeners(t),this.X=t,this.X.setAttribute("x-webkit-
airplay","allow"))}}]),AirPlayExternalDisplay}
(yi),Ri=navigator.userAgent.toLowerCase();function Ii(t){t=t.toLowerCase();var
n=new RegExp(t).test(Ri);return"safari"===t?n&&new
RegExp("version").test(Ri):n}function Oi(t){var
n=document.createElement("div"),i=t.charAt(0).toUpperCase()+t.slice(1),e=(t+" "+
["Webkit","Moz","O","ms"].join(i+" ")+i).split(" ");for(var r in e){var
o=e[r];if(void 0!==n.style[o])return o}return t}var ji=!!
Ii("android")&&(parseFloat(Ri.replace(/^.* android (\d+)\.(\d+).*$/,"$1.$2"))||!
0),Li=window.devicePixelRatio||1,Di=!(!Ii("windows phone")&&!
Ii("iemobile"))&&(parseFloat(Ri.replace(/^.* windows phone (os )?(\d+)\.
(\d+).*$/,"$2.$3"))||!0),Pi=!!Ii("msie")&&parseFloat(Ri.replace(/^.*msie
(\d+).*$/,"$1")),Ni=!!Ii("trident")&&parseFloat(Ri.replace(/^.*trident\/(\d+)\.
(\d+).*$/,"$1.$2"))+4,Fi=!!(Ii("ipad;")||Ii("iphone;")||Ii("ipod
touch;"))&&parseFloat(Ri.replace(/^.* os
(\d+)_(\d+).*$/,"$1.$2")),Ui="MacIntel"===navigator.platform&&void 0!
==navigator.standalone,Vi=Ii("opera")||Ii("opr"),Bi=/^Mozilla\/5\.0 \(.* Mac OS
X.*\(KHTML, like Gecko\)(?: Mobile\/[\S]*|)$/i.test(Ri);function Hi(){if(!
Ii("safari"))return[];var t=Ri.split(" ").find((function(t)
{return/version\//.test(t)}));return t?
t.replace("version/","").split(".").map((function(t){return parseInt(t,10)})):
[]}var qi=Ii("safari")&&Ii("apple")&&!Ii("chrome")&&!Ii("android")&&Hi()
[0]>=11,Wi={airPlay:"WebKitPlaybackTargetAvailabilityEvent"in
window,android:ji,appleMail:Bi,hasAutoplayPolicy:ji||Fi||qi||function(){if(!
Ii("chrome"))return[];var t=Ri.split(" ").find((function(t){return
Fi?/CriOS\//.test(t):/chrome\//.test(t)}));return t?
t.replace("chrome/","").split(".").map((function(t){return parseInt(t,10)})):[]}()
[0]>=66,iOS:Fi,iPadOS:Ui,mobileAndroid:ji&&Ii("mobile"),browser:
{bb10:Ii("bb10"),chrome:Ii("chrome"),firefox:Ii("firefox"),ie:Pi||
Ni,edge:Ii("edge"),opera:Vi,safari:Ii("safari")&&Ii("apple")&&!Ii("chrome")&&!
Ii("android")},devicePixelRatio:Li,iPhone:Ii("iphone;")||Ii("ipod touch;")||
Ii("ipod;"),iPad:Ii("ipad;"),iPadNonRetina:Ii("ipad;")&&Li<2,mac:Ii("mac
os"),pointerEvents:window.navigator.pointerEnabled||
window.navigator.msPointerEnabled||!1,passiveEvents:function(){var t=!1;try{var
n=Object.defineProperty({},"passive",{get:function(){t=!
0}});window.addEventListener("testPassive",null,n),window.removeEventListener("test
Passive",null,n)}catch(t){}return t}(),svg:!!document.createElementNS&&!!
document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,touch:"o
ntouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||
Ii("windows phone")||window.navigator.maxTouchPoints>1||
window.navigator.msMaxTouchPoints||!
1,transformProperty:Oi("transform"),transitionProperty:Oi("transition"),webp:functi
on(){var t=document.createElement("canvas");return!(!t.getContext||!
t.getContext("2d"))&&0===t.toDataURL("image/webp").indexOf("data:image/webp")}
(),windowsPhone:Di},zi=/mac os x
10_13/.test(Ri),Gi=Wi.iOS&&Wi.iOS>=11,Ki=Wi.iPhone&&812===window.screen.availHeight
&&375===window.screen.availWidth,Yi=Wi.iPhone&&896===window.screen.availHeight&&414
===window.screen.availWidth,Ji=Wi.iPad&&1112===window.screen.availWidth&&834===wind
ow.screen.availHeight,
$i=Wi.iPad&&834===window.screen.availWidth&&1194===window.screen.availHeight,Xi=Wi.
iPad&&1024===window.screen.availWidth&&1366===window.screen.availHeight,Zi=Ki||Yi||
Ji||$i||Xi;function Qi(){return!!(qi&&zi||qi&&Gi)||"undefined"!=typeof
MediaSource&&MediaSource.isTypeSupported('video/mp4; codecs="hvc1"')}function te()
{return!(Wi.iOS||Wi.iPad||Wi.browser.ie)&&(!Ii("safari")||Hi()[0]>11||11===Hi()
[0]&&(Hi()[2]>1||Hi()
[1]>0))}Wi.hevc=Qi(),Wi.hdr=qi&&Gi&&Zi,Wi.vp9hdr=(window.matchMedia("(color-gamut:
p3)").matches||window.matchMedia("(color-gamut:
rec2020)").matches)&&screen.colorDepth>=48&&(MediaSource.isTypeSupported('video/web
m; codecs="vp09.02.10.10.01.09.16.09.00"')||
MediaSource.isTypeSupported('video/webm; codecs="vp09.02.10.10.01.09.16.09.01"')||
MediaSource.isTypeSupported('video/webm; codecs="vp09.02.10.10.01.09.18.09.00"')||
MediaSource.isTypeSupported('video/webm;
codecs="vp09.02.10.10.01.09.18.09.01"')),Wi.av1="undefined"!=typeof
MediaSource&&MediaSource.isTypeSupported('video/mp4;
codecs="av01.0.31M.08.0.110.01.01.01.0"'),Wi.webvr=!!
(window.navigator&&"getVRDisplays"in window.navigator),Wi.webxr=!!
(window.navigator&&"xr"in window.navigator&&"supportsSession"in
window.navigator.xr),Wi.spatialPlayback=te(),Wi.spatialHEVC=!
Wi.browser.safari&&te()&&Qi(),Wi.stereoscopic=Wi.spatialPlayback&&Wi.mobileAndroid;
var ne=function(){var t=navigator.userAgent.match(/Chrom(?:e|ium)\/([0-9]+)\.([0-
9]+)\./);return!!t&&{major:parseInt(t[1],10),minor:parseInt(t[2],10)}}();function
ie(t,n){var i,e=0;return q(i={},j.iterator,(function(){return this})),q(i,"next",
(function(){return e<t.length?{done:!1,value:n?[t[e],n[e++]]:t[e++]}:{done:!
0}})),i}var ee=function(t){for(var n=0,i=this.length;n<i;n+
+)if(this[n].id==="".concat(t))return this[n];return null};function re(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return
t.item=function(t){return this[t]},t.getTrackById=ee,t}function oe(){return void 0!
==window.performance&&"function"==typeof window.performance.now?
window.performance.now():Date.now()}function ue(t){return
oe()-t}function ae(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,
(function(t){return(t^(16*Math.random()>>t)/4).toString(16)}))}function se(t)
{for(var n=window.atob(t),i=n.length,e=new Uint8Array(i),r=0;r<i;r+
+)e[r]=n.charCodeAt(r);return e}function ce(t){return se(t).buffer}function
le(t,n,i,e){var r=0,o=0,u=t,a=n,s=i/e;return u/a>=s?(o=a,r=(s*a).toFixed(2)):
(r=u,o=(u/s).toFixed(2)),{width:r,height:o,left:Math.max((u-
r)/2,0),top:Math.max((a-o)/2,0)}}function fe(t){var
n=[document.fullscreenElement,document.webkitFullscreenElement,document.webkitCurre
ntFullScreenElement,document.mozFullScreenElement,document.msFullscreenElement].fin
d((function(t){return void 0!==t}));return void 0!==n?!!
n:t.webkitDisplayingFullscreen}function he(t,n){var i=t;return
n&&(i+=';codecs="'.concat(n,'"')),i}function de(t){var n=arguments.length>1&&void
0!==arguments[1]?arguments[1]:3;if(t=parseFloat(t),isNaN(t))return 0;var
i=Math.pow(10,n);return Math.round(t*i)/i}function ve(t,n){return
t&&t.tests&&t.tests[n]?t.tests[n]:null}function pe(t){return
t&&"ML"===t.displayName}var TelecineError=function(t,n)
{this.name=t,this.message=n,Object.freeze(this)},me=new P,be=function(){function
t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},i=parseFloat(t);if(isNaN(i))throw new TypeError("Time must be a
number.");if(i<0)throw new TypeError("Time must be a positive
number.");this.time=t,this.data=n,this.id=ae();try{var e="undefined"==typeof
VTTCue?TextTrackCue:VTTCue;this.vttCue=new
e(t,t+.25,JSON.stringify(n)),this.vttCue.id=this.id}catch(t){throw new
TelecineError("CuePointsNotSupported","Cue points are not supported in this
browser.")}me.set(this.vttCue,this),Object.freeze(this)}return
t.fromVTTCue=function(n){if(me.has(n))return me.get(n);var
i={};try{i=JSON.parse(n.text)}catch(t){}return new t(n.startTime,i)},t}();function
we(t,n,i){var e;try{document.removeChild({})}catch(r)
{e=Object.create(Object.getPrototypeOf(r),{name:{value:n,configurable:!0,writable:!
0},code:{value:t,configurable:!0,writable:!0},message:{value:i,configurable:!
0,writable:!0},toString:{value:function(){return"".concat(n,": DOM Exception
").concat(t)},configurable:!0,writable:!0}})}return Object.freeze(e)}var
ge=function(t,n){if(!t||void 0===t[n])throw we(1,"INDEX_SIZE_ERR");return
t[n]};function ye(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return
Object.freeze(q({get length(){return t.length},start:function(n){return
ge(t,n)},end:function(t){return ge(n,t)}},j.iterator,(function(){return
ie(t,n)})))}ye.from=function(t){if(!(t instanceof TimeRanges))throw new
TypeError("Can only create a TelecineTimeRange from a TimeRanges object.");for(var
n=[],i=[],e=0,r=t.length;e<r;e++)n.push(t.start(e)),i.push(t.end(e));return
ye(n,i)};var
_e=document.createElement("video"),ke={"application/vnd.apple.mpegurl":"application
/vnd.apple.mpegurl","video/mp4":'video/mp4;
codecs="avc1.64001E"',"video/webm":'video/webm; codecs="vp8, vorbis"',"video/x-
flv":'video/x-flv; codecs="vp6"'},Ee=function(){var t="undefined"==typeof
TextTrack?{}:TextTrack;return{disabled:"DISABLED"in t?
t.DISABLED:"disabled",hidden:"HIDDEN"in t?t.HIDDEN:"hidden",showing:"SHOWING"in t?
t.SHOWING:"showing"}}(),Te=function(){var
t=document.createElement("track");return"track"in t&&"oncuechange"in t.track}
(),Se=new P,xe=function(){function t(t){var n=this,i=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:
{};this.Z=t,this.tt=i,this.nt=null,this.it=null,this.et=[],rt(this),this.on("play",
(function(){return n.rt()}));var e=t.querySelector("video");e||
((e=document.createElement("video")).preload="none",this.Z.appendChild(e)),e.setAtt
ribute("tabindex","-1"),this.
$=e,i.playRequest&&(this.ot=i.playRequest,this.ot.video=e),i.htmlScanner&&i.htmlSca
nner.controls&&(this.$.controls=!
0),this.ut=this.handleVideoEvent.bind(this),this.addVideoEventListeners(),this.at="
none",this.st=!1,this.ct=!1,this.lt=-1}H(t,null,[{key:"displayName",get:function()
{return"HTMLScanner"}},{key:"supported",get:function(){return
t.supportedVideoTypes.length>0}},{key:"supportedVideoTypes",get:function(){var
t=[];if("function"!=typeof _e.canPlayType)return t;for(var n in ke){var
i=ke[n];Wi.android&&"application/vnd.apple.mpegurl"===n||(Wi.android&&!
Wi.mobileAndroid&&"video/mp4"===n&&Wi.android instanceof String?
parseInt(Wi.android.split(".")
[0],10)>3&&t.push(n):_e.canPlayType(i).replace(/^no$/,"")&&t.push(n))}return t}},
{key:"supportedAudioTypes",get:function(){return[]}},
{key:"supportedExternalDisplays",get:function(){return[AirPlayExternalDisplay]}},
{key:"supportsSettingVolume",get:function(){if(Wi.android||Wi.iOS)return!1;var
t=_e.volume;return _e.volume=.5*t,_e.volume!==t}},
{key:"supportsTextTracks",get:function(){return void 0!
==_e.textTracks&&_e.textTracks instanceof TextTrackList}},
{key:"supportsPlaybackRate",get:function(){if(Wi.android&&ne&&ne.major<52)return!
1;var t=_e.playbackRate;_e.playbackRate=.5*t;var n=t!==_e.playbackRate;return
_e.playbackRate=t,n}}]);var n=t.prototype;return n.deactivate=function()
{this.nt&&(this.nt.off("filesrcupdate"),this.nt.off("texttracksrcupdate")),this.rem
oveVideoEventListeners(),this.removeSnapshot(),this.
$.style.display="none"},n.reactivate=function(){this.addVideoEventListeners(),this.
$.style.display=""},n.addVideoEventListeners=function(){var
t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.
$;Object.keys(_i).forEach((function(i){var
e=_i[i];n.addEventListener(e,t.ut)}))},n.removeVideoEventListeners=function(){var
t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.
$;Object.keys(_i).forEach((function(i){var
e=_i[i];n.removeEventListener(e,t.ut)}))},n.play=function(t){var n=this;return
this.ot.start(t).catch((function(t){throw n.ft(t),t}))},n.ft=function(t)
{this.fire(_i.ERROR,new TelecineError(t.name,t.message))},n.pause=function()
{this.ot.cancel(),this.$.pause()},n.onpause=function(){},n.ontimeupdate=function()
{this.lt=this.currentTime},n.addTextTrack=function(t){var n,i,e=this;t.src?
((n=document.createElement("track")).kind=t.kind,n.src=t.src,n.id="telecine-
track-".concat(t.id),n.srclang=t.language,n.label=t.label,this.
$.appendChild(n),i=n.track):(i=this.
$.addTextTrack(t.kind,t.label,t.language),this.ht=this.ht||{},this.ht["telecine-
track-".concat(t.id)]=i),i.addEventListener("cuechange",(function(){return
t.dispatchEvent("cuechange")})),this.$.addEventListener("timeupdate",(function()
{fe(e.$)&&(t.mode=i.mode)}));var r=function(){var n=Wi.iOS&&fe(e.$);!t.dt||n?
t.mode=i.mode:i.mode=Ee[t.mode]},o=[];if(n?n.addEventListener("load",r):r(),
["loadeddata","seeking"].forEach((function(t){e.
$.addEventListener(t,r),o.push([t,r])})),t.dt&&(i.mode=Ee[t.mode]),!Te){var
u=[],a=function(){if(i&&"disabled"!==Ee[i.mode]){if(u.length!
==i.activeCues.length)return
t.dispatchEvent("cuechange"),void(u=U(i.activeCues));for(var
n=0,e=i.activeCues.length;n<e;n++)if(i.activeCues[n].startTime!
==u[n].startTime)return
t.dispatchEvent("cuechange"),void(u=U(i.activeCues))}};this.
$.addEventListener("timeupdate",a),o.push(["timeupdate",a])}return
Se.set(t,o),i},n.removeTextTrack=function(t){var n=this,i=this.
$.querySelector("#telecine-track-".concat(t.id));i&&this.$.removeChild(i);var
e=Se.get(t);Array.isArray(e)&&e.forEach((function(t){var i=Q(t,2),e=i[0],r=i[1];n.
$.removeEventListener(e,r)}))},n.getCuesForTrack=function(t){var
n=this.getTrackById("telecine-track-".concat(t.id));return n?U(n.cues):
[]},n.getActiveCuesForTrack=function(t){var n=this.getTrackById("telecine-
track-".concat(t.id));return n?U(n.activeCues):[]},n.setModeForTrack=function(t,n)
{var i=this.getTrackById("telecine-track-".concat(t.id));return i&&i.mode!
==Ee[n]&&(i.mode=Ee[n],Te||"disabled"===n||
t.dispatchEvent("cuechange")),this},n.setSrcForTrack=function(t,n){var i=this.
$.querySelector("#telecine-track-".concat(t.id));return
i&&null===i.track.cues&&(i.src=n),this},n.pt=function(t,n){var
i,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.wt||
(this.wt=this.$.addTextTrack("chapters"),this.wt.mode="hidden");var
r=t.timecode,o=e?e.timecode:n,u=window.VTTCue||window.TextTrackCue;try{i=new
u(r,o,t.title)}catch(t){throw new TelecineError("ChaptersNotSupported","Chapters
are not supported in this browser.")}i.size=(o-
r)/n,i.id=r,this.wt.addCue(i)},n.addChapter=function(t,n){var
i=this.video.chapters,e={timecode:t,title:n};i.push(e),i.sort((function(t,n){return
t.timecode-n.timecode}));var r=i[i.indexOf(e)
+1];this.pt(e,this.video.duration,r),this.gt(this.wt,this.video.duration)},n.remove
Chapter=function(t){try{this.wt.removeCue(t)}catch(t){throw new
TelecineError("ChaptersNotSupported","Chapters are not supported in this
browser.")}var n=this.video.chapters.find((function(n){return
n.timecode===t.timecode}));this.video.chapters.splice(n,1),this.gt(this.wt,this.vid
eo.duration)},n.gt=function(t,n){for(var i=0;i<t.cues.length;i++){var
e=t.cues[i],r=t.cues[i+1],o=r?r.startTime:n;e.endTime=o,e.size=(o-
e.startTime)/n}this.fire(Ti.CHAPTER_CUES_UPDATED)},n.addChapters=function(t,n){var
i=this;0!==t.length&&n&&(t=t.filter((function(t){return
i.yt(t,n)}))).sort((function(t,n){return t.timecode-
n.timecode})).forEach((function(e,r){return
i.pt(e,n,t[r+1])}))},n.addCuePoint=function(t){var
n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._t||
(this._t=this.
$.addTextTrack("metadata"),this._t.mode="hidden",this._t.addEventListener("cuechang
e",(function(t){U(t.target.activeCues).forEach((function(t)
{n.fire(Ti.CUE_POINT,be.fromVTTCue(t))}))})),this.$.addEventListener("canplay",
(function(t){n._t.mode="hidden"}))),t=parseFloat(t),isNaN(t))throw new
TypeError("Time must be a number.");if(t<0||t>=this.duration)throw new
TypeError("Time must be a positive number less than the duration of the
video.");var e=new be(t,i);return
this._t.addCue(e.vttCue),e},n.removeCuePoint=function(t){if(!t)throw new
TelecineError("InvalidCuePoint","The
specified cue point is not valid.");return this._t.removeCue(t.vttCue),!
0},n.removeAllCuePoints=function(){var t=this;return
this._t&&this._t.length&&U(this._t.cues).forEach((function(n)
{t._t.removeCue(n)})),!0},n.onerror=function(){if(!this.$.error)return!
1;switch(this.$.error.code){case this.$.error.MEDIA_ERR_SRC_NOT_SUPPORTED:return
this.kt("MediaSrcNotSupportedError","The media was not suitable."),this.Et(),!
1;case this.$.error.MEDIA_ERR_DECODE:return-1!==this.lt&&Wi.iOS?(this.
$.load(),this.currentTime=this.lt,this.lt=-1,!1):(this.kt("MediaDecodeError","The
media could not be decoded."),this.Et(),!1);case this.
$.error.MEDIA_ERR_NETWORK:return this.kt("MediaNetworkError","A network error
ocurred while fetching the media."),!1;case this.$.error.MEDIA_ERR_ABORTED:return
this.kt("MediaAbortedError","The user agent aborted the fetching of the media."),!
1;default:return this.kt("MediaUnknownError","An unknown error occurred."),!
1}},n.kt=function(t,n){this.fire(_i.ERROR,new
TelecineError(t,n))},n.onended=function(){if(this.$.paused||this.
$.pause(),this.currentTime<this.$.duration)return!1},n.onwaiting=function(){return!
1},n.onwebkitbeginfullscreen=function(){this.ct=!
0},n.onwebkitendfullscreen=function(){this.ct=!
1},n.onwebkitpresentationmodechanged=function()
{this.Tt()},n.onenterpictureinpicture=function()
{this.Tt()},n.onleavepictureinpicture=function(){this.Tt()},n.Tt=function()
{this.fire(Ti.PRESENTATION_MODE_CHANGE,this.presentationMode)},n.shouldHandleVideoE
vent=function(t){return!0},n.handleVideoEvent=function(t){t.target===this.$&&!1!
==this.shouldHandleVideoEvent(t)&&("function"==typeof this["on".concat(t.type)]&&!
1===this["on".concat(t.type)](t)||this.fire(t.type))},n.swapVideo=function(t,n){var
i=t.paused;this.removeVideoEventListeners(t),t.parentElement.replaceChild(n,t),t.pa
use(),n.currentTime=t.currentTime,i||n.play(),this.addVideoEventListeners(n),this.
$=n},n.onexternaldisplayactivated=function(t){this.st||(this.$!
==t.element&&(this.St=this.$,this.swapVideo(this.$,t.element)),this.st=!
0)},n.onexternaldisplaydeactivated=function(t)
{this.st&&(this.St&&(this.swapVideo(t.element,this.St),this.St=null),this.st=!
1)},n.setVideoSrc=function(t){this.$.src=t},n.canSeekTo=function(t){var
n=this.duration;if(n&&t>n&&(t=n),this.$.seekable.length>0)for(var i=0,e=this.
$.seekable.length;i<e;i++)if(this.$.seekable.start(i)<=t&&this.
$.seekable.end(i)>=t)return!0;return!1},n.seekToTime=function(t){var n=this;return
this.canSeekTo(t)?(this.$.currentTime=t,r.resolve(this.$.currentTime)):new
r((function(i,e){var r=function e()
{n.canSeekTo(t)&&(Object.keys(_i).forEach((function(t){var i=_i[t];n.
$.removeEventListener(i,e)})),n.$.currentTime=t,i(n.
$.currentTime))};Object.keys(_i).forEach((function(t){var i=_i[t];n.
$.addEventListener(i,r)}))}))},n.takeSnapshot=function(){var
t=this.Z.querySelector("[telecine-snapshot]");t||
((t=document.createElement("canvas")).setAttribute("telecine-
snapshot",""),this.Z.appendChild(t)),t.setAttribute("width","".concat(this.Z.client
Width,"px")),t.setAttribute("height","".concat(this.Z.clientHeight,"px")),t.style.d
isplay="";var n=le(this.$.clientWidth,this.$.clientHeight,this.$.videoWidth,this.
$.videoHeight),i=n.width,e=n.height,r=n.left,o=n.top;t.style.cssText="position:abso
lute;width:".concat(i,"px;height:").concat(e,"px;left:").concat(r,"px;top:").concat
(o,"px");var u=t.getContext("2d");t.width>0&&t.height>0&&u.drawImage(this.
$,0,0,t.width,t.height)},n.removeSnapshot=function(){var
t=this.Z.querySelector("[telecine-
snapshot]");t&&(t.style.display="none")},n.getTrackById=function(t)
{if(this.ht&&this.ht[t])return this.ht[t];if("function"==typeof this.
$.textTracks.getTrackById)return this.$.textTracks.getTrackById(t);var
n=document.getElementById(t);return n?n.track:null},n.initDrm=function(){var
t=this.nt.drmHandler;t&&t.init(this)},n.showExternalDisplayPicker=function(t){if(!
this.et.length)throw new TelecineError("ExternalDisplayUnvailable","No external
displays are available.");if(t){var n=this.et.filter((function(n){return
n.constructor.displayName.replace("ExternalDisplay","")===t}))[0];if(!n)throw new
TelecineError("InvalidExternalDisplay","The specified external display is not
available.");n.showPicker()}else this.et[0].showPicker()},n.xt=function(){this.
$.requestPictureInPicture()},n.At=function()
{document.exitPictureInPicture()},n.Mt=function(){return this.Ct.length<1?
null:this.Ct.slice(0).sort((function(t,n){return t.priority-n.priority}))
[0]},n.Rt=function(){var t=this.Mt();t?
this.currentFile=t:this.fire(Ti.SCANNER_ERROR,{reason:"all files
failed"})},n.yt=function(t,n){return void 0!
==t.timecode&&t.timecode>=0&&t.timecode<=n&&void 0!==t.title},n.Et=function(){var
t=this.Ct.indexOf(this.it);this.Ct.splice(t,1),this.Rt()},n.rt=function(){var
t=this;if("mediaSession"in navigator){var
n={title:this.nt.title,artist:this.nt.subtitle,artwork:
[]};this.nt.metadata.thumbnail&&n.artwork.push({src:this.nt.metadata.thumbnail}),na
vigator.mediaSession.metadata=new MediaMetadata(n),"function"==typeof
navigator.mediaSession.setActionHandler&&(navigator.mediaSession.setActionHandler("
play",(function(){t.play().then((function(){return
t.fire(Ai.MEDIASESSION_PLAY)})).catch(t.ft.bind(t))})),navigator.mediaSession.setAc
tionHandler("pause",(function()
{t.pause(),t.fire(Ai.MEDIASESSION_PAUSE)})),navigator.mediaSession.setActionHandler
("seekforward",(function()
{t.currentTime=Math.min(t.duration,t.currentTime+10),t.fire(Ai.MEDIASESSION_SEEK_FO
RWARD)})),navigator.mediaSession.setActionHandler("seekbackward",(function()
{t.currentTime=Math.max(0,t.currentTime-
10),t.fire(Ai.MEDIASESSION_SEEK_BACKWARD)})))}},H(t,
[{key:"chaptersTrack",get:function(){return this.wt}},
{key:"manifest",get:function(){return this.It}},{key:"buffered",get:function()
{return ye.from(this.$.buffered)}},{key:"cuePoints",get:function(){return this._t?
U(this._t.cues).map((function(t){return be.fromVTTCue(t)})):[]}},
{key:"currentFile",get:function(){return this.it},set:function(n){var i=this,e=!
this.$.paused,r=this.currentTime,o=!this.it||n.video.id!==this.it.video.id;if(o||
this.takeSnapshot(),this.it=n,o&&(this.
$.preload=this.at),this.constructor===t&&this.$.readyState>0&&(this.
$.currentTime=0),(Wi.iOS||Wi.android)&&this.it.video.title){var
u=this.it.video.title;this.it.video.subtitle&&(u="".concat(u,"
").concat(this.it.video.subtitle)),this.$.setAttribute("title",u)}else this.
$.removeAttribute("title");this.setVideoSrc(this.it.src,o),this.fire(Ti.CURRENT_FIL
E_CHANGE,n),Wi.iOS&&!o&&this.play().catch(this.ft.bind(this)),this.constructor!
==t||o?e&&this.play().catch(this.ft.bind(this)):
(this.seekToTime(r).then((function(t){return
e&&i.play().catch(i.ft.bind(i)),t})).catch((function(){})),this.once("canplay",
(function(){return i.removeSnapshot()})),this.once("playing",(function(){return
i.removeSnapshot()})))}},{key:"currentTime",get:function(){return this.
$.currentTime},set:function(t){this.seekToTime(t)}},{key:"duration",get:function()
{return this.$.duration}},{key:"ended",get:function(){return this.$.ended}},
{key:"externalDisplayAvailable",get:function(){return this.et.some((function(t)
{return t.available}))}},{key:"externalDisplayActive",get:function(){return
this.et.some((function(t){return t.active}))}},{key:"loop",get:function(){return
this.$.loop},set:function(t){this.$.loop=t}},
{key:"isLowerProfileAvailable",get:function(){return null}},
{key:"muted",get:function(){return this.$.muted},set:function(t){this.$.muted=t}},
{key:"playsinline",get:function(){return this.$.playsinline},set:function(t){this.
$.playsinline=t,t?this.$.setAttribute("playsinline",""):this.
$.removeAttribute("playsinline")}},{key:"paused",get:function(){return this.
$.paused}},{key:"defaultPlaybackRate",get:function(){return this.
$.defaultPlaybackRate},set:function(t){this.$.defaultPlaybackRate=t}},
{key:"playbackRate",get:function(){return this.$.playbackRate},set:function(t)
{this.$.playbackRate=t}},{key:"played",get:function(){return this.$.played}},
{key:"seekable",get:function(){return this.$.seekable}},
{key:"seeking",get:function(){return this.$.seeking}},{key:"preload",get:function()
{return this.at},set:function(t){this.$.preload=t,this.at=t}},
{key:"autoPictureInPicture",get:function(){return this.
$.autoPictureInPicture},set:function(t){this.$.autoPictureInPicture=t}},
{key:"disablePictureInPicture",get:function(){return this.
$.disablePictureInPicture},set:function(t){this.$.disablePictureInPicture=t}},
{key:"presentationMode",get:function(){return this.$.webkitPresentationMode?this.
$.webkitPresentationMode:document.pictureInPictureElement?"picture-in-
picture":"inline"},set:function(t){if(-
1===this.supportedPresentationModes.indexOf(t))throw new
TelecineError("InvalidPresentationMode","The “".concat(t,"” presentation mode is
not supported."));"pictureInPictureEnabled"in document?"picture-in-picture"===t?
this.xt():document.pictureInPictureElement===this.$&&this.At():"function"==typeof
this.$.webkitSetPresentationMode&&this.$.webkitSetPresentationMode(t)}},
{key:"supportedPresentationModes",get:function(){var
t=["inline"];return"pictureInPictureEnabled"in document?
document.pictureInPictureEnabled&&!this.$.disablePictureInPicture&&t.push("picture-
in-picture"):"function"==typeof this.$.webkitSupportsPresentationMode&&this.
$.webkitSupportsPresentationMode("picture-in-picture")&&t.push("picture-in-
picture"),t}},{key:"video",get:function(){return this.nt},set:function(t){var
n=this;if(this.reactivate(),this.nt!==t)
{if(this.nt&&(this.nt.off("filesrcupdate"),this.nt.off("texttracksrcupdate")),this.
removeAllCuePoints(),this.nt=t,this.Ct=t.files.filter((function(t){return-1!
==n.constructor.supportedVideoTypes.indexOf(t.mime)})),this.nt.on("filesrcupdate",
(function(t){t===n.it&&n.Rt()})),this.nt.on("texttracksrcupdate",(function(t)
{n.video.currentScanner&&n.video.currentScanner.setSrcForTrack(t,t.src)})),this.tt.
externalDisplays&&this.tt.externalDisplays.length){this.et=[];var
i=this.constructor.supportedExternalDisplays;Array.isArray(i)||(i=[]);var
e=i.map((function(t){return
t.displayName}));this.tt.externalDisplays.filter((function(t){return t.supported&&-
1!==e.indexOf(t.displayName)})).forEach((function(i){var e=new
i(t),r=i.displayName.replace("ExternalDisplay","");e.on(_i.LOADED_METADATA,
(function(t){return n.fire(_i.LOADED_METADATA,t)})),e.on("available",(function()
{return n.fire(ki.AVAILABLE,{type:r})})),e.on("unavailable",(function(){return
n.fire(ki.UNAVAILABLE,{type:r})})),e.on("activated",(function(){"function"==typeof
n.onexternaldisplayactivated&&n.onexternaldisplayactivated(e),n.fire(ki.ACTIVATED,
{type:r})})),e.on("deactivated",(function(){"function"==typeof
n.onexternaldisplaydeactivated&&n.onexternaldisplaydeactivated(e),n.fire(ki.DEACTIV
ATED,{type:r})})),n.et.push(e)}))}this.Rt(),Wi.iOS&&this.et.forEach((function(t)
{"AirPlay"===t.constructor.displayName&&(t.element=n.$)})),this.initDrm()}}},
{key:"videoElement",get:function(){return this.$}},{key:"videoWidth",get:function()
{return this.$.videoWidth}},{key:"videoHeight",get:function(){return this.
$.videoHeight}},{key:"volume",get:function(){return this.$.volume},set:function(t)
{this.$.volume=t}},{key:"readyState",get:function(){return this.$.readyState}}]),t}
(),Ae={};try{Ae.Set=Set}catch(t){!function(t,n){var i=n(e.prototype,{size:
{configurable:!0,get:function(){return this.Ot.length}}});function e(t){n(this,{Ot:
{value:[]}}),t&&t.forEach(this.add,this)}function r(n,i){return-
1<(t=n.Ot.indexOf(i))}function o(t){return[t,t]}i.add=function(t){return
r(this,t)||this.Ot.push(t),this},i.clear=function(){var
t=this.Ot.length;this.Ot.splice(0,t)},i.delete=function(n){return r(this,n)&&!!
this.Ot.splice(t,1)},i.entries=function(){return
this.Ot.map(o)},i.forEach=function(t,n){this.Ot.forEach((function(i,e)
{t.call(n,i,i,this)}),this)},i.has=function(t){return
r(this,t)},i.keys=i.values=function(){return this.Ot.slice(0)},Ae.Set=e}
(0,Object.defineProperties)}var
Me=Ae.Set,Ce={MANIFEST:"manifest",SEGMENT:"segment"},Re={method:"GET",async:!
0,retry:0,throwHttpErrors:!0,headers:{},hooks:{beforeRequest:[],beforeRetry:
[],afterResponse:[]},validateStatus:function(t){return
t>=200&&t<300},retryStatus:function(t){return[408,413,429].includes(t)||
t>=500&&t<600}};function Ie(t,n){var
i=this;this.headers={},this.perfTimings={},ht(this,n),this.ok=2==(this.status/100|
0),this.body=t,this.text=function(){return r.resolve(t)},this.json=function()
{return r.resolve(JSON.parse(t))},this.blob=function(){return r.resolve(new
Blob([t]))},this.arrayBuffer=function(){return r.resolve(t)},this.clone=function()
{return new Ie(t,i)}}var Oe=function(t){function n(){var
n;return(n=t.call(this,"The operation was aborted.")||
this).name="AbortError",n}return G(n,t),n}(X(Error)),je=function(t){function n(n)
{var i;return(i=t.call(this,n.statusText)||
this).name="HTTPError",i.response=n,i}return G(n,t),n}(X(Error)),Le=function(t)
{function n(){var n;return(n=t.call(this,"A network error occurred.")||
this).name="NetworkError",n}return G(n,t),n}(X(Error)),De=function(t){function n(n)
{var i;return(i=t.call(this,"Request timed out.")||
this).name="TimeoutError",i.timeoutMs=n,i}return G(n,t),n}(X(Error));function Pe()
{}function Ne(t,n,i){if(!t.s){if(i instanceof Fe){if(!i.s)return
void(i.o=Ne.bind(null,t,n));1&n&&(n=i.s),i=i.v}if(i&&i.then)return void
i.then(Ne.bind(null,t,n),Ne.bind(null,t,2));t.s=n,t.v=i;var e=t.o;e&&e(t)}}var
Fe=function(){function t(){}return t.prototype.then=function(n,i){var e=new
t,r=this.s;if(r){var o=1&r?n:i;if(o){try{Ne(e,1,o(this.v))}catch(t)
{Ne(e,2,t)}return e}return this}return this.o=function(t){try{var r=t.v;1&t.s?
Ne(e,1,n?n(r):r):i?Ne(e,1,i(r)):Ne(e,2,r)}catch(t){Ne(e,2,t)}},e},t}();function
Ue(t){return t instanceof Fe&&1&t.s}function Ve(t){var n=function(t){return
function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{return
r.resolve(t.apply(this,n))}catch(t){return r.reject(t)}}}((function(e){return
function(t,n){try{var i=t()}catch(t){return n(t)}return i&&i.then?i.then(void
0,n):i}(e,(function(o){var u=!1;i++;var a=function(n){if(!t.retryAbortErrors&&n
instanceof Oe)return 0;if(n instanceof De)return 0;if(i>=t.retry)return 0;if(n
instanceof je){if(!t.retryStatus(n.response.status))return 0;var
e=n.response.headers["retry-after"];if(e&&t.retryStatus(n.response.status)){var
r=Number(e);return isNaN(r)?r=Date.parse(e)-
Date.now():r*=1e3,r}if(413===n.response.status)return 0}return.3*Math.pow(2,i-
1)*1e3}(o);return function(s,c){var l=function(){if(0!==a&&i>0)return
function(t,n,i){return t&&t.then||(t=r.resolve(t)),n?t.then(n):t}(function(t)
{return new r((function(n,i){return setTimeout(n,t)}))}(a),(function(){var
a=t.hooks.beforeRetry||[];return function(t,n){return t&&t.then?t.then(n):n()}
(function(t,n,i){var e,r,o=-1;return function i(u){try{for(;+
+o<t.length;)if((u=n(o))&&u.then){if(!Ue(u))return void u.then(i,r||
(r=Ne.bind(null,e=new Fe,2)));u=u.v}e?Ne(e,1,u):e=u}catch(t){Ne(e||(e=new
Fe),2,t)}}(),e}(a,(function(n){return function(t,n){return t&&t.then?
t.then(Pe):r.resolve()}((0,a[n])(t,o,i))})),(function(){return u=!0,n(e)}))}))}
();return l&&l.then?l.then(c):c(l)}(0,(function(n){if(u)return
n;if(t.throwHttpErrors)throw o}))}))})),i=0;return n}function Be(t,n,i){return i?n?
n(t):t:(t&&t.then||(t=r.resolve(t)),n?t.then(n):t)}function He(t,n,i){if(!t.s){if(i
instanceof qe){if(!i.s)return
void(i.o=He.bind(null,t,n));1&n&&(n=i.s),i=i.v}if(i&&i.then)return void
i.then(He.bind(null,t,n),He.bind(null,t,2));t.s=n,t.v=i;var e=t.o;e&&e(t)}}var
qe=function(){function t(){}return t.prototype.then=function(n,i){var e=new
t,r=this.s;if(r){var o=1&r?n:i;if(o){try{He(e,1,o(this.v))}catch(t)
{He(e,2,t)}return e}return this}return this.o=function(t){try{var r=t.v;1&t.s?
He(e,1,n?n(r):r):i?He(e,1,i(r)):He(e,2,r)}catch(t){He(e,2,t)}},e},t}();function
We(t){return t instanceof qe&&1&t.s}function ze(t,n,i){var e,r,o=-1;return function
u(a){try{for(;++o<t.length&&(!i||!i());)if((a=n(o))&&a.then){if(!We(a))return void
a.then(u,r||(r=He.bind(null,e=new qe,2)));a=a.v}e?He(e,1,a):e=a}catch(t){He(e||
(e=new qe),2,t)}}(),e}function Ge(t,n){return t&&t.then?t.then(n):n(t)}function
Ke(t){return function(){for(var n=[],i=0;i<arguments.length;i+
+)n[i]=arguments[i];try{return r.resolve(t.apply(this,n))}catch(t){return
r.reject(t)}}}var
Ye=["get","post","put","patch","head","delete"],Je={json:"application/json",text:"t
ext/plain",arrayBuffer:"*/*",blob:"*/*"},$e=["get"];function Xe(t,n){var
i=Ke((function(){var t=!1,i=!1,e=n.hooks.beforeRequest||[];return Ge(ze(e,
(function(o){return Be((0,e[o])(n),(function(e){return e instanceof Ze?
(n=e,void(i=!0)):e instanceof Ie?(t=!0,r.resolve(e).then(Qe(n))):void 0}))}),
(function(){return i||t})),(function(i){return t?i:function(t){var
n=t.url,i=t.method,e=t.body,o=t.onDownloadProgress,u=100;return new
r((function(r,a){var s=new XMLHttpRequest,c=window.performance;for(var l in
s.open(i.toUpperCase(),n,t.async),t.timeout&&(s.timeout=t.timeout),s.onload=functio
n(){if(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:")){var
t={};s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,
(function(n,i,e){t[i]=t[i]?"".concat(t[i],",").concat(e):e}));var
n={};if(window.performance&&void 0!==window.performance.getEntriesByType){var
i=window.performance.getEntriesByType("resource");if(i.length&&i.length>=u&&("funct
ion"==typeof c.clearResourceTimings&&c.clearResourceTimings(),"function"==typeof
c.setResourceTimingBufferSize&&(c.setResourceTimingBufferSize(500),u=500)),i.length
){var e=i.filter((function(t){return t.name===s.responseURL})).sort((function(t,n)
{return t.connectStart-n.connectStart}));e.length&&(n=e[e.length-
1].toJSON())}}r(new Ie(s.response,
{headers:t,statusText:s.statusText,status:s.status,url:s.responseURL,perfTimings:n}
))}},s.onabort=function(){a(new Oe)},s.onerror=function(){a(new
Le)},s.ontimeout=function(){a(new De(t.timeout))},"function"==typeof
o&&s.addEventListener("progress",o),t.headers)s.setRequestHeader(l,t.headers[l]);t.
withCredentials&&(s.withCredentials=!
0),t.responseType&&(s.responseType=t.responseType),t.abort=s.abort.bind(s),s.send(e
||null)}))}(n).then(Qe(n))}))})),e=n=new
Ze(t,n),o=e.method,u=e.json,a=e.jwt,s=e.searchParams;if(u&&(n.headers["Content-
Type"]=Je.json,n.body=JSON.stringify(u)),a&&(n.headers.Authorization="jwt
".concat(a)),s){var
c=Q(n.url.split("?"),2),l=c[0],f=c[1];n.url=wt(l,z(z({},mt(f)),s))}var h=-1!
==$e.indexOf(o.toLowerCase())?Ve(n)(i):i(),d=function(t){h[t]=Ke((function(){return
n.headers["Content-Type"]=Je[t],Be(h,(function(n){return n.clone()[t]
()}))}))};for(var v in Je)d(v);return function t(n,i){var e=n.then.bind(n);return
Object.assign(n,{abort:i,then:function(){return t(e.apply(void 0,arguments),i)}})}
(h,(function(){return n.abort()}))}function Ze(t,n){ht(this,Re,t="string"==typeof
t?{url:t}:t,n)}function Qe(t){var
n=t.validateStatus,i=t.throwHttpErrors,e=t.hooks;return Ke((function(r){var
o=e.afterResponse||[];return Ge(ze(o,(function(n){return Be((0,o[n])(t,r.clone()),
(function(t){t instanceof Ie&&(r=t)}))})),(function(){if(!n||n(r.status))return
r;if(i)throw new je(r);return r}))}))}Ye.forEach((function(t){return
Xe[t]=function(n,i){return Xe(n,z({method:t},i))},Xe[t]}));var
tr=Xe.get,nr=Xe.post,ir=Xe.put,er=Xe.patch,rr=Xe.head,or={ARRAY_BUFFER:"arraybuffer
"},ur=Object.freeze({__proto__:null,ContentTypes:Ce,defaults:Re,requestMethods:Ye,r
esponseTypes:Je,retryMethods:
$e,request:Xe,Request:Ze,get:tr,post:nr,put:ir,patch:er,head:rr,Response:Ie,Respons
eTypes:or,AbortError:Oe,HTTPError:je,NetworkError:Le,TimeoutError:De});function
ar(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
[];if(0===t.length)return 0;for(var i=0,e=0,r=0;r<t.length;r++){var o=n[r]||
1;e+=o,i+=t[r]*o}return i/e}function sr(t){if(0===t.length)return 0;for(var
n=0,i=0;i<t.length;i++)n+=1/t[i];return t.length/n}function cr(t,n)
{if(t.sort(),0===t.length)return 0;if(n<=0)return t[0];if(n>=1)return t[t.length-
1];var i=t.length*n,e=Math.floor(i),r=e+1,o=i%1;return
r>=t.length?t[e]:t[e]*(1-o)+t[r]*o}function lr(t){t.sort((function(t,n){return t-
n}));var n=Math.floor(t.length/2);return t.length%2?t[n]:(t[n-1]+t[n])/2}function
fr(){return"undefined"!=typeof performance?performance.now():Date.now()}var
hr=function(t){function n(){return t.apply(this,arguments)||this}return G(n,t),n}
(X(Error));function dr(){}var vr=[],pr=[],mr=[];function br(t,n,i){return i?n?
n(t):t:(t&&t.then||(t=r.resolve(t)),n?t.then(n):t)}var wr=[],gr=function(){function
t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=t.retryCount,i=void 0===n?3:n,e=t.parallel,r=void 0===e?
1:e,o=t.includeWithSpeeds,u=void 0===o||o,a=t.timeout,s=void 0===a?
0:a,c=t.retryAbortErrors,l=void 0===c||c;this.jt=[],this.Lt=new Me,this.Dt=new
P,this.Pt=i,this.Nt=!1,this.Ft=!
1,this.Ut=r,this.Vt=u,this.Bt=s,this.Ht=l,this.qt()}t.getPercentileSpeed=function()
{var t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:5,n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:.8,i=vr.slice(-t);return cr(i,n)},t.getAverageSpeed=function(){var
t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:5,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
[],i=vr.slice(-t);return ar(i,n)},t.getHarmonicAverageSpeed=function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,n=vr.slice(-t);return
sr(n)},t.getVolatilityScaler=function(){var t=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:5,n=vr.slice(-t);if(n.length<3)return null;var i=ar(n,
[]),e=Math.min.apply(Math,tt(n));return e/i},t.getMedianSpeed=function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,n=vr.slice(-t);return
lr(n)},t.getResponseSpeeds=function(){return vr},t.getProgressSpeeds=function()
{return wr},t.getFailedSegments=function(){return
pr},t.getSuccessfulSegments=function(){return mr};var n=t.prototype;return
n.add=function(t,n){var i=this;return new r((function(e,r){var
o=i.Wt(t,e,r);i.zt(o,n),i.Nt&&!i.Ft&&i.Gt()}))},n.start=function(){this.Nt||
(this.Nt=!0,this.Gt())},n.stop=function(){this.Nt=!1},n.abort=function(){var
t=this,n=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:null,i=this.jt.filter((function(t){return!n||
n===t.stream}));i.forEach((function(n){n.reject(new hr("Stream manually
aborted")),t.fire("downloadabort",n.identifier)})),this.jt=this.jt.filter((function
(t){return n&&n!==t.stream})),this.Lt.forEach((function(t){n&&n!==t.stream||
t.request.abort()}))},n.Kt=function(t){for(var n=0;n<this.jt.length&&!
(this.jt[n].priority>t.priority);n++);this.jt.splice(n,0,t)},n.qt=function(){var
t=this;this.Yt=new P,rt(this),window.addEventListener("online",(function()
{t.start(),t.Jt&&(t.Jt.resolve(),t.Jt=null)})),window.addEventListener("offline",
(function(){t.stop(),t.abort(),t.Jt=new dt}))},n.zt=function(t,n)
{t.hasOwnProperty("priority")?this.Kt(t):this.jt[n?"unshift":"push"]
(t)},n.Gt=function(){if(this.Nt){this.Ft=!0;for(var t=this.Ut-
this.Lt.size,n=0;n<t;n++)this.$t()}},n.Wt=function(t,n,i){var e=t;return
t.id&&(e=t.id),z(z({},t),{},{identifier:e,resolve:n,reject:i})},n.Xt=function(){0!
==this.Lt.size||0!==this.jt.length?this.Lt.size<this.Ut&&this.Gt():this.Ft=!1},n.
$t=function(){if(0!==this.jt.length){var
t=this.jt.shift(),n=t.url,i=t.byteRange,e=t.isInitSegmentRequest,r=t.identifier,o=t
.timeout,u={stream:t.stream,data:
{url:n,isInitSegmentRequest:e,requestSendTime:fr(),uuid:([1e7]+-1e3+-4e3+-8e3+-
1e11).replace(/[018]/g,(function(t)
{return(t^16*Math.random()>>t/4).toString(16)}))}},a=this.Bt,s=parseInt(o,10);s>=0&
&(a=s);var
c={url:n,type:Ce.SEGMENT,responseType:or.ARRAY_BUFFER,retry:this.Pt,hooks:
{beforeRetry:
[this.Zt.bind(this)]},onDownloadProgress:this.Qt(r,u),headers:i&&{Range:"bytes=".co
ncat(i)},retryAbortErrors:this.Ht,timeout:a};this.fire("downloadstart",r),u.request
=Xe(c).then(this.tn(u,t)).catch(this.nn(u,t)),this.Lt.add(u)}else this.Ft=!
1},n.Zt=function(){try{var t=this;return function(n){var i=function()
{if(t.Jt)return function(t,n){return t&&t.then?t.then(dr):r.resolve()}(t.Jt)}
();if(i&&i.then)return i.then(dr)}()}catch(t){return
r.reject(t)}},n.Qt=function(t,n){var i=this,e=0,r=0,o=fr();return function(u)
{if(u.lengthComputable){var a=8*(u.loaded-r),s=fr(),c=s-
o,l={startTime:o,length:c,bitrate:a/(c/1e3),index:e};e>0&&(wr.length>=100&&wr.shift
(),wr.push(l)),o=s,r=u.loaded,e+=1,i.Yt.set(n,
{bytesTotal:u.total,bytesLoaded:u.loaded,percent:u.loaded/u.total,identifier:t}),i.
fire("progress",t)}}},n.tn=function(t,n){var
i=this,e=fr(),o=n.identifier,u=n.resolve;return function(t){return function()
{for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{return
r.resolve(t.apply(this,n))}catch(t){return r.reject(t)}}}((function(r){var a=fr()-
e;return br(r.arrayBuffer(),(function(e){return t.data.duration=fr()-
t.data.requestSendTime,i.Lt.delete(t),i.Yt.delete(t),i.in(n,a,e.byteLength),i.fire(
"downloadend",o,
{request:t,response:r}),mr.push({url:t.data.url,status:200,duration:t.data.duration
}),br(i.en(t,e),(function(t){u(e=t),i.Xt()}))}))}))},n.in=function(t,n,i){var
e=t.includeWithBandwidthChecks,r=n/1e3;if(i>8e3){var
o=8*i,u=o/r;if(t.excludeConnectTime&&o<=16e5){var a=(50*Math.max(0,1-
o/16e5)+150)/1e3;u=o/Math.max(.1,r-
a)}vr.length>100&&vr.shift(),this.Vt&&e&&vr.push(u)}},n.en=function(t,n){return
t.data.url&&t.data.url.match(".ts$")?this.rn(t,n):r.resolve(new
Uint8Array(n))},n.rn=function(t,n){try{var i=this;return function(t,n){var
e=function(){if(!i.un)return br(ft("module/mux-mp4.js"),(function(t){i.un=new
t({keepOriginalTimestamps:!0})}))}();return e&&e.then?e.then(n):n()}(0,(function()
{return new r((function(e){i.un.on("data",(function(n){i.un.off("data");var r=new
Uint8Array(n.initSegment.byteLength+n.data.byteLength);r.set(n.initSegment,0),r.set
(n.data,n.initSegment.byteLength),e(t.data.isInitSegmentRequest?
n.initSegment:r)})),i.un.push(new Uint8Array(n)),i.un.flush()}))}))}catch(t){return
r.reject(t)}},n.nn=function(t,n){var
i=this,e=n.identifier,r=n.reject,o=n.size;return function(n){var u=fr()-
t.data.requestSendTime;if(t.data.duration=u,n instanceof
Oe)pr.push({url:t.data.url,status:"abort",duration:u}),i.fire("downloadabort",e);el
se if(n instanceof
je)pr.push({url:t.data.url,status:n.response.status,duration:u}),i.fire("downloader
ror",e,n.response.status);else if(n instanceof De)
{if(pr.push({url:t.data.url,status:"timeout",duration:u}),o>0&&n.timeoutMs>0){var
a=8*o/(n.timeoutMs/1e3);a*=.5,vr.push(a)}i.fire("downloadtimeout",e,
{timeoutMs:n.timeoutMs})}i.Yt.delete(t),i.Lt.delete(t),r(n),i.Xt()}},H(t,
[{key:"parallel",get:function(){return this.Ut},set:function(t){this.Ut=t}},
{key:"pendingFetches",get:function(){var t=this,n=[];return
this.Lt.forEach((function(i){if(t.Yt.get(i)){var e=t.Yt.get(i);e.elapsedTime=fr()-
i.data.requestSendTime,n.push(e)}})),n}}]),t}(),yr=function(){function t(t)
{rt(this),this.an=t,this.sn=null,this.cn=null,this.ln=!1,this.fn=!
0,this.hn=null,this.dn=[],this.vn=[],this.pn=!1,this.mn=null,this.bn=!
1,this.wn=void 0,this.gn=!1,this.yn=!
0,this._n={},this.kn=this.En.bind(this),this.an.on("durationset",this.Tn.bind(this)
)}var n=t.prototype;return n.addStream=function(t){var n=this;t.on("segmentadd",
(function(){return n.Sn()}));var i=this.vn.push(t)-
1;t.index=i,null===this.cn&&(this.xn(i),this.ln=!
0)},n.streamIndexAtTime=function(t){return this._n[void 0]?
{stream:this.activeStreamIndex}:this._n[Math.floor(t/6)]},n.switchTo=function(t)
{var n=this,i=!(arguments.length>1&&void 0!==arguments[1])||
arguments[1],e=t;"object"===V(t)&&(e=t.index);var o=this.cn!==e,u=o;if(!
o&&this.ln&&(o=!0),o){this.ln=!1;var
a=this.cn,s=this.vn[a];this.fire("streamchangestart",a,e),s&&u&&i&&s.abort(),this.A
n=e,this.xn(e)}return this.Sn(),new r((function(t){o?n.Mn=function()
{n.An===e&&(n.Mn=null,t(),n.fire("streamchange",e))}:t()}))},n.isTimeInBuffer=funct
ion(t){for(var n=0;n<this.sn.buffered.length;n++){var
i=this.sn.buffered.start(n),e=this.sn.buffered.end(n);if(i<=t&&e>=t)return!
0}return!1},n.hasAppendedFinalSegment=function(){return void 0!
==this.wn&&this.isTimeInBuffer(this.wn)},n.clear=function()
{this.vn.forEach((function(t){return t.clear()}))},n.remove=function(t){var
n=this,i=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:this.an.Cn.duration;return new r((function(e,r)
{n.dn.push([t,i,e]),n.Sn()}))},n.removeEventListeners=function()
{this.sn&&this.sn.removeEventListener("updateend",this.kn)},n.Tn=function(){var
t=this.an.Cn.duration,n=Math.floor(t/6);n+=6%t>1?1:0;for(var i=0;i<n;i+
+)this._n[i]={stream:null,segment:i,type:"video"}},n.Rn=function()
{this.sn.addEventListener("updateend",this.kn)},n.xn=function(t){this.fn=!
0,this.cn=t,this.an.In.streamIndex=t},n.En=function()
{this.On(),this.jn(),this.Sn()},n.On=function(){if(this.bn&&this.endTime)return
this.bn=!1,this.wn=this.endTime,void this.an.checkEndOfStream();!
this.activeStream.hasNextSegment()&&this.wn>0&&"open"===this.an.Cn.readyState&&this
.an.checkEndOfStream()},n.jn=function()
{this.hn&&(this.fire("appendbufferend",this.hn),this.hn=null,this.Mn&&this.Mn())},n
.Sn=function(){if(this.sn){if(this.activeStream&&"closed"!
==this.an.Cn.readyState&&!this.sn.updating)if(this.dn.length)this.Ln();else if(!
this.pn&&!this.gn)return this.fn?(this.fn=!1,void this.Dn()):void this.Pn()}else
this.on("sourcebufferattach",this.Sn)},n.Ln=function(){var
t=this,n=Q(this.dn.shift(),3),i=n[0],e=n[1],r=n[2];this.sn.addEventListener("update
end",(function n(i)
{t.sn.removeEventListener("updateend",n),r(),clearTimeout(t.mn),t.mn=setTimeout((fu
nction(){t.pn=!1,t.Sn()}),5e3)})),this.sn.remove(i,e)},n.Dn=function(){var
t=this;this.gn=!0,this.activeStream.getInitSegment().then((function(n){return
t.hn=null,t.sn.appendBuffer(n),t.gn=!1,n})).catch((function(n){t.fn=!0,t.gn=!
1}))},n.Pn=function(){var t=this.activeStream.getNextSegment();if(null!==t){var
n=this.activeStream.getIdForSegment(t);this.activeStream.isFinal(t)&&(this.bn=!
0),this.hn=n,this.fire("appendbufferstart",n);try{this.sn.appendBuffer(t),this._n[n
.segment]=n,this.yn&&(this.yn=!1,this.fire("initialbufferstart"))}catch(n)
{if("QuotaExceededError"===n.name){if(this.pn=!0,this.fire("quotaexcee
dederror",this.sn.buffered),this.an.$.currentTime>6){var i=this.an.$.currentTime-
6;this.an.removeBuffer(0,i)}this.activeStream.Nn.unshift(t)}}}},H(t,
[{key:"streams",get:function(){return this.vn}},
{key:"activeStreamIndex",get:function(){return this.cn}},
{key:"activeStream",get:function(){return this.vn[this.cn]}},
{key:"sourceBuffer",get:function(){return this.sn},set:function(t)
{this.sn=t,this.Rn(),this.fire("sourcebufferattach")}},
{key:"endTime",get:function(){var t=this.sn.buffered;if(t.length>0)return
t.end(t.length-1)}}]),t}(),_r=function(){function t(t){var
n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new
gr;rt(this),this.Nn=[],this.Fn=t,this.fn=!
0,this.Un=NaN,this.Vn=n,this.Bn=i,this.Bn.start(),this.Hn=new
P,this.qn={}}t.isValidSegmentUrl=function(t){return"string"==typeof
t||"string"==typeof t.url&&"string"==typeof t.byteRange};var n=t.prototype;return
n.getIdForSegment=function(n){return t.isValidSegmentUrl(n)?
this.qn[n]:this.Hn.get(n).id},n.isFinal=function(t){return
this.Hn.get(t).final},n.addSegment=function(n){var
i=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},o=e.identifier,u=void 0===o?null:o,a=e.isFinalSegment,s=void 0!
==a&&a,c=e.loadOnly,l=void 0!==c&&c,f=e.priority,h=void 0===f?
0:f,d=e.includeWithBandwidthChecks,v=void 0===d||d,p=e.excludeConnectTime,m=void 0!
==p&&p,b=e.timeout,w=void 0===b?null:b,g=e.size,y=void 0===g?null:g;return
this.fn&&this.getInitSegment(),t.isValidSegmentUrl(n)?(this.qn[n]=u||
n,this.fire("queued",this.getIdForSegment(n)),this.Bn.add({url:n.url||
n,byteRange:n.byteRange,id:this.getIdForSegment(n),stream:this,includeWithBandwidth
Checks:v,excludeConnectTime:m,isInitSegmentRequest:!
1,priority:h,timeout:w,size:y}).then((function(t){i.Hn.set(t,{id:u||
n,final:s}),i.Nn.push(t),i.fire("bufferqueueadd",i.getIdForSegment(n)),l||
i.fire("segmentadd")}))):(this.Hn.set(n,
{id:u,final:s}),this.Nn.push(n),this.fire("bufferqueueadd",u),r.resolve())},n.clear
=function(){this.Nn=[]},n.abort=function(){var
t=this;this.getInitSegment().then((function(){t.Bn.abort(t)})).catch((function(t)
{}))},n.hasNextSegment=function(){return
this.Nn.length>0},n.getNextSegment=function(){return 0===this.Nn.length?
null:this.Nn.shift()},n.getInitSegment=function(){var
n=this,i="object"===V(this.Fn)&&"url"in this.Fn?this.Fn.url:this.Fn;return i?
(this.fn=!1,t.isValidSegmentUrl(i)?
this.Bn.add({url:i,byteRange:this.Fn.byteRange,id:null,stream:this,isInitSegmentReq
uest:!0,priority:0}).then((function(t){return
n.Fn=t,n.Fn})):r.resolve(this.Fn)):r.resolve(null)},H(t,
[{key:"codec",get:function(){return this.Vn},set:function(t){this.Vn=t}},
{key:"index",get:function(){return this.Un},set:function(t){this.Un=t}},
{key:"pendingFetches",get:function(){return this.Bn.pendingFetches}}]),t}
(),kr=function(){function t(t){this.$=t,this.Nt=!
1,this.Wn=null,this.zn={},this.Gn={},this.Kn=0,this.Yn=0,this.Jn="default",this.bou
nd={startCheckingDroppedFrames:this.
$n.bind(this),stopCheckingDroppedFrames:this.Xn.bind(this)}}var
n=t.prototype;return n.start=function(){return this.$n(),this},n.stop=function()
{return this.Xn(),this},n.destroy=function()
{this.Xn(),this.Zn()},n.getDroppedFrameRate=function(t,n){var
i=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:"average",e=this.zn[n];if(!e)return 0;if(e.length<t)return 0;var
r=e.slice(-t);return"median"===i?lr(r):ar(r)},n.getDroppedFrameTotal=function()
{return{dropped:this.Qn(),total:this.ti()}},n.Rn=function(){this.
$.addEventListener("playing",this.bound.startCheckingDroppedFrames),this.
$.addEventListener("pause",this.bound.stopCheckingDroppedFrames),this.
$.addEventListener("ended",this.bound.stopCheckingDroppedFrames)},n.Zn=function()
{this.$.removeEventListener("playing",this.bound.startCheckingDroppedFrames),this.
$.removeEventListener("pause",this.bound.stopCheckingDroppedFrames),this.
$.removeEventListener("ended",this.bound.stopCheckingDroppedFrames)},n.
$n=function(){this.Nt=!0,this.ni()},n.Xn=function(){this.Nt=!1},n.ni=function(){var
t=this;if(this.Nt&&null!==this.Jn){clearTimeout(this.Wn);var n=this.Qn(),i=n-
this.Kn;this.Kn=n;var e=this.ii(),r=e-this.Yn;this.Yn=e,this.zn[this.Jn]||
(this.zn[this.Jn]=[]),this.Gn[this.Jn]||
(this.Gn[this.Jn]=[]),this.zn[this.Jn].length>100&&this.zn[this.Jn].shift(),this.Gn
[this.Jn].length>100&&this.Gn[this.Jn].shift(),this.zn[this.Jn].push(i),this.Gn[thi
s.Jn].push(r),this.Wn=setTimeout((function(){t.ni()}),1e3)}},n.Qn=function()
{return"function"==typeof this.$.getVideoPlaybackQuality?this.
$.getVideoPlaybackQuality().droppedVideoFrames:this.$.webkitDroppedFrameCount||
0},n.ti=function(){return"function"==typeof this.$.getVideoPlaybackQuality?this.
$.getVideoPlaybackQuality().totalVideoFrames:this.$.webkitDecodedFrameCount||
0},n.ii=function(){if("function"==typeof this.$.getVideoPlaybackQuality){var
t=this.$.getVideoPlaybackQuality();return t.totalVideoFrames-t.droppedVideoFrames-
t.corruptedVideoFrames}return this.$.webkitDecodedFrameCount||0},H(t,
[{key:"streamIndex",get:function(){return this.Jn},set:function(t){this.Jn=t}}]),t}
(),Er=function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:{};this.$=t,this.tt=n,rt(this);var i=this.tt,e=i.fetcherTimeout,r=void
0===e?0:e,o=i.fetcherRetryAbortErrors,u=void 0===o||o;this.In=new kr(t),this.Cn=new
MediaSource,this.Bn=new
gr({parallel:1,timeout:r,retryAbortErrors:u}),this.ei={},this.ri=[],this.oi=null,th
is.ai=this.si.bind(this),this.Rn()}var n=t.prototype;return n.switchTo=function(t)
{return 1===this.ri.length&&this.video.switchTo(t)},n.getCurrentSpeed=function()
{var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,i=void
0===n?"average":n,e=t.howMany,r=void 0===e?10:e,o=t.weights,u=void 0===o?
[]:o,a=t.percentile,s=void 0===a?null:a;return"harmonicAverage"===i?
gr.getHarmonicAverageSpeed(r):"average"===i?gr.getAverageSpeed(r,u):"median"===i?
gr.getMedianSpeed(r):gr.getPercentileSpeed(r,s)},n.getVolatilityScaler=function(t)
{return gr.getVolatilityScaler(t)},n.getResponseSpeeds=function(){return
gr.getResponseSpeeds()},n.getFailedSegments=function(){return
gr.getFailedSegments()},n.getSuccessfulSegments=function(){return
gr.getSuccessfulSegments()},n.getDroppedFrameRate=function(t){var
n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:this.activeStreamIndex,i=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:"average";return
this.In.getDroppedFrameRate(t,n,i)},n.getDroppedFrameTotal=function(){return
this.In.getDroppedFrameTotal()},n.clear=function(){this.ri.forEach((function(t)
{return t.clear()}))},n.streamIndexAtTime=function(t,n){return
this.ei[n].streamIndexAtTime(t)?
this.ei[n].streamIndexAtTime(t).stream:null},n.removeBuffer=function(){var
t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.
$.duration;if(t>=(n=n||0))return r.resolve();var i=this.ri.map((function(i){return
i.remove(t,n)}));return r.all(i)},n.addStream=function(t,n){var
i=this,e=this.ci(t);if(!this.ei[e]){var r=new
yr(this,e);this.ei[e]=r,this.ri.push(r),this.readyPromise.then((function(){var
n;try{n=i.Cn.addSourceBuffer(t)}catch(t){if(22!==t.code)return void
i.fire("srcnotsupported",t);n=i.ei[e]}i.tt.duration&&(n.appendWindowEnd=i.tt.durati
on+.1),r.sourceBuffer=n})).catch((function(t){})),
["appendbufferstart","appendbufferend","streamchange","streamchangestart","initialb
ufferstart","quotaexceedederror"].forEach((function(t){r.on(t,(function(n)
{i.fire(t,n)}))}))}var o=new
_r(n,t,this.Bn);return["queued","bufferqueueadd"].forEach((function(t){o.on(t,
(function(n)
{i.fire(t,n)}))})),this.ei[e].addStream(o),o},n.checkEndOfStream=function(){var
t=this;this.ri.every((function(t){return t.hasAppendedFinalSegment()}))&&this.
$.addEventListener("timeupdate",(function n(){t.
$.removeEventListener("timeupdate",n),t.ri.every((function(n){return
n.isTimeInBuffer(t.$.currentTime)}))&&t.endOfStream()}))},n.abortFetches=function()
{this.Bn.abort()},n.endOfStream=function()
{"open"===this.Cn.readyState&&(this.li()||
(this.Cn.endOfStream(),this.fire("endofstream")))},n.destroy=function()
{this.clear(),this.fi(),this.off(),this.In.destroy(),this.Bn.abort(),this.
$.src&&(this.$.removeAttribute("src"),this.$.load())},n.Rn=function(){var
t=this;this.readyPromise=new r((function(n,i)
{t.oi=n,t.Cn.addEventListener("sourceopen",t.ai)})),
["downloadstart","downloadend","downloadabort","downloaderror","downloadtimeout","p
rogress"].forEach((function(n){t.Bn.on(n,(function(){for(var
i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];t.fire.apply(t,
[n].concat(e))}))}))},n.li=function(){for(var t=0;t<this.Cn.sourceBuffers.length;t+
+)if(this.Cn.sourceBuffers[t].updating)return!0;return!1},n.si=function()
{URL.revokeObjectURL(this.
$.src),this.Cn.removeEventListener("sourceopen",this.ai),this.tt.duration&&(this.Cn
.duration=this.tt.duration,this.fire("durationset")),this.oi()},n.fi=function()
{this.ri.forEach((function(t){return t.removeEventListeners()}))},n.ci=function(t)
{return 0===t.indexOf("audio")?"audio":"video"},H(t,
[{key:"mediaSource",get:function(){return this.Cn}},
{key:"pendingFetches",get:function(){return this.Bn.pendingFetches}},
{key:"streams",get:function(){return 1===this.ri.length&&this.video.streams}},
{key:"activeStreamIndex",get:function(){return
1===this.ri.length&&this.video.activeStreamIndex}},{key:"video",get:function()
{return!!this.ei.video&&this.ei.video}},{key:"audio",get:function(){return!!
this.ei.audio&&this.ei.audio}}]),t}(),Tr=function(t){function n(n){var
i,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};return(i=t.call(this,n)||
this).tt=e,i.blacklisted=[],i.whitelisted=[],i.MAX_LOADABLE_SEGMENTS_AUTO=3,i.MAX_L
OADABLE_SEGMENTS_LOCKED=15,i.SEGMENT_DURATION=6,i}G(n,t),H(n,
[{key:"displayName",get:function(){return"MediaSource"}}]);var i=n.prototype;return
i.isTimeInBuffer=function(t,n,i){return
this.hi(t,t,n,i,1)},i.getDistanceFromBuffer=function(t,n){for(var
i=t,e=0;e<n.length;e++)if(n.start(e)<=t&&n.end(e)>=t){i=n.end(e);break}return i-
t},i.blacklist=function(t){this.blacklisted[t]=1},i.lock=function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
[];this.whitelisted=t},i.filterStreams=function(t,n,i){for(var
e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=[],u=!
1,a=0;a<t.length;a+
+)if(e&&e[0]===t[a].width&&e[1]===t[a].height)o.push(t[a]);else{if(u)break;if(!
(this.blacklisted[a]&&-1===this.whitelisted.indexOf(a)||this.whitelisted.length&&-
1===this.whitelisted.indexOf(a)))if(this.whitelisted.length)o.push(t[a]);else{var
s=this.di(n,i,t[a].width,t[a].height,r),c=1e3/(window.devicePixelRatio||1),l=i<c?
1.75:1;s>=l&&(u=!0),o.push(t[a]),e=[t[a].width,t[a].height]}}return
o},i.getCurrentSpeed=function(){var t="average",n=3,i=[1,2,5];return
this.tt.tests&&this.tt.tests.harmonic_average&&this.tt.tests.harmonic_average.group
&&(t="harmonicAverage",n=this.vi(),i=[]),this.scanner.sorcerer.getCurrentSpeed({typ
e:t,howMany:n,weights:i})},i.getAudioIndexFromVideo=function(t,n,i)
{if(0===n.length)return!1;if(!t[i])return 0;for(var e=0;e<n.length;e++)
{if(n[e].bitrate<8e4&&t[i].bitrate<5e5)return
e;if(n[e].bitrate>144e3&&t[i].bitrate>1e6)return e}return 0},i.pi=function(t,n,i,e)
{var r=i/e,o=t-n*r,u=n-t/r,a=t-o,s=n-u;return o>0&&(s=n),u>0&&(a=t),
[a,s]},i.di=function(t,n,i,e){var r=arguments.length>4&&void 0!==arguments[4]?
arguments[4]:null,o=this.pi(t,n,i,e),u=i*e;r&&(u*=r);var
a=window.devicePixelRatio||1,s=o[0]*o[1]*a*a;return u/s},i.vi=function(){var
t=ve(this.tt,"lookahead_count");return t&&t.group&&t.data.count?
t.data.count:t&&t.data.segment_lookahead_count?
t.data.segment_lookahead_count:this.MAX_LOADABLE_SEGMENTS_AUTO},i.mi=function(t,n,i
){var e=i&&i.bitrate>11e6;return 1===this.whitelisted.length?e?
30:this.MAX_LOADABLE_SEGMENTS_LOCKED*this.SEGMENT_DURATION:this.vi()*this.SEGMENT_D
URATION},i.hi=function(t,n,i,e){var r=arguments.length>4&&void 0!==arguments[4]?
arguments[4]:0;if(!i)return!1;n=Math.min(n,e);for(var o=0;o<i.length;o++){var
u=de(i.start(o))-r,a=de(i.end(o))+r;if(u<=t&&a>=n)return!0}return!
1},i.bi=function(t){return
t.video.length>0&&t.audio.length>0},i.wi=function(t,n,i,e){var r=1;return
this.bi(e)&&(r=.05),this.hi(t.start,t.end,n,i,r)},n}(function(){function t(t)
{this.scanner=t,this.STREAM_TYPE_VIDEO="video",this.STREAM_TYPE_AUDIO="audio"}H(t,
[{key:"displayName",get:function(){return"Brain"}}]);var n=t.prototype;return
n.destroy=function(){},n.shouldPowerUp=function(t,n){return!
1},n.shouldPowerDown=function(t,n){return!1},n.canPowerUp=function(t,n){return 1!
==t.length&&n<t.length-1},n.canPowerDown=function(t,n){return 1!
==t.length&&n>0},n.filterStreams=function(t){return t},t}()),Sr=function(t)
{function n(n){var i,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};return(i=t.call(this,n,e)||
this).BANDWIDTH_UPSWITCH_THRESHOLD=.85,i.BANDWIDTH_DOWNSWITCH_THRESHOLD=.9,i.DEFAUL
T_TIMEOUT=8e3,i.SEGMENT_RELATIVE_TIMEOUT_RATIO=4/3,i.MINIMUM_TIMEOUT=1e3,i}G(n,t),H
(n,[{key:"displayName",get:function(){return"Skyfire"}}]);var i=n.prototype;return
i.shouldPowerUp=function(t,n,i)
{i&&this.tt.startingBandwidthThreshold&&(this.BANDWIDTH_UPSWITCH_THRESHOLD=this.tt.
startingBandwidthThreshold);var e=t.indexOf(n);if(-1===e&&(e=0),!
this.canPowerUp(t,e))return r.resolve(!1);var o=this.getCurrentSpeed();if(!o)return
r.resolve(!1);var u=this.gi(o,this.BANDWIDTH_UPSWITCH_THRESHOLD,t);return u===e||!
i&&u>e&&vt(this.scanner.currentTime,this.scanner.
$.buffered)<1.5*this.SEGMENT_DURATION?r.resolve(!
1):r.resolve(u)},i.shouldPowerDown=function(t,n){var i=t.indexOf(n);if(-1===i){var
e=this.isTimeInBuffer(this.scanner.$.duration,this.scanner.$.buffered,this.scanner.
$.duration);return this.whitelisted.length||this.blacklisted.length||!e?
r.resolve(t.length-1):r.resolve(!1)}if(!this.canPowerDown(t,i))return r.resolve(!
1);var o=this.getCurrentSpeed();if(!o)return r.resolve(!
1);if(this.hasTooManyDroppedFrames(i,n,this.tt.droppedFrameSwitchPercent))return
r.resolve(i-1);var u=this.gi(o,this.BANDWIDTH_DOWNSWITCH_THRESHOLD,t);return u===i?
r.resolve(!1):r.resolve(u)},i.hasTooManyDroppedFrames=function(t,n,i){return
this.scanner.sorcerer.getDroppedFrameRate(10,t,"median")/n.framerate*100>=i&&(this.
blacklist(t),!0)},i.getTimeEstimateToLoad=function(t,n){if(null===n)return 3;var
i=n.segments[t],e=i.end-i.start,r=this.getCurrentSpeed();return
e*(n.bitrate+n.audioBitrate)/r*1.3},i.canPlayFromTimeInStream=function(t,n){if(!
this.isTimeInBuffer(t,this.scanner.$.buffered,this.scanner.$.duration))return!
1;if(!n)return!1;var i=this.getSegmentsToLoad(!
1,this.STREAM_TYPE_VIDEO,n);if(0===i.length)return!0;var e=vt(t,this.scanner.
$.buffered);return
this.getTimeEstimateToLoad(i[0],n)<e},i.getSegmentsToLoad=function(t){var
n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:this.STREAM_TYPE_VIDEO,i=arguments.length>2?arguments[2]:void
0,e=this.scanner.
$,r=this.scanner.currentTime,o=[],u=this.mi(r,e.duration,i),a=r+u,s=this.scanner.so
rcerer[n].activeStreamIndex,c=this.scanner.vn[n][s];if(!c)return o;var
l=this.scanner.sorcerer[n].sourceBuffer,f=null;l&&(f=l.buffered);for(var
h=0;h<c.segments.length;h++){var d=c.segments[h];if(!(d.end<r||d.start>a)){var
v=r>=d.start&&r<d.end,p=this.wi(d,f,this.scanner.$.duration,this.scanner.vn);!
t&&p||t&&p&&v||(v||a>=d.start)&&o.push(h)}}return
o},i.getSegmentRelativeTimeout=function(t,n,i){var e,r=null==n?void
0:n.bitrate,o=null==(e=t[0])?void 0:e.bitrate;if(!r||!o||!i)return
this.DEFAULT_TIMEOUT;if(r===o)return this.DEFAULT_TIMEOUT;var
u=i*this.SEGMENT_RELATIVE_TIMEOUT_RATIO;return
Math.max(this.MINIMUM_TIMEOUT,Math.min(this.DEFAULT_TIMEOUT,u))},i.gi=function(t,n,
i){for(var e=0,r=e;r<i.length;r++)t*n>i[r].bitrate+i[r].audioBitrate&&(e=r);return
e},n}(Tr),xr=function(t){function n(n){var i,e,r,o=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};return(r=t.call(this,n,o)||
this).yi=o.tests.ml_brain.data.mimir_url,r._i=o.tests.ml_brain.data.geolocation,r.k
i={},r.Ei=null,r.Ti=[],r.Si=[],r.xi=[],r.Ai=[],r.Mi=[],r.Ci=[],r.Ri=[],r.Ii=[],r.Oi
=[],r.ji=null,r.Li=0,r.Di=null,r.Pi=null,r.Ni=!1,r.Fi=!
1,r.Ui=0,r.Vi=[],r.Bi=0,r.Hi=[[Ti.DOWNLOAD_START,r.qi.bind(Z(r))],
[Ti.DOWNLOAD_END,r.Wi.bind(Z(r))],[Ti.APPEND_BUFFER_END,r.zi.bind(Z(r))],
[Ti.DOWNLOAD_TIMEOUT,r.Gi.bind(Z(r))]],r.Ki=[r.Yi],r.Ji=[r.
$i],r.Hi.forEach((function(t){r.scanner.on(t[0],t[1])})),
(i=Re.hooks.beforeRequest).push.apply(i,tt(r.Ki)),
(e=Re.hooks.afterResponse).push.apply(e,tt(r.Ji)),r}G(n,t),H(n,
[{key:"displayName",get:function(){return"ML"}}]);var i=n.prototype;return
i.destroy=function(){var t=this;this.Hi.forEach((function(n)
{t.scanner.off(n[0],n[1])})),this.Ki.forEach((function(t){var
n=Re.hooks.beforeRequest,i=n.indexOf(t);i>=0&&n.splice(i,1)})),this.Ji.forEach((fun
ction(t){var
n=Re.hooks.afterResponse,i=n.indexOf(t);i>=0&&n.splice(i,1)}))},i.qi=function(t)
{var
n=t.identifier;n.type===this.STREAM_TYPE_VIDEO&&(this.Di={index:n.segment,streamInd
ex:n.stream,complete:null}),n.type===this.STREAM_TYPE_AUDIO&&(this.Pi={index:n.segm
ent,streamIndex:n.stream,complete:null})},i.Xi=function(t){var
n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:this.STREAM_TYPE_VIDEO;return n===this.STREAM_TYPE_VIDEO?null!
==this.Di&&this.Di.index===t.segment&&this.Di.streamIndex===t.stream:n===this.STREA
M_TYPE_AUDIO&&null!==this.Pi&&this.Pi.index===t.segment},i.Zi=function(){return
null!==this.Di||null!==this.Pi},i.Wi=function(t){var
n=t.identifier,i=t.data,e=i.request,r=i.response,o=e.data.duration/1e3,u=r.body.byt
eLength,a=null;r.perfTimings&&(a=r.perfTimings.responseStart-
r.perfTimings.connectStart),n.type===this.STREAM_TYPE_VIDEO&&this.Xi(n,this.STREAM_
TYPE_VIDEO)&&(this.Di.complete={downloadTime:o,byteLength:u,ttfb:a,uuid:e.data.uuid
},this.Fi||(this.Qi({streamIndex:n.stream,segmentIndex:n.segment-
1,segmentDLTime:o,segmentLength:u,ttfb:a,didSegmentTimeout:!1}),this.Fi=!
0)),n.type===this.STREAM_TYPE_AUDIO&&this.Xi(n,this.STREAM_TYPE_AUDIO)&&(this.Pi.co
mplete={downloadTime:o,byteLength:u,ttfb:a,uuid:e.data.uuid})},i.Gi=function(t){var
n=t.identifier,i=(t.data.timeoutMs||8e3)/1e3,e=n.segment,r=this.scanner.vn[n.type]
[n.stream].segments[e].size;delete
this.ki[e],this.Qi({streamIndex:n.stream,segmentIndex:e,segmentDLTime:i,segmentLeng
th:r,ttfb:.1,didSegmentTimeout:!0})},i.te=function()
{this.Di=null,this.Pi=null},i.zi=function(t){var
n=t.identifier;if(n.type===this.STREAM_TYPE_VIDEO&&(this.Bi+=1),this.bi(this.scanne
r.vn))
{if(this.Xi(n,this.STREAM_TYPE_VIDEO)&&this.Xi(n,this.STREAM_TYPE_AUDIO)&&null!
==this.Di.complete&&null!==this.Pi.complete){var
i=this.Di.complete,e=this.Pi.complete,r=i.downloadTime+e.downloadTime,o=i.byteLengt
h+e.byteLength,u=i.ttfb+e.ttfb;this.Qi({streamIndex:n.stream,segmentIndex:n.segment
-
1,segmentDLTime:r,segmentLength:o,ttfb:u,segmentRequestID:i.uuid,didSegmentTimeout:
!1}),this.te()}}else if(this.Xi(n,this.STREAM_TYPE_VIDEO)&&null!==this.Di.complete)
{var a=this.Di.complete;this.Qi({streamIndex:n.stream,segmentIndex:n.segment-
1,segmentDLTime:a.downloadTime,segmentLength:a.byteLength,ttfb:a.ttfb,segmentReques
tID:a.uuid,didSegmentTimeout:!1}),this.te()}},i.Qi=function(t){var
n=t.streamIndex,i=t.segmentIndex,e=t.segmentDLTime,r=t.segmentLength,o=t.ttfb,u=t.s
egmentRequestID,a=t.didSegmentTimeout,s=this.scanner.vn.video[n],c=this.scanner.sor
cerer.video.sourceBuffer;if(c&&s)
{this.Ti.push(this.getTotalBufferDuration()),this.Ai.push(vt(this.scanner.currentTi
me,c.buffered)),this.Mi.push(n),this.Si.push(e),this.xi.push(r);var
l=o+this.Li;this.Ri.push(l),this.Ci.push(s.segments.length-
i),this.Oi.push(u),this.Ii.push(Number(a))}},i.handleScrubEnd=function(t){var
n=this.Si.length,i=n?this.Si[n-1]:0,e=this.xi.length,r=e?this.xi[e-
1]:0,o=this.Ri.length,u=o?this.Ri[o-
1]:0,a=this.scanner.vn.video[t],s=this.ne(a),c=s?s.index:this.Ci[this.Ci.length-
1],l=this.Oi.length?this.Oi[this.Oi.length-
1]:"";this.Qi({streamIndex:t,segmentIndex:c,segmentDLTime:i,segmentLength:r,ttfb:u,
segmentRequestID:l,didSegmentTimeout:!1})},i.shouldPowerUp=function(t,n,i){var
e=t.indexOf(n);if(-1===e&&(e=0),1===this.whitelisted.length)return
this.whitelisted[0]>e?r.resolve(0):r.resolve(!
1);if(1===this.scanner.vn.video.length)return r.resolve(!1);if(!
this.canPowerUp(t,e))return r.resolve(!1);if(this.scrubInProgress)return
r.resolve(!1);var o=this.ne(n);if(null===o)return r.resolve(!1);var
u={index:o.index,streamIndex:o.streamIndex},a=o.index;if(null!
==this.Ei&&this.Ei.index===u.index&&this.Ei.streamIndex===u.streamIndex)return
r.resolve(!1);if(!(a in this.ki))return this.ee(u,t,n).then((function(t){return
t>e&&t})).catch(console.error);var s=this.ki[a];return s>e?r.resolve(s):r.resolve(!
1)},i.shouldPowerDown=function(t,n){var i=t.indexOf(n);if(-1===i){var
e=this.isTimeInBuffer(this.scanner.$.duration,this.scanner.$.buffered,this.scanner.
$.duration);return this.whitelisted.length||this.blacklisted.length||!e?
r.resolve(t.length-1):r.resolve(!1)}if(1===this.whitelisted.length)return
this.whitelisted[0]<i?r.resolve(0):r.resolve(!
1);if(1===this.scanner.vn.video.length)return r.resolve(!1);if(!
this.canPowerDown(t,i))return r.resolve(!1);if(this.scrubInProgress)return
r.resolve(!1);var o=this.ne(n);if(null===o)return r.resolve(!1);var
u={index:o.index,streamIndex:o.streamIndex},a=o.index;if(null!
==this.Ei&&this.Ei.index===u.index&&this.Ei.streamIndex===u.streamIndex)return
r.resolve(!1);if(!(a in this.ki))return this.ee(u,t,n).then((function(t){return
t<i&&t})).catch(console.error);var s=this.ki[a];return s<i?r.resolve(s):r.resolve(!
1)},i.getTotalBufferDuration=function(){var
t=this.scanner.sorcerer.video.sourceBuffer,n=0;if(!t)return n;for(var
i=0;i<t.buffered.length;i++){var e=t.buffered.start(i);n+=t.buffered.end(i)-
e}return n},i.canPlayFromTimeInStream=function(t,n){return!!
this.isTimeInBuffer(t,this.scanner.$.buffered,this.scanner.$.duration)&&!!
n},i.re=function(t){var n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:0,i=t.slice(0);if(i.length<8){for(var e=8-i.length,r=0;r<e;r+
+)i.unshift(n);return i}return i.slice(i.length-8,i.length)},i.oe=function(t,n){var
i=this,e={240:1,360:2,480:3,540:3,720:4,1080:5,1440:6,2160:7},r={240:0,360:1,480:2,
540:2,720:3,1080:4,1440:5,2160:6},o=[0,0,0,0,0,0,0,0],u=[0,0,0,0,0,0,0,0],a=[0,0,0,
0,0,0,0,0];this.Bi<3&&(a[a.length-1]=1);for(var s=0;s<n.length;s++){var
c=n[s],l=parseInt(c.quality,10);l in e&&(o[e[l]]=1);var
f=this.getAudioIndexFromVideo(n,this.Vi,s),h=null;"number"==typeof
f&&(h=this.Vi[f]);for(var d=0;d<c.segments.length;d++)if(d===t&&l in r){var
v=c.segments[d].size,p=0;h&&h.segments[d]&&(p=h.segments[d].size),u[r[l]]=v+p}}var
m=this.Mi.map((function(t){return
parseInt(i.scanner.vn.video[t].quality,10)}));return{availableQualities:o,nextChunk
Sizes:u,lastBufferSizes:this.re(this.Ti),lastChunkDownloadTimes:this.re(this.Si),la
stTtfb:this.re(this.Ri,.1),lastChunkSizes:this.re(this.xi),lastChunkQualities:this.
re(m),numRemainingChunks:this.re(this.Ci),lastPlaybackHeads:this.re(this.Ai),geoloc
ation:
[[this._i]],downloadTimeout:this.re(this.Ii),videoStart:a}},i.ue=function(t,n)
{for(var i=-1,e=-1,r=0;r<t.length;r++)t[r]>e&&(e=t[r],i=r);for(var
o=[],u=0;u<n.length;u+
+)1===n[u]&&o.push(u);return{1:240,2:360,3:540,4:720,5:1080,6:1440,7:2160}
[o[i]]},i.ae=function(t,n){for(var i=0;i<n.length;i++){var
e=parseInt(n[i].quality,10);if(e===t)return i;if(480===e&&540===t)return i}return
0},i.Yi=function(t){t.startTime=oe()},i.$i=function(t,n){return
n.duration=ue(t.startTime),n},i.ee=function(t,n,i){var
e=this,r=this.oe(t.index,n);return this.Ei=t,Xe.post(this.yi,{json:
{inputs:r},timeout:2e3}).then((function(i){e.Li=i.perfTimings.duration;var
o=JSON.parse(i.body),u=e.ue(o.outputs[0],r.availableQualities),a=e.ae(u,n);if(e.ki[
t.index]=a,e.Oi.length&&e.ji){var s=e.Oi[e.Oi.length-
1];e.scanner.fire(Mi.BRAIN_ML_MODEL_INPUTS,z({chunkRequestID:s,duration:i.duration,
geolocation:e._i},e.ji))}return e.ji=r,e.Ei=null,a})).catch((function(n){if(n
instanceof je){var
i={status:n.response.status,resp:n.response.body,url:e.yi};e.scanner.fire(Mi.BRAIN_
ML_MODEL_ERR,i),e.Ui++}if(n instanceof De){var
r={url:e.yi};e.scanner.fire(Mi.BRAIN_ML_MODEL_TIMEOUT,r),e.Ui++}if(n instanceof Le)
{var o={url:e.yi};e.scanner.fire(Mi.BRAIN_ML_MODEL_NET_ERR,o),e.Ui+
+}e.Ui>=2&&e.scanner.resetBrain(!0);var u=t.streamIndex;return
e.ki[t.index]=u,e.Ei=null,u}))},i.ne=function(t){var
n=this.scanner.sorcerer.video.sourceBuffer,i=null;if(n&&(i=n.buffered),null===i)ret
urn null;for(var e=this.se(t),r=0;r<e.length;r++){var o=e[r].segment;if(!
this.wi(o,i,this.scanner.$.duration,this.scanner.vn))return e[r]}return
null},i.se=function(t){var n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:this.STREAM_TYPE_VIDEO,i=this.scanner.
$,e=this.scanner.currentTime,r=this.mi(e,i.duration,t),o=e+r,u=[],a=this.scanner.so
rcerer[n].activeStreamIndex,s=this.scanner.vn[n][a];if(!s)return u;for(var
c=0;c<s.segments.length;c++){var l=s.segments[c];if(!(l.end<e||l.start>o)){var
f=e>=l.start&&e<l.end;(f||
o>=l.start)&&u.push({segment:l,index:c,streamIndex:a})}}return
u},i.ce=function(t,n){var i=this;Object.keys(this.ki).filter((function(n){return-
1===t.indexOf(parseInt(n,10))})).forEach((function(t){var
e=i.ki[t],r=i.scanner.vn.video[e].segments[t];i.wi(r,n,i.scanner.
$.duration,i.scanner.vn)||delete i.ki[t]}))},i.getSegmentsToLoad=function(t,n,i)
{var
e=this.se(i,n),r=this.scanner.sorcerer[n].sourceBuffer,o=null;r&&(o=r.buffered),thi
s.ce(e.map((function(t){return t.index})),o);for(var u=[],a=0;a<e.length;a++){var
s=e[a].segment,c=e[a].index,l=this.wi(s,o,this.scanner.
$.duration,this.scanner.vn),f=c in this.ki;l||!f&&1!==this.whitelisted.length&&1!
==this.scanner.vn.video.length||u.push(c)}return u},H(n,
[{key:"audioStreams",get:function(){return this.Vi},set:function(t){this.Vi=t}},
{key:"scrubInProgress",set:function(t){this.Ni=t},get:function(){return
this.Ni}}]),n}(Tr),Ar=function(){function t(t,n){this.$=t,this.le=n}var
n=t.prototype;return n.start=function(){return
clearInterval(this.fe),this.fe=setInterval(this.he.bind(this),200),this.he()},n.sto
p=function(){clearInterval(this.fe)},n.onSegmentAppended=function()
{this.he()},n.he=function(){var t=this.$.buffered,n=this.
$.currentTime,i=this.de(t,n);if(0===this.$.readyState)return!1;if(this.
$.paused)return!1;var e=this.$.duration;if(n>=e)return this.$.currentTime=e-.1,!
0;if(t.length<=i)return!1;var r=t.start(i);return!(r>=e||r-n>.5||0!==i||
(this.stop(),this.ve("audio",r),this.ve("video",r),this.
$.currentTime=r,0))},n.de=function(t,n){if(!t||!t.length)return null;for(var
i=0;i<t.length;i++){var e=t.start(i),r=t.end(i);if(e>n&&(0===i||r-
n<=.1))break}return i>=0?i:null},n.ve=function(t,n){var
i=this.le(0,t);i&&i.segments&&i.segments[0]&&(i.segments[0].start=n)},t}
(),Mr=function(t){function n(n){var i,e=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:{};return(i=t.call(this,n,e)||
this).reset(),i.manifestLoadDurations=[],e.mediaSourceScanner&&(i.pe=e.mediaSourceS
canner.maxPreloadStreamIndex),i}G(n,t),H(n,null,[{key:"displayName",get:function()
{return"MediaSourceScanner"}},{key:"supported",get:function(){return"undefined"!
=typeof MediaSource&&MediaSource.isTypeSupported}},
{key:"supportedVideoTypes",get:function()
{return["application/vnd.vimeo.dash+json","video/vnd.mpeg.dash.mpd"]}}]);var
i=n.prototype;return i.deactivate=function()
{t.prototype.deactivate.call(this),this.sorcerer&&this.sorcerer.destroy(),this.rese
t()},i.reset=function(){this.me=new Me,this.be={},Wi.browser.safari&&(this.we=new
Ar(this.$,this.le.bind(this))),this.resetBrain(),this.ge=!1,this.ye=!
1,this.It=null,this.vn={},this.vn.audio=[],this.vn.video=[],this.Vi=[],this._e=null
,this.ke=null,this.Ee=null,this.Te=null,this.Se=null,this.xe=null,this.Ae=!
1,this.Me=null,this.Ce=!1,this.Re=!1,this.Ie=null,this.Oe=null,this.je=!
1,this.Le=[],this.De={},this.Pe=0,this.Ne=null,clearInterval(this.Fe),clearTimeout(
this.Ue)},i.resetBrain=function(){var t=arguments.length>0&&void 0!
==arguments[0]&&arguments[0],n=this.tt.mediaSourceScanner||
{};n.tests=this.tt.tests;var i=Wi.ie;if(this.Ve&&this.Ve.destroy(),t||i){var
e=pe(this.Ve);return this.Ve=new Sr(this,n),void((e||
i)&&this.fire(Mi.BRAIN_ML_SWITCH_TO_SKYFIRE))}this.Ve=new Sr(this,n);var
r=ve(n,"ml_brain");r&&r.group&&r.data.use_model&&(this.Ve=new
xr(this,n))},i.preloadStream=function(){var t=this;if(this.Ie)return this.Ie;var
n=0,i=1;this.vn.audio.length&&(i=2);var
e=this.sorcerer.video.activeStreamIndex;this.Le.length&&(e=this.Le[0]);var
o=0,u=this.Ve.getSegmentsToLoad(!1,"video",e);u.length>0&&(o=u[0]);var a=function()
{},s=function(){var n=arguments.length>0&&void 0!
==arguments[0]&&arguments[0];n&&(e=t.sorcerer.video.activeStreamIndex),t.Ne=e,t.Be(
!0)},c=function(e){(n+=1)<i||(e.segment===o&&0===t.Le.length?t.He(!
0).then((function(i){if(!1!==i&&i>e.stream){if(t.sorcerer.video.switchTo(i,!
1),t.vn.audio.length){var
r=t.Ve.getAudioIndexFromVideo(t.vn.video,t.vn.audio,i);t.sorcerer.audio.switchTo(r,
!1)}return n=0,void s(!0)}a()})).catch(console.error):a())};return this.Ie=new
r((function(n,i){a=function(){var i=t.le(e).segments[0].end,r=t.qe(!
0);if(t.currentTime>=r&&(t.currentTime=r),t.currentTime>i&&(t.sorcerer.clear(),t.me
=new Me),t.sorcerer.video.switchTo(e,!1),t.vn.audio.length){var
o=t.Ve.getAudioIndexFromVideo(t.vn.video,t.vn.audio,e);t.sorcerer.audio.switchTo(o,
!1)}t.sorcerer.off("bufferqueueadd",c),t.Ne=null,t.ge=!
0,n()},t.sorcerer.on("bufferqueueadd",c),s()})),this.Ie},i.loadManifest=function(t)
{var n=this,i=Date.now();return Wi.browser.ie&&t&&-1!
==t.indexOf("archive_playlist")?(setTimeout((function()
{n.kt("MediaUnknownError","An unknown error occurred.")}),250),new r((function()
{}))):Xe({url:t,timeout:1e4,type:Ce.MANIFEST}).then((function(e){return
e.url&&e.url!==t&&-1!==e.url.indexOf("live-
archive")&&(n.ke=e.url.split("/").slice(0,-
2).join("/")),n.manifestLoadDurations.push({url:t,status:e.status,duration:Date.now
()-i}),n.fire(Ti.MANIFEST_LOADED),e.text()})).then(function(t){return function()
{for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{return
r.resolve(t.apply(this,n))}catch(t){return r.reject(t)}}}((function(n){var
i;return function(e,o){var u=function(){if(-1!==t.indexOf(".mpd"))return
function(t,n,i){return t&&t.then||(t=r.resolve(t)),n?t.then(n):t}(ft("module/media-
manifest.js"),(function(e){var r=e.parseMPD;i=r(n,t)}));i=JSON.parse(n)}();return
u&&u.then?u.then(o):o()}(0,(function(){return i}))}))).catch((function(e)
{if(n.manifestLoadDurations.push({url:t,status:e.response&&e.response.status,durati
on:Date.now()-i}),n.reset(),e instanceof je&&410===e.response.status)return
n.fire(Ti.MEDIA_URL_EXPIRED),new r((function(){}));throw e instanceof
je&&400===e.response.status?n.fire(Ti.MEDIA_URL_BAD_REQUEST,e.response.url):e
instanceof De&&n.fire(Ti.MANIFEST_TIMEOUT),e}))},i.setVideoSrc=function(t,n){var
i=this,e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&!
n&&this._e){var r;if(("metadata"===this.at||"none"===this.at&&!this.paused)&&!
this.ge)return void this._e.then((function(){var n=i.paused;i.setVideoSrc(t,n,!
1)})).catch(console.error);if("sd-fallback"===(null==(r=this.nt.drmHandler)?void
0:r.state))return void this._e.then((function(){i.setVideoSrc(t,!0,!
1)})).catch(console.error);if("auto"===this.at)return void this._e.then((function()
{i.setVideoSrc(t,!1,!1)})).catch(console.error)}n&&this.reset(),n||!this.paused||
this.sorcerer||(n=!0);var o=this.We;n&&(o=this.qt);var u=t.split("/");u.pop();var
a="".concat(u.join("/"),"/");this.Ae=!
n,this._e=this.ze(t,this.at).then(this.loadManifest.bind(this)).then((function(t)
{return"string"==typeof i.ke&&-1!==i.ke.indexOf("live-archive")||
(i.ke=a),t})).then(o.bind(this)),n&&"auto"===this.at&&(this._e=this.Ge(this._e,this
.preloadStream.bind(this),!
1)),this._e=this.Ke(this._e)},i.getBitrateAtTime=function(t,n){if(!
this.sorcerer)return 0;var i=this.sorcerer.streamIndexAtTime(t,n);return this.vn[n]
[i]?this.vn[n][i].bitrate:0},i.lockStreamIndexes=function(){var
t=this,n=this.Le.map((function(n){return t.vn.video.indexOf(t.vn.video[n])})),i=!
this.paused;if(i&&(this.Ye=!0,this.$.pause()),this.De.video=!
1,this.Ve.lock(n),this.ye||"auto"===this.at){var e=Math.max(this.currentTime-
7,0),r=Math.min(this.currentTime+7,this.
$.duration);this.sorcerer.removeBuffer(e,r).then((function(){!t.ye&&"auto"===t.at||
t.ended?t.Je():(t.seekToTime(t.currentTime),i&&t.paused&&(t.$e=!0,t.
$.play()))})).catch(console.error)}},i.seekToTime=function(t){var
n=this;if(t===this.currentTime)return r.resolve();var i=null===this.Te;if(i||
(this.Xe&&(this.Xe(),this.Xe=null),this.Ze=null,this.Te=null,this.Se=null),this.Te=
t,this.Qe(),this.ge)for(var e in this.vn)if(this.vn[e].length>0){var
o=this.sorcerer[e].activeStreamIndex;this.sorcerer[e].streams[o].abort()}return
this.Ze=this.tr(t),r.all([this._e,this.Oe]).then((function()
{n.Je()})).catch(console.error),this.nr&&0===t&&this.fire(_i.SEEKING),i||
this.play().catch(this.ft.bind(this)),this._e.then((function(){return
n.Ze})).catch((function(t){}))},i.takeSnapshot=function(){},i.initDrm=function()
{},i.onstalled=function(){return!1},i.onseeked=function(t)
{this.ye&&this.Be()},i.onended=function(n){return
t.prototype.onended.call(this,n),!0},i.onseeking=function(t)
{this.ye},i.Qe=function(){var
t=this;this.ir(),clearTimeout(this.er),this.er=setTimeout((function()
{t.rr()}),200)},i.ir=function(){this.or||(this.or=!
0,pe(this.Ve)&&(this.Ve.scrubInProgress=!0))},i.rr=function(){if(this.or=!
1,pe(this.Ve)){this.Ve.scrubInProgress=!1;var
t=this.sorcerer.video.activeStreamIndex;this.Ve.handleScrubEnd(t),this.Je()}},i.ont
imeupdate=function(n){if(!this.sorcerer)return!
1;if(t.prototype.ontimeupdate.call(this),this.we&&this.we.stop(),0===this.currentTi
me)return this.ye;if(this.Te)return!1;this.ye||(this.ye=!
0),this.Re&&this.currentTime>=this.Re&&(this.sorcerer.removeBuffer(0,this.Re-
2),this.Re=!1);var
i=this.sorcerer.getDroppedFrameTotal();this.fire(Ti.DROPPED_FRAMES,i);var
e=this.sorcerer.getResponseSpeeds(),r=this.vn.video[this.sorcerer.video.activeStrea
mIndex],o=this.tt.tests&&this.tt.tests.download_bitrate;if((!o||!
o.group)&&r&&this.Ve.getCurrentSpeed){var
u={speed:this.Ve.getCurrentSpeed(),bitrate:r.bitrate,speeds:e};this.fire(Ti.BANDWID
TH,u)}var a=this.$.buffered.length;if(!a)return!0;var s=this.$.buffered.end(a-
1);return Math.ceil(s)===Math.ceil(this.$.duration)||(Math.abs(this.currentTime-
s)<.2?(this.je||(this.fire(Ti.STREAM_BUFFER_START,
{hasLowerStreamIndex:this.sorcerer.video.activeStreamIndex>0}),this.je=!0),!1):void
0)},i.ur=function(){return!!this.ended||
Math.ceil(this.currentTime)===Math.ceil(this.$.duration)},i.ar=function(){return!!
this.sorcerer&&!this.ur()&&(null!==this.Ne?(this.sr(),!0):0!==this.currentTime||
this.ge?(this.Je(),!0):this.ye)},i.onprogress=function()
{this.Ve.canPlayFromTimeInStream(this.currentTime,this.le())&&this.je&&(this.fire(T
i.STREAM_BUFFER_END),this.je=!1)},i.onwaiting=function(){return!this.we||!
this.we.start()},i.onerror=function(){return!!this.$.error&&(this.
$.error.code===this.$.error.MEDIA_ERR_DECODE?(this.fire(Ti.SCANNER_ERROR,
{reason:"encountered media decode error"}),!
1):t.prototype.onerror.call(this))},i.pause=function()
{t.prototype.pause.call(this)},i.play=function(){var n=this;return
this.Be(),t.prototype.play.call(this,(function(){return n.xe&&n.xe(),n.Ae||
n.ge||"auto"===n.at||
(n._e=n.Ge(n._e,n.preloadStream.bind(n))),n._e.then((function(){return
r.resolve(n.Ze)}))}))},i.onpause=function(){return this.Ye?(this.Ye=!1,!1):
(t.prototype.onpause.call(this),!0)},i.onplay=function(){return!this.$e||(this.$e=!
1,!1)},i.Ge=function(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||
arguments[2],e=t.then(n);return i&&(e=this.Ke(e)),e},i.Ke=function(t){var
n=this;return t.catch((function(t){return n.fire(Ti.FILE_ERROR,{reason:t}),new
r((function(t,n){}))}))},i.cr=function()
{this.ge&&this.vn.video[this.sorcerer.video.activeStreamIndex].bitrate/1e3>12e3&&(t
his.Oe=this.sorcerer.removeBuffer())},i.ze=function(t,n){var i=this;return new
r((function(e,r){"none"!==n||i.Ae&&!i.paused?e(t):i.xe=function()
{e(t),i.xe=null}}))},i.tr=function(){var t=this,n=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:this.Te;return new r((function(i,e){var
r=t.ye&&0===n,o=t.Ve.canPlayFromTimeInStream(n,t.le());r||o?i(n):
(t.cr(),t.Se=i)})).then((function(n){t.Te=null,t.Ze=null;var i=new r((function(n,i)
{t.Xe=i,t.$.addEventListener("seeked",(function i(){n(t.$.currentTime),t.
$.removeEventListener("seeked",i)}))}));return t.
$.currentTime=n,i}))},i.lr=function(t,n){"auto"!
==t&&"auto"===n&&(this._e=this.Ge(this._e,this.preloadStream.bind(this))),t!
==n&&"none"!==n&&this.xe&&this.xe()},i.hr=function(t){var
n=t.audio.reduce((function(t,n){return
t+n.duration}),0),i=t.video.reduce((function(t,n){return
t+n.duration}),0),e=n/t.audio.length,r=i/t.video.length;return e+4<r?r-
e:0},i.dr=function(t){return t.video.every((function(t){return
t.segments.every((function(t){return"size"in t}))}))},i.We=function(t){var
n=this;return new r((function(i,e){if(n.It=t,n.vn.video=n.pr(t.video),t.audio){var
r=n.hr(t);if(r>0)return n.fire(Ti.AV_DURATION_MISMATCH,r),n.fire(Ti.SCANNER_ERROR,
{reason:"Encountered A/V duration mismatch"}),void e();var
o=t.audio.filter((function(t)
{return"opus"===t.codecs})),u=t.audio.filter((function(t){return"opus"!
==t.codecs})),a=Wi.browser.safari||Wi.iOS||Wi.iPadOS||!
MediaSource.isTypeSupported('audio/mp4; codecs="opus"')||!o.length?
u:o;n.vn.audio=n.pr(a)}for(var s=0;s<n.vn.video.length;s++){var c=0;if(t.audio){var
l=n.Ve.getAudioIndexFromVideo(n.vn.video,n.vn.audio,s),f=n.vn.audio[l];f&&(c=f.bitr
ate)}n.vn.video[s].audioBitrate=c}pe(n.Ve)&&n.vn.audio.length>0&&(n.Ve.audioStreams
=n.vn.audio),n.mr(n.vn.video,n.vn.audio,n.It.key_info),n.dr(t)||n.resetBrain(!
0),n.fire(Ti.STREAMS_LOADED,n.vn),i()}))},i.br=function(t,n)
{this.sorcerer&&this.sorcerer.destroy(),this.sorcerer=new Er(t,n),this.
$.src=URL.createObjectURL(this.sorcerer.mediaSource),this.successfulSegments=this.s
orcerer.getSuccessfulSegments(),this.failedSegments=this.sorcerer.getFailedSegments
(),this.Be()},i.Be=function(){var t=this,n=arguments.length>0&&void 0!
==arguments[0]&&arguments[0];this.wr(500),clearTimeout(this.Ue),this.Ue=setTimeout(
(function(){t.wr(5e3)}),6e4),n&&this.ar()},i.wr=function(t){var
n=this;clearInterval(this.Fe),this.Fe=setInterval((function()
{n.ar()}),t)},i.qe=function(){var t=arguments.length>0&&void 0!
==arguments[0]&&arguments[0],n=t?1/0:0;for(var i in
this.vn)this.vn[i].length&&(n=Math[t?"min":"max"](n,this.vn[i][0].duration));return
n},i.qt=function(t){var n=this;return this.We(t).then((function(){var
i=n.video&&n.video.metadata.percentShown?
n.video.metadata.percentShown:null,e=n.Ve.filterStreams(n.vn.video,n.
$.clientWidth,n.$.clientHeight,i).length-
1,r=n.vn.video[0];n.Le.length&&(r=n.vn.video[n.Le[0]]),void 0!
==n.pe&&e<=n.vn.video.indexOf(t.video[n.pe])&&(r=n.vn.video[e]),n.br(n.$,
{duration:n.qe(),fetcherTimeout:8e3,fetcherRetryAbortErrors:!
1}),n.sorcerer.on("srcnotsupported",(function(){n.fire(Ti.SCANNER_ERROR,
{reason:"this codec is not supported for mediasource playback"})}));var
o=n.vn.video.indexOf(r),u=function(t){n.vn[t].forEach((function(i,e){var
r=n.gr(e,"init",t);n.yr(e,t)&&n.vn[t]
[e].init_segment_range&&(r={url:r,byteRange:n._r(e,"init",t)}),n.sorcerer.addStream
("".concat(i.mime_type,'; codecs="').concat(n.vn[t][e].codecs,'"'),r)}))};for(var a
in
n.vn)u(a);n.sorcerer.video.switchTo(o),n.sorcerer.on("queued",n.kr.bind(n)),n.sorce
rer.on("downloadabort",n.Er.bind(n)),n.sorcerer.on("appendbufferend",n.zi.bind(n)),
n.sorcerer.on("downloadstart",n.qi.bind(n)),n.sorcerer.on("downloadend",n.Wi.bind(n
)),n.sorcerer.on("downloaderror",n.Tr.bind(n)),n.sorcerer.on("downloadtimeout",n.Gi
.bind(n)),n.sorcerer.on("quotaexceedederror",n.Sr.bind(n)),n.sorcerer.video.on("str
eamchange",n.xr.bind(n)),n.sorcerer.video.on("streamchangestart",n.Ar.bind(n)),n.so
rcerer.mediaSource.addEventListener("sourceended",(function()
{n.fire(_i.PROGRESS)}))}))},i.pr=function(t){var n=t.slice(0);return
n.sort((function(t,n){var
i=t.width*t.height*t.bitrate,e=n.width*n.height*n.bitrate;return
t.width===n.width&&t.height===n.height?t.framerate-n.framerate:i-
e})),n},i.yr=function(t,n){return!!this.vn[n]
[t].segments[0].range},i._r=function(t,n,i){return"init"===n?this.vn[i]
[t].init_segment_range:this.vn[i][t].segments[n].range},i.Mr=function(t,n){var
i=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:"video",e="init"===n;if(e)return 0;var r=this.vn[i]
[t].segments[n].start;return r},i.gr=function(t,n){var i=arguments.length>2&&void
0!==arguments[2]?arguments[2]:"video",e="init"===n;if(e&&!this.vn[i]
[t].init_segment_range&&-1===this.vn[i][t].init_segment.indexOf(".")){var
r=this.vn[i][t].init_segment;return ce(r)}var o=this.ke,u=this.It.base_url&&-1!
==this.It.base_url.indexOf("//");return u&&(o=this.It.base_url),this.It.base_url&&!
u&&(o+=this.It.base_url),this.vn[i][t].base_url&&(o+=this.vn[i]
[t].base_url),this.yr(t,i)?o:"init"===n?o+=this.vn[i][t].init_segment:(this.vn[i]
[t].segments[n].url&&(o+=this.vn[i][t].segments[n].url),o)},i.Cr=function(t,n,i)
{return"".concat(t,":").concat(n,":").concat(i)},i.Rr=function(t,n,i){return
n===this.vn[i][t].segments.length-1},i.Ir=function(t,n){var i=[],e=this.be[t];if(!
e)return i;for(var r=0;r<e.length;r+
+)this.me.has(this.Cr(e[r],t,n))&&i.push(e[r]);return
i},i.getCurrentStream=function(){var t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:"video";return this.le(0,t)},i.le=function(){var
t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:"video";return void 0!
==this.sorcerer&&(t=this.sorcerer[n].activeStreamIndex),this.vn[n]
[t]},i.He=function(t,n){var
i=this,e=this.vn.video,o=this.video&&this.video.metadata.percentShown?
this.video.metadata.percentShown:null;if(0===(e=this.Ve.filterStreams(e,this.
$.clientWidth,this.$.clientHeight,o)).length)return r.resolve(!
1);if(this.De.video&&!pe(this.Ve))return r.resolve(!1);var u=e[e.length-1];if(u.id!
==this.Ee){this.Ee=u.id;var
a={index:this.vn.video.indexOf(u),streams:this.vn.video};this.fire(Ti.STREAM_TARGET
_CHANGE,a)}var s=this.le();return this.Ve.shouldPowerUp(e,s,t).then((function(t)
{return!1===t?i.Ve.shouldPowerDown(e,s).then((function(t){return!1===t?
t:i.vn.video.indexOf(e[t])})):i.vn.video.indexOf(e[t])}))},i.Or=function(){var
t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"video";this.He(!
1,n).then((function(i){"audio"===n&&(!
1===i&&(i=t.sorcerer.video.activeStreamIndex),i=t.Ve.getAudioIndexFromVideo(t.vn.vi
deo,t.vn.audio,i),t.sorcerer.audio.activeStreamIndex===i&&(i=!1));var e=!1;!1!
==i&&(e=i>t.sorcerer[n].activeStreamIndex,t.De[n]=!
0,t.sorcerer[n].switchTo(i).then((function(){t.De[n]=!
1})).catch(console.error));for(var
r=e,o=t.Ve.getSegmentsToLoad(r,n,t.le()),u=t.sorcerer[n].activeStreamIndex,a=functi
on(i){var
e=t.gr(u,o[i],n),r=t.Ir(o[i],n);if(r.length>1)return"continue";if(1===r.length&&u<=
r[0])return"continue";var
a=t.Rr(u,o[i],n),s={stream:u,segment:o[i],type:n},c=t.sorcerer[n].streams[u],l=e;t.
yr(u,n)&&(l={url:l,byteRange:t._r(u,o[i],n)});var
f=t.Mr(u,o[i],n),h="video"===n,d=null;0===u&&"video"===n&&(d=16e3);var
v=null;try{v=t.vn[n][u].segments[o[i]].size}catch(t){}c.addSegment(l,
{identifier:s,isFinalSegment:a,priority:f,includeWithBandwidthChecks:h,timeout:d,si
ze:v}).catch((function(t){if(!(t instanceof hr||t instanceof Oe||t instanceof
De))throw t}))},s=0;s<o.length;s++)a(s)})).catch(console.error)},i.sr=function()
{var t=this,n=function(n){if(0===t.vn[n].length)return"continue";var
i=0,e=t.Ve.getSegmentsToLoad(!1,n,t.le());e.length>0&&(i=e[0]);var
r=t.Ne;"audio"===n&&(r=t.Ve.getAudioIndexFromVideo(t.vn.video,t.vn.audio,t.Ne));var
o=t.Cr(r,i,n);if(t.me.has(o))return"continue";var
u=t.gr(r,i,n),a=t.Rr(r,i,n),s=t.sorcerer[n].streams[r],c={stream:r,segment:i,type:n
},l=u;t.yr(r,n)&&(l={url:l,byteRange:t._r(r,i,n)}),s.addSegment(l,
{identifier:c,isFinalSegment:a,loadOnly:!0,priority:0}).catch((function(t){if(!(t
instanceof hr||t instanceof Oe||t instanceof De))throw t}))};for(var i in
this.vn)n(i)},i.Je=function(){var t=this;return this._e&&this._e.then((function()
{for(var n in t.vn)t.vn[n].length>0&&t.Or(n)}))},i.kr=function(t)
{this.me.add(this.Cr(t.stream,t.segment,t.type)),this.be[t.segment]||
(this.be[t.segment]=[]),-
1===this.be[t.segment].indexOf(t.stream)&&this.be[t.segment].push(t.stream)},i.jr=f
unction(t){var n=this;(this.be[t.segment]||[]).forEach((function(i)
{n.me.delete(n.Cr(i,t.segment,t.type))}))},i.Er=function(t)
{this.be[t.segment]&&this.jr(t)},i.zi=function(t){this.fire(Ti.APPEND_BUFFER_END,
{identifier:t}),this.Be(),this.Ce&&t.stream===this.Me&&(this.Ce=!
1,this.Re=this.vn.video[t.stream].segments[t.segment].start),this.be[t.segment]&&th
is.jr(t);var n=this.Ve.canPlayFromTimeInStream(this.Te,this.le());null!
==this.Te&&this.Se&&n&&(this.Se(this.Te),this.Se=null),this.we&&this.we.onSegmentAp
pended()},i.qi=function(t){this.fire(Ti.DOWNLOAD_START,
{identifier:t})},i.Wi=function(t,n){this.fire(Ti.DOWNLOAD_END,
{identifier:t,data:n})},i.Tr=function(t,n){this.jr(t);var
i=Ti.DOWNLOAD_ERROR;410===n&&(i=Ti.MEDIA_URL_EXPIRED),this.fire(i,
{identifier:t,status:n})},i.Gi=function(t,n){this.fire(Ti.DOWNLOAD_TIMEOUT,
{identifier:t,data:n}),this.be[t.segment]&&this.jr(t),"video"===t.type?
this.De.video=!1:"audio"===t.type&&(this.De.audio=!1)},i.Sr=function(t)
{this.fire(Ti.QUOTA_EXCEEDED_ERROR,{buffered:t})},i.Ar=function(t,n){var
i={previousStreamIndex:this.It.video.indexOf(this.vn.video[t]),index:this.It.video.
indexOf(this.vn.video[n]),streams:this.It.video};this.fire(Ti.STREAM_CHANGE_START,i
)},i.xr=function(t){t>this.Me&&this.currentTime>0&&(this.Ce=!0),this.Me=t;var
n={index:this.It.video.indexOf(this.vn.video[t]),streams:this.It.video};this.fire(T
i.STREAM_CHANGE,n)},i.mr=function(){var t=this,n=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
{},r=this.nt.drmHandler;if(r){var o={audio:i.map((function(t)
{return"".concat(t.mime_type,';codecs="').concat(t.codecs,'"')})),video:n.map((func
tion(t)
{return"".concat(t.mime_type,';codecs="').concat(t.codecs,'"')}))};r.init(this,o,e)
,r.setFallbackCallback((function(){return t.pause()}))}},H(n,
[{key:"preload",get:function(){return this.at},set:function(t)
{this.lr(this.at,t),this.at=t}},{key:"videoElement",get:function(){return this.$}},
{key:"videoWidth",get:function(){var t=this.le();return t?t.width:this.
$.videoWidth}},{key:"videoHeight",get:function(){var t=this.le();return t?
t.height:this.$.videoHeight}},{key:"restrictedStreamIndexes",get:function(){return
this.Le},set:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:[];this.Le.join(",")!
==n.join(",")&&(this.Le=n,this._e.then((function(){return
t.lockStreamIndexes()})).catch(console.error))}},{key:"currentTime",get:function()
{return null!==this.Te?this.Te:this.$.currentTime},set:function(t){(this.ye||0!
==t)&&this.seekToTime(t)}},{key:"downloadSpeed",get:function(){return this.Pe}},
{key:"brainDebug",get:function(){var
t=this.sorcerer&&this.Ve&&this.Ve.getCurrentSpeed?
this.Ve.getCurrentSpeed():null,n=this.sorcerer&&this.sorcerer.getResponseSpeeds?
this.sorcerer.getResponseSpeeds():null;return{currentSpeed:t,responseSpeeds:n=n?
n.slice(-20):[]}}},{key:"isLowerProfileAvailable",get:function(){return
this.sorcerer?this.sorcerer.video.activeStreamIndex>0:null}}]),n}(xe),Cr=function()
{function t(t){this.Lr=t,this.Dr=0,this.Pr=function(t,n){var i=0;return function()
{var n=Date.now();n-i>=100&&(t(),i=n)}}(this.Nr.bind(this)),this.Fr()}var
n=t.prototype;return n.destroy=function(){this.Ur()},n.Fr=function()
{this.Lr.on(_i.TIME_UPDATE,this.Pr)},n.Ur=function()
{this.Lr.off(_i.TIME_UPDATE,this.Pr)},n.Nr=function(){var
t=this.Lr.videoElement,n=this.Lr.getCurrentStream();if(t&&n)
{this.Dr=t.currentTime;var i=this.Vr();if(null!
==i&&(this.Br=i,this.Lr.lowLatencyMode&&!Wi.browser.ie&&!Wi.browser.safari)){var
e=this.Lr.presentationDelay;if(null!==e){var r=i-
e;if(r<e+n.targetDuration&&Math.abs(r)>.05&&this.Hr()>1){var
o=Math.round(2/(1+Math.exp(-.75*r-
this.edgeStalled))*20)/20;t.playbackRate=Math.min(1.02,Math.max(.98,o))}else 1!
==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}}}},n.qr=function(){var
t=this.Lr.getCurrentStream();if(null===t)return null;var
n=t.segments[0],i=this.Lr.videoElement.buffered.length&&(null==n?void
0:n.start);return n&&t.hasProgramDateTime&&i?i+(Date.now()-
n.programDateTime)/1e3:t.edge},n.Vr=function(){var t=this.qr();return null===t?
null:t-this.Dr},n.Hr=function(){var
t=this.Lr.videoElement,n=this.Lr.getCurrentStream();if(!t||!n)return 0;var
i=t.buffered.length;return i?t.buffered.end(i-1):n.edge-this.Dr},H(t,
[{key:"latency",get:function(){return this.Br}},
{key:"liveSyncPosition",get:function(){var
t=this.qr(),n=this.Lr.presentationDelay,i=this.Lr.getCurrentStream();return
null===t||null===n||null===i?0:Math.min(i.edge,t-n-this.edgeStalled)}},
{key:"edgeStalled",get:function(){var
t=this.Lr.getCurrentStream();if(null===t)return 0;var
n=3*(this.Lr.lowLatencyMode&&t.partTargetDuration||t.targetDuration);return
Math.max(t.age-n,0)}}]),t}(),Rr=[1,2,5],Ir=function(t){function n(n){var
i,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};return(i=t.call(this,n,e)||
this).Wr=.4,i.zr=.6,i.Gr=i.tt.tests&&i.tt.tests.live_volatility&&i.tt.tests.live_vo
latility.group,i.consecutiveStreamIndex={},i.isNewPlayback=!0,i}G(n,t),H(n,
[{key:"displayName",get:function(){return"Live"}}]);var i=n.prototype;return
i.optimalStreamIndex=function(t,n){var
i;if(this.isNewPlayback&&(null==(i=this.scanner.sorcerer)?void
0:i.getResponseSpeeds().length)>=2&&(this.isNewPlayback=!1),1===t.length)return
0;if(this.isNewPlayback){for(var
e=0,r=0,o=this.scanner.videoElement.clientHeight,u=[],a=0;a<t.length;a++){var
s=t[a].height;u.push(s),s<o&&s>r&&(e=a,r=t[a].height)}return Math.max(0,e-1)}var
c=this.getCurrentSpeed(),l=this.scanner.sorcerer.getVolatilityScaler(5);l||
(l=.3);var
f=n,h=n;if(this.Gr)for(var d=0;d<t.length;d+
+)c*this.Wr*l>t[d].bandwidth&&(f=d),c*this.zr*l>t[d].bandwidth&&(h=d);else for(var
v=0;v<t.length;v+
+)c*this.Wr>t[v].bandwidth&&(f=v),c*this.zr>t[v].bandwidth&&(h=v);var p=n<f?
f:h;this.Kr(p),this.consecutiveStreamIndex[p]++;var
m=this.scanner.lowLatencyMode?.5:1.5,b=this.scanner.segmentLength*m,w=this.scanner.
videoElement,g=w.buffered;return g&&0!==g.length?g.end(g.length-1)-w.currentTime<b?
0!==n?n-1:0:this.consecutiveStreamIndex[p]>2&&p!==n?
p:n:0},i.getCurrentSpeed=function(){var t;return null==(t=this.scanner.sorcerer)?
void 0:t.getCurrentSpeed({type:"average",howMany:5,weights:Rr})},i.Kr=function(t)
{for(var n in this.consecutiveStreamIndex[t]||
(this.consecutiveStreamIndex[t]=0),this.consecutiveStreamIndex)this.consecutiveStre
amIndex.hasOwnProperty(n)&&parseInt(n,10)!
==t&&(this.consecutiveStreamIndex[n]=0)},i.getAvailabilityStart=function(t){return
this.Yr(t.edge)},i.getAvailabilityEnd=function(t){return
this.Jr(t.edge)},i.getSegmentsToLoad=function(t,n,i){var
e,r,o,u=this,a=this.scanner,s=a.currentTime,c=a.sorcerer,l=a.bufferTarget,f=null==(
e=c[n])||null==(r=e.sourceBuffer)?void 0:r.buffered,h=(null==f?void 0:f.length)?
f.start(f.length-1):0,d=pt(Math.max(s,h),f);if(!t&&d>=l)return[];var
v=this.Yr(i.edge),p=this.Jr(i.edge),m=this.scanner.lowLatencyMode&&(null==(o=i.part
s)?void 0:o.length),b=(m?i.parts:i.segments).filter((function(n){return!!
n.uri&&(t||!u.scanner.isSegmentAdded(n))&&!(n.end<v||n.start>p)}));return
m&&b.forEach((function(t,n){for(;t=t.dependentOn;)b.includes(t)||
u.scanner.isStreamSegmentAdded(t)||
b.splice(n,0,t)})),c[n].activeStreamIndex,b},i.Yr=function(t){var n=t-this.
$r();return Math.max(0,n)},i.Jr=function(t){var n=this.
$r(),i=this.scanner.bufferTarget,e=t-Math.max(0,n-i);return Math.max(0,e)},i.
$r=function(){return this.scanner.presentationDelay||
this.scanner.manifest.presentationDelay},n}
(Sr),Or=["disabled","hidden","showing"],jr=["subtitles","captions","descriptions","
chapters","metadata"],Lr=["ar","fa","he","iw","ku","ps","sd","ur","yi"],Dr=new
P,Pr=new P,TelecineTextTrack=function(){function TelecineTextTrack(t,n){var
i=t.kind,e=t.src,r=void 0===e?null:e,o=t.label,u=void
0===o?"":o,a=t.language,s=void 0===a?"":a,c=t.id,l=void 0===c?ae():c;if(-
1===jr.indexOf(i))throw we(12,"SYNTAX_ERR","Syntax
Error");rt(this),Object.defineProperties(this,{kind:{value:i,enumerable:!0},label:
{value:u,enumerable:!0},language:{value:s,enumerable:!0},id:
{value:"".concat(l),enumerable:!0},rtl:{value:-1!
==Lr.indexOf(s.substr(0,2)),enumerable:!0}}),this.video=n,this.src=r,this.dt=!
1,Dr.set(this,"disabled")}return
TelecineTextTrack.prototype.dispatchEvent=function(t){this.fire(t,
{target:this})},H(TelecineTextTrack,[{key:"mode",get:function(){return
Dr.get(this)},set:function(t){if(Or.indexOf(t)>-1){if(this.dt=!
0,Dr.get(this)===t)return;Dr.set(this,t),this.video.currentScanner&&this.video.curr
entScanner.setModeForTrack(this,t),this.dispatchEvent("modechange")}}},
{key:"src",get:function(){return Pr.get(this)},set:function(t)
{Pr.set(this,t),this.video.fire(Ti.TEXT_SRC_UPDATE,this)}},
{key:"cues",get:function(){return this.video.currentScanner?
this.video.currentScanner.getCuesForTrack(this):[]}},
{key:"activeCues",get:function(){return this.video.currentScanner?
this.video.currentScanner.getActiveCuesForTrack(this):[]}}]),TelecineTextTrack}
();function Nr(t){var n=/^(?:(\d{2,}):)?(\d{2}):(\d{2})[,.](\d{3})$/.exec(t);if(!
n)return-1;var i=parseInt(n[4],10)/1e3;return
i+=parseInt(n[3],10),n[2]&&(i+=60*parseInt(n[2],10)),n[1]&&(i+=60*parseInt(n[1],10)
*60),i}function Fr(t,n,i){return i?n?n(t):t:(t&&t.then||(t=r.resolve(t)),n?
t.then(n):t)}function Ur(t,n){try{var i=t()}catch(t){return n(t)}return i&&i.then?
i.then(void 0,n):i}function Vr(t,n){return t&&t.then?t.then(n):n(t)}var
Br=Wi.browser.ie||Wi.browser.edge?.5:.2;function Hr(){}function qr(t){return
function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{return
r.resolve(t.apply(this,n))}catch(t){return r.reject(t)}}}function Wr(t,n){if(!
n)return t&&t.then?t.then(Hr):r.resolve()}var zr=function(t){function n(n){var
i,e,r,o,u,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
(u=t.call(this,n,a)||this).Xr=!1,u.Zr=!1,u.Qr=2e3,u.to=1e4,u.reset();var
s=a.lowLatencyMode?5:12;return u.bufferTarget=a.bufferTarget||
s,u.presentationDelay=a.presentationDelay||
s,u.lowLatencyMode=a.lowLatencyMode,u.no=null==(i=u.tt.tests)||
null==(e=i.live_switch)?void 0:e.group,u.io=null==(r=u.tt.tests)||
null==(o=r.llhls_timeout)?void 0:o.group,window.addEventListener("online",
(function(){u.play()})),u}G(n,t),H(n,null,[{key:"displayName",get:function()
{return"HLSLiveScanner"}},{key:"supported",get:function(){return"undefined"!=typeof
MediaSource&&MediaSource.isTypeSupported}},
{key:"supportedVideoTypes",get:function(){return["application/x-mpegURL"]}},
{key:"supportsPlaybackRate",get:function(){return!1}}]);var i=n.prototype;return
i.deactivate=function()
{t.prototype.deactivate.call(this),this.reset()},i.reset=function(){var
t,n,i;null==(t=this.an)||t.destroy(),null==(n=this.eo)||
n.stop(),null==(i=this.ro)||i.destroy(),this.oo=new
dt,this.an=null,this.vn={},this.vn.video=[],this.vn.audio=[],this.Me=0,this.uo=!
1,this.ao=!1,this.so=0,this.co=0,this.lo=-1,this.fo=new
Ir(this,this.tt),this.ro=new
Cr(this),this.Le=[],this.De={},this.ho={},this.do={}},i.endLive=function(){var
n;this.uo=!1,null==(n=this.eo)||
n.stop(),this.an&&(this.an.abortFetches(),this.an.endOfStream()),this.ao=!
0,t.prototype.deactivate.call(this),this.fire(_i.ENDED)},i.vo=function(){this.uo||
(this.uo=!0,this.fire(Si.STREAM_ONLINE))},i.po=function(){this.uo&&(this.uo=!
1,this.fire(Si.STREAM_OFFLINE))},i.mo=function(t){t?
this.vo():this.po()},i.bo=function(t){try{var
n=this;if(n.ao)return;n.eo&&(n.eo.stop(),n.eo.off());var i=[ft("module/media-
manifest.js")];return
n.video.metadata.p2pReady&&i.push(n.video.metadata.p2pReady),Fr(r.allSettled(i),
(function(i){var e=Q(i,1)
[0].value,r=e.M3U8Loader,o=e.PLAYLIST_UPDATE,u=e.PLAYLIST_ERROR,a=e.convertTsCodecs
;return n.eo=new
r,n.eo.lowLatencyMode=n.lowLatencyMode,n.eo.on(o,n.wo.bind(n)),n.eo.on(u,
(function(t){n.po()})),Vr(Ur((function(){var
i=n.video.metadata.playlistRefreshUrl;return Fr(n.eo.start(t,i),(function(t)
{n.It=t,n.vo()}))}),(function(t){throw n.po(),n.endLive(),t})),(function(t)
{n.vn.video=function(t){return t.filter((function(n){return n.codecs.split(".")
[0]===t[0].codecs.split(".")[0]}))}(function(t){var n=t.slice(0);return
n.sort((function(t,n){var
i=t.width*t.height*t.bitrate,e=n.width*n.height*n.bitrate;return
t.width===n.width&&t.height===n.height?t.framerate-n.framerate:i-e})),n}
(n.It.video)),n.vn.audio=function(t){return t.filter((function(t,n,i){return
i.indexOf(t)===n}))}(function(t,n){return t.reduce((function(t,n,i,e){return
t.concat(function(t){return t.audio}(n))}),[])}(n.vn.video));var i=n.He("video",!
0),e=n.vn.video[i];return Fr(n.eo.switchTo(n.It.video.indexOf(e)),(function(){var
t,e;null==(t=n.an)||t.destroy(),n.an=new Er(n.$,{fetcherRetryAbortErrors:!
1,fetcherTimeout:8e3}),n.vn.video.forEach((function(t)
{n.an.addStream(a(he(n.It.activeVideo.mimeType,t.codecs)),t.initSegment)})),n.vn.au
dio.forEach((function(t)
{n.an.addStream(a(he(n.It.activeAudio.mimeType,t.codecs)),t.initSegment)})),n.fire(
Ti.STREAMS_LOADED,n.vn),n.manifest.captions&&n.manifest.captions.length>0&&(n.manif
est.captions.forEach(n.yo.bind(n)),n.fire(Ti.TEXT_TRACKS_AVAILABLE)),n._o(),n.an.vi
deo.switchTo(i,!1),n.vn.audio.length&&(null==(e=n.an.audio)||
e.switchTo(n.He("audio",!0),!1))}))}))}))}catch(t){return
r.reject(t)}},i.ko=function(){try{var t=this;return function(t){if(t&&t.then)return
t.then(Hr)}(Ur((function(){return Fr(t.eo.update(),(function(){t.vo()}))}),
(function(){t.po()})))}catch(t){return r.reject(t)}},i.Eo=function(t){var
n;null==(n=this.an)||n.destroy(),this.an=new Er(t,{fetcherRetryAbortErrors:!
1,fetcherTimeout:8e3})},i._o=function()
{this.an.video.on("streamchange",this.xr.bind(this)),this.an.video.on("streamchange
start",this.Ar.bind(this)),this.an.on("downloadend",this.Wi.bind(this)),this.an.on(
"downloadtimeout",this.Gi.bind(this)),this.an.on("downloadabort",this.To.bind(this)
),this.an.on("appendbufferend",this.So.bind(this))},i.Wi=function(t,n){if(!t||!
t.isInitSegmentRequest){var i=this.le();n.extraContext={liveAvail:
{start:this.fo.getAvailabilityStart(i),end:this.fo.getAvailabilityEnd(i)}},this.fir
e(Ti.DOWNLOAD_END,{identifier:t,data:n})}},i.Gi=function(t,n)
{t&&t.isInitSegmentRequest||(this.Cr(t),this.xo(t),this.De[t.type]=!
1,this.fire(Ti.DOWNLOAD_TIMEOUT,{identifier:t,data:n}))},i.To=function(t)
{t&&t.isInitSegmentRequest||(this.Cr(t),this.xo(t))},i.Ar=function(t,n){var
i={previousStreamIndex:this.vn.video.indexOf(this.vn.video[t]),index:this.vn.video.
indexOf(this.vn.video[n]),streams:this.vn.video};this.fire(Ti.STREAM_CHANGE_START,i
)},i.xr=function(t){this.fire(Ti.STREAM_CHANGE,
{index:t,streams:this.vn.video})},i.So=function(t){var
n=t.type,i=t.stream,e=this.sorcerer[n].sourceBuffer.buffered,r=this.Ao(t);r&&e.leng
th&&(this.vn[n][i].playlist.timeOffset=e.end(e.length-1)-(r.end-
r.timeOffset))},i.Cr=function(t){var
n=t.type,i=t.segment,e=t.part;return"".concat(n,"_").concat(i,"_").concat(e)},i.Ao=
function(t){var n=t.type,i=t.stream,e=t.segment,r=t.part,o=this.vn[n]
[i].getSegmentBySN(e);return(null==o?void 0:o.getPart(r))||o},i.xo=function(t)
{if(t.part>0){var n=z(z({},t),{},{part:t.part-1});this.xo(n)}var
i=this.Cr(t);delete this.ho[i]},i.isSegmentAdded=function(t){return!!
this.ho[this.Cr(t)]},i.isStreamSegmentAdded=function(t){var
n=this.Cr(t),i=this.an[t.type].activeStreamIndex;return!!
this.ho[n]&&this.ho[n].stream===i},i.wo=function(t){try{var n,i=t.type;return
this.fire(Ti.STREAM_UPDATED,t),"subtitles"===i?
void(this.Zr&&(null==(n=this.manifest.captions)?void 0:n.length)>0&&this.Mo()):
(this.Or(i),this.mo(this.Co(i)||!this.Ro()),this.Io(),(this.lowLatencyMode||
this.video.metadata.p2pReady)&&this.Oo(),Fr())}catch(t){return
r.reject(t)}},i.yo=function(t,n){var
i=t.label,e=t.language;if(!this.jo){var r=new
TelecineTextTrack({label:i,id:n,kind:"captions",language:e},this.nt);this.nt.textTr
acks=re([r]),this.jo=this.addTextTrack(r)}},i.Mo=function(){try{var t=this;return
Fr(t.oo,(function()
{t.manifest.captions&&t.manifest.captions[0].segments.forEach(qr((function(n){var
i="".concat(n.type,"_").concat(n.mediaSequenceNumber);if(!t.do[i])return t.do[i]=!
0,Fr(Xe(n.url).text(),(function(n){var i=function(t){var n=0,i=t.split(/(?:
(?:\r\n|\n){2,})/),e=[],r=null;do{0===n&&/^\uFEFF?WEBVTT(?: .*)?/.test(i[n])&&n++,
(r=/^(?:(.*)(?:\r\n|\n))?([\d:,.]+) --> ([\d:,.]+)(.*)?(?:\r\n|\n)
([\s\S]*)/.exec(i[n]))&&e.push({startTime:Nr(r[2]),endTime:Nr(r[3]),text:r[5]}),n+
+}while(n<i.length);return e}(n),e=function(t){var n=t.match(/=MPEGTS:
(\d+),/);return(n&&n[1]||0)/9e4}(n);i.forEach((function(n)
{n.startTime=e+n.startTime,n.endTime=e+n.endTime;var i=new(window.VTTCue||
window.TextTrackCue)
(n.startTime,n.endTime,n.text);t.jo.addCue(i)}))}))})))}))}catch(t){return
r.reject(t)}},i.Co=function(t){var n,i=this.le(t),e=3*(this.lowLatencyMode?
3:1);return(null==(n=i.playlist)?void 0:n.misses)<e},i.Je=function(){try{var
t=this;return Fr(t.oo,(function(){for(var n in
t.vn)t.vn[n].length>0&&t.Or(n)}))}catch(t){return r.reject(t)}},i.Or=function(t)
{try{var n=this;return Fr(n.oo,(function(){if(!n.no&&!n.lowLatencyMode||!n.De[t])
{var i,e=n.He(t);return Gr((function(){if(e>=0&&e!
==n.sorcerer[t].activeStreamIndex)return
i=e>n.sorcerer[t].activeStreamIndex,n.De[t]=!0,Gr((function(){if("video"===t){var
i=n.vn.video[e],r=n.It.video.indexOf(i);return Wr(n.eo.switchTo(r))}}),(function()
{n.sorcerer[t].switchTo(e).then((function(){n.De[t]=!
1})).catch(console.error)}))}),(function(){var e=n.lowLatencyMode&&void 0!
==i,r=n.an[t].activeStreamIndex,o=n.le(t,r),u=n.fo.getSegmentsToLoad(e,t,o),a=n.Lo(
);u.forEach((function(i){var
e=n.Cr(i),u={type:t,stream:r,segment:i.segment,part:i.part},s="video"===t&&!
i.hint,c=a;if(i.hint&&n.Xr&&i.start>n.currentTime){var l=1e3*(i.start-
n.currentTime);c=Math.min(8e3,l+a)}var
f=o.bitrate/8*i.duration;n.sorcerer[t].streams[r].addSegment(i.url,
{identifier:u,includeWithBandwidthChecks:s,priority:i.programDateTime,excludeConnec
tTime:n.lowLatencyMode,timeout:n.io||n.lowLatencyMode?c:8e3,size:n.io||
n.lowLatencyMode?f:void 0}).catch((function(t)
{n.xo(u)})),n.ho[e]=u}))}))}}))}catch(t){return r.reject(t)}},i.He=function(t){var
n,i,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.De[t])return-
1;if("audio"===t)return this.vn.audio.indexOf(this.It.activeAudio);if(!
e&&ue(this.so)<this.Qr)return this.Me;this.so=oe();var r=null==(n=this.video)||
null==(i=n.metadata)?void
0:i.percentShown,o=this.fo.filterStreams(this.vn.video,this.$.clientWidth,this.
$.clientHeight,r);if(0===o.length)return this.Me;var
u=this.fo.optimalStreamIndex(o,this.Me),a=o[u],s=this.vn.video.indexOf(a);if(s>=0&&
(e||s!==this.Me)){if(s-this.Me>0&&this.co>0){if(ue(this.co)<this.to)return
this.Me}else this.co=oe();var c={index:s,streams:this.vn.video};return
this.fire(Ti.STREAM_TARGET_CHANGE,c),this.Me=s,s}return
this.Me},i.getCurrentStream=function(){var t=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:"video";return this.le(t)},i.le=function(){var
t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:"video",n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:0;return void 0!==this.an&&null!
==this.an&&(n=this.an[t].activeStreamIndex),this.vn[t][n]},i.Oo=function(){if(this.
$.currentTime===this.lo&&oe()-this.Do>=1e3&&this.Po()){var t="Jumping forward
".concat(.1,"s")+" because of stall at time of ".concat(this.
$.currentTime);this.fire(Si.STALL_JUMP,{msg:t}),this.
$.currentTime+=.1}this.lo=this.$.currentTime,this.Do=oe()},i.Po=function(){return
0!==this.$.readyState&&!!this.$.buffered.length&&!this.$.paused&&this.No(this.
$.buffered,this.$.currentTime)},i.No=function(t,n){for(var i=0;i<t.length;i++)if(!
(n<t.start(i)-.1||n>t.end(i)-.5))return!0;return!1},i.Io=function(){var
t=this.buffered;if(t.length){var n,i=t.length,e=this.
$.currentTime;try{n=function(t,n){if(!t||!t.length)return
null;if(1===t.length&&t.end(0)-t.start(0)<1e-6)return null;for(var
i,e=0;e<t.length;e++)if(t.start(e)>n&&(0===e||t.end(e-1)-n<=.5)){i=e;break}return
i>=0?i:null}(t,e)}catch(t){throw DOMException,t}if(null!==n&&0!==this.
$.readyState&&!(this.$.paused||i<=n)){var r,o;try{r=t.start(n),o=t.end(i-
1)}catch(t){throw DOMException,t}var u=r-e,a=o-r,s=this.lowLatencyMode?
1:2;if(a>0&&a<=this.segmentLength*s){var c="Preventing jump too close to buffered
end time."+" Would have jumped to: ".concat(r,".")+" Last buffered end time
".concat(o,".");this.fire(Si.BUFFER_GAP_JUMP_PREVENT,{msg:c})}else{if(0===n){var
l="Jumping forward ".concat(u)+" seconds because of gap before start time of
".concat(r);this.fire(Si.BUFFER_GAP_JUMP,{msg:l})}else{var f="Jumping forward
".concat(u," seconds because of gap starting at")+" ".concat(t.end(n-1)," and
ending at ").concat(r);this.fire(Si.BUFFER_GAP_JUMP,{msg:f})}this.
$.currentTime=r+.1}}}},i.Ro=function(){var t=this.buffered;return!!
(t&&t.length&&this.$.currentTime+Br>t.end(t.length-1))},i.setVideoSrc=function(t)
{try{var n=this;return Fr(n.ze(n.at),(function(){return Fr(n.bo(t),(function(){n.
$.src=URL.createObjectURL(n.an.mediaSource),n.oo.resolve()}))}))}catch(t){return
r.reject(t)}},i.ze=function(t){try{return this.Fo=new dt,"none"===t&&this.paused||
this.Fo.resolve(),this.Fo}catch(t){return
r.reject(t)}},i.getBitrateAtTime=function(t,n){if(!this.an)return 0;var
i=this.an.streamIndexAtTime(t,n);return this.vn[n][i]?this.vn[n]
[i].bandwidth:0},i.onprogress=function(){this.Io()},i.ondurationchange=function()
{this.Io()},i.ontimeupdate=function(){if(this.an)
{t.prototype.ontimeupdate.call(this),this.fire(Ti.DROPPED_FRAMES,this.an.getDropped
FrameTotal());var n=this.le();if(n){var
i={speed:this.fo.getCurrentSpeed(),bitrate:n.bitrate,speeds:this.an.getResponseSpee
ds()};this.fire(Ti.BANDWIDTH,i)}!this.uo&&this.Ro()&&this.fire(Si.STREAM_OFFLINE),!
this.lowLatencyMode&&ue(this.so)>this.Qr&&this.Je()}},i.seekToTime=function()
{},i.onpause=function(){var t;null==(t=this.eo)||t.stop()},i.onplay=function(){var
t;this.Xr&&(null==(t=this.eo)||t.update())},i.pause=function(){var
n;t.prototype.pause.call(this),null==(n=this.eo)||
n.stop(),this.an&&(this.an.abortFetches(),this.ho={},this.an.removeBuffer().catch((
function(){})))},i.play=function(){var n=this;return
t.prototype.play.call(this,qr((function(){return n.Fo.resolve(),Gr((function()
{if(n.Xr)return n.ho={},Vr(Ur((function(){return Wr(n.an.removeBuffer())}),
(function(t){})),(function(){return(n.no||n.lowLatencyMode)&&(n.De.audio=!
1,n.De.video=!1),Wr(n.ko())}))}),(function(){return Fr(n.oo,(function(){return
n.Je(),Fr(n.Uo(),(function(){var t=Math.max(n.ro.liveSyncPosition,n.
$.buffered.start(0));n.currentTime=t,n.Xr=!0}))}))}))})))},i.Uo=function(){var
t=this;return new r((function(n){t.an.on("appendbufferend",(function i()
{t.buffered.length&&(t.an.off("appendbufferend",i),n())}))}))},i.Lo=function()
{return
this.fo.getSegmentRelativeTimeout(this.vn.video,this.le("video"),1e3*this.segmentLe
ngth)},i.setCaptionsState=function(t){this.Zr=t},H(n,[{key:"preload",get:function()
{return this.at},set:function(t){this.at!==t&&"none"!
==t&&this.Fo.resolve(),this.at=t}},{key:"latency",get:function(){var t;return
null==(t=this.ro)?void 0:t.latency}},{key:"lowLatencyMode",get:function(){return
this._lowLatencyMode},set:function(t)
{this._lowLatencyMode=t,this.eo&&(this.eo.lowLatencyMode=t)}},
{key:"downloadSpeed",get:function(){return this.fo.getCurrentSpeed()}},
{key:"restrictedStreamIndexes",get:function(){return this.Le},set:function(t)
{this.Le.join(",")!==t.join(",")&&(this.Le=t,this.fo.lock(this.Le))}},
{key:"videoWidth",get:function(){return this.Vo?this.Vo.width:this.$.videoWidth}},
{key:"videoHeight",get:function(){return this.Vo?this.Vo.height:this.
$.videoHeight}},{key:"currentTime",get:function(){return this.
$.currentTime},set:function(t){this.$.readyState>0&&(this.$.currentTime=t)}},
{key:"isLowerProfileAvailable",get:function(){return this.an?
this.an.video.activeStreamIndex>0:null}},{key:"sorcerer",get:function(){return
this.an}},{key:"segmentLength",get:function(){return
this.lowLatencyMode&&this.manifest.activeVideo.partTargetDuration||
this.manifest.activeVideo.targetDuration}}]),n}(xe);function Gr(t,n){var
i=t();return i&&i.then?i.then(n):n(i)}var
Kr=document.createElement("video"),Yr={"application/x-mpegURL":"application/x-
mpegURL"},Jr=function(t){function n(n){var i,e=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};return(i=t.call(this,n,e)||
this).Bo=null,i.reset(),window.addEventListener("online",(function()
{i.play()})),i}G(n,t),H(n,null,[{key:"displayName",get:function()
{return"NativeHLSLiveScanner"}},{key:"supported",get:function(){return
n.supportedVideoTypes.length>0}},{key:"supportedVideoTypes",get:function(){var
t=[];if("function"!=typeof Kr.canPlayType)return t;for(var n in Yr){var
i=Yr[n];Kr.canPlayType(i).replace(/^no$/,"")&&t.push(n)}return t}},
{key:"supportsPlaybackRate",get:function(){return!1}}]);var i=n.prototype;return
i.deactivate=function()
{t.prototype.deactivate.call(this),this.reset()},i.reset=function()
{this.Ho&&clearTimeout(this.Ho),this._e=null,this.Ho=null,this.uo=!1,this.ao=!
1,this.qo=null,this.Wo=0,this.Ho=null,this.fo=new
Ir(this,this.tt),this.Le=[]},i.endLive=function(){var n=this;this.uo=!1,this.ao=!
0,clearTimeout(this.Ho),this.$.pause(),setTimeout((function()
{t.prototype.deactivate.call(n),n.fire(_i.ENDED)}),0)},i.zo=function(){var
t=this,n=mt(this.video.metadata.playlistRefreshUrl.split("?")
[1]);n.expires&&(this.Ho=setTimeout((function(){t.Go()}),1e3*(n.expires-
10)))},i.Go=function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:0,i=this.video.metadata.playlistRefreshUrl;return
Xe(i).json().then((function(e){if(!("url"in e))throw new Error("Error parsing 'url'
key from player live API refresh endpoint: ".concat(i," ").concat(e));return
t.Ko(e.url.hls).then((function(){return
t.play(),t.Yo(5e3),null})).catch((function(){return t.Go(+
+n)}))})).catch((function(){if(n>=3)throw new Error("Manifest failed to load after
".concat(n," attempts."));return++n,t.Go(n)}))},i.Jo=function(){var
t=this;this.on(Si.STREAM_OFFLINE,(function(){t.uo=!1}))},i.$o=function(t){return
this.Jo(),this.uo=!
0,this.fire(Si.STREAM_ONLINE),this.Yo(5e3),r.resolve(t)},i.Ko=function(t){var
n=this;return this.Bo=t,/json=1/.test(t)?Xe(t).json().then((function(t){if(!
("url"in t))throw new Error("Error parsing 'url' key from Live API manifest
endpoint: ".concat(n.Bo," ").concat(t));n.$.src=t.url,n.zo()})).catch((function(t)
{var i=n.video.metadata.playlistRefreshUrl;return Xe(i).json().then((function(t)
{if(!("url"in t))throw new Error("Error parsing 'url' key from player live API
refresh endpoint: ".concat(i," ").concat(t));n.Bo=t.url.ios,n.
$.src=t.url.ios,n.zo()}))})):(this.$.src=t,this.zo(),r.resolve())},i.Yo=function(t)
{var n=this;"number"==typeof Wi.iOS&&Wi.iOS<9||this.qo||
(this.qo=setTimeout((function(){if(n.uo){var t=new
XMLHttpRequest;t.onload=function(){410!==t.status?(200!
==t.status&&n.fire(Si.STREAM_OFFLINE),t.response.match(/^#EXTM3U\n#EXT-X-
VERSION:3\n$/)&&n.fire(Si.STREAM_OFFLINE)):n.Go()},t.onerror=function()
{n.fire(Si.STREAM_OFFLINE)},/json=1/.test(n.Bo)?Xe(n.Bo).json().then((function(i)
{"url"in i||
n.fire(Si.STREAM_OFFLINE),t.open("GET",i.url),t.send()})).catch((function()
{t.open("GET",n.Bo),t.send()})):
(t.open("GET",n.Bo),t.send())}}),t))},i.setVideoSrc=function(t){var
n=this;this._e=this.$o(t).then((function(){return
n.Bo=t,n.Ko(t)}))},i.onprogress=function()
{this.qo&&(clearTimeout(this.qo),this.qo=null)},i.onstalled=function()
{this.Yo(1e4)},i.onerror=function(){var n=this;return this.$.error.code===this.
$.error.MEDIA_ERR_SRC_NOT_SUPPORTED?(Xe(this.Bo).then((function()
{t.prototype.onerror.call(n)})).catch((function(i){i instanceof Le?
n.fire(_i.ERROR,new TelecineError("MediaNetworkError","A network error ocurred
while fetching the media.")):t.prototype.onerror.call(n)})),!
1):t.prototype.onerror.call(this)},i.onwaiting=function()
{this.Yo(1e4)},i.seekToTime=function(){},i.play=function(){var n=this;return
t.prototype.play.call(this,(function(){return n._e}))},H(n,
[{key:"currentTime",get:function(){return this.$.currentTime},set:function(t){this.
$.currentTime=t}}]),n}(xe),$r=function(){function t(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};this.Xo=t,this.Z=t.Z,this.tt=n}H(t,null,[{key:"displayName",get:function()
{return"Effect"}},{key:"supported",get:function(){return!1}},
{key:"supportedScanners",get:function(){return[]}}]);var n=t.prototype;return
n.activate=function(){throw new TelecineError("NotImplemented","The effect must
implement the activate method.")},n.deactivate=function(){throw new
TelecineError("NotImplemented","The effect must implement the deactivate
method.")},t}(),Xr=new P,Zr=new P,TelecineFile=function(){function
TelecineFile(t,n){var i=t.src,e=t.mime,r=t.id,o=void 0===r?
ae():r,u=t.priority,a=void 0===u?0:u,s=t.metadata,c=void 0===s?{}:s;if(!i)throw new
TypeError("Must provide a src for the file.");if(!e)throw new TypeError("Must
provide a mime type for the file.");Object.defineProperties(this,{mime:
{value:e,enumerable:!0},id:{value:"".concat(o),enumerable:!0},metadata:
{value:c,enumerable:!0}}),this.video=n,this.priority=a,this.src=i}return
H(TelecineFile,[{key:"priority",get:function(){return Xr.get(this)},set:function(t)
{if(!
("number"==typeof(t=parseInt(t,10))&&isFinite(t)&&Math.floor(t)===t&&t>=0))throw
new TypeError("The file priority must be an integer greater than or equal to
0.");Xr.set(this,t)}},{key:"src",get:function(){return
Zr.get(this)},set:function(t)
{Zr.set(this,t),this.video.fire(Ti.FILE_SRC_UPDATE,this)}},
{key:"restrictedStreamIndexes",get:function(){if(!
Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.video.currentScanner),"r
estrictedStreamIndexes"))throw new ReferenceError("The current scanner does not
support streams.");return
this.video.currentScanner.restrictedStreamIndexes},set:function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!
Array.isArray(t))throw new TypeError("Indexes must be an array.");if(!
Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.video.currentScanner),"r
estrictedStreamIndexes"))throw new ReferenceError("The current scanner does not
support
streams.");this.video.currentScanner.restrictedStreamIndexes=t}}]),TelecineFile}
();function Qr(){return!!
(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&
window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration
||window.WebKitMediaKeys)}function to(t,n,i){"string"==typeof n&&(n=function(t)
{for(var n=new ArrayBuffer(2*t.length),i=new Uint16Array(n),e=0,r=t.length;e<r;e+
+)i[e]=t.charCodeAt(e);return i}(n));var e=0,r=new
ArrayBuffer(t.byteLength+4+n.byteLength+4+i.byteLength),o=new DataView(r);new
Uint8Array(r,e,t.byteLength).set(t),e+=t.byteLength,o.setUint32(e,n.byteLength,!
0),e+=4;var u=new Uint8Array(r,e,n.byteLength);return
u.set(n),e+=u.byteLength,o.setUint32(e,i.byteLength,!0),e+=4,new
Uint8Array(r,e,i.byteLength).set(i),new Uint8Array(r,0,r.byteLength)}function no(t)
{for(var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=n?
t.buffer:t,e=String.fromCharCode.apply(null,new Uint16Array(i)),r=(new
DOMParser).parseFromString(e,"application/xml"),o={},u=r.getElementsByTagName("Http
Header"),a=0;a<u.length;++a){var
s=u[a].querySelector("name"),c=u[a].querySelector("value");o[s.textContent]=c.textC
ontent}var l=r.querySelector("Challenge");return[o,t=se(l.textContent)]}function
io(t,n,i,e){var o=e.audio||[],u=e.video||
[],a=[{video:"HW_SECURE_ALL",audio:"SW_SECURE_CRYPTO"},
{video:"HW_SECURE_DECODE",audio:"SW_SECURE_CRYPTO"},
{video:"HW_SECURE_CRYPTO",audio:"SW_SECURE_CRYPTO"},
{video:"SW_SECURE_DECODE",audio:"SW_SECURE_CRYPTO"},
{video:"SW_SECURE_CRYPTO",audio:"SW_SECURE_CRYPTO"}].map((function(t){var
n={persistentState:"optional",sessionTypes:["temporary"]};return
u.length&&(n.videoCapabilities=u.map((function(n)
{return{contentType:n,robustness:t.video}}))),o.length&&(n.audioCapabilities=o.map(
(function(n)
{return{contentType:n,robustness:t.audio}}))),n})),s=Object.keys(t).map((function(e
){var o=t[e].id;if(n||i){var u=null,s=n?
window.WebKitMediaKeys:window.MSMediaKeys;try{u=new s(o)}catch(t){}return
r.resolve({name:o,keySystem:u})}return
navigator.requestMediaKeySystemAccess(o,a).then((function(t){return
t.createMediaKeys()})).catch((function(t){})).then((function(t)
{return{name:o,keySystem:t}}))}));return r.all(s)}function eo(t,n){var
i={},e="".concat(window.screen.availWidth,"x").concat(window.screen.availHeight),r=
window.devicePixelRatio;return
i.merchant="vimeo",i.sessionId=JSON.stringify({ua:navigator.userAgent,token:t,resol
ution:e,pixelRatio:r}),i.userId=n,i}function ro(t,n){var i=null;return
Object.keys(t).forEach((function(e){n.name===t[e].id&&(i=t[e])})),i}var
oo=function(){function t(t,n)
{this.Zo=t.cdms,this.Qo=t.lr_token,this.tu=t.user,this.nu=t.asset,this.iu=n,this.eu
=null,this.ru=null,this.ou=null,this.uu=null,this.au=this.su.bind(this)}var
n=t.prototype;return n.init=function(t){var n=this,i=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};return this.$=t.$,this.Lr=t,Qr()?
(this.cu=eo(this.Qo,this.tu),io(this.Zo,this.iu,!1,i).then((function(t)
{if(t.forEach((function(t){t.keySystem&&(n.ou=t)})),!n.ou)return
n.Lr.fire(Ti.EME_UNSUPPORTED),!1;var i=ro(n.Zo,n.ou);return
n.uu="encrypted",n.eu=i.license_url,n.iu&&(n.lu=i.certificate_url,n.uu="webkitneedk
ey"),n.$.addEventListener(n.uu,n.au),n.iu?(n.$.webkitSetMediaKeys(n.ou.keySystem),!
0):n.$.mediaKeys?(n.ru=n.
$.mediaKeys.createSession(),n.ru.addEventListener("message",(function(t){return
n.fu(t)})),!0):
(n.ru=n.ou.keySystem.createSession(),n.ru.addEventListener("message",(function(t)
{return n.fu(t)})),n.$.setMediaKeys(n.ou.keySystem),!0)}))):
(this.Lr.fire(Ti.EME_UNSUPPORTED),!1)},n.destroy=function()
{this.ru&&this.ru.sessionId&&this.ru.close(),this.
$.removeEventListener(this.uu,this.au)},n.su=function(t){var
n=this;return"com.apple.fps.1_0"===this.ou.name?(this.hu().then((function(i)
{n.du="assetId=".concat(n.nu);var e=to(t.initData,n.du,i);return
n.ru=n.ou.keySystem.createSession("video/mp4",e),n.ru.addEventListener("webkitkeyme
ssage",(function(t){return n.fu(t)})),i})).catch((function(t)
{n.Lr.fire(t.error,t.payload)})),!0):!this.ru.sessionId&&!
this.vu&&(this.vu=this.ru.generateRequest(t.initDataType,t.initData).catch((functio
n(){n.Lr.fire(Ti.DRM_FAILURE)})),!0)},n.fu=function(t){var n=this;return new
r((function(i,e){n.vu=null;var r=new
XMLHttpRequest;r.keySession=t.target,r.responseType="arraybuffer",r.open("POST",n.e
u),r.setRequestHeader("dt-custom-data",window.btoa(JSON.stringify(n.cu)));var
o=t.message;if("com.microsoft.playready"===n.ou.name){var u=no(t.message,!
1),a=u[0];Object.keys(a).forEach((function(t)
{r.setRequestHeader([t],a[t])})),o=u[1]}if("com.apple.fps.1_0"===n.ou.name){var
s=btoa(String.fromCharCode.apply(null,o));s=encodeURIComponent(s),o="spc=".concat(s
,"&").concat(n.du),r.setRequestHeader("Content-type","application/x-www-form-
urlencoded")}r.onload=function(){if(403!
==r.status)if(r.status>=400)e({error:Ti.DRM_FAILURE});else
try{n.Lr.fire(Ti.DRM_AUTH_SUCCESS);var t=new
Uint8Array(r.response),o=t.buffer;"com.apple.fps.1_0"===n.ou.name&&(o=function(t)
{var n=window.atob(t.trim());return"<ckc>"===n.substr(0,5)&&"</ckc>"===n.substr(-
6)&&(n=n.slice(5,-6)),new Uint8Array(atob(n).split("").map((function(t){return
t.charCodeAt(0)})))}
(btoa(String.fromCharCode.apply(null,t)))),r.keySession.update(o),i()}catch(t)
{e("Error updating key session: ".concat(t))}else{var
u=JSON.parse(r.getResponseHeader("x-dt-error-
message"));e({error:Ti.DRM_AUTH_FAILURE,payload:
{text:u.error,code:u.error_code}})}},r.onerror=e,r.send(o)})).catch((function(t)
{n.Lr.fire(t.error,t.payload)}))},n.hu=function(){var
t=this;return new r((function(n,i){var e=new
XMLHttpRequest;e.responseType="arraybuffer",e.open("GET",t.lu),e.setRequestHeader("
dt-custom-data",window.btoa(JSON.stringify(t.cu))),e.onload=function(){if(403!
==e.status)if(e.status>=400)i({error:Ti.DRM_FAILURE});else try{n(new
Uint8Array(e.response))}catch(t){i(t)}else{var t=JSON.parse(e.getResponseHeader("x-
dt-error-message"));i({error:Ti.DRM_AUTH_FAILURE,payload:
{text:t.error,code:t.error_code}})}},e.onerror=i,e.send()}))},t}(),uo=function()
{function t()
{this.pu={},this.mu={},this.bu={},this.wu={},this.gu={},this.yu={},this._u="default
",this.ku={KEYCHAIN_DEFAULT:"default",KEYCHAIN_SD_FALLBACK:"sd-fallback"}}var
n=t.prototype;return n.getAllKeySessions=function(){return Object.values(this.yu)||
[]},n.getCdms=function(t){return this.pu[t]},n.getAllPreferredKeySystems=function()
{return this.mu},n.addCdms=function(t,n)
{this.pu[n]=t},n.addKeySession=function(t,n)
{this.yu[n]=t},n.addLicenseTokenUrl=function(t,n)
{this.bu[n]=t},n.addLicenseUrl=function(t,n)
{this.wu[n]=t},n.addPreferedKeySystem=function(t,n)
{this.mu[n]=t},n.closeAllKeySessions=function(){for(var t in
this.yu)this.yu[t]&&this.yu[t].sessionId&&this.yu[t].close()},H(t,
[{key:"state",get:function(){return this._u},set:function(t)
{Object.values(this.ku).indexOf(t)<0||(this._u=t)}},
{key:"activeKeySession",get:function(){return this.yu[this._u]}},
{key:"activeKeySystem",get:function(){return this.mu[this._u]}},
{key:"keyTypes",get:function(){return this.ku}},
{key:"activeLicenseTokenUrl",get:function(){return this.bu[this._u]}},
{key:"activeLicenseUrl",get:function(){return this.wu[this._u]}}]),t}
(),ao=function(){function t(t,n){this.Eu=!!
t.fallback_asset,this.iu=n,this.Tu=function(){return
null},this.Dr=0,this.uu=null,this.au=this.su.bind(this),this.Su=this.xu.bind(this),
this.Au=new
uo,this.ku=this.Au.keyTypes,this.Au.state=this.ku.KEYCHAIN_DEFAULT,this.Au.addCdms(
t.cdms,this.ku.KEYCHAIN_DEFAULT),this.Eu&&this.Au.addCdms(t.fallback_cdms,this.ku.K
EYCHAIN_SD_FALLBACK)}var n=t.prototype;return n.init=function(t){var
n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.$=t.
$,this.Lr=t,this.Mu=!!window.MSMediaKeys,Qr()||this.Mu?
this.Au.state===this.ku.KEYCHAIN_SD_FALLBACK?
this.setUpKeySystem(i,e,this.ku.KEYCHAIN_SD_FALLBACK).then((function()
{n.Lr.currentTime=n.Dr,n.Lr.play()})):this.setUpKeySystem(i,e).then((function()
{return n.setUpKeySystem(i,e,n.ku.KEYCHAIN_SD_FALLBACK)})):
(this.Lr.fire(Ti.EME_UNSUPPORTED),r.reject())},n.setUpKeySystem=function(t,n){var
i=this,e=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:this.ku.KEYCHAIN_DEFAULT;return new r((function(r,o){var
u=i.Au.getCdms(e);return u||o(),io(u,i.iu,i.Mu,t).then((function(t)
{i.Au.addPreferedKeySystem(t.find((function(t){return t.keySystem})),e);var
r=i.Au.activeKeySystem&&ro(u,i.Au.activeKeySystem);if(!r)throw
i.Lr.fire(Ti.EME_UNSUPPORTED),new Error("No valid key system was
found.");i.Au.addLicenseTokenUrl(r.license_url,e);var
o=n&&n.inits&&n.inits[r.id];return o||i.Cu(r,e),i.Ru(e).then((function(){var
t=i.Au.state===e;return o&&t&&i.su(o.cenc,e)}))})).then(r)}))},n.destroy=function()
{this.Au&&this.Au.closeAllKeySessions(),this.$&&this.
$.removeEventListener(this.uu,this.au)},n.Iu=function(t){var n=this;return new
r((function(i){n.Au.state=t,n.Au.activeKeySession.addEventListener("message",
(function(t){return n.fu(t)})),i()}))},n.Cu=function(t,n)
{this.uu="encrypted",this.Au.addLicenseUrl(t.license_url,n),this.iu?
(this.lu=t.certificate_url,this.uu="webkitneedkey"):this.Mu&&(this.uu="msneedkey"),
this.$.addEventListener(this.uu,this.au)},n.Ru=function(t){var n=this;return new
r((function(i){if(n.Mu){var e=function t(){n.
$.msSetMediaKeys(n.Au.activeKeySystem.keySystem),n.
$.removeEventListener("loadedmetadata",t),i()};n.$.readyState>=1?e():n.
$.addEventListener("loadedmetadata",e)}else{if(n.iu)n.
$.webkitSetMediaKeys(n.Au.activeKeySystem.keySystem);else{var r=n.$.mediaKeys||
n.Au.activeKeySystem.keySystem;n.Au.addKeySession(n.Ou(r),t),t===n.Au.state&&n.Au.a
ctiveKeySession.addEventListener("message",(function(t){return n.fu(t)})),n.
$.mediaKeys||n.
$.setMediaKeys(n.Au.activeKeySystem.keySystem)}i()}}))},n.Ou=function(t,n,i){var
e=t.createSession(n,i);if(!e)throw new Error("Could not create key session");return
e},n.su=function(t,n){var i=this;n=n||this.Au.state;var e=new Error("A decryption
key error was
encountered");return"com.apple.fps.1_0"===this.Au.activeKeySystem.name?
(this.hu(this.lu).then((function(r){i.du=function(t){var n=function(t){var n=new
Uint16Array(t.buffer);return String.fromCharCode.apply(null,n)}
(t),i=document.createElement("a");return i.href=n,i.hostname}(t.initData);var
o=to(t.initData,i.du,r);return
i.Au.addKeySession(i.Ou(i.Au.activeKeySystem.keySystem,"video/mp4",o),n),i.Au.activ
eKeySession.contentId=i.du,i.Au.activeKeySession.addEventListener("webkitkeymessage
",(function(t){return
i.fu(t)})),i.Au.activeKeySession.addEventListener("webkitkeyerror",(function(t)
{throw e})),r})).catch((function(t){i.Lr.fire(t.error,t.payload)})),!
0):"com.microsoft.playready"===this.Au.activeKeySystem.name?
(this.Au.addKeySession(this.Ou(this.
$.msKeys,"video/mp4",t.initData),n),this.Au.activeKeySession.addEventListener("mske
ymessage",(function(t){return
i.fu(t)})),this.Au.activeKeySession.addEventListener("mskeyerror",(function(t)
{throw e})),!0):!this.Au.activeKeySession.sessionId&&!
this.vu&&(this.Au.activeKeySession.addEventListener("keystatuseschange",this.Su),th
is.vu=this.Au.activeKeySession.generateRequest(t.initDataType,t.initData).catch((fu
nction(){i.Lr.fire(Ti.DRM_FAILURE)})),!0)},n.xu=function(){var t=this,n=!
1,i=U(this.Au.activeKeySession.keyStatuses.values());if(i.forEach((function(t,i)
{switch(t){case"expired":n=!0}})),i.every((function(t){return"output-
restricted"===t}))){if(this.Eu)return this.Dr=this.Lr.currentTime,void
this.Iu(this.ku.KEYCHAIN_SD_FALLBACK).then((function()
{t.Tu(),t.Lr.fire(Ti.DRM_KEY_SWITCH,t.ku.KEYCHAIN_SD_FALLBACK)})).catch((function(n
)
{t.Lr.fire(Ti.DRM_OUTPUT_RESTRICTED)}));this.Lr.fire(Ti.DRM_OUTPUT_RESTRICTED)}n&&t
his.Au.activeKeySession.close()},n.fu=function(t){var n=this;return
this.ju(this.Au.activeLicenseTokenUrl).then((function(i){return new
r((function(e,r){n.Au.addLicenseUrl(i,n.Au.state),n.vu=null;var o=new
XMLHttpRequest;o.keySession=t.target,o.open("POST",n.Au.activeLicenseUrl),o.respons
eType="arraybuffer";var
u=t.message;if("com.microsoft.playready"===n.Au.activeKeySystem.name){var
a=no(t.message),s=a[0];Object.keys(s).forEach((function(t)
{o.setRequestHeader(t,s[t])})),u=a[1]}"com.apple.fps.1_0"===n.Au.activeKeySystem.na
me&&(u=new Uint8Array(u),o.setRequestHeader("Content-type","application/octet-
stream")),o.onload=function(){if(403!==o.status)if(o.status>=400)r(new
TelecineError(Ti.DRM_FAILURE));else try{n.Lr.fire(Ti.DRM_AUTH_SUCCESS);var t=new
Uint8Array(o.response);o.keySession.update(t),e()}catch(t){r(new
TelecineError(Ti.DRM_FAILURE,"Error updating key session: ".concat(t)))}else r(new
TelecineError(Ti.DRM_AUTH_FAILURE))},o.onerror=r,o.send(u)})).catch((function(t)
{n.Lr.fire(t.name,{text:t.message||"License request
failed."})}))}))},n.ju=function(t){return new r((function(n,i){var e=new
XMLHttpRequest;e.open("GET",t),e.onload=function(){if(e.status>=400)i(new
TelecineError(Ti.DRM_FAILURE));else try{try{var
t=JSON.parse(e.response),r=t.licenseAcquisitionUrl,o=t.token;if(!r&&!o)throw new
Error;n("".concat(r,"?ExpressPlayToken=").concat(o))}catch(t)
{n(e.response)}}catch(t){i(new TelecineError(Ti.DRM_FAILURE,"Error retrieving
License Acquisition URL (LA_URL):
".concat(t)))}},e.onerror=i,e.send()}))},n.hu=function(t){return new
r((function(n,i){var e=new
XMLHttpRequest;e.open("GET",t),e.responseType="arraybuffer",e.setRequestHeader("Pra
gma","Cache-Control: no-cache"),e.setRequestHeader("Cache-Control","max-
age=0"),e.onload=function(){if(403!
==e.status)if(e.status>=400)i({error:Ti.DRM_FAILURE});else try{n(new
Uint8Array(e.response))}catch(t){i(t)}else
i({error:Ti.DRM_AUTH_FAILURE})},e.onerror=i,e.send()}))},n.setFallbackCallback=func
tion(t){this.Tu=function(){return t()}},H(t,[{key:"state",get:function(){return
this.Au.state}},{key:"hasFallbackAssets",get:function(){return this.Eu}}]),t}
(),so=new P,TelecineVideo=function(){function TelecineVideo(t){var
n=this,i=t.files,e=t.id,r=void 0===e?ae():e,o=t.title,u=void 0===o?
null:o,a=t.subtitle,s=void 0===a?null:a,c=t.metadata,l=void 0===c?
{}:c,f=t.textTracks,h=void 0===f?re():f,d=t.externalDisplayFiles,v=void 0===d?
{}:d,p=t.chapters,m=void 0===p?[]:p,b=t.duration;if(!i||!Array.isArray(i))throw new
TypeError("Must provide files for the video.");rt(this);var w=function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return
t.getFileById=ee,t}(i.map((function(t){return t instanceof TelecineFile?
(t.video=n,t):new TelecineFile(t,n)}))),g=re(h.map((function(t){return t instanceof
TelecineTextTrack?(t.video=n,t):new
TelecineTextTrack(t,n)})));Object.keys(v).forEach((function(t){!v[t]||
v[t]instanceof TelecineFile||(v[t]=new
TelecineFile(v[t],n))})),Object.defineProperties(this,{id:
{value:"".concat(r),enumerable:!0},title:{value:u,enumerable:!0},subtitle:
{value:s,enumerable:!0},metadata:{value:l,enumerable:!0},files:
{value:w,enumerable:!0},textTracks:{value:g,enumerable:!0,writable:!0},chapters:
{value:m,enumerable:!0},duration:{value:b,enumerable:!0},externalDisplayFiles:
{value:v,enumerable:!0}}),l.drm&&(l.drm.fastly?this.Lu=new
ao(l.drm,l.useHls):this.Lu=new oo(l.drm,l.useHls))}return
TelecineVideo.prototype.deactivate=function(){var
t=this;this.Lu&&this.Lu.destroy(),this.textTracks.forEach((function(n){return
t.currentScanner.removeTextTrack(n)}))},H(TelecineVideo,
[{key:"drmHandler",get:function(){return this.Lu||null}},
{key:"currentFile",get:function(){return
this.currentScanner.currentFile},set:function(t)
{this.currentScanner.currentFile=t}},{key:"currentScanner",get:function(){return
so.get(this)},set:function(t){var
n=this;this.currentScanner&&this.currentScanner.constructor.supportsTextTracks&&thi
s.textTracks.forEach((function(t){return
n.currentScanner.removeTextTrack(t)})),t.constructor.supportsTextTracks&&this.textT
racks.forEach((function(n){return t.addTextTrack(n)})),so.set(this,t)}},
{key:"chapters",get:function(){return this.chapters}}]),TelecineVideo}
(),co=function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:{};this.Xo=t,this.tt=n,this.Du=null,this.Pu=this.tt.embedTime?
this.tt.embedTime:0,this.Nu=!1,this.Fu=!1,this.Uu=!1,this.playInitiated=!
1,this.Vu=!
1,this.Bu=250,rt(this),this.Hu=this.qu.bind(this),this.Wu=this.zu.bind(this),this.G
u=this.Ku.bind(this),this.Yu=this.Ju.bind(this),this.
$u=this.Xu.bind(this),this.Zu=this.Qu.bind(this),this.ta(this.Xo.on),this.tt.noInte
rval||this.na()}var n=t.prototype;return n.destroy=function()
{clearInterval(this.Du),this.ta(this.Xo.off),this.qu()},n.ta=function(t)
{t(_i.PAUSE,this.Wu),t(_i.PLAYING,this.Hu),t(_i.SEEKING,this.Gu),t(_i.SEEKED,this.Y
u),t(Si.STREAM_ONLINE,this.$u),t(Si.STREAM_OFFLINE,this.Zu)},n.zu=function()
{this.userPlayState=!1},n.qu=function(){this.Nu&&(this.Nu=!
1,this.fire(Ti.BUFFER_ENDED))},n.Ku=function(){this.Fu=!0},n.Ju=function()
{this.Fu=!1},n.Xu=function(){this.Vu=!0},n.Qu=function(){this.Vu=!
1},n.na=function()
{clearInterval(this.Du),this.Du=setInterval(this.runIntervalCheck.bind(this),this.B
u)},n.runIntervalCheck=function(){if(this.Xo.video){var
t=this.Xo.video.currentScanner;if(t){var
n=this.Xo.isLive(),i=t.currentTime,e=this.Bu/2/1e3;if(this.playInitiated&&(!
this.Fu||n)&&(!this.Xo.paused||this.userPlayState)&&!this.Nu&&i<this.Pu+e){if(n&&!
this.Vu)return;for(var r=this.Xo.buffered,o=0;o<r.length;o+
+)if(i>=r.start(o)&&i+.2<=r.end(o))return;if(i+e>=this.Xo.duration)return;this.Nu=!
0,this.fire(Ti.BUFFER_STARTED)}(this.playInitiated&&this.Nu&&i>this.Pu+e||n&&!
this.Vu&&this.Nu)&&(this.Nu=!1,this.fire(Ti.BUFFER_ENDED)),this.Pu=i}}},H(t,
[{key:"userPlayState",get:function(){return this.Uu},set:function(t){this.Uu=t,t||
this.qu()}}]),t}();function lo(){var t,n;function i(){t.src?
document.createElement("video").load():t.load()}function e(){if(!n)return
r.reject();t.preload="";var i=t.play();return void 0===i&&(i=new r((function(n)
{t.addEventListener("playing",n)}))),i}function o()
{n&&(n.resolve(),n=null)}function u(t){n&&(n.reject(t),n=null)}return{set video(n)
{t=n},get video(){return t},get active(){return!!n},start:function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.resolve.bind(r);return
n||(n=new dt),i(),t().then(e).then(o).catch(u),n},cancel:function()
{n&&(n.reject(new TelecineError("PlayInterrupted","The play() request was
interrupted by a call to pause()")),n=null)}}}var fo=function(){function t(t,n){var
i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
{};this.Z=t,this.ia=n,this.tt=i,this.$=null,this.ht=re(),this.ea={},this.ra=new
xe(t),this.tt.playRequest=new lo,this.oa=[],this.aa=[],rt(this)}var
n=t.prototype;return n.supportsEffect=function(t){var n=this;return!!
t.supported&&t.supportedScanners.some((function(t){return
n.sa(n.ra)===t.displayName}))},n.getEffectByName=function(t){var
n=this,i=null;return this.aa.forEach((function(e)
{t===n.ca(e)&&(i=e)})),i},n.activateEffect=function(t,n){var i=new t(this,n);return
i.activate(),this.aa.push(i),i},n.deactivateEffect=function(t){var n=this;return
this.aa.some((function(i,e){return
i.constructor===t&&(i.deactivate(),n.aa.splice(e,1),!
0)}))},n.deactivateEffects=function(){var t=this;this.aa.forEach((function(n)
{return t.deactivateEffect(n.constructor)}))},n.play=function(){if(!this.$||this.
$.files.length<1)throw new TelecineError("NoFiles","There are no files to
play.");this.la.playInitiated||(this.la.playInitiated=!0),this.la.userPlayState=!
0;var t=this.ra.play();return this.ea.paused=!1,t},n.pause=function(){if(!this.$||
this.$.files.length<1)throw new TelecineError("NoFiles","There are no files to
play.");return this.la.userPlayState=!1,this.ra.pause(),this.ea.paused=!
0,this},n.isLive=function(){return
this.currentScannerName.includes("Live")},n.endLive=function()
{this.ra.endLive()},n.getBitrateAtTime=function(t){var n=arguments.length>1&&void
0!==arguments[1]?arguments[1]:"video";return"MediaSourceScanner"!
==this.sa(this.ra)&&"HLSLiveScanner"!
==this.sa(this.ra)||"audio"===n&&this.ra.vn[n].length<=1?
0:this.ra.getBitrateAtTime(t,n)},n.getCurrentStream=function(){var
t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"video";return
null==(t=(n=this.ra).getCurrentStream)?void
0:t.call(n,i)},n.showExternalDisplayPicker=function(t)
{this.ra.showExternalDisplayPicker(t)},n.supportsPresentationMode=function(t)
{return-1!==this.supportedPresentationModes.indexOf(t)},n.addChapter=function(t,n)
{this.ra.addChapter(t,n)},n.removeChapter=function(t)
{this.ra.removeChapter(t)},n.addCuePoint=function(t,n){return
this.ra.addCuePoint(t,n)},n.removeCuePoint=function(t){return
this.ra.removeCuePoint(t)},n.removeAllCuePoints=function(){return
this.ra.removeAllCuePoints()},n.addVideoEventListeners=function(){return
this.ra.addVideoEventListeners()},n.removeVideoEventListeners=function(){return
this.ra.removeVideoEventListeners()},n.fa=function(){var
t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},i=n.textTrackSupport,e=void 0!==i&&i,r=this.$.files.sort((function(t,n){return
t.priority-n.priority})),o=this.ia,u=function(n){var i=r[n];for(var u in o){var
a=o[u];if(a.supported&&(!e||a.supportsTextTracks)&&-
1===t.oa.indexOf(t.sa(a))&&a.supportedVideoTypes.some((function(t){return
i.mime===t})))return{v:a}}};for(var a in r){var s=u(a);if("object"===V(s))return
s.v}return e?(this.kt("TextTracksNotSupported","None of the scanners support text
tracks in this browser."),this.oa=[],this.fa()):null},n.ha=function(t,n){var
i=this;if(this.ra.constructor!==t||this.ra.video!==n){this.ra.deactivate();var
e=new t(this.Z,this.tt);Object.keys(Ci).forEach((function(t){var n=Ci[t];e.on(n,
(function(t){return
i.da(n,t,e)}))})),this.ra=e,n.currentScanner=e,this.ra.video=n;for(var
r=Object.keys(this.ea),o=0;o<r.length;o++){var u=r[o];"paused"!==u?"currentTime"!
==u&&(this.ra[u]=this.ea[u]):!
1===this.ea.paused&&this.ra.play()}this.ra.addChapters(n.chapters,n.duration),this.
fire(Ti.SCANNER_CHANGE,this.sa(this.ra))}},n.va=function(){if(null!==this.$){var
t=this.fa({textTrackSupport:this.$.textTracks.length>0});t?this.ha(t,this.
$):this.kt("FilesNotPlayable","None of the files could be played in this
browser.")}},n.pa=function(){this.ra.deactivate(),this.ra=new
xe(this.Z)},n.da=function(t,n,i){if(i===this.ra){switch(t){case _i.ERROR:return
void(n instanceof TelecineError&&this.fire(_i.ERROR,n));case
Ti.SCANNER_ERROR:this.kt("ScannerError","The current scanner can no longer be used
because ".concat(n.reason)),this.oa.push(this.sa(this.ra)),this.va([]);break;case
Ti.FILE_ERROR:this.kt("FileError","The current file can no longer be used because
".concat(n.reason)),this.ra.Et();break;case
Ti.DOWNLOAD_ERROR:this.kt("DownloadError",n),this.ra.Et();break;case
Ti.EME_UNSUPPORTED:this.kt("DRMFailure",
{text:null,code:"emeunsupported"});break;case Ti.DRM_FAILURE:case
Ti.DRM_AUTH_FAILURE:this.kt("DRMFailure",{text:n.text,code:n.code});break;case
Ti.DRM_OUTPUT_RESTRICTED:this.kt("DRMFailure",
{text:null,code:"outputrestricted"});break;case
Ti.DRM_AUTH_SUCCESS:this.fire(Ti.DRM_AUTH_SUCCESS);break;case
_i.TIME_UPDATE:this.ea.currentTime=this.ra.currentTime;break;case
Ti.MEDIA_URL_EXPIRED:this.kt("MediaUrlExpired",n);break;case
Ti.MEDIA_URL_BAD_REQUEST:this.kt("MediaUrlBadRequest",n);break;case
Mi.BRAIN_ML_MODEL_ERR:this.kt("MimirError",n);break;case
Mi.BRAIN_ML_MODEL_NET_ERR:this.kt("MimirNetworkError",n);break;case
Mi.BRAIN_ML_MODEL_TIMEOUT:this.kt("MimirNetworkTimeout",n);break;case
xi.SPATIAL_UNSUPPORTED:this.getEffectByName("ThreeSixtyEffect").deactivate();break;
case _i.ENDED:this.ea.paused=!0;break;case
_i.WAITING:this.fire(_i.WAITING)}this.aa.forEach((function(n){"function"==typeof
n["on".concat(t)]&&n["on".concat(t)]()})),this.fire(t,n)}},n.kt=function(t,n)
{this.fire(_i.ERROR,new TelecineError(t,n))},n.sa=function(t){return t instanceof
xe?t.constructor.displayName:t.prototype.constructor.displayName},n.na=function()
{var t=this;this.la&&this.la.destroy(),this.la=new
co(this,this.tt),this.la.on(Ti.BUFFER_STARTED,(function()
{t.fire(Ti.BUFFER_STARTED)})),this.la.on(Ti.BUFFER_ENDED,(function()
{t.fire(Ti.BUFFER_ENDED)}))},n.ca=function(t){return t instanceof $r?
t.constructor.displayName:t.prototype.constructor.displayName},n.ma=function(t)
{"HLSLiveScanner"===this.sa(this.ra)&&this.ra.setCaptionsState(t)},H(t,
[{key:"element",get:function(){return this.Z}},{key:"videoElement",get:function()
{return this.ra.videoElement}},{key:"manifest",get:function(){return
this.ra.manifest||{video:[]}}},{key:"supportsSettingVolume",get:function(){return
this.ia.some((function(t){return t.supported&&t.supportsSettingVolume}))}},
{key:"supportsPlaybackRate",get:function(){return
this.ra.constructor.supportsPlaybackRate}},{key:"supportsTextTracks",get:function()
{return this.ia.some((function(t){return t.supported&&t.supportsTextTracks}))}},
{key:"activeEffects",get:function(){return this.aa}},{key:"latency",get:function()
{return this.ra.latency}},{key:"downloadSpeed",get:function(){return
this.ra.downloadSpeed||0}},{key:"isLowerProfileAvailable",get:function(){return
this.ra.isLowerProfileAvailable}},{key:"buffered",get:function(){return
this.ra.buffered}},{key:"bufferTarget",get:function(){return
this.ra.bufferTarget},set:function(t)
{this.ea.bufferTarget=t,this.ra.bufferTarget=t}},
{key:"presentationDelay",get:function(){return
this.ra.presentationDelay},set:function(t)
{this.ea.presentationDelay=t,this.ra.presentationDelay=t}},
{key:"lowLatencyMode",get:function(){return this.ra.lowLatencyMode},set:function(t)
{this.ea.lowLatencyMode=t,this.ra.lowLatencyMode=t}},
{key:"manifestLoadDurations",get:function(){return
this.ra.manifestLoadDurations?this.ra.manifestLoadDurations:[]}},
{key:"successfulSegments",get:function(){return this.ra.successfulSegments?
this.ra.successfulSegments:[]}},{key:"failedSegments",get:function(){return
this.ra.failedSegments?this.ra.failedSegments:[]}},{key:"cuePoints",get:function()
{return this.ra.cuePoints}},{key:"currentChapterID",get:function(){return
this.ra&&this.ra.chaptersTrack&&this.ra.chaptersTrack.activeCues.length?
this.ra.chaptersTrack.activeCues[0].id:null}},{key:"chapters",get:function(){return
this.ra.chaptersTrack?this.ra.chaptersTrack.cues:[]}},
{key:"chaptersTrack",get:function(){return this.ra.chaptersTrack}},
{key:"currentFile",get:function(){return this.ra.currentFile},set:function(t)
{if("string"==typeof t&&(t=this.Ct.filter((function(n){return n.id===t}))[0]),!
t)throw new TelecineError("FileNotValid","The file is not
valid.");this.ra.currentFile=t}},{key:"currentScannerName",get:function(){return
this.sa(this.ra)}},{key:"currentScanner",get:function(){return this.ra}},
{key:"currentTime",get:function(){return this.ra.currentTime},set:function(t)
{this.ea.currentTime=t,this.ra.currentTime=t}},{key:"duration",get:function()
{return this.ra.duration}},{key:"ended",get:function(){return this.ra.ended}},
{key:"externalDisplayAvailable",get:function(){return
this.ra.externalDisplayAvailable}},{key:"externalDisplayActive",get:function()
{return this.ra.externalDisplayActive}},{key:"loop",get:function(){return
this.ra.loop},set:function(t){this.ea.loop=t,this.ra.loop=t}},
{key:"muted",get:function(){return this.ra.muted},set:function(t){this.ea.muted=!!
t,this.ra.muted=!!t}},{key:"playsinline",get:function(){return
this.ra.playsinline},set:function(t){this.ea.playsinline=!!t,this.ra.playsinline=!!
t}},{key:"paused",get:function(){return this.ra.paused}},
{key:"played",get:function(){return this.ra.played}},{key:"seekable",get:function()
{return this.ra.seekable}},{key:"seeking",get:function(){return this.ra.seeking}},
{key:"defaultPlaybackRate",get:function(){return
this.ra.defaultPlaybackRate},set:function(t)
{this.ea.defaultPlaybackRate=t,this.ra.defaultPlaybackRate=t}},
{key:"playbackRate",get:function(){return this.ra.playbackRate},set:function(t)
{this.ea.playbackRate=t,this.ra.playbackRate=t}},{key:"preload",get:function()
{return this.ra.preload},set:function(t){this.ea.preload=t,this.ra.preload=t}},
{key:"autoPictureInPicture",get:function(){return
this.ra.autoPictureInPicture},set:function(t){this.ea.autoPictureInPicture=!!
t,this.ra.autoPictureInPicture=!!t}},{key:"disablePictureInPicture",get:function()
{return this.ra.disablePictureInPicture},set:function(t)
{this.ea.disablePictureInPicture=!!t,this.ra.disablePictureInPicture=!!t}},
{key:"presentationMode",get:function(){return
this.ra.presentationMode},set:function(t){this.ra.presentationMode=t}},
{key:"supportedPresentationModes",get:function(){return
this.ra.supportedPresentationModes}},{key:"video",get:function(){return this.
$},set:function(t){this.$&&this.$.deactivate(),this.oa=[],this.na(),null===t?(this.
$=null,this.pa()):(this.$=new TelecineVideo(t),this.va())}},
{key:"videoWidth",get:function(){return this.ra.videoWidth}},
{key:"videoHeight",get:function(){return this.ra.videoHeight}},
{key:"volume",get:function(){return this.ra.volume},set:function(t){if(t<0||
t>1)throw new TelecineError("IndexSizeError","Failed to set the 'volume' property:
The volume provided (".concat(t,") is outside of the range [0,
1]."));this.ea.volume=t,this.ra.volume=t}},{key:"brainDebug",get:function(){return
this.ra.brainDebug}}]),t}(),ho=function(t){function n(n){var
i,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};return(i=t.call(this,n,e)||this).ba=!1,i.$=i.Xo.ra.$,i}G(n,t),H(n,null,
[{key:"displayName",get:function(){return"CanvasEffect"}},
{key:"supported",get:function(){return!0}},{key:"supportedScanners",get:function()
{return[xe,Mr]}}]);var i=n.prototype;return i.activate=function(){this.ba=!
0,this.wa=document.createElement("canvas"),this.wa.className="vp-canvas-
effect",this.wa.style.cssText="\n position: absolute;\n
top:0;\n left:0;\n bottom:0;\n right:0;\n
",this.ga=this.wa.getContext("2d",{alpha:!
1}),this.Z.appendChild(this.wa),this.ya()},i.deactivate=function()
{this.wa&&this.Z.removeChild(this.wa),this._a(),this.ba=!1},i.ya=function()
{this.ka()},i.ka=function()
{this.Ea=window.requestAnimationFrame(this.Ta.bind(this))},i.Ta=function(){var
t=this.$,n=this.wa;n.width=t.clientWidth,n.height=t.clientHeight;var
i=Math.floor(this.Sa()),e=Math.floor(this.xa()),r=Math.floor((t.clientWidth-
i)/2),o=Math.floor((t.clientHeight-
e)/2);this.ga.fillStyle="#000",this.ga.fillRect(0,0,n.width,n.height),this.ga.drawI
mage(t,r,o,i,e),this.ka()},i.Aa=function(){return this.$.videoHeight/this.
$.videoWidth},i.Sa=function(){return Math.min(this.$.clientHeight/this.Aa(),this.
$.clientWidth)},i.xa=function(){return Math.min(this.$.clientWidth*this.Aa(),this.
$.clientHeight)},i._a=function()
{this.Ea&&(window.cancelAnimationFrame(this.Ea),this.Ea=null)},n}($r),vo=function()
{function t(){}return H(t,null,[{key:"Equirect",get:function()
{return"equirectangular"}}]),t}(),po=function(){function t(){}return H(t,null,
[{key:"Mono",get:function(){return"mono"}},{key:"TopBottom",get:function()
{return"top-bottom"}}]),t}(),mo=function(){function t(t,n,i)
{switch(this.isStereo=n!==po.Mono,this.Ma=null,this.Ca=null,t){case
vo.Equirect:this.createEquirectProjection(i,n);break;default:this.createEquirectPro
jection(i,po.Mono)}}var n=t.prototype;return
n.createEquirectProjection=function(t,n){switch(n){case
po.Mono:this.Ma=this.Ra(t);break;case
po.TopBottom:this.Ma=this.Ra(t),this.Ca=this.Ra(t),this.Ma.layers.set(1),this.Ca.la
yers.set(2),this.Ia(this.Ma.geometry,.5,0),this.Ia(this.Ca.geometry,.5,.5)}},n.Ra=f
unction(n,i,e,r){var o=new THREE.SphereBufferGeometry(i||t.SPHERE_RADIUS,e||
t.TESSELATION_WIDTH,r||t.TESSELATION_HEIGHT);o.scale(-1,1,1);var u=new
THREE.MeshBasicMaterial({map:n});return new THREE.Mesh(o,u)},n.Ia=function(t,n,i)
{for(var e=arguments.length>3&&void 0!==arguments[3]?
arguments[3]:1,r=0;r<t.attributes.uv.array.length;r+=2)t.attributes.uv.array[r+e]*=
n,t.attributes.uv.array[r+e]+=i},H(t,[{key:"left",get:function(){return this.Ma}},
{key:"right",get:function(){return this.Ca}}],
[{key:"TESSELATION_WIDTH",get:function(){return 120}},
{key:"TESSELATION_HEIGHT",get:function(){return 80}},
{key:"SPHERE_RADIUS",get:function(){return 500}}]),t}(),bo=function(){function t(t)
{this.Oa=t}var n=t.prototype;return n.hasVRHeadset=function(){var t=this;return
Wi.webvr?navigator.getVRDisplays().then((function(n){return n.length>0?
(t.Oa.vr.setDevice(n[0]),n[0]):null})):null},n.enter=function(){return
this.Oa.vr.getDevice()&&this.Oa.vr.getDevice().requestPresent([{source:this.Oa.domE
lement}])},n.exit=function(){return
this.Oa.vr.getDevice()&&this.Oa.vr.getDevice().exitPresent()},H(t,
[{key:"supported",get:function(){return Wi.webvr}},{key:"device",get:function()
{return this.Oa&&this.Oa.vr.getDevice()?this.Oa.vr.getDevice():null}},
{key:"isPresenting",get:function(){return!(!this.Oa||!
this.Oa.vr.getDevice())&&this.Oa.vr.getDevice().isPresenting}}]),t}
(),wo=function(t){function n(n){var i,e=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:{};return(i=t.call(this,n,e)||this).ba=!
1,i.ja=null,i.La=null,i.Oa=null,i.isUserInteracting=!
1,i.Da=0,i.Pa=0,i._coordinates={lat:0,long:0},i.Na={lat:0,long:0},i.Fa={lat:0,long:
0},i.Ua=i.cameraProps,i.Va=0,i.Ba=0,i.Ha=0,i.$=i.Xo.ra.
$,i.qa=null,i.Wa={x:0,y:0},i.za={lat:0,long:0},i.Ga={videoFps:i.tt.fps,motionRender
Speed:60},i.Ka=1e3/i.Ga.videoFps,i.Ya=[],i.Ja=!1,i.$a=!1,i.Xa=!1,i.Za={up:!1,down:!
1,left:!1,right:!1},i}G(n,t),H(n,[{key:"isUserInteracting",set:function(t){t!
==this.Qa&&(this.Qa=t,t?this.tt.isMobile||
this.Xo.fire(xi.MOTION_START):this.tt.isMobile||
this.Xo.fire(xi.MOTION_END))},get:function(){return this.Qa}}],
[{key:"displayName",get:function(){return"ThreeSixtyEffect"}},
{key:"supported",get:function(){try{var t=document.createElement("canvas");return!!
window.WebGLRenderingContext&&(t.getContext("webgl")||t.getContext("experimental-
webgl"))}catch(t){return this.Xo.ra.fire(xi.SPATIAL_UNSUPPORTED),!1}}},
{key:"supportedScanners",get:function()
{return[xe,Mr]}}]),n.frustumSurfaceArea=function(t,n,i){var
e=2*mo.SPHERE_RADIUS*2*Math.sin(Math.PI/180*(t/2));return
e*(e*n/i)/(4*Math.PI*Math.pow(mo.SPHERE_RADIUS,2))};var i=n.prototype;return
i.activate=function(){var t=this;return new r((function(n,i)
{if(window.THREE)n();else{var
e=document.createElement("script");e.src=t.tt.threeUrl,document.body.appendChild(e)
,e.onload=function(){n()}}})).then((function(){return t.qt()}))},i.qt=function()
{var t=this;this.ba=!0,this.ja=new
THREE.PerspectiveCamera(this.tt.fieldOfView,this.$.clientWidth/this.
$.clientHeight,1,2*mo.SPHERE_RADIUS),this.ja.target=new
THREE.Vector3(0,0,0),this.ja.layers.enable(1),this.ts(this.tt.directorTimeline),thi
s.La=new THREE.Scene,this.ns=new THREE.VideoTexture(this.
$),this.ns.generateMipmaps=!
1,this.ns.minFilter=THREE.NearestFilter,this.ns.maxFilter=THREE.NearestFilter,this.
ns.format=THREE.RGBFormat,this.es=new
mo(this.tt.projection,this.tt.stereoMode,this.ns),this.es.isStereo&&this.La.add(thi
s.es.right),this.La.add(this.es.left),this.Oa=new
THREE.WebGLRenderer,this.Oa.vr.enabled=!
0,this.Oa.setPixelRatio(window.devicePixelRatio),this.rs=document.createElement("di
v"),this.rs.appendChild(this.Oa.domElement),this.Z.appendChild(this.rs),this.os(),t
his.Xo.ra.$.setAttribute("crossorigin","anonymous"),this.ya(),this.Xo.ra.paused||
this.us(),this.as=new
bo(this.Oa),this.as.supported&&this.as.hasVRHeadset().then((function(n)
{setTimeout((function()
{t.Xo.fire(xi.WEBVR_HARDWARE_AVAILABLE,t.as.device)}),100)})).catch((function(t)
{}))},i.toggleVR=function(){var
t=this;if(this.as.isPresenting)this.as.exit().then((function()
{t.adjustRenderSize()})).catch((function(t)
{}));else{if(this.Xo.ra.paused)return;this.as.enter().then((function()
{t.adjustRenderSize()})).catch((function(t){}))}},i.onplay=functio
n(){this.ba&&(this.us(),this.adjustRenderSize())},i.deactivate=function()
{this.rs&&this.Z.removeChild(this.rs),this._a(),this.ba=!
1},i.snapToCenter=function(){var t=this;this.Ya.forEach((function(t){return
clearTimeout(t)}));var n=((this._coordinates.long>=180?360:0)-
this._coordinates.long)/11,i=(0-this._coordinates.lat)/11;this.Ha=0;for(var
e=function(e){t.Ya.push(setTimeout((function(){0===e&&(t.Ja=!0,t.tt.isMobile||
(t.Ka=1e3/t.Ga.motionRenderSpeed)),49===e&&(t.Ja=!1,t.tt.isMobile||
(t.Ka=1e3/t.Ga.videoFps)),t.ss(t._coordinates.lat+i/Math.pow(1.1,e),t._coordinates.
long+n/Math.pow(1.1,e)),t.za.lat=THREE.Math.radToDeg(t.Wa.x)
+t._coordinates.lat+i/Math.pow(1.1,e),t.za.long=THREE.Math.radToDeg(t.Wa.y)
+t._coordinates.long+i/Math.pow(1.1,e)}),e*t.Ka))},r=0;r<50;r+
+)e(r)},i.isStereo=function(){return!!this.es&&this.es.isStereo},i.ts=function(t)
{t&&t[0]&&void 0!==t[0].p&&"undefined"!
==t[0].y&&this.ss(t[0].p,t[0].y)},i.ss=function(t,n)
{this.Na.long=this._coordinates.long,this.Na.lat=this._coordinates.lat,t
%=360,this._coordinates.lat=Math.max(-85,Math.min(85,t)),n=(n%=360)>=0?
n:360+n,this._coordinates.long=n},i.makeContact=function(t)
{this.isUserInteracting=!0,this.Ya.forEach((function(t){return
clearTimeout(t)})),this.Ja=!
1,this.cs={x:t.x,y:t.y},this.Fa.long=this._coordinates.long,this.Fa.lat=this._coord
inates.lat,this.ls={long:this._coordinates.long,lat:this._coordinates.lat},this.tt.
isMobile||(this.Ka=1e3/this.Ga.motionRenderSpeed)},i.move=function(t)
{this.za.lat=THREE.Math.radToDeg(this.Wa.x)
+this.Na.lat,this.za.long=THREE.Math.radToDeg(this.Wa.y)+this.Na.long;var
n=this.ls.lat-.2*(this.cs.y-t.y),i=.2*(this.cs.x-t.x)
+this.ls.long;this.ss(n,i)},i.moveWheel=function(t)
{this.za.lat=THREE.Math.radToDeg(this.Wa.x)
+this.Na.lat,this.za.long=THREE.Math.radToDeg(this.Wa.y)+this.Na.long;var
n=this._coordinates.lat-.1*t.y,i=this._coordinates.long+.1*t.x;this.ss(n,i)},i.move
Device=function(t,n,i,e){this.Xa=!0;var r=new
THREE.Quaternion,o=window.orientation;null===o&&(o=this.$.clientWidth>this.
$.clientHeight?90:0),t=t?THREE.Math.degToRad(t):0,n=n?THREE.Math.degToRad(n):0,i=i?
THREE.Math.degToRad(i):0;var u=o?THREE.Math.degToRad(o):0,a=new
THREE.Vector3(0,0,1),s=new THREE.Euler,c=new THREE.Quaternion,l=new
THREE.Quaternion(-Math.sqrt(.5),0,0,Math.sqrt(.5));s.set(n,t,-
i,"YXZ"),r.setFromEuler(s),r.multiply(l),r.multiply(c.setFromAxisAngle(a,-
u)),this.Wa=(new
THREE.Euler).setFromQuaternion(r,"YXZ"),this.Ha=this.Wa.z,this.isUserInteracting||
this.Ja||this.ss(THREE.Math.radToDeg(this.Wa.x)-this.za.lat,-
THREE.Math.radToDeg(this.Wa.y)+this.za.long),this.$a||
(this.snapToCenter(),this.Xo.fire(xi.MOTION_START),this.$a=!
0)},i.releaseContact=function(t){if(this.za.lat=THREE.Math.radToDeg(this.Wa.x)-
this._coordinates.lat,this.za.long=THREE.Math.radToDeg(this.Wa.y)
+this._coordinates.long,this.isUserInteracting=!1,this.ls&&!t){var
n=Math.hypot(this._coordinates.long-this.ls.long,this._coordinates.lat-
this.ls.lat);this.fs(n)}},i.abandonMotion=function(){this.isUserInteracting=!
1,this.ls=null},i.keyPress=function(t){this.hs()||(this.isUserInteracting=!
0,this.Ya&&this.Ya.forEach((function(t){return clearTimeout(t)}))),this.Za[t]||
(this.Za[t]=!0)},i.keyUp=function(t){this.Za[t]=!1,this.hs()||
(this.isUserInteracting=!1,this.fs(1/0))},i.ds=function(){var
t=this;Object.keys(this.Za).forEach((function(n){if(t.Za[n])switch(n)
{case"up":t.ss(t._coordinates.lat+2,t._coordinates.long);break;case"down":t.ss(t._c
oordinates.lat-
2,t._coordinates.long);break;case"left":t.ss(t._coordinates.lat,t._coordinates.long
-
2);break;case"right":t.ss(t._coordinates.lat,t._coordinates.long+2)}}))},i.hs=funct
ion(){var t=this;return Object.keys(this.Za).map((function(n){return
t.Za[n]})).some((function(t){return t}))},i.fs=function(t){var
n=this;t>=20&&function(){var i={long:n._coordinates.long-
n.Na.long,lat:n._coordinates.lat-n.Na.lat};t===1/0&&(i.long/=2,i.lat/=2);for(var
e=function(t){n.Ya.push(setTimeout((function(){1===t&&(n.Ja=!0),49===t&&(n.Ja=!
1,n.Ka=1e3/n.Ga.videoFps);var
e=2/Math.pow(t,1.5);n.za.lat=THREE.Math.radToDeg(n.Wa.x)
+n._coordinates.lat+i.lat,n.za.long=THREE.Math.radToDeg(n.Wa.y)
+n._coordinates.long+i.long,n.ss(n._coordinates.lat+i.lat*e,n._coordinates.long+i.l
ong*e)}),t*n.Ka))},r=1;r<50;r++)e(r)}()},i.onseeked=function()
{this.ba&&this.vs()},i.onresize=function()
{this.adjustRenderSize(),this.isUserInteracting=!1},i.vs=function(){if(!
this.isVRPresenting)
{this.Va=THREE.Math.degToRad(90+this._coordinates.lat),this.Ba=THREE.Math.degToRad(
this._coordinates.long),this.ja.position.set(Math.sin(this.Va)*Math.cos(this.Ba),Ma
th.cos(this.Va),Math.sin(this.Va)*Math.sin(this.Ba)),this.ja.lookAt(this.ja.target)
,this.ja.rotation.z+=this.Ha;var
t=this.cameraProps;this.Xo.fire(xi.CAMERA_UPDATE,t),this.Ua.yaw===t.yaw&&this.Ua.pi
tch===t.pitch&&this.Ua.roll===t.roll&&this.Ua.fov===t.fov||
(this.Ua=t,this.Xo.fire(xi.CAMERA_CHANGE,t))}this.Oa.render(this.La,this.ja)},i.adj
ustRenderSize=function(){if(this.isVRPresenting)this.ja.aspect=this.
$.clientWidth/this.
$.clientHeight,this.ja.updateProjectionMatrix(),this.Oa.setSize(this.
$.clientWidth,this.$.clientHeight);else{this.$.clientWidth>this.$.clientHeight?
this.ja.aspect=Math.max(1,Math.min(2,this.$.clientWidth/this.
$.clientHeight)):this.ja.aspect=Math.max(1/3,Math.min(3,this.$.clientWidth/this.
$.clientHeight)),this.ja.updateProjectionMatrix();var t=le(this.$.clientWidth,this.
$.clientHeight,this.ja.aspect,1);this.Oa.setSize(t.width,t.height),this.rs.style.pa
ddingTop="".concat(t.top,"px")}},i.ya=function(){var
t=this;this.Oa.setAnimationLoop((function()
{t.hs()&&t.ds(),t.vs()}))},i._a=function()
{this.Oa.setAnimationLoop(null)},i.us=function()
{this.ps({backgroundColor:"#000",display:"block"})},i.os=function()
{this.ps({backgroundColor:"#000",display:"none"})},i.ps=function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=t.backgroundColor,i=t.display;this.rs.style.cssText="position:absolute;left:0;
top:0;margin-left:auto;margin-
right:auto;padding:0;background:".concat(n,";width:100%;height:100%;text-
align:center;display:").concat(i)},H(n,[{key:"currentCoordinates",get:function()
{return this._coordinates},set:function(t){var n=Q(t,2),i=n[0],e=n[1];if(i>90||i<-
90)throw new RangeError("Latitude should be a float between -90 and 90.");if(e<0||
e>360)throw new RangeError("Longitude should be a float between 0 and
360.");this.ss(i,e),this.vs()}},{key:"cameraProps",get:function()
{return{yaw:this._coordinates.long,pitch:this._coordinates.lat,roll:this.roll,fov:t
his.fieldOfView}},set:function(t)
{t=z(z({},this.cameraProps),t),this.fieldOfView=t.fov,this.roll=t.roll,this.current
Coordinates=[t.pitch,t.yaw]}},{key:"roll",get:function(){return
180*this.Ha/Math.PI},set:function(t){if(t<-180||t>180)throw new RangeError("Roll
should be a float between -180 and 180.");this.Ha=THREE.Math.degToRad(t)}},
{key:"isVRPresenting",get:function(){return this.as&&this.as.isPresenting}},
{key:"fieldOfView",get:function(){return this.ja?
this.ja.fov:this.tt.fieldOfView},set:function(t)
{this.ja.fov=t,this.ja.updateProjectionMatrix(),this.Oa.render(this.La,this.ja)}},
{key:"hasVRHeadset",get:function(){return this.as&&!!this.as.device}}]),n}
($r);function go(t){return"symbol"==V(t)||On(t)&&"[object Symbol]"==Dt(t)}var
yo=/^\s+|\s+$/g,_o=/^[-+]0x[0-9a-f]+$/i,ko=/^0b[01]+$/i,Eo=/^0o[0-7]+
$/i,To=parseInt;function So(t){if("number"==typeof t)return t;if(go(t))return
NaN;if(Pt(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Pt(n)?
n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(yo,"");var
i=ko.test(t);return i||Eo.test(t)?To(t.slice(2),i?2:8):_o.test(t)?NaN:+t}var xo=Mt?
Mt.prototype:void 0,Ao=xo?xo.toString:void 0;function Mo(t){if("string"==typeof
t)return t;if(Fn(t))return function(t,n){for(var i=-1,e=null==t?
0:t.length,r=Array(e);++i<e;)r[i]=n(t[i],i,t);return r}(t,Mo)+"";if(go(t))return
Ao?Ao.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function Co(t){return
null==t?"":Mo(t)}var Ro=At.isFinite,Io=Math.min,Oo=function(t){var
n=Math.round;return function(t,i){if(t=So(t),(i=null==i?0:Io(function(t){var
n=function(t){return t?(t=So(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-
1:1):t==t?t:0:0===t?t:0}(t),i=n%1;return n==n?i?n-i:n:0}(i),292))&&Ro(t)){var
e=(Co(t)+"e").split("e");return+((e=(Co(n(e[0]+"e"+(+e[1]+i)))+"e").split("e"))
[0]+"e"+(+e[1]-i))}return n(t)}}();function jo(t){return!isNaN(t)}function Lo(t)
{return Oo(t,3)}var Do=0;function Po(){var t=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:"b",n=++Do;return"".concat(t).concat(n)}Po(),Po();var
No=Po(),Fo=Po(),Uo=Po(),Vo=Po(),Bo=Po(),Ho=Po(),qo=Po(),Wo=Po(),zo=Po(),Go=Po(),Ko=
Po(),Yo=Po(),Jo=Po(),
$o=Po(),Xo=Po(),Zo=Po(),Qo=Po(),tu=Po(),nu=Po(),iu=Po(),eu=Object.freeze({__proto__
:null,CONFIG_CHANGED:Wo,TELECINE_READY:zo,TELECINE_VIDEO_INIT:Go,PLAY_INITIATED:Ko,
QUALITY_CHANGED:Yo,FORCED_QUALITY:Jo,CUE_CHANGED:
$o,CAPTIONS_CHANGED:Xo,SPATIAL_PLAYBACK_TOGGLED:Zo,PICTURE_IN_PICTURE_AVAILABLE:Qo,
PICTURE_IN_PICTURE_NOT_AVAILABLE:tu,PICTURE_IN_PICTURE_ACTIVATED:nu,PICTURE_IN_PICT
URE_DEACTIVATED:iu}),ru=Object.freeze({__proto__:null,EVENT_PENDING:"liveeventpendi
ng",EVENT_ACTIVE:"liveeventactive",EVENT_STARTING:"liveeventstarting",EVENT_STARTED
:"liveeventstarted",EVENT_ENDED:"liveeventended",ARCHIVE_STARTED:"livearchivestarte
d",ARCHIVE_DONE:"livearchivedone",ARCHIVE_ERROR:"livearchiveerror"}),ou={h264:"vide
o/mp4",hls:"application/vnd.apple.mpegurl",hlsLive:"application/x-
mpegURL",dash:"application/vnd.vimeo.dash+json",dashMpd:"video/vnd.mpeg.dash.mpd",v
p6:"video/x-
flv",vp8:"video/webm",webm:"video/webm",hds:"application/f4m"},uu={"application/vnd
.apple.mpegurl":"hls","application/vnd.vimeo.dash+json":"dash","video/vnd.mpeg.dash
.mpd":"dash","video/mp4":"progressive","video/webm":"progressive","video/x-
flv":"progressive","application/x-
mpegURL":"hlslive"},au=(z(z(z(z(z(z(z(z(z({},_i),Ti),Si),ru),xi),ki),Ai),Mi),eu),z(
z({},Si),ru));function su(t){var n;return"done"===(null==t||null==(n=t.archive)?
void
0:n.status)}function cu(t){return"pending"===(null==t?void 0:t.status)}function
lu(t){return"started"===(null==t?void 0:t.status)}function fu(t)
{return"ended"===(null==t?void 0:t.status)}function hu(t){return
du(t,"/playlist/refresh")}function du(t,n){var i,e=null==(i=t.request.files.hls)?
void
0:i.default_cdn,r=t.request,o=r.signature,u=r.timestamp,a=r.expires,s="https://".co
ncat(t.player_url,"/live/").concat(t.video.id),c="?
signature=".concat(o,"&time=").concat(u,"&expires=").concat(a,"&cdn=").concat(e);re
turn"".concat(s).concat(n).concat(c)}var
vu=An(Object.keys,Object),pu=Object.prototype.hasOwnProperty;function mu(t){if(!
Rn(t))return vu(t);var n=[];for(var i in Object(t))pu.call(t,i)&&"constructor"!
=i&&n.push(i);return n}var
bu=Yt(At,"DataView"),wu=Yt(At,"Promise"),gu=Yt(At,"Set"),yu=Yt(At,"WeakMap"),_u=Bt(
bu),ku=Bt(on),Eu=Bt(wu),Tu=Bt(gu),Su=Bt(yu),xu=Dt;(bu&&"[object DataView]"!=xu(new
bu(new ArrayBuffer(1)))||on&&"[object Map]"!=xu(new on)||wu&&"[object Promise]"!
=xu(wu.resolve())||gu&&"[object Set]"!=xu(new gu)||yu&&"[object WeakMap]"!=xu(new
yu))&&(xu=function(t){var n=Dt(t),i="[object Object]"==n?t.constructor:void 0,e=i?
Bt(i):"";if(e)switch(e){case _u:return"[object DataView]";case ku:return"[object
Map]";case Eu:return"[object Promise]";case Tu:return"[object Set]";case
Su:return"[object WeakMap]"}return n});var
Au=xu,Mu=Object.prototype.hasOwnProperty;function Cu(t){if(null==t)return!
0;if(Vn(t)&&(Fn(t)||"string"==typeof t||"function"==typeof t.splice||Wn(t)||ri(t)||
Nn(t)))return!t.length;var n=Au(t);if("[object Map]"==n||"[object Set]"==n)return!
t.size;if(Rn(t))return!mu(t).length;for(var i in t)if(Mu.call(t,i))return!1;return!
0}function Ru(t){return Vn(t)?hi(t):mu(t)}function Iu(){return[]}var
Ou=Object.prototype.propertyIsEnumerable,ju=Object.getOwnPropertySymbols,Lu=ju?
function(t){return null==t?[]:(t=Object(t),function(t,n){for(var i=-1,e=null==t?
0:t.length,r=0,o=[];++i<e;){var u=t[i];n(u)&&(o[r++]=u)}return o}(ju(t),
(function(n){return Ou.call(t,n)})))}:Iu;function Du(t,n){for(var i=-
1,e=n.length,r=t.length;++i<e;)t[r+i]=n[i];return t}var
Pu=Object.getOwnPropertySymbols?function(t){for(var
n=[];t;)Du(n,Lu(t)),t=Mn(t);return n}:Iu;function Nu(t,n,i){var e=n(t);return
Fn(t)?e:Du(e,i(t))}function Fu(t){return Nu(t,Ru,Lu)}function Uu(t){return
Nu(t,vi,Pu)}var Vu=Object.prototype.hasOwnProperty,Bu=/\w*$/,Hu=Mt?
Mt.prototype:void 0,qu=Hu?Hu.valueOf:void 0;var Wu=ii&&ii.isMap,zu=Wu?
Zn(Wu):function(t){return On(t)&&"[object Map]"==Au(t)},Gu=ii&&ii.isSet,Ku=Gu?
Zn(Gu):function(t){return On(t)&&"[object Set]"==Au(t)},Yu={};function
Ju(t,n,i,e,r,o){var u,a=1&n,s=2&n,c=4&n;if(i&&(u=r?i(t,e,r,o):i(t)),void 0!
==u)return u;if(!Pt(t))return t;var l=Fn(t);if(l){if(u=function(t){var
n=t.length,i=new t.constructor(n);return n&&"string"==typeof
t[0]&&Vu.call(t,"index")&&(i.index=t.index,i.input=t.input),i}(t),!a)return
Tn(t,u)}else{var f=Au(t),h="[object Function]"==f||"[object
GeneratorFunction]"==f;if(Wn(t))return yn(t,a);if("[object Object]"==f||"[object
Arguments]"==f||h&&!r){if(u=s||h?{}:In(t),!a)return s?function(t,n){return
si(t,Pu(t),n)}(t,function(t,n){return t&&si(n,vi(n),t)}(u,t)):function(t,n){return
si(t,Lu(t),n)}(t,function(t,n){return t&&si(n,Ru(n),t)}(u,t))}else{if(!Yu[f])return
r?t:{};u=function(t,n,i){var e=t.constructor;switch(n){case"[object
ArrayBuffer]":return kn(t);case"[object Boolean]":case"[object Date]":return new
e(+t);case"[object DataView]":return function(t,n){var i=n?
kn(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}
(t,i);case"[object Float32Array]":case"[object Float64Array]":case"[object
Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object
Uint8Array]":case"[object Uint8ClampedArray]":case"[object
Uint16Array]":case"[object Uint32Array]":return En(t,i);case"[object Map]":return
new e;case"[object Number]":case"[object String]":return new e(t);case"[object
RegExp]":return function(t){var n=new t.constructor(t.source,Bu.exec(t));return
n.lastIndex=t.lastIndex,n}(t);case"[object Set]":return new e;case"[object
Symbol]":return function(t){return qu?Object(qu.call(t)):{}}(t)}}(t,f,a)}}o||(o=new
hn);var d=o.get(t);if(d)return d;o.set(t,u),Ku(t)?t.forEach((function(e)
{u.add(Ju(e,n,i,e,t,o))})):zu(t)&&t.forEach((function(e,r)
{u.set(r,Ju(e,n,i,r,t,o))}));var v=c?s?Uu:Fu:s?keysIn:Ru,p=l?void 0:v(t);return
function(t,n){for(var i=-1,e=null==t?0:t.length;++i<e&&!1!==n(t[i],i););}(p||t,
(function(e,r){p&&(e=t[r=e]),ai(u,r,Ju(e,n,i,r,t,o))})),u}function $u(t){return
Ju(t,5)}function Xu(t){var n=this,i={},e={get attributes(){return
Object.assign({},n)},get previousAttributes(){return i},clear:function(){r();var
t=n.attributes;for(var i in t)delete n[i]},set:function(t){for(var i in
r(),t=$u(t))n[i]=t[i]},clone:function(){return new
Xu(n.attributes)},toJSON:function(){return $u(n.attributes)}};function r()
{Cu(n.attributes)||(i=$u(n.attributes))}return e.set(t),ut(n,e)}function Zu(t,n)
{var i=new Xu(gi(t,n)),e=!1;return at(i,{reset:function(t){return
i.clear(),function(t){e=!0,i.set(t),gi(i,n)}(t),i},isNewVideo:function(){var
t=i.previousAttributes;return!e||t.video.id!==i.video.id||t.video.version.current!
==i.video.version.current||t.video.live_event&&!su(t.video.live_event)&&(!
i.video.live_event||su(i.video.live_event))}})}Yu["[object Arguments]"]=Yu["[object
Array]"]=Yu["[object ArrayBuffer]"]=Yu["[object DataView]"]=Yu["[object
Boolean]"]=Yu["[object Date]"]=Yu["[object Float32Array]"]=Yu["[object
Float64Array]"]=Yu["[object Int8Array]"]=Yu["[object Int16Array]"]=Yu["[object
Int32Array]"]=Yu["[object Map]"]=Yu["[object Number]"]=Yu["[object
Object]"]=Yu["[object RegExp]"]=Yu["[object Set]"]=Yu["[object
String]"]=Yu["[object Symbol]"]=Yu["[object Uint8Array]"]=Yu["[object
Uint8ClampedArray]"]=Yu["[object Uint16Array]"]=Yu["[object Uint32Array]"]=!
0,Yu["[object Error]"]=Yu["[object Function]"]=Yu["[object WeakMap]"]=!1;var
Qu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ta=/^\w*$/;function na(t,n)
{if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new
TypeError("Expected a function");var i=function i(){var e=arguments,r=n?
n.apply(this,e):e[0],o=i.cache;if(o.has(r))return o.get(r);var
u=t.apply(this,e);return i.cache=o.set(r,u)||o,u};return i.cache=new(na.Cache||
fn),i}na.Cache=fn;var ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)
[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ea=/\\(\\)?/g,ra=function(t){var
n=na((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(ia,
(function(t,i,e,r){n.push(e?r.replace(ea,"$1"):i||t)})),n}),(function(t){return
500===i.size&&i.clear(),t})),i=n.cache;return n}();function oa(t,n){return Fn(t)?
t:function(t,n){if(Fn(t))return!1;var i=V(t);return!("number"!=i&&"symbol"!
=i&&"boolean"!=i&&null!=t&&!go(t))||ta.test(t)||!Qu.test(t)||null!=n&&t in
Object(n)}(t,n)?[t]:ra(Co(t))}function ua(t){if("string"==typeof t||go(t))return
t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function aa(t,n){for(var
i=0,e=(n=oa(n,t)).length;null!=t&&i<e;)t=t[ua(n[i++])];return i&&i==e?t:void
0}function sa(t,n,i){var e=null==t?void 0:aa(t,n);return void 0===e?i:e}function
ca(t,n,i){return void 0===i&&(i=n,n=void 0),void 0!==i&&(i=(i=So(i))==i?i:0),void
0!==n&&(n=(n=So(n))==n?n:0),function(t,n,i){return t==t&&(void 0!==i&&(t=t<=i?
t:i),void 0!==n&&(t=t>=n?t:n)),t}(So(t),n,i)}function la(t){return t.quality||
t.metadata.quality}function fa(t){var n=arguments.length>1&&void 0!
==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!
==arguments[2]&&arguments[2],e=t.url;if("avc_url"in t&&(e=t.avc_url),i)return e;var
r=n?Wi.spatialHEVC&&Wi.hevc:Wi.hevc,o=n?Wi.spatialHEVC&&Wi.hdr:Wi.hdr;return
o&&"hevc_hdr_url"in t?e=t.hevc_hdr_url:r&&"hevc_sdr_url"in t?
e=t.hevc_sdr_url:Wi.av1&&"av1_url"in t&&(e=t.av1_url),e}function ha(t){return
t.fallback_url}function da(t){var n=arguments.length>1&&void 0!
==arguments[1]&&arguments[1],i=t.request.files,e=i.hls.default_cdn,r=t.request.drm,
o=i.hls.cdns[e],u=n?
ha(o):fa(o,t.video.spatial,r);return{id:"hls-".concat(e,"-").concat(t.video.id),src
:u,mime:ou.hls,priority:2,metadata:
{cdn:e,origin:i.hls.cdns[e].origin,quality:"sd"}}}function va(t){var
n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.request.files;return
Cu(i.dash)?[]:Object.keys(i.dash.cdns).map((function(e){var r=i.dash.cdns[e],o=n?
ha(r):fa(r,t.video.spatial);return{id:"dash-".concat(e,"-").concat(t.video.id),src:
o,mime:t.request.drm?ou.dashMpd:ou.dash,priority:e===i.dash.default_cdn?
1:2,metadata:{cdn:e,origin:i.dash.cdns[e].origin,quality:"sd"}}}))}function pa(t)
{if(Cu(t.progressive))return[];var n=t.progressive;return"progressive_avc"in
t&&(n=t.progressive_avc),n.filter(ba(n))}function ma(t){if("number"==typeof
t)return t;var n=t.split("-");return 5===n.length?n[0]:parseInt(n[0],10)}function
ba(t){var n=t.filter(wa).map(la);return function(t){return-1===n.indexOf(la(t))||
wa(t)}}function wa(t){var n=t.fps;return"metadata"in
t&&(n=t.metadata.fps),n>30}function ga(t){return ya(t)>=720}function ya(t)
{return"string"!=typeof t&&(t=la(t)),parseInt(t,10)}function _a(t){var
n=pa(t.request.files).map((function(t){return t.quality}));return
ka(t,t.embed.quality,n)}function ka(t,n){var i=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:[];return t.embed.on_site||Wi.android||Wi.iOS||
Wi.windowsPhone||!n||i.length&&-1===i.indexOf(n)?null:n}function Ea(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"desc";return
function(n,i){var e=ya(n),r=Ta(n),o=ya(i),u=Ta(i);return"asc"===t?e-o||r-u:o-e||u-
r}}function Ta(t){return"object"!==V(t)?0:"fps"in t?t.fps:"metadata"in t&&"fps"in
t.metadata?t.metadata.fps:0}function Sa(t){var
n=t.video.live_event,i=t.request.files;if(!Cu(i.hls)){var
e,r=i.hls.default_cdn,o=i.hls.cdns[r].json_url||(null==(e=n.playback)?void
0:e.hls_noredirect),u=t.request.flags.live_dash?
2:1;return{id:"hls-".concat(r,"-").concat(t.video.id),src:o,mime:ou.hlsLive,priorit
y:u,metadata:{cdn:r,origin:i.hls.cdns[r].origin,quality:"sd"}}}return
null}function xa(t,n){var i=[];if(n.video){var
e=n.video.currentFile.mime;if(e===ou.hlsLive)return
n.manifest.video.map((function(t){return z(z({},t),{},
{quality:"".concat(t.height,"p")})}));if([ou.dash,ou.dashMpd].includes(e)){var
r=n.video.drmHandler&&"sd-fallback"===n.video.drmHandler.state;i=function(t){var
n=arguments.length>1&&void 0!
==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!
==arguments[2]&&arguments[2];if(!t)return[];var e=t.streams;"streams_avc"in
t&&(e=t.streams_avc);var r=n?Wi.spatialHEVC&&Wi.hevc:Wi.hevc,o=n?
Wi.spatialHEVC&&Wi.hdr:Wi.hdr;return o&&"streams_hevc_hdr"in t?
e=t.streams_hevc_hdr:r&&"streams_hevc_sdr"in t?
e=t.streams_hevc_sdr:Wi.av1&&"streams_av1"in
t&&(e=t.streams_av1),i&&"streams_fallback"in t&&(e=t.streams_fallback),e}
(t.request.files.dash,t.video.spatial,r)}else i=n.video.files.filter((function(t)
{return"progressive"===uu[t.mime]}))}return i.filter(ba(i)).sort(Ea())}function
Aa(t){var
n=la(t),i={"1440p":"2K","2160p":"4K","2700p":"5K","3240p":"6K","3780p":"7K","4320p"
:"8K"};for(var e in i)n=n.replace(e,i[e]);return n}function Ma(t){return
Wi.spatialPlayback&&t.video.spatial?35:50}function Ca(t){return
t.request.text_tracks.map((function(t)
{return{id:t.id,src:t.url,kind:t.kind,label:t.label,language:t.lang}}))}var
Ra={captureException:function(t){},captureMessage:function(t)
{},captureBreadcrumb:function(){}},Ia=Ra,Oa=function(t)
{Ia=Object.assign({},Ra,t)},ja=function(t,n){return
Ia.captureException(t,n)},La=function(t,n){var i=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:"backbone",e=arguments.length>3&&void 0!==arguments[3]?
arguments[3]:"info";return Ia.captureBreadcrumb(t,n,i,e)};function Da(t,n,i){var
e=t.embed.playsinline&&(Wi.mobileAndroid||Wi.iOS>=10),r=!1,o=!1,u=!1,a=!
0,s="auto";function c(t){if(!a&&i.buffered&&i.buffered.length>0){t=t||
i.currentTime;var e=function(t,n){var i=t.length-1;if(t.length>1)for(var
e=0,r=t.length;e<r;e++)if(t.start(e)<=n&&t.end(e)>=n){i=e;break}return i}
(i.buffered,t),o=i.buffered.end(e),s=o/i.duration,c=i.duration;if(n.fire(_i.PROGRES
S,{loaded:o,duration:c,loadProgress:s}),u&&r&&o===i.duration)return
void(r&&i.paused&&i.play().catch(ja))}}function l(n){if("auto"!==n){var
e=xa(t,i).reverse().map((function(t){return t.quality})).indexOf(n);-1!
==e&&(La("Switched to ".concat(n),
{},"video"),i.video.currentFile.restrictedStreamIndexes=[e])}else
i.video.currentFile.restrictedStreamIndexes=[]}function f(e){var
r=xa(t,i).map((function(t){return
t.quality})),o=ka(t,t.embed.quality,r);o&&n.fire(Jo,o),l(o||"auto")}return n.on(Go,
(function(){var n;i.playsinline=e,i.muted=t.embed.muted,i.disablePictureInPicture=!
t.embed.pip,i.autoPictureInPicture=t.embed.autopip,i.lowLatencyMode=null==(n=t.vide
o.live_event)?void 0:n.low_latency})),n.on(Fo,(function(){a=!0,i.paused||
i.pause(),o=!1,r=!1,setTimeout((function(){i.currentTime=0}),300)})),i.on(_i.PLAY,
(function(){a=!1,n.fire(_i.PLAY,i.currentTime)})),i.on(_i.PAUSE,(function(){r=!
1,n.fire(_i.PAUSE,i.currentTime,i.ended)})),i.on(_i.PLAYING,(function(t)
{c()})),i.on(_i.TIME_UPDATE,(function(t){var e=i.currentTime;if(!a){var
r=i.duration,o=e/r,u=i.playbackRate;n.fire(_i.TIME_UPDATE,
{currentTime:e,duration:r,timeProgress:o,playbackRate:u})}})),i.on(_i.ENDED,
(function(t){i.loop?i.play().catch(ja):(r=!
1,n.fire(_i.ENDED,t))})),i.on(_i.LOADED_METADATA,(function(n){var
e=i.duration;if(isFinite(e)&&e>0){if(e<t.video.duration-1||
e>t.video.duration+1)return;t.video.duration=e}t.video.video_width=i.videoWidth,t.v
ideo.video_height=i.videoHeight})),i.on(_i.DURATION_CHANGE,(function(n){var
e=i.duration;isFinite(e)&&(t.video.duration>0&&(e<t.video.duration-1||
e>t.video.duration+1)||
(t.video.duration=e))})),i.on(_i.PROGRESS,c),i.on(Ti.BUFFER_STARTED,(function(){u=!
0})),i.on(Ti.BUFFER_ENDED,(function(){u=!1})),n.on(No,(function(n,e){e||
(e=(i.duration||t.video.duration)*ca(n,0,1)),e=ca(e,0,i.duration||
t.video.duration),i.currentTime=e})),i.on(_i.SEEKING,(function(){var
t=i.currentTime,e=i.duration,r=t/e;n.fire(_i.SEEKING,
{currentTime:t,duration:e,timeProgress:r})})),i.on(_i.SEEKED,(function(){c();var
t=i.currentTime,e=i.duration,r=t/e;n.fire(_i.SEEKED,
{currentTime:t,duration:e,timeProgress:r})})),i.on(Ti.CURRENT_FILE_CHANGE,
(function(e){La("Current file changed",
{id:e.id,mime:e.mime,src:e.src,metadata:e.metadata},"video"),e.metadata.quality,
[ou.dash,ou.dashMpd].includes(e.mime)&&f(),[ou.hlsLive].includes(e.mime)?
i.once(Ti.STREAMS_LOADED,(function(){f()})):function(i){var
e=_a(t);e&&n.fire(Jo,e)}()})),{play:function(){return r=!0,o||(n.fire(Ko),o=!
0),i.play()},pause:function(){r=!1,i.pause()},get quality(){return s},set
quality(e){!function(e){var
r=i.video.currentFile.mime;if([ou.dash,ou.dashMpd,ou.hlsLive].includes(r))l(e);else
{var o=xa(t,i).filter((function(t){return
t.metadata.quality===e}));o.length>0&&(a=!
0,i.video.currentFile=o[0])}s=e,n.fire(Yo,e)}(e)}}}function Pa(t,n,i){var e=!
1,r=i.presentationMode;function o(){!i.supportsPresentationMode("picture-in-
picture")||Wi.spatialPlayback&&t.video.spatial?
n.fire(tu):n.fire(Qo)}i.on(_i.LOADED_METADATA,(function(){e=!0})),i.on(_i.PLAY,
(function(){e?o():i.once(_i.LOADED_METADATA,o)})),i.on(Ti.PRESENTATION_MODE_CHANGE,
(function(t){"inline"===r&&"picture-in-picture"===t&&n.fire(nu),"picture-in-
picture"===r&&"inline"===t&&n.fire(iu),r=t,i.video.textTracks.forEach((function(n)
{"picture-in-
picture"===t&&"hidden"===n.mode&&(n.mode="showing"),"inline"===t&&"showing"===n.mod
e&&(n.mode="hidden")}))})),n.on(Ho,(function(){i.supportsPresentationMode("picture-
in-picture")&&(i.presentationMode="picture-in-picture")})),n.on(qo,(function()
{i.supportsPresentationMode("picture-in-
picture")&&(i.presentationMode="inline")}))}function Na(t,n,i){var
e=null;Wi.spatialPlayback&&(n.on(Go,(function()
{e&&(i.deactivateEffect(wo),e=null,n.fire(Zo,e));var
r=t.video.spatial;r&&(t.request.drm||i.supportsEffect(wo)&&(e=i.activateEffect(wo,
{threeUrl:t.request.urls.three_js,fps:t.video.fps,fieldOfView:r.fov,directorTimelin
e:r.director_timeline,projection:r.projection,stereoMode:r.stereo_mode,initialView:
r.initial_view,isMobile:Wi.android,dimensions:t.embed.on_site?
{width:1080,height:540}:
{width:640,height:360}}),n.fire(Zo,e)))})),i.on(xi.SPATIAL_UNSUPPORTED,(function()
{e&&(i.deactivateEffect(wo),e=null,n.fire(Zo,e))})))}function Fa(t,n,i){var
e=null;n.on(Go,(function()
{e&&(i.deactivateEffect(ho),e=null),t.video.canvas&&(t.request.drm||
i.supportsEffect(ho)&&(e=i.activateEffect(ho)))}))}var Ua=bi((function(t,n,i)
{pi(t,n,i)}));function Va(t,n,i){return i?n?n(t):t:(t&&t.then||(t=r.resolve(t)),n?
t.then(n):t)}var Ba=function(){function t(t,n,i)
{rt(this),this.ms=$u(t),this.bs=t.session_url||
t.sessionUrl,this.ws=n,this.ys=i,this._s=!1,this.ks=!1,this.Es()}var
n=t.prototype;return n.disable=function(){this.ks=!0},n.forcePolling=function()
{this.isForcePolling||(this._s=!0,this.Es())},n.unforcePolling=function(){this._s=!
1},n.Es=function(){!1!==this.ms.polling&&(this.Ts()?
this.Ss():this.As()&&this.Ms())},n.As=function(){var t;return!
(fu(this.ms)&&"started"!==(null==(t=this.ms.archive)?void 0:t.status)||!
this.isForcePolling&&lu(this.ms))},n.Ts=function(){return!this.bs||!(!cu(this.ms)||
null!==this.ms.id)},n.Cs=function(){try{var t=this;return Va(Xe(t.ws).json(),
(function(n){return t.bs=n.url,n.url}))}catch(t){return
r.reject(t)}},n.Ms=function(){try{var t=this;if(t.ks)return;var n,i={};return
Wi.browser.ie&&(i={Pragma:"no-cache","Cache-Control":"no-cache"}),function(t,n)
{return t&&t.then?t.then(n):n()}(function(e,r){try{var
o=Va(Xe({url:t.bs,retry:3,retryStatus:function(t){return[410].includes(t)||
Re.retryStatus(t)},hooks:{beforeRetry:[t.Zt.bind(t)]},headers:i}).json(),
(function(t){n=t}))}catch(t){return r()}return o&&o.then?o.then(void 0,r):o}(0,
(function(){throw new Error("Hit max retries polling ".concat(t.bs))})),
(function(i){if(n.status!==t.ms.status){var
e;if(fu(n)&&"provision_expire"===n.terminate_reason)return
t.bs=null,t.ms.id=null,void setTimeout(t.Es.bind(t),5e3);var
r=(q(e={},"active",au.EVENT_ACTIVE),q(e,"pending",au.EVENT_PENDING),q(e,"started",a
u.EVENT_STARTED),q(e,"ended",au.EVENT_ENDED),e)[n.status];try{t.fire(r,n)}catch(t)
{throw new Error("Error firing live event status change
".concat(t))}}if(n.archive&&(!t.ms.archive||n.archive.status!
==t.ms.archive.status)){var
o,u=(q(o={},"started",au.ARCHIVE_STARTED),q(o,"done",au.ARCHIVE_DONE),q(o,"error",a
u.ARCHIVE_ERROR),o)
[n.archive.status];t.fire(u,n)}t.ms=Ua(t.ms,n),t.As()&&setTimeout(t.Ms.bind(t),5e3)
}))}catch(t){return r.reject(t)}},n.Zt=function(t,n){try{return Va(this.Cs(),
(function(n){t.url=n}))}catch(t){return r.reject(t)}},n.Ss=function(){try{var
t=this;if(t.ks)return;return Va(Xe(t.ys).json(),(function(n){var i=!1;return
function(e,r){var o=function(){if(null!==n.ingest.session_id)return
t.ms.id=n.ingest.session_id,Va(t.Cs(),(function(){t.Ms(),i=!0}))}();return
o&&o.then?o.then(r):r(o)}(0,(function(n){if(i)return
n;setTimeout(t.Ss.bind(t),5e3)}))}))}catch(t){return r.reject(t)}},H(t,
[{key:"isForcePolling",get:function(){return this._s}}]),t}();function Ha(t,n,i)
{return i?n?n(t):t:(t&&t.then||(t=r.resolve(t)),n?t.then(n):t)}function qa(t)
{return function(){for(var n=[],i=0;i<arguments.length;i+
+)n[i]=arguments[i];try{return r.resolve(t.apply(this,n))}catch(t){return
r.reject(t)}}}function Wa(t,n,i){var e,r,o,u,a=qa((function(t){return function(n,e)
{try{var r=Ha(ft("module/streamroot.js"),(function(n){return n(i,
{TelecineEvents:Ti,VideoEvents:_i},t)}))}catch(t){return null}return r&&r.then?
r.then(void 0,e):r}(0,(function(t){return null}))})),s=qa((function()
{if(o&&o.stop(),t.video.p2p)return u=new dt,function(n,e){var r=function(){if(!
o)return i.bufferTarget=30,i.presentationDelay=30,Ha(a(t.video.p2p),(function(t)
{o=t}))}();return r&&r.then?r.then(e):e()}(0,(function()
{o.setUp(),u.resolve()}))}));function c(){r&&(r.disable(),r=null)}function l()
{i.endLive()}return n.on(Wo,(function(){e&&!t.isNewVideo()||(e=!
0,s(),c(),t.video.live_event&&!su(t.video.live_event)&&function(i){(r=new
Ba(i,function(t){return du(t,"/session/refresh")}(t),function(t)
{return"https://".concat(t.vimeo_url,"/live_event/status?
clip_id=").concat(t.video.id)}
(t))).on(au.EVENT_ENDED,l),Object.keys(au).forEach((function(t){var i=au[t];r.on(i,
(function(t){n.fire(i,t)}))}))}(t.video.live_event))})),n.on(Uo,(function()
{o&&(o.destroy(),o=null),c()})),i.on(au.STREAM_ONLINE,(function()
{r.isForcePolling&&r.unforcePolling()})),i.on(au.STREAM_OFFLINE,(function()
{r.isForcePolling||r.forcePolling()})),{get p2pReady(){return u}}}function za(t)
{var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!
t||"null"===t||0===n.length)return{track:null};var
i=t.split("."),e=Q(i,2),r=e[0],o=e[1],u=r.split(/[-_]/),a=Q(u,1),s=a[0],c=r!
==s,l=n.filter((function(t){return c&&t.language===r||
t.language===s})).sort((function(t,n){var i=2*(t.language===s&&t.kind===o)
+2*(t.language===r)+1*(t.kind===o);return 2*(n.language===s&&n.kind===o)
+2*(n.language===r)+1*(n.kind===o)-i}));return l.length>0?
{track:l[0],exactMatch:l[0].language===r&&l[0].kind===o}:{track:null}}function
Ga(t,n,i){var e;function r(){if(0!==n.video.textTracks.length)
{if(n.video.textTracks.forEach((function(t)
{t.on("cuechange",o),t.on("modechange",u)})),n.video.textTracks.language&&Q(n.video
.textTracks.language.split(/[-_]/),1)[0]!=Q(n.video.textTracks.language.split(/[-
_]/),1)[0]){var
i="".concat(n.video.textTracks.language,".subtitles");if(za(i,n.video.textTracks).t
rack)return void t.fire(Vo,i)}t.fire(Bo)}else t.fire(Bo)}function o(n){for(var
i,e=n.target,r=e.activeCues,o=[],u=0,a=r.length;u<a;u++)""!
==r[u].text.replace(/^\s+|\s+
$/gm,"")&&((i=document.createElement("span")).appendChild(r[u].getCueAsHTML()),o.pu
sh({html:i.innerHTML.replace(/\n/g,"<br>"),text:r[u].text}));t.fire($o,e,o)}functio
n u(n){var e=n.target,r=i.querySelector("video");Wi.iOS&&function(t){var
n=[document.fullscreenElement,document.webkitFullscreenElement,document.webkitCurre
ntFullScreenElement,document.mozFullScreenElement,document.msFullscreenElement].fin
d((function(t){return void 0!==t}));return void 0!==n?!!
n:t.webkitDisplayingFullscreen}
(r)&&"showing"===e.mode&&t.fire(Xo,e)}t.on(Go,r),t.on(Vo,(function(i){if(!e||e.id!
==i){var r=n.video.textTracks.getTrackById(i),o=!0;if(!r){var
u=za(i,n.video.textTracks);r=u.track,o=u.exactMatch}r!==e&&setTimeout((function()
{n.video&&n.video.textTracks.forEach((function(t)
{t.mode=t===r?"hidden":"disabled"})),t.fire(Xo,r,!o),e=r}),0)}})),t.on(Bo,
(function(){setTimeout((function(){n.video&&n.video.textTracks.forEach((function(t)
{t.mode="disabled"})),t.fire($o),e&&(e=null,t.fire(Xo,null))}),0)})),t.on(Ti.TEXT_T
RACKS_AVAILABLE,r)}function Ka(t,n,i){var e,r,o;function u(t,n)
{t.forEach((function(t){var n=e.video.files.getFileById(t.id);n&&n.src!
==t.src&&(n.src=t.src)})),n.forEach((function(t){var
n=e.video.textTracks.getTrackById(t.id);n&&n.src!==t.src&&(n.src=t.src)}))}return
function(){var n;e=new fo(i,[Mr,zr,Jr,xe],{externalDisplays:
[AirPlayExternalDisplay],mediaSourceScanner:
{droppedFrameSwitchPercent:Ma(t)},tests:t.request.ab_tests,fileCodecs:t.request.fil
e_codecs,bufferTarget:t.video.buffer_target,presentationDelay:t.video.presentation_
delay,lowLatencyMode:null==(n=t.video.live_event)?void 0:n.low_latency})}
(),Object.values(_i).filter((function(t){return!
[_i.TIME_UPDATE,_i.PROGRESS,_i.SUSPEND,_i.ERROR].includes(t)})).forEach((function(t
){e.on(t,(function(){var n=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:"";La(t,n,"video event")}))})),e.on(Ti.STREAMS_LOADED,(function(n)
{n.video.forEach((function(n){var i=function(t,n){return n.find((function(n){return
ma(n.id)===String(t)||ma(n.id)===ma(t)}))}(n.id,xa(t,e));i?
(n.profile=i.profile,n.quality=i.quality,n.fps=i.fps):
(n.profile=null,n.quality="".concat(n.height,"p"),n.fps=n.framerate)}))})),e.on(Ti.
STREAM_CHANGE,(function(t){var i=t.index,e=t.streams,r=e[i];La("Stream
changed",r,"video"),n.fire(Ti.STREAM_CHANGE,r,i,e)})),e.on(Ti.STREAM_TARGET_CHANGE,
(function(t){var
i=t.index,e=t.streams,r=e[i];n.fire(Ti.STREAM_TARGET_CHANGE,r,i,e)})),e.on(Ti.DRM_K
EY_SWITCH,(function(){if(t.request.drm.fallback_asset){var n=Ca(t);u(function(t)
{var
n=t.request.files,i=[],e=t.request.drm&&Wi.browser.safari;return(n.hls&&(Wi.iPhone|
|Wi.iPad)||e)&&(i=i.concat(da(t,!0))),n.dash&&!e&&(i=i.concat(va(t,!0))),i}
(t),n)}})),function(t,n,i){i.forEach((function(i){t(i,(function(){for(var
t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.apply(void 0,
[i].concat(e))}))}))}(e.on,n.fire,
[ki.ACTIVATED,ki.AVAILABLE,ki.DEACTIVATED,ki.UNAVAILABLE,Si.STREAM_OFFLINE,Si.STREA
M_ONLINE,Si.BUFFER_GAP_JUMP,Si.BUFFER_GAP_JUMP_PREVENT,Si.STALL_JUMP,Ai.MEDIASESSIO
N_PAUSE,Ai.MEDIASESSION_PLAY,Ai.MEDIASESSION_SEEK_BACKWARD,Ai.MEDIASESSION_SEEK_FOR
WARD,Ti.AV_DURATION_MISMATCH,Ti.BANDWIDTH,Ti.BUFFER_ENDED,Ti.BUFFER_OCCUPANCY,Ti.BU
FFER_STARTED,Ti.CHAPTER_CUES_UPDATED,Ti.CUE_POINT,Ti.CURRENT_FILE_CHANGE,Ti.DOWNLOA
D_END,Ti.DOWNLOAD_TIMEOUT,Ti.DRM_AUTH_SUCCESS,Ti.DRM_KEY_SWITCH,Ti.DROPPED_FRAMES,T
i.MANIFEST_LOADED,Ti.MANIFEST_TIMEOUT,Ti.QUOTA_EXCEEDED_ERROR,Ti.SCANNER_CHANGE,Ti.
STREAM_CHANGE_START,Ti.STREAM_BUFFER_END,Ti.STREAM_BUFFER_START,Ti.TEXT_TRACKS_AVAI
LABLE,xi.CAMERA_UPDATE,xi.CAMERA_CHANGE,xi.MOTION_END,xi.MOTION_START,xi.SPATIAL_UN
SUPPORTED,xi.WEBVR_ENTER,xi.WEBVR_EXIT,xi.WEBVR_HARDWARE_AVAILABLE,Mi.BRAIN_ML_SWIT
CH_TO_SKYFIRE,Mi.BRAIN_ML_MODEL_INPUTS,_i.DURATION_CHANGE,_i.ERROR,_i.LOAD_START,_i
.LOADED_DATA,_i.LOADED_METADATA,_i.PLAYING,_i.RATE_CHANGE,_i.RESIZE,_i.STALLED,_i.V
OLUME_CHANGE,_i.WAITING,_i.ENTER_PICTURE_IN_PICTURE,_i.LEAVE_PICTURE_IN_PICTURE]),n
.fire(zo),new Ga(n,e,i),new Pa(t,n,e),new Na(t,n,e),new Fa(t,n,e),o=new
Wa(t,n,e),r=new Da(t,n,e),n.on(Wo,(function(){var r=t.video.live_event;if(cu(r)||
function(t){return"active"===(null==t?void 0:t.status)}(r)||fu(r)&&!
su(r))e.video=null;else if(!lu(r)||!e.video||t.isNewVideo()){var a=lu(r)?
function(t){var n=[],i=Sa(t);i&&n.push(i);var e=function(t){var
n,i=t.video.live_event,e=t.request.files;if(Cu(e.dash))return null;var
r=e.dash.default_cdn,o=e.dash.cdns[r].url||(null==(n=i.playback)?void
0:n.dash_noredirect),u=t.request.flags.live_dash?
2:1;return{id:"dash-".concat(r,"-").concat(t.video.id),src:o,mime:ou.dashMpd,priori
ty:u,metadata:{cdn:r,origin:e.dash.cdns[r].origin,quality:"sd"}}}(t);return
e&&n.push(e),n}(t):function(t){var
n=t.request.files,i=pa(n),e=_a(t),r=t.request.cookie.quality||e||function(t){var
n=pa(t.request.files),i=n.some(ga);Wi.mobileAndroid&&(i=!1);var e="720p";if(i){var
r=n.map(la);-1!==r.indexOf("1080p")&&-1===r.indexOf("720p")&&(e="1080p")}return
t.request.cookie.hd||t.video.default_to_hd?e:"360p"}(t),o=function(t){var
n=t.files,i=void 0===n?[]:n,e=t.preference,r=void
0===e?"360p":e,o=t.priorityOffset,u=void 0===o?0:o;(i=U(i)).sort(Ea());var
a=i.map(la);if(r){-1===a.indexOf(r)&&(a.push(r),a.sort((function(t,n){return ya(n)-
ya(t)})));var
s=a.indexOf(r),c=a.splice(0,s);c.reverse(),a.push.apply(a,tt(c))}return
i.map((function(t)
{return{id:t.id,src:t.url,mime:t.mime,priority:a.indexOf(t.quality)+1+u,metadata:
{profile:t.profile,cdn:t.cdn,origin:t.origin,quality:t.quality,fps:t.fps}}}))}
({files:i,preference:r,priorityOffset:2}),u=t.request.drm&&Wi.browser.safari;return
(n.hls&&(Wi.iPhone||Wi.iPad)||u)&&(o=o.concat(da(t))),n.dash&&!
u&&(o=o.concat(va(t))),o}(t),s=Ca(t);!e.video||t.isNewVideo()?function(r,u){var
a=t.video.live_event,s=i.getBoundingClientRect(),c=lu(a)?Sa(t):function(t){var
n=t.request.files;if(!Cu(n.hls)){var
i=n.hls.default_cdn,e=n.hls.cdns[i],r=e.captions||e.avc_url;return r?
{src:r,mime:ou.hls,metadata:{cdn:i,origin:e.origin,quality:"sd"}}:null}return null}
(t);e.video={id:t.video.id,title:t.video.title,subtitle:"from
".concat(t.video.owner.name),files:r,textTracks:u,chapters:sa(t,"embed.chapters",
[]),duration:t.video.duration,externalDisplayFiles:{AirPlay:c},metadata:
{playlistRefreshUrl:hu(t),thumbnail:t.video.thumbs[640],useHls:t.request.drm&&Wi.br
owser.safari,drm:t.request.drm,p2pReady:t.video.p2p&&o.p2pReady,percentShown:wo.fru
stumSurfaceArea(t.video.spatial.fov,s.width,s.height)}},n.fire(Go)}
(a,s):u(a,s)}})),st({telecine:e},r)}function Ya(t,n,i)
{this.constructorName="BackboneError",this.message=t,this.name=n,this.source=i}Ya.p
rototype=new Error;var Ja={embed:{},request:{cookie:{},files:{},flags:{},urls:
{},text_tracks:[],file_codecs:{}},video:{owner:{},thumbs:{},version:{}},user:
{}};function $a(t,n){var i,e,r,o=rt(),u=null,a=new Zu(n,Ja);function s(t){return
o.fire(Wo,t),t}var c={play:function(){return e.play()},pause:function(){return
e.pause()},get currentTime(){return r.currentTime>.1?Lo(r.currentTime):0},set
currentTime(t){if(t=parseFloat(t),isNaN(t)||t<0)throw new Ya("Seconds must be a
positive number less than the duration of the
video.","RangeError","setCurrentTime");o.fire(No,null,t)},get duration(){return
Lo(a.video.duration)},get enabledTextTrack(){return u},loadVideo:function(t){return
a.reset(t),a=s(a),this},unload:function(){return
o.fire(Fo),this},destroy:function(){return o.fire(Uo),this},on:function(t,n){return
o.on(t,n),this},once:function(t,n){return o.once(t,n),this},off:function(t,n)
{return o.off(t,n),this},hasTextTrack:function(t){var
n,i,e=this.textTracks;if(jo(t))i=e.getTrackById(t);else{var r=t.split(".")
[0];n=e.some((function(t){return
t.language.toLowerCase()===r.toLowerCase()}))}return!(!i&&!
n)},enableTextTrack:function(t){var n,i,e=arguments.length>1&&void 0!
==arguments[1]?
arguments[1]:null,a=this.textTracks;if(jo(t))u=a.getTrackById(t);else{var
s=t.split("."),c=Q(s,2);n=c[0];var l=c[1];if(i=void 0===l?e:l,!
this.hasTextTrack(t))throw new Ya("There are no tracks for
“".concat(n.toUpperCase(),"”."),"InvalidTrackLanguageError","enableTextTrack");var
f=i?"".concat(n,".").concat(i):n;u=za(f,a).track}if(!u||i&&u.kind!==i)throw new
Ya("There are no ".concat(i," tracks for
“").concat(n.toUpperCase(),"”."),"InvalidTrackError","enableTextTrack");r.ma(!
0),o.fire(Vo,u.id)},disableTextTrack:function(){u=null,r.ma(!1),o.fire(Bo)},get
qualities(){return function(t){var n,i=t.representations.map((function(n){var
i=la(n);return{id:i,label:Aa(n),active:t.quality===i}})),e=null==(n=t.video)?void
0:n.currentFile.mime;return[ou.dash,ou.dashMpd,ou.hlsLive].includes(e)&&i.unshift({
id:"auto",label:"Auto",active:!t.quality||"auto"===t.quality}),i}(this)},get
quality(){return e.quality},set quality(t){e.quality=t},get playbackRate(){return
r?r.playbackRate:1},set playbackRate(t)
{r.playbackRate=t,r.defaultPlaybackRate=t},get presentationMode(){return
r.presentationMode},set presentationMode(t){"picture-in-picture"===t?
o.fire(Ho):o.fire(qo)},get textTracks(){return r.video?r.video.textTracks:[]},get
representations(){return xa(a,r)},get volume(){return r?
r.volume:Lo(a.request.cookie.volume)},set volume(t){if(t=parseFloat(t),isNaN(t)||
t<0||t>1)throw new Ya("Volume should be a number between 0 and
1.","RangeError","setVolume");r.volume=t},get videoId(){return a.video.id},get
videoWidth(){return r.videoWidth||a.video.width},get videoHeight(){return
r.videoHeight||a.video.height},get readyState(){return
r.videoElement.readyState},get telecine(){return r}};return a=s(a),e=new
Ka(a,o,t),r=e.telecine,i=Object.create(r),st(i,c)}var Xa="object"==typeof
global&&global&&global.Object===Object&&global,Za="object"==typeof
self&&self&&self.Object===Object&&self,Qa=(Xa||Za||Function("return this")
()).Symbol,ts=Object.prototype,ns=ts.hasOwnProperty,is=ts.toString,es=Qa?
Qa.toStringTag:void 0,rs=Object.prototype.toString,os=Qa?Qa.toStringTag:void 0;var
us=function(t,n){return function(i){return t(n(i))}}
(Object.getPrototypeOf,Object),as=Function.prototype,ss=Object.prototype,cs=as.toSt
ring,ls=ss.hasOwnProperty,fs=cs.call(Object),hs=function(t){var n,i=("undefined"!
=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?
global:"undefined"!=typeof module?module:Function("return this")
()).Symbol;return"function"==typeof i?i.observable?n=i.observable:
(n=i("observable"),i.observable=n):n="@@observable",n}();function ds(t,n,i){var
e;if("function"==typeof n&&void 0===i&&(i=n,n=void 0),void 0!==i){if("function"!
=typeof i)throw new Error("Expected the enhancer to be a function.");return i(ds)
(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a
function.");var r=t,o=n,u=[],a=u,s=!1;function c(){a===u&&(a=u.slice())}function
l(){return o}function f(t){if("function"!=typeof t)throw new Error("Expected
listener to be a function.");var n=!0;return c(),a.push(t),function(){if(n){n=!
1,c();var i=a.indexOf(t);a.splice(i,1)}}}function h(t){if(!function(t){if(!
function(t){return null!=t&&"object"==typeof t}(t)||"[object Object]"!=function(t)
{return null==t?void 0===t?"[object Undefined]":"[object Null]":os&&os in
Object(t)?function(t){var n=ns.call(t,es),i=t[es];try{t[es]=void 0;var e=!
0}catch(t){}var r=is.call(t);return e&&(n?t[es]=i:delete t[es]),r}(t):function(t)
{return rs.call(t)}(t)}(t))return!1;var n=us(t);if(null===n)return!0;var
i=ls.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i instanceof
i&&cs.call(i)==fs}(t))throw new Error("Actions must be plain objects. Use custom
middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not
have an undefined "type" property. Have you misspelled a constant?');if(s)throw new
Error("Reducers may not dispatch actions.");try{s=!0,o=r(o,t)}finally{s=!1}for(var
n=u=a,i=0;i<n.length;i++)(0,n[i])();return t}return h({type:"@@redux/INIT"}),
(e={dispatch:h,subscribe:f,getState:l,replaceReducer:function(t){if("function"!
=typeof t)throw new Error("Expected the nextReducer to be a
function.");r=t,h({type:"@@redux/INIT"})}})[hs]=function(){var
t,n=f;return(t={subscribe:function(t){if("object"!=typeof t)throw new
TypeError("Expected the observer to be an object.");function i()
{t.next&&t.next(l())}return i(),{unsubscribe:n(i)}}})[hs]=function(){return
this},t},e}function vs(){for(var t=arguments.length,n=Array(t),i=0;i<t;i+
+)n[i]=arguments[i];return 0===n.length?function(t){return t}:1===n.length?
n[0]:n.reduce((function(t,n){return function(){return t(n.apply(void
0,arguments))}}))}var ps=Object.assign||function(t){for(var
n=1;n<arguments.length;n++){var i=arguments[n];for(var e in
i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t};function ms()
{for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return
function(t){return function(i,e,r){var
o,u=t(i,e,r),a=u.dispatch,s={getState:u.getState,dispatch:function(t){return
a(t)}};return o=n.map((function(t){return t(s)})),a=vs.apply(void 0,o)
(u.dispatch),ps({},u,{dispatch:a})}}}function bs(t){return!
isNaN(t)&&parseInt(Number(t),10)==t&&!isNaN(parseInt(t,10))}var ws=function(t)
{for(var n=this,i=function i(e){return e.length>=t.length?t.apply(n,e):function()
{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return
i([].concat(tt(e),n))}},e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-
1]=arguments[o];return i(r)}((function(t,n){return
Object.keys(t).every((function(i){return t[i]===n[i]}))})),gs=function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{get:function(n)
{return n?t.find(ws(n)):t},insert:function(n){return(t=t.concat(n)).slice(-
1).pop()},getOrInsert:function(t){return this.get(t)||
this.insert(t)},remove:function(n){return
t.splice(t.findIndex(ws(n)),1).pop()}}};function ys(t,n){var
i=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:document.styleSheets[0];try{i.insertRule?i.insertRule(t+"{"+n+"}",
(i.cssRules||i.rules).length):i.addRule(t,n)}catch(t){}}function _s(t)
{if(t&&t.detail>0)try{document.activeElement.blur()}catch(t){}}function ks(){var
t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:document.activeElement,n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:null;try{t.blur()}catch(t){n&&n(t)}}function Es(t){var
n=t.getBoundingClientRect();return document.msFullscreenElement&&window.parent!
==window&&t.offsetWidth<t.clientWidth&&(n={bottom:100*n.bottom,left:100*n.left,top:
100*n.top,right:100*n.right,width:100*n.width,height:100*n.height}),n}function
Ts(t){try{return new URL(t).origin}catch(t){}var
n=document.createElement("a");return n.href=t,n.origin?
n.origin:"".concat(n.protocol.replace(":",""),"://").concat(n.host)}function Ss(t)
{var n=t.width,i=t.height,e=t.elementWidth,r=t.elementHeight,o=t.threshold,u=void
0===o?10:o,a=1,s=n/i,c=e-r*s,l=r-e/s;if(c>0&&c<u||l>0&&l<u){var f=e/(e-c),h=r/(r-
l);a=Is(Math.max(f,h),3)}return{extraWidth:c,extraHeight:l,scaleFactor:a}}function
xs(t,n,i){return t>i?i:n>t?n:t}function As(t,n,i){var
e=i.width,r=i.height,o=i.scrollbars,u=void 0===o?"yes":o,a=i.resizable,s=void
0===a?"yes":a,c=i.toolbar,l=void 0===c?"no":c,f=(window.screenY||window.screenTop||
0)+window.outerHeight/2-r/2,h=(window.screenX||window.screenLeft||
0)+window.outerWidth/2-e/2;window.chrome&&-1!
==window.navigator.userAgent.toLowerCase().indexOf("mac os
x")&&(r+=27),window.safari&&(r+=47);var
d="scrollbars=".concat(u,",resizable=").concat(s,",toolbar=").concat(l);return
window.open(t,n,"width=".concat(e,",height=").concat(r,",left=").concat(h,",top=").
concat(f,",").concat(d))}function Ms(t){return function(t){return/^(https?:)?\/\/(.
+)\.vimeo(ws)?\.(com|dev)(?=$|\/)/.test(t)}(t)?Ts(t):""}function Cs(t,n,i)
{if(function(t){return/^(https?:)?\/\/(.+)\.vimeo(ws)?\.(com|
dev)\/video\/\d+\/config(?=$|\?)/.test(t)}(n))return n;var e=function(t)
{if(bs(t))return parseInt(t,10);var n=t.match(/(video|\.com|\.dev)\/(\d+)/);if(!n||
n.length<3)throw new Error("Please provide a Vimeo URL with a valid clip
id.");return parseInt(n[2],10)}
(n),r=mt(window.location.search),o=mt("".concat(n).split("?")
[1]),u=Object.assign(r,o,i);return
wt("".concat(t,"/video/").concat(e,"/config"),u)}function Rs(t){for(var n,i,e=(t||
document).querySelectorAll("[tabindex]"),r=[],o=0,u=0,a=e.length;u<a;u+
+)n=e[u],i=window.getComputedStyle(n,""),n.tabIndex>0&&"none"!
==i.display&&i.opacity>0&&"hidden"!==i.visibility&&(r[o++]=n);var
s=r.shift();s&&(s.focus(),s.blur())}function Is(t){var n=arguments.length>1&&void
0!==arguments[1]?arguments[1]:3;if(t=parseFloat(t),isNaN(t))return 0;var
i=Math.pow(10,n);return Math.round(t*i)/i}function Os(){return([1e7]+-1e3+-4e3+-
8e3+-1e11).replace(/[018]/g,(function(t)
{return(t^16*Math.random()>>t/4).toString(16)}))}function js(t,n){return-1!
==U(n).indexOf(t)}function Ls(t){return t?U(t.parentNode.children).indexOf(t):-
1}var Ds=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i+
+)n[i]=arguments[i];return n.reduce((function(t,n){return function(){return
t(n.apply(void 0,arguments))}}))}(Ls,(function(t,n){for(;(null==(i=t)?void
0:i.parentElement)&&!js(t,n);){var i;t=t.parentElement}return js(t,n)?
t:null}));function Ps(t,n,i){if(void 0!==i)t.style[n]=i;else if(function(t)
{return"string"==typeof t||!Fn(t)&&On(t)&&"[object String]"==Dt(t)}
(n))t.setAttribute("style",n);else for(var e in n)Ps(t,e,n[e])}function Ns(t,n,i)
{i.forEach((function(i){t(i,(function(){for(var t=arguments.length,e=new
Array(t),r=0;r<t;r++)e[r]=arguments[r];n.apply(void 0,[i].concat(e))}))}))}function
Fs(t){for(var n=Object.keys(t),i=n.length,e=[],r=0;r<i;)e[r]=t[n[r]],r+=1;return
e}function Us(t,n){return n&&0===n.indexOf(t)}var Vs=0;function Bs(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p",n=+
+Vs;return"".concat(t).concat(n)}function Hs(t){var n=t;return!t||t instanceof
Error||(n=new Error(t.message||t),t.name&&(n.name=t.name)),n}var
qs={Rs:Bs(),Is:Bs(),Os:Bs(),Ls:Bs()},Ws={VIDEO_TITLE:"video-
title",VIDEO_BYLINE:"video-byline",VIDEO_PORTRAIT:"video-
portrait"},zs="application/vnd.vimeo.dash+json",Gs={Ds:Bs(),Ps:Bs(),Ns:Bs(),_hideOv
erlay:Bs(),_showOverlay:Bs(),Fs:Bs(),_updateEmailCapture:Bs(),_updateWebinarStartTi
me:Bs(),Us:Bs(),Vs:Bs(),Bs:Bs(),Hs:Bs(),qs:Bs(),Ws:Bs(),zs:Bs(),Gs:Bs(),Ks:Bs(),Ys:
Bs(),Js:Bs(),
$s:Bs(),Xs:Bs(),Zs:Bs(),Qs:Bs(),_hideOutro:Bs(),tc:Bs(),_overrideControlbarBehavior
:Bs(),nc:Bs(),ic:Bs(),ec:Bs(),rc:Bs(),oc:Bs(),uc:Bs(),_addCard:Bs(),_removeCard:Bs(
),ac:Bs(),sc:Bs()},Ks={will:"willLikeVideo",did:"
didLikeVideo"},Ys={will:"willUnlikeVideo",did:"didUnlikeVideo"},Js={will:"willAddTo
WatchLater",did:"didAddToWatchLater"},
$s={will:"willRemoveFromWatchLater",did:"didRemoveFromWatchLater"},Xs={will:"willOp
enVodPurchaseForm",did:"didOpenVodPurchaseForm"},Zs={will:"willOpenShareOverlay",di
d:"didOpenShareOverlay"},Qs={will:"willOpenLoginForm",did:"didOpenLoginForm"},tc={w
ill:"willOpenCollectionsOverlay",did:"didOpenCollectionsOverlay"},nc={will:"willSho
wOutro",did:"didShowOutro"},ic={will:"willSendPlayLog",did:"didSendPlayLog"},ec={cc
:Bs(),lc:Bs(),fc:Bs(),hc:Bs(),nr:Bs(),dc:Bs(),vc:Bs(),pc:Bs(),mc:Bs(),bc:Bs(),wc:Bs
(),gc:Bs(),yc:Bs(),_c:Bs(),kc:Bs(),Ec:Bs(),Tc:Bs(),Sc:Bs(),xc:Bs(),Ac:Bs(),Mc:Bs(),
Cc:Bs(),Rc:Bs(),Ic:Bs(),Oc:Bs(),jc:Bs(),Lc:Bs(),Dc:Bs(),Pc:Bs(),Nc:Bs(),Fc:Bs(),Uc:
Bs(),Vc:Bs(),Bc:Bs(),Hc:Bs(),qc:Bs(),Wc:Bs(),zc:Bs(),Gc:Bs(),Kc:Bs(),Yc:Bs(),Jc:Bs(
),
$c:Bs(),Xc:Bs(),Zc:Bs(),Qc:Bs(),tl:Bs(),nl:Bs(),il:Bs(),el:Bs(),rl:Bs(),ol:Bs(),ul:
Bs(),al:Bs(),sl:Bs(),cl:Bs(),ll:Bs(),fl:Bs(),hl:Bs(),dl:Bs(),vl:Bs(),pl:Bs(),ml:Bs(
),bl:Bs(),wl:Bs(),gl:Bs(),yl:Bs(),_l:Bs(),kl:Bs(),El:Bs(),Tl:Bs(),Sl:Bs(),Al:Bs(),M
l:Bs(),Cl:Bs(),Rl:Bs(),Il:Bs(),Ol:Bs(),jl:Bs(),Ll:Bs(),Dl:Bs(),Pl:Bs(),Nl:Bs(),Fl:B
s(),Ul:Bs(),Vl:Bs(),Bl:Bs(),Hl:Bs(),ql:Bs(),Wl:Bs(),zl:Bs(),Gl:Bs(),Kl:Bs(),Yl:Bs()
,Jl:Bs(),
$l:Bs(),Xl:Bs(),Zl:Bs(),Ql:Bs(),tf:Bs(),nf:Bs(),if:Bs(),ef:Bs(),rf:Bs(),uf:Bs(),_lo
adVideo:Bs(),af:Bs(),sf:Bs(),cf:Bs(),lf:Bs(),ff:Bs(),hf:Bs(),df:Bs(),vf:Bs(),pf:Bs(
),mf:Bs(),bf:Bs(),wf:Bs(),gf:Bs(),yf:Bs(),_f:Bs(),kf:Bs(),Ef:Bs(),Tf:Bs(),Sf:Bs(),x
f:Bs(),ge:Bs(),Af:Bs(),Mf:Bs(),Cf:Bs(),Rf:Bs(),If:Bs(),Of:Bs(),jf:Bs(),Lf:Bs(),Df:B
s(),Pf:Bs(),Nf:Bs(),Ff:Bs(),Uf:Bs(),Vf:Bs(),Bf:Bs(),Hf:Bs(),qf:Bs()},rc={Ds:Bs(),Wf
:Bs(),zf:Bs(),Gf:Bs()},oc={"application/vnd.apple.mpegurl":"hls","application/vnd.v
imeo.dash+json":"dash","video/vnd.mpeg.dash.mpd":"dash","video/mp4":"progressive","
video/webm":"progressive","video/x-flv":"progressive","application/x-
mpegURL":"hlslive"},uc={AD_STARTED:"adstarted",AD_COMPLETED:"adcompleted",AD_ERROR:
"aderror",AD_SKIPPED:"adskipped",AD_ALL_COMPLETED:"adallcompleted",AD_CLICKED:"adcl
icked",BUFFER_END:"bufferend",BUFFER_START:"bufferstart",CHAPTER_CHANGE:"chaptercha
nge",CHROMECAST_CONNECTED:"chromecastconnected",CONTROL_BAR_VISIBILITY_CHANGED:"con
trolbarvisibilitychanged",CUE_CHANGE:"cuechange",CUEPOINT:"cuepoint",DURATION_CHANG
E:"durationchange",EMAIL_CAPTURE_FAILED:"emailcapturefailed",EMAIL_CAPTURE:"emailca
pture",ENDED:"ended",ERROR:"error",FULLSCREENCHANGE:"fullscreenchange",LIVE_EVENT_E
NDED:"liveeventended",LIVE_EVENT_STARTED:"liveeventstarted",LIVE_STREAM_OFFLINE:"li
vestreamoffline",LIVE_STREAM_ONLINE:"livestreamonline",LOADED_DATA:"loadeddata",LOA
D_START:"loadstart",LOADED_METADATA:"loadedmetadata",LOADED:"loaded",MOTION_END:"mo
tionend",MOTION_START:"motionstart",CAMERA_CHANGE:"camerachange",WEBVR_HARDWARE_AVA
ILABLE:"webvrhardwareavailable",ENTER_WEBVR:"enterwebvr",EXIT_WEBVR:"exitwebvr",ENT
ER_PICTURE_IN_PICTURE:"enterpictureinpicture",LEAVE_PICTURE_IN_PICTURE:"leavepictur
einpicture",SPATIAL_UNSUPPORTED:"spatialunsupported",PAUSE:"pause",PLAY:"play",PLAY
ING:"playing",PLAYBACK_RATE_CHANGE:"playbackratechange",RATE_CHANGE:"ratechange",PR
OGRESS:"progress",QUALITY_CHANGE:"qualitychange",READY:"ready",RESIZE:"resize",SEEK
ING:"seeking",SEEKED:"seeked",SPACE_CHANGE:"spacechange",TEXT_TRACK_CHANGE:"texttra
ckchange",TIME_UPDATE:"timeupdate",VOLUME_CHANGE:"volumechange",WAITING:"waiting"},
ac={playProgress:"timeupdate",loadProgress:"progress",finish:"ended",seek:"seeked"}
,sc={MARKER_SEEKED:"seeked",MARKER_ENDED:"ended",MARKER_UPSWITCH:"upswitch",MARKER_
DOWNSWITCH:"downswitch",MARKER_SWITCH_COMPLETE:"switchcomplete",MARKER_RESIZE:"resi
ze",MARKER_SCANNER_CHANGE:"scannerchange",MARKER_FILE_CHANGE:"filechange",MARKER_ST
ALLED:"stalled",MARKER_BUFFER_GAP_JUMP:"buffergapjump",MARKER_BUFFER_GAP_JUMP_PREVE
NT:"buffergapjumpprevent",MARKER_STALL_JUMP:"stalljump"},cc={MARKER_SEEKED:"#0088cc
",MARKER_ENDED:"#503873",MARKER_UPSWITCH:"#5a9e02",MARKER_DOWNSWITCH:"#d93636",MARK
ER_RESIZE:"#FF8A00",MARKER_SCANNER_CHANGE:"#e9ff00",MARKER_FILE_CHANGE:"#b5d3e2",MA
RKER_STALLED:"#f44283"},lc={NOTHING:"nothing",BEGINNING:"beginning",EMAIL:"email",V
OD:"vod",VIDEOS:"videos",LINK:"link",THREEVIDEOS:"threevideos",PROMOTED:"promoted",
SHARE:"share"},fc=function(){return{id:"error",title:"Player error",message:"The
player is having trouble. We’ll have it back up and running as soon as
possible.",modal:!0,final:!
0}},hc=Object.freeze({__proto__:null,BrowserNotSupported:function(){return{id:"not-
supported",title:"Unsupported viewing environment",message:'Your system is having
trouble playing this video. For more information, see our <a
href="https://help.vimeo.com/hc/en-us/articles/115015677227-Troubleshoot-player-
error-messages" target="_blank" rel="noopener" aria-describedby="new-window">Help
Center</a>.',deferred:!0,final:!0}},DRMFailure:function(){return{id:"drm-
failure",title:"Rights issue",message:"We’re having trouble authorizing playback
for this video. ",final:!0}},FilesNotPlayable:function(){return{id:"not-
supported",title:"Player error",message:"The player is having trouble. We’ll have
it back up and running as soon as possible.",deferred:!0,final:!
0}},MediaSrcNotSupportedError:function(){return{id:"not-supported",final:!
1}},MediaDecodeError:function(){return{id:"decode",final:!
1}},MediaNetworkError:function(){return{id:"network",title:"Network
error",message:'A network hiccup interrupted playback. Please <a
href="javascript:window.location.reload()" rel="noopener">reload the player</a> and
try again.',final:!0}},MediaUnknownError:function()
{return{id:"unknown",title:"Browser error",message:'We’re having trouble playing
this video file. Please <a href="javascript:window.location.reload()"
rel="noopener">reload the player</a> and try again.',final:!
0}},FileError:function(){return{id:"telecine-file-error",final:!
1}},DownloadError:function(){return{id:"telecine-download-error",final:!
1}},MediaUrlExpired:function(){return{id:"media-url-expired",title:"Playback
error",message:'We’re having trouble playing this video. Please <a
href="javascript:window.location.reload()" rel="noopener">reload the player</a> and
try again.',final:!1}},ScannerError:function(){return{id:"scanner-error",final:!
1}},PlayerError:fc});function dc(){return void 0!
==window.performance&&"function"==typeof window.performance.now?
window.performance.now():Date.now()}function vc(t){return dc()-t}function pc(){var
t=0,n=null,i=0,e=!1;function r(){return t/1e3}return{trackBufferStart:function(t,r)
{n=dc(),i++,e=!0,t(r)},trackBufferEnd:function(i){var r=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{};if(e){var o=vc(n);t+=o,r.buffer_duration=o/1e3,e=!
1,i(r)}},trackVideoExit:function(i){e&&!
i&&(t+=vc(n))},resetLastBufferTime:function(){n=null},getBufferRatio:function(t)
{var n=r()/t*100;return isNaN(n)?0:Math.round(100*n)/100},getBufferCount:function()
{return i},getTotalBufferDuration:r,isVideoBuffering:function(){return e}}}var
mc={VIDEO_BUFFER_END:"video-buffer-end",VIDEO_BUFFER_START:"video-buffer-
start",VIDEO_ENDED:"video-ended",VIDEO_EXIT:"video-exit",VIDEO_LOAD_FAILURE:"video-
load-failure",VIDEO_MINUTE_WATCHED:"video-minute-watched",VIDEO_PAUSED:"video-
paused",VIDEO_PLAYED:"video-played",VIDEO_PLAYBACK_ERROR:"video-playback-
error",VIDEO_READY:"video-ready",VIDEO_START_ATTEMPT:"video-start-
attempt",VIDEO_START_FAILURE:"video-start-failure",VIDEO_START_TIME:"video-start-
time",VIDEO_SEEK:"video-seek",VIDEO_SEEKED:"video-
seeked",CHUNK_DOWNLOADED:"chunk_downloaded"};function bc(t){function n(t,n){var i=!
(arguments.length>2&&void 0!==arguments[2])||
arguments[2],e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"POST";return
new r((function(r,o){"POST"===e&&navigator.sendBeacon?
r({status:navigator.sendBeacon(t,n)}):Xe({url:t,body:n,method:e,async:i,headers:
{"Content-Type":"text/plain; charset=UTF-8"}}).then((function(t)
{r({response:t,status:t.status})})).catch(o)}))}return{log:function(i){var e=!
(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!
(arguments.length>2&&void 0!==arguments[2])||
arguments[2];r&&(i.event_time=i.event_time||dc());var o=[i];return
n(t,JSON.stringify(o),e)},logRequestPromiseWithUrl:n}}function wc(t){var
n=0,i=0,e=0,r=0,o=!1,u=-
1,a=null,s=null,c=null,l={satisfied:0,tolerable:0,frustrated:0},f=null;function h()
{var n=t.getBoundingClientRect(),i=t.videoWidth,e=t.videoHeight;if(0!==i||0!==e)
{var r="satisfied";if(n.width>i&&n.height>e&&(i/n.width<.4?
r="satisfied":i/n.width<1?r="tolerable":i/n.width>1&&(r="frustrated")),s){var
o=vc(s);l[c]+=o}c=r,s=dc()}}function d(){return o?0:1}function v(){return-1===u?
null:u>8e3||-1===u?0:u>2e3?.5:1}function p(){return f?(r=e/vc(f),n>=4||r>=.12?
0:n<4&&0!==n?r<.12?.5:0:1):null}function m(){if(-1===u)return
null;switch(h(),Object.keys(l).reduce((function(t,n){return l[t]>l[n]?t:n})))
{case"satisfied":return 1;case"tolerable":return.5;case"frustrated":return 0}return
null}return t.addEventListener("playing",(function(){-
1===u&&(a=dc())})),t.addEventListener("progress",(function(){-
1===u&&(f=dc(),u=vc(a)),h()})),
{startupTimeScore:v,rebufferScore:p,failureScore:d,videoQualityScore:m,overallScore
:function(){return Math.min(d(),v(),p(),m())},trackBufferStart:function(){-1!
==u&&(n++,i=dc())},trackBufferEnd:function(){-1!
==u&&(e+=vc(i))},onError:function(t){t.final&&(o=!0)}}}function gc(t){var
n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:3;if(t=parseFloat(t),isNaN(t))return 0;var i=Math.pow(10,n);return
Math.round(t*i)/i}function yc(t,n){var i,e,r,o,u,a,s,c,l,f,h,d,v=0;function p()
{i=0,e=0,r=0,o=null,u=0,a=!1,s=!1,c=null,l=!1,f=new wc(t),h=new
pc,d={bufferTracker:h,videoBufferCheck:function(){setInterval((function(){var
n=t.currentTime;s&&!l&&!t.paused&&!
d.bufferTracker.isVideoBuffering()&&n<r+.125&&d.bufferTracker.trackBufferStart(b),s
&&!
t.paused&&d.bufferTracker.isVideoBuffering()&&n>r+.125&&(d.bufferTracker.trackBuffe
rEnd(w),d.bufferTracker.resetLastBufferTime()),r=n}),250)},addEventData:function(t)
{return
null},playbackSessionTimer:function(){var n=dc();setInterval((function(){(!
t.paused&&a||l||
d.bufferTracker.isVideoBuffering())&&(u+=vc(n)/1e3),n=dc()}),500)}}}function m(t)
{var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};0===v&&(i=Object.assign(i,d.addEventData(t)),n(t,i))}function b(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{};f.trackBufferStart(),m(mc.VIDEO_BUFFER_START,t)}function w(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{};f.trackBufferEnd(),m(mc.VIDEO_BUFFER_END,t)}return
p(),m(mc.VIDEO_READY),function(){var
n=Math.floor(60*Math.random());setInterval((function(){!t.paused&&a&&(i++,0!==e?
i>=60&&(i=0,e++,m(mc.VIDEO_MINUTE_WATCHED)):i===n&&(i=0,e+
+,m(mc.VIDEO_MINUTE_WATCHED)))}),1e3)}(),window.addEventListener("unload",
(function(n){d.bufferTracker.trackVideoExit(t.paused);var
i={startup:f.startupTimeScore(),rebuffer:f.rebufferScore(),failure:f.failureScore()
,quality:f.videoQualityScore(),overall:f.overallScore()};c&&m(mc.VIDEO_EXIT,
{vxs:i},!1)}),!1),t.addEventListener("playing",(function(){a=!0,l||
s&&m(mc.VIDEO_PLAYED)})),t.addEventListener("timeupdate",(function(){if(!s){var
t={startup_duration:c?gc(vc(c)/1e3,2):null};m(mc.VIDEO_START_TIME,t),s=!
0}})),t.addEventListener("pause",(function(){a=!
1,m(mc.VIDEO_PAUSED)})),t.addEventListener("seeking",(function(){l||(o=dc(),l=!
0,a=!1,m(mc.VIDEO_SEEK))})),t.addEventListener("seeked",(function(){l=!1,t.paused||
(a=!0),m(mc.VIDEO_SEEKED,
{seek_duration:vc(o)/1e3}),o=null})),t.addEventListener("ended",(function()
{m(mc.VIDEO_ENDED)})),t.addEventListener("waiting",(function(){a=!
1})),t.addEventListener("canplay",(function(){l||
d.bufferTracker.isVideoBuffering()&&!
a&&(d.bufferTracker.trackBufferEnd(w),d.bufferTracker.resetLastBufferTime())})),
{globalProperties:function()
{return{autoplay:t.autoplay,buffer_count:d.bufferTracker.getBufferCount(),total_buf
fer_duration:d.bufferTracker.getTotalBufferDuration(),buffer_ratio:d.bufferTracker.
getBufferRatio(u),client_time:dc(),is_buffering:d.bufferTracker.isVideoBuffering(),
looping:t.loop,minutes_watched:e,network_state:t.networkState,playback_rate:t.playb
ackRate,player_width:t.getBoundingClientRect().width,player_height:t.getBoundingCli
entRect().height,session_playback_duration:gc(u,2),video_time:t.currentTime,video_h
eight:t.videoHeight,video_width:t.videoWidth,volume:gc(t.volume,2)}},logStartReques
t:function(){c=dc(),m(mc.VIDEO_START_ATTEMPT)},customizeHooks:function(t)
{d=Object.assign(d,t)},initHooks:function()
{d.videoBufferCheck(),d.playbackSessionTimer()},logBufferStart:b,logBufferEnd:w,set
DisplayContext:function(t){v=t},handleExternalError:function(t,n){a=!
1,f.onError(n),m(s?mc.VIDEO_PLAYBACK_ERROR:s?
mc.VIDEO_START_FAILURE:mc.VIDEO_LOAD_FAILURE,t)},reset:p}}function _c(t){return
t.config.video.p2p?"vimeo-live-ecdn":t.config.request.flags.ott?"vimeo-ott-
vod":t.config.video.webinar?"vimeo-live-webinar":t.config.video.live_event?"vimeo-
live":t.config.embed.context&&-1!==t.config.embed.context.indexOf("Stock")?"vimeo-
stock-vod":t.config.video.vod?"vimeo-ondemand":"vimeo-vod"}function kc(t)
{return"dev"===t.request.build.js?"dev":"3.36.3"}var Ec,Tc=new r((function(t)
{Ec=t}));function Sc(t,n){var i=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:1;return Tc.then((function(e){return
i/=.1,Math.random()<=i&&e.captureException(Hs(t),n),e.lastEventId()}))}window.addEv
entListener("unhandledrejection",(function(t)
{t.preventDefault(),t.reason&&Sc(t.reason).catch((function(t){}))}));var
xc={setUp:function(t)
{t.config.request.sentry.enabled&&ft("module/sentry.js").then((function(n){var
i="dev"===t.config.request.build.js?"dev":"production",e=[new
n.Integrations.Dedupe,new n.Integrations.ExtraErrorData,new
n.Integrations.Breadcrumbs({console:!1}),new
n.Integrations.GlobalHandlers({onunhandledrejection:!1})];return
n.init({dsn:t.config.request.sentry.url,release:kc(t.config),environment:i,integrat
ions:e,ignoreErrors:["NotAllowedError","AbortError","PlayInterrupted","Failed to
load image"],blacklistUrls:[/^moz-extension/i,/^chrome-
extension/i],beforeSend:function(i,e){var r;if(!t.config.request)return
null;if(Wi.appleMail)return
null;if(Us("ReportingObserver",i.message)&&Math.random()>.01)return null;var
o=null==(r=e.originalException)?void 0:r.error;return Us("Non-Error exception
captured",i.message)&&o?(n.withScope((function(t){t.setExtra("nonErrorException",!
0),n.captureException(o)})),null):
(i.tags["document.visibilityState"]=document.visibilityState,t.config.request.sentr
y.enabled?i:null)}}),n.configureScope((function(n)
{if(n.setTag("session",t.config.request.session),n.setTag("locale",t.config.request
.lang),n.setTag("debug_intent",t.config.request.sentry.debug_intent?
1:0),n.setTag("product",_c(t)),n.setTag("backend",t.config.request.build.backend),n
.setTag("video_embed_permission",t.config.video.embed_permission),n.setTag("video_p
rivacy",t.config.video.privacy),t.config.user.logged_in&&n.setUser({id:t.config.use
r.id}),t.config.request.ab_tests)for(var i in t.config.request.ab_tests){var
e=t.config.request.ab_tests[i];for(var r in
n.setTag("".concat(i,"_test"),1),n.setTag("".concat(i,"_group"),e.group),e.data)n.s
etTag("".concat(i,"_data_").concat(r),e.data[r])}})),t.config.request.sentry.debug_
intent&&window.addEventListener("unload",(function(){n.captureMessage("Session
debug",{level:"info"})}),!1),n})).then(Ec).catch((function(t)
{}))},captureException:Sc,captureMessage:function(t,n){return Tc.then((function(i)
{return i.captureMessage(t,n),i.lastEventId()}))},captureBreadcrumb:function(t,n)
{var i=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:"player",e=arguments.length>3&&void 0!==arguments[3]?
arguments[3]:"info";return Tc.then((function(r){return
r.addBreadcrumb({message:t,data:n,category:i,level:e})}))}};function Ac(t){var
n=t.events,i=null,e=null,o=null,u=null,a=null,s={video:{},request:{},embed:
{}};function c(){return e&&e-6e4<=Date.now()}function l(t){var n=Date.now()
+1e3*t;return a=setTimeout((function(){"onLine"in navigator&&!navigator.onLine||u||
(u=h().catch(xc.captureException))}),1e3*t-6e4-5e3),n}function f(t){var
n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};clearTimeout(a);var
u=i;if(isNaN(t)&&"string"!=typeof t)return
e=l((i=t).request.expires),r.resolve({old:u,loaded:i});Date.now();var
c=(s=Ua(s,i)).request.referrer;c&&(o.referrer=c);var f=(null==(n=i)?void
0:n.player_url)?"https://".concat(i.player_url):"",h=Ms(t)||f,d=Cs(h,t,o);return
Xe(d,{withCredentials:!0,throwHttpErrors:!1}).json().then((function(t){return 7!
==(i=t).view&&(e=l(i.request.expires),s.request.session&&i.video.id===s.video.id&&(
i.request.session=s.request.session),c&&(i.request.referrer=c),s.embed.player_id&&(
i.embed.player_id=s.embed.player_id),s.embed.on_site&&(i.embed.on_site=1,i.embed.co
ntext=s.embed.context)),Date.now(),{old:u,loaded:i}})).catch((function(t)
{xc.captureException(t)}))}function h(){var t;clearTimeout(a),Date.now();var
r=null==(t=i)?void
0:t.request.referrer,o=i.request,s=o.signature,c=o.session,f=o.timestamp,h=o.expire
s,d=i.request.ott_chromecast_token,v="https://".concat(i.player_url,"/video/").conc
at(i.video.id,"/config/request?
session=").concat(c,"&signature=").concat(s,"&time=").concat(f,"&expires=").concat(
h);return d&&(v="".concat(v,"&ott_chromecast_token=").concat(d)),r&&(v+="".concat(-
1===v.indexOf("?")?"?":"&","referrer=").concat(encodeURIComponent(r))),Xe(v,
{withCredentials:!0,retry:3}).json().then((function(t){return
i.request=t,r&&(i.request.referrer=r),e=l(i.request.expires),Date.now(),u=null,n.fi
re(ec.Yl),i.request})).catch((function(t){var i={id:"network",title:"Network
error",message:'A network hiccup interrupted playback. Please <a
href="javascript:window.location.reload()" rel="noopener">reload the player</a> and
try again.',final:!0};throw n.fire(ec.lc,i.id,i),t}))}return
window.addEventListener("online",(function()
{c()&&(u=h().catch(xc.captureException))})),n.on(ec.lc,(function(t){u||"media-url-
expired"!==t||(u=h().catch(xc.captureException))})),{get isExpired(){return
c()},load:function(t,n){return f(t,n)},reload:function(){var t;return(null==(t=i)?
void 0:t.video.id)?f(i.video.id):r.reject(new Error("No config
loaded."))},toJSON:function(){return i},get config(){return i},set config(t)
{i=t},verify:function(){return c()?(u||(u=h()),u):r.resolve(i.request)},get $()
{return o},set $(t){o=t}}}var Mc=function(){return
At.Date.now()},Cc=Math.max,Rc=Math.min;function Ic(t,n,i){var e,r,o,u,a,s,c=0,l=!
1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a
function");function d(n){var i=e,o=r;return e=r=void 0,c=n,u=t.apply(o,i)}function
v(t){return c=t,a=setTimeout(m,n),l?d(t):u}function p(t){var i=t-s;return void
0===s||i>=n||i<0||f&&t-c>=o}function m(){var t=Mc();if(p(t))return
b(t);a=setTimeout(m,function(t){var i=n-(t-s);return f?Rc(i,o-(t-c)):i}
(t))}function b(t){return a=void 0,h&&e?d(t):(e=r=void 0,u)}function w(){var
t=Mc(),i=p(t);if(e=arguments,r=this,s=t,i){if(void 0===a)return v(s);if(f)return
clearTimeout(a),a=setTimeout(m,n),d(s)}return void
0===a&&(a=setTimeout(m,n)),u}return n=So(n)||0,Pt(i)&&(l=!!
i.leading,o=(f="maxWait"in i)?Cc(So(i.maxWait)||0,n):o,h="trailing"in i?!!
i.trailing:h),w.cancel=function(){void 0!==a&&clearTimeout(a),c=0,e=s=r=a=void
0},w.flush=function(){return void 0===a?u:b(Mc())},w}function Oc(t,n){var
i=t,e=n;return i%320!=0&&(i=100*Math.ceil(t/100),e=Math.round(i/t*n)),
{width:i,height:e}}function jc(t){var
n=t.width,i=t.height,e=t.baseUrl,r=t.crop,o=void 0!==r&&r;e=e.replace(/\.[^/.]+
$/,"");var u={},a=parseInt(n,10),s=parseInt(i,10);return 0!==a&&(o?u.w=a:u.mw=a),0!
==s&&(o?u.h=s:u.mh=s),Wi.devicePixelRatio>1&&(u.q=70),wt(e,u)}function Lc(t){return
new r((function(n,i){var e=new Image;function r(){xc.captureBreadcrumb("Load image:
".concat(t),{}),i(new Error("Failed to load image."))}e.onload=function()
{e&&e.width>0&&e.height>0?n(e):r()},e.onerror=r,e.src=t}))}function Dc(t){return
Lc(t).catch((function(n){return
xc.captureException(n,{extra:{imageUrl:t}}),new r((function(){}))}))}var
Pc={id:"7742C69E",name:"prod"},Nc={id:"78077C77",name:"prod"},Fc={connected:Bs(),di
sconnected:Bs(),playing:Bs(),paused:Bs(),buffering:Bs(),idle:Bs(),ended:Bs(),sessio
nStateChanged:Bs(),timeUpdated:Bs(),mediaLoadedSuccess:Bs(),mediaLoadedFailed:Bs(),
error:Bs()},Uc=function(){function t(t){var n=t.player,i=t.textAlert,e=void 0===i?
null:i;this.Kf=e,this.Yf=n,this.Jf=this.onControlSeek.bind(this),this.
$f=this.onChangeVolume.bind(this),this.Xf=this.onPlayOrPausePressed.bind(this),this
.Zf=this.onConfigChanged.bind(this),this.Qf=this.onReset.bind(this),this.th=this.on
PlayerStateChanged.bind(this),this.nh=this.onCurrentTimeChanged.bind(this),this.ih=
this.onIsConnectedChanged.bind(this),this.eh=this.onSessionStateChanged.bind(this),
this.rh=this.onIsMediaLoadedChanged.bind(this),this.oh=this.onVolumeLevelChanged.bi
nd(this),this.uh=this.onIsMutedChanged.bind(this),this.ah=this.onCaptionsChanged.bi
nd(this),this.sh=this.onMessageReceived.bind(this),this.lh=this.preventPlayerDefaul
tEvent.bind(this),this.endVideo=Ic(this.fh,500)}var n=t.prototype;return
n.calculateStartTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:null,n=Number(t)||this.Yf.backbone.currentTime-7;return
n<0&&(n=0),this.isEndOfVideo&&(n=0),n},n.loadMedia=function(){var
t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},i=n.contentId,e=n.currentTime,o=void 0===e?null:e,u=n.duration,a=void 0===u?
null:u,s=n.token,c=void 0===s?null:s,l=n.bypassToken,f=void 0===l?
null:l,h=n.autoRequest,d=void 0!==h&&h,v=n.autoCaption,p=void 0===v||
v,m=n.autoDisconnect,b=void 0===m||m,w=n.tracks,g=void 0===w?
[]:w;if(Bc.isLoadingMedia)return r.resolve(!1);var y=this.Yf.config;i=i||
y.video.id;var _,k=y.request,E=k.drm;if(null==E?void 0:E.fastly){var
T=sa(k,"files.dash.default_cdn");i=sa(k,"files.dash.cdns.".concat(T,".url")),_=sa(E
,"cdms.widevine.license_url"),g=(k.text_tracks||[]).map((function(t){var
n=bt(t.url),i=n.pathname,e=n.search;return z(z({},t),{},
{url:"https://player.vimeo.com".concat(i).concat(e)})}))}var
S=this.calculateStartTime(o);a=Number(a)||this.duration,c=c||
y.user.vimeo_api_client_token,f=f||
y.video.bypass_token,this.isEndOfVideo&&(this.hh=!1);var
x={contentId:i,duration:a,autoRequest:d,tracks:g,currentTime:S,requestCustomData:
{token:c,bypassToken:f,tokenType:"jwt"}};this.Yf.config.request.ott_chromecast_toke
n&&(x.requestCustomData.ottChromecastToken=this.Yf.config.request.ott_chromecast_to
ken);var A=_?this.ju(_).then((function(t){return z(z({},x),{},{mediaCustomData:
{widevineLicenseServerURL:t}})})):r.resolve(x);return A.then((function(t){return
Bc.loadMedia(t)})).then((function(){return
Bc.fire(Fc.mediaLoadedSuccess),t.addRemotePlayerListenersOnPlaying(),t.Yf.events.fi
re(Ko),t.Yf.events.fire(Gs._hideOutro),t.dh=!
1,p&&t.onCaptionsChanged(t.Yf.backbone.enabledTextTrack),t.Yf.backbone.paused||
t.Yf.backbone.pause(),!0})).catch((function(n){return
Bc.fire(Fc.mediaLoadedFailed,n),b&&t.endCurrentSession(),r.reject(n)}))},n.ju=funct
ion(t){return new r((function(n,i){var e=new
XMLHttpRequest;e.open("GET",t),e.onload=function(){var t=function(t){return new
Error("Error retrieving License Acquisition URL (LA_URL):
".concat(t))};if(e.status>=200&&e.status<300)try{n(e.response)}catch(n)
{i(t(n))}else i(t(e.status))},e.onerror=i,e.send()}))},n.init=function()
{this.removeInitListeners(),this.addInitListeners()},n.addInitListeners=function()
{this.addSessionStateListener(),this.addIsConnectedListener()},n.endCurrentSession=
function(){var t=!(arguments.length>0&&void 0!==arguments[0])||
arguments[0];Bc.castContext&&Bc.castContext.endCurrentSession(t)},n.syncBackbone=fu
nction(){!
this.isOutroRendered&&this.Yf.backbone.paused&&(this.Yf.backbone.currentTime=this.l
astCurrentTime,this.syncTime())},n.stopBackbone=function()
{this.Yf.events.fire(Gs.Vs)},n.enableUI=function(){if(this.Kf){var
t,n=null==(t=Bc.currentSessionObj)?void 0:t.receiver;n&&this.Kf.show("Casting on
"+n.friendlyName)}this.Yf.preview.show(),this.Yf.element.classList.add("is-
casting")},n.disableUI=function(){this.Kf&&this.Kf.hide(),this.isOutroRendered||
(this.Yf.preview.hide(),this.Yf.backbone.element.classList.remove("invisible")),thi
s.Yf.element.classList.remove("is-casting")},n.syncTime=function(){var
t=this.lastCurrentTime/this.duration;Bc.fire(Fc.timeUpdated,
{currentTime:this.lastCurrentTime,duration:this.duration,percent:t}),t>0&&this.Yf.e
vents.fire(_i.TIME_UPDATE,
{currentTime:this.lastCurrentTime,duration:this.duration,timeProgress:t})},n.fh=fun
ction(){var t=this;return this.hh=!
0,this.Yf.events.fire(ec.pc),this.removeRemotePlayerListenersOnPlaying(),this.isLoo
ped?this.loadMedia().catch((function()
{t.showOutro()})):this.showOutro(),Bc.fire(Fc.ended),!0},n.showOutro=function()
{this.isOutroRendered||(this.dh=!
0,this.Yf.events.fire(Gs.Qs))},n.dispose=function()
{this.endCurrentSession(),this.removeAllRemoteListeners()},n.onIsMediaLoadedChanged
=function(t){!1===t.value?
this.isTimeEnded&&this.endVideo():this.Yf.backbone.paused||
this.Yf.backbone.pause()},n.onPlayerStateChanged=function(t)
{switch(null===t.value&&this.isTimeEnded&&this.endVideo(),t.value){case
Bc.PlayerState.PLAYING:Bc.fire(Fc.playing);break;case
Bc.PlayerState.PAUSED:Bc.fire(Fc.paused);break;case
Bc.PlayerState.BUFFERING:Bc.fire(Fc.buffering);break;case
Bc.PlayerState.IDLE:default:Bc.fire(Fc.idle)}},n.onVolumeLevelChanged=function(t)
{this.Yf.events.fire(Gs.Ps,t.value,!0)},n.onIsMutedChanged=function(t)
{this.Yf.events.fire(Gs.Ps,t.value?0:Bc.remotePlayer.volumeLevel,!
0)},n.onCurrentTimeChanged=function(t)
{this.isMediaLoaded&&(this.lt=t.value),this.syncTime(),this.isTimeEnded&&this.endVi
deo()},n.onChangeVolume=function(t)
{this.volumeLevel=t},n.onCaptionsChanged=function(t){var
n=Bc.currentSession;n&&n.sendMessage("urn:x-cast:com.vimeo.cast.media",
{action:"setActiveByLanguage",value:null==t?void
0:t.language})},n.onSessionStateChanged=function(t){switch(t.sessionState){case
Bc.SessionState.SESSION_STARTING:this.addPreventLocalPlayerEvents();break;case
Bc.SessionState.SESSION_RESUMED:case
Bc.SessionState.SESSION_STARTED:this.loadMedia();break;case
Bc.SessionState.SESSION_ENDING:case Bc.SessionState.SESSION_ENDED:break;case
Bc.SessionState.SESSION_START_FAILED:this.removePreventLocalPlayerEvents()}Bc.fire(
Fc.sessionStateChanged,t.sessionState)},n.onIsConnectedChanged=function(t){t.value?
this.onConnected():this.onDisconnected()},n.onConnected=function()
{this.removePreventLocalPlayerEvents(),this.stopBackbone(),this.addLocalPlayerListe
ners(),this.addRemotePlayerListenersOnIdle(),this.addMessageListener(),this.enableU
I(),Bc.fire(Fc.connected)},n.onDisconnected=function()
{this.syncBackbone(),this.removeRemotePlayerListeners(),this.removeLocalPlayerListe
ners(),this.removeMessageListener(),this.disableUI(),Bc.fire(Fc.disconnected)},n.on
ConfigChanged=function(){this.loadMedia()},n.onReset=function()
{this.loadMedia()},n.onPlayOrPausePressed=function(){this.isEndOfVideo?
this.loadMedia():this.isPlayingOrPaused&&Bc.remotePlayerController.playOrPause(),th
is.Yf.events.halt()},n.onControlSeek=function(t,n){!
n&&t&&(t>1&&(t=1),n=this.duration*t),this.currentTime=n,this.Yf.events.halt()},n.ad
dSessionStateListener=function()
{Bc.castContext&&Bc.castContext.addEventListener(Bc.CastContextEventType.SESSION_ST
ATE_CHANGED,this.eh)},n.addMessageListener=function(){var
t=Bc.currentSession;t&&t.addMessageListener("urn:x-
cast:com.vimeo.cast.media",this.sh)},n.onMessageReceived=function(t,n)
{"MEDIA_FINISHED"===(n=JSON.parse(n)).type&&("END_OF_STREAM"===n.endedReason?
this.endVideo():"ERROR"===n.endedReason&&(this.endCurrentSession(),Bc.fire(Fc.error
,new Error("Chromecast encountered an error and media
finished."))))},n.addIsConnectedListener=function()
{Bc.remotePlayerController&&Bc.remotePlayerController.addEventListener(Bc.RemotePla
yerEventType.IS_CONNECTED_CHANGED,this.ih)},n.addPreventLocalPlayerEvents=function(
)
{this.Yf.events.prependOn([ec.Ac,ec.xc,ec.Dc,ec.Pc,Ti.BUFFER_STARTED,Ti.BUFFER_ENDE
D,Gs.Ds,ec.mc,ec.Hc,ec.Hl,Gs.Vs],this.lh)},n.addRemotePlayerListenersOnIdle=functio
n()
{this.removeRemotePlayerListenersOnIdle(),this.addIsMediaLoadedChangedListener(),th
is.addVolumeLevelChangedListener()},n.addLocalPlayerListeners=function()
{this.Yf.events.prependOn(ec.Ac,this.Xf),this.Yf.events.prependOn(ec.xc,this.Xf),th
is.Yf.events.prependOn(ec.Dc,this.lh),this.Yf.events.prependOn(ec.Pc,this.lh),this.
Yf.events.prependOn(Ti.BUFFER_STARTED,this.lh),this.Yf.events.prependOn(Ti.BUFFER_E
NDED,this.lh),this.Yf.events.prependOn(Gs.Ds,this.Jf),this.Yf.events.prependOn(ec.m
c,this.
$f),this.Yf.events.on(ec.Hc,this.ah),this.Yf.events.on(ec.Hl,this.Zf),this.Yf.event
s.on(Gs.Vs,this.Qf)},n.preventPlayerDefaultEvent=function()
{this.Yf.events.halt()},n.addCurrentTimeChangedListener=function()
{Bc.remotePlayerController&&Bc.remotePlayerController.addEventListener(Bc.RemotePla
yerEventType.CURRENT_TIME_CHANGED,this.nh)},n.addIsMediaLoadedChangedListener=funct
ion()
{Bc.remotePlayerController&&Bc.remotePlayerController.addEventListener(Bc.RemotePla
yerEventType.IS_MEDIA_LOADED_CHANGED,this.rh)},n.addPlayerStateChangedListener=func
tion()
{Bc.remotePlayerController&&Bc.remotePlayerController.addEventListener(Bc.RemotePla
yerEventType.PLAYER_STATE_CHANGED,this.th)},n.addVolumeLevelChangedListener=functio
n()
{Bc.remotePlayerController&&(Bc.remotePlayerController.addEventListener(Bc.RemotePl
ayerEventType.VOLUME_LEVEL_CHANGED,this.oh),Bc.remotePlayerController.addEventListe
ner(Bc.RemotePlayerEventType.IS_MUTED_CHANGED,this.uh))},n.addRemotePlayerListeners
OnPlaying=function()
{this.removeRemotePlayerListenersOnPlaying(),this.addCurrentTimeChangedListener(),t
his.addPlayerStateChangedListener()},n.removeRemotePlayerListenersOnIdle=function()
{this.removeIsMediaLoadedChangedListener(),this.removeVolumeLevelChangedListener()}
,n.removeInitListeners=function()
{Bc.castContext&&Bc.castContext.removeEventListener(Bc.CastContextEventType.SESSION
_STATE_CHANGED,this.eh),Bc.remotePlayerController&&Bc.remotePlayerController.r
emoveEventListener(Bc.RemotePlayerEventType.IS_CONNECTED_CHANGED,this.ih)},n.remove
RemotePlayerListenersOnPlaying=function()
{this.removeCurrentTimeChangedListener(),this.removePlayerStateChangedListener()},n
.removeMessageListener=function(){var
t=Bc.currentSession;t&&t.removeMessageListener("urn:x-
cast:com.vimeo.cast.media",this.sh)},n.removeCurrentTimeChangedListener=function()
{Bc.remotePlayerController&&Bc.remotePlayerController.removeEventListener(Bc.Remote
PlayerEventType.CURRENT_TIME_CHANGED,this.nh)},n.removeIsMediaLoadedChangedListener
=function()
{Bc.remotePlayerController&&Bc.remotePlayerController.removeEventListener(Bc.Remote
PlayerEventType.IS_MEDIA_LOADED_CHANGED,this.rh)},n.removePlayerStateChangedListene
r=function()
{Bc.remotePlayerController&&Bc.remotePlayerController.removeEventListener(Bc.Remote
PlayerEventType.PLAYER_STATE_CHANGED,this.th)},n.removeVolumeLevelChangedListener=f
unction()
{Bc.remotePlayerController&&(Bc.remotePlayerController.removeEventListener(Bc.Remot
ePlayerEventType.VOLUME_LEVEL_CHANGED,this.oh),Bc.remotePlayerController.removeEven
tListener(Bc.RemotePlayerEventType.IS_MUTED_CHANGED,this.uh))},n.removePreventLocal
PlayerEvents=function()
{this.Yf.events.off([ec.Ac,ec.xc,ec.Dc,ec.Pc,Ti.BUFFER_STARTED,Ti.BUFFER_ENDED,Gs.D
s,ec.mc,ec.Hc,ec.Hl,Gs.Vs],this.lh)},n.removeLocalPlayerListeners=function()
{this.Yf.events.off(ec.Ac,this.Xf),this.Yf.events.off(ec.xc,this.Xf),this.Yf.events
.off(ec.Dc,this.lh),this.Yf.events.off(ec.Pc,this.lh),this.Yf.events.off(Ti.BUFFER_
STARTED,this.lh),this.Yf.events.off(Ti.BUFFER_ENDED,this.lh),this.Yf.events.off(Gs.
Ds,this.Jf),this.Yf.events.off(ec.mc,this.
$f),this.Yf.events.off(ec.Hc,this.ah),this.Yf.events.off(ec.Hl,this.Zf),this.Yf.eve
nts.off(Gs.Vs,this.Qf)},n.removeRemotePlayerListeners=function()
{this.removeRemotePlayerListenersOnPlaying(),this.removeRemotePlayerListenersOnIdle
()},n.removeAllRemoteListeners=function()
{this.removeRemotePlayerListeners(),this.removeInitListeners()},H(t,
[{key:"currentTime",get:function(){return this.lt||0},set:function(t)
{Bc.remotePlayer&&Bc.remotePlayerController&&(Bc.remotePlayer.currentTime=t,Bc.remo
tePlayerController.seek(),this.lt=t)}},{key:"isTimeEnded",get:function(){return
this.lastCurrentTime+.5>=this.duration}},{key:"isOutroRendered",get:function()
{return this.dh||!1}},{key:"isLooped",get:function(){return
this.Yf.config.embed.loop}},{key:"isEndOfVideo",get:function(){return this.hh||!
1}},{key:"volumeLevel",set:function(t)
{Bc.remotePlayer&&Bc.remotePlayerController&&(Bc.remotePlayer.volumeLevel=t,Bc.remo
tePlayerController.setVolumeLevel())},get:function(){return Bc.remotePlayer?
Bc.remotePlayer.volumeLevel:0}},{key:"duration",get:function(){return
this.Yf.config.video.duration}},{key:"isPlayingOrPaused",get:function(){return
Bc.remotePlayer?Bc.remotePlayer.playerState===Bc.PlayerState.PLAYING||
Bc.remotePlayer.playerState===Bc.PlayerState.PAUSED:null}},
{key:"isIdle",get:function(){return Bc.remotePlayer?
null===Bc.remotePlayer.playerState||
Bc.remotePlayer.playerState===Bc.PlayerState.IDLE:null}},
{key:"isMediaLoaded",get:function(){return!!
Bc.remotePlayer&&Bc.remotePlayer.isMediaLoaded}}]),t}
(),Vc={SETUP_DONE:"SETUP_DONE",NOT_SETUP:"NOT_SETUP"},Bc=rt(new(function(t)
{function n(){return t.apply(this,arguments)||this}G(n,t);var i=n.prototype;return
i.init=function(){var n,i=this,e=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:{},o=e.appId,u=e.chromecastPlayer,a=void 0===u?null:u;return o||
(o=(null==a||null==(n=a.Yf)?void 0:n.config.request.flags.ott)?
Nc.id:Pc.id),this.chromecastPlayer=a,this.setup().then((function(n){return
n&&(t.prototype.init.call(i,
{receiverApplicationId:o,autoJoinPolicy:i.AutoJoinPolicy.PAGE_SCOPED}),i.chromecast
Player&&i.chromecastPlayer.init()),n})).catch((function(t){return
i.fire(Fc.error,t),r.reject(t)}))},i.dispose=function()
{this.chromecastPlayer=null},H(n,[{key:"chromecastPlayer",get:function(){return
this.vh},set:function(t){if(t&&!(t instanceof Uc))throw new SyntaxError("An invalid
ChromecastPlayer was
specified");this.chromecastPlayer&&this.chromecastPlayer.dispose(),this.vh=t}}]),n}
(function(){function t()
{this.version="1.2.36",this.remotePlayer=null,this.remotePlayerController=null,this
.CastContextEventType=null,this.RemotePlayerEventType=null,this.CastState=Vc,this.S
essionState=null,this.PlayerState=null,this.currentLoadRequestId=null,this.currentL
oadRequestPromise=null}var n=t.prototype;return n.init=function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=t.receiverApplicationId,i=void 0===n?"":n,e=t.resumeSavedSession,r=void
0===e||e,o=t.language,u=void 0===o?null:o,a=t.autoJoinPolicy,s=void
0===a?"TAB_AND_ORIGIN_SCOPED":a;if(!this.isGCastApiAvailable)throw new Error("CAF
is not available. Call setup() first.");if("string"!=typeof i||""===i.trim())throw
new Error("Parameter 'receiverApplicationId' must be valid.");switch(s){case
chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED:case
chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED:case
chrome.cast.AutoJoinPolicy.PAGE_SCOPED:break;default:s=chrome.cast.AutoJoinPolicy.T
AB_AND_ORIGIN_SCOPED}return
this.CastContextEventType=cast.framework.CastContextEventType,this.RemotePlayerEven
tType=cast.framework.RemotePlayerEventType,this.CastState=Object.assign(this.CastSt
ate,cast.framework.CastState),this.SessionState=cast.framework.SessionState,this.Pl
ayerState=chrome.cast.media.PlayerState,cast.framework.CastContext.getInstance().se
tOptions({receiverApplicationId:i.trim(),resumeSavedSession:r,language:u,autoJoinPo
licy:s}),this.isInitialized?
this.remotePlayerController:this.initRemotePlayer()},n.initRemotePlayer=function()
{if(!this.isGCastApiAvailable)throw new ReferenceError("CAF is not available. Call
setup() first.");return this.remotePlayer=new
cast.framework.RemotePlayer,this.remotePlayerController=new
cast.framework.RemotePlayerController(this.remotePlayer),this.remotePlayerControlle
r},n.setup=function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:{},i=n.loadLibrary,e=void 0===i||i;return new r((function(n,i)
{if(t.isGCastApiAvailable)return t.AutoJoinPolicy=chrome.cast.AutoJoinPolicy,void
n(!0);window.__onGCastApiAvailable=function(e,r){if(r){var o=new Error(r);i(o)}else
t.AutoJoinPolicy=chrome.cast.AutoJoinPolicy,n(e)};try{if(!1===e)throw new
ReferenceError("Cast is not available. Make sure the library has been
loaded.");t.loadLibrary()||n(!1)}catch(t){var r=new
Error(t);i(r)}}))},n.loadLibrary=function(){if(this.isGCastApiAvailable)return!
0;if(null!==window.chrome&&void 0!==window.chrome&&"Google
Inc."===window.navigator.vendor){var
t="//www.gstatic.com/cv/js/sender/v1/cast_sender.js";if(!
(document.querySelectorAll('script[src^="'+t+'"]').length>0)){t+="?
loadCastFramework=1";var n=document.createElement("script");return
n.src=t,n.async=!0,n.defer=!0,document.head.appendChild(n),!0}}return!
1},n.loadMedia=function(t){var
n=this,i=t.contentId,e=t.contentType,o=t.currentTime,u=void 0===o?
0:o,a=t.duration,s=void 0===a?0:a,c=t.requestCustomData,l=void 0===c?
null:c,f=t.mediaCustomData,h=void 0===f?null:f,d=t.autoRequest,v=void 0!
==d&&d,p=t.tracks,m=void 0===p?[]:p;return i?this.isSessionEstablished?
this.loadMediaOnSession(this.currentSession,
{contentId:i,contentType:e,currentTime:u,duration:s,requestCustomData:l,mediaCustom
Data:h,tracks:m}):!0!==v?r.reject(new TypeError("Option 'autoRequest' must be true
when session is not connected.")):this.requestSession().then((function(t){return
n.loadMediaOnSession(t,
{contentId:i,contentType:e,currentTime:u,duration:s,requestCustomData:l,mediaCustom
Data:h,tracks:m})})):r.reject(new TypeError("Option 'contentId' must be
valid."))},n.loadMediaOnSession=function(t,n){var
i=this,e=n.contentId,o=n.contentType,u=n.currentTime,a=void 0===u?
0:u,s=n.duration,c=n.requestCustomData,l=void 0===c?
null:c,f=n.mediaCustomData,h=void 0===f?null:f,d=n.tracks,v=void 0===d?[]:d;if(t&&t
instanceof cast.framework.CastSession){var p=t.getSessionState();if(p!
==this.SessionState.SESSION_STARTING&&p!==this.SessionState.SESSION_STARTED&&p!
==this.SessionState.SESSION_RESUMED)return r.reject(new ReferenceError("Session
must be established."));var m=this.createLoadRequest(e,o,a,s,l,h,v);return null!
==this.currentLoadRequestId&&this.currentLoadRequestId===m.requestId||
(this.currentLoadRequestId=m.requestId,this.currentLoadingMediaPromise=t.loadMedia(
m).finally((function()
{i.currentLoadRequestId=null,i.currentLoadingMediaPromise=null}))),this.currentLoad
ingMediaPromise}return r.reject(new ReferenceError("Session must be
cast.framework.CastSession."))},n.requestSession=function(){var t=this;return
this.isSessionEstablished?r.resolve(this.currentSession):this.castContext?
this.castContext.requestSession().then((function(){return
t.currentSession})):r.reject(new Error("CastContext is not available. Call setup()
first."))},n.sendMessage=function(t){var n=this,i=t.namespace,e=t.data,o=void
0===e?{}:e,u=t.autoRequest,a=void 0!==u&&u;return this.isSessionEstablished?
this.sendMessageOnSession(this.currentSession,{namespace:i,data:o}):!0!==a?
r.reject(new TypeError("Option 'autoRequest' must be true when session is not
connected.")):this.requestSession().then((function(t){return
n.sendMessageOnSession(t,
{namespace:i,data:o})}))},n.sendMessageOnSession=function(t,n){var
i=n.namespace,e=n.data,o=void 0===e?{}:e;if(t||!(t instanceof
cast.framework.CastSession)){var u=t.getSessionState();return u!
==this.SessionState.SESSION_STARTING&&u!==this.SessionState.SESSION_STARTED&&u!
==this.SessionState.SESSION_RESUMED?r.reject(new ReferenceError("Session must be
established.")):t.sendMessage(i,o)}return r.reject(new ReferenceError("Session must
be cast.framework.CastSession."))},n.createCastButton=function(t){var
n=document.createElement("button","google-cast-button");return
t&&t.style&&(null===t.style["--disconnected-color"]&&(t.style["--disconnected-
color"]="#00ADEF"),null===t.style["--connected-color"]&&(t.style["--connected-
color"]="#E5E500")),t&&Object.keys(t).forEach((function(i){if("string"==typeof
t[i])n.setAttribute(i,t[i]);else if("style"===i&&"object"===V(t[i])){var
e="";Object.keys(t[i]).forEach((function(n){e+=n+":"+t[i][n]
+";"})),n.setAttribute(i,e)}})),n},n.createLoadRequest=function(t,n,i,e,r,o,u){var
a=new chrome.cast.media.MediaInfo(t.toString(),n);a.customData=o,a.duration=e;var
s={subtitles:chrome.cast.media.TextTrackType.SUBTITLES,captions:chrome.cast.media.T
extTrackType.CAPTIONS};a.tracks=u.map((function(t){var n=new
chrome.cast.media.Track(t.id,chrome.cast.media.TrackType.TEXT);return
n.trackContentId=t.url,n.trackContentType="text/vtt",n.subtype=s[t.kind],n.name=t.l
abel,n.language=t.lang,n}));var c=new chrome.cast.media.LoadRequest(a);return
c.customData=r,c.currentTime=i||0,c},H(t,[{key:"isGCastApiAvailable",get:function()
{return!!("undefined"!=typeof
cast&&cast&&cast.framework&&cast.framework.VERSION)}},
{key:"castState",get:function(){return this.castContext?
this.castContext.getCastState():this.isGCastApiAvailable?
this.CastState.SETUP_DONE:this.CastState.NOT_SETUP}},
{key:"versionGCastApi",get:function(){return this.isGCastApiAvailable?
cast.framework.VERSION:null}},{key:"castContext",get:function(){return
this.isGCastApiAvailable?cast.framework.CastContext.getInstance():null}},
{key:"currentSession",get:function(){return this.castContext?
this.castContext.getCurrentSession():null}},{key:"currentSessionObj",get:function()
{var t=this.currentSession;return t?t.getSessionObj():null}},
{key:"isInitialized",get:function(){return!(!this.isGCastApiAvailable||!
this.remotePlayerController)}},{key:"isSessionEstablished",get:function(){var
t=this.currentSessionObj;return!!
t&&t.status===chrome.cast.SessionStatus.CONNECTED}},
{key:"isCastConnected",get:function(){return
this.castState===this.CastState.CONNECTED}}]),t}())));function Hc(t){return
t.replace(/(_\w)/g,(function(t){return t[1].toUpperCase()}))}function qc(t){return
function t(n,i){return Object.keys(i).reduce((function(e,r){return
i[r]&&"object"===V(i[r])?e[n(r)]=t(n,i[r]):e[n(r)]=i[r],e}),{})}(Hc,t)}var
Wc=function(t){return{type:"CONFIG_LOAD",payload:z({},qc(t))}},zc=function(t)
{return{type:"LIVE_SET_START_TIME",payload:t}};function Gc(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?
arguments[1]:void 0,i=n.type,e=n.payload;switch(i){case"CONFIG_LOAD":return
e.video.liveEvent?z(z({},t),e.video.liveEvent):null;case"LIVE_UPDATE":return
z(z({},t),e);case"LIVE_SET_START_TIME":return z(z({},t),{},
{ingest:z(z({},t.ingest),{},{startTime:e})});default:return t}}var Kc=function(t)
{var n;return!!(null==(n=t.liveEvent)?void 0:n.status)},Yc=function(t){var n;return
null==(n=t.liveEvent)?void 0:n.status},Jc=function(t){var
n,i;return(null==(n=t.liveEvent)||null==(i=n.ingest)?void 0:i.scheduledStartTime)||
null},$c=function(t){var n,i;return(null==(n=t.liveEvent)||null==(i=n.ingest)?void
0:i.startTime)||null},Xc=function(t){var
n;return"pending"===(null==(n=t.liveEvent)?void 0:n.status)},Zc=function(t){var
n;return"active"===(null==(n=t.liveEvent)?void 0:n.status)},Qc=function(t){var
n;return"started"===(null==(n=t.liveEvent)?void 0:n.status)},tl=function(t){var
n;return"ended"===(null==(n=t.liveEvent)?void 0:n.status)},nl=function(t){return
Kc(t)&&!tl(t)},il=function(t){var n,i;return"done"===(null==(n=t.liveEvent)||
null==(i=n.archive)?void
0:i.status)},el=Object.freeze({__proto__:null,default:Gc,liveExists:Kc,liveStatus:Y
c,liveArchiveStatus:function(t){var n,i;return null==(n=t.liveEvent)||
null==(i=n.archive)?void 0:i.status},dashLiveUrl:function(t){var n;return
null==(n=t.liveEvent)?void 0:n.playback.dash_noredirect},hlsLiveUrl:function(t){var
n;return null==(n=t.liveEvent)?void
0:n.playback.hls},scheduledLiveStartTime:Jc,liveStartTime:
$c,isLivePending:Xc,isLiveActive:Zc,isLiveStarted:Qc,isLiveEnded:tl,liveInProgress:
nl,isLiveArchived:il});function rl(t,n,i){var e=null;function o(){return
i.getAttribute("data-thumb")}function u(){return
Oc(n.get("ui.player.width")*Wi.devicePixelRatio,n.get("ui.player.height")*Wi.device
PixelRatio)}function a(){return n.get(Kc)&&!n.get(Qc)||!t.config.embed.autoplay||
Bc.isCastConnected}function s(){if(!t.config.video.thumbs.base)return
r.resolve();var
e=u(),s=e.width,c=jc({width:s,height:e.height,baseUrl:t.config.video.thumbs.base});
i.setAttribute("data-thumb",c),i.setAttribute("data-thumb-width",s);var
l=Dc(c).then((function(t){return n.dispatch(function(t,n)
{return{type:"PREVIEW_SET_SIZE",payload:{width:t,height:n}}}
(t.width,t.height)),a()&&(i.style.backgroundImage="url(".concat(o(),")")),t}));retu
rn a()?r.race([l,new r((function(t){return
setTimeout(t,2e3)}))]):r.resolve()}return e=s(),t.events.on(ec.Zc,(function()
{i.classList.contains("vp-preview-invisible")&&"beginning"!==t.config.embed.outro||
(e=s())})),n.watch("ui.player.width",Ic((function(){e=e.then((function(){return
function(){var t=u().width,n=i.getAttribute("data-thumb-width");return
t<=parseInt(n,10)||0===t?r.resolve():s()}()})).catch((function(t)
{}))}),150)),n.watch("ui.preview.scaleFactor",(function(t){i.classList.toggle("vp-
preview-cover",t>1)})),{show:function()
{i.style.backgroundImage="url(".concat(o(),")"),i.classList.remove("vp-preview-
invisible")},hide:function(){i.classList.add("vp-preview-
invisible")},resetThumbnail:function(){i.setAttribute("data-
thumb",""),i.setAttribute("data-thumb-
width",""),i.style.backgroundImage=""},getThumbnail:o,loadThumbnail:s,thumbnailProm
ise:e}}function ol(t){return!0===t||!1===t?Number(t):"null"===t?null:t}function
ul(t){var n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:document.cookie;try{if(n&&""!==n)return
n.split(";").reduce((function(n,i){return
0===(i=i.trim()).indexOf("".concat(t,"="))?
decodeURIComponent(i.substr(t.length+1)):n}),null)}catch(t){}return null}var
al=["quality","volume","captions"],sl=null;function cl(t){var n=0!
==t.config.request.urls.proxy.indexOf(window.location.origin),i=0;function e(t){var
n=null;try{n=ul("player")}catch(t){}if(!n)return null;n=n.substring(1,n.length-
1);var i={};n.split("&").forEach((function(t)
{t=t.split("="),i[t[0]]=ol(decodeURIComponent(t[1]||""))}));var
e=[].concat(t),r=e.reduce((function(t,n){if(n in i){var e=parseFloat(i[n]);return
t[n]=isNaN(e)||"quality"===n?i[n]:e,t}return t[n]=null,t}),{});return 1===e.length?
r[t]:r}function o(n,i){t.doNotTrackEnabled||(function(n,i){if(sl){var
e={method:"set",key:"sync_".concat(n),val:i,session:t.config.request.session};retur
n function(n){sl.then((function(i){var e=Ts(t.config.request.urls.proxy);return
i.contentWindow.postMessage(n,e),i})).catch((function(n){xc.captureException(n,
{extra:{proxyUrl:t.config.request.urls.proxy}})}))}(e),void function(n)
{t.config.embed.on_site&&window.postMessage(n,window.location.origin)}
(e)}try{window.localStorage.setItem("sync_".concat(n),JSON.stringify(i))}catch(t)
{}}(n,i=ol(i)),function(n,i){al.indexOf(n)>=0&&(t.config.request.cookie[n]=i);var
r=[];al.indexOf(n)>=0&&null!==i&&r.push("".concat(n,"=").concat(i));var
o=e(al);for(var u in o)u in o&&null!==o[u]&&u!
==n&&r.push("".concat(u,"=").concat(o[u]));!function(t,n,i){var
e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:
{},r=e.samesite,o=e.secure,u=new Date;u.setFullYear(u.getFullYear()
+1),u=u.toGMTString(),n=ol(n);var
a="".concat(t,"=").concat(n);a+=";expires=".concat(u),a+=";path=/",a+=";domain=".co
ncat(i),o&&(a+=";secure"),r&&(a+=";samesite=".concat(r));try{document.cookie=a}catc
h(t){return!1}}
("player",'"'.concat(r.join("&"),'"'),t.config.request.cookie_domain,{secure:!
0,samesite:"none"})}(n,i))}function u(n,e){switch(n)
{case"sync_quality":t.events.fire(Gs.Hs,e,!
0);break;case"sync_volume":if(t.config.embed.settings.background)break;t.events.fir
e(Gs.Ps,e,!0);break;case"sync_captions":if(null===e){t.events.fire(Gs.Xs,!
0);break}t.events.fire(Gs.$s,e,!0);break;case"sync_login":!function(n){i>4||(i+
+,n&&!t.config.user.logged_in?t.events.fire(ec.Nl):!
n&&t.config.user.logged_in&&t.events.fire(ec.Ul))}(e);break;case"sync_active":null!
==e&&e!
==t.config.request.session&&t.config.embed.autopause&&t.events.fire(ec.nf)}}return
t.events.on(ec.bc,(function(t,n){n||o("quality",t)})),t.events.on(ec.mc,
(function(n,i){t.config.request.cookie.volume=ol(n),i||
o("volume",n)})),t.events.on(ec.Hc,(function(n,i){if(n){var
e="".concat(n.language,".").concat(n.kind);return
t.config.request.cookie.captions=ol(e),void(i||
o("captions",e))}t.config.request.cookie.captions=null,i||
o("captions",null)})),t.events.on(ec.Ac,(function()
{t.config.embed.settings.background||
(o("active",t.config.request.session),t.events.fire(ec.tf))})),t.events.on([ec.xc,e
c.pc],(function()
{e("active")===t.config.request.session&&o("active",null)})),t.events.on(ec.Fl,
(function(){o("login",!0)})),n&&!sl&&(sl=function(n){return new r((function(i,e)
{document.createElement("a").href=t.config.request.urls.proxy;var
r=document.createElement("iframe");r.src=n,r.setAttribute("title","Vimeo
LocalStorage Proxy"),r.setAttribute("aria-
hidden","true"),r.setAttribute("hidden",""),r.onload=function(n){var
i=Ts(t.config.request.urls.proxy);r.contentWindow.postMessage({method:"ping"},i)},r
.onerror=function(t){e(t)};var o=setTimeout((function()
{e()}),1e4);window.addEventListener("message",(function t(e){0!
==n.indexOf(e.origin)||"ready"!==e.data&&"ping"!==e.data||
(window.removeEventListener("message",t,!1),clearTimeout(o),i(r))}),!
1),document.body.appendChild(r)}))}(t.config.request.urls.proxy)),n?
window.addEventListener("message",(function(n){var
i=Ts(t.config.request.urls.proxy);n.origin===i&&"object"===V(n.data)&&"key"in
n.data&&"newValue"in n.data?
u(n.data.key,n.data.newValue):n.origin===window.location.origin&&n.data.session!
==t.config.request.session&&u(n.data.key,n.data.val)}),!
1):window.addEventListener("storage",(function(t)
{if(0===t.key.indexOf("sync_")&&t.oldValue!==t.newValue)
{try{if(window.localStorage.getItem(t.key)!==t.newValue)return}catch(t)
{}try{u(t.key,JSON.parse(t.newValue))}catch(n){xc.captureException(n,{extra:
{key:t.key,oldValue:t.oldValue,newValue:t.newValue}})}}}),!1),{reset:function()
{o("login",!!t.config.user.logged_in)}}}function
ll(t,n){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:null,i={feature:n,$deeplink_path:"app.vimeo.com/"+t,$always_deeplink:!
0,ref:"player",context:"player"},e="",r=[];for(var o in
i)r.push("".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(i[o])));ret
urn
e=r.join("&"),"https://bnc.lt/a/".concat("key_live_jpj6Duy53e6MhounkriNljdgsBhGbf0d
","?").concat(e)}("videos/".concat(t),n)}var fl=function(){function t(t,n){var
i=this;this.fetchWIREWAXVideoId=function(t){return fetch("https://edge-
player.wirewax.com/vimeoData/".concat(t,".txt")).then((function(t){if(!t.ok)throw
Error(t.statusText);return t.json()}))};var e=window.createWirewaxEmbedder?
r.resolve():new r((function(t,n){var
i=document.createElement("script");i.src="https://wirewax.s3.eu-west-
1.amazonaws.com/creativeData/bcp-wirewax-n-1/wirewax-
plugin.js",i.addEventListener("load",t),i.addEventListener("error",(function(t)
{return
n(t.error)})),document.head.appendChild(i)}));this.embedders={},this.player=t,this.
events=n,this.playerContainer=t.backbone.element,this.wirewaxContainer=function()
{var t=document.createElement("div");return t.classList.add("vjs-wirewax-
container"),t.setAttribute("style","position: absolute; height: 100%; width: 100%;
top: 0; pointer-events: none"),t}
(),this.playerContainer.appendChild(this.wirewaxContainer),this.playHandler=this.ha
ndlePlay.bind(this),this.pauseHandler=this.handlePause.bind(this),this.seekedHandle
r=this.handleSeeked.bind(this),e.then((function(){i.init()})).catch((function(t)
{}))}var n=t.prototype;return n.init=function()
{this.embedder=window.createWirewaxEmbedder(),this.setupEmbedder(this.player.config
.video.id)},n.setupEmbedder=function(t){var
n=this;this.fetchWIREWAXVideoId(t).then((function(t)
{n.playerContainer.dataset.wirewaxVideoId=t,n.embedder.createEl(n.wirewaxContainer,
{isPlugin:!0,videoId:t}),n.embedder.ready().then((function()
{n.registerWIREWAX()})).catch((function(t){}))})).catch((function(t)
{}))},n.registerWIREWAX=function(){var t=this;this.setWIREWAXCurrentTime=function()
{t.embedder.setCurrentTime(t.player.backbone.currentTime),t.animationId=window.requ
estAnimationFrame(t.setWIREWAXCurrentTime)},this.events.on(_i.PLAY,this.playHandler
),this.events.on(_i.PAUSE,this.pauseHandler),this.events.on(_i.SEEKED,this.seekedHa
ndler),this.player.config.embed.autoplay&&(this.startTimeUpdate(),this.embedder.pla
y()),this.addWIREWAXListeners(),this.embedders[this.player.backbone.element.id]=thi
s.embedder},n.disposeWIREWAX=function()
{this.stopTimeUpdate(),this.embedder.dispose(),this.events.off(_i.PLAY,this.playHan
dler),this.events.off(_i.PAUSE,this.pauseHandler),this.events.off(_i.SEEKED,this.se
ekedHandler)},n.addWIREWAXListeners=function(){var t=this;this.embedder.on("play",
(function(){t.player.backbone.play()})),this.embedder.on("pause",(function()
{t.player.backbone.pause()})),this.embedder.on("seeked",(function(n){var
i=n.seekTo;t.player.backbone.currentTime(i)})),this.embedder.on("overlayOpen",
(function(){})),this.embedder.on("overlayClose",(function()
{}))},n.handlePlay=function()
{this.startTimeUpdate(),this.embedder.play()},n.handlePause=function()
{this.stopTimeUpdate(),this.embedder.pause()},n.handleSeeked=function(t){var
n=t.seconds;this.embedder.setCurrentTime(n)},n.startTimeUpdate=function()
{window.cancelAnimationFrame(this.animationId),this.animationId=window.requestAnima
tionFrame(this.setWIREWAXCurrentTime)},n.stopTimeUpdate=function()
{window.cancelAnimationFrame(this.animationId)},t}();function hl(t,n,i){var
e=t.events,o=t.backbone,u=!t.config.embed.playsinline&&(Wi.mobileAndroid||Wi.iOS&&!
Wi.iPad),a=Wi.iOS>=8&&!Wi.iPad,s=!1,c=!1,l=!1,f=!1,h=null,d=!1,v=!1,p=!1,m=!1,b=!
1,w=!1;function g(t){o.element.classList.remove("invisible"),y()}function y(){var
t=o.play();return w&&(t=t.catch(_)),t.catch(E).then(T)}function _(t){if(w=!
1,k(t))return e.fire(Gs.Ns,!0),o.play();throw t}function k(t){return
t&&("NotAllowedError"===t.name||"AbortError"===t.name)}function E(t){return
e.fire(ec.fc,t),new r((function(){}))}function T(){e.fire(ec.hc)}function S(t)
{try{o.currentTime=t}catch(t){}}function x(){f||d||s&&o.paused&&y()}function A()
{var n="none";("metadata"===t.config.request.flags.preload_video||u||
Wi.iOS>=8)&&(n="metadata"),"auto"===t.config.request.flags.preload_video&&(n="metad
ata","MediaSourceScanner"===o.currentScannerName&&(n="auto")),o.preload=n,e.on(ec.I
l,(function()
{t.config.request&&"metadata_on_hover"===t.config.request.flags.preload_video&&!
l&&t.verifyConfig().then((function(){return o.preload="metadata",!
0})).catch((function(t){}))}))}function M(){b=!1;var
n=o.video;if(o.loadVideo(t.config),!n)if(t.config.embed.texttrack){var
i=t.config.embed.texttrack;o.hasTextTrack(i)&&e.fire(Gs.$s,i,!0)}else
e.on(Ti.TEXT_TRACKS_AVAILABLE,(function(){r()})),r();function r()
{null===t.config.request.cookie.captions||"null"===t.config.request.cookie.captions
||o.hasTextTrack(t.config.request.cookie.captions)&&e.fire(Gs.
$s,t.config.request.cookie.captions,!0)}}function C(t,n,i,e){if(c){var r=new
XMLHttpRequest;r.open("DELETE","".concat(t,"/plays/").concat(n,"/").concat(i,"?
token=").concat(e),!1),r.send(),c=!1}}function R(){if(t.config.embed.autoplay)
{if(n.get(Kc)&&!
n.get(Qc))return;e.fire(ec.Ac)}}o.element.classList.add("invisible"),a&&o.element.c
lassList.add("hide-webkit-
controls"),t.config.video.live_event&&i.classList.add("live-
background"),t.config.embed.transparent&&i.classList.add("transparent"),n.watch(Yc,
(function(t){switch(t){case"started":setTimeout((function()
{M(),o.element.classList.remove("invisible"),e.fire(ec.Ac)}),12e3)}})),n.watch(il,
(function(){t.loadVideo(t.config.video.id)})),n.watch("ui.video.scaleFactor",
(function(t){o.element.classList.toggle("vp-telecine-cover",t>1)})),function n()
{e.once(ec.af,n),Ns((o=t.backbone).on,e.fire,[Xo,
$o,Jo,nu,Qo,iu,tu,Ko,Yo,Zo,zo,Go,ki.ACTIVATED,ki.AVAILABLE,ki.DEACTIVATED,ki.UNAVAI
LABLE,au.ARCHIVE_DONE,au.EVENT_ACTIVE,au.EVENT_ENDED,au.EVENT_STARTED,au.STREAM_OFF
LINE,au.STREAM_ONLINE,au.BUFFER_GAP_JUMP,au.BUFFER_GAP_JUMP_PREVENT,au.STALL_JUMP,A
i.MEDIASESSION_PAUSE,Ai.MEDIASESSION_PLAY,Ai.MEDIASESSION_SEEK_BACKWARD,Ai.MEDIASES
SION_SEEK_FORWARD,Ti.AV_DURATION_MISMATCH,Ti.BANDWIDTH,Ti.BUFFER_ENDED,Ti.BUFFER_OC
CUPANCY,Ti.BUFFER_STARTED,Ti.CHAPTER_CUES_UPDATED,Ti.CUE_POINT,Ti.CURRENT_FILE_CHAN
GE,Ti.DOWNLOAD_END,Ti.DOWNLOAD_TIMEOUT,Ti.DRM_AUTH_SUCCESS,Ti.DRM_KEY_SWITCH,Ti.DRO
PPED_FRAMES,Ti.MANIFEST_LOADED,Ti.MANIFEST_TIMEOUT,Ti.QUOTA_EXCEEDED_ERROR,Ti.SCANN
ER_CHANGE,Ti.STREAM_BUFFER_START,Ti.STREAM_CHANGE,Ti.STREAM_CHANGE_START,Ti.STREAM_
TARGET_CHANGE,Ti.TEXT_TRACKS_AVAILABLE,xi.CAMERA_CHANGE,xi.CAMERA_UPDATE,xi.MOTION_
END,xi.MOTION_START,xi.SPATIAL_UNSUPPORTED,xi.WEBVR_ENTER,xi.WEBVR_EXIT,xi.WEBVR_HA
RDWARE_AVAILABLE,Mi.BRAIN_ML_SWITCH_TO_SKYFIRE,Mi.BRAIN_ML_MODEL_INPUTS,_i.DURATION
_CHANGE,_i.ENDED,_i.ERROR,_i.LOAD_START,_i.LOADED_DATA,_i.LOADED_METADATA,_i.PAUSE,
_i.PLAY,_i.PLAYING,_i.PROGRESS,_i.RATE_CHANGE,_i.RESIZE,_i.SEEKED,_i.SEEKING,_i.STA
LLED,_i.TIME_UPDATE,_i.VOLUME_CHANGE,_i.WAITING,_i.ENTER_PICTURE_IN_PICTURE,_i.LEAV
E_PICTURE_IN_PICTURE])}(),Ns(Bc.on,e.fire,
[Fc.connected,Fc.disconnected]),A(),e.on(_i.LOADED_METADATA,(function(n)
{t.config.video.duration=o.duration,t.config.video.video_width=o.videoWidth,t.confi
g.video.video_height=o.videoHeight})),e.on(_i.DURATION_CHANGE,(function(n)
{t.config.video.duration=o.duration})),e.on(Ti.SCANNER_CHANGE,(function()
{A(),setTimeout((function(){e.fire(o.supportsSettingVolume?
Gs.Gs:Gs.zs),e.fire(o.supportsTextTracks?
Gs.Ys:Gs.Ks)}),0),xc.captureBreadcrumb("Scanner changed to
".concat(o.currentScannerName),
{},"video")})),e.on([au.EVENT_ACTIVE,au.EVENT_STARTED,au.EVENT_ENDED,au.ARCHIVE_DON
E],(function(i){Object.assign(t.config.video.live_event,i),n.dispatch(function(t)
{return{type:"LIVE_UPDATE",payload:t}}(i))})),e.on(ec.Ac,(function()
{t.displayContext!==t.backbone?t.displayContext.play():function(){if("disable"!
==t.config.video.privacy&&t.config.video.spatial&&Wi.iOS&&!b||
o.element.classList.remove("invisible"),h)return e.fire(ec.lc,h),void
t.preview.show();if(s=!0,d)t.preview.show();else{if(o.off(_i.PLAY,g),u&&(v=!
0,e.fire(Gs.Js)),n.get(Qc)&&(w=!0),!l)return t.config.video.spatial&&Wi.iOS&&!b?
(b=!0,e.fire(Gs._showOverlay,"app-redirect",{redirectUrl:t.doNotTrackEnabled?
t.config.video.share_url:ll(t.config.video.id,"player-spatial-
redirect"),title:null,buttonText:"Watch in the Vimeo
app",ignoreText:null,bottomText:"360 not supported in this browser",newWindow:!
t.config.embed.on_site}),void e.once(_i.PLAY,g)):void y().then((function(){!
o.muted||!n.get(Qc)&&o.supportsSettingVolume||e.fire(ec.
$c)})).catch(console.error);l&&x()}}()})).on(ec.xc,(function(){s=!
1,t.displayContext.pause()})).on(ec.nf,(function()
{(window.location.search.indexOf("autopause=0")<0&&!o.paused&&!
t.config.embed.settings.background||s)&&(s=!1,e.fire(ec.xc))})),e.on(_i.ERROR,
(function(n){if(k(n)&&!w)
{if(t.config.embed.autoplay=0,o.pause(),t.config.embed.time)return
S(t.config.embed.time),void e.fire(ec.nr,o.currentTime);if(0===o.currentTime)return
void e.fire(Gs.Vs);e.fire(ec.nr,o.currentTime)}})),e.on(_i.PLAY,(function(t)
{o.element.classList.remove("invisible")})),e.on(_i.PAUSE,(function(t,n){f||
e.fire(ec.nr,t,n)})),e.on(_i.TIME_UPDATE,(function(t)
{t.currentTime})),e.on(_i.ENDED,(function(n){f||t.config.embed.loop||
(v&&e.fire(ec.Sc),s=!1,e.fire(ec.pc,n))})),e.on(Ti.DRM_AUTH_SUCCESS,(function(){c=!
0})),e.on(Ko,(function(){l=!0,e.once(_i.TIME_UPDATE,(function()
{e.fire(ec._c)}))})),e.on(Ti.BUFFER_STARTED,(function(){f||
e.fire(qs.Is)})),e.on(Mi.BRAIN_ML_SWITCH_TO_SKYFIRE,(function(){"ml_brain"in
t.config.request.ab_tests&&delete t.config.request.ab_tests.ml_brain})),function()
{var n=!1,i=!1;function r(o){if(!n&&!
o.name.includes("PlayInterrupted"))if("TextTracksNotSupported"!==o.name)
{xc.captureBreadcrumb(o.name,{message:o.message},"telecine error","error");var
u=t.config.video.live_event?1:.001;if("MediaUrlBadRequest"===o.name&&!i){i=!
0,u=1;var

a=t.config.request,s=a.files,c=s.dash.cdns.fastly_skyfire.url,l=s.hls.cdns.fastly_s
kyfire.url,f=s.dash.cdns.akfire_interconnect_quic.url,d=s.hls.cdns.akfire_interconn
ect_quic.url,v=s.progressive.length?
s.progressive[0].url:null,p=s.progressive.length?
s.progressive[0].id:null,m=a.file_codecs,b=t.config.video.file_codecs,w=t.config.us
er.logged_in,g=a.build.js;xc.captureBreadcrumb(o.name,
{fastly_dash_url:c,fastly_hls_url:l,akamai_dash_url:f,akamai_hls_url:d,prog_url:v,p
rog_id:p,file_codecs:m,video_file_codecs:b,logged_in:w,version:g},"MediaUrlBadReque
st config","error")}-1!
==o.name.indexOf("Mimir")&&(u=1,xc.captureBreadcrumb(o.name,o,"ABR","error"));var
y=new Error(o.message);y.name=o.name,xc.captureException(y,null,u);var
_=hc[o.name];if("function"==typeof _){var
k=_();if(k.final&&e.off(_i.ERROR,r),h=k.deferred?k.id:null,"DRMFailure"===o.name)
{var
E=t.config.request.dynamic_drm_translation_map,T=o.message.code;E&&T&&E[T]&&(k.titl
e=E[T].title,k.message=E[T].msg),xc.captureBreadcrumb("DRM
failure",o,"video")}e.fire(ec.lc,k.id,k)}}else
e.fire(Gs.Ks)}window.addEventListener("unload",(function(){n=!0}),!
1),e.on(_i.ERROR,r),e.on("test-error",r)}(),e.on(Gs.Bs,(function(n){var i=!!n&&(!
Wi.iOS||
Wi.iOS>=10);t.config.embed.loop=i,o.loop=i})),e.fire(Gs.Bs,t.config.embed.loop),e.o
n(ec.Rc,(function(n,i){t.events.fire(ec.Ic,i),t.events.fire(Gs.Ds,null,n),l||
e.fire(ec.Ac)})),e.on(ec.Dc,(function(){d||(s=!o.paused,f=!
0,o.pause())})),e.on(ec.Pc,(function(t){f=!1,l?t||x():e.fire(ec.Ac)})),e.on(Gs.Ds,
(function(n,i){if(!d){i||(i=(o.duration||t.config.video.duration)*xs(n,0,1));var
r=o.duration?i/o.duration:0;e.fire(Gs.uc,i,r)}})),e.on(Gs.uc,(function(t)
{S(t)})),function(){e.on(Gs.Ps,(function(n,i,e)
{e&&(n+=o.volume),n=xs(n,0,1),t.displayContext!
==o&&(t.displayContext.volume=n),o.volume=n,o.muted=0===n,t.events.fire(ec.mc,n,i)}
)),e.on(Gs.Ns,(function(n){o.muted=!!n,t.events.fire(ec.mc,o.volume,!
0)})),e.on(_i.VOLUME_CHANGE,(function(){return e.fire(ec.mc,o.volume,!0)}));var
n=t.config.request.cookie.volume;e.fire(Gs.Ps,n,!
0),e.fire(Gs.Ns,t.config.embed.muted)}(),function(){var t;e.on(Gs.Hs,(function(i,e)
{(o.video.currentFile.mime===zs||n.get(Qc))&&(e=!0),t=e,o.quality=i})),e.on(Yo,
(function(n){e.fire(ec.bc,n,t)}))}(),function(){var
t=o.playbackRate;e.on(_i.RATE_CHANGE,(function(n){o.playbackRate!
==t&&(e.fire(ec.kc,o.playbackRate,t),t=o.playbackRate)})),e.on(Gs.ac,(function(t)
{o.playbackRate=t})),e.on(ec._loadVideo,(function(){try{o.playbackRate=1}catch(t)
{}}))}(),function(){function t(){d=!0,l&&!m&&(s=s||!
o.paused,o.pause(),e.fire(ec.nr,o.currentTime))}function n(){d=!1,s&&!m&&(v||p||!
u||e.fire(Gs.Js),x())}e.on(ec.sl,t),e.on(ec.cl,n),e.on(ec.Bc,(function(i,e)
{e.isCentered()&&(e.isVisible()?t():n())}))}(),e.on(ec.bl,(function(t){l&&!m&&(s=!
o.paused,o.pause())})),e.on(ec.yl,(function(t){m||x()})),e.on(ec.Zc,(function(n,i)
{o.element.classList.remove("hide-webkit-controls"),n&&(p=!0),n||(l||
Wi.browser.safari||(o.poster=t.preview.getThumbnail()),v=!0,setTimeout((function()
{o.textTracks.forEach((function(t)
{"hidden"===t.mode&&(t.mode="showing")}))}),500)),i||!Wi.windowsPhone||
Wi.browser.edge||e.fire(Gs.Zs,!0)})),e.on(ec.tl,(function(t){o.poster="",t||
o.pause(),l||o.element.classList.add("invisible"),v=!1,p=!
1,a&&o.element.classList.add("hide-webkit-
controls"),o.textTracks.forEach((function(t)
{"showing"===t.mode&&(t.mode="hidden")}))})),e.on(Ko,(function()
{o.poster=""})),e.on(Gs.Zs,(function(t){if(t)return o.controls=!0,void
i.classList.add("native-controls");o.controls=!1,i.classList.remove("native-
controls")})),e.on(ec.Yl,(function(){M()})),e.on(ec.Hl,(function()
{M(),R()})),e.on(Gs.Vs,(function()
{o.unload(),e.fire(ec.nr,o.currentTime),t.preview.show(),o.element.classList.add("i
nvisible"),l=!1,s=!1,h=null})),function(){var n;e.on(Gs.$s,(function(i){var
e=arguments.length>1&&void 0!
==arguments[1]&&arguments[1];n=e;try{t.config.request.flags.ott&&o.videoElement&&o.
videoElement.setAttribute("crossorigin","anonymous"),o.enableTextTrack(i)}catch(t)
{}})).on(Gs.Xs,(function(){var i=arguments.length>0&&void 0!
==arguments[0]&&arguments[0];n=i,t.config.request.flags.ott&&o.videoElement&&o.vide
oElement.removeAttribute("crossorigin"),o.disableTextTrack()})),e.on(Xo,
(function(t,i){e.fire(ec.Hc,t,n||i)}))}(),e.on(ki.AVAILABLE,(function(n){var
i=n.type;if(!t.config.request.drm)switch(i)
{case"AirPlay":e.fire(ec.Cf)}})),e.on(ki.UNAVAILABLE,(function(n){var i=n.type;if(!
t.config.request.drm)switch(i){case"AirPlay":e.fire(ec.Rf)}})),e.on(ki.ACTIVATED,
(function(t){var n=t.type;switch(m=!0,n)
{case"AirPlay":e.fire(ec.If)}})),e.on(ki.DEACTIVATED,(function(t){var
n=t.type;switch(m=!1,n){case"AirPlay":e.fire(ec.Of)}})),e.on(ec.jf,(function()
{o.showExternalDisplayPicker("AirPlay")})),e.on(Gs.nc,(function()
{o.supportsPresentationMode("picture-in-picture")&&(o.presentationMode="picture-in-
picture")})),e.on(Gs.ic,(function(){o.supportsPresentationMode("picture-in-
picture")&&(o.presentationMode="inline")})),M(),Wi.spatialPlayback?
(e.fire(Gs.ec),e.on([_i.PLAY,_i.SEEKED],(function()
{e.fire(Gs.oc)})),e.on(xi.SPATIAL_UNSUPPORTED,(function(){l?
e.fire(qs.Ls,d):e.once(ec._c,(function(){e.fire(qs.Ls,d)}))}))):e.once(ec._c,
(function()
{t.config.video.spatial&&e.fire(qs.Os,d)})),window.addEventListener("beforeunload",
(function(){var
n=t.config.request.drm;n&&C(n.hoover_url,n.user,n.asset,n.hoover_token)}),!
1),e.on(ec._loadVideo,(function(){var
n=t.config.request&&t.config.request.drm;n&&C(n.hoover_url,n.user,n.asset,n.hoover_
token)})),t.events.on(Gs.sc,(function(){return
o.destroy()})),t.config.embed.wirewax&&new fl(t,e),t.ready().then((function()
{return setTimeout((function(){return
R()}),0),t.config.embed.time>0&&e.fire(Gs.uc,t.config.embed.time,t.config.embed.tim
e/o.duration),null})).catch((function(t){})),e.fire(ec.kf)}var
dl,vl=0,pl=0,ml={},bl={};function wl(t,n,i){return"_root"==n?i:t!==i?function(t)
{return dl||(dl=t.matches?t.matches:t.webkitMatchesSelector?
t.webkitMatchesSelector:t.mozMatchesSelector?
t.mozMatchesSelector:t.msMatchesSelector?t.msMatchesSelector:t.oMatchesSelector?
t.oMatchesSelector:kl.matchesSelector)}(t).call(t,n)?t:t.parentNode?(vl+
+,wl(t.parentNode,n,i)):void 0:void 0}function gl(t,n,i,e){ml[t.id]||
(ml[t.id]={}),ml[t.id][n]||(ml[t.id][n]={}),ml[t.id][n][i]||(ml[t.id][n]
[i]=[]),ml[t.id][n][i].push(e)}function yl(t,n,i,e){if(ml[t.id])if(n)if(e||i)if(e)
{if(ml[t.id][n][i])for(var r=0;r<ml[t.id][n][i].length;r++)if(ml[t.id][n][i]
[r]===e){ml[t.id][n][i].splice(r,1);break}}else delete ml[t.id][n][i];else ml[t.id]
[n]={};else for(var o in ml[t.id])ml[t.id].hasOwnProperty(o)&&(ml[t.id]
[o]={})}function _l(t,n,i,e){if(this.element){t instanceof Array||
(t=[t]),i||"function"!=typeof n||(i=n,n="_root");var
r,o=this.id;for(r=0;r<t.length;r++)e?yl(this,t[r],n,i):(ml[o]&&ml[o][t[r]]||
kl.addEvent(this,t[r],u(t[r])),gl(this,t[r],n,i));return this}function u(t){return
function(n){!function(t,n,i){if(ml[t][i]){var e,r,o=n.target||
n.srcElement,u={},a=0,s=0;for(e in vl=0,ml[t][i])ml[t]
[i].hasOwnProperty(e)&&(r=wl(o,e,bl[t].element))&&kl.matchesEvent(i,bl[t].element,r
,"_root"==e,n)&&(vl++,ml[t][i][e].match=r,u[vl]=ml[t][i]
[e]);for(n.stopPropagation=function(){n.cancelBubble=!0},a=0;a<=vl;a+
+)if(u[a])for(s=0;s<u[a].length;s++){if(!1===u[a][s].call(u[a].match,n))return void
kl.cancel(n);if(n.cancelBubble)return}}}(o,n,t)}}}function kl(t,n){if(!(this
instanceof kl)){for(var i in bl)if(bl[i].element===t)return bl[i];return pl+
+,bl[pl]=new
kl(t,pl),bl[pl]}this.element=t,this.id=n}kl.prototype.on=function(t,n,i){return
_l.call(this,t,n,i)},kl.prototype.off=function(t,n,i){return _l.call(this,t,n,i,!
0)},kl.matchesSelector=function(){},kl.cancel=function(t)
{t.preventDefault(),t.stopPropagation()},kl.addEvent=function(t,n,i){var
e="blur"==n||"focus"==n,r=Wi.passiveEvents?{capture:e,passive:!
1}:e;t.element.addEventListener(n,i,r)},kl.matchesEvent=function(){return!0};var
El=kl.addEvent,Tl=void 0===window.PointerEvent&&void 0!
==window.MSPointerEvent,Sl={pointerdown:"MSPointerDown",pointerup:"MSPointerUp",poi
ntercancel:"MSPointerCancel",pointermove:"MSPointerMove",pointerenter:"MSPointerEnt
er",pointerleave:"MSPointerLeave",pointerover:"MSPointerOver",pointerout:"MSPointer
Out"},xl="onmspointerenter"in document,Al="onmspointerleave"in document;function
Ml(t,n){var i,e,r,o,u,a,s=0,c={},l=new bc;function f(){return Date.now?Date.now():
(new Date).getTime()}function h(){return t.config.video.spatial?"mono"!
==t.config.video.spatial.stereo_mode?2:1:0}function d(){var
n=t.backbone.getEffectByName("ThreeSixtyEffect");return Wi.spatialPlayback&&n?
n.isStereo()?2:1:0}function v(){i=!1,e=t.backbone?
t.backbone.currentTime:0,r=0,o=0,u=0,a=!1}function p(n,i,e,r)
{t.verifyConfig().then((function(){var
o=i;o.signature=t.config.request.signature,o.session=t.config.request.session,o.tim
e=t.config.request.timestamp,o.expires=t.config.request.expires;var
u=JSON.stringify(o);if(null===o.sessionTime&&(xc.captureBreadcrumb("sessionTime is
null breadcrumbs",{endpoint:n,allParams:o}),xc.captureException("sessionTime is
null when making stats request")),!t.config.request.urls.player_telemetry_url)throw
new Error("Stats logging failed due to lack of telemetry host");var
a=t.config.request.urls.player_telemetry_url+n;return
l.logRequestPromiseWithUrl(a,u,!e).then((function(n){if(200!==n.status&&r<2)
{if(410===n.status)return void t.events.once(ec.Yl,(function()
{p(a,i,e,r+1)}));setTimeout((function(){p(a,i,e,r+1)}),1e3)}})).catch((function(t)
{throw t}))})).catch((function(t){}))}function m(i,e,o){var
u=t.backbone.currentFile||{},a=u.id,s=void 0===a?0:a,l=u.mime,f=void
0===l?"video/mp4":l,v=u.metadata,m=(v=void 0===v?{}:v).profile,b=void 0===m?-
1:m;if(f===zs){var w=c,g=w.id;s=void 0===g?0:g;var y=w.profile;b=void 0===y?-
1:y}t.performDelegateAction(ic,(function(a){var c=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:{},l=function(n){var
a,l,v=z(z({referrer:t.config.request.referrer,embed:!
t.config.embed.on_site,context:t.config.embed.context,autoplay:c.continuous?
2:t.config.embed.autoplay,loop:t.config.embed.loop?1
:0,id:t.config.video.id,vodId:(null==(a=t.config.video.vod)?void 0:a.id)?
t.config.video.vod.id:null,vodSaleId:(null==(l=t.config.video.vod)?void
0:l.sale_id)?
t.config.video.vod.sale_id:null,sessionTime:Is(r),videoShape:h(),spatialPlayback:d(
),userId:t.config.user.id,userAccountType:t.config.user.account_type,userIsMod:t.co
nfig.user.mod?1:0,teamOriginUserId:t.config.user.team_origin_user_id?
t.config.user.team_origin_user_id:null,teamId:t.config.user.team_id?
t.config.user.team_id:null,ownerId:t.config.video.owner.id,ownerAccountType:t.confi
g.video.owner.account_type,privacy:t.config.video.privacy,rating:t.config.video.rat
ing?
t.config.video.rating.id:null,type:"html",videoFileId:Number.isInteger(Number(s))?
s:"0",delivery:oc[f],profileId:b,quality:u.metadata?
u.metadata.quality:null,duration:Is(t.config.video.duration),seconds:Is(e)},n),{},
{playbackRate:t.backbone.playbackRate,build:kc(t.config)});if(t.config.video.webina
r){var
m=ul("".concat(t.config.video.webinar.id,"_webinar_registrant"));m&&(v.webinarRegis
trantUuid=m)}p(i,v,o)},v=n.get(nl)?1:0,m=n.get($c),w={isLive:v};if(v){if(!m)return
void Xe("https://".concat(t.config.vimeo_url,"/live_event/status?
clip_id=").concat(t.config.video.id)).json().then((function(t){return
t&&t.ingest&&(n.dispatch(zc(t.ingest.start_time)),m=n.get($c)),m&&(w.liveStartTime=
m),l(w),t})).catch((function(t){}));w.liveStartTime=m}l(w)}))}function b(){var
n=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!
(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t.playLoggingEnabled)
{var u=f();r&&o+1e3>u||(o=u,r&&!t.config.request.flags.partials||i||
m("/log/partial",n,e))}}function w(n,i){var e,r;i=i||{};var
o={referrer:t.config.request.referrer,embed:!
t.config.embed.on_site,context:t.config.embed.context,id:t.config.video.id,vodId:
(null==(e=t.config.video.vod)?void 0:e.id)?t.config.video.vod.id:null,vodSaleId:
(null==(r=t.config.video.vod)?void 0:r.sale_id)?
t.config.video.vod.sale_id:null,userId:t.config.user.id,userAccountType:t.config.us
er.account_type,userIsMod:t.config.user.mod?1:0,ownerId:t.config.video.owner?
t.config.video.owner.id:0,duration:Is(t.config.video.duration),seconds:Is(t.backbon
e.currentTime),playbackRate:t.backbone.playbackRate,build:kc(t.config)};for(var u
in i)i.hasOwnProperty(u)&&(o[u]=i[u]);p("/log/"+n,o)}return v(),function()
{t.events.on(_i.TIME_UPDATE,(function(t){var
n=t.currentTime,o=(t.duration,t.timeProgress,t.playbackRate),a=Math.floor(n);!
i&&u+1e3<f()&&(n>e&&(r+=(n-e)/o),e=n),a%30==0&&b(n)})),t.events.on(ec.kc,
(function(n,i){w("playback_rate_change",
{oldPlaybackRate:i}),b(t.backbone.currentTime)})),t.events.on(Ko,(function(){!
a&&t.playLoggingEnabled&&(a=!0,m("/log/play",0))})),t.events.on(ec.nr,(function(n)
{t.backbone.ended||b(n)})),t.events.on(_i.SEEKED,(function(t){var
n=t.currentTime;s=n,i||b(s)})),t.events.on(ec.Dc,(function(){u=f(),i=!
0})),t.events.on(ec.Pc,(function(){e=t.backbone.currentTime,i=!
1,b(s)})),t.events.on(ec.Mc,(function()
{b(t.backbone.currentTime)})),t.events.on(ec.pc,(function()
{r+=t.config.video.duration-e,b(t.config.video.duration,!1,!
1)})),t.events.on(Ti.STREAM_CHANGE,(function(t){c=t}));var n=[],o=!1;function l()
{n.length&&t.performDelegateAction(ic,(function(i){var e,r;p("/log/spatial",
{embed:!
t.config.embed.on_site,id:t.config.video.id,context:t.config.embed.context,ownerId:
t.config.video.owner?
t.config.video.owner.id:0,referrer:t.config.request.referrer,vodId:
(null==(e=t.config.video.vod)?void 0:e.id)?t.config.video.vod.id:null,vodSaleId:
(null==(r=t.config.video.vod)?void 0:r.sale_id)?
t.config.video.vod.sale_id:null,userId:t.config.user.id,userAccountType:t.config.us
er.account_type,userIsMod:t.config.user.mod?
1:0,teamOriginUserId:t.config.user.team_origin_user_id?
t.config.user.team_origin_user_id:null,teamId:t.config.user.team_id?
t.config.user.team_id:null,build:kc(t.config),motionLog:JSON.stringify(n)},!
1)}))}t.events.on(xi.MOTION_START,(function(){o=!0,function i(){var
e=t.backbone.getEffectByName("ThreeSixtyEffect").currentCoordinates,u=Math.round(10
0*e.lat)/100,a=Math.round(100*e.long)/100,s={sessionTime:r,videoTime:t.backbone.cur
rentTime,coordinates:{lat:u,lon:a}};n.push(s),setTimeout((function(){o&&i()}),1e3)}
()})),t.events.on(xi.MOTION_END,(function(){o=!1,l()})),t.events.on(ec._loadVideo,
(function(){l(),n=[]})),window.addEventListener("unload",(function()
{t.backbone&&t.backbone.currentTime>0&&(b(t.backbone.currentTime,!0,!1),l())}),!1)}
(),[{type:"share_press",event:ec.el},{type:"facebook_press",event:ec.hl},
{type:"twitter_press",event:ec.dl},{type:"tumblr_press",event:ec.vl},
{type:"email_press",event:ec.pl},{type:"embed_press",event:ec.rl},
{type:"login_success",event:ec.Fl},{type:"airplay",event:ec.If},
{type:"vod_press",event:ec.ol},{type:"collection_press",event:ec.ul},
{type:"email_capture_submitted",event:ec.gl}].forEach((function(n)
{t.events.on(n.event,function(t){return function(){w(t)}}
(n.type))})),t.events.on(ec.Xl,(function(n){var
i={outroType:t.config.embed.outro,ownerAccountType:t.config.video.owner.account_typ
e,playerWidth:t.element.clientWidth,playerHeight:t.element.clientHeight};(null==n?
void 0:n.length)&&(i.outroVideos=n.join(",")),w("outro_displayed",i)})).on(ec.Ql,
(function(n){w("outro_video_press",
{ownerAccountType:t.config.video.owner.account_type,videoId:n})})).on(ec.al,
(function(){w("outro_follow_press",{add:!t.config.user.following})})).on(ec.df,
(function(n){w("outro_cta_press",
{ownerAccountType:t.config.video.owner.account_type,link:n})})).on(ec.sf,
(function(n){w("outro_link_press",
{ownerAccountType:t.config.video.owner.account_type,link:n})})).on(ec.hf,
(function(n){w("outro_image_press",
{ownerAccountType:t.config.video.owner.account_type,link:n})})).on(ec.nl,
(function(){w("like_press",{add:!t.config.user.liked})})).on(ec.il,(function()
{w("watch_later_press",{add:!t.config.user.watch_later})})).on(ec.bl,(function(t)
{0===t.indexOf("login-")&&w("login_attempt")})).on(ec.Hc,(function(t,n){n||(t?
w("text_track_change",
{textTrackLanguage:t.language,textTrackKind:t.kind}):w("text_track_change"))})).on(
ec.Jc,(function(t){1!==t&&12!==t||w("badge_press",{badgeId:t})})).on(ec.sl,
(function(t){"email-capture"===t&&w("email_capture_displayed")})).on(ec.cl,
(function(t){"email-capture"===t&&w("email_capture_dismissed")})).on(ec.pf,
(function(n){w("card_press",
{ownerAccountType:t.config.video.owner.account_type,cardId:n,cardType:"link"})})).o
n(ec.vf,(function(n,i){t.config.embed.editor||w("card_displayed",
{ownerAccountType:t.config.video.owner.account_type,cardId:n,cardType:i.url?"link":
"text"})})),t.events.on(ec.Hl,(function(t){t&&v()})),t.events.fire(ec.Sf),
{}}function Cl(t,n){return null==t||t!=t?n:t}function Rl(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?
arguments[1]:void 0;switch(n.type){case"CONFIG_LOAD":return
z(z({},t),n.payload);default:return t}}kl.addEvent=function(t,n,i)
{Tl&&Sl[n]&&(n=Sl[n]),"transitionend"===n&&(El(t,"webkitTransitionEnd",i),El(t,"otr
ansitionend",i)),"mouseenter"===n&&(n="mouseover"),"mouseleave"===n&&(n="mouseout")
,"MSPointerEnter"!==n||xl||(n="MSPointerOver"),"MSPointerLeave"!==n||Al||
(n="MSPointerOut"),El(t,n,i)},kl.matchesEvent=function(t,n,i,e,r){return!
("mouseenter"===t||"mouseleave"===t||!xl&&"MSPointerEnter"===t||!
Al&&"MSPointerLeave"===t)||function(t,n,i,e){return!e.relatedTarget||(!i||
t===n)&&n!==e.relatedTarget&&!n.contains(e.relatedTarget)}(n,i,e,r)};var
Il={settings:{}};function Ol(){var t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:Il,n=arguments.length>1?arguments[1]:void
0,i=n.type,e=n.payload;switch(i){case"CONFIG_LOAD":return
z(z({},t),e.embed);default:return t}}var
jl=Object.freeze({__proto__:null,default:Ol,transparent:function(t){return
t.embed.transparent}});function Ll(){var t=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void
0,i=n.type,e=n.payload;switch(i){case"CONFIG_LOAD":return
z(z({},t),e.video);default:return t}}var Dl=function(t){return
t.video.height/t.video.width},Pl=Object.freeze({__proto__:null,default:Ll,ratio:Dl}
),Nl=function(t){return{type:"WEBINAR_FORM_SUCCESS",payload:t}};function Fl(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?
arguments[1]:void 0,i=n.type,e=n.payload;switch(i){case"CONFIG_LOAD":return
e.video.webinar?z(z({},t),e.video.webinar):null;case"WEBINAR_FORM_SUCCESS":return
z(z({},t),{},{formSuccess:e});default:return t}}var Ul=function(t){return!!
t.webinar},Vl=function(t){var n;return"ended"===(null==(n=t.webinar)?void
0:n.status)},Bl=function(t){var n;return null==(n=t.webinar)?void
0:n.registrationForm},Hl=function(t){var n;return!!(null==(n=t.webinar)?void
0:n.formSuccess)},ql=Object.freeze({__proto__:null,default:Fl,isWebinar:Ul,isWebina
rEnded:Vl,webinarRegistrationForm:Bl,showWebinarRegistrationForm:function(t){return
Ul(t)&&!Vl(t)&&!Cu(Bl(t))},scheduledWebinarStartTime:function(t){var
n;return(null==(n=t.webinar)?void 0:n.scheduledStartTime)||
null},webinarFormSuccess:Hl});function Wl(){var t=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void
0;switch(n.type){case"CONTAINER_RESIZE":return z(z({},t),{},
{width:n.payload.width,height:n.payload.height});default:return t}}var
zl=function(t){return t.ui.container.width},Gl=function(t){return
t.ui.container.height},Kl=Object.freeze({__proto__:null,default:Wl,width:zl,height:
Gl});function Yl(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=arguments.length>1?arguments[1]:void 0;switch(n.type)
{case"PREVIEW_SET_SIZE":return z(z({},t),{},
{width:n.payload.width,height:n.payload.height});default:return t}}var
Jl=Object.freeze({__proto__:null,default:Yl,scaleFactor:function(t){return
Ss({width:t.ui.preview.width,height:t.ui.preview.height,elementWidth:vf(t),elementH
eight:pf(t)}).scaleFactor}});function $l(){var t=arguments.length>0&&void
0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void
0;switch(n.type){case"CARDS_SET_SIZE":return z(z({},t),{},
{size:n.payload});default:return t}}var Xl=function(t){return
t.ui.cards.size>0&&t.ui.container.width>=200&&t.ui.container.width<415},Zl=function
(t){return Xl(t)?60:0},Ql=Object.freeze({__proto__:null,default:
$l,isCarouselVisible:Xl,isCardsThumbVisible:function(t){return
t.ui.cards.size>0&&t.ui.container.width>=300},getCarouselHeight:Zl}),tf=i((function
(t,n){function i(t,n){return t===n}function e(t,n,i){if(null===n||null===i||
n.length!==i.length)return!1;for(var e=n.length,r=0;r<e;r++)if(!
t(n[r],i[r]))return!1;return!0}function r(t){var n=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:i,r=null,o=null;return function(){return
e(n,r,arguments)||(o=t.apply(null,arguments)),r=arguments,o}}function o(t){var
n=Array.isArray(t[0])?t[0]:t;if(!n.every((function(t){return"function"==typeof
t}))){var i=n.map((function(t){return typeof t})).join(", ");throw new
Error("Selector creators expect all input-selectors to be functions, instead
received the following types: ["+i+"]")}return n}function u(t){for(var
n=arguments.length,i=Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];return
function(){for(var n=arguments.length,e=Array(n),u=0;u<n;u++)e[u]=arguments[u];var
a=0,s=e.pop(),c=o(e),l=t.apply(void 0,[function(){return a+
+,s.apply(null,arguments)}].concat(i)),f=r((function(){for(var
t=[],n=c.length,i=0;i<n;i++)t.push(c[i].apply(null,arguments));return
l.apply(null,t)}));return f.resultFunc=s,f.recomputations=function(){return
a},f.resetRecomputations=function(){return a=0},f}}n.ph=!
0,n.defaultMemoize=r,n.createSelectorCreator=u,n.createStructuredSelector=function(
t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if("object"!
=typeof t)throw new Error("createStructuredSelector expects first argument to be an
object where each property is a selector, instead received a "+typeof t);var
i=Object.keys(t);return n(i.map((function(n){return t[n]})),(function(){for(var
t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];return
n.reduce((function(t,n,e){return t[i[e]]=n,t}),{})}))};var
a=n.createSelector=u(r)})),nf=function(t){return Zl(t)},ef=function(t){return
Math.min((Gl(t)-nf(t))/Dl(t),zl(t))},rf=function(t){return Math.min(zl(t)*Dl(t)
+nf(t),Gl(t))},of=function(t){return
Ss({width:ef(t),height:rf(t),elementWidth:zl(t),elementHeight:Gl(t)}).scaleFactor},
uf=function(t){return of(t)>1},af=function(t){return t.embed.transparent&&!uf(t)?
ef(t):zl(t)},sf=function(t){return t.embed.transparent&&!uf(t)?
rf(t):Gl(t)},cf=function(t){return t.embed.transparent&&!uf(t)?"contain":"100%
100%"},lf=tf.createSelector(af,sf,(function(t,n)
{return{width:t,height:n}})),ff=tf.createSelector(Dl,cf,nf,(function(t,n,i)
{return{ratio:t,size:n,bottom:i}})),hf=Object.freeze({__proto__:null,bottom:nf,scal
eFactor:of,width:af,height:sf,size:cf,boundingRect:lf,settings:ff}),df={xxs:0,xs:39
0,sm:600,md:960,lg:1280,xl:1600,xxl:1920},vf=function(t){return
af(t)},pf=function(t){return sf(t)-nf(t)},mf=tf.createSelector(vf,pf,(function(t,n)
{return{width:t,height:n}})),bf=function(t){return pf(t)>vf(t)},wf=function(t){var
n=vf(t),i=pf(t);if(bf(t))return n<225;var
e=Cu(t.embed.settings.customLogo)&&n<300||i<169,r=!
Cu(t.embed.settings.customLogo)&&(n<338||i<190);return e||r},gf=function(t){var
n=vf(t);if(bf(t))return n<300;var i=Cu(t.embed.settings.customLogo)&&n<=375,e=!
Cu(t.embed.settings.customLogo)&&n<=450;return i||e},yf=function(t){var
n=vf(t);return n>=df.xxs&&n<df.xs},_f=function(t){var n=vf(t);return
n>=df.xs&&n<df.sm},kf=function(t){var n=vf(t);return
n>=df.sm&&n<df.md},Ef=function(t){var n=vf(t);return
n>=df.md&&n<df.lg},Tf=function(t){var n=vf(t);return
n>=df.lg&&n<df.xl},Sf=function(t){var n=vf(t);return
n>=df.xl&&n<df.xxl},xf=function(t){return
vf(t)>=df.xxl},Af=Object.freeze({__proto__:null,breakpoints:df,width:vf,height:pf,b
oundingRect:mf,isTinyMode:wf,isMiniMode:gf,mode:function(t){return
wf(t)?"tiny":gf(t)?"mini":"normal"},xxs:yf,xs:_f,sm:kf,md:Ef,lg:Tf,xl:Sf,xxl:xf,bre
akpoint:function(t){var n={xxs:yf,xs:_f,sm:kf,md:Ef,lg:Tf,xl:Sf,xxl:xf};return
Object.keys(df).find((function(i){return n[i]
(t)}))}}),Mf=Object.freeze({__proto__:null,scaleFactor:function(t){return
Ss({width:t.video.width,height:t.video.height,elementWidth:vf(t),elementHeight:pf(t
)}).scaleFactor}}),Cf=Object.freeze({__proto__:null,size:function(t){return
Math.max(10,Math.round(.045*pf(t)))}}),Rf=Object.freeze({__proto__:null,isLinkTitle
Visible:function(t){var n=t.ui;return
n.container.width>=360&&n.container.height>=203||
n.container.width>=415},isLinkDescriptionVisible:function(t){var n=t.ui;return
n.container.width>=360&&n.container.height>=340||
n.container.width>=415&&n.container.height>=234}}),If=Object.freeze({__proto__:null
,isEmailCaptureVisible:function(t){var n=t.ui;return
n.container.width>=300&&n.container.height>=169}}),Of=Object.freeze({__proto__:null
,isPrefsMenuCentered:function(t){return Wi.touch&&vf(t)<415}});function jf(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?
arguments[1]:void
0;return{container:Wl(t.container,n),preview:Yl(t.preview,n),cards:
$l(t.cards,n)}}var
Lf=Object.freeze({__proto__:null,default:jf,container:Kl,layout:hf,player:Af,previe
w:Jl,video:Mf,cards:Ql,outro:Rf,overlay:If,controlbar:Of,captions:Cf});function
Df(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=arguments.length>1?arguments[1]:void 0,i=z(z({},Rl(t,n)),{},
{embed:Ol(t.embed,n),video:Ll(t.video,n),liveEvent:Gc(t.liveEvent,n),webinar:Fl(t.w
ebinar,n)});return z(z({},i),{},{ui:jf(t.ui,n,i)})}var
Pf=Object.freeze({__proto__:null,default:Df,embed:jl,video:Pl,liveEvent:el,ui:Lf,we
binar:ql});function Nf(t,n,i){var e=!1,r=!1;function o(t)
{i.style.fontSize="".concat(t,"px")}function u()
{i.classList.add("hidden"),i.setAttribute("hidden","")}function a(){"picture-in-
picture"!==t.backbone.presentationMode&&(t.config.embed.settings.background||
(i.classList.remove("hidden"),i.removeAttribute("hidden")))}function s(){for(var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
[];i.firstChild;)i.removeChild(i.firstChild);if(t.length){var
n=document.createDocumentFragment();t.forEach((function(t){var
i=document.createElement("span"),e=t.html;i.innerHTML=e,n.appendChild(i)})),i.appen
dChild(n)}}return t.events.on($o,(function(t){var n=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:[];if(s(n),n.length)return e?void a():void(r=!
0);u()})).on(ec.Hc,(function(t){if(t)return i.setAttribute("lang",t.language),void
i.setAttribute("dir",t.rtl?"rtl":"ltr");i.removeAttribute("dir"),i.removeAttribute(
"lang")})).on(Ko,(function(){e=!0,r&&(r=!1,a())})).on(nu,(function(){u()})).on(iu,
(function(){a()})).on(Gs.Vs,(function(){e=!
1,u()})),n.watch("ui.captions.size",o),o(n.get("ui.captions.size")),t.events.on(ec.
Uc,(function(t){t?i.classList.add("with-controls"):i.classList.remove("with-
controls")})),t.events.on(ec.sl,(function()
{i.classList.add("invisible")})).on(ec.cl,(function()
{i.classList.remove("invisible")})),t.events.on(ec.pc,(function(){"nothing"!
==t.config.embed.outro&&i.classList.add("invisible")})).on([_i.PLAY,ec.Dc],
(function(){i.classList.remove("invisible")})),{}}var Ff=i((function(t){!function()
{var n={templates:{},render:function(t,i){return n.templates[t]?
n.templates[t].call(n,i||{}):""},map:
{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},escape:fu
nction(t){return null==t?"":String(t).replace(/[&<>"'\\/]/g,(function(t){return
n.map[t]}))},helpers:{}};n.templates.adcountdown=function(t){return'<div class="vp-
ads-tag hidden"><span class="vp-ads-
countdown"></span></div>'},n.templates.notice=function(t)
{return"<h3><span>"+t.strings.text+"<span></h3>"},n.templates.stream_studder=functi
on(t){var n="<h3> ";return(n+=this.render("icon_warning")||"")+' <span>Having
issues? <button type="button" class="vp-alert-button-link button-link" aria-
label="Switch to auto" data-alert-autofocus data-close data-
context="suggestion">Switch to Auto</button> for smoother
streaming.</span></h3>'},n.templates.warning_alert=function(t){var n="<h3>
";return(n+=this.render("icon_warning")||"")+"
<span>"+t.strings.text+"<span></h3>"},n.templates.badge=function(t){var n="";return
t.badge&&(t.badge.link&&(n+='<a href="'+t.badge.link+'"',t.targetBlank&&(n+='
target="_blank" rel="noopener"'),n+=' aria-describedby="new-window">'),n+=' <img
src="'+t.badge.img+'"',t.badge.margin&&(n+='
style="margin:'+t.badge.margin+'"'),n+=' width="'+t.badge.width+'"
height="'+t.badge.height+'" alt="'+t.badge.name+' Badge">
',t.badge.link&&(n+="</a>"),n+=""),n+""},n.templates.buffer_pattern=function(t)
{return'<pattern id="'+t.id+'" 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>'},n.templates.card=function(t){var n='<div class="card';return
t.className&&(n+=" "+t.className),t.teaser&&(n+=" card-hasDetail"),n+='">
',t.url&&(n+='<a class="card-link" href="',n+=this.escape(t.url)||"",n+='"
target="_blank" rel="noopener" aria-describedby="new-window">'),n+=' <div
class="card-inner"> ',t.image&&(n+=' <div class="card-imageWrap js-
cardImageWrap"><img class="card-image" src="'+t.image+'" alt=""></div> '),n+=' <div
class="card-body"><h3 class="card-text card-text--
title"><span>',n+=this.escape(t.headline)||"",n+="</span>
",t.url&&(n+=this.render("icon_card_arrow")||""),n+=" </h3> ",t.teaser&&(n+=' <p
class="card-text card-text--detail"> ',n+=this.escape(t.teaser)||"",n+=" </p>
"),n+=" </div></div>
",t.url&&(n+="</a>"),n+"</div>"},n.templates.chapter_marker=function(t){var n='<div
class="chapter-marker
js-chapter-marker" data-time="'+t.chapter.startTime+'"
style="left:'+t.chapter.startTime/t.duration*100+'%;"><div class="chapter-title-
wrapper"><div class="chapter-title"><div class="js-chapter-content chapter-title-
content-wrapper"><span class="chapter-number">'+t.index+"</span><span>
";return(n+=this.escape(t.chapter.text)||"")+"
</span></div></div></div></div>"},n.templates.chapters=function(t){for(var
n="",i=0;i<t.chapters.length;i++)n+=this.render("chapter_marker",
{chapter:t.chapters[i],index:i+1,duration:t.duration})||"",n+="";return
n+""},n.templates.compass=function(t){var n='<svg viewBox="0 0 36 36"> ';return
1==t.version?n+=' <circle class="compass-background" r="18" cx="18"
cy="18"></circle><path class="compass-slice" transform="rotate(-45, 18, 18)"
d="M0,0 m18,18 l12,0 A12,12 0 0,0 18,6 z"/><circle fill="none" class="compass-ring"
stoke-width="3" r="14.5" cx="18" cy="18"></circle><polygon class="compass-dimple"
points="16,3.5 18,1 20,3.5"/> ':n+=' <circle class="compass-background" r="18"
cx="18" cy="18"></circle><path class="compass-slice" transform="rotate(-30, 18,
18)" d="M0,0 m18,18 l13,0 A13,13 0 0,0 11.500000000000004,6.741669750802297
z"/><circle class="compass-centercircle" r="3" cx="18" cy="18"></circle><path
class="compass-line" stroke-linecap="round" d="M0,18 L36,18 z" />
',n+"</svg>"},n.templates.controlbar_trailer=function(t){var n='<button
type="button" class="play trailer rounded-box"><div><span class="play-
icon">';return
n+=this.render("icon_play")||"",n+="</span><p>"+t.text+"</p></div></button>",t.vime
oLogo.show&&(n+=' <div class="logo"> ',t.vimeoLogo.showLink&&(n+=' <a
href="'+t.vimeoLogo.url+'"',t.targetBlank&&(n+=' target="_blank"
rel="noopener"'),n+=' aria-label="'+t.strings.watchOnVimeo+'" aria-
describedby="new-window" data-clip-link>
'),n+=this.render("logo")||"",t.vimeoLogo.showLink&&(n+=" </a> "),n+="
</div>"),n+="",t.customLogo&&(n+=' <div class="custom-
logo',t.customLogo.sticky&&(n+=" sticky"),n+='"
style="width:'+t.customLogo.width+"px;height:"+t.customLogo.height+'px">
',t.customLogo.showLink&&(n+='<a href="',n+=this.escape(t.customLogo.url)||"",n+='"
target="_blank" rel="noopener" aria-describedby="new-window">'),n+=' <img
src="'+t.customLogo.img+'" alt=""> ',t.customLogo.showLink&&(n+="</a>"),n+="
</div>"),n+""},n.templates.controlbar=function(t){var n='<button type="button"
class="play rounded-box state-'+t.playState+'"><div class="tiny-bars"><svg
width="100%" height="100%" viewBox="0 0 65 40" focusable="false"><defs><clipPath
id="rounded-border"><rect height="100%" width="100%" x="0" y="0"
rx="5"/></clipPath> ';return n+=this.render("buffer_pattern",{id:"tiny-
buffer"})||"",n+=' </defs><g clip-path="url(#rounded-border)"><rect class="buffer
hidden" height="3" width="110%" x="0" y="37" fill="url(#tiny-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">'+t.playIcon+'</div><div class="pause-icon">'+t.pauseIcon+'</div><div
class="replay-icon">'+t.replayIcon+'</div></button><div class="play-bar rounded-
box">
',n+=this.render("live_status")||"",n+=this.render("live_viewer_count")||"",n+='
<div class="vp-progress"><div class="focus-target" role="slider" aria-
label="Progress Bar" aria-valuemin="0" aria-valuemax="'+t.rawDuration+'" aria-
valuenow="0" tabindex="0"></div><div class="loaded',t.rawDuration<60&&(n+=" short-
video"),n+='"></div><div class="played"></div><div class="cuepoints"></div><div
class="chapters"></div><div class="thumb-preview invisible hidden"
role="presentation" aria-hidden="true"><div class="thumb"></div></div><div
class="ghost-timecode invisible hidden" role="presentation" aria-hidden="true"><div
class="box">00:00</div></div><div class="timecode" role="presentation" aria-
hidden="true"><div class="box">'+t.duration+"</div></div></div> ",t.volume&&(n+='
<div class="volume" role="slider" title="'+t.strings.volume+'" aria-valuemin="0"
aria-valuemax="1"
tabindex="0"><div></div><div></div><div></div><div></div><div></div></div>
'),t.castButton&&(n+=' <google-cast-launcher class="vp-cast-button"
title="'+t.strings.chromecast+'" role="button" tabindex="0"></google-cast-launcher>
'),t.ccButton&&(n+=' <button type="button" class="toggle cc '+(t.ccOn?"on":"off")
+'" aria-haspopup="true"> '+t.captionsIcon+" </button> "),t.prefsButton&&(n+='
<button type="button" class="vp-prefs js-prefs" aria-haspopup="true">
'+t.settingsIcon+" </button> "),t.chapters&&(n+=' <button type="button" class="vp-
chapter-button js-chapter-button" aria-haspopup="true"> '+t.chaptersIcon+"
</button> "),t.airplayButton&&(n+=' <button type="button" class="toggle airplay off
hidden" title="'+t.strings.airPlay+'" data-title-off="'+t.strings.airPlay+'" data-
title-on="'+t.strings.airPlayOff+'" hidden>
',n+=this.render("icon_airplay")||"",n+=" </button> "),t.stereoscopicButton&&(n+='
<button type="button" class="toggle stereoscopic off"
title="'+t.strings.stereoscopic+'" data-title-off="'+t.strings.stereoscopic+'"
data-title-on="'+t.strings.stereoscopicOff+'">
',n+=this.render("icon_stereoscopic")||"",n+=" </button> "),n+=' <button
type="button" class="pip hidden enter" title="'+t.strings.pipEnter+'" data-title-
enter="'+t.strings.pipEnter+'" data-title-return="'+t.strings.pipReturn+'" hidden>
',n+=this.render("icon_pip")||"",n+=' </button><button type="button"
class="fullscreen',t.fullscreenButton||(n+=" only-in-fullscreen"),n+='"><div
class="fullscreen-icon">'+t.fullscreenIcon+'</div><div class="unfullscreen-
icon">'+t.unfullscreenIcon+"</div></button> ",t.vimeoLogo.show&&(n+=' <div
class="logo"> ',t.vimeoLogo.showLink&&(n+=' <a
href="'+t.vimeoLogo.url+'"',t.targetBlank&&(n+=' target="_blank"
rel="noopener"'),n+=' class="vp-logo-link" aria-label="'+t.strings.watchOnVimeo+'"
aria-describedby="new-window" data-clip-link>
'),n+=this.render("logo")||"",t.vimeoLogo.showLink&&(n+=" </a> "),n+=" </div>
"),n+="</div> ",t.customLogo&&(n+=' <div class="custom-
logo',t.customLogo.sticky&&(n+=" sticky"),n+='" style="max-
width:'+t.customLogo.width+"px;height:"+t.customLogo.height+'px">
',t.customLogo.showLink&&(n+='<a
href="',n+=this.escape(t.customLogo.url||"")||"",n+='" target="_blank"
rel="noopener" aria-describedby="new-window">'),n+=' <img
src="'+t.customLogo.img+'" alt=""> ',t.customLogo.showLink&&(n+="</a>"),n+="
</div>"),n+""},n.templates.debug_panel=function(t){var n="<div class='vp-stats-
debug-values'> ";return
n+=this.render("debug_values",t)||"",n+="</div>",t.hideCloseButton||(n+='<button
type="button" class="vp-stats-debug-close" aria-label="Close stats debug
panel">',n+=this.render("icon_close")||"",n+="</button>"),n+='<input type="text"
class="vp-stats-debug-code">',t.isCopyDisabled||(n+='<button type="button"
class="vp-copy-debug"><span class="vp-copy-debug-label">Copy Debug
Payload</span></button>'),n+="",t.isDNTEnabled&&(n+="No Debug Key available as Do
Not Track is enabled."),n+""},n.templates.debug_values=function(t){var n="";return
t.clipId&&(n+="<p><span>Clip
ID:</span><b>"+t.clipId+"</b></p>"),n+="",t.delivery&&(n+="<p><span>Delivery:</span
><b>"+t.delivery+"</b></p>"),n+="",t.codec&&(n+="<p><span>Codec:</span><b>"+t.codec
+"</b></p>"),n+="",t.resolution&&(n+="<p><span>Playing:</span><b>"+t.resolution+"</
b></p>"),n+="",t.embedSize&&(n+="<p><span>Embed
Size:</span><b>"+t.embedSize+"</b></p>"),n+="",t.isDash&&(n+="<p><span>Separate
AV:</span><b>"+t.separateAudioVideo+"</b></p>"),n+="",(t.isDash||
t.isLive)&&(n+="<p><span>Dropped Frames:</span><b>"+t.droppedFrames+" /
"+t.totalFrames+" -
"+t.droppedFramesPercent+"</b></p>"),n+="",t.vrHeadsetName&&(n+="<p><span>VR
Hardware:</span><b>"+t.vrHeadsetName+"</b></p>"),n+="",t.isLive&&(n+="<p><span>Live
Latency:</span><b>"+t.liveLatency+"</b></p>"),n+="",t.isLive&&t.liveSessionID&&(n+=
"<p><span>Live Session
ID:</span><b>"+t.liveSessionID+"</b></p>"),n+="",t.p2pSources&&(n+="<p><span>P2P:</
span><b>"+t.p2pSources+" -
"+t.p2pOffload+"</b></p>"),n+="",t.drmEnabled&&(n+="<p><span>DRM:</span><b>Enabled;
Fastly DRM: "+t.drmFastly+"</b></p>"),n+="<p><span>Playhead /
Buffer:</span><b>"+t.currentTime+" / "+t.bufferEnd+" / "+t.bufferAhead+"</b></p>",
(t.isDash||t.isLive)&&(n+="<p><span>Bandwidth:</span><b>"+t.bandwidthKbps+'</b><div
class="vp-stats-debug-bandwidth-minmax"> (<b class="vp-stats-debug-bandwidth-
min">'+t.bandwidthMinKbps+'</b><b class="vp-stats-debug-bandwidth-
max">'+t.bandwidthMaxKbps+'</b>) </div></p><div class="vp-stats-debug-time-series">
'+t.bandwidthSeriesSvg+"</div>"),n+="",t.sessionId&&t.showSessionId&&(n+='<p><span>
Debug Key:</span><br><b class="vp-stats-debug-session-
id">'+t.sessionId+"</b></p>"),n+""},n.templates.icon_airplay=function(t)
{return'<svg class="airplay-icon" viewBox="0 0 44 36" focusable="false"><polygon
class="fill" points="0,0 44,0 44,27 34.5,27 31,23 40,23 40,4 4,4 4,23 13,23 9.5,27
0,27"/><polygon class="fill" points="7,36 22,18
37,36"/></svg>'},n.templates.icon_back=function(t){return'<svg class="icon-back"
viewBox="0 0 64 64" preserveAspectRatio="xMidYMid" focusable="false"><path
class="fill" d="M0 32l32 32v-20h32l0-24h-32v-
20z"/></svg>'},n.templates.icon_broken_heart=function(t){return'<svg class="unlike-
icon" viewBox="0 0 110 81" preserveAspectRatio="xMidYMid" focusable="false"><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>'},n.templates.icon_card_arrow=function(t){return'<svg class="card-
arrow" viewBox="0 0 10 10" preserveAspectRatio="xMidYMid"
focusable="false"><polygon
class="fill" points="10 8.337 10 0 1.663 0 1.663 1.603 7.263 1.603 0 8.866 1.134
10 8.397 2.737 8.397 8.337"/></svg>'},n.templates.icon_cc=function(t){return'<svg
viewBox="0 0 20 14" focusable="false" aria-labelledby="cc-icon-title"
role="img"><title id="cc-icon-title">'+t.title+'</title><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>'},n.templa
tes.icon_chapters=function(t){return'<svg class="icon-chapter" viewBox="7 7 18 18"
focusable="false" aria-labelledby="chapters-icon-title" role="img"><title
id="chapters-icon-title">'+t.title+'</title><g class="icon-chapter-group"><rect
class="fill" x="11" y="9" width="14" height="2" rx="1"></rect><rect class="fill"
x="7" y="9" width="2" height="2" rx="1"></rect><rect class="fill" x="7" y="15"
width="2" height="2" rx="1"></rect><rect class="fill" x="11" y="15" width="14"
height="2" rx="1"></rect><rect class="fill" x="11" y="21" width="14" height="2"
rx="1"></rect><rect class="fill" x="7" y="21" width="2" height="2"
rx="1"></rect></g></svg>'},n.templates.icon_check=function(t){return'<svg
class="check-icon" viewBox="0 0 12 12"><path class="fill" d="M10.9
2.9l-.7-.7c-.2-.2-.6-.2-.8-.1L5 6.6 2.6 4.1c-.2-.1-.6-.1-.7 0l-.8.8c-.1.1-.1.5 0 .
7l3.1 3.1c.4.4 1 .4 1.4 0l5.1-
5.1c.3-.2.3-.6.2-.7z"/></svg>'},n.templates.icon_circle_info=function(t)
{return'<svg viewBox="0 0 20 20"><g class="fill"><path d="M10 16a6 6 0 1 1 6-6 6 6
0 0 1-6 6zm0-11a5 5 0 1 0 5 5 5 5 0 0 0-5-5z"></path><path d="M10 9a.5.5 0 0 1 .
5.5v3a.5.5 0 0 1-.5.5.5.5 0 0 1-.5-.5v-3A.5.5 0 0 1 10 9zm0-2a.5.5 0 0 1 .5.5.5.5 0
0 1-.5.5.5.5 0 0 1-.5-.5.5.5 0 0 1 .
5-.5z"></path></g></svg>'},n.templates.icon_clock=function(t){return'<svg
class="watch-later-icon" viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"
focusable="false"><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>'},n.templates.icon_close_new=function(t){return'<svg class="icon-close-
new" viewBox="0 0 16 16" preserveAspectRatio="xMidYMid" focusable="false"><path
class="fill" d="M8.001 9.416l6.437 6.437a.497.497 0 0 0 .713-.001l.7-.7a.503.503 0
0 0 .002-.714L9.416 8.001l6.437-6.436a.497.497 0 0 0-.001-.713l-.7-.7a.503.503 0 0
0-.714-.002L8.001 6.587 1.565.15a.497.497 0 0 0-.713.001l-.7.7a.503.503 0 0
0-.002.714L6.587 8 .15 14.438a.497.497 0 0 0 .001.713l.7.7a.503.503 0 0 0 .
714.002L8 9.416z"/></svg>'},n.templates.icon_close=function(t){return'<svg
class="icon-close" viewBox="0 0 64 64" preserveAspectRatio="xMidYMid"
focusable="false"><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>'},n.templates.icon_collections=function(t){return'<svg
class="collections-icon" viewBox="0 0 24 24" focusable="false"><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>'},n.templates.icon_embed=function(t){return'<svg class="embed-icon"
viewBox="0 0 55 48" preserveAspectRatio="xMidYMid" focusable="false" aria-
labelledby="embed-icon-title" role="img"><title id="embed-icon-
title">'+t.title+'</title><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>'},n.templates.icon_facebook=function(t){return'<svg
class="facebook-icon" viewBox="0 0 64 64" preserveAspectRatio="xMidYMid"
focusable="false" aria-labelledby="fb-icon-title" role="img"><title id="fb-icon-
title">'+t.title+'</title><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>'},n.templates.icon_fast_forward=function(t){return'<svg viewBox="0 0
40 20" preserveAspectRatio="xMidYMid" focusable="false"><polygon class="fill"
points="1,0 20,10 1,20" /><polygon class="fill" points="20,0 40,10 20,20"
/></svg>'},n.templates.icon_follow=function(t){return'<svg class="icon icon-follow"
viewBox="0 0 24 24" preserveAspectRatio="xMidYMid"
focusable="false"><defs><clipPath id="icon-mask--check"><rect x="0" y="0"
width="24" height="24" /></clipPath></defs><path class="icon-path icon-path--plus
fill" d="M24 10h-10v-10h-4v10h-10v4h10v10h4v-10h10z"/><path class="icon-path icon-
path--check fill" d="M9 21.035l-9-8.638 2.791-2.87 6.156 5.874 12.21-12.436 2.843
2.817z" clip-path="url(#icon-mask--check)"/><path class="icon-path icon-path--close
fill" d="M23.954 21.03l-9.184-9.095 9.092-9.174-2.832-2.807-9.09 9.179-9.176-9.088-
2.81 2.81 9.186 9.105-9.095 9.184 2.81 2.81 9.112-9.192 9.18
9.1z"/></svg>'},n.templates.icon_fullscreen=function(t){return'<svg viewBox="0 0 12
12" preserveAspectRatio="xMidYMid" focusable="false" aria-labelledby="fullscreen-
icon-title" role="img"><title id="fullscreen-icon-
title">'+t.title+'</title><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>'},n.templates.icon_gear=function(t){return'<svg class="icon-gear"
viewBox="0 0 16 16" preserveAspectRatio="xMidYMid" focusable="false" aria-
labelledby="settings-icon-title" role="img"><title id="settings-icon-
title">'+t.title+'</title><defs><clipPath id="icon-gear-mask-hd"><polygon
points="19 9.422 19 0 0 0 0 16 4.996 16 6 9.422 19 9.422"/></clipPath><clipPath
id="icon-gear-mask-4k"><polygon points="19 0 0 0 0 16 .656 16 7.641 9.422 19
9.422"/></clipPath></defs><g class="icon-gear-group"><path class="icon-gear-cog
fill" d="M8.75,0 L7.25,0 C6.69771525,0 6.25,0.44771525 6.25,1 L6.25,1.71
C6.24203899,2.03670262 6.03616565,2.32571712 5.73,2.44 C5.22486505,2.64787629
4.75048268,2.92375823 4.32,3.26 C4.06726048,3.46530794 3.71530155,3.4969447
3.43,3.34 L2.81,3 C2.57947626,2.86645499 2.30519371,2.83041629
2.04799634,2.89987835 C1.79079898,2.96934041 1.57195122,3.13856029 1.44,3.37
L1.44,3.37 L0.69,4.67 C0.438460777,5.14101477 0.601355467,5.72655514 1.06,6 L1.06,6
L1.68,6.36 C1.95609578,6.53006064 2.1022252,6.84996558 2.05,7.17
C1.97585362,7.71080372 1.97585362,8.25919628 2.05,8.8 C2.1022252,9.12003442
1.95609578,9.43993936 1.68,9.61 L1.06,10 C0.828560291,10.1319512
0.65934041,10.350799 0.589878348,10.6079963 C0.520416285,10.8651937
0.556454987,11.1394763 0.69,11.37 L0.69,11.37 L1.44,12.67 C1.72842942,13.137733
2.34023095,13.2851012 2.81,13 L2.81,13 L3.43,12.64 C3.71530155,12.4830553
4.06726048,12.5146921 4.32,12.72 C4.75048268,13.0562418 5.22486505,13.3321237
5.73,13.54 C6.03616565,13.6542829 6.24203899,13.9432974 6.25,14.27 L6.25,15
C6.25,15.5522847 6.69771525,16 7.25,16 L8.75,16 C9.30228475,16 9.75,15.5522847
9.75,15 L9.75,14.29 C9.75796101,13.9632974 9.96383435,13.6742829 10.27,13.56
C10.7751349,13.3521237 11.2495173,13.0762418 11.68,12.74 C11.9327395,12.5346921
12.2846984,12.5030553 12.57,12.66 L13.19,13.02 C13.4205237,13.153545
13.6948063,13.1895837 13.9520037,13.1201217 C14.209201,13.0506596
14.4280488,12.8814397 14.56,12.65 L14.56,12.65 L15.31,11.35 C15.5746773,10.8743026
15.4102265,10.2742794 14.94,10 L14.94,10 L14.32,9.64 C14.0439042,9.46993936
13.8977748,9.15003442 13.95,8.83 C14.0241464,8.28919628 14.0241464,7.74080372
13.95,7.2 C13.8977748,6.87996558 14.0439042,6.56006064 14.32,6.39 L14.94,6.03
C15.1714397,5.89804878 15.3406596,5.67920102 15.4101217,5.42200366
C15.4795837,5.16480629 15.443545,4.89052374 15.31,4.66 L15.31,4.66 L14.56,3.36
C14.426372,3.13025585 14.2067828,2.96315821 13.9497298,2.89561144
C13.6926768,2.82806466 13.4193087,2.86562606 13.19,3 L13.19,3 L12.57,3.36
C12.2846984,3.5169447 11.9327395,3.48530794 11.68,3.28
C11.2495173,2.94375823 10.7751349,2.66787629 10.27,2.46 C9.96383435,2.34571712
9.75796101,2.05670262 9.75,1.73 L9.75,1 C9.75,0.73478351 9.64464316,0.480429597
9.45710678,0.292893219 C9.2695704,0.10535684 9.01521649,-8.8817842e-16 8.75,0 Z
M10.5,8 C10.5,9.38071187 9.38071187,10.5 8,10.5 C6.61928813,10.5 5.5,9.38071187
5.5,8 C5.5,6.61928813 6.61928813,5.5 8,5.5 C9.38071187,5.5 10.5,6.61928813 10.5,8
Z" /></g><g class="icon-gear-text icon-gear-text-hd"><polygon class="fill"
points="10.17 12.38 10.46 10.43 12.22 10.43 11.36 16 9.6 16 9.95 13.76 8.09 13.76
7.77 16 6.01 16 6.85 10.43 8.61 10.43 8.32 12.38"/><path class="fill"
d="M17.82,11.23 C17.65,10.98 17.32,10.43 15.93,10.43 L13.37,10.43 L12.51,16
L15.09,16 C16.1538092,16.0719871 17.159097,15.5065128 17.65,14.56
C18.1567595,13.5192032 18.2181336,12.3169925 17.82,11.23 Z M15.9,14.42
C15.6125419,14.6349311 15.2582986,14.7412041 14.9,14.72 L14.48,14.72 L14.9,11.72
L15.35,11.72 C15.6806309,11.6794538 16.0108877,11.7981978 16.24,12.04
C16.4818058,12.8447587 16.357466,13.7151373 15.9,14.42 Z"/></g><g class="icon-gear-
text icon-gear-text-4k"><polygon class="fill" points="11.82 10.29 13.58 10.29 13.19
12.17 13.19 12.17 15.19 10.27 17.48 10.27 14.75 12.62 16.36 16 14.36 16 13.36 13.78
12.76 14.32 12.39 16 10.63 16"/><path class="fill" d="M7.86,14.9 L5.31,14.9
L5.61,13.41 L8.78,10.41 L10.36,10.41 L9.72,13.51 L10.44,13.51 L10.18,14.87
L9.45,14.87 L9.22,16 L7.63,16 L7.86,14.9 Z M8.19,13.54 L8.54,12 L8.54,12
L6.94,13.58 L8.19,13.54 Z"/></g></svg>'},n.templates.icon_heart=function(t)
{return'<svg class="like-icon" viewBox="0 0 110 81" preserveAspectRatio="xMidYMid"
focusable="false"><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>'},n.templates.icon_line_arrow=function(t)
{return'<svg class="icon-lineArrow" viewBox="0 0 24 15"><polygon class="fill"
points="21 0 24 3.057 12 15 0 3.057 3 0 12
9"/></svg>'},n.templates.icon_live_viewers=function(t){return'<svg width="12"
height="14" viewBox="0 0 12 14"><g transform="translate(-5 -4)" fill="#FFF" fill-
rule="evenodd"><circle cx="11" cy="7" r="3"/><path d="M9 12h4a4 4 0 0 1 4 4v2H5v-
2a4 4 0 0 1 4-4z"/></g></svg>'},n.templates.icon_lock=function(t){return'<svg
viewBox="0 0 46 76" preserveAspectRatio="xMidYMid" focusable="false"><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>'},n.templates.icon_mail=function(t){return'<svg class="mail-icon"
viewBox="0 0 72 72" preserveAspectRatio="xMidYMid" focusable="false" aria-
labelledby="mail-icon-title" role="img"><title id="mail-icon-
title">'+t.title+'</title><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>'},n.templates.icon_muted=function(t)
{return'<svg class="vp-icon-muted" viewBox="0 0 16 16"><path class="fill"
d="M15.988 9.491l-1.49 1.491-1.491-1.491-1.491 1.491-1.49-1.491 1.49-1.491-1.49-
1.491 1.49-1.491 1.491 1.491 1.491-1.491 1.49 1.491-1.49 1.491 1.49 1.491zM8.008
15.996l-3.998-3.998h-2.998c-0.552 0-0.999-0.447-0.999-0.999v-5.997c0-0.552 0.447-
0.999 0.999-0.999h2.998l3.998-3.998c0 0 0.999-0.125 0.999 0.999 0 5.423 0 13.304 0
13.993 0 1.124-0.999 0.999-0.999 0.999zM7.009 4.002l-1.999 1.999h-
2.998v3.998h2.998l1.999 1.999v-
7.996z"></path></svg>'},n.templates.icon_pause=function(t){return'<svg viewBox="0 0
20 20" preserveAspectRatio="xMidYMid" focusable="false" aria-labelledby="pause-
icon-title" role="img"><title id="pause-icon-title">'+t.title+'</title><rect
class="fill" width="6" height="20" x="0" y="0" /><rect class="fill" width="6"
height="20" x="12" y="0" /></svg>'},n.templates.icon_pip=function(t){return'<svg
class="pip-icon" viewBox="0 0 16 12"><polygon class="fill" points="6 8 1 8 1 1 14 1
14 6 15 6 15 0 0 0 0 9 6 9 6 8"/><rect class="fill" x="7" y="7" width="9"
height="5"/><polyline class="fill enter" transform="translate(4, 4) rotate(180)
translate(-4, -4)" points="5.33 2 5.33 3 3.67 3 5.67 5 5 5.67 3 3.67 3 5.33 2 5.33
2 2"/><polyline class="fill return" points="5.33 2 5.33 3 3.67 3 5.67 5 5 5.67 3
3.67 3 5.33 2 5.33 2 2"/></svg>'},n.templates.icon_play=function(t){return'<svg
viewBox="0 0 20 20" preserveAspectRatio="xMidYMid" focusable="false" aria-
labelledby="play-icon-title" role="img"><title id="play-icon-
title">'+t.title+'</title><polygon class="fill" points="1,0 20,10
1,20"/></svg>'},n.templates.icon_prev=function(t){return'<svg class="icon-prev"
viewBox="0 0 27 48" preserveAspectRatio="xMidYMid" focusable="false"><path
class="fill" d="M7.243,24L26.414,4.828c0.781-0.781,0.781-2.047,0-2.828L25,0.586 c-
0.781-0.781-2.047-0.781-2.828,0L0.879,21.879c-1.172,1.172-
1.172,3.071,0,4.243l21.293,21.293c0.781,0.781,2.047,0.781,2.828,0 L26.414,46c0.781-
0.781,0.781-2.047,0-2.828L7.243,24z"/></svg>'},n.templates.icon_replay=function(t)
{return'<svg viewBox="-387 605 16 16" preserveAspectRatio="xMidYMid" aria-
labelledby="replay-icon-title" role="img"><title id="replay-icon-
title">'+t.title+'</title><path class="fill" d="M-387 606v4c0 .6.4 1 1 1h4c.6 0
1-.4 1-1s-.4-1-1-1h-1.5c1.1-1.2 2.7-2 4.5-2 3.3 0 6 2.7 6 6s-2.7 6-6 6c-2.3 0-4.4-
1.3-5.4-3.4-.2-.5-.8-.7-1.3-.5-.5.2-.7.8-.5 1.3 1.3 2.8 4.2 4.6 7.2 4.6 4.4 0 8-3.6
8-8s-3.6-8-8-8c-2.3 0-4.5 1-6 2.7V606c0-.6-.4-1-1-1s-1 .4-1
1z"/></svg>'},n.templates.icon_share=function(t){return'<svg class="share-icon"
viewBox="0 0 20 20" preserveAspectRatio="xMidYMid" focusable="false"><polygon
class="fill" points="20,0 0,12 5,15 17,4 7,16 7,19 9,17
14,20"/></svg>'},n.templates.icon_spin=function(t){return'<svg class="vp-spin-
trace" viewBox="0 0 50 50" focusable="false"><circle cx="50%" cy="50%"
r="20"></circle></svg><svg class="vp-spin-circle" viewBox="0 0 50 50"
focusable="false"><circle cx="50%" cy="50%"
r="20"></circle></svg>'},n.templates.icon_stereoscopic=function(t){return'<svg
viewBox="0 0 20 13" focusable="false"><path class="fill" d="M 18.74,0 1.2,0 C
0.55,0 0,0.57 0,1.27 L 0,11.73 C 0,12.43 0.55,13 1.23,13 L 6,13 c 0.54,0 1,-0.32
1.16,-0.79 L 8.55,8.74 C 8.79,8.16 9.35,7.75 10,7.75 c 0.65,0 1.21,0.41 1.45,0.99 l
1.39,3.47 c 0.19,0.47 0.62,0.79 1.11,0.79 l 4.79,0 C 19.45,13 20,12.43 20,11.73 L
20,1.27 C 20,0.57 19.45,0 18.74,0 M 5.22,8.58 C 4,8.58 3,7.55 3,6.29 3,5 4,4 5.22,4
6.44,4 7.43,5 7.43,6.29 7.43,7.55 6.44,8.58 5.22,8.58 m 9.56,0 C 13.56,8.58
12.57,7.55 12.57,6.29 12.57,5.03 13.56,4 14.78,4 16,4 17,5.03 17,6.29 17,7.55
16,8.58 14.78,8.58 Z" /></svg>'},n.templates.icon_tumblr=function(t){return'<svg
class="tumblr-icon" viewBox="0 0 12 20" focusable="false" aria-labelledby="tumblr-
icon-title" role="img"><title id="tumblr-icon-title">'+t.title+'</title><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>'},n.templates.icon_twitter=function(t){return'<svg
class="twitter-icon" viewBox="0 0 274 223" preserveAspectRatio="xMidYMid"
focusable="false" aria-labelledby="twitter-icon-title" role="img"><title
id="twitter-icon-title">'+t.title+'</title><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>'},n.templates.icon_unfullscreen=function(t)
{return'<svg viewBox="0 0 12 12" preserveAspectRatio="xMidYMid" focusable="false"
aria-labelledby="unfullscreen-icon-title" role="img"><title id="unfullscreen-icon-
title">'+t.title+'</title><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>'},n.templates.icon_vod_download=function(t){return'<svg class="vod-
download-icon"
viewBox="0 0 32 32" focusable="false"><path class="fill" d="M21.707 24.707l-5
5c-.39.39-1.024.39-1.414 0l-5-5c-.39-.39-.39-1.024 0-1.414l1.06-1.06c.392-.392
1.025-.392 1.415 0L14 23.462V15c0-.552.448-1 1-1h2c.552 0 1 .448 1 1v8.464l1.232-
1.232c.39-.39 1.024-.39 1.414 0l1.06 1.06c.392.39.392 1.025 0 1.415z"/><path
class="fill" d="M27.894 12.31c.063-.43.106-.864.106-1.31 0-4.97-4.03-9-9-9-3.6 0-
6.7 2.12-8.138 5.175C10.175 6.75 9.368 6.5 8.5 6.5 6.015 6.5 4 8.515 4 11c0 .
445.067.874.187 1.28C1.76 13.05 0 15.318 0 18c0 3.314 2.686 6 6 6h1c0-2.42 1.718-
4.436 4-4.9V15c0-2.21 1.79-4 4-4h2c2.21 0 4 1.79 4 4v4.1c2.282.464 4 2.48 4
4.9h1c3.314 0 6-2.686 6-6 0-2.65-1.72-4.896-4.106-
5.69z"/></svg>'},n.templates.icon_vod_rent=function(t){return'<svg class="vod-rent-
icon" viewBox="0 0 32 32" focusable="false"><path class="fill" d="M23 11H9c-.552 0-
1 .448-1 1v8c0 .552.448 1 1 1h14c.552 0 1-.448 1-1v-8c0-.552-.448-1-1-1z"/><path
class="fill" d="M32 22V10c-2.76 0-5-2.24-5-5H5c0 2.76-2.24 5-5 5v12c2.76 0 5 2.24 5
5h22c0-2.76 2.24-5 5-5zm-6-1c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V11c0-
1.105.895-2 2-2h16c1.105 0 2 .895 2
2v10z"/></svg>'},n.templates.icon_vod_subscribe=function(t){return'<svg class="vod-
subscribe-icon" viewBox="0 0 32 32" focusable="false"><path class="fill" d="M20
9v2c0 .552.448 1 1 1h10c.552 0 1-.448 1-1V1c0-.552-.448-1-1-1h-2c-.552 0-1 .448-1
1v4.445C24.98 2.01 20.523-.128 15.558.005 7.293.23.413 6.96.018 15.216-.42 24.41
6.905 32 16 32c8.47 0 15.404-6.583 15.964-14.912.04-.585-.413-1.088-1-
1.088H28.96c-.514 0-.956.388-.994.9C27.506 23.107 22.326 28 16 28 9.217 28 3.748
22.37 4.01 15.53 4.246 9.284 9.47 4.147 15.72 4.003 19.38 3.92 22.674 5.483 24.926
8H21c-.552 0-1 .448-1 1z"/><path class="fill" d="M13 20v-8l8
4"/></svg>'},n.templates.icon_vod=function(t){return'<svg class="vod-icon"
viewBox="0 0 21 23" focusable="false"><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.3
98,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>'},n.templates.icon_warni
ng=function(t){return'<svg class="warning-icon" focusable="false" width="36"
height="32.326" viewBox="287.915 380.297 36 32.326"><path d="M309.646 382.963c-
2.052-3.555-5.41-3.555-7.462 0L288.79 406.16c-2.05 3.555-.372 6.463 3.732
6.463h26.786c4.104 0 5.783-2.908 3.73-6.463l-13.392-23.197zm-2 23.224c0 .983-.804
1.788-1.788 1.788-.983 0-1.788-.805-1.788-1.788 0-.984.805-1.79 1.788-1.79s1.79.805
1.788 1.79zm-.317-7.76c-.254 2.604-.916 4.735-1.472 4.735-.557 0-1.22-2.13-1.477-
4.735-.255-2.604-.464-5.72-.464-6.925 0-1.204.87-2.19 1.935-2.19 1.066 0 1.936.986
1.936 2.19s-.205 4.32-.457 6.925z"/></svg>'},n.templates.live_status=function(t)
{return'<div class="vp-live-status"><div class="vp-live-status-circle
offline"></div><span>LIVE</span></div>'},n.templates.live_viewer_count=function(t)
{var n='<div class="vp-live-viewer-count"><div class="vp-live-viewer-count-person">
';return(n+=this.render("icon_live_viewers")||"")+' </div><span class="vp-live-
viewer-count-value">0</span></div>'},n.templates.logo=function(t){return'<svg
viewBox="0 0 140 40" preserveAspectRatio="xMidYMid" role="img" focusable="false"
aria-labelledby="logo-icon-title" role="img"><title id="logo-icon-
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>'},n.templates.menu_list_panel=function(t){var
n='<div class="vp-panel vp-panel-open vp-panel--'+t.id+'"><div class="vp-panel-
title"><button type="button" class="vp-panel-button js-panelTitleButton"
tabindex="0"><span class="vp-panel-button-text">'+t.title+'</span><span class="vp-
panel-stat"><span class="vp-panel-stat-text js-panelStatText">'+t.active+"</span>
";n+=this.render("icon_line_arrow")||"",n+=' </span></button></div><div class="vp-
panel-itemsWrap"><ul class="vp-panel-items js-panelItems"> ';for(var
i=0;i<t.items.length;i++)n+=' <li class="vp-panel-item',t.items[i].active&&(n+="
vp-panel-item-on"),n+='" data-time="'+t.items[i].id+'" tabindex="0"
role="menuitemradio" aria-checked="',t.items[i].active?n+="true":n+="false",n+='">
',t.items[i].index&&(n+='<span class="vp-panel-item-
index">'+t.items[i].index+"</span>"),n+=' <span class="vp-panel-item-
label">'+t.items[i].label+"</span></li> ";return n+' </ul><div class="vp-
indicator"></div></div></div>'},n.templates.menu=function(t){var n='<div class="vp-
menu vp-menu-hidden vp-menu-invisible" role="menu" hidden><button type="button"
class="vp-menu-close js-menuClose" aria-label="'+t.strings.close+'">';return
n+=this.render("icon_close_new")||"",n+='</button><button type="button" class="vp-
menu-info js-menuInfo">',(n+=this.render("icon_circle_info")||"")
+"</button></div>"},n.templates.nudge=function(t){var n='<div class="vp-nudge vp-
nudge-backward invisible"><div class="vp-nudge-seconds"></div><div class="vp-nudge-
symbol vp-nudge-backward-symbol"> ';return
n+=this.render("icon_fast_forward")||"",n+=' </div></div><div class="vp-nudge vp-
nudge-forward invisible"><div class="vp-nudge-seconds"></div><div class="vp-nudge-
symbol vp-nudge-forward-symbol"> ',(n+=this.render("icon_fast_forward")||"")+"
</div></div>"},n.templates.outer=function(t){var n='<div class="vp-video-
wrapper"><div class="vp-video"><div class="vp-telecine"></div></div><div class="vp-
preview"></div><div class="vp-shade vp-shade-invisible"></div><div class="vp-nudge-
shade vp-nudge-shade-left vp-nudge-shade-invisible"></div><div class="vp-nudge-
shade vp-nudge-shade-right vp-nudge-shade-invisible"></div><div class="vp-spin vp-
spin-invisible"> ';return n+=this.render("icon_spin")||"",n+=' </div></div><div
class="vp-text-alert-wrapper hidden"><div class="vp-alert-text"></div><div
class="vp-alert-time"><div class="vp-live-start-time-title"></div><div class="vp-
live-start-time-body"></div><div class="vp-live-start-time-
footer"></div></div></div><div class="vp-target"></div><div class="vp-captions
hidden with-controls" hidden aria-live="assertive"><span></span></div><div
class="vp-cards-wrapper"><div class="vp-cards"></div></div><div class="vp-outro-
wrapper hidden" hidden><div class="vp-outro" role="dialog"></div></div><div
class="vp-controls-wrapper"><div class="vp-badge"></div><div class="vp-
title"></div><div class="vp-controls"></div><div class="vp-sidedock hidden"
hidden></div><div class="vp-unmute hidden" hidden></div></div><div class="vp-
overlay-wrapper hidden" role="dialog" aria-modal="true" aria-labelledby="vp-
overlay-labelledby" hidden><div class="vp-overlay-bg"></div><div class="vp-overlay-
cell"><div class="vp-overlay"></div><div class="vp-overlay-icon-wrapper
hidden"><div class="vp-overlay-icon"></div></div><div class="vp-overlay-logo
logo"></div></div><nav><button type="button" class="vp-nav-prevButton js-back
cloaked" aria-
label="'+t.strings.back+'">',n+=this.render("icon_prev")||"",n+='</button><button
type="button" class="vp-nav-closeButton js-close" aria-
label="'+t.strings.close+'">',(n+=this.render("icon_close_new")||"")
+'</button></nav></div><div class="vp-notification-wrapper hidden" hidden><div
class="vp-notification-cell"><div class="vp-notification" role="dialog" aria-
live="assertive"></div></div></div><div class="vp-stats-debug rounded-box hidden"
aria-hidden="true" hidden></div><div class="vp-nudge-wrapper hidden"></div><span
id="new-window" hidden>This opens in a new
window.</span>'},n.templates.sidedock=function(t){var n="";return
t.vodButton&&(n+=' <div class="box" data-vod-
expiring="'+t.vodPurchaseInfo.expiring+'" data-vod-
purchased="'+t.purchased+'"><button type="button" class="vod-button rounded-
box',t.purchased&&(n+=" on"),t.vodPurchaseInfo.expiring&&(n+=" expiring"),n+='"
data-product-id="'+t.vodPurchaseInfo.product_id+'"><div class="vod-button-
inner"><span class="vod-label">'+t.vodDisplayLabel+"</span>
",n+=this.render("icon_vod")||"",n+=' </div></button></div><div class="sidedock-
inner">'),t.likeButton&&(n+=' <div class="box"><label class="rounded-box hidden
like-label" role="presentation"><span>'+(t.liked?t.strings.unlike:t.strings.like)
+'</span></label><button type="button" class="like-button rounded-
box',t.liked&&(n+=" on"),n+='" aria-label="',t.loggedIn?n+=""+(t.liked?
t.strings.unlike:t.strings.like):n+=""+t.strings.likeLoggedOut,n+='" data-label-
add="'+t.strings.like+'" data-label-add-logged-out="'+t.strings.likeLoggedOut+'"
data-label-remove="'+t.strings.unlike+'"> ',n+=this.render("icon_heart")||"",n+="
</button></div>"),t.watchLaterButton&&(n+=' <div class="box"><label class="rounded-
box hidden watch-later-label" role="presentation"><span>'+(t.addedToWatchLater?
t.strings.watchLaterRemove:t.strings.watchLaterAdd)+'</span></label><button
type="button" class="watch-later-button rounded-box',t.addedToWatchLater&&(n+="
on"),n+='" aria-label="',t.loggedIn?n+=""+(t.addedToWatchLater?
t.strings.watchLaterRemove:t.strings.watchLaterAdd):n+=""+t.strings.watchLaterAddLo
ggedOut,n+='" data-label-add="'+t.strings.watchLaterAdd+'" data-label-add-logged-
out="'+t.strings.watchLaterAddLoggedOut+'" data-label-
remove="'+t.strings.watchLaterRemove+'"> ',n+=this.render("icon_clock")||"",n+="
</button></div>"),t.collectionsButton&&(n+=' <div class="box"><label
class="rounded-box hidden collections-label"
role="presentation"><span>'+t.strings.collections+'</span></label><button
type="button" class="collections-button rounded-box" aria-
label="'+t.strings.collections+'"> ',n+=this.render("icon_collections")||"",n+="
</button></div>"),t.shareButton&&(n+=' <div class="box"><label class="rounded-box
hidden share-label"
role="presentation"><span>'+t.strings.share+'</span></label><button type="button"
class="share-button rounded-box" aria-label="'+t.strings.share+'">
',n+=this.render("icon_share")||"",n+=" </button></div>"),t.vodButton&&(n+="
</div>"),n+""},n.templates.app_redirect=function(t){var n='<div class="vp-overlay-
content"> ';return t.strings.title&&(n+=' <div class="app-redirect-
title">'+t.strings.title+"</div> "),t.hideRedirectButton||(n+=' <div class="'+
(t.strings.title?"":"app-redirect--topspace")+'"><a class="app-redirect-button"
href="'+t.redirectUrl+'" role="button"',t.newWindow&&(n+=' data-new-window="1"
target="_blank" rel="noopener"'),n+=' aria-describedby="new-
window">'+t.strings.buttonText+"</a></div> "),t.strings.ignoreText&&(n+=' <div
class="app-redirect-ignore">'+t.strings.ignoreText+"</div>
"),t.strings.bottomText&&(n+=' <div class="app-redirect-bottom-
text">'+t.strings.bottomText+"</div>
"),n+"</div>"},n.templates.email_capture_field=function(t){var n="";return
t.field.required?(n+=' <div class="vp-email-capture-form-custom-field required"
data-id="'+t.field.id+'" aria-hidden="true"><label class="vp-email-capture-form-
input-label" for="custom-field-'+t.field.id+'">
',n+=this.escape(t.field.field_name)||"",n+=' </label><input id="custom-
field-'+t.field.id+'" class="vp-email-capture-form-input
',t.field.locked&&(n+="locked_field"),t.field.static_field&&(n+="static_field"),n+=
'" name="',n+=this.escape(t.field.field_name)||"",n+='" maxlength="180" tabIndex="-
1" required /></div>'):(n+=' <div class="vp-email-capture-form-custom-field" data-
id="'+t.field.id+'" aria-hidden="true"><label class="vp-email-capture-form-input-
label" for="custom-field-'+t.field.id+'">
',n+=this.escape(t.field.field_name)||"",n+=' </label><input id="custom-
field-'+t.field.id+'" class="vp-email-capture-form-input
',t.field.locked&&(n+="locked_field"),t.field.static_field&&(n+="static_field"),n+=
'" name="',n+=this.escape(t.field.field_name)||"",n+='" tabIndex="-1"
maxlength="180" /></div>'),n+""},n.templates.email_capture_fields=function(t)
{for(var n="",i=0;i<t.customFields.length;i++)n+=this.render("email_capture_field",
{field:t.customFields[i]})||"",n+="";return
n+""},n.templates.email_capture_logo=function(t){var n='<img
src="';return(n+=this.escape(t.url)||"")+'" alt="" class="vp-email-capture-
logo">'},n.templates.email_capture_privacy_policy=function(t){var n='<a class="vp-
email-capture-privacy-policy" href="';return(n+=this.escape(t.url)||"")+'"
target="_blank"
rel="noopener">'+t.text+"</a>"},n.templates.email_capture_skip=function(t){var
n="";return t.positionIsAfter&&(n+=' <input class="vp-email-capture-form-button vp-
email-capture-form-button--cancel" type="button"
value="'+t.skipText+'">'),n+="",t.positionIsAfter||(n+=' <input class="vp-email-
capture-form-button vp-email-capture-form-button--cancel" type="button"
value="'+t.skipToVideoText+'">'),n+""},n.templates.email_capture_start_time=functio
n(t){return'<div class="vp-email-capture-start-time">
'+t.startTime+"</div>"},n.templates.email_capture_title=function(t){var
n="";return(n+=this.escape(t.title)||"")+""},n.templates.email_capture=function(t)
{var n='<div class="vp-email-capture-wrapper"><div class="vp-email-capture">
';return t.text||(n+=' <div class="vp-sr-only" id="vp-overlay-
labelledby">'+t.aria_label+"</div> "),n+=' <form class="vp-email-capture-form"
novalidate><div class="vp-email-capture-title-logo-wrap">
',t.customLogo&&(n+=this.render("email_capture_logo",
{url:t.customLogo})||""),t.webinarStartTime&&(n+=this.render("email_capture_start_t
ime",{startTime:t.webinarStartTime})||""),n+=' <div class="vp-email-capture-title"
id="vp-overlay-labelledby"> ',t.isWebinar&&t.showWebinarLogin?
n+=this.render("email_capture_title",
{title:t.reg_login_title})||"":t.text&&(n+=this.render("email_capture_title",
{title:t.text})||""),n+=' </div></div><div class="vp-email-capture-form-fields-
bubble-wrapper"><div class="vp-email-capture-form-fields-wrapper"><div class="vp-
email-capture-form-fields-slider"> ',n+=this.render("email_capture_fields",
{customFields:t.customFields})||"",n+=' </div></div><div class="vp-validation-
bubble hidden"><div class="vp-validation-bubble-message"></div></div></div><div
class="vp-email-capture-form-buttons"><input class="vp-email-capture-form-button
vp-email-capture-form-button--back" tabIndex="-1" type="button"
value="'+t.strings.back+'" aria-hidden="true"><div class="vp-email-capture-form-
button--next-submit-wrapper"><div class="vp-email-capture-form-button--next-submit-
slider"><input class="vp-email-capture-form-button vp-email-capture-form-button--
next" tabIndex="-1" type="button" value="'+t.strings.next+'" aria-
hidden="true"><input class="vp-email-capture-form-button vp-email-capture-form-
button--submit" tabIndex="-1" type="submit" value="'+t.strings.submit+'" aria-
hidden="true"></div></div></div> ',t.isWebinar&&(n+=' <div class="vp-email-capture-
reg-bypass-wrapper"> ',n+=this.render("webinar_registration_bypass_btn",
{showWebinarLogin:t.showWebinarLogin,regBypass:t.strings.reg_bypass,getGoBack:t.str
ings.reg_go_back})||"",n+=" </div> "),n+=' <div class="vp-email-capture-disclaimer-
wrapper cloaked"><div class="vp-email-capture-disclaimer"
value="'+t.strings.disclaimer+'"> '+t.strings.disclaimer+" </div>
",t.privacyPolicy&&(n+=this.render("email_capture_privacy_policy",
{text:t.strings.privacy_policy,url:t.privacyPolicy})||""),n+=' </div></form><div
class="vp-email-capture-form-skip">
',t.allowSkip&&(n+=this.render("email_capture_skip",
{position:t.position,skipText:t.strings.skip,skipToVideoText:t.strings.skip_to_vide
o,positionIsAfter:t.positionIsAfter})||""),n+=' </div><div class="vp-email-capture-
progress-wrapper"><div class="vp-email-capture-steps"> '+t.strings.step+' <span
class="vp-email-capture-current-step"></span> '+t.strings.of+' <span class="vp-
email-capture-total-steps">'+t.customFields.length+'</span></div><div class="vp-
email-capture-progress-bar"><span class="vp-email-capture-progress-
meter"></span></div></div></div><div class="vp-email-capture-thank-you hidden"><div
class="vp-email-capture-thank-you-box"><h1
class="vp-email-capture-thank-you-title">'+t.strings.thank_you+'</h1><p class="vp-
email-capture-thank-you-subtitle">'+t.strings.successful+"</p></div>
",t.positionIsAfter||(n+=' <div class="vp-email-capture-video-countdown vp-email-
capture-video-countdown-meter-wrapper" aria-label="'+t.strings.video_starts+'"><div
class="vp-email-capture-video-countdown-meter"></div><div class="vp-email-capture-
video-countdown-meter-text"> '+t.strings.video_starts+' <span class="vp-email-
capture-video-countdown-timer"></span></div></div> '),n+=' </div><div class="vp-
email-capture-reg-thank-you hidden"><div class="vp-email-capture-thank-you-box">
',t.customLogo&&(n+=this.render("email_capture_logo",
{url:t.customLogo})||""),t.webinarStartTime&&(n+=this.render("email_capture_start_t
ime",{startTime:t.webinarStartTime})||""),n+=' <h1 class="vp-email-capture-thank-
you-title">'+t.strings.reg_thank_you+'</h1><p class="vp-email-capture-thank-you-
subtitle">'+t.strings.reg_thank_you_subtitle+'</p></div></div><div class="vp-email-
capture-login-thank-you hidden"><div class="vp-email-capture-thank-you-box">
',t.customLogo&&(n+=this.render("email_capture_logo",
{url:t.customLogo})||""),t.webinarStartTime&&(n+=this.render("email_capture_start_t
ime",{startTime:t.webinarStartTime})||""),n+' <h1 class="vp-email-capture-thank-
you-title">'+t.strings.login_thank_you+'</h1><p class="vp-email-capture-thank-you-
subtitle">'+t.strings.login_thank_you_subtitle+"</p></div></div></div>"},n.template
s.error=function(t){var n='<div class="vp-overlay-content error"><div class="vp-sr-
only" id="vp-overlay-labelledby">'+t.aria_label+"</div> ";return t.title&&(n+="
<h1>"+t.title+"</h1> "),t.message&&(n+=" <p>"+t.message+"</p>
"),n+"</div>"},n.templates.help=function(t){var n='<div class="vp-overlay-content
help"><h1 id="vp-overlay-labelledby">'+t.strings.title+'</h1><dl><div
class="volume-up secondary"><dt
class="arrow">↑</dt><dd>'+t.strings.volumeUp+'</dd></div><div class="volume-down
secondary"><dt class="arrow">↓</dt><dd>'+t.strings.volumeDown+'</dd></div><div
class="scrub-forward secondary"><dt
class="arrow">→</dt><dd>'+t.strings.scrubForward+'</dd></div><div class="scrub-
backwards secondary"><dt
class="arrow">←</dt><dd>'+t.strings.scrubBackwards+'</dd></div><div
class="like"><dt>L</dt><dd>'+t.strings.like+'</dd></div><div
class="share"><dt>S</dt><dd>'+t.strings.share+'</dd></div><div class="watch-
later"><dt>W</dt><dd>'+t.strings.watchLater+'</dd></div><div class="toggle-
captions"><dt>C</dt><dd>'+t.strings.captions+'</dd></div><div class="toggle-
prefs"><dt>H</dt><dd>'+t.strings.prefs+'</dd></div><div
class="fullscreen"><dt>F</dt><dd>'+t.strings.fullscreen+"</dd></div> ";return
t.onSite||(n+='<div class="view-on-
vimeo"><dt>V</dt><dd>'+t.strings.viewOnVimeo+"</dd></div>"),n+"
</dl></div>"},n.templates.outro_email=function(t){var n='<div class="vp-outro-
bg"';return t.bgimage&&(n+=' style="background-image:
url('+t.bgimage+');"'),n+'></div><div class="vp-outro-content vp-outro-content--
email vp-outro-shade js-outro-content"></div>'},n.templates.outro_image=function(t)
{var n='<div class="vp-outro-content vp-outro-content--image js-outro-content">
';return t.url&&(n+='<a class="vp-outro-imageLink js-imageLink" href="'+t.url+'"
target="_blank" rel="noopener" aria-describedby="new-
window">'),t.bgimage&&(n+='<div class="vp-outro-image" style="background-image:
url('+t.bgimage+');"',t.alt_text&&(n+=' aria-
label="',n+=this.escape(t.alt_text)||"",n+='"
role="img"'),n+="></div>"),t.url&&(n+="</a>"),n+"</div>"},n.templates.outro_link=fu
nction(t){var n='<div class="vp-outro-bg"';return t.bgimage&&(n+='
style="background-image: url('+t.bgimage+');"'),n+='></div><div class="vp-outro-
content vp-outro-content--link vp-outro-shade js-outro-content"><div class="vp-
outro-linkWrapper js-outro-linkWrapper"> ',t.title&&(n+='<h1 class="vp-outro-
textTitle js-outro-
title">',n+=this.escape(t.title)||"",n+="</h1>"),t.description&&(n+='<p class="vp-
outro-textDescription js-outro-
text">',n+=this.escape(t.description)||"",n+="</p>"),t.text&&t.url&&(n+=' <div
class="vp-outro-buttonWrap"><a class="vp-outro-button js-cta" href="'+t.url+'"
target="_blank" rel="noopener" aria-describedby="new-
window"><span>',n+=this.escape(t.text)||"",n+="</span></a></div>
"),t.text2&&t.url2&&(n+=' <div class="vp-outro-linkWrap js-outro-linkWrap"><a
class="vp-outro-link js-link" href="'+t.url2+'" target="_blank" rel="noopener"
aria-describedby="new-window">',n+=this.escape(t.text2)||"",n+="</a></div> "),n+"
</div></div>"},n.templates.outro_nothing=function(t){return'<div class="vp-outro-
bg"></div><div class="vp-outro-content vp-outro-content--nothing vp-outro-shade js-
outro-content"></div>'},n.templates.outro_share=function(t){var n='<div class="vp-
outro-bg"';return t.bgimage&&(n+=' style="background-image:
url('+t.bgimage+');"'),n+='></div><div class="vp-outro-content vp-outro-content--
share vp-outro-shade js-outro-content"></div><nav class="panel-nav"><button
type="button" class="vp-nav-prevButton js-back cloaked" aria-
label="'+t.strings.back+'">',(n+=this.render("icon_prev")||"")
+"</button></nav>"},n.templates.outro_staticimage=function(t){var n='<div
class="vp-outro-content vp-outro-content--staticImage js-outro-content"><div
class="vp-outro-staticImageWrapper"> ';return t.url&&(n+='<a class="vp-outro-
staticImageLink" href="'+t.url+'" target="_blank" rel="noopener" aria-
describedby="new-window">'),n+=' <img class="vp-outro-staticImage"
src="'+t.svg_url+'"> ',t.url&&(n+="</a>"),n+"
</div></div>"},n.templates.outro_text=function(t){return'<div class="vp-outro-
content vp-outro-content--text vp-outro-shade js-outro-content"><div class="vp-
outro-textWrapper"><div class="vp-outro-
text">'+t.text+"</div></div></div>"},n.templates.outro_videos=function(t){var
n='<div class="vp-outro-bg"';t.bgimage&&(n+=' style="background-image:
url('+t.bgimage+');"'),n+='></div><div class="vp-outro-content vp-outro-content--
videos vp-outro-shade js-outro-content"> ';for(var i=0;i<t.contexts.length;i++){var
e=t.contexts[i];n+=' <div class="vp-outro-videosSection vp-outro-
videosSection--'+e.videos.length,e.promoted&&(n+=" vp-outro-videosSection--
promoted"),n+='"><div class="vp-outro-videosHeaderWrapper"><header class="vp-outro-
videosHeader"><h1 class="vp-outro-videosTitle">'+e.context+"</h1>
",t.showFollowButton&&!e.promoted&&(n+=' <div class="vp-outro-followWrap js-outro-
followWrap"><button type="button" class="vp-outro-follow js-outro-follow" aria-
label="'+t.strings.follow+'" aria-pressed="',t.following?
n+="true":n+="false",n+='"> ',n+=this.render("icon_follow")||"",n+=' <span
class="vp-outro-follow-text" data-label-follow="'+t.strings.follow+'" data-label-
following="'+t.strings.following+'" data-label-
unfollow="'+t.strings.unfollow+'"></span></button></div> '),n+=' </header></div><ul
class="vp-outro-videos vp-outro-videos--'+e.videos.length+'"> ';for(var
r=0;r<e.videos.length;r++)n+=' <li><a class="vp-outro-videoLink js-
videoLink',1==i&&(n+=" hovered"),n+='" href="'+e.videos[r].url+'" ',t.target&&(n+='
target="_blank" rel="noopener" '),n+=' data-video-id="'+e.videos[r].id+'" aria-
describedby="new-window" ><div class="vp-outro-imgWrapper" style="background-image:
url('+e.videos[r].thumbnail+')"></div><header class="vp-outro-videoHeader" id="vp-
outro-videoHeader"><h1 class="vp-outro-
videoTitle">',n+=this.escape(e.videos[r].title)||"",n+="</h1>
",e.videos[r].byline&&(n+=' <h2 class="vp-outro-
videoByline">',n+=this.escape(e.videos[r].byline)||"",n+="</h2> "),n+="
</header></a> ";n+=" </ul></div> "}return
n+"</div>"},n.templates.outro_vod=function(t){var n='<div class="vp-outro-content
vp-outro-content--vod vp-outro-shade js-outro-content"><div class="vp-outro-
vodWrapper"><h1 class="vp-outro-vodHeader" aria-describedby="new-window"><a
href="'+t.url+'" target="_blank"
rel="noopener">';n+=this.escape(t.title)||"",n+="</a></h1> ";var
i=t.countries,e=t.country;if(this.helpers.isAvailableInCountry(i,e))if(t.purchased)
n+=' <a class="vp-outro-vodButton vp-outro-vodButton--watch js-vod-watch"
role="button" href="'+t.url+'" target="_blank" rel="noopener" aria-
describedby="new-window">'+t.strings.watch+"</a> ";else{if(!t.isComingSoon){n+='
<ul class="vp-outro-vod"> ';for(var r=0;r<t.buttons.length;r++){n+=' <li class="vp-
outro-vod-item"><a class="vp-outro-vodButton vp-outro-
vodButton--'+t.buttons[r].type+' js-vod-button" role="button"
href="'+t.url+"#buy="+t.buttons[r].product_id+'" target="_blank" rel="noopener"
data-product-id="'+t.buttons[r].product_id+'" aria-describedby="new-window" ><div
class="vp-outro-vodIcon"> ',"buy"===t.buttons[r].type?
n+=this.render("icon_vod_download")||"":"rent"===t.buttons[r].type?
n+=this.render("icon_vod_rent")||"":"subscribe"===t.buttons[r].type?
n+=this.render("icon_vod_subscribe")||"":n+=this.render("icon_vod")||"",n+=" </div>
";var o=t.currency,u=t.buttons[r];n+="
<p>"+this.helpers.formatVodLabel(t.translationMap,"outro_string",o,u)
+"</p></a></li> "}n+=" </ul> "}(t.isPreorder||t.isComingSoon)&&(n+="
<p>"+t.strings.preRelease+"</p> ")}return n+"
</div></div>"},n.templates.password=function(t){return'<div class="vp-overlay-
content password form"><h1 class="header" id="vp-overlay-
labelledby">'+t.strings.title+'</h1><p
class="subtitle">'+t.strings.subtitle+'</p><form action="'+t.action+'"
method="post" novalidate><div class="vp-validation-bubble hidden"><div class="vp-
validation-bubble-arrow-clipper"><div class="vp-validation-bubble-
arrow"></div></div><div class="vp-validation-bubble-message"></div></div><input
class="js-password" type="password" name="password"
placeholder="'+t.strings.password+'" required aria-required="true" aria-
label="'+t.strings.password+'"><input type="submit"
value="'+t.strings.watch+'"></form></div>'},n.templates.private_locked=function(t)
{return'<div class="vp-overlay-content login"><h1 id="vp-overlay-
labelledby">'+t.strings.title+'</h1><p
class="subtitle">'+t.strings.subtitle+'</p><a href="'+t.action+'"
class="popup js-login" target="_blank" rel="noopener" role="button" aria-
describedby="new-
window">'+t.strings.logIn+"</a></div>"},n.templates.private_unlocked=function(t)
{return'<div class="vp-overlay-content form
unlocked"><h1>'+t.strings.title+'</h1><p
class="subtitle">'+t.strings.subtitle+'</p><button class="js-watch"
type="button">'+t.strings.watch+"</button></div>"},n.templates.share=function(t)
{var n='<div class="vp-share-wrapper js-share"><section class="vp-share-screen vp-
share-screen--share'+(t.embedOnly?" cloaked":"")+' js-share-screen"><h1 class="vp-
share-title vp-share-title--share" id="vp-overlay-
labelledby">'+t.strings.share+'</h1><ul class="vp-share-buttons"><li class="vp-
share-buttons-item"><a class="vp-share-button vp-share-button--facebook js-
facebook" href="'+t.playerShareUrl+'/facebook" target="_blank" rel="noopener"
role="button" aria-describedby="new-window" > '+t.facebookIcon+' </a><li class="vp-
share-buttons-item"><a class="vp-share-button vp-share-button--twitter js-twitter"
href="'+t.playerShareUrl+'/twitter" target="_blank" rel="noopener" role="button"
aria-describedby="new-window" > '+t.twitterIcon+' </a><li class="vp-share-buttons-
item"><a class="vp-share-button vp-share-button--tumblr js-tumblr"
href="'+t.playerShareUrl+'/tumblr" target="_blank" rel="noopener" role="button"
aria-describedby="new-window" > '+t.tumblrIcon+" </a> ";return t.url&&(n+=' <li
class="vp-share-buttons-item"><a class="vp-share-button vp-share-button--email js-
email" href="mailto:?
subject=',n+=encodeURIComponent(t.strings.emailSubject)||"",n+="&amp;body=",n+=enco
deURIComponent(t.strings.emailBody)||"",n+='" role="button" aria-describedby="new-
window" > '+t.emailIcon+" </a> "),n+=" </ul> ",t.embed&&(n+=' <ul class="vp-share-
buttons"><li class="vp-share-buttons-item"><a class="vp-share-button vp-share-
button--embed js-embed" href="'+t.url+'#share" target="_blank" rel="noopener"
role="button" > '+t.embedIcon+" </a></li></ul> "),t.url&&(n+=' <p class="vp-share-
footnote vp-share-footnote--share"><a class="clip_url" href="'+t.shareUrl+'"
target="_blank" rel="noopener" aria-describedby="new-window">'+t.shareUrl+"</a></p>
"),n+=" </section> ",t.embed&&(n+=' <section class="vp-share-screen vp-share-
screen--embed'+(t.embedOnly?"":" cloaked")+' js-embed-screen"><div class="vp-share-
embedWrapper"><h1 class="vp-share-title vp-share-title--
embed">'+t.strings.embedTitle+'</h1><p class="vp-share-subtitle vp-share-subtitle--
embed">'+t.strings.embedSubtitle+'</p><div class="vp-share-embedCode
form"><div><input class="vp-share-embedInput js-embed-input" type="text"
name="embed_code" title="Embed code" value="'+t.embedCode+'" spellcheck="false"
aria-readonly="true"',t.readOnly&&(n+=" readonly"),n+="></div>
",t.copyButton&&(n+=' <button type="button" class="vp-share-embedCopy js-embedCopy"
data-clipboard-text=\''+t.embedCode+"' data-label=\""+t.strings.copy+'" data-
success-label="'+t.strings.copySuccess+'">'+t.strings.copy+"</button> "),n+="
</div> ",t.customizeEmbed&&(n+=' <p class="vp-share-footnote vp-share-footnote--
embed">'+t.strings.customize+"</p> "),n+=" </div></section>
"),n+"</div>"},n.templates.webinar_confirmation=function(t){var n='<div class="vp-
email-capture-reg-thank-you"><div class="vp-email-capture-thank-you-box"> ';return
t.customLogo&&(n+=this.render("email_capture_logo",
{url:t.customLogo})||""),t.webinarStartTime&&(n+=this.render("email_capture_start_t
ime",{startTime:t.webinarStartTime})||""),n+' <h1 class="vp-email-capture-thank-
you-title">'+t.strings.thank_you+'</h1><p class="vp-email-capture-thank-you-
subtitle">'+t.strings.thank_you_subtitle+"</p></div></div>"},n.templates.webinar_re
gistration_bypass_btn=function(t){var n="";return t.showWebinarLogin?
t.showWebinarLogin&&(n+=' <button class="vp-email-capture-reg-go-
back">'+t.regGoBack+"</button>"):n+=' <button class="vp-email-capture-reg-
bypass">'+t.regBypass+"</button>",n+""},n.templates.threesixty_reminder=function(t)
{var n='<div class="intro-wrap text-only"><div> ';return t.showArrows&&(n+=' <div
class="key-wrapper"><div class="key-row"><div class="key"><div class="arrow arrow-
top"></div></div></div><div class="key-row"><div class="key"><div class="arrow
arrow-left"></div></div><div class="key"><div class="arrow arrow-
down"></div></div><div class="key"><div class="arrow arrow-
right"></div></div></div></div> '),n+"
<div>"+t.text+"</div></div></div>"},n.templates.time_series_graph=function(t)
{return'<svg width="'+t.width+'" height="'+t.height+'" viewBox="0 0 '+t.width+"
"+t.height+'"><g><polyline stroke="white" fill="none"
points="'+t.points+'"></polyline></g><g> '+t.markers+"
</g></svg>"},n.templates.title_byline_badge=function(t){var n="";return
t.displayBadge&&(n+="&nbsp;",t.link&&(n+='<a tabindex="-1"
href="'+t.link+'"',t.targetBlank&&(n+=' target="_blank" rel="noopener" aria-
describedby="new-window"'),n+=">"),n+=' <span class="byline-badge
'+t.cssClass+'">'+t.cssClass+"</span>",t.link&&(n+="</a>"),n+=""),n+""},n.templates
.title_owner_byline=function(t){var n="";return t.linkToOwner?(n+='<a
href="'+t.ownerLink+'"',t.targetBlank&&(n+=' target="_blank" rel="noopener"'),n+='
data-track-click="'+t.ClickTargets.VIDEO_BYLINE+'" aria-describedby="new-
window">',n+=this.escape(t.owner)||"",n+="</a>"):(n+='<span
class="user">',n+=this.escape(t.owner)||"",n+="</span>"),n+""},n.templates.title=fu
nction(t){var n='<header class="vp-title-header"> ';return t.showPortrait&&(n+='
<div class="vp-portrait" aria-hidden="true"> ',t.linkToOwner&&(n+='<a tabindex="-1"
href="'+t.ownerLink+'"',t.targetBlank&&(n+=' target="_blank"
rel="noopener"'),n+=">"),n+=' <img src="'+t.portraitImg+'" alt="'+t.portraitAlt+'"
width="60" height="60" data-track-click="'+t.ClickTargets.VIDEO_PORTRAIT+'">
',t.linkToOwner&&(n+="</a>"),n+=" </div> "),n+=' <div class="headers">
',t.showTitle&&(n+=' <h1 aria-describedby="new-window"> ',t.showTitleLink&&(n+='<a
href="'+t.titleLink+'"',t.targetBlank&&(n+=' target="_blank" rel="noopener"'),n+='
data-track-
click="'+t.ClickTargets.VIDEO_TITLE+'">'),n+=this.escape(t.title)||"",t.showTitleLi
nk&&(n+="</a>"),t.is360&&(n+='<div class="threesix-badge-
title">360</div>'),t.hasHDR&&(n+='<div class="hashdr-badge-title">HDR</div>'),n+="
</h1> "),t.showByline&&(n+=' <div class="sub-title"><h2 class="byline-
from">'+t.strings.byline+"</h2> ",t.is360&&!t.showTitle&&(n+=' <div
class="threesix-badge-byline">360</div> '),t.hasHDR&&!t.showTitle&&(n+=' <div
class="hashdr-badge-byline">HDR</div> '),n+=" </div> "),!t.is360||t.showByline||
t.showTitle||(n+=' <div class="threesix-badge-loner">360</div> '),!t.hasHDR||
t.showByline||t.showTitle||(n+=' <div class="hashdr-badge-loner">HDR</div> '),n+"
</div></header>"},n.templates.unmute_button=function(t){var n='<button
type="button" class="vp-unmute-button"> ';return(n+=this.render("icon_muted")||"")
+' <span class="vp-unmute-button-title">'+t.title+"</span></button>"},t.exports?
t.exports=n:window.Aftershave=n}()}));function Uf(t,n){var
i,e=t.querySelector(".vp-shade"),r=t.querySelector(".vp-spin");function o()
{clearTimeout(i),e.classList.add("vp-shade-invisible"),r.classList.add("vp-spin-
invisible")}return n.on(Ti.BUFFER_STARTED,(function()
{clearTimeout(i),i=setTimeout((function(){e.classList.remove("vp-shade-
invisible"),r.classList.remove("vp-spin-
invisible")}),600)})),n.on([Ti.BUFFER_ENDED,ec.nr],o),Bc.on(Fc.buffering,
(function(){r.classList.remove("vp-spin-
invisible")})),Bc.on([Fc.playing,Fc.paused],(function()
{clearTimeout(i),r.classList.add("vp-spin-invisible")})),Bc.on(Fc.connected,
(function(){e.classList.remove("vp-shade-invisible")})),Bc.on(Fc.disconnected,
(function(){o()})),{}}var Vf=function(t){return function(n){for(var
i=arguments.length,e=new Array(i>1?i-1:0),r=1;r<i;r++)e[r-1]=arguments[r];return
e.forEach((function(i){for(var e in i){var
r=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,Object.assign(r,t)
)}})),n}}({enumerable:!0,configurable:!0,writeable:!
1}),Bf=["January","February","March","April","May","June","July","August","Septembe
r","October","November","December"];function Hf(){return void 0!
==window.performance&&"function"==typeof window.performance.now?
window.performance.now():Date.now()}function qf(t){return Wf()-t}function Wf()
{return parseInt(Hf()/1e3,10)}function zf(t){return parseInt(Date.now()/1e3,10)-
t}function Gf(t){var n=t.getHours(),i=t.getMinutes(),e=n>=12?"PM":"AM";return(n=(n
%=12)||12)+":"+(i=i<10?"0"+i:i)+" "+e}function Kf(t,n){var
i=Math.floor(t/3600%60),e=Math.floor(t/60%60);if(t=Math.floor(t%60),n){var r=t+"
second"+(1===t?"":"s");return e>0&&(r=e+" minute"+(1===e?"":"s")+",
"+r),i>0&&(r=i+" hour"+(1===i?"":"s")+", "+r),r}return(i>0?i+":":"")
+Yf(e,2)+":"+Yf(t,2)}function Yf(t,n,i){return t=String(t),new Array(n-
t.length+1).join(i||"0")+t}function Jf(t){return"".concat(Bf[t.getMonth()],"
").concat(t.getDate()," ").concat("at"," ").concat(Gf(t))}function $f(t,n,i){var
e=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return
Pt(i)&&(e="leading"in i?!!i.leading:e,r="trailing"in i?!!i.trailing:r),Ic(t,n,
{leading:e,maxWait:n,trailing:r})}var Xf=function(){if(void 0!==D)return D;function
t(t,n){var i=-1;return t.some((function(t,e){return t[0]===n&&(i=e,!
0)})),i}return(function(){function n(){this.bh=[]}return
Object.defineProperty(n.prototype,"size",{get:function(){return
this.bh.length},enumerable:!0,configurable:!0}),n.prototype.get=function(n){var
i=t(this.bh,n),e=this.bh[i];return e&&e[1]},n.prototype.set=function(n,i){var
e=t(this.bh,n);~e?this.bh[e]
[1]=i:this.bh.push([n,i])},n.prototype.delete=function(n){var
i=this.bh,e=t(i,n);~e&&i.splice(e,1)},n.prototype.has=function(n){return!!
~t(this.bh,n)},n.prototype.clear=function()
{this.bh.splice(0)},n.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var
i=0,e=this.bh;i<e.length;i++){var r=e[i];t.call(n,r[1],r[0])}},n}())}
(),Zf="undefined"!=typeof window&&"undefined"!=typeof
document&&window.document===document,Qf="undefined"!=typeof
global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?
self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")
(),th="function"==typeof requestAnimationFrame?
requestAnimationFrame.bind(Qf):function(t){return setTimeout((function(){return
t(Date.now())}),1e3/60)},nh=["top","right","bottom","left","width","height","size",
"weight"],ih="undefined"!=typeof MutationObserver,eh=function(){function t()
{this.connected_=!1,this.mutationEventsAdded_=!
1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTran
sitionEnd_.bind(this),this.refresh=function(t,n){var i=!1,e=!1,r=0;function o()
{i&&(i=!1,t()),e&&a()}function u(){th(o)}function a(){var t=Date.now();if(i){if(t-
r<2)return;e=!0}else i=!0,e=!1,setTimeout(u,20);r=t}return a}
(this.refresh.bind(this))}return t.prototype.addObserver=function(t)
{~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||
this.connect_()},t.prototype.removeObserver=function(t){var
n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!
n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function()
{this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function()
{var t=this.observers_.filter((function(t){return
t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return
t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){Zf&&!
this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),
window.addEventListener("resize",this.refresh),ih?(this.mutationsObserver_=new
MutationObserver(this.refresh),this.mutationsObserver_.observe(document,
{attributes:!0,childList:!0,characterData:!0,subtree:!0})):
(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAd
ded_=!0),this.connected_=!0)},t.prototype.disconnect_=function()
{Zf&&this.connected_&&(document.removeEventListener("transitionend",this.onTransiti
onEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&
this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEven
tListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.muta
tionEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t)
{var n=t.propertyName,i=void 0===n?"":n;nh.some((function(t){return!!
~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||
(this.instance_=new t),this.instance_},t.instance_=null,t}(),rh=function(t,n)
{for(var i=0,e=Object.keys(n);i<e.length;i++){var r=e[i];Object.defineProperty(t,r,
{value:n[r],enumerable:!1,writable:!1,configurable:!0})}return t},oh=function(t)
{return t&&t.ownerDocument&&t.ownerDocument.defaultView||
Qf},uh=fh(0,0,0,0);function ah(t){return parseFloat(t)||0}function sh(t){for(var
n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.reduce((function(n,i)
{return n+ah(t["border-"+i+"-width"])}),0)}var ch="undefined"!=typeof
SVGGraphicsElement?function(t){return t instanceof
oh(t).SVGGraphicsElement}:function(t){return t instanceof
oh(t).SVGElement&&"function"==typeof t.getBBox};function lh(t){return Zf?ch(t)?
function(t){var n=t.getBBox();return fh(0,0,n.width,n.height)}(t):function(t){var
n=t.clientWidth,i=t.clientHeight;if(!n&&!i)return uh;var
e=oh(t).getComputedStyle(t),r=function(t){for(var
n={},i=0,e=["top","right","bottom","left"];i<e.length;i++){var
r=e[i],o=t["padding-"+r];n[r]=ah(o)}return n}
(e),o=r.left+r.right,u=r.top+r.bottom,a=ah(e.width),s=ah(e.height);if("border-
box"===e.boxSizing&&(Math.round(a+o)!==n&&(a-=sh(e,"left","right")
+o),Math.round(s+u)!==i&&(s-=sh(e,"top","bottom")+u)),!function(t){return
t===oh(t).document.documentElement}(t)){var c=Math.round(a+o)-n,l=Math.round(s+u)-
i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(l)&&(s-=l)}return fh(r.left,r.top,a,s)}
(t):uh}function fh(t,n,i,e){return{x:t,y:n,width:i,height:e}}var hh=function()
{function t(t)
{this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fh(0,0,0,0),this.ta
rget=t}return t.prototype.isActive=function(){var t=lh(this.target);return
this.contentRect_=t,t.width!==this.broadcastWidth||t.height!
==this.broadcastHeight},t.prototype.broadcastRect=function(){var
t=this.contentRect_;return
this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),dh=function(t,n)
{var i=function(t){var n=t.x,i=t.y,e=t.width,r=t.height,o="undefined"!=typeof
DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(o.prototype);return rh(u,
{x:n,y:i,width:e,height:r,top:i,right:n+e,bottom:r+i,left:n}),u}(n);rh(this,
{target:t,contentRect:i})},vh=function(){function t(t,n,i)
{if(this.activeObservations_=[],this.observations_=new Xf,"function"!=typeof
t)throw new TypeError("The callback provided as parameter 1 is not a
function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return
t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1
argument required, but only 0 present.");if("undefined"!=typeof Element&&Element
instanceof Object){if(!(t instanceof oh(t).Element))throw new TypeError('parameter
1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new
hh(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype
.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument
required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof
Object){if(!(t instanceof oh(t).Element))throw new TypeError('parameter 1 is not of
type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||
this.controller_.removeObserver(this))}},t.prototype.disconnect=function()
{this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this
)},t.prototype.gatherActive=function(){var
t=this;this.clearActive(),this.observations_.forEach((function(n)
{n.isActive()&&t.activeObservations_.push(n)}))},t.prototype.broadcastActive=functi
on(){if(this.hasActive()){var
t=this.callbackCtx_,n=this.activeObservations_.map((function(t){return new
dh(t.target,t.broadcastRect())}));this.callback_.call(t,n,t),this.clearActive()}},t
.prototype.clearActive=function()
{this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return
this.activeObservations_.length>0},t}(),ph=void 0!==P?new P:new Xf,mh=function t(n)
{if(!(this instanceof t))throw new TypeError("Cannot call a class as a
function.");if(!arguments.length)throw new TypeError("1 argument required, but only
0 present.");var i=eh.getInstance(),e=new vh(n,i,this);ph.set(this,e)};
["observe","unobserve","disconnect"].forEach((function(t)
{mh.prototype[t]=function(){var n;return(n=ph.get(this))
[t].apply(n,arguments)}}));var bh=void 0!==Qf.ResizeObserver?
Qf.ResizeObserver:mh;function wh(t,n,i){var e=u()?
i.parentElement:i,r=$f(o,150);function o(){var
t=Es(e),i=t.width,r=t.height;n.dispatch(function(t,n)
{return{type:"CONTAINER_RESIZE",payload:{width:t,height:n}}}(i,r))}function u()
{return i.parentElement===document.body}function a(t){var
n=t.size,r=t.ratio,o=t.bottom;u()&&(e.classList.toggle("vp-
center","contain"===n),function(t,n){[].concat(["height","max-width","max-
height","bottom"]).map((function(n){return t.style.removeProperty(n)}))}
(i),"contain"!==n?o>0&&Ps(i,{height:"calc(100% -
".concat(o,"px)"),bottom:"".concat(o/2,"px")}):Ps(i,o>0?{maxWidth:"calc((100vh -
".concat(o,"px) / ").concat(r,")"),maxHeight:"calc(100vh -
".concat(o,"px)"),height:"calc(".concat(r," * 100vw)"),bottom:"".concat(o/2,"px")}:
{maxWidth:"calc(100vh / ".concat(r,")"),height:"calc(".concat(r," *
100vw)")}))}n.watch("ui.layout.bottom",(function(n){t.events.fire(ec.mf,
[{bottom:n}])})),n.watch("ui.layout.settings",a),a(n.get("ui.layout.settings")),new
bh(r).observe(e),window.addEventListener("orientationchange",r),t.events.on(ec.Zc,r
),t.events.on(ec.tl,r),o()}function gh(t,n,i)
{this.constructorName="MessageApiError",this.message=t,this.name=n,this.source=i}fu
nction yh(t){return t}function _h(t){if(!
t||""===t)return{};if("object"===V(t))return t;try{return JSON.parse(t)}catch(t)
{return{}}}function kh(t){}gh.prototype=new Error;var
Eh={captureException:function(t){},captureMessage:function(t)
{},captureBreadcrumb:function(){}},Th=Eh,Sh=function(t)
{Th=Object.assign({},Eh,t)},xh=function(t,n){var i=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:"backbone",e=arguments.length>3&&void 0!==arguments[3]?
arguments[3]:"info";return Th.captureBreadcrumb(t,n,i,e)};function Ah(t){var
n=function(t){var n=document.referrer||t;try{n=decodeURIComponent(n)}catch(t)
{n=unescape(n)}return n}
(t),i={},e={},o={parseMessage:_h,buildMessage:yh,logError:kh},u={},a={get methods()
{return i},extendMethods:function(){for(var t=arguments.length,n=new
Array(t),e=0;e<t;e++)n[e]=arguments[e];st.apply(void 0,[i].concat(n))},get
listeners(){return u},set listeners(t){u=t},emit:function(t){for(var
n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-
1]=arguments[e];if(s.apply(void 0,[t].concat(i))){var
r={event:t};i&&i[0]&&(r.data=i[0]),c(r)}},filter:function(t,n){n||"function"!
=typeof t||(n=t,t=null),t?function(t,n){e.event=e.event||{},e.event[t]=e.event[t]||
[],e.event[t].push(n)}(t,n):function(t){e.global=e.global||[],e.global.push(t)}
(n)},hooks:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i+
+)n[i]=arguments[i];return st.apply(void 0,[o].concat(n))}};function s(){if(e)
{for(var t,n,i=arguments.length,r=new Array(i),o=0;o<i;o+
+)r[o]=arguments[o];if(e.global&&e.global.length)for(t=0;t<e.global.length;t++)if(!
(n=e.global[t]).apply(n,r))return!1;var
u=r[0];if(e.event&&e.event[u]&&e.event[u].length)for(t=0;t<e.event[u].length;t+
+)if(!(n=e.event[u][t]).apply(n,r))return!1}return!0}function c(t)
{if(window.postMessage&&window.parent.postMessage&&(t=o.buildMessage(t),window.pare
nt!=window))try{var i=n&&"null"!==n?n:"*";window.parent.postMessage(t,i)}catch(t)
{}}return window.addEventListener("message",(function(t)
{if(t.source===window.parent){var
n=o.parseMessage(t.data),e=n.method,u=n.value;if(!(void
0===e||"string"!=typeof e||e.indexOf("_")>-1))try{var a=function(t,n){if(!t)return
null;var i=Object.getOwnPropertyDescriptor(n,t);if(i&&"function"==typeof
i.value)return i.value;if(i&&"function"==typeof i.get)return i.get;var
e=t.substr(0,3),r=t.substr(3,1).toLowerCase()+t.substr(4);return
i=Object.getOwnPropertyDescriptor(n,r),"get"===e&&i&&"function"==typeof i.get?
i.get:"set"===e&&i&&"function"==typeof i.set?i.set:null}(e,i);if(!a)throw new
gh("“".concat(t,"” is not a valid method. Valid methods are: ").concat(function(t)
{return Object.keys(t).reduce((function(n,i){var
e=Object.getOwnPropertyDescriptor(t,i);return"function"==typeof e.value?
(n.push(i),n):("function"==typeof e.get&&n.push("get"+i.charAt(0).toUpperCase()
+i.slice(1)),"function"==typeof e.set&&n.push("set"+i.charAt(0).toUpperCase()
+i.slice(1)),n)}),[]).sort()}(i).join(", "),"."),"TypeError",e);xh("API message
received",n,"api"),r.resolve(a.call(t,u)).then((function(t){return
c({method:e,value:null==t?u:t})})).catch(o.logError)}catch(t){o.logError(t)}}}),!
1),a}function Mh(t){return t.account_type&&"basic"!==t.account_type&&!/_lapsed|
_expired/.test(t.account_type)}var Ch=self!==top,Rh=function(){var
t=document.createElement("video"),n={request:
["requestFullscreen","webkitRequestFullscreen","webkitRequestFullScreen","mozReques
tFullScreen","msRequestFullscreen"],exit:
["exitFullscreen","webkitCancelFullScreen","webkitExitFullscreen","mozCancelFullScr
een","msExitFullscreen"],enabled:
["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreen
Enabled"],element:
["fullscreenElement","webkitFullscreenElement","webkitCurrentFullScreenElement","mo
zFullScreenElement","msFullscreenElement"],change:
["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenCha
nge"],error:
["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"
]},i={};for(var e in n)for(var r=0,o=n[e].length;r<o;r++)if(n[e][r]in t||n[e][r]in
document||"on"+n[e][r].toLowerCase()in document){i[e]=n[e][r];break}return i}
(),Ih={ENTER:"enter",EXIT:"exit",CHANGE:"change",ERROR:"error"},Oh=[],jh={};functio
n Lh(){var
t=Array.prototype.slice.apply(arguments),n=t.shift();jh[n].forEach((function(n)
{"function"==typeof n&&n.apply(n,t)}))}function Dh(t){return function(n,i){-1!
==Oh.indexOf(n)&&t.call(this,n,i)}}function Ph(t){var
n=null;if("VIDEO"===t.tagName)n=t;else{var
i=t.getElementsByTagName("video");i[0]&&(n=i[0])}return
n}Object.keys(Ih).forEach((function(t){Oh.push(Ih[t]),jh[Ih[t]]=[]}));var
Nh=null,Fh=function(){},Uh=[];function Vh(t){var
n=Ph(t);if(n&&n.webkitEnterFullscreen){try{n.readyState<n.HAVE_METADATA?
(n.addEventListener("loadedmetadata",(function i()
{n.removeEventListener("loadedmetadata",i,!
1);try{n.webkitEnterFullscreen()}catch(n){return
qh("cannot_enter_fullscreen",t)}}),!
1),n.load()):n.webkitEnterFullscreen(),Nh=n}catch(n){return
qh("not_supported",t)}return!0}return qh(void
0===Rh.request?"not_supported":"not_enabled",t)}var Bh=function(t){var
n=Uh[Uh.length-1];n&&(t!==n.element&&t!==Nh||!
n.hasEntered)&&("VIDEO"===t.tagName&&(Nh=t),1===Uh.length&&Wh.onenter(Wh.element),n
.enter.call(n.element,t||n.element),n.hasEntered=!
0,Lh(Ih.ENTER,Wh.element))},Hh=function(){Nh=null;var
t=Uh.pop();t&&(t.exit.call(t.element),Lh(Ih.EXIT,t.element),Wh.element||
(Uh.forEach((function(t)
{t.exit.call(t.element),Lh(Ih.EXIT,t.element)})),Uh=[],Wh.onexit()))},qh=function(t
,n){if(Uh.length>0){var i=Uh.pop();n=n||
i.element,i.error.call(n,t),Wh.onerror(n,t),Lh(Ih.ERROR,n,t)}},Wh={request:function
(t,n,i,e){if(t=t||document.body,Uh.push({element:t,enter:n||Fh,exit:i||Fh,error:e||
Fh}),void 0===Rh.request)return Vh(t);if(Ch&&!1===document[Rh.enabled])return
Vh(t);try{t[Rh.request]()}catch(n){qh("not_enabled",t)}},exit:function(){!
document[Rh.exit]&&Wh.element?Wh.element[Rh.exit]():document[Rh.exit]
()},toggle:function(t,n,i,e){Wh.element?
Wh.exit():Wh.request(t,n,i,e)},videoEnabled:function(t){if(Wh.enabled)return!0;var
n=Ph(t=t||document.body);return!(!n||void
0===n.webkitSupportsFullscreen)&&(n.readyState<n.HAVE_METADATA?"maybe":n.webkitSupp
ortsFullscreen)},on:Dh((function(t,n){jh[t].push(n)})),off:Dh((function(t,n){var
i=jh[t].indexOf(n);i>-
1&&jh[t].splice(i,1)})),onenter:Fh,onexit:Fh,onchange:Fh,onerror:Fh};try{Object.def
ineProperties(Wh,{element:{enumerable:!0,get:function(){return
Nh&&Nh.webkitDisplayingFullscreen?Nh:document[Rh.element]||null}},enabled:
{enumerable:!0,get:function(){return document[Rh.enabled]||!1}}})}catch(t)
{Wh.element=null,Wh.enabled=!1}function zh(t)
{return"string"==typeof(t=t.replace("#",""))&&(3===t.length||6===t.length)&&!
isNaN(parseInt(t,16))}function Gh(t){var n=/rgba?\
((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(,\s*([\d.]+))?\)/.exec(t);if(!n)throw new
Error("Invalid rgb
value");return{red:parseInt(n[1],10),green:parseInt(n[2],10),blue:parseInt(n[3],10)
,alpha:parseFloat(n[5])||1}}function Kh(){for(var t=arguments.length,n=new
Array(t),i=0;i<t;i++)n[i]=arguments[i];if(1===n.length&&n[0]instanceof Kh){var
e=n[0];return
this.red=e.red,this.green=e.green,this.blue=e.blue,this.alpha=e.alpha,this.hue=e.hu
e,this.saturation=e.saturation,this.lightness=e.lightness,this}if(1===n.length)
{if("string"==typeof n[0]&&n[0].indexOf("rgb")>=0)return
this.rgba=Gh(n[0]),this;if(!zh("".concat(n[0])))throw new Error("Invalid hex
value");return this.hex=n[0],this}if(3===n.length||4===n.length){for(var r=0;r<3;r+
+)if(isNaN(parseInt(n[r],10))||parseInt(n[r],10)<0||parseInt(n[r],10)>255)throw new
Error("Invalid rgb value");if(n[3]&&parseFloat(n[3])<0||parseFloat(n[3])>1)throw
new Error("Invalid alpha value");return
this.rgba={red:n[0],green:n[1],blue:n[2],alpha:parseFloat(n[3])||1},this}throw new
Error("Invalid color")}function Yh(t){var n=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:[];if(!t||"null"===t||
0===n.length)return{track:null};var
i=t.split("."),e=Q(i,2),r=e[0],o=e[1],u=r.split(/[-_]/),a=Q(u,1),s=a[0],c=r!
==s,l=n.filter((function(t){return c&&t.language===r||
t.language===s})).sort((function(t,n){var i=2*(t.language===s&&t.kind===o)
+2*(t.language===r)+1*(t.kind===o);return 2*(n.language===s&&n.kind===o)
+2*(n.language===r)+1*(n.kind===o)-i}));return l.length>0?
{track:l[0],exactMatch:l[0].language===r&&l[0].kind===o}:{track:null}}function
Jh(t,n){switch(t.view){case 2:throw new gh("The video is
private.","PrivacyError",n);case 4:throw new gh("The video is password-protected.
The viewer must enter the password first.","PasswordError",n);case 7:throw new
gh(t.message,"NotFoundError",n)}}function $h(t){for(var n=[],i=0;i<t.length;i+
+)n.push([t.start(i),t.end(i)]);return n}function Xh(t){var
n,i,e,o=t.events,u=rt(),a=!1,s=!1,c=null,l=!1,f=null,h=null;function d(n){i!
==n&&(i=n,t.config.embed.api=n)}function v()
{n&&n.emit("exitFullscreen"),t.events.halt()}var p={ping:function(){return
t.config.video.id},fullscreenchange:function(i){t.element.classList.toggle("js-
player-fullscreen-api",i),i?
(t.events.prependOn(ec.Sc,v),n.listeners.exitFullscreen=!
0,t.events.fire(ec.Xc),t.events.fire(ec.Zc,!0,!0)):
(t.events.off(ec.Sc,v),n.listeners.exitFullscreen=!
1,t.events.fire(ec.Qc),t.events.fire(ec.tl,!0))},on:function(t,i){t in
ac&&(t=ac[t]);var e=Fs(uc);if(e.indexOf(t)<0)throw new gh("“".concat(t,"” is not a
valid event. Valid events are: ").concat(e.join(",
"),"."),"TypeError","on");i&&u.on(t,i),n&&(n.listeners[t]=!
0),t===uc.LOADED&&_()},off:function(t,i){i&&u.off(t,i),n&&(n.listeners[t]=!
1)},play:function(){return new r((function(n,i){o.once(ec.hc,n),o.once(ec.fc,
(function(t){i(new
gh(t.message,t.name,"play"))})),Jh(t.config,"play"),o.fire(rc.Wf),o.fire(ec.Ac)}))}
,destroy:function(){o.fire(Gs.sc)},pause:function()
{Jh(t.config,"pause"),o.fire(rc.zf),o.fire(ec.xc)},loadVideo:function(n){var
i=function(t){if(!t)return{};if(bs(t))return{id:parseInt(t,10),params:
{}};if("string"==typeof t)return 0!==t.indexOf("https://")?{}:{url:t,params:
{}};if("url"in t){if(0!==t.url.indexOf("https://"))return{};var n=t.url;return
delete t.url,{url:n,params:t}}if("id"in t){if(!bs(t.id))return{};var i=t.id;return
delete t.id,{id:parseInt(i,10),params:t}}return{}}
(n),e=i.id,r=i.url,o=i.params;if(!e&&!r)throw new gh("The video id must be an
integer.","TypeError","loadVideo");if(r&&r.match(null===new
RegExp("^https?://".concat(t.config.player_url,"/video/([0-9]+)/config"))))throw
new gh("The config url must be a valid Vimeo url.","TypeError","loadVideo");return
t.loadVideo(r||e,o).then((function(){return n})).catch((function(){throw
Jh(t.config,"loadVideo"),new gh("An error occurred loading the
video.","Error","loadVideo")}))},unload:function(){1!==t.config.view&&3!
==t.config.view&&12!==t.config.view||o.fire(Gs.Vs)},addCuePoint:function(n,i)
{if(n=parseFloat(n),isNaN(n)||n<0||n>t.config.video.duration)throw new gh("Cue
point time must be positive number less than the duration of the video
(".concat(Is(t.config.video.duration),")."),"RangeError","addCuePoint");try{var
e=t.backbone.addCuePoint(n,i);return setTimeout((function()
{o.fire(ec.qc,e)}),0),e.id}catch(t){if("CuePointsNotSupported"===t.name)throw new
gh("Cue points are not supported in the current
player.","UnsupportedError","addCuePoint");throw new gh("Unable to add cue
point","InvalidCuePoint","addCuePoint")}},removeCuePoint:function(n){var
i=t.backbone.cuePoints.filter((function(t){return t.id===n}))[0];if(!i)throw new
gh("Cue point “".concat(n,"” was not
found."),"InvalidCuePoint","removeCuePoint");t.backbone.removeCuePoint(i),setTimeou
t((function(){o.fire(ec.Wc,i)}),0)},enableTextTrack:function(n){var
e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=("text_tracks"in
t.config.request?t.config.request.text_tracks:[]).map((function(t){return
t.language=t.lang,t})),a=u.some((function(t){return
t.language.toLowerCase()===n.toLowerCase()}));if(!a)throw new gh("There are no
tracks for
“".concat(n.toUpperCase(),"”."),"InvalidTrackLanguageError","enableTextTrack");var
s=e?"".concat(n,".").concat(e):n,c=Yh(s,u),l=c.track;if(!l||e&&l.kind!==e)throw
new gh("There are no ".concat(e," tracks for
“").concat(n.toUpperCase(),"”."),"InvalidTrackError","enableTextTrack");return
o.fire(Gs.$s,l.id),i<3?null:new r((function(t,n){o.once(ec.Hc,(function(n,i)
{t({label:n.label,language:n.language,kind:n.kind})}))}))},disableTextTrack:functio
n(){o.fire(Gs.Xs)},toggleFullscreen:function(t){var n={not_supported:
{name:"UnsupportedError",msg:"Fullscreen is not supported at all or for this
element."},not_enabled:{name:"Error",msg:"The request was made from an iframe that
does not allow fullscreen."},not_allowed:{name:"NotAllowedError",msg:"The request
failed, probably because it was not called from a user-initiated event."}};return
new r((function(i,e){if(!Wh.element===t)return Wh.on("enter",(function t()
{Wh.off("enter",t),i()})),Wh.on("error",(function i(r,o){Wh.off("error",i);var
u=n[o]||n.not_supported;e(new
gh(u.msg,u.name,"".concat(t?"request":"exit","Fullscreen")))})),void
o.fire(ec.Sc);i()}))},requestFullscreen:function(){return p.toggleFullscreen(!
0)},exitFullscreen:function(){return p.toggleFullscreen(!1)},get fullscreen()
{return!!Wh.element},requestPictureInPicture:function(){return new r((function(n,i)
{o.once(_i.ENTER_PICTURE_IN_PICTURE,n),"picture-in-picture"!
==t.backbone.presentationMode&&(t.backbone.presentationMode="picture-in-
picture")}))},exitPictureInPicture:function(){return new r((function(n,i)
{o.once(_i.LEAVE_PICTURE_IN_PICTURE,n),"picture-in-
picture"===t.backbone.presentationMode&&(t.backbone.presentationMode="inline")}))},
get pictureInPicture(){return"picture-in-
picture"===t.backbone.presentationMode},get autopause(){return!!
t.config.embed.autopause},set autopause(n){t.config.embed.autopause=!!n},get
chromecasting(){return!!Bc.currentSession},get color(){return
t.config.embed.color.replace("#","")},set color(n)
{if(t.config.embed.settings.color&&!t.config.embed.on_site)throw new gh("The
creator of the video has chosen to always use ".concat(new
Kh(t.config.embed.color).hex,"."),"EmbedSettingsError","setColor");try{var i=new
Kh(n);o.fire(Gs.Ws,i.hex)}catch(t){throw new gh("The color should be 3- or 6-digit
hex value.","TypeError","setColor")}var e=new
Kh(30,30,30,.9);if(e.contrast(i).ratio<3){var r=i.clone().lighten(5,3,e);throw new
gh("".concat(i.hex," does not meet minimum contrast ratio. We recommend using
brighter colors. (You could try ").concat(r.hex," instead.) See WCAG 2.0
guidelines: http://www.w3.org/TR/WCAG/#visual-audio-
contrast"),"ContrastError","setColor")}},get cuePoints(){return
t.backbone.cuePoints.map((function(t)
{return{time:t.time,data:t.data,id:t.id}}))},get currentTime(){return
t.currentTime},set currentTime(n){if(n=parseFloat(n),isNaN(n)||n<0||
n>t.config.video.duration)throw new gh("Seconds must be a positive number less than
the duration of the video
(".concat(Is(t.config.video.duration),")."),"RangeError","setCurrentTime");return
o.fire(rc.Ds),o.fire(Gs.Ds,null,n),o.fire(ec.Il),i<3?null:new r((function(t,n)
{o.once(_i.SEEKED,(function(n){var i=n.currentTime;t(i)}))}))},get duration()
{return Is(t.config.video.duration)},get ended(){return!!t.backbone.ended},get
loop(){return!!t.config.embed.loop},set loop(t){o.fire(Gs.Bs,t)},set muted(n)
{t.backbone.muted=n},get muted(){return t.backbone.muted},get paused(){return!
(t.backbone&&"paused"in t.backbone&&!t.backbone.paused)},get buffered(){return
$h(t.backbone.buffered)},get played(){return $h(t.backbone.played)},get seekable()
{return $h(t.backbone.seekable)},get seeking(){return t.backbone.seeking},get
playbackRate(){return t.backbone?t.backbone.playbackRate:1},set playbackRate(n)
{if(!t.config.embed.settings.speed)throw new gh("Setting the playback rate is not
enabled for this video.","Error","setPlaybackRate");if(isNaN(n)||n>2)throw new
gh("Playback rate should be a number below or equal to
".concat(2,"."),"RangeError","setPlaybackRate");o.fire(Gs.ac,n)},get textTracks()
{return(t.backbone?t.backbone.video.textTracks:[]).map((function(t)
{return{label:t.label,language:t.language,kind:t.kind,mode:t===f?"showing":"disable
d"}}))},get videoEmbedCode(){return t.config.video.embed_code},get videoHeight()
{return t.backbone.videoHeight||t.config.video.height},get videoId(){return
t.config.video.id},get videoTitle(){return t.config.video.title},get videoWidth()
{return t.backbone.videoWidth||t.config.video.width},get videoUrl(){if(!
t.config.video.url)throw new gh("The URL is not available because of the video’s
privacy settings.","PrivacyError","getVideoUrl");return t.config.video.url},get
volume(){var n=Is(t.config.request.cookie.volume);return 1===i?
Math.round(100*n):n},set volume(t){if(t=parseFloat(t),1===i&&(t/=100),isNaN(t)||
t<0||t>1)throw new gh("Volume should be a number between 0 and
1.","RangeError","setVolume");h=t,o.fire(Gs.Ps,t,!0)},get qualities(){return
t.backbone.qualities},get quality(){return t.backbone.quality},set quality(n){if(!
Mh(t.config.video.owner))throw new gh("Setting the quality is not enabled for this
video.","Error","setQuality");n=n.toLowerCase();var
i=t.backbone.qualities.map((function(t){return t.id}));if(!i.includes(n))throw new
gh("“".concat(n,"” is not a valid quality. Valid qualities are: ").concat(i.join(",
"),"."),"TypeError","on");t.backbone.quality=n},_loadVideo:function(n,i){return
t.loadVideo(n,i)},get _like(){return!!t.config.user.liked},set _like(n)
{if(t.config.embed.on_site){if(t.config.user.liked===n)return;o.fire(ec.nl,n)}},get
_watchLater(){return!!t.config.user.watch_later},set _watchLater(n)
{if(t.config.embed.on_site)
{if(t.config.user.watch_later===n)return;o.fire(ec.il,n)}},get currentChapter(){var
n=t.backbone.currentChapterID;if(!n)return null;var
i=U(t.backbone.chapters),e=i.findIndex((function(t){return
n===t.id}));return{startTime:i[e].startTime,title:i[e].text,index:e+1}},get
chapters(){return U(t.backbone.chapters).map((function(t,n)
{return{startTime:t.startTime,title:t.text,index:n+1}}))},_addChapter:function(n,i)
{if(n=parseFloat(n),isNaN(n)||n<0||n>t.config.video.duration)throw new gh("Chapter
timecode must be positive number less than the duration of the video
(".concat(Is(t.config.video.duration),")."),"RangeError","_addChapter");try{t.backb
one.addChapter(n,i)}catch(t){if("ChaptersNotSupported"===t.name)throw new
gh(t.message,"UnsupportedError","_addChapter");throw new gh("Unable to add
chapter","InvalidChapter","_addChapter")}},_removeChapter:function(n){var
i;try{i=t.backbone.chapters.getCueById(n)}catch(t){throw new gh("Chapters are not
supported in this browser.","UnsupportedError","_removeChapter")}if(!i)throw new
gh("Chapter was not
found.","InvalidChapter","_removeChapter");try{t.backbone.removeChapter(i)}catch(t)
{if("ChaptersNotSupported"===t.name)throw new gh("Chapters are not supported in
this browser.","UnsupportedError","_removeChapter");throw new gh("Unable to remove
chapter","InvalidChapter","_removeChapter")}},_addCard:function(t)
{o.fire(Gs._addCard,t)},_removeCard:function(t)
{o.fire(Gs._removeCard,t)},_setOutro:function(n,i){t.config.embed.outro!==n?
(o.fire(Gs._hideOutro),setTimeout((function()
{t.config.embed.outro=n,o.fire(Gs.Qs,n,i)}),400)):o.fire(Gs.Qs,n,i)},_hideOutro:fun
ction(){o.fire(Gs._hideOutro)},_setEmailCapture:function(n){if(n){var
i=n.customFields?t.config.embed.email_capture_form||{}:t.config.embed.email||
{};i.position=n.position.toLowerCase(),i.timecode=n.timecode,n.nohide=!0,n.noblur=!
0,n.nofocus=sa(n,"nofocus",!0),p._showOverlay("email-capture",n)}else
p._unsetEmailCapture()},_updateEmailCapture:function(t){t.custom_fields?
o.fire(Gs._updateEmailCapture,t):this._setEmailCapture(t)},_updateWebinarStartTime:
function(t)
{o.fire(Gs._updateWebinarStartTime,t)},_setActiveEmailCapturePage:function(t)
{o.fire(Gs.Fs,t)},_unsetEmailCapture:function()
{t.config.embed.outro&&(o.fire(Gs._hideOutro),delete
t.config.embed.outro),t.config.embed.email&&(o.fire(Gs._hideOverlay,{unmakeModal:!
0}),delete t.config.embed.email)},_hideOverlay:function(t){o.fire(Gs._hideOverlay,
{name:t,unmakeModal:!0})},_showOverlay:function(t,n)
{o.fire(Gs._showOverlay,t,n)},_fireEvent:function(){for(var
t=arguments.length,n=new Array(t),i=0;i<t;i+
+)n[i]=arguments[i];o.fire.apply(null,n)},_setEmbedEditor:function(n)
{t.config.embed.editor=!!n},_setEmbedSettings:function(n)
{t.config.embed.on_site&&(Object.keys(n).forEach((function(i){var
r=n[i];r="object"===V(r)?r:Number(r),"badge"===i&&(r?
r=e:e=t.config.embed.settings.badge),t.config.embed.settings[i]=r,o.fire(ec.Jl,i,r)
})),o.fire(ec.Hl,!1,t.config))},_setEmbedSetting:function(n,i)
{t.config.embed.on_site&&(i="object"===V(i)?i:Number(i),"badge"===n&&(i?
i=e:e=t.config.embed.settings.badge),t.config.embed.settings[n]=i,o.fire(ec.Jl,n,i)
,o.fire(ec.Hl,!1,t.config))},_setOTTVideoMetadata:function(n)
{t.config.request.flags.ott&&(t.ottVideoMetadata=n,o.fire(ec.
$l,n))},_toggleDebugPanel:function()
{o.fire(ec.wl)},_overrideControlbarBehavior:function(t)
{o.fire(Gs._overrideControlbarBehavior,t)},_setControlbarVisibility:function(t)
{o.fire(Gs.tc,t)},get cameraProps(){var
n=t.backbone.getEffectByName("ThreeSixtyEffect");if(t.backbone&&!n)throw new
gh("Camera props are not available in the current
player.","UnsupportedError","getCameraProps");return n.cameraProps},set
cameraProps(n){var
i=t.backbone.getEffectByName("ThreeSixtyEffect");if(t.backbone&&!i)throw new
gh("Camera props are not available in the current
player.","UnsupportedError","setCameraProps");try{i.cameraProps=n}catch(t){throw
new gh(t.message,t.name,"setCameraProps")}},get _fieldOfView(){var
n=t.backbone.getEffectByName("ThreeSixtyEffect");if(t.backbone&&!n)throw new
gh("Field of view is not available in the current
player.","UnsupportedError","getFieldOfView");return n.fieldOfView},set
_fieldOfView(n){var
i=t.backbone.getEffectByName("ThreeSixtyEffect");if(t.backbone&&!i)throw new
gh("Field of view is not available in the current
player.","UnsupportedError","setFieldOfView");i.fieldOfView=n},get _coordinates()
{var n=t.backbone.getEffectByName("ThreeSixtyEffect");if(t.backbone&&!n)throw
new gh("Coordinates are not available in the current
player.","UnsupportedError","getCoordinates");return n.currentCoordinates},set
_coordinates(n){var
i=t.backbone.getEffectByName("ThreeSixtyEffect");if(t.backbone&&!i)throw new
gh("Coordinates are not available in the current
player.","UnsupportedError","setCoordinates");try{i.currentCoordinates=n}catch(t)
{throw new
gh(t.message,"RangeError","setCoordinates")}},_setChromecastUI:function(t){var
n=Bc.currentSession;n&&$n(t)&&n.sendMessage("urn:x-cast:com.vimeo.cast.media",
{action:"setCustomUIStyles",value:t})},get _controlSelectors(){return{details:".vp-
title",sidedock:".vp-sidedock",controls:".vp-controls",customLogo:".custom-
logo"}},get _controlAreas(){var
n=t.element.offsetWidth,i=t.element.offsetHeight,e={get details(){var
t=Es(document.querySelector(".headers > h1")),n=Es(document.querySelector(".sub-
title")),i=Es(document.querySelector(".vp-portrait")),e=Math.max(t.width,n.width)
+i.width,r=Math.max(i.height,t.height+n.height);return{top:10,left:10,width:Math.ma
x(200,e),height:Math.max(60,r)}},get sidedock(){return{top:10,left:n-10-
36,width:36,height:118}},get controls(){var
t=e.customLogo,r=Math.max(60,t.height);return{height:r,top:i-10-r,left:10,width:n-
20}},get customLogo(){var t=document.querySelector(".custom-logo"),e=t?Es(t):
{width:0,height:0};return{top:i-10-e.height,left:n-10-
e.width,width:e.width,height:e.height}}};return e},set _lowLatencyMode(n)
{t.backbone.lowLatencyMode=n},get _lowLatencyMode(){return
t.backbone.lowLatencyMode},get _presentationDelay(){return
t.backbone.presentationDelay},set _presentationDelay(n)
{t.backbone.presentationDelay=n},get _liveLatency(){return t.backbone.latency},get
_downloadSpeed(){return t.backbone.downloadSpeed},get _backbone(){return
t.backbone},addEventListener:function()
{p.on.apply(p,arguments)},removeEventListener:function()
{p.off.apply(p,arguments)},seekTo:function(t)
{p.currentTime=t},changeColor:function(t){p.color=t}},m={addCuePoint:function(t)
{var n=t.time,i=t.data;return p.addCuePoint(n,i)},enableTextTrack:function(t){var
n=t.language,i=t.kind,e=void 0===i?null:i;p.enableTextTrack(n,e)}};function b(t,i)
{n&&n.emit(t,i),u.fire(t,i)}var w=function(t,n){return function(){var i=n?
n.apply(void 0,arguments):void 0;b(t,i)}};function g(t){var
n=t.currentTime,i=t.duration,e=t.timeProgress;return{seconds:Is(n),percent:Is(e),du
ration:Is(i)}}function y(t){return{playbackRate:t}}function _(){b(uc.LOADED,l?null:
(l=!0,{id:t.config.video.id}))}function k(t){return E(function(t){switch(t)
{case"BrowserNotSupported":case"FilesNotPlayable":case"MediaSrcNotSupportedError":r
eturn new gh("This video is not supported in this
browser.","NotSupportedError");case"FileError":return new gh("There was an error
loading the files for this video.","FileError")}return new gh("An error occurred
during playback.","PlaybackError")}(c=t))}function E(t){var n={message:"An error
occurred.",name:"Error",method:t.source};return"MessageApiError"===t.constructorNam
e&&(n={message:t.message,name:t.name,method:t.source}),n}return function(){if(!
t.config.embed.on_site){d(t.config.embed.api);var i=t.config.request.referrer;
(n=new Ah(i)).listeners=Fs(uc).reduce((function(t,n){return z(z({},t),{},q({},n,!
1))}),{}),n.listeners[uc.READY]=!0,n.listeners[uc.ERROR]=!0,n.filter((function(t)
{return n.listeners[t]}))}}(),function(){if(n){var
e=Vf({},p,m);n.extendMethods(e),n.hooks({logError:function(t)
{b(uc.ERROR,E(t))},parseMessage:function(t){if(!t||""===t)return{};if($n(t))return
d(3),t;try{var n=JSON.parse(t);return d(2),n}catch(t){return
d(null),b(uc.ERROR,"The Vimeo Froogaloop v1 API is no longer supported.\n Please
follow the upgrade instructions here: https://goo.gl/mueGRR"),
{}}},buildMessage:function(n){var e;(null==(e=t.config.embed)?void
0:e.player_id)&&(n.player_id=t.config.embed.player_id);try{2===i&&(n=function(t)
{if(t.event){for(var n in ac)if(ac[n]===t.event)
{t.event=n;break}"cuechange"===t.event&&(t.data.text=t.data.cues[0].text,t.data.htm
l=t.data.cues[0].html,delete t.data.cues)}return JSON.stringify(t)}(n)),
$n(n)&&"ready"===n.event&&(n=JSON.stringify(n))}catch(t){}return n}})}}
(),o.on(Ti.BUFFER_STARTED,w(uc.BUFFER_START)),o.on(Ti.BUFFER_ENDED,w(uc.BUFFER_END)
),o.on(Ti.CUE_POINT,w(uc.CUEPOINT,(function(t)
{return{time:t.time,data:t.data,id:t.id}}))),o.on($o,w(uc.CUE_CHANGE,(function(t)
{var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=t||
{},e=i.language,r=void 0===e?null:e,o=i.label,u=void 0===o?null:o,a=i.kind,s=void
0===a?
null:a;return{label:u,language:r,kind:s,cues:n}}))),o.on(ec.Lc,w(uc.CHAPTER_CHANGE,
(function(n){var i=U(t.backbone.chapters).findIndex((function(t){return
n===t.id}));return i>=0?
{startTime:t.backbone.chapters[i].startTime,title:t.backbone.chapters[i].text,index
:i+1}:null}))),o.on(ec.pc,w(uc.ENDED,(function(){return s=!1,
{seconds:Is(t.config.video.duration),percent:1,duration:Is(t.config.video.duration)
}}))),o.on(ec.nr,w(uc.PAUSE,(function(n){return s=!1,
{seconds:Is(n),percent:Is(n/t.config.video.duration),duration:Is(t.config.video.dur
ation)}}))),o.on(ec.kc,w(uc.PLAYBACK_RATE_CHANGE,y)),o.on(ec.kc,w(uc.RATE_CHANGE,y)
),o.on(ec.Hc,w(uc.TEXT_TRACK_CHANGE,(function(t){f=t;var n=t||
{},i=n.language,e=void 0===i?null:i,r=n.label,o=void 0===r?
null:r,u=n.kind;return{label:o,language:e,kind:void 0===u?
null:u}}))),o.on(ec.mc,w(uc.VOLUME_CHANGE,(function(t)
{return{volume:Is(t)}}))),o.on(ec.Uc,w(uc.CONTROL_BAR_VISIBILITY_CHANGED,
(function(t){return{visible:t}}))),o.on(ec.Hl,(function(t)
{h&&setTimeout((function(){o.fire(Gs.Ps,h,!0)}),0),t&&_()})),o.on(ec.lc,
(function(t){var n=k(t);a&&b(uc.ERROR,n)})),o.on(ec.Zc,w(uc.FULLSCREENCHANGE,
(function(){return{fullscreen:!0}}))),o.on(ec.tl,w(uc.FULLSCREENCHANGE,(function()
{return{fullscreen:!1}}))),o.on(ec.bc,w(uc.QUALITY_CHANGE,(function(t)
{return{quality:t}}))),o.on(ec.Vf,w(uc.AD_STARTED)),o.on(ec.Df,w(uc.AD_COMPLETED)),
o.on(ec.Nf,w(uc.AD_ERROR)),o.on(ec.Bf,w(uc.AD_SKIPPED)),o.on(ec.Hf,w(uc.AD_ALL_COMP
LETED)),o.on(ec.Pf,w(uc.AD_CLICKED)),o.once(ec.ge,(function(){a=!
0,b(uc.READY),c&&(b(uc.ERROR,k(c)),c=null)})),o.on(au.EVENT_ENDED,w(uc.LIVE_EVENT_E
NDED)),o.on(au.EVENT_STARTED,w(uc.LIVE_EVENT_STARTED)),o.on(au.STREAM_OFFLINE,w(uc.
LIVE_STREAM_OFFLINE)),o.on(au.STREAM_ONLINE,w(uc.LIVE_STREAM_ONLINE)),o.on(xi.CAMER
A_CHANGE,w(uc.CAMERA_CHANGE,(function(t){return
t}))),o.on(xi.MOTION_END,w(uc.MOTION_END)),o.on(xi.MOTION_START,w(uc.MOTION_START))
,o.on(xi.WEBVR_HARDWARE_AVAILABLE,w(uc.WEBVR_HARDWARE_AVAILABLE)),o.on(xi.WEBVR_ENT
ER,w(uc.ENTER_WEBVR)),o.on(xi.WEBVR_EXIT,w(uc.EXIT_WEBVR)),o.on(xi.SPATIAL_UNSUPPOR
TED,w(uc.SPATIAL_UNSUPPORTED)),o.on(_i.PLAY,w(uc.PLAY,(function(n){return s?null:
(s=!0,
{seconds:Is(n),percent:Is(n/t.config.video.duration),duration:Is(t.config.video.dur
ation)})}))),o.on(_i.PLAYING,w(uc.PLAYING,(function(){return s?
{seconds:Is(t.currentTime),percent:Is(t.currentTime/t.config.video.duration),durati
on:Is(t.config.video.duration)}:null}))),o.on(_i.PROGRESS,w(uc.PROGRESS,
(function(t){var
n=t.loaded,e=t.duration,r=t.loadProgress,o={seconds:Is(n),percent:Is(r),duration:Is
(e)};return i<3&&(o.bytesLoaded=-1,o.bytesTotal=-
1),o}))),o.on(_i.SEEKING,w(uc.SEEKING,g)),o.on(_i.SEEKED,w(uc.SEEKED,g)),o.on(_i.TI
ME_UPDATE,w(uc.TIME_UPDATE,(function(t){var
n=t.currentTime,i=t.duration,e=t.timeProgress;return{seconds:Is(n),percent:Is(e),du
ration:Is(i)}}))),o.on(_i.LOADED_METADATA,w(uc.LOADED_METADATA)),o.on(_i.DURATION_C
HANGE,w(uc.DURATION_CHANGE,(function(n)
{return{duration:t.backbone.duration}}))),o.on(_i.WAITING,w(uc.WAITING)),o.on(_i.LO
ADED_DATA,w(uc.LOADED_DATA)),o.on(_i.LOAD_START,w(uc.LOAD_START)),o.on(_i.RESIZE,w(
uc.RESIZE,(function()
{return{videoWidth:t.backbone.videoWidth,videoHeight:t.backbone.videoHeight}}))),o.
on(_i.ENTER_PICTURE_IN_PICTURE,w(uc.ENTER_PICTURE_IN_PICTURE)),o.on(_i.LEAVE_PICTUR
E_IN_PICTURE,w(uc.LEAVE_PICTURE_IN_PICTURE)),o.on(Fc.connected,w(uc.CHROMECAST_CONN
ECTED)),o.on(Gs.Vs,(function(){c=null,l=!1})),t.doNotTrackEnabled||(o.on(ec.ef,
(function(){b(uc.EMAIL_CAPTURE)})),o.on(ec.rf,(function()
{b(uc.EMAIL_CAPTURE_FAILED)}))),o.on(ec.mf,(function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{};n&&(n.listeners[uc.SPACE_CHANGE]=!
0,b(uc.SPACE_CHANGE,t))})),o.fire(ec.xf),p}Rh.change&&document.addEventListener(Rh.
change,(function(t){if(Wh.onchange(Wh.element),Lh(Ih.CHANGE,Wh.element),Wh.element)
{var n=Uh[Uh.length-2];n&&n.element===Wh.element?Hh():Bh(Wh.element)}else Hh()}),!
1),document.addEventListener("webkitbeginfullscreen",(function(t){var n=!
0;if(Uh.length>0)for(var i=0,e=Uh.length;i<e;i+
+)if(Ph(Uh[i].element)===t.srcElement){n=!
1;break}n&&Uh.push({element:t.srcElement,enter:Fh,exit:Fh,error:Fh}),Wh.onchange(t.
srcElement),Lh(Ih.CHANGE,Wh.srcElement),Bh(t.srcElement)}),!
0),document.addEventListener("webkitendfullscreen",(function(t)
{Wh.onchange(t.srcElement),Lh(Ih.CHANGE,t.srcElement),Hh(t.srcElement)}),!
0),Rh.error&&document.addEventListener(Rh.error,(function(t){qh("not_allowed")}),!
1),Kh.prototype={get complement(){var t=this.clone();return t.rgb={red:255-
this.red,green:255-this.green,blue:255-this.blue},t},get hex(){return
Kh.rgbToHex(this.red,this.green,this.blue)},set hex(t){return
this.rgba=Kh.hexToRgb(t),this},get hsl()
{return"hsl("+this.hue+","+this.saturation+"%,"+Math.round(this.lightness)
+"%)"},set hsl(t)
{this.hue=t.hue,this.saturation=t.saturation,this.lightness=t.lightness;var
n=Kh.hslToRgb(t.hue,t.saturation,t.lightness);return
this.red=n.red,this.green=n.green,this.blue=n.blue,this.alpha=n.alpha,this},get
luminance(){function t(t){return t<=.03928?
t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*t(this.red/255)+.7152*t(this.green
/255)+.0722*t(this.blue/255)},get rgb()
{return"rgb("+this.red+","+this.green+","+this.blue+")"},set rgb(t){return
this.rgba=t,this},get rgba()
{return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"},set
rgba(t){this.red=t.red,this.green=t.green,this.blue=t.blue,this.alpha=t.alpha||
1;var n=Kh.rgbToHsl(t.red,t.green,t.blue);return
this.hue=n.hue,this.saturation=n.saturation,this.lightness=n.lightness,this},get
yiq(){return(299*this.red+587*this.green+114*this.blue)/1e3},clone:function()
{return new Kh(this)},lighten:function(t,n,i)
{if(this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness+t},n
&&i)for(var
e=i.contrast(this).ratio;e<n&&(this.lighten(5),e=i.contrast(this).ratio,!
(this.lightness>=100)););return this},darken:function(t,n,i)
{if(this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness-
t},n&&i)for(var
e=i.contrast(this).ratio;e<n&&(this.darken(5),e=i.contrast(this).ratio,!
(this.lightness<=0)););return this},overlayOn:function(t){if(this.alpha>=1)return
this;var n=this.clone();return n.rgba={red:n.red*this.alpha+t.red*t.alpha*(1-
this.alpha),green:n.green*this.alpha+t.green*t.alpha*(1-
this.alpha),blue:n.blue*this.alpha+t.blue*t.alpha*(1-
this.alpha),alpha:n.alpha+t.alpha*(1-this.alpha)},n},contrast:function(t){var
n=this.alpha;if(n>=1){t.alpha<1&&(t=t.overlayOn(this));var
i=this.luminance+.05,e=t.luminance+.05,r=i/e;return e>i&&(r=1/r),
{ratio:r=Math.round(10*r)/10,error:0,min:r,max:r}}var
o=this.overlayOn(Kh.white).contrast(t).ratio,u=this.overlayOn(Kh.black).contrast(t)
.ratio,a=Math.max(o,u),s={red:Math.min(Math.max(0,(t.red-this.red*n)/(1-
n)),255),green:Math.min(Math.max(0,(t.green-this.green*n)/(1-
n)),255),blue:Math.min(Math.max(0,(t.blue-this.blue*n)/(1-
n)),255)},c=this.clone();c.rgb=s;var
l=this.overlayOn(c).contrast(t).ratio;return{ratio:Math.round((l+a)/2*10)/10,error:
Math.round((a-l)/2*10)/10,min:l,max:a,closest:c,farthest:u===a?
Kh.white:Kh.black}},wcagAACompliant:function(t){return
this.contrast(t).ratio>=4.5},wcagAAACompliant:function(t){return
this.contrast(t).ratio>=7},yiqContrastColor:function(){return this.yiq>=120?new
Kh(0,0,0):new Kh(255,255,255)}},Kh.hexToRgb=function(t){var n;return
3===(t=String(t)).length||4===t.length?(n=/^#?([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-
9])$/i.exec(t))&&(n[1]+=n[1],n[2]+=n[2],n[3]+=n[3]):n=/^#?([A-Fa-f0-9]{2})([A-Fa-
f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(t),n?
{red:parseInt(n[1],16),green:parseInt(n[2],16),blue:parseInt(n[3],16),alpha:1}:null
},Kh.rgbToHex=function(t,n,i){return"#"+((1<<24)+(Math.round(t)<<16)+
(Math.round(n)<<8)+Math.round(i)).toString(16).slice(1)},Kh.rgbToHsl=function(t,n,i
){t/=255,n/=255,i/=255;var
e,r=Math.max(t,n,i),o=Math.min(t,n,i),u=(r+o)/2,a=u;if(r===o)return{hue:0,saturatio
n:0,lightness:100*a};var s=r-o;return e=a>.5?s/(2-r-o):s/(r+o),r===t?u=(n-i)/s+
(n<i?6:0):r===n?u=(i-t)/s+2:r===i&&(u=(t-n)/s+4),u/=6,
{hue:Math.round(360*u),saturation:Math.round(100*e),lightness:Math.round(100*a)}},K
h.hslToRgb=function(t,n,i){function e(t,n,i){return i<0&&(i+=1),i>1&&(i-=1),6*i<1?
t+6*(n-t)*i:2*i<1?n:3*i<2?t+6*(2/3-i)*(n-
t):t}if(t/=360,i/=100,0==(n/=100))return{red:Math.floor(255*i),green:Math.floor(255
*i),blue:Math.floor(255*i)};var r=i<.5?i*(1+n):i+n-n*i,o=2*i-
r;return{red:Math.floor(255*e(o,r,t+1/3)),green:Math.floor(255*e(o,r,t)),blue:Math.
floor(255*e(o,r,t-1/3))}},Kh.hslToHex=function(t,n,i){var
e=Kh.hslToRgb(t,n,i);return Kh.rgbToHex(e.red,e.green,e.blue)},Kh.white=new
Kh("fff"),Kh.black=new Kh("000");var Zh=function(){function t(t)
{this.alertTextElement=t.querySelector(".vp-text-alert-
wrapper"),this.alertContentElement=this.alertTextElement.querySelector(".vp-alert-
text")}var n=t.prototype;return n.show=function(t)
{this.alertContentElement.innerHTML=t,this.alertContentElement.classList.remove("hi
dden"),this.alertTextElement.classList.remove("hidden")},n.hide=function()
{this.alertContentElement.classList.add("hidden"),this.alertTextElement.classList.a
dd("hidden")},t}(),Qh=Object.prototype.hasOwnProperty,td=bi((function(t,n)
{if(Rn(n)||Vn(n))si(n,Ru(n),t);else for(var i in
n)Qh.call(n,i)&&ai(t,i,n[i])})),nd=i((function(t){!function(){var i="undefined"!
=typeof window&&window===this?this:void 0!==n&&null!=n?n:this,e="function"==typeof
Object.defineProperties?Object.defineProperty:function(t,n,i){t!
=Array.prototype&&t!=Object.prototype&&(t[n]=i.value)};function o(){o=function()
{},i.Symbol||(i.Symbol=a)}var u=0;function a(t){return"jscomp_symbol_"+(t||"")+u+
+}function s(){o();var t=i.Symbol.iterator;t||
(t=i.Symbol.iterator=i.Symbol("iterator")),"function"!=typeof
Array.prototype[t]&&e(Array.prototype,t,{configurable:!0,writable:!
0,value:function(){return c(this)}}),s=function(){}}function c(t){var n=0;return
function(t){return s(),(t={next:t})[i.Symbol.iterator]=function(){return this},t}
((function(){return n<t.length?{done:!1,value:t[n++]}:{done:!0}}))}function l(t)
{s();var n=t[j.iterator];return n?n.call(t):c(t)}function f(t){if(!(t instanceof
Array)){t=l(t);for(var n,i=[];!(n=t.next()).done;)i.push(n.value);t=i}return t}var
h=0,d="img script iframe link audio video source".split(" ");function v(t,n)
{for(var i=(t=l(t)).next();!
i.done;i=t.next())if(i=i.value,n.includes(i.nodeName.toLowerCase())||
v(i.children,n))return!0;return!1}function p(t,n){if(2<t.length)return
performance.now();for(var i=[],e=(n=l(n)).next();!
e.done;e=n.next())e=e.value,i.push({timestamp:e.start,type:"requestStart"}),i.push(
{timestamp:e.end,type:"requestEnd"});for(e=(n=l(t)).next();!
e.done;e=n.next())i.push({timestamp:e.value,type:"requestStart"});for(i.sort((funct
ion(t,n){return t.timestamp-n.timestamp})),t=t.length,n=i.length-
1;0<=n;n--)switch((e=i[n]).type)
{case"requestStart":t--;break;case"requestEnd":if(2<++t)return
e.timestamp;break;default:throw Error("Internal Error: This should never
happen")}return 0}function m(t){t=t||{},this.w=!!
t.useMutationObserver,this.u=t.minValue||null,t=window.__tti&&window.__tti.e;var
n=window.__tti&&window.__tti.o;this.a=t?t.map((function(t)
{return{start:t.startTime,end:t.startTime+t.duration}})):
[],n&&n.disconnect(),this.b=[],this.f=new D,this.j=null,this.v=-1/0,this.i=!
1,this.h=this.c=this.s=null,function(t,n){var i=XMLHttpRequest.prototype.send,e=h+
+;XMLHttpRequest.prototype.send=function(r){for(var o=[],u=0;u<arguments.length;+
+u)o[u-0]=arguments[u];var a=this;return
t(e),this.addEventListener("readystatechange",(function()
{4===a.readyState&&n(e)})),i.apply(this,o)}}
(this.m.bind(this),this.l.bind(this)),function(t,n){var i=fetch;fetch=function(e)
{for(var o=[],u=0;u<arguments.length;++u)o[u-0]=arguments[u];return new
r((function(e,r){var u=h++;t(u),i.apply(null,[].concat(f(o))).then((function(t)
{n(u),e(t)}),(function(t){n(t),r(t)}))}))}}
(this.m.bind(this),this.l.bind(this)),function(t){t.c=new
PerformanceObserver((function(n){for(var i=(n=l(n.getEntries())).next();!
i.done;i=n.next())if("resource"===(i=i.value).entryType&&(t.b.push({start:i.fetchSt
art,end:i.responseEnd}),w(t,p(t.g,t.b)+5e3)),"longtask"===i.entryType){var
e=i.startTime+i.duration;t.a.push({start:i.startTime,end:e}),w(t,e+5e3)}})),t.c.obs
erve({entryTypes:["longtask","resource"]})}(this),this.w&&(this.h=function(t){var
n=new MutationObserver((function(n){for(var i=(n=l(n)).next();!i.done;i=n.next())
("childList"==(i=i.value).type&&v(i.addedNodes,d)||"attributes"==i.type&&d.includes
(i.target.tagName.toLowerCase()))&&t(i)}));return n.observe(document,{attributes:!
0,childList:!0,subtree:!0,attributeFilter:["href","src"]}),n}
(this.B.bind(this)))}function b(t){t.i=!0;var n=0<t.a.length?t.a[t.a.length-
1].end:0,i=p(t.g,t.b);w(t,Math.max(i+5e3,n))}function w(t,n){!t.i||t.v>n||
(clearTimeout(t.j),t.j=setTimeout((function(){var
n=performance.timing.navigationStart,i=p(t.g,t.b);if(n=(window.a&&window.a.A?
1e3*window.a.A().C-n:0)||performance.timing.domContentLoadedEventEnd-n,t.u)var
e=t.u;else e=performance.timing.domContentLoadedEventEnd?
(e=performance.timing).domContentLoadedEventEnd-e.navigationStart:null;var
r=performance.now();null===e&&w(t,Math.max(i+5e3,r+1e3));var o=t.a;(i=5e3>r-i||
5e3>r-(i=o.length?o[o.length-1].end:n)?
null:Math.max(i,e))&&(t.s(i),clearTimeout(t.j),t.i=!
1,t.c&&t.c.disconnect(),t.h&&t.h.disconnect()),w(t,performance.now()+1e3)}),n-
performance.now()),t.v=n)}m.prototype.getFirstConsistentlyInteractive=function()
{var t=this;return new r((function(n){t.s=n,"complete"==document.readyState?
b(t):window.addEventListener("load",(function()
{b(t)}))}))},m.prototype.m=function(t)
{this.f.set(t,performance.now())},m.prototype.l=function(t)
{this.f.delete(t)},m.prototype.B=function(){w(this,performance.now()
+5e3)},i.Object.defineProperties(m.prototype,{g:{configurable:!0,enumerable:!
0,get:function(){return[].concat(f(this.f.values()))}}});var
g={getFirstConsistentlyInteractive:function(t){return t=t||
{},"PerformanceLongTaskTiming"in window?new
m(t).getFirstConsistentlyInteractive():r.resolve(null)}};t.exports?
t.exports=g:window.ttiPolyfill=g}()})),id=z(z({},mc),{},{ALERT_DISPLAYED:"alert-
displayed",ALERT_HIDDEN:"alert-hidden",CAPTIONS_ENABLED:"captions-
enabled",CAPTIONS_DISABLED:"captions-disabled",CHROMECAST_CONNECTED:"chromecast-
connected",CHROMECAST_DISCONNECTED:"chromecast-disconnected",DRM_KEY_SWITCH:"drm-
key-switch",ERROR_LINK_PRESSED:"error-link-
pressed",MEDIASESSION_PLAY:"mediasession-play",MEDIASESSION_PAUSE:"mediasession-
pause",MEDIASESSION_SEEK_FORWARD:"mediasession-
seekforward",MEDIASESSION_SEEK_BACKWARD:"mediasession-
seekbackward",SLATE_DISPLAYED:"slate-
displayed",CLICK:"click",VIDEO_DURATION_MISMATCH:"video-duration-
mismatch",VIDEO_FULLSCREEN_CHANGE:"video-fullscreen-
change",VIDEO_MANIFEST_LOADED:"video-manifest-
loaded",VIDEO_MANIFEST_TIMEOUT:"video-manifest-
timeout",VIDEO_PLAYBACK_RATE_CHANGED:"video-playback-rate-
changed",VIDEO_STREAM_CHANGE:"video-stream-
change",VIDEO_SWITCH_BACK_TO_AUTO:"video-switch-back-to-
auto",VIDEO_SWITCH_FROM_AUTO:"video-switch-from-auto",DOWNLOAD_TIMEOUT:"video-
download-timeout",AD_BUFFERING:"ad-buffering",AD_COMPLETE:"ad-
complete",AD_CLICKED:"ad-clicked",AD_ERROR:"ad-error",AD_PAUSED:"ad-
paused",AD_RESUMED:"ad-resumed",AD_STARTED:"ad-started",AD_SKIPPED:"ad-
skipped",OUTRO_VIDEO_SELECTED:"outro-video-
selected",WEBVR_HARDWARE_AVAILABLE:"webvr-hardware-available",ENTER_WEBVR:"enter-
webvr",EXIT_WEBVR:"exit-webvr"});function ed(t){return
Us("av01",t)?"AV1":Us("hvc1",t)?"HEVC":Us("avc1",t)?"AVC":null}function
rd(t){return Us("mp4a",t)?"AAC":Us("opus",t)?"OPUS":null}function od(t,n){var
i,e;return(null==t||null==(i=t.request)||null==(e=i.ab_tests)?void 0:e[n])?
t.request.ab_tests[n]:{}}function ud(t,n,i,e){var o,u,a,s,c,l=function(t){return
function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{return
r.resolve(t.apply(this,n))}catch(t){return r.reject(t)}}}((function(n){var
i=n.identifier,e=n.data,o=e.request,u=e.response,a=e.extraContext,s=u.headers;retur
n function(t,n,i){return t&&t.then||(t=r.resolve(t)),n?t.then(n):t}
(u.arrayBuffer(),(function(n){if("video"===i.type){var
e=t.backbone.representations.reverse(),r=e[i.stream];if(!r)return;var
c=function(n,i,e,r,o,u){var a=e.headers;delete a[""];var
s={};Object.keys(a).forEach((function(t){var
n=a[t],i=t.replace(h,"_");s[i]=n}));var c=u.slice();return c.forEach((function(t)
{t.profile=String(t.profile||"")||null,t.id=String(t.id||"")||null})),
{host:gt(i.data.url),product:_c(t),duration:i.data.duration,size:r.byteLength,index
:n.segment,session_id:t.config.request.session,profile_id:String(o.profile||"")||
null,quality:o.quality,streams:c,clip_id:t.config.video.id,video_file_id:String(o.i
d||"")||
null,headers:s,buffered:Is(pt(t.backbone.currentTime,t.backbone.buffered),2),ttfb:o
t(e),request_id:i.data.uuid?i.data.uuid:""}}
(i,o,u,n,r,e),l=c;a&&(l=td({extraContext:a},c)),t.events.fire(ec.qf,
{name:id.CHUNK_DOWNLOADED,data:l});var
f={ak_reference_id:c.headers.akamai_reference_id||
null,akamai_edge_ip:c.headers.akamai_edge_ip||
null,content_length:c.headers.content_length||
null,content_type:c.headers.content_type||
null,x_vim_cachebc:c.headers.x_vim_cachebc||null,x_cache:c.headers.x_cache||
null,x_cache_hits:c.headers.x_cache_hits||
null};c.headers=f,od(t.config,"chunk_logging").group&&t.config.request.urls.fresnel
_chunk_url&&function(t,n,i){var e=Date.now(),r=[{uuid:Os(),created_at:e,event:
{name:"chunk_downloads",version:5,ts_ms:e,fields:n},tracker:{name:"vimeo-
player",version:i}}];new bc(t).logRequestPromiseWithUrl(t,JSON.stringify(r),!0)}
(t.config.request.urls.fresnel_chunk_url+"?
beacon=1",c,kc(t.config)),X+=n.byteLength}"akamai-edge-ip"in s&&(N=s["akamai-edge-
ip"]),"quic-version"in s&&(F=s["quic-version"]),"x-vim-cachebc"in s&&(V=s["x-vim-
cachebc"]),"x-akamai-request-id"in s&&(B=s["x-akamai-request-id"]),"ak-reference-
id"in s&&(H=s["ak-reference-id"]),function(t){var n=t.headers,i=t.url;if("x-cache-
hits"in n){var e=n["x-cache-hits"].match(/(0|1)(?:, (0|1))?/);null!
==e&&(q={url:i,servedBy:n["x-served-by"],edge:e[1]?!!
parseInt(e[1],10):null,tier1:e[2]?!!parseInt(e[2],10):null,tier2:null})}else if("x-
vim-cachebc"in n){var r=n["x-vim-cachebc"].match(/E:(m|h)(?:,TD0:(m|h))?(?:,TD1:(m|
h))?(?:,TD2:(m|h))?/);if(null!==r)for(var o in q={url:i,edge:r[1]?
r[1]:null,tier1:r[2]?r[2]:null,tier2:r[3]?r[3]:null})"edge"!==o&&"tier1"!
==o&&"tier2"!==o||("h"===q[o]?q[o]=!0:"m"===q[o]&&(q[o]=!1))}}(u);var
d={};N&&(d.akamai_edge_ip=N),F&&(d.quic_version=F),V&&(d.akamai_cache_debug=V),B&&(
d.akamai_request_id=B),H&&(d.akamai_reference_id=H),d.manifest_load_durations=t.bac
kbone.manifestLoadDurations,d.successful_segment_count=t.backbone.successfulSegment
s.length,d.failed_segment_count=t.backbone.failedSegments.length,G=d}))})),f=new
P,h=new RegExp("-","g"),d=null,v=null,p=!1,m=!0,b=!1,w=!
1,g="auto",y={},_={},k=null,E=null,T=null,S=[],x=null,A={},M=!1,C=!1,R="none",I=!
1,O=0,j=0,L=0,D=0,N=null,F=null,V=null,B=null,H=null,q=null,W=!
1,z=null,G=null,K=null,Y=null,J=!1,$=!1,X=0;function Z(){var
n=f.get(t.backbone.videoElement);if(n)return u=n.wh,void(a=n.gh);a=new pc,u=new
yc(t.backbone.videoElement,nt),Q(),f.set(t.backbone.videoElement,
{wh:u,gh:a})}function Q(){var
n=a;u.customizeHooks({bufferTracker:n,videoBufferCheck:function()
{t.events.on(Ti.BUFFER_STARTED,(function(){p&&(J||W||(W=!
0,n.trackBufferStart(u.logBufferStart,
{lower_profile_available:t.backbone.isLowerProfileAvailable})))})),t.events.on(Ti.B
UFFER_ENDED,(function(){p&&W&&(W=!1,n.trackBufferEnd(u.logBufferEnd,
{cdn_data:q}),n.resetLastBufferTime())}))},addEventData:function(t){var
n=$;switch($=!1,t){case id.VIDEO_START_TIME:return G;case id.VIDEO_SEEK:var
i=K;return K=null,i;case id.VIDEO_EXIT:return{tti:z};case id.VIDEO_PLAYED:case
id.VIDEO_PAUSED:return{api_call:n}}return null}}),u.initHooks()}function nt(n){var
i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it(n)||
((i=Object.assign(u?u.globalProperties():{},et(),i)).name=n,t.events.fire(ec.qf,
{name:n,data:i}),o.log(i).catch((function(t){})))}function it(n){var
i,e,r,o;switch(n){case id.VIDEO_SEEK:case
id.VIDEO_SEEKED:return(null==(i=t.config.embed)?void 0:i.loop)||
(null==(e=t.config.embed)||null==(r=e.settings)?void 0:r.background);case
id.VIDEO_PLAYBACK_RATE_CHANGED:return null==(o=t.config.video.live_event)?void
0:o.low_latency;default:return!1}}function et(){return Object.assign(function(){var
n,e,r,o,u,a,s={autoplay:1===t.config.embed.autoplay,background:!!
t.config.embed.settings.background,clip_id:t.config.video.id,context:t.config.embed
.context,device_pixel_ratio:window.devicePixelRatio||1,drm:!!
t.config.request.drm,embed:!t.config.embed.on_site,is_mod:!!
t.config.user.mod,is_spatial:!(!Wi.spatialPlayback||!
t.config.video.spatial),logged_in:!!t.config.user.logged_in,looping:!!
t.config.embed.loop,owner_id:null==(n=t.config.video)||null==(e=n.owner)?void
0:e.id,product:_c(t),referrer:t.config.request.referrer,session_id:t.config.request
.session,stayed_on_auto:m,version:kc(t.config),version_backend:t.config.request.bui
ld.backend,viewer_id:null==(r=t.config.user)?void
0:r.id,viewer_team_id:null==(o=t.config.user)?void
0:o.team_id,viewer_team_origin_user_id:null==(u=t.config.user)?void
0:u.team_origin_user_id,vuid:ul("vuid")};return
t.config.video.owner&&(s.account_type=t.config.video.owner.account_type),t.config.e
mbed.api&&(s.api_version=t.config.embed.api),t.config.embed.app_id&&(s.app_id=Strin
g(t.config.embed.app_id)),t.config.video.privacy&&(s.privacy=t.config.video.privacy
),i.get(nl)&&(s.live_session_id=null==(a=t.config.video.live_event)?void
0:a.id),Wi.webvr&&t.config.video.spatial&&(s.webvr_support=!
0),Wi.webxr&&t.config.video.spatial&&(s.webxr_support=!
0),t.config.request.drm&&t.config.request.drm.fallback_asset&&(s.has_sd_drm_fallbac
k=!0),s}(),function(){var n,i,e=t.backbone.video?t.backbone.video.currentFile:
{},r=function(){var
n={},i=Hf(),e=Ea("asc"),r="MediaSourceScanner"===t.backbone.currentScannerName,o="H
TMLScanner"===t.backbone.currentScannerName,u="HLSLiveScanner"===t.backbone.current
ScannerName,a=[];o&&(a=sa(t.config,"request.files.progressive")||
sa(t.config,"request.files.hls")||
[]),r&&(a=sa(t.config,"request.files.dash.streams",
[])),u&&(a="video/vnd.mpeg.dash.mpd"===t.backbone.video.currentFile.mime?
sa(t.config,"request.files.dash.streams",
[]):sa(t.config,"request.files.hls.streams",[]));var
s=U(a).sort(e).map((function(t){return t.profile})),c=-
1,l=0,f=null;if(Object.keys(_).forEach((function(t){var
n=s.indexOf(parseInt(t,10));n>c&&(c=n);var e=_[t].reduce((function(t,n)
{return((n.end||i)-
n.start)/1e3+t}),0);e>l&&(l=e,f=t)})),n.highest_profile=s[c],n.highest_available_pr
ofile=s[s.length-1],n.most_used_profile=f,(r||u)&&S)
{n.max_speed=Math.round(Math.max.apply(Math,tt(S)))/1e3,n.min_speed=Math.round(Math
.min.apply(Math,tt(S)))/1e3;var h=S.reduce((function(t,n){return
t+n}),0);n.average_speed=Math.round(h/S.length)/1e3}return n}(),o=e.id,u=void
0===o?0:o,a=e.mime,c=void 0===a?"video/mp4":a,l=e.metadata,f=(l=void 0===l?
{}:l).profile,h=void 0===f?null:f,p=!1,m=!1;switch(c){case
zs:0===e.restrictedStreamIndexes.length&&(p=!
0),sa(t.config,"request.files.dash.separate_av")&&(m=!0),h=y?
y.profile:null;break;case"application/vnd.apple.mpegurl":p=!0}var
b,w={audio_bitrate:t.backbone.getBitrateAtTime(t.backbone.currentTime,"audio")/1e3,
auto:p,average_speed:r.average_speed||0,cdn:e.metadata?
e.metadata.cdn:"akamai",delivery:"live"!==oc[c]?
oc[c]:"dash",display:t.expose.pictureInPicture?"pip":t.expose.fullscreen?"fs":null,
dropped_frames:D,dropped_frame_percent:L,event_time:d+qf(v),ended:C,forced_embed_qu
ality:R,fullscreen:I,highest_available_profile:r.highest_available_profile?
String(r.highest_available_profile):null,highest_profile:r.highest_profile?
String(r.highest_profile):null,max_speed:isFinite(r.max_speed)?
r.max_speed:0,mime:e.mime||null,min_speed:isFinite(r.min_speed)?
r.min_speed:0,most_used_profile:r.most_used_profile?
String(r.most_used_profile):null,origin:e.metadata?
e.metadata.origin:"",profile_id:h?
String(h):null,codec:Cu(y)?"":ed(y.codecs),audio_codec:rd(null==(n=t.backbone)||
null==n.getCurrentStream||null==(i=n.getCurrentStream("audio"))?void 0:i.codecs)||
null,quality:y?
y.quality:null,quality_downswitch_count:j,quality_upswitch_count:O,quality_switch_c
ount:O+j,separate_av:m,target_profile_id:Y,ttfb:rt(),video_bitrate:t.backbone.getBi
trateAtTime(t.backbone.currentTime,"video")/1e3,video_duration:Is(t.config.video.du
ration),video_file_id:Number.isInteger(Number(u))?
parseInt(u,10):null};t.backbone.isLive&&(w.ecdn=!!
t.config.video.p2p,w.ecdn&&(w.ecdn_peers=null==(b=window.Streamroot)?void
0:b.instances[0].stats.realtime.dnaSources),void 0!
==t.backbone.latency&&(w.latency=t.backbone.latency),void 0!
==t.backbone.lowLatencyMode&&(w.is_low_latency=t.backbone.lowLatencyMode));return
t.config.request.drm&&(w.drm_mode=s),w}(),function(){var
n={};if(t.config.request.ab_tests)for(var i in t.config.request.ab_tests){var
e=t.config.request.ab_tests[i];for(var r in
n["".concat(i,"_test")]=1,n["".concat(i,"_group")]=e.group,e.data)n["".concat(i,"_d
ata_").concat(r)]=e.data[r]}return n}())}function rt(){var t=-1;if(void 0!
==window.performance&&"function"==typeof window.performance.getEntriesByType){var
n=window.performance.getEntriesByType("resource");if(n){var i=n.filter((function(t)
{return null!==t.name.split("?")[0].match(/\.m4s$|\.ts$/)}));t=i.map((function(t)
{return t.responseStart-t.connectStart})).reduce((function(t,n){return
t+n}),0)/(i.length||1)}}return Is(t,2)}function
ot(t){var n=t.url,i=-1;if(window.performance){var
e=window.performance.getEntriesByType("resource");if(e.length){var
r=e.filter((function(t){return t.name===n})).sort((function(t,n){return
t.connectStart-n.connectStart}));if(r.length){var o=r[r.length-
1];i=o.responseStart-o.connectStart}}}return Is(i,2)}function ut(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{final:!
0},i=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:null,e={error_type:t,error_reason:i};u.handleExternalError(e,n)}v=Wf()
,d=t.config.request.timestamp,s=t.config.request.drm?"default":null,o=new
bc(function(){var n="?beacon=1&session-id=".concat(t.config.request.session);return
t.config.request.urls.fresnel+n}()),t.events.on(ec.lc,ut),t.events.on(Gs.Vs,
(function(){M=!1})),t.events.on(Gs.Ds,(function(){J=!0})),t.events.on(ec.cf,
(function(t,n){nt(id.ERROR_LINK_PRESSED,
{error_type:n,error_url:t})})),t.events.on(ec.Zc,(function(){I=!
0,nt(id.VIDEO_FULLSCREEN_CHANGE)})),t.events.on(ec.tl,(function(){I=!
1,nt(id.VIDEO_FULLSCREEN_CHANGE)})),t.events.on(ec.Mf,(function(t,n){nt(t?
id.ALERT_DISPLAYED:id.ALERT_HIDDEN)})),t.events.on(ec.Hl,(function()
{d=t.config.request.timestamp,v=Wf(),p=!1,m=!0,b=!1,w=!
1,g="auto",y={},_={},k=null,E=null,T=null,S=[],x=null,A={},M=!1,C=!1,R="none",I=!
1,O=0,j=0,L=0,D=0,N=null,F=null,V=null,q=null,z=null,Y=null,X=0,s=t.config.request.
drm?"default":null,u&&(u.reset(),Q())})),t.events.on(ec.Ec,(function()
{K={seek_type:"nudge"}})),t.events.on(ec.Dc,(function(t,n)
{K={seek_type:n}})),t.events.on(ec.Ic,(function(t)
{K={seek_type:"chapter-".concat(t)}})),t.events.on(ec.Ql,(function(t)
{nt(id.OUTRO_VIDEO_SELECTED,{selected_video_id:t})})),t.events.on(Ko,(function()
{M||Bc.isCastConnected||(t.performDelegateAction(ic,(function(t){M=!
0,c.then((function(){return u.logStartRequest()})).catch((function()
{}))})),od(t.config,"chunk_logging").group&&t.config.request.urls.fresnel_manifest_
url&&function(t,n,i,e){var r=Date.now(),o=[{uuid:Os(),created_at:r,event:
{name:"session_manifest",version:1,ts_ms:r,fields:
{sessionID:n,manifest:i}},tracker:{name:"vimeo-player",version:e}}];new
bc(t).logRequestPromiseWithUrl(t,JSON.stringify(o),!0)}
(t.config.request.urls.fresnel_manifest_url+"?
beacon=1",t.config.request.session,t.backbone.manifest,kc(t.config)))})),t.events.o
n(ec.sl,(function(t){"email-capture"===t&&nt(id.SLATE_DISPLAYED,
{slate_type:"email"})})),t.events.on(ec.kc,(function(t,n)
{nt(id.VIDEO_PLAYBACK_RATE_CHANGED,
{previous_playback_rate:n})})),t.events.on(ec.yc,(function(t){nt(id.CLICK,
{click_target:t})})),t.events.on(Gs.Hs,(function(n){"auto"!==n&&(m=!
1),t.backbone.video.currentFile.mime===zs&&("auto"===n||b?"auto"===n&&b&&!
w&&(nt(id.VIDEO_SWITCH_BACK_TO_AUTO,{quality:g,auto:1}),w=!0):
(nt(id.VIDEO_SWITCH_FROM_AUTO,{quality:n,auto:0}),b=!0),g=n)})),t.events.on(Gs.$s,
(function(t){x!==t&&(x=t,nt(id.CAPTIONS_ENABLED,
{captions_id:String(t)}))})),t.events.on(Gs.Xs,(function()
{x&&(x=null,nt(id.CAPTIONS_DISABLED))})),t.events.on(Fc.connected,(function()
{nt(id.CHROMECAST_CONNECTED)})),t.events.on(Fc.disconnected,(function()
{nt(id.CHROMECAST_DISCONNECTED)})),t.events.on(Ti.STREAM_CHANGE,(function(t,n,i)
{y=t;var e=t.profile?t.profile:t.id,r=Hf();if(_[e]=_[e]||[],k){var o=_[k].length-
1;_[k][o]&&(_[k][o].end=r)}E&&(i[n].bitrate>E?
O+=1:j+=1),_[e].push({start:r}),A[e]={bitrate:i[n].bitrate,width:i[n].width,height:
i[n].height},nt(id.VIDEO_STREAM_CHANGE,
{previous_audio_bitrate:T/1e3,previous_video_bitrate:E/1e3,previous_profile_id:Stri
ng(k)}),k=e,E=i[n].bitrate,T=i[n].audioBitrate})),t.events.on(Ti.STREAM_TARGET_CHAN
GE,(function(t){t&&(Y=String(t.profile||"")||null)})),t.events.on(Jo,(function(t)
{R=t})),t.events.on(_i.PLAYING,(function(){J=!1})),t.events.once(ec._c,(function()
{p=!0})),t.events.on(ec.Lf,(function(){nt(id.AD_BUFFERING)})),t.events.on(ec.Df,
(function(){nt(id.AD_COMPLETE)})),t.events.on(ec.Pf,(function()
{nt(id.AD_CLICKED)})),t.events.on(ec.Nf,(function(t){nt(id.AD_ERROR,
{error_type:t.errorType,error_reason:t.errorReason})})),t.events.on(ec.Ff,
(function(){nt(id.AD_PAUSED)})),t.events.on(ec.Uf,(function()
{nt(id.AD_RESUMED)})),t.events.on(ec.Vf,(function(t){nt(id.AD_STARTED,
{startup_duration:t.time?Is(t.time/1e3,2):null})})),t.events.on(ec.Bf,(function()
{nt(id.AD_SKIPPED)})),t.events.on(ec.dc,(function()
{Wi.iPhone&&u.setDisplayContext(1)})),t.events.on(ec.vc,(function()
{Wi.iPhone&&u.setDisplayContext(0)})),t.events.on(Ti.DROPPED_FRAMES,(function(t)
{var
n=t.dropped/t.total*100;L=Math.round(100*n)/100,D=t.dropped})),t.events.on(Ti.BANDW
IDTH,(function(t){var
n=t.speed;S.push(n),S.length>500&&S.shift()})),t.events.on(Ti.MANIFEST_TIMEOUT,
(function(){nt(id.VIDEO_MANIFEST_TIMEOUT)})),t.events.on(Ti.MANIFEST_LOADED,
(function()
{nt(id.VIDEO_MANIFEST_LOADED)})),t.events.on(Ti.DOWNLOAD_END,l),t.events.on(Ti.DOWN
LOAD_TIMEOUT,(function(){nt(id.DOWNLOAD_TIMEOUT)})),t.events.on(Ti.DRM_KEY_SWITCH,
(function(){s="sd-fallback",nt(id.DRM_KEY_SWITCH)})),t.events.on(Ti.SCANNER_CHANGE,
(function(){q=null})),t.events.on(Ti.AV_DURATION_MISMATCH,(function(t)
{nt(id.VIDEO_DURATION_MISMATCH,
{duration_difference:Math.round(100*t)/100})})),t.events.on(Ti.QUOTA_EXCEEDED_ERROR
,(function(t){var
n=t.buffered,i={error_type:Ti.QUOTA_EXCEEDED_ERROR};i.buffered=Is(pt(0,n),2),i.byte
s_loaded=X,nt(id.VIDEO_PLAYBACK_ERROR,i)})),t.events.on(Ai.MEDIASESSION_PLAY,
(function(){nt(id.MEDIASESSION_PLAY)})),t.events.on(Ai.MEDIASESSION_PAUSE,
(function(){nt(id.MEDIASESSION_PAUSE)})),t.events.on(Ai.MEDIASESSION_SEEK_FORWARD,
(function()
{nt(id.MEDIASESSION_SEEK_FORWARD)})),t.events.on(Ai.MEDIASESSION_SEEK_BACKWARD,
(function(){nt(id.MEDIASESSION_SEEK_BACKWARD)})),t.events.on(rc.Ds,(function()
{K={seek_type:"api"}})),t.events.on(rc.Wf,(function(){$=!0})),t.events.on(rc.zf,
(function(){$=!0})),t.events.on(xi.WEBVR_HARDWARE_AVAILABLE,(function(t)
{nt(id.WEBVR_HARDWARE_AVAILABLE,
{vr_hardware:t.displayName})})),t.events.on(xi.WEBVR_ENTER,(function()
{nt(id.ENTER_WEBVR,!0)})),t.events.on(xi.WEBVR_EXIT,(function(){nt(id.EXIT_WEBVR,!
0)})),t.events.on(Mi.BRAIN_ML_MODEL_INPUTS,(function(n){var i;
(null==(i=n.geolocation)?void 0:i.length)&&n.geolocation[0].length?
n.geolocation=n.geolocation[0]
[0]:n.geolocation="",t.config.request.urls.fresnel_mimir_inputs_url&&function(t,n,i
,e){var
r={chunk_request_id:i.chunkRequestID,duration:i.duration,available_qualities:i.avai
lableQualities,next_chunk_sizes:i.nextChunkSizes,last_buffer_sizes:i.lastBufferSize
s,last_chunk_download_times:i.lastChunkDownloadTimes,last_chunk_sizes:i.lastChunkSi
zes,last_chunk_qualities:i.lastChunkQualities,num_remaining_chunks:i.numRemainingCh
unks,last_playback_heads:i.lastPlaybackHeads,geolocation:i.geolocation,session_id:n
},o=Date.now(),u=[{uuid:Os(),created_at:o,event:
{name:"mimir_inputs",version:1,ts_ms:o,fields:r},tracker:{name:"vimeo-
player",version:e}}];new bc(t).logRequestPromiseWithUrl(t,JSON.stringify(u),!0)}
(t.config.request.urls.fresnel_mimir_inputs_url+"?
beacon=1",t.config.request.session,n,kc(t.config))})),t.events.on(au.STALL_JUMP,
(function(t){ut("livestall",{final:!1},t.msg)})),(c=new r((function(n,i){var e;
(null==(e=t.backbone)?void
0:e.video)&&n(),t.events.on(Go,n)}))).then(Z).catch((function()
{})),t.events.on(ec.af,Z),nd.getFirstConsistentlyInteractive().then((function(t)
{z=Is(t)})).catch((function(){}))}var ad=function(){function t(t,n,i)
{this.player=t,this.element=n,this.store=i,this.shouldSample=!
0,this.muxClient=null,this.yh()&&(this.shouldSample&&Math.random()>.75||
this._h())}var n=t.prototype;return n.kh=function(){return!!
this.player.config.request.flags.ott},n.yh=function(){var t;return!
(this.player.doNotTrackEnabled||!
this.kh()&&((null==(t=this.player.config.video.live_event)?void
0:t.low_latency)&&(this.shouldSample=!1),!this.store.get(nl)))},n._h=function(){var
t=this;if(!document.getElementById("vp-mux-client")){var
n=document.createElement("script");n.setAttribute("id","vp-mux-
client"),n.setAttribute("src",this.player.config.request.urls.mux_url),n.onreadysta
techange=n.onload=function(){t.Eh(),t.store.get(nl)||
t.Th()},document.getElementsByTagName("head")[0].appendChild(n)}},n.Eh=function()
{var t=this;this.player.events.on(ec.Hl,(function(n){if(t.yh()&&n&&"undefined"!
=typeof mux){var i=t.player.backbone.video?t.player.backbone.video.currentFile:
{},e=t.element.querySelector(".vp-telecine").getElementsByTagName("video")
[0];mux.emit(e,"videochange",z({video_title:t.player.config.video.title,video_id:t.
player.config.video.id,video_duration:1e3*t.player.config.video.duration,video_cdn:
i.metadata?
i.metadata.cdn:"akamai",video_stream_type:t.store.get(nl)?"live":"vod",viewer_user_
id:t.player.config.request.session,view_session_id:t.player.config.request.session}
,t.Sh()))}})),this.player.events.on(au.STREAM_ONLINE,(function()
{t.Th()})),this.player.events.on(au.STREAM_OFFLINE,(function(){var
n=t.element.querySelector(".vp-telecine").getElementsByTagName("video")
[0];mux.emit(n,"ended")}))},n.Th=function(){if("undefined"!=typeof mux){var
t=this.player.backbone.video?this.player.backbone.video.currentFile:
{},n=this.element.querySelector(".vp-telecine").getElementsByTagName("video")
[0];null!==this.muxClient&&mux.destroyMonitor(n);var
i="dev"===this.player.config.request.build.js?"6eq01ih8u9u8fkk4hbindded5":"73cngs5o
v03sbnck36isdkndt";this.store.get(Qc)&&(i="dev"===this.player.config.request.build.
js?"kghblrf3bb9uk33lv58ompm3k":"md0ig7ssl8unl2kpl0h6p0drn");var
e=z({property_key:i,player_name:"Vimeo
Player",player_init_time:Date.now(),player_version:kc(this.player.config),video_tit
le:this.player.config.video.title,video_id:this.player.config.video.id,video_durati
on:1e3*this.player.config.video.duration,video_cdn:t.metadata?
t.metadata.cdn:"akamai",video_stream_type:this.xh(),viewer_user_id:this.player.conf
ig.request.session,view_session_id:this.player.config.request.session,sub_property_
id:this.player.config.video.owner.id},this.Sh());this.kh()&&(e.property_key="dev"==
=this.player.config.request.build.js?"3tb8rggvj5m71caj9jfpiidos":"lrc6o7kvhc6npvqq2
r5iks5u4",this.player.config.ott&&(e=Object.assign(e,this.player.config
.ott))),this.muxClient=mux.monitor(n,{debug:!
1,minimumRebufferDuration:500,data:e})}},n.Sh=function(){var
t=this.player.config.request.ab_tests||{},n=Object.keys(t).find((function(n){return
t[n].mux}));return n?{experiment_name:n}:null},n.xh=function(){var t;return
this.store.get(nl)?(null==(t=this.player.config.video.live_event)?void
0:t.low_latency)?"low_latency_live":this.player.config.video.p2p?"ecdn_live":"live"
:"vod"},t}();function sd(t){var n,i,e=t.config.ott||
{},o="https://collector.vhx.tv/events.gif",u=new bc(o),a=$f((function()
{l("timeupdate")}),1e4,{leading:!1}),s=$f((function(){l("seeking")}),500);function
c(){e=t.config.ott||{},i=!1,n=!1}function l(i,r){(r=Object.assign({},r,
{name:e.video_title,user_id:e.viewer_user_id,user_email:e.viewer_user_email,site_id
:e.site_id,user_agent:navigator.userAgent,url:top===self?
window.location.href:document.referrer,referrer:t.config.request.referrer,session_i
d:t.config.request.session,device:"html5",device_id:null,collection_id:e.collection
_id,product_id:e.product_id,platform:e.platform,platform_id:null,platform_version:e
.platform_version},
{type:"video",video_id:e.video_id,current_src:t.backbone.currentFile.src,current_su
btitle:"none",current_type:e.video_content_type,duration:e.video_duration,is_drm:t.
config.request.drm?1:0,is_fullscreen:n?1:0,is_trailer:e.is_trailer?
1:0,is_chromecast:Bc.isCastConnected?
1:0,is_live:t.config.video.live_event,seconds:10,timecode:t.currentTime})).name=i,v
oid 0===r.timestamp&&(r.timestamp=Math.round(.001*Date.now()));var a=wt(o,r);return
u.logRequestPromiseWithUrl(a,{},!0,"GET").catch((function(t){}))}function f()
{t.events.on(_i.ENDED,h),t.events.on(_i.ERROR,d),t.events.on(_i.PAUSE,v),t.events.o
n(_i.PLAY,p),t.events.on(_i.TIME_UPDATE,a),t.events.on(_i.SEEKING,s),t.events.on(_i
.SEEKED,m),t.events.on(_i.WAITING,b),t.events.on(ec.Zc,w),t.events.on(ec.tl,g),t.ev
ents.on(ec.Df,y),t.events.on(ec.Pf,_),t.events.on(ec.Nf,k),t.events.on(ec.Vf,E),t.e
vents.on(ec.Bf,T)}function h(){a.cancel(),l("ended")}function d()
{a.cancel(),l("error")}function v(){a.cancel(),l("pause")}function p(){if(!i)return
i=!0,void l("firstplay");l("play")}function m(){s.cancel(),l("seeked")}function b()
{l("waiting")}function w(){n=!0}function g(){n=!1}function y()
{l(id.AD_COMPLETE)}function _(){l(id.AD_CLICKED)}function k()
{l(id.AD_ERROR)}function E(){l(id.AD_STARTED)}function T()
{l(id.AD_SKIPPED)}t.events.on(ec.Hl,c),c(),t.config.ott?f():new r((function(n,i)
{t.ottVideoMetadata?n():t.events.on(ec.$l,(function(t){n()}))})).then((function()
{e=t.ottVideoMetadata,f()})).catch((function(t){}))}var cd=function(t){return
function(n){for(var i=arguments.length,e=new Array(i>1?i-1:0),r=1;r<i;r++)e[r-
1]=arguments[r];return e.forEach((function(i){for(var e in i){var
r=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,Object.assign(r,t)
)}})),n}}({enumerable:!0,configurable:!0,writeable:!1});function ld(t,n){var
i,e,r,o,u,a=rt();function s(t){var r=new
i.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=!
0,r.uiElements=[],e=t.getAdsManager(n.videoPlayer,r),a.fire("ads-manager-
loaded"),e.addEventListener(i.AdErrorEvent.Type.AD_ERROR,b),e.addEventListener(i.Ad
Event.Type.CONTENT_PAUSE_REQUESTED,c),e.addEventListener(i.AdEvent.Type.CONTENT_RES
UME_REQUESTED,l),e.addEventListener(i.AdEvent.Type.AD_BUFFERING,f),e.addEventListen
er(i.AdEvent.Type.STARTED,h),e.addEventListener(i.AdEvent.Type.COMPLETE,d),e.addEve
ntListener(i.AdEvent.Type.CLICK,v),e.addEventListener(i.AdEvent.Type.SKIPPED,p),e.a
ddEventListener(i.AdEvent.Type.ALL_ADS_COMPLETED,m)}function c(t){a.fire("content-
pause-requested",t)}function l(t){a.fire("content-resume-requested",t)}function
f(t){a.fire("ad-buffering",t)}function h(t){a.fire("ad-started",t)}function d(t)
{a.fire("ad-complete",t)}function v(t){e.pause(),a.fire("ad-click",t)}function p(t)
{a.fire("ad-skipped",t)}function m(t){a.fire("all-ads-completed",t)}function b(t)
{a.fire("ad-error",t.getError()),e&&e.destroy()}var w={start:function(t,n){return
u.initialize(),e.init(t,n,i.ViewMode.NORMAL),e.start()},stop:function(){return
e.stop()},pause:function(){return e.pause()},play:function(){return
e.resume()},skip:function(){return e.skip()},resize:function(t,n,r){return r?
e.resize(t,n,i.ViewMode.FULLSCREEN):e.resize(t,n,i.ViewMode.NORMAL)},destroy:functi
on(){a.off(),e.destroy(),r.destroy(),u.destroy()},get volume(){return
e.getVolume()},set volume(t){e.setVolume(t)},get adsManager(){return e},get
adsLoader(){return r},get remainingTime(){return
e.getRemainingTime()},setContentComplete:function()
{r.contentComplete()},on:function(t,n){return a.on(t,n),this},off:function(t,n)
{return a.off(t,n),this}};return function(t,n,i){if(document.getElementById("vp-
ima-sdk"))i();else{var e=document.createElement("script");e.id="vp-ima-
sdk",e.src="https://imasdk.googleapis.com/js/sdkloader/ima3.js",e.onreadystatechang
e=e.onload=function(){i&&i()},document.getElementsByTagName("body")
[0].appendChild(e)}}(0,0,(function(){i=google.ima;var e=Wi.iOS?
n.videoPlayer.videoElement:n.videoPlayer;u=new i.AdDisplayContainer(t,e),(r=new
i.AdsLoader(u)).addEventListener(i.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,s)
,r.addEventListener(i.AdErrorEvent.Type.AD_ERROR,b),o=new
i.AdsRequest,n.adUrl&&(o.adTagUrl=n.adUrl),o.linearAdSlotWidth=n.width.linear,o.lin
earAdSlotHeight=n.height.linear,o.nonLinearAdSlotWidth=n.width.nonlinear,o.nonLinea
rAdSlotHeight=n.height.nonlinear,r.requestAds(o)})),cd(this,w)}function fd(t,n){var
i,e,o,u,a,s,c,l,f,h,d,v,p=!1,m=rt(),b={};function w()
{e&&(R(),e=null),u&&(u.destroy(),u=null),o&&clearInterval(o),a=null,s=!1,c=!1,f=!
1,l=!1,h=!1,p=!1,v=new r((function(t,n){d=t})),t.events.once(Ko,(function(){h=!
0})),t.events.on(_i.ERROR,(function(t){!t||"NotAllowedError"!
==t.name&&"AbortError"!==t.name||(h=!1)})),(i=document.querySelector(".vp-ads-
wrapper"))||((i=document.createElement("div")).classList.add("vp-ads-
wrapper"),document.querySelector(".player").appendChild(i),i.innerHTML=Ff.render("a
dcountdown")),e=i.querySelector(".vp-ads-
tag"),b={adCode:t.config.request.ads.adcode||
null,adUnit:t.config.request.ads.adunit||null,adUrl:t.config.request.ads.adurl||
null,videoPlayer:t.backbone,width:{linear:488,nonlinear:488},height:
{linear:252,nonlinear:150}},(u=new ld(i,b)).on("ads-manager-loaded",(function()
{u.on("ad-buffering",g),u.on("ad-complete",_),u.on("ad-click",y),u.on("ad-
error",k),u.on("ad-started",E),u.on("ad-skipped",T),u.on("all-ads-
completed",S),u.on("content-pause-requested",x),u.on("content-resume-
requested",A),function(){if(!h){if(p)return;t.events.once(Ko,(function(){d(),h=!
0}))}v.then(O).catch((function(t){})),t.events.on(_i.ENDED,(function(){p||(s=!
0,u.setContentComplete())}))}
(),t.store.watch("ui.player.width",j),t.events.on(ec.Zc,j,!0),t.events.on(ec.tl,j,!
1),h&&d()}))}function g(){c&&t.events.fire(ec.Lf)}function y()
{t.events.fire(ec.Pf)}function _()
{Wi.iPhone&&t.backbone.addVideoEventListeners(),o&&clearInterval(o),c=!
1,t.events.fire(ec.Df)}function k(n){var
i={errorType:n.o,errorReason:n.l};t.events.fire(ec.Nf,i),"adPlayError"===i.errorTyp
e&&t.events.fire(ec.vc)}function E(n)
{Wi.iPhone&&t.backbone.removeVideoEventListeners();var
e=n.getAd();e.isLinear()&&(o=setInterval((function(){var t="AD "+function(t)
{if(t<0)return"00:00";var n=Math.floor(t/60),i=Math.round(t
%60);return(n=n<10?"0"+n:n)+":"+(i<10?"0"+i:i)}
(u.remainingTime);i.querySelector(".vp-ads-
countdown").innerHTML=t}),1e3),setTimeout(C,1e3)),c=!0;var
r={type:e.isLinear()?"linear":"nonlinear"};a&&(r.time=Date.now()-
a,a=null),t.events.fire(ec.Vf,r)}function T(n){t.events.fire(ec.Bf,n)}function S(n)
{f=!0,Wi.iPhone||u.destroy(),t.events.fire(ec.Hf,n)}function x()
{t.events.fire(ec.dc),a=Date.now(),s||(l=!0,t.backbone.paused?
t.events.once(_i.PLAYING,(function()
{t.backbone.pause()})):t.backbone.pause())}function A()
{R(),t.events.fire(ec.vc),Wi.iPhone&&f&&u.destroy(),s||M()}function M(){l=!
1,t.backbone.play()}function C(){(e=i.querySelector(".vp-ads-
tag")).classList.remove("hidden"),e.removeAttribute("hidden")}function R()
{e.classList.add("hidden"),e.setAttribute("hidden","")}function I()
{return{width:n.getBoundingClientRect().width,height:n.getBoundingClientRect().heig
ht}}function O(){var n=I(),i=n.width,e=n.height;try{u.start(i,e)}catch(n)
{s&&t.events.fire(ec.Df),l&&M()}}function j(t){var
n=I(),i=n.width,e=n.height;u.resize(i,e,t)}var L={pause:function(){return
t.events.fire(ec.Ff),u.pause()},play:function(){return
t.events.fire(ec.Uf),u.play()},get volume(){return u.volume},set volume(t)
{u.volume=t},toggleCastingState:function(t){(p=!!t)&&u.destroy()},events:m};return
w(),t.events.on(ec.Hl,w),L}function hd(t,n,i,e){if(!Pt(t))return t;for(var r=-
1,o=(n=oa(n,t)).length,u=o-1,a=t;null!=a&&++r<o;){var s=ua(n[r]),c=i;if(r!=u){var
l=a[s];void 0===(c=e?e(l,s,a):void 0)&&(c=Pt(l)?l:li(n[r+1])?[]:
{})}ai(a,s,c),a=a[s]}return t}function dd(t,n){return null!=t&&n in
Object(t)}function vd(t,n){return function(t,n,i){for(var e=-1,r=n.length,o={};+
+e<r;){var u=n[e],a=aa(t,u);i(0,u)&&hd(o,oa(u,t),a)}return o}(t,n,(function(n,i)
{return function(t,n){return null!=t&&function(t,n,i){for(var e=-
1,r=(n=oa(n,t)).length,o=!1;++e<r;){var u=ua(n[e]);if(!(o=null!
=t&&i(t,u)))break;t=t[u]}return o||++e!=r?o:!!(r=null==t?
0:t.length)&&Un(r)&&li(u,r)&&(Fn(t)||Nn(t))}(t,n,dd)}(t,i)}))}var pd=Mt?
Mt.isConcatSpreadable:void 0;function md(t){return Fn(t)||Nn(t)||!!
(pd&&t&&t[pd])}function bd(t){return null!=t&&t.length?function t(n,i,e,r,o){var
u=-1,a=n.length;for(e||(e=md),o||(o=[]);++u<a;){var s=n[u];i>0&&e(s)?i>1?t(s,i-
1,e,r,o):Du(o,s):r||(o[o.length]=s)}return o}(t,1):[]}var wd=function(t){return
Zt(Et(t,void 0,bd),t+"")}((function(t,n){return null==t?
{}:vd(t,n)})),gd=["clip_id","profile_id","player_size","dropped_frames","total_fram
es","bandwidth","markers","streams","files","video_dims","min_bandwidth","max_badwi
dth","buffer_occupancy","live_latency","scanner","vr_headset"],yd=function()
{function t(t)
{this.Yf=t,this.Ah={},this.Mh=null,this.Ch(),this.Rh(),this.Ih(),this.Oh()}var
n=t.prototype;return n.reset=function()
{this.Ch(),this.Oh(),this.Yf.events.fire(ec.Ml)},n.jh=function(t,n){return
this.Ah[t]=[n],this.Yf.events.fire(ec.Ml),this.Ah[t]},n.Lh=function(t,n){return
this.Ah[t].push(n),this.Ah[t].length>300&&this.Ah[t].splice(0,25),this.Yf.events.fi
re(ec.Ml),this.Ah[t]},n.getCurrent=function(t){return this.Ah[t].slice(-1)
[0]},n.getSeries=function(t){return this.Ah[t]},n.Dh=function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=t.name,i=Ua({},t.data),e=this.Ph(n,i);this.Nh(n,n,e)},n.Ph=function(t,n)
{if(t===id.CHUNK_DOWNLOADED){var
i={};i.host=n.host,i.duration=Is(n.duration,2),i.size=n.size,i.index=n.index,i.prof
ile_id=n.profile_id,i.quality=n.quality,i.buffered=Is(n.buffered,2),i.ttfb=Is(n.ttf
b,2),i.extraContext=n.extraContext,i.headers=wd(n.headers,
["x_vim_cachebc","x_cache","akamai_edge_ip","x_akamai_request_id","ak_reference_id"
,"content_type"]);var
e=0,r=0,o=0,u=i.headers.x_vim_cachebc,a=i.headers.x_cache;return u?
u.split(",").forEach((function(t){var n=Q(t.split(":"),2),i=n[0],e=n[1];"E"!
==i||"h"!==e?"h"!==e||(r=1):o=1})):a&&(r="HIT"===a.substr(0,3),o="HIT"===a.substr(-
3)),o?e=2:r&&(e=1),i.cache_hit=e,i}if(t===id.VIDEO_PLAYBACK_ERROR||
t===id.VIDEO_LOAD_FAILURE||t===id.VIDEO_START_FAILURE||t===id.VIDEO_READY)return
n;if(void 0!==n.autoplay&&void 0!==n.looping){var s={};return
s.cdn=n.cdn,s.quality=n.quality,s}return n},n.Nh=function(t,n){var
i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
{},e=this.Yf.backbone.currentTime,r=Date.now(),o=Is(pt(e,this.Yf.backbone.buffered)
,2);this.Lh("markers",{type:t,title:n,vt:e,t:r,bt:o,data:i})},n.Rh=function(){var
t=this;this.Yf.events.on(ec.Hl,(function()
{t.reset()})),this.Yf.events.on(Ti.BANDWIDTH,this.Fh.bind(this)),this.Yf.events.on(
Ti.BUFFER_OCCUPANCY,this.Uh.bind(this)),this.Yf.events.on(Ti.CURRENT_FILE_CHANGE,th
is.Vh.bind(this)),this.Yf.events.on(Ti.DROPPED_FRAMES,this.Bh.bind(this)),this.Yf.e
vents.on(Ti.SCANNER_CHANGE,this.Hh.bind(this)),this.Yf.events.on(Ti.STREAM_CHANGE,t
his.qh.bind(this)),this.Yf.events.on(Ti.STREAM_CHANGE_START,this.Wh.bind(this)),thi
s.Yf.events.on(_i.TIME_UPDATE,this.Nr.bind(this)),this.Yf.events.on(xi.WEBVR_HARDWA
RE_AVAILABLE,this.zh.bind(this)),this.Yf.events.on(ec.qf,this.Dh.bind(this)),this.Y
f.events.on(au.BUFFER_GAP_JUMP_PREVENT,this.Gh.bind(this)),this.Yf.events.on(au.BUF
FER_GAP_JUMP,this.Kh.bind(this)),this.Yf.events.on(au.STALL_JUMP,this.Yh.bind(this)
)},n.zh=function(t)
{t.displayName&&this.jh("vr_headset",t.displayName)},n.Jh=function(){var
t=this;this.Mh=setInterval((function(){var
n=t.Yf.backbone.buffered,i=t.Yf.backbone.videoElement;if(n&&n.length&&i&&i.currentT
ime){var e=t.Yf.backbone.latency;t.jh("live_latency",e)}else
t.jh("live_latency",0)}),500)},n.$h=function()
{clearInterval(this.Mh)},n.Ih=function(){var
t=this;this.Yf.store.watch("ui.player.boundingRect",(function(n){var
i=t.getCurrent("video_dims"),e=t.Xh(n);t.Lh("video_dims",e);var r=i?"Resized from
".concat(i," to ").concat(e):"Resized to
".concat(e);t.Nh(sc.MARKER_RESIZE,r)}))},n.Xh=function(t){var
n="".concat(Math.round(t.width),"px"),i="".concat(Math.round(t.height),"px"),e=wind
ow.devicePixelRatio&&window.devicePixelRatio>1?"@".concat(Is(window.devicePixelRati
o,3),"x"):"";return n&&i?"".concat(parseInt(n,10),"×").concat(parseInt(i,10),"
").concat(e):""},n.Ch=function(){this.Ah=gd.reduce((function(t,n){return
t[n]=[],t}),{})},n.Oh=function(){var
t=this.Yf.backbone.currentFile;this.Lh("files",t),this.Lh("scanner",this.Yf.backbon
e.currentScannerName),"HLSLiveScanner"===this.Yf.backbone.currentScannerName&&this.
Jh(),this.jh("min_bandwidth",0),this.jh("max_badwidth",0);var
n=this.Yf.store.get("ui.player.boundingRect"),i=this.Xh(n);this.Lh("video_dims",i)}
,n.Fh=function(t){var n=Math.round(100*t.speed)/100;this.Lh("bandwidth",
{videoTime:this.Yf.backbone.currentTime,time:Date.now(),value:n});var
i=this.getCurrent("max_badwidth"),e=this.getCurrent("min_bandwidth");(!e||
n<e)&&this.jh("min_bandwidth",n),(!i||
n>i)&&this.jh("max_badwidth",n)},n.Bh=function(t){var
n=t.dropped,i=t.total;this.jh("total_frames",i),this.jh("dropped_frames",n)},n.Ju=f
unction(){this.Nh(sc.MARKER_SEEKED,"Seeked to
".concat(this.Yf.backbone.currentTime))},n.Zh=function()
{this.Nh(sc.MARKER_ENDED,"Ended")},n.Wh=function(t){var
n=t.previousStreamIndex,i=t.index,e=t.streams,r=e[i],o=e[n],u=o?
o.bitrate:null;if(u!==r.bitrate&&null!==u){var
a=this.Qh(o),s=this.Qh(r);r.bitrate<u?this.Nh(sc.MARKER_DOWNSWITCH,"Starting
Downswitch from ".concat(a," to
").concat(s)):r.bitrate>u&&this.Nh(sc.MARKER_UPSWITCH,"Starting Upswitch from
".concat(a," to ").concat(s))}},n.qh=function(t,n,i){var
e,r=i[n],o=this.Qh(r),u=ed(r.codecs),a=null==(e=this.Yf.backbone)||
null==e.getCurrentStream?void 0:e.getCurrentStream("audio"),s=rd(null==a?void
0:a.codecs),c="".concat(u).concat(s?" /
".concat(s):"");this.Nh(sc.MARKER_SWITCH_COMPLETE,"Completed switch to
".concat(o)),this.Lh("streams",{profile:void 0!==t?t.profile:null,quality:void 0!
==t?t.quality:"".concat(r.height,"p"),bitrate:r.bitrate,audioBitrate:null==a?void
0:a.bitrate,framerate:r.framerate,height:r.height,width:r.width,id:r.id,codec:c})},
n.Vh=function(){var
t=this.getCurrent("files"),n=this.Yf.backbone.currentFile;this.Lh("files",n);var
i=n.metadata.cdn,e=t?t.metadata.cdn:null,r=t?oc[t.mime]:null,o=oc[n.mime],u="CDN to
".concat(i,"/").concat(o);e&&(u="CDN from ".concat(e,"/").concat(r," to
").concat(i,"/").concat(o)),this.Nh(sc.MARKER_FILE_CHANGE,u)},n.Uh=function(t){var
n=Math.round(1e3*t)/1e3;this.Lh("buffer_occupancy",
{videoTime:this.Yf.backbone.currentTime,time:Date.now(),value:n})},n.Hh=function()
{var
t=this.getCurrent("scanner"),n=this.Yf.backbone.currentScannerName;this.jh("scanner
",n),t&&this.Nh(sc.MARKER_SCANNER_CHANGE,"Scanner change to
".concat(n)),"HLSLiveScanner"===n?this.Jh():this.$h()},n.Kh=function(t)
{this.Nh(sc.MARKER_BUFFER_GAP_JUMP,t.msg)},n.Gh=function(t)
{this.Nh(sc.MARKER_BUFFER_GAP_JUMP_PREVENT,t.msg)},n.Yh=function(t)
{this.Nh(sc.MARKER_STALL_JUMP,t.msg)},n.td=function()
{this.Nh(sc.MARKER_STALLED,"Stalled")},n.Qh=function(t)
{return"".concat(t.width,"×").concat(t.height,"@").concat(Math.round(t.framerate),"
").concat(Math.round(t.bitrate/1e3).toLocaleString()," Kbps")},n.Nr=function()
{this.Yf.events.fire(ec.Ml)},t}();function _d(t){var
n=t.element,i=t.delegate,e=void 0===i?{}:i,o=t.cssLoadedPromise,u=void 0===o?
r.resolve(null):o,a=t.name,s=void 0===a?null:a;Oa(xc);var c=ds(Df,vs((function(t)
{return function(){var n=t.apply(void 0,arguments),i=gs();function e(t,n){return
u(t,(function(t){var e=i.get({selector:t,listener:n});if(!e){var
r=o(t,n);e=i.insert({selector:t,listener:n,unsubscribe:r})}return
e.unsubscribe}))}function r(t,n){return u(t,(function(t){var
e=i.get({selector:t,listener:n});return e&&e.unsubscribe()}))}function o(t,i){var
e=t(n.getState());return n.subscribe((function(){var r=t(n.getState());if(e!==r)
{var o=e;i(e=r,o,n.getState())}}))}function u(t,i)
{return(t=[].concat(t)).map((function(t){return i(n.createGetter(t))}))}return
z(z({},n),{},{watch:e,unwatch:r})}}),function(){var t=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:{};return function(n){return function(){var
i=n.apply(void 0,arguments);function e(){return t}var r=na((function(t)
{if(Nt(t))return t;var n=sa(e(),t);return Nt(n)?n:function(n){return
sa(n,t)}}));function o(t,n){var e=(t=r(t))(i.getState());return void 0!
==n&&(e=Cl(e,n)),e}return z(z({},i),{},{getSelectors:e,createGetter:r,get:o})}}}
(Pf),ms.apply(void 0,[]))),l=new D,f=rt(),h=new
Ac({events:f}),d=Os();n.classList.add("player-".concat(d)),n.classList.add("loading
"),n.id||(n.id="player".concat(d)),n.innerHTML=Ff.render("outer",{strings:
{back:"Back",close:"Close overlay"}});var v=n.querySelector(".vp-
telecine");if(Wi.iOS){var
p=document.createElement("video");v.appendChild(p);try{p.setAttribute("muted",""),p
.setAttribute("playsinline",""),p.load()}catch(t){xc.captureException(t)}}var
m,b,w,g,y,_=null,k=null,E=null,T=null,S=null,x=null,A=null,M={},C=new
r((function(t,n){y=t})).then((function(){return f.fire(ec.ge),null})),R={get
config(){return h.config},set config(t){h.config=t},get delegate(){return e},set
delegate(t){e=t},ready:function(t){if(!t)return C;C.then((function(){return
t()})).catch((function(t){xc.captureException(t)}))},get sessionId(){return
h.config.request.session}};function I(t){var n,i=t.old,e=t.loaded;if(function(t,n)
{var i;t&&s&&"".concat(s," "),null==(i=n.request)||i.ab_tests}(!i,e),
(null==(n=e.request)?void 0:n.urls.js)&&function(t)
{ct=t.substring(0,t.lastIndexOf("/")+1)}(e.request.urls.js),window.parent!==window)
{var r,o="Private Video on Vimeo";1!==e.view&&3!==e.view&&12!==e.view||
(o="".concat(e.video.title," from ").concat(e.video.owner.name," on
Vimeo")),document.title=o,(null==(r=history)?void
0:r.replaceState)&&e.video&&i&&history.replaceState({id:e.video.id},"","/video/".co
ncat(e.video.id).concat(window.location.search))}if(1!==e.view&&3!==e.view&&12!
==e.view)throw new Error("Config not authorized: ".concat(e.view));(null==i?void
0:i.embed)&&i.embed.color!
==e.embed.color&&f.fire(Gs.Ws,e.embed.color),T&&T.reset();var u=!i||!i.video||
i.video.id!==e.video.id||i.video.version.current!==e.video.version.current;return
m=null,w=_,f.fire(Gs.Vs),c.dispatch(Wc(e)),f.fire(ec.Hl,u,e),t}function O(t)
{if("opacity"===t.propertyName){var n=document.querySelector(".vp-
placeholder");n&&(kl(n).off("transitionend",O),n.parentNode.removeChild(n))}}functi
on j(){!function(){var t=document.querySelector(".vp-
placeholder");t&&(kl(t).on("transitionend",O),t.classList.add("vp-placeholder-
fadeout"))}(),n.classList.remove("loading"),y()}function L(t){return
u.then((function(){if(N(t),k&&k.resetThumbnail(),"function"!=typeof
M.authorizationHandler)throw new Error("Config was not authorized.");return
M.authorizationHandler(j)})).then((function(t){return
h.config=t,m=null,c.dispatch(Wc(h.config)),f.fire(Gs.Vs),f.fire(ec.Hl,!
0,h.config),t}))}function P(t){(function(){var
t=document.location.hash,n=function(t){var n,i=t.match(/\ba?t=([0-9hms:]+)/);null!
==i&&(t=i[1]);var e=!1,r=0,o=0,u=0;if((null==(n=i=t.match(/^([0-9]+)$/))?void
0:n.length)&&(e=!0,u=i[1]),!1===e&&null!==(i=t.match(/^(?:([0-9]+)h)?(?:([0-9]+)m)?
(?:([0-9]+)s)?/))&&""!==i[0]){e=!0;var a=Q(i,4),s=a[1];r=void 0===s?0:s;var
c=a[2];o=void 0===c?0:c;var l=a[3];u=void 0===l?0:l}if(!1===e&&null!
==(i=t.match(/^([0-9:]+)/))){e=!0;var f=Q(t.split(":").reverse(),3);u=f[0];var
h=f[1];o=void 0===h?0:h;var d=f[2];r=void 0===d?0:d}return e?
60*parseInt(r,10)*60+60*parseInt(o,10)+parseInt(u,10):null}(t);null!
==n&&(h.config.embed.time=xs(n,0,h.config.video.duration),-1!
==t.indexOf("at=")&&history&&history.replaceState&&history.replaceState("","",windo
w.location.pathname+window.location.search))})(),f.on(ec.Nl,(function(t)
{h.reload().then((function(n){if(!h.config.user.logged_in)return
f.fire(ec.Vl),n;switch(f.fire(ec.Fl,t),t)
{case"like":h.config.user.liked&&f.fire(ec.jl);break;case"watch-
later":h.config.user.watch_later&&f.fire(ec.Dl);break;case"private":f.fire(ec.Wl)}r
eturn n})).catch((function(t){xc.captureException(t)}))})),f.on(ec.Ul,(function()
{h.reload().catch((function(t){xc.captureException(t)}))})),function(t){var
i,e;k=new rl(t,c,n.querySelector(".vp-preview")),f.on([Ti.BUFFER_ENDED,_i.PLAYING],
(function(){k.hide()})),_=new $a(v,h.config),w=_,A=new yd(t),new
hl(t,c,n.querySelector(".vp-video-wrapper")),new Nf(t,c,n.querySelector(".vp-
captions")),new Uf(n,f),F(t),t.doNotTrackEnabled||
(h.config.request.urls.test_imp&&function(t,n){if(t.config.request.ab_tests){var
i=new bc(n);for(var e in t.config.request.ab_tests){var
r=t.config.request.ab_tests[e];if(r.track){var
o={session_id:t.config.request.session,test_id:e,test_group:String(r.group)};i.log(
o,!0,!1).catch((function(t){}))}}}}(t,"".concat(h.config.request.urls.test_imp,"?
beacon=1")),new ud(t,n,c,h.config.request.urls.fresnel),new Ml(t,c),new
ad(t,n,c),new sd(t)),T=new cl(t),(t.config.request.flags.ott||
(null==(i=t.config.request.ab_tests)||null==(e=i.chromecast)?void
0:e.group))&&function(t){if(!t.config.video.spatial&&"stock"!
==t.config.video.privacy){var i=new Uc({textAlert:new
Zh(n),player:t});Bc.init({chromecastPlayer:i}),Bc.on([Fc.error,Fc.mediaLoadedFailed
],(function(t){xc.captureException(t)}))}}(t),N(t)}(t)}function N(t){E||(E=new
Xh(t),Vf(R,E),Sh(xc))}function F(t){var
i=h.config.request.ads;i&&(i.adcode&&i.adunit||i.adurl)&&(S=new
fd(t,n.querySelector(".vp-video-wrapper")),f.on(ec.dc,(function()
{w=S,f.fire(ec.wf)})),f.on(ec.vc,(function()
{w=_,f.fire(ec.wf)})),Bc&&(Bc.on(Fc.connected,(function(){S.toggleCastingState(!
0)})),Bc.on(Fc.disconnected,(function(){S.toggleCastingState(!1)}))))}function
U(t,n){var i=t;return isNaN(t)&&"string"!=typeof t||(i=Cs(Ms(t),t,n)),i}var V={get
store(){return c},get config(){return h.config},get element(){return n},get
events(){return f},get uuid(){return d},get expose(){return R},get backbone()
{return _},get adHandler(){return S},get displayContext(){return w},get preview()
{return k},get doNotTrackEnabled(){return h.config.embed.dnt||
h.config.request.flags.dnt},get playLoggingEnabled(){return
h.config.embed.log_plays&&h.config.request.flags.plays},get currentTime(){return
Bc.isCastConnected?Bc.chromecastPlayer.currentTime:_.currentTime},get
debugCollector(){return A},get ottVideoMetadata(){return x},set ottVideoMetadata(t)
{x=t},init:function(t,i){return b||(new
wh(V,c,n),M=i,b=h.load(t).then(I).catch((function(t){return
L(V)})).then((function(){return"function"==typeof M.initializationHandler?
r.resolve(i.initializationHandler()):null})).then((function(){return
P(V),"function"==typeof M.postInitializationHandler?
r.resolve(i.postInitializationHandler()):null})).then((function(){return
r.all([k.thumbnailPromise,u])})).then(j).then((function(){return
xc.setUp(V),null})).catch((function(t)
{xc.captureException(t)})))},loadVideo:function(t,i){if(g===t&&m)return
m;if(k&&k.resetThumbnail(),null==i?void 0:i.video_version){var
e=h.config.video.version.available;if(!e||!Array.isArray(e))return r.reject("No
available video versions");if(-1===(e=e.map((function(t){return
t.id}))).indexOf(i.video_version))return r.reject("Invalid version id
specified")}f.fire(ec._loadVideo),g=t,n.classList.add("loading");var
o=U(t,i),u=l.get(o);return t=u?u.nd.loaded:t,m=h.load(t,i).then((function(t){if(u)
{var n=_.element;
(_=u._backbone).element.style.visibility="visible",n.parentNode.replaceChild(_.elem
ent,n),f.fire(ec.af)}return t=I(t),S||F(V),t})).catch((function(t){return
L(V)})).then((function(t){var n=k.loadThumbnail();return
r.resolve(n)})).then(j)},preloadVideo:function(t,n,i){var
e=U(n,i),o=l.get(e);return o?r.resolve(o):new
Ac({events:f}).load(n,i).then((function(n){var i=_.element.cloneNode(!
1);i.style.visibility="hidden",_.element.parentNode.insertBefore(i,_.element);var
r=new $a(i,n.loaded);r.loadVideo(n.loaded),r.preload=t;var
o={_backbone:r,nd:n};return l.set(e,o),o}))},performDelegateAction:function(t){var
n,i,r,o,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function()
{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];null!
=(n=e)&&n[t.will]&&!1===(r=(o=e)[t.will].apply(o,
[h.config.video.id].concat(tt(a))))||(u.apply(void 0,
[h.config.video.id].concat(tt(a),[r])),(null==(i=e)?void 0:i[t.did])&&e[t.did]
())},ready:function(){return C},verifyConfig:function(){return
h.verify()},updatePhpTokens:function(){return new r((function(t,n){var
i=h.config.user,e=i.vimeo_api_client_token,r=i.vimeo_api_interaction_tokens,o=i.vim
eo_live_client_token,u=i.vimeo_bucketed_live_client_token,a=!
1;if(e)try{a=zf(JSON.parse(atob(e.split(".")[1])).exp)>=0}catch(t){return void
n(new Error("Failed to parse PHP client token expiration"))}if(r)try{var
s=JSON.parse(atob(r.likes.split(".")
[1])).exp,c=JSON.parse(atob(r.watch_later.split(".")
[1])).exp,l=JSON.parse(atob(r.following.split(".")[1])).exp;a=zf(s)>=0||zf(c)>=0||
zf(l)>=0}catch(t){return void n(new Error("Failed to parse PHP interaction tokens
expiration"))}if(o)try{a=zf(JSON.parse(atob(o.split(".")[1])).exp)>=0}catch(t)
{return void n(new Error("Failed to parse PHP Live token
expiration"))}if(u)try{a=zf(JSON.parse(atob(u.split(".")[1])).exp)>=0}catch(t)
{return void n(new Error("Failed to parse PHP Live token expiration"))}if(a){var
f=h.config.request,d=f.signature,v=f.session,p=f.timestamp,m=f.expires;Xe("https://
".concat(h.config.player_url,"/video/").concat(h.config.video.id,"/token/refresh?
signature=").concat(d,"&session=").concat(v,"&time=").concat(p,"&expires=").concat(
m),{withCredentials:!0}).json().then((function(n){return
h.config.user.vimeo_api_client_token=n?
n.vimeo_api_client_token:null,h.config.user.vimeo_api_interaction_tokens=n?
n.vimeo_api_interaction_tokens:null,h.config.user.vimeo_live_client_token=n?
n.vimeo_live_client_token:null,h.config.user.vimeo_bucketed_live_client_token=n?
n.vimeo_bucketed_live_client_token:null,t()})).catch((function(t)
{xc.captureBreadcrumb("Failed to refresh JWT token",{},"auth","error"),n(t)}))}else
t()}))}};return V}function kd(t,n,i,e){var r=!1;e="function"==typeof n?
i:e,i="function"==typeof n?n:i;var o=function(t){var n=!0;if(t.changedTouches){var
o=t.changedTouches[0].pageX-window.pageXOffset,u=t.changedTouches[0].pageY-
window.pageYOffset,a=document.elementFromPoint(o,u);null!
==a&&this.contains(a)&&(n=i.call(this,t))}return"function"==typeof
e&&e.call(this,t),r=!0,n},u=function(t){if(!r)return i.call(this,t);r=!1};
(n="function"==typeof n?null:n)?
kl(t).on("click",n,u).on("touchend",n,o):kl(t).on("click",u).on("touchend",o)}funct
ion Ed(t,n){var i,e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
[],o=[],u=!1;function a(){i=c(),r.forEach(v),kd(i,".js-menuClose",E),kd(i,".js-
menuInfo",x),kl(window).on("resize",A)}function s()
{kl(window).off("resize",A)}function c(){var t=document.createElement("div");return
t.innerHTML=Ff.render("menu",{strings:{close:"Close menu"}}),t.children[0]}function
l(){return i.classList.contains("vp-menu-center")}function f(){return
i.classList.contains("vp-menu-fullwidth")}function h(){return
i.classList.contains("vp-menu-carousel")}function d(){var t=o.length>1&&!
h();o.forEach((function(n){n.setCollapsible(t),n.resetCarousel(h())}))}function
v(t)
{o.push(t),i.insertBefore(t.element,i.lastChild),d(),t.on("open",m),t.on(["open","c
lose"],b),t.on(["openEnd","closeEnd"],w),t.on("select",_)}function p(t){return
o.find((function(n){return n.id===t}))}function m(t){o.filter((function(t){return
t.isOpen()})).forEach((function(t){return t.close()}))}function b(t){u=!
0,M()}function w(t){u=!1}function g(){return n&&"true"===n.getAttribute("aria-
expanded")}function y(r){g()||(r=r||
n.contains(document.activeElement),n.setAttribute("aria-
expanded","true"),i.removeAttribute("hidden"),t.events.fire(ec.Bc,!
0,e),A(),d(),i.classList.remove("vp-menu-
hidden"),window.requestAnimationFrame((function(){if(i.classList.remove("vp-menu-
invisible"),r){var t=R();t.length>0&&t[0].focus()}})))}function _(){h()||
E()}function k(){R().some((function(t){return
t===document.activeElement}))&&n.focus()}function E(){g()&&setTimeout((function()
{k(),n.setAttribute("aria-expanded","false"),t.events.fire(ec.Bc,!
1,e),i.classList.add("vp-menu-invisible")}),100)}function T(t){i.classList.add("vp-
menu-hidden"),i.setAttribute("hidden","")}function S(t){return g()?(E(),!1):(y(t),!
0)}function x(n){t.events.fire(ec.wl),E()}function A(){if(!f()){var
n=Es(t.element),e=Es(i),r=window.getComputedStyle(i),o=parseFloat(r.fontSize),u=e.b
ottom-i.scrollHeight,a=Math.max(n.top,0)-u;if(a>0){var s=i.scrollHeight-a-o;return
i.style.height="".concat(s/o,"em"),void i.classList.add("vp-menu-
scroll")}i.style.height="auto",i.classList.remove("vp-menu-scroll")}}function M()
{A(),u&&requestAnimationFrame(M)}function C(){kl(i).on("transitionend",(function(t)
{this===i&&"opacity"===t.propertyName&&i.classList.contains("vp-menu-
invisible")&&T()})),kl(document).on("click",(function(t){null!==n&&(!g()||
n.contains(t.target)||i.contains(t.target)||
E())})),window.addEventListener("blur",E,!1)}fu
nction R(){return o.reduce((function(t,n){return t.concat(n.getTabindexItems())}),
[])}return
a(),C(),e={element:i,button:n,isCentered:l,isVisible:g,isFullwidth:f,show:y,hide:E,
toggle:S,retargetFocusFromChild:k,setPanelModes:d,addPanel:v,getPanel:p,getTabindex
Items:R,destroy:s}}var Td=function(t){return function(n){return null==t?void
0:t[n]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),Sd=/
[&<>"']/g,xd=RegExp(Sd.source);function Ad(t){return(t=Co(t))&&xd.test(t)?
t.replace(Sd,Td):t}function Md(t){rt(this);var
n,i,e,r=this,o={x:0,y:0},u={x:0,y:0},a={x:0,y:0},s=0;function c(n)
{t.style["".concat(Wi.transitionProperty,"Duration")]=n}function l(n){var
i=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:t.children.length-1,r=-Math.round(n/h());return
Math.min(Math.max(r,i),e)}function f(){return!1}function h(){var
n=t.children[0],i=getComputedStyle(n);return
n.offsetWidth+parseInt(i.marginLeft,10)+parseInt(i.marginRight,10)}function d(t)
{var
n=[t.clientX,t.clientY],i=n[0],e=n[1];if(t.targetTouches&&t.targetTouches.length>0)
{var
r=[t.touches[0].pageX,t.touches[0].pageY];i=r[0],e=r[1]}return{x:i,y:e}}function
v(t){t.stopImmediatePropagation();var i=d(t),r=i.x,a=i.y;u.x=r-o.x,u.y=a-o.y,n=!1,
(e=function(t){return function(n){var i=n?"on":"off",e={pointerdown:
["pointermove","pointerup"],MSPointerDown:["pointermove","pointerup"],touchstart:
["touchmove","touchend"],mousedown:["mousemove","mouseup"]};kl(window)[i](e[t.type]
[0],p),kl(window)[i](e[t.type][1],m)}}(t))(!0),c("0ms")}function p(t){var
s=d(t),c=s.x,f=s.y;if(a.x=o.x,a.y=o.y,o.x=c-u.x,o.y=f-u.y,Math.abs(o.x-
a.x)>=.15*Math.abs(o.y-a.y))return t.preventDefault(),n=!
0,r.fire("touchMove"),i=Date.now(),void y(o.x);e(!1),b(l(o.x))}function m(u)
{if(u.stopImmediatePropagation(),e(!1),n){u.preventDefault();var c=o.x-
a.x,f=Date.now()-i+1;return o.x+=50*c/f,b(l(o.x)),void r.fire("touchEnded")}!
function(n){n.preventDefault();var i=Ds(n.target,t.children);if(-1!==i){if(i!
==s)return void b(i);r.fire("tap",i)}}(u)}function b(t)
{g(t),r.fire("slide",t)}function w(){g(s,"0ms")}function g(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=h();-1!
==t&&i>0&&(c(n),o.x=-t*i,y(o.x))}function y(n){var i=l(n,-1,t.children.length);i!
==s&&(r.fire("focus",i),s=i),t.style[Wi.transformProperty]="translateX(".concat(n,"
px)")}return{setUp:function(n){kl(t).on(Wi.pointerEvents?"pointerdown":
["touchstart","mousedown"],v),kl(t).on("click","a",f),kl(window).on("resize",w),w()
,function(t){void 0!==t&&g(t,"0ms")}(n)},show:function(t)
{g(Ls(t))},resize:w,destroy:function(){kl(t).off(Wi.pointerEvents?"pointerdown":
["touchstart","mousedown"],v),kl(t).off("click","a",f),kl(window).off("resize",w),t
.style.removeProperty(Wi.transformProperty)},on:this.on}}function Cd(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{};n.items.forEach((function(t){void 0!==t.label&&(t.label=Ad(t.label))}));var
i,e,r,o,u,a,s=rt(),c=n.id,l=n.items,f=!1;function h()
{d(),i=v(),e=i.querySelector(".js-panelItems"),(r=new
Md(e)).on("slide",A),r.on("tap",M),kd(i,".js-
panelTitleButton",x),kd(i,"li",C),kl(i).on("keydown",R),kl(i).on("keypress",R),kl(i
).on("transitionend",(function(t){t.target===i&&(_()?E():S())}))}function d()
{n=Object.assign(n,{get active(){return L()?L().label:""}})}function v(){var
t=document.createElement("div");return
t.innerHTML=Ff.render("menu_list_panel",n),t.children[0]}function p(t){var
n=U(i.querySelectorAll(".vp-panel-item"));return n[t]||n}function m(t){t!
==b()&&(i.classList.toggle("vp-panel-open",!t),i.classList.toggle("vp-panel-
collapsible",t),t?e.setAttribute("hidden",""):
(e.removeAttribute("hidden"),i.style.removeProperty("height")))}function b(){return
i.classList.contains("vp-panel-collapsible")}function w(t)
{if(f=t,u=i.querySelector(".vp-indicator"),r.destroy(),u.classList.remove("vp-
indicator-visible"),f){var n=l.findIndex((function(t){return
t.active}));r.setUp(n),g(),u.classList.add("vp-indicator-visible")}}function g()
{r.on("touchMove",(function(){u.classList.add("vp-indicator-
inactive")})),r.on("touchEnded",(function(){u.classList.remove("vp-indicator-
inactive")}))}function y(){i.classList.add("vp-panel-pinTitle")}function _(){return
i.classList.contains("vp-panel-open")}function k(){if(b())
{s.fire("open",o),t.events.fire(ec.Gc,!
0,o),e.removeAttribute("hidden"),i.classList.add("vp-panel-open");var
n=window.getComputedStyle(i),r=parseFloat(n.fontSize);i.style.height="".concat(i.sc
rollHeight/r,"em");var
u="".concat(Wi.transitionProperty,"Delay");p().forEach((function(t,n){var
i=40*n+100;t.style[u]="".concat(i,"ms"),t.classList.add("vp-panel-item-
in")}))}}function E(t){s.fire("openEnd",o)}function T()
{b()&&(s.fire("close",o),t.events.fire(ec.Kc,!1,o),i.classList.remove("vp-panel-
open"),i.style.removeProperty("height"),j())}function S(t)
{e.setAttribute("hidden",""),p().forEach((function(t,n){t.classList.remove("vp-
panel-item-in")})),s.fire("closeEnd",o)}function x(t){return
t.preventDefault(),_()?T():k()}function A(t){s.fire("select",l[t].id)}function M(t)
{s.fire("select",l[t].id)}function C(t){if(!f){var
n=Ds(t.target,p());s.fire("select",l[n].id)}}function R(t)
{if("keypress"===t.type&&13===t.which||"keydown"===t.type&&32===t.which){var
n=Ds(t.target,p());if(-1!==n)return s.fire("select",l[n].id),!1}return
null}function I(t){var n=l.findIndex((function(t){return t.active}));if(-1!==n)
{l[n].active=!1;var e=p(n);e.classList.remove("vp-panel-item-
on"),e.setAttribute("aria-checked","false")}var r=l.findIndex((function(n)
{return"".concat(n.id)==="".concat(t)}));if(-1!==r){l[r].active=!0;var
o=p(r);o.classList.add("vp-panel-item-on"),o.setAttribute("aria-
checked","true"),i.querySelector(".js-
panelStatText").innerHTML=l[r].label}u.classList.remove("vp-indicator-
inactive")}function O(t){j(),a=t,t&&p(l.findIndex((function(t)
{return"".concat(t.id)==="".concat(a)}))).classList.add("vp-".concat(c,"-item-
hover"))}function j(){if(a){var t=p(l.findIndex((function(t)
{return"".concat(t.id)==="".concat(a)})));t.length||
t.classList.remove("vp-".concat(c,"-item-hover"))}}function L(){return
l.find((function(t){return t.active}))}function D(t){L()&&"auto"!==L().id||
(i.querySelector(".js-panelStatText").innerHTML=t)}function P(){return
U(i.querySelectorAll('.vp-panel-collapsible button[tabindex="0"], .vp-panel-open
li[tabindex="0"]'))}return
h(),o={id:c,element:i,setCollapsible:m,resetCarousel:w,pinTitle:y,isOpen:_,open:k,c
lose:T,setActiveItem:I,setHoverState:O,clearHoverState:j,setTitleStat:D,getTabindex
Items:P,on:s.on,off:s.off}}function Rd(t){var n,i=0,e=!
1,r=null,o=null,u=null;function a(){if(Wi.touch&&!t.store.get(nl)&&!
t.config.video.spatial){var n=null,a=10;(r=t.element.querySelector(".vp-nudge-
wrapper")).classList.remove("hidden"),r.innerHTML=Ff.render("nudge"),o=t.element.qu
erySelector(".vp-nudge-forward"),u=t.element.querySelector(".vp-nudge-
backward"),kd(o,(function(t)
{t.preventDefault(),l("right"),n=setTimeout(f,250)})),kd(u,(function(t)
{t.preventDefault(),l("left"),n=setTimeout(f,250)})),t.events.on(ec._c,(function()
{e=!0}))}function l(t){if(["left","right"].includes(t)){var e="right"===t?
s:c,r="right"===t?o:u;i++,clearTimeout(n),i>=2&&(h(r,t,a),2===i&&e(10),e(10*(i-
2)),i>2&&(h(r,t,a+=10),i=2))}}function f()
{i>=2&&t.events.fire(ec.Tc),i=0,a=10}}function s(n){l((t.currentTime||
0)+n)}function c(n){var i=(t.currentTime||0)-n;l(i>=0?i:0)}function l(n)
{t.events.fire(ec.Ec),t.events.fire(Gs.Ds,null,n),e||t.events.fire(ec.Ac)}function
f(n,i){var e=t.currentTime||
0,r="right"===i?"+":"-";return"right"===i&&e>t.config.video.duration-10||
e<=10&&"left"===i?null:"".concat(r," ").concat(n)}function h(i,e,r)
{if(["left","right"].includes(e)){var o=t.element.querySelector(".vp-nudge-
shade-".concat(e)),u=i.querySelector(".vp-nudge-
seconds");f(r,e)&&(u.innerHTML=f(r,e),clearTimeout(n),i.classList.remove("invisible
"),o.classList.remove("vp-nudge-shade-invisible"),n=setTimeout((function()
{o.classList.add("vp-nudge-shade-
invisible"),i.classList.add("invisible")}),500))}}return t.events.on(ec.Hl,
(function(){[o,u].forEach((function(t)
{t&&kl(t).off("click").off("touchend")})),a()})),a(),{}}var
Id=/^(%20|\s)*(javascript|data)/im,Od=/[^\x20-\x7E]/gim,jd=/^([^:]
+):/gm,Ld=[".","/"];function Dd(t){var n=t.match(jd);return null==n?void
0:n[0]}function Pd(t){return t?decodeURI(encodeURI(function(t){var
n=Dd(t=t.trim());return t&&!n&&(t="http://".concat(t)),t}(function(t){var
n=t.replace(Od,"");if(function(t){return Ld.indexOf(t[0])>-1}(n))return n;var
i=Dd(n);return i&&Id.test(i)?"":n}(t)))):null}function Nd(){for(var
t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];Vd.apply(void 0,
["hidden"].concat(n))}function Fd(){for(var t=arguments.length,n=new
Array(t),i=0;i<t;i++)n[i]=arguments[i];Ud.apply(void 0,
["hidden"].concat(n))}function Ud(t){Bd(t);for(var n=arguments.length,i=new
Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];i.forEach((function(n)
{Hd(n),n.classList.add(t)}))}function Vd(t){Bd(t);for(var n=arguments.length,i=new
Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];i.forEach((function(n)
{Hd(n),n.classList.remove(t)}))}function Bd(t){if(""===(t=String(t)))throw new
SyntaxError("An invalid string was specified");if(/\s/.test(t))throw new
SyntaxError("String contains invalid character")}function Hd(t){if(!function(t)
{return null!=t&&t instanceof HTMLElement}(t))throw new SyntaxError("An invalid
HTMLElement was specified")}function qd(t,n){var i=null;function e(n){var
i=n.target.activeCues[0]?
n.target.activeCues[0].id:null;t.events.fire(ec.Lc,i)}function r(t){var n=!!
t&&"menu"===t.position,e=t?t.id:null;i.forEach((function(t){var
i=t.dataset.time===e;t.classList.toggle("chapter-marker-
hover",i),t.classList.toggle("chapter-marker-hover-no-text",i&&n)}))}function o(t)
{i.forEach((function(n){n.classList.toggle("chapter-marker-
active",n.dataset.time===t)}))}return{renderChapterMarkers:function(){var
u,a=n.querySelector(".chapters");a.innerHTML=Ff.render("chapters",
{chapters:t.backbone?t.backbone.chapters:[],
duration:t.config.video.duration}),t.events.off(ec.Oc),t.events.off(ec.jc),function
(){for(var t=n.querySelectorAll(".chapter-title"),i=0;i<t.length;i++){var
e=t[i];if(240===Es(e).width){var r=Es(e.querySelector(".js-chapter-
content")).width;e.style.width=r+"px"}var
o=Es(e),u=o.left,a=o.right,s=Es(n),c=s.left-u,l=a-
s.right;c>0&&(e.style.left=c+"px"),l>0&&(e.style.right=l+"px")}}(),function(n)
{kl(n).on("mouseenter",".js-chapter-marker",(function(n){t.events.fire(ec.Oc,
{id:n.target.dataset.time,position:"marker"})})).on("mouseleave",".js-chapter-
marker",(function(n)
{t.events.fire(ec.jc)})),t.events.on([ec.Oc,ec.jc],r),t.events.on(ec.Lc,o)}
(a),i=U(n.querySelectorAll(".js-chapter-marker")),(null==(u=t.backbone)?void
0:u.chaptersTrack)&&t.backbone.chaptersTrack.addEventListener("cuechange",e)}}}func
tion Wd(t,n,i){var e,r,o,u,a,s,c,l,f,h,d,v,p,m,b,w,g,y,_,k,E,T,S,x,A,M,C=!1,R=!
1,I=!1,O=!1,j=!1,L=!1,D=!1,N=!1,F=!1,V=!1,B=!1,H=!1,q=!0,W=!1,z=!
1,G=null,K=null,Y=[],J=null,$=null,X=null,Z=!1,tt=!1,nt=[],it=new
qd(t,i),rt=t.config.embed.autoplay&&t.config.request.flags.autohide_controls,ot=[{i
d:.5,label:"0.5x"},{id:.75,label:"0.75x"},{id:1,label:"Normal"},
{id:1.25,label:"1.25x"},{id:1.5,label:"1.5x"},{id:2,label:"2x"}],ut=Wi.touch?
300:0;function at(){G=null,K=null}function st(){if(!K){var
t=Es(c).left,n=parseInt(window.getComputedStyle(c,"").borderLeftWidth,10);K=t+n}ret
urn K}function ct(){if(!G){var
t=Es(c).right,n=parseInt(window.getComputedStyle(c,"").borderRightWidth,10);G=t-
n}return G}function lt(t){var n=st();return xs((t-n)/(ct()-n),0,1)}function ft(n)
{for(var i,e=et(Y);!(i=e()).done;){var
r=i.value,o=Es(r),u=o.left,a=o.right;if(n>=u&&n<=a)return
parseFloat(r.getAttribute("data-time"))/t.config.video.duration}return
lt(n)}function ht(n,i){R&&!H&&(i=i||t.config.video.duration*n||
0,window.requestAnimationFrame((function(){dt(n,i),vt(n,i)})))}function dt(t,i){(!
n.get(Kc)||W&&0!
==i)&&(n.get(nl)&&(t=100),v.style.left=Math.min(Is(100*t),100)+"%",p.innerHTML=Kf(i
),v.style.display="block")}function vt(i,e){n.get(nl)&&(i=100);var
r=Math.min(Is(100*i),100);h.style.width="".concat(r,"%"),l.setAttribute("aria-
valuenow",Math.round(e)),l.setAttribute("aria-valuetext","".concat(Kf(e)," of
").concat(Kf(t.config.video.duration))),a.setAttribute("width","".concat(r,"%"))}fu
nction pt(t,i){n.get(nl)&&(t=100);var
e=Math.min(Is(100*t),100);f.style.width="".concat(e,"%"),u.setAttribute("width","".
concat(e,"%"))}function mt(){W=!1,r.classList.remove("state-
playing"),r.classList.add("state-paused")}function bt(){W=!
0,z&&St(),r.classList.remove("state-paused"),r.classList.add("state-
playing")}function wt(){q=!1,nt.forEach((function(t){return
t.retargetFocusFromChild()})),t.events.fire(ec.Uc,q),i.classList.add("invisible")}f
unction gt(){setTimeout((function(){q=!
0,t.events.fire(ec.Uc,q),i.classList.remove("invisible")}),ut)}function yt(){O||
q&&(C||(R&&B||j||rt)&&(I||(!Z&&!tt||j)&&(j&&3===t.config.view||N||L||
wt())))}function _t(){O||q||j||gt()}function kt(t){return
nt.push(t),t.button.parentNode.insertBefore(t.element,t.button.nextSibling),t}funct
ion Et(t){nt=nt.filter((function(n){return n!==t})),t.destroy()}function Tt(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(y){var
n,i=1/_.length,e=t/i,r=Math.ceil(e),o=e
%1;o<=.33&&(n="fill1"),o>.33&&o<=.66&&(n="fill2"),_.forEach((function(t,i)
{t.classList.remove("fill0"),t.classList.remove("fill1"),t.classList.remove("fill2"
),i===r-1&&o&&o<=.66?t.classList.add(n):i>r-
1&&t.classList.add("fill0")})),y.setAttribute("aria-
valuenow",t.toFixed(3)),y.setAttribute("aria-valuetext",Math.round(100*t)
+"%")}}function St(){var e;if(1===t.config.view||3===t.config.view||
12===t.config.view){S&&(Et(S),S=null),J&&(Et(J),J=null);var C=t.backbone||
{},O=t.config.embed.settings,j={show:O.logo,showLink:!!
t.config.video.logo_url,url:t.config.video.logo_url},L=function(){if(!
t.config.embed.settings.custom_logo)return null;var
n=t.config.embed.settings.custom_logo,i=n.img;return
Wi.devicePixelRatio>=2&&(i=i.replace(/(mw|mh)=(\d+)/g,(function(t,n,i){return
n+"="+2*parseInt(i,10)}))),{showLink:null!
==n.url,url:Pd(n.url),img:i,sticky:n.sticky,width:n.width,height:n.height}}();if(!
O.watch_trailer||R||W||t.config.embed.autoplay||!t.config.embed.on_site){var D=!
t.backbone||t.backbone.supportsSettingVolume,P=!t.backbone||
t.backbone.supportsTextTracks,N=od(t.config,"chromecast").group&&Wi.browser.chrome&
&(void 0===O.chromecast||O.chromecast)&&!t.config.video.spatial&&"stock"!
==t.config.video.privacy,F=t.displayContext===t.backbone,V=C.supportsPlaybackRate&&
O.speed,B=F&&(V||C.qualities&&C.qualities.length>0),H="disable"!
==t.config.video.privacy&&(Wi.webvr||
Wi.stereoscopic)&&t.config.video.spatial&&od(t.config,"webvr").group,G=!!
t.backbone&&(null==(e=t.backbone.textTracks)?void
0:e.length);t.events.on(Ti.TEXT_TRACKS_AVAILABLE,(function(){var n;G=!!
t.backbone&&(null==(n=t.backbone.textTracks)?void 0:n.length),St()}));var
K={targetBlank:0===t.config.embed.on_site,playState:W?"playing":"paused",volume:D&&
O.volume,ccButton:P&&G&&F,castButton:N,ccOn:null!
==X,prefsButton:B,airplayButton:Wi.airPlay,stereoscopicButton:H,fullscreenButton:O.
fullscreen,vimeoLogo:F?j:
{},duration:Kf(t.config.video.duration),rawDuration:t.config.video.duration,caption
sIcon:Ff.render("icon_cc",{title:"Choose
captions"}),settingsIcon:Ff.render("icon_gear",
{title:"Settings"}),fullscreenIcon:Ff.render("icon_fullscreen",{title:"Enter full
screen"}),unfullscreenIcon:Ff.render("icon_unfullscreen",{title:"Exit full
screen"}),playIcon:Ff.render("icon_play",
{title:"Play"}),pauseIcon:Ff.render("icon_pause",
{title:"Pause"}),replayIcon:Ff.render("icon_replay",
{title:"Play"}),chaptersIcon:Ff.render("icon_chapters",
{title:"Chapters"}),chapters:!!C.chapters&&C.chapters.length,strings:
{loadedBar:"loaded",playedBar:"played",volume:"Volume (use up/down arrow keys to
change)",airPlay:"Choose an AirPlay device",airPlayOff:"Turn off
AirPlay",pipEnter:"Enter Picture-in-Picture",pipReturn:"Exit Picture-in-
Picture",fullscreen:"Fullscreen",chromecast:"Cast",watchOnVimeo:"Watch on
vimeo.com",stereoscopic:"Enable stereoscopic playback",stereoscopicOff:"Disable
stereoscopic playback"}};if(L&&(K.customLogo=L),i.classList.remove("trailer"),z=!
1,i.innerHTML=Ff.render("controlbar",K),r=i.querySelector(".play"),o=r.querySelecto
r(".buffer"),u=r.querySelector(".loaded"),a=r.querySelector(".played"),s=i.querySel
ector(".play-bar"),c=i.querySelector(".vp-progress"),l=s.querySelector(".focus-
target"),f=s.querySelector(".loaded"),h=s.querySelector(".played"),d=s.querySelecto
r(".cuepoints"),v=i.querySelector(".timecode"),p=v.querySelector(".box"),m=i.queryS
elector(".ghost-timecode"),b=m.querySelector(".box"),w=i.querySelector(".thumb-
preview"),g=i.querySelector(".thumb"),
(y=i.querySelector(".volume"))&&(_=U(y.querySelectorAll("div")),t.config.embed.mute
d?Tt(0):Tt(t.config.request.cookie.volume)),T=i.querySelector(".play-bar
.cc"),E=i.querySelector(".js-chapter-button"),(k=i.querySelector(".js-
prefs"))&&Bc.isCastConnected&&Fd(k),x=i.querySelector(".pip"),Wi.airPlay&&(A=i.quer
ySelector(".airplay")),(Wi.webvr||
Wi.stereoscopic)&&t.config.video.spatial&&(M=i.querySelector(".stereoscopic")),I=!
1,q&&t.events.fire(ec.Uc,q),rt&&yt(),xt(),n.get(nl)){var Y=i.querySelector(".vp-
live-status");Y.style.display="block";var $=Y.querySelector(".vp-live-status-
circle");n.get(Qc)?($.classList.remove("offline"),$.classList.add("online"),k&&!
Bc.isCastConnected&&Nd(k)):($.classList.add("offline"),
$.classList.remove("online"),r.classList.add("hidden"),k&&Fd(k)),p.style.cursor="de
fault",c.classList.add("disabled")}it.renderChapterMarkers()}else!function(n,e)
{i.classList.add("trailer");var
o={vimeoLogo:n,text:t.config.video.vod.button_text||"Watch Trailer",strings:
{watchOnVimeo:"Watch on
vimeo.com"}};e&&(o.customLogo=e),i.innerHTML=Ff.render("controlbar_trailer",o),r=i.
querySelector(".play"),z=!0}(j,L)}}function xt(){if(n.get(nl)){var
i=W&&t.config.duration>0;v.style.display=i?"block":"none"}}function At(){var
e;function r(n){if(H=!1,e===n.pointerId&&!1!==n.isPrimary){var
i=n.clientX;n.targetTouches&&n.targetTouches.length>0&&(i=n.targetTouches[0].client
X,n.preventDefault());var r=ft(i);ht(r),t.events.fire(Gs.Ds,r)}}function o(n){var
e=n.type;"pointerup"===e||"MSPointerUp"===e?kl(i).off("pointermove",".vp-
progress",r).off("pointerup",".vp-progress",o):"touchend"===n.type?
kl(i).off("touchmove",r).off("touchend",o):kl(document).off("mousemove",r).off("mou
seup",o),t.events.fire(ec.Pc),t.element.classList.remove("scrubbing")}t.events.on(_
i.TIME_UPDATE,(function(n){var
i=n.currentTime,e=n.timeProgress;H&&(0===t.config.embed.time||
t.config.embed.time>0&&i>=t.config.embed.time)&&(H=!1),L||
ht(e,i)})),t.events.on(ec.Dc,(function(t){L=!0,D=t})),t.events.on(ec.Pc,(function()
{L=!1,D=!1})),t.events.on(_i.SEEKED,(function(t){var
n=t.timeProgress;D&&ht(n)})),n.get(Kc)&&!n.get(tl)||
(kl(i).on(Wi.pointerEvents?"pointerdown":["touchstart","mousedown"],".vp-progress",
(function(n){if(!(n.button&&2===n.button||n.target.classList.contains("js-chapter-
marker"))){var
u=n.type;if(t.element.classList.add("scrubbing"),t.events.fire(ec.Dc,!
1,u),"pointerdown"===u||"MSPointerDown"===u)
{e=n.pointerId;try{n.target.msSetPointerCapture?
n.target.msSetPointerCapture(e):n.target.setPointerCapture(e)}catch(t)
{}kl(i).on("pointermove",".vp-progress",r).on("pointerup",".vp-
progress",o)}else"touchstart"===u?
kl(i).on("touchmove",r).on("touchend",o):kl(document).on("mousemove",r).on("mouseup
",o);var
a=n.clientX;n.targetTouches&&n.targetTouches.length>0&&(a=n.targetTouches[0].client
X,n.preventDefault());var s=ft(a);if(R)ht(s);else{var
c=t.config.video.duration*s;dt(s,c),vt(s,c),H=!0}return
t.events.fire(Gs.Ds,s,null),!1}})),t.events.on(Gs.uc,(function(n,i)
{n=xs(n,0,t.config.video.duration),i||
(i=n/t.config.video.duration),window.requestAnimationFrame((function()
{dt(i,n),vt(i,n)}))})))}function Mt(n){if(n.element.parentElement)
{if(n.isFullwidth())return
n.element.style.right="",n.element.style.bottom="",void(n.element.style.height="");
var

i=Es(t.element),e=Es(n.button),r=Es(n.element.parentElement),o=Es(n.element),u=0,a=
e.right-e.width/2+o.width/2;a<r.right&&(u=r.right-a);var
s=window.getComputedStyle(n.element),c=parseFloat(s.fontSize);if(n.isCentered())
{var l=i.right-r.right,f=i.bottom-r.bottom,h=(i.width-o.width)/2,d=(i.height-
o.height)/2;n.element.style.right="".concat((h-
l)/c,"em"),n.element.style.bottom="".concat((d-f)/c,"em")}else
n.element.style.right="".concat(u/c,"em"),n.element.style.bottom="".concat(r.height
/c,"em")}}function Ct(){n.get(Kc)&&!n.get(tl)&&(t.events.on(au.STREAM_ONLINE,
(function(){St()})),t.events.on([au.STREAM_OFFLINE,au.EVENT_ENDED],(function()
{St()})))}return St(),kd(i,".play, .replay",(function(){return R=!0,z&&(q=!
1,i.classList.add("invisible"),St(),_t()),r.classList.contains("state-playing")?
(t.events.fire(ec.xc),mt()):(t.events.fire(ec.Ac),bt()),!
Wi.android})),t.events.on([ec.Ac,ec.dc,Ko,_i.PLAY],bt),t.events.on([ec.xc,ec.vc,ec.
Pf,Gs.Vs],mt),t.events.on(ec.nr,(function(){t.displayContext!==t.backbone?
bt():mt()})),t.events.on(ec.pc,(function(){H=!1,mt(),ht(1)})),t.events.on(ec.sl,
(function(t){"not-supported"===t&&mt()})),n.get(Kc)&&!
n.get(Qc)&&(r.classList.add("hidden"),t.events.once(au.STREAM_ONLINE,(function()
{r.classList.remove("hidden")}))),t.events.on(au.EVENT_ENDED,(function()
{r.classList.add("hidden")})),At(),t.events.on(Ti.BUFFER_STARTED,(function()
{o.setAttribute("class",o.getAttribute("class").replace(/\s+hidden/,"")),N=!0,rt||
_t()})),t.events.on(Ti.BUFFER_ENDED,(function()
{f.classList.remove("hidden"),n.get(nl)&&h.classList.remove("hidden"),o.setAttribut
e("class",o.getAttribute("class")+" hidden"),N=!1})),function(){var e,o=null,u=!
1;function a(){return e||(e=t.verifyConfig().then((function(t){return
Dc(t.thumb_preview.url)}))),e.then((function(n){var
i=t.config.request.thumb_preview;return g.style.backgroundImage||
(g.style.width="".concat(i.frame_width/2,"px"),g.style.height="".concat(i.frame_hei
ght/2,"px"),g.style.backgroundImage="url(".concat(i.url,")"),g.style.backgroundSize
="".concat(i.width/2,"px ").concat(i.height/2,"px")),n}))}function l(n)
{if(n.target===s){var i=lt(n.clientX);ht(i),t.events.fire(Gs.Ds,i)}}function f(t)
{return m.classList.contains("hidden")||
(w.classList.remove("hidden"),window.requestAnimationFrame((function()
{window.requestAnimationFrame((function()
{w.classList.remove("invisible")}))}))),t}function h(n)
{if(t.config.request.thumb_preview&&null===o&&!u){var
i=Es(c).width,e=document.querySelector(".player").clientHeight;if(!
(o=e>=215&&i>=185))return void
w.classList.add("hidden");a().then(f).catch((function(){}))}if(V){var l=function(t)
{for(var n,i=et(Y);!(n=i()).done;){var
e=n.value,r=Es(e),o=r.left,u=r.right,a=r.width;if(t>=o&&t<=u)return{clientX:o+a/2,s
nappedTo:e}}return{clientX:t,snappedTo:null}}
(n.clientX),h=l.clientX,v=l.snappedTo,p=lt(h),y=t.config.video.duration*p;Y.forEach
((function(t){return
t.classList.toggle("active",t===v)})),t.config.request.thumb_preview&&o&&!
u&&a().then((function(n){var i=Q(function(n){var
i=t.config.video.duration/t.config.request.thumb_preview.frames,e=Math.min(t.config
.request.thumb_preview.frames-1,Math.ceil(n/i)),r=e
%t.config.request.thumb_preview.columns,o=Math.floor(e/t.config.request.thumb_previ
ew.columns);return[-r*t.config.request.thumb_preview.frame_width/2,-
o*t.config.request.thumb_preview.frame_height/2]}(y),2),e=i[0],r=i[1];return
window.requestAnimationFrame((function(){g.style.backgroundPosition="".concat(e,"px
").concat(r,"px")})),n})).catch((function()
{})),window.requestAnimationFrame((function(){b.innerHTML=Kf(y);var
t=(100*p).toFixed(3);m.style.left="".concat(t,"%"),function(t){var n=Q(function()
{var t=Es(r).left,n=Es(s).right,i=Es(w).width,e=t+Math.ceil(i/2),o=n-
Math.ceil(i/2),u=st(),a=ct()-u;return[(e-u)/a,(o-u)/a]}
(),2),i=n[0],e=n[1],o=(100*Math.max(i,Math.min(e,t))).toFixed(3);w.style.left="".co
ncat(o,"%")}(p),n.clientX>ct()+10&&!
w.contains(document.elementFromPoint(n.clientX,n.clientY))&&d()}))}}function d()
{m&&(m.classList.add("invisible"),w.classList.add("invisible")),V=!
1,kl(s).off("click",l)}n.get(Kc)&&!n.get(tl)||kl(i).on("mouseenter",".vp-progress",
(function(n){V||F||(m.classList.remove("hidden"),V=!
0,h(n),window.requestAnimationFrame((function()
{window.requestAnimationFrame((function()
{m.classList.remove("invisible")}))})),t.config.request.thumb_preview&&o&&!
u&&a().then(f).catch((function(){})),kl(s).on("click",l))})).on("mousemove",".play-
bar",h).on("mouseleave",".play-bar",d).on("mouseenter",".js-chapter-marker",
(function(){u=!0})).on("mouseleave",".js-chapter-marker",(function(){u=!
1,o=null})),kl(i).on("transitionend",".ghost-timecode",(function(t)
{"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(m.cla
ssList.add("hidden"),w.classList.add("hidden"))}),!
1),t.events.on(ec.Rl,d),t.events.on(ec.Hl,(function(){e=null}))}(),function(){var
n;function e(n){var
i=n.clientX;n.targetTouches&&(i=n.targetTouches[0].clientX,n.preventDefault());var
e=o(i);t.events.fire(Gs.Ps,e),Tt(e)}function r(n){F=!
1,t.events.fire(ec.Fc),t.element.classList.remove("scrubbing");var
o=n.type;"pointerup"===o||"MSPointerUp"===o?
kl(i).off("pointermove",".volume",e).off("pointerup",".volume",r):"touchend"===n.ty
pe?
kl(document).off("touchmove",e).off("touchend",r):kl(document).off("mousemove",e).o
ff("mouseup",r),y.setAttribute("tabindex",y.getAttribute("data-
tabindex")),y.removeAttribute("data-tabindex")}function o(t){var
n=Es(y).left;return xs((t-n)/(Es(y).right-n),0,1)}kl(i).on("mousemove",".volume",
(function(t){var n=t.srcElement;if(-1===_.indexOf(n)){var
i=Es(y),e=t.clientX,r=i.bottom-2;if(n=document.elementFromPoint(e,r),-
1===_.indexOf(n))return}n.classList.add("hover"),window.requestAnimationFrame((func
tion(){window.requestAnimationFrame((function()
{n.classList.remove("hover"),n.classList.add("animate")}))}))})),kl(i).on("transiti
onend",".volume div",(function(t)
{"height"===t.propertyName&&this.classList.remove("animate")})),kl(document).on("co
ntextmenu",".volume",(function()
{this.blur()})),kl(i).on(Wi.pointerEvents?"pointerdown":
["touchstart","mousedown"],".volume",(function(u){if(1===u.which)
{y.setAttribute("data-
tabindex",y.getAttribute("tabindex")),y.removeAttribute("tabindex"),F=!
0,t.element.classList.add("scrubbing"),t.events.fire(ec.Nc);var
a=u.type;if("pointerdown"===a||"MSPointerDown"===a)
{n=u.pointerId;try{u.target.msSetPointerCapture?
u.target.msSetPointerCapture(n):u.target.setPointerCapture(n)}catch(t)
{}kl(i).on("pointermove",".volume",e).on("pointerup",".volume",r)}else"touchstart"=
==a?
kl(document).on("touchmove",e).on("touchend",r):kl(document).on("mousemove",e).on("
mouseup",r);var s=u.clientX;u.targetTouches&&(s=u.targetTouches[0].clientX);var
c=o(s);t.events.fire(Gs.Ps,c),Tt(c)}})),t.events.on(ec.mc,(function(n)
{t.backbone.muted?Tt(0):!F&&_&&Tt(n)})).on([Gs.Gs,Gs.zs],(function(){St()}))}
(),kd(i,".js-chapter-marker",(function(n){var i=parseFloat(n.target.dataset.time)
+.001;t.events.fire(ec.Rc,i,"controlbar")})),t.events.on(Ti.CHAPTER_CUES_UPDATED,
(function(){it.renderChapterMarkers()})),function(){function e(){var
n=t.backbone.chapters,i=0;return U(n).map((function(n){var
e=t.currentTime;return{index:"".concat(i+=1),label:n.text,id:n.id,active:e>=n.start
Time&&e<n.endTime}}))}kd(i,".js-chapter-button",(function(){if(E){if(!$)return
void($=function(){var i=new Cd(t,{id:"chapters",title:"Chapters",items:e()},!
1);i.pinTitle();var r=new Ed(t,E,[i]),o=t.element;function u(n)
{r.element.classList.toggle("vp-menu-
fullwidth",n),t.events.fire(ec.Yc,r.isCentered(),r),n?
o.insertBefore(r.element,o.children[0]):kt(r)}return r.element.classList.add("vp-
menu-chapters"),kl(i.element).on("mouseenter",".vp-panel-item",(function(n)
{t.events.fire(ec.Oc,
{id:n.target.dataset.time,position:"menu"})})).on("mouseleave",".vp-panel-item",
(function(n){t.events.fire(ec.jc)})),t.events.on(ec.Oc,(function(t)
{i.setHoverState(t.id)})),t.events.on(ec.jc,(function(t)
{i.clearHoverState()})),n.watch("ui.controlbar.isPrefsMenuCentered",u),u(n.get("ui.
controlbar.isPrefsMenuCentered")),i.on("select",(function(n)
{t.events.fire(ec.jc),t.events.fire(ec.Rc,parseFloat(n)
+.001,"menu")})),t.events.on(ec.Lc,(function(t)
{$&&$.getPanel("chapters")&&$.getPanel("chapters").setActiveItem(t)})),r}
()).show();$.toggle(),t.events.fire(ec.jc)}}))}
(),t.events.on(Ti.CHAPTER_CUES_UPDATED,(function(){$&&($.destroy(),
$=null),t.backbone.chapters.length<2&&St()})),kd(i,".cc",(function()
{t.events.fire(ec.Cc)})),t.events.on(ec.Cc,(function(n){S?S.toggle(n):
(S=kt(function(n){var
i=[];t.backbone.textTracks&&(t.backbone.textTracks.forEach((function(n){var
e="CC"===n.label.substring(n.label.length-2),r="captions"!==n.kind||e?"":"
CC",o=t.config.video.live_event?"Display
Captions":n.label+r;i.push({label:o,id:"".concat(n.id),active:X==="".concat(n.id)})
})),i.push({label:"None",id:"off",active:null===X}));var e=new Cd(t,
{items:i,id:"cc",title:"Closed Captions"});return e.on("select",(function(n){"off"!
==n?t.events.fire(Gs.$s,n):t.events.fire(Gs.Xs)})),new Ed(t,n,[e])}
(T))).show(n)})),t.events.on(ec.Hc,(function(t){t?function(t)
{X=t,S&&S.getPanel("cc")&&(S.getPanel("cc").setActiveItem(t),setTimeout((function()
{S.hide()}),100)),T&&(T.classList.add("on"),T.classList.remove("off"))}(t.id):
(X=null,S&&S.getPanel("cc")&&(S.getPanel("cc").setActiveItem("off"),setTimeout((fun
ction()
{S.hide()}),100)),T&&(T.classList.add("off"),T.classList.remove("on")))})).on([Gs.Y
s,Gs.Ks],(function(){St()})).on(ec.wf,(function(){St()})),function(){var
e;kd(i,".js-prefs",(function(){t.events.fire(ec.Mc)})),t.events.on(ec.Mc,
(function(i){if(k){if(!J)return void(J=kt(function(){var
i=[];if(t.backbone.qualities&&t.backbone.qualities.length>0){var r=new Cd(t,
{id:"quality",title:"Quality",items:t.backbone.qualities});r.on("select",
(function(n)
{t.events.fire(Gs.Hs,n)})),e&&r.setTitleStat(e),r.pinTitle(),i.push(r)}if(t.backbon
e.supportsPlaybackRate&&t.config.embed.settings.speed){var o=ot.map((function(n)
{return
n.active=n.id===t.backbone.playbackRate,n})),u=new Cd(t,
{id:"speed",title:"Speed",items:o});u.on("select",(function(n)
{t.events.fire(Gs.ac,n)})),u.pinTitle(),i.push(u)}var a=new Ed(t,k,i);function s(n)
{a.element.classList.toggle("vp-menu-
center",n),t.events.fire(ec.Yc,a.isCentered(),a)}return
n.watch("ui.controlbar.isPrefsMenuCentered",s),s(n.get("ui.controlbar.isPrefsMenuCe
ntered")),Wi.touch&&a.element.classList.add("vp-menu-carousel"),a}
())).show(i);J.toggle(i)}})),t.events.on(ec.bc,(function(t)
{J&&J.getPanel("quality")&&J.getPanel("quality").setActiveItem(t)})),t.events.on(Ti
.STREAM_CHANGE,(function(n){var
i=n.quality||"".concat(n.height,"p");if(e=i,J&&J.getPanel("quality")){var
r=t.backbone.qualities.find((function(t){return
t.id===i})).label;J.getPanel("quality").setTitleStat(r)}})),t.events.on(ec.kc,
(function(t){J&&J.getPanel("speed")&&J.getPanel("speed").setActiveItem(t)}))}
(),kd(i,".pip",(function(){"picture-in-picture"!==t.backbone.presentationMode?
t.events.fire(Gs.nc):t.events.fire(Gs.ic)})),t.events.on(Qo,(function()
{x&&(x.classList.remove("hidden"),x.hidden=!1,at())})).on(tu,(function()
{x&&(x.classList.add("hidden"),x.hidden=!0,at())})).on(nu,(function(){tt=!
0,x&&(x.classList.add("on","return"),x.classList.remove("enter"),x.setAttribute("ti
tle",x.getAttribute("data-title-return")))})).on(iu,(function(){tt=!
1,x&&(x.classList.add("enter"),x.classList.remove("on","return"),x.setAttribute("ti
tle",x.getAttribute("data-title-enter")))})),Wi.airPlay&&(kd(i,".airplay",
(function(){t.events.fire(ec.jf)})),t.events.on(ec.Cf,(function()
{A&&(A.classList.remove("hidden"),A.hidden=!1,at())})).on(ec.Rf,(function()
{A&&(A.classList.add("hidden"),A.hidden=!0,at())})).on(ec.If,(function(){Z=!
0,A&&(A.classList.remove("off"),A.classList.add("on"),A.setAttribute("title",A.getA
ttribute("data-title-on"))),_t()})).on(ec.Of,(function(){Z=!
1,A&&(A.classList.remove("on"),A.classList.add("off"),A.setAttribute("title",A.getA
ttribute("data-title-off")))}))),kd(i,".fullscreen",(function()
{t.events.fire(ec.Sc)})),t.events.on(ec.Zc,(function(){C=!
1,i.classList.remove("tiny")})),t.events.on(ec.tl,(function(t){t||(C=!
0),e&&i.classList.add("tiny")})),t.events.on([ec.Il,ec.Dc,Gs.Ps],_t).on([ec.Rl,ec.O
l],yt).on(ec.Xc,(function(){I=!1,yt()})).on(ec.Qc,(function(){I=!1})).on(ec.wc,
(function(){B=!0,yt()})).on(Gs.Ps,(function(t,n){n||
_t()})),kl(i).on(["pointerenter","pointerleave","mouseenter","mouseleave"],
[".play",".play-bar",".custom-logo",".vp-menu"],(function(t){"pointerType"in
t?"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE||
(I="pointerenter"===t.type||"MSPointerEnter"===t.type):Wi.touch||
(I="mouseover"===t.type)})),t.events.on(Gs._overrideControlbarBehavior,(function(n)
{O=n,n?t.events.on(Gs.tc,(function(t){t?
gt():wt()})):t.events.off(Gs.tc)})),t.events.on(ec.sl,(function(t){if("not-
supported"!==t&&"private-unlocked"!==t&&"help"!==t)j=!0,yt();else for(var
n=i.querySelectorAll("a, button, input, [tabindex]"),e=0,r=n.length;e<r;e++){var
o=n[e].getAttribute("tabindex");o&&n[e].setAttribute("data-
tabindex",o),n[e].setAttribute("tabindex","-1")}})).on(ec.cl,(function(){j=!
1,_t();for(var t=i.querySelectorAll("[tabindex]"),n=0,e=t.length;n<e;n++){var
r=t[n].getAttribute("data-tabindex");r&&"null"!==r?
t[n].setAttribute("tabindex",r):t[n].removeAttribute("tabindex"),t[n].removeAttribu
te("data-tabindex")}})),t.events.on(ec.Xl,(function(){i.classList.add("controls-
outro")})).on(ec.Zl,(function(){i.classList.remove("controls-outro")})),function()
{function n(){nt.filter((function(t){return t.isVisible()})).forEach((function(t)
{return t.hide()}))}t.events.on([ec.Yc,ec.Bc],(function(t,n)
{Mt(n),n.isCentered()&&n.isVisible()&&i.classList.add("controls-
centerMenu"),n.isCentered()&&n.isVisible()||i.classList.remove("controls-
centerMenu")})).on(ec.tl,n).on(ec.Uc,(function(t){t||n()})),kl(window).on("resize",
(function(){nt.forEach(Mt)}))}(),new Rd(t),t.events.on(ec.Hl,(function(n,i)
{Ct(),At(),St(),3===t.config.view&&_t(),at()})),t.events.on(Gs.Vs,(function()
{window.requestAnimationFrame((function()
{xt(),dt(0,t.config.video.duration),vt(0,0),pt(0)})),_t(),R=!1,I=!1,L=!1,F=!1,H=!
1,C=!1,B=!1,S&&(Et(S),S=null),J&&(Et(J),J=null)})),kl(window).on("resize",
(function(){at()})),t.events.on(ec.zl,(function(){e=!
0,i.classList.add("tiny")})).on(ec.Gl,(function(){e=!
1,i.classList.remove("tiny")})).on(ec.Kl,(function(){e=!
1,i.classList.remove("tiny")})),function(){if(t.config.embed.on_site){var n=new
P;t.events.on(ec.qc,(function(e){if(e.data.visible){var
r=document.createElement("div");r.setAttribute("id","cuepoint-".concat(e.id)),r.set
Attribute("data-
time",e.time),r.classList.add("cuepoint"),r.classList.add("out"),r.appendChild(docu
ment.createElement("div"));var
o=e.time/t.config.video.duration*100;r.style.left="".concat(o,"%"),n.set(e,r),d.app
endChild(r),Y=U(i.querySelectorAll(".cuepoint")),window.requestAnimationFrame((func
tion(){return r.classList.remove("out")}))}})),t.events.on(ec.Wc,(function(t){var
i=n.get(t);i&&(n.delete(t),i.classList.add("out"))})),kl(i).on("transitionend",".cu
epoint",(function(t)
{this.classList.contains("out")&&(d.removeChild(this),Y=U(i.querySelectorAll(".cuep
oint")))}))}}(),M&&(kd(i,".stereoscopic",(function()
{t.events.fire(ec.zc)})),M.classList.remove("hidden"),M.hidden=!
1),Ct(),Bc.on(Fc.connected,(function(){k&&Fd(k)})),Bc.on(Fc.disconnected,
(function()
{k&&Nd(k)})),Bc.on(Fc.playing,bt),Bc.on([Fc.error,Fc.idle,Fc.paused,Fc.ended,Fc.dis
connected],mt),t.events.on(Ko,(function(){t.events.on(_i.PROGRESS,(function(t)
{t.loaded,t.duration;var n=t.loadProgress;C||
window.requestAnimationFrame((function(){pt(n)}))})),R=!0;var
n=t.config.embed.time||t.backbone.currentTime;ht(n/t.config.video.duration,n),H=!
0})),t.events.fire(ec._f),{}}var zd=function(){function t(t,n){var
i=this,e=arguments.length>2&&void 0!==arguments[2]?
arguments[2]:1;rt(this),this.version=e,this.visible=!1;var
r=this.ed=document.createElement("div");r.classList.add("compass-
wrapper"),r.innerHTML=Ff.render("compass",
{version:e}),r.classList.add("cloaked"),t.appendChild(r),n&&r.addEventListener("cli
ck",n),this.rd=r.querySelector(".compass-slice"),this.od=r.querySelector(".compass-
line");var o=function(){i.ud=!0},u=function(t){return function()
{setTimeout((function(){i.ud||(i.fade(),i.ud=!
1)}),t)}};kl(this.ed).on("mousein",o).on("pointerin",o).on("mouseout",u(1e3)).on("p
ointerout",u(1e3)),u(2500)()}var n=t.prototype;return n.setAngle=function(t,n){var
i=this;this.Ea&&window.cancelAnimationFrame(this.Ea);var e=0;1===this.version?e=-
45:2===this.version&&(e=-30);var
r="".concat(e+n),o=(t+85)/170;this.Ea=window.requestAnimationFrame((function()
{i.rd.setAttribute("transform","rotate(".concat(r,", ").concat(18,",
").concat(18,")")),i.od&&i.od.setAttribute("d",i.ad(o,18))}))},n.ad=function(t,n)
{var i=2*n-Math.round(2*n*t),e=(2*n-2*Math.sqrt(2*i*n-Math.pow(i,2)))/2,r=2*n-e-
5;return"M".concat(e+5,",").concat(i," L").concat(r,",").concat(i,"
z")},n.reveal=function(){var
t=this;this.ed.classList.remove("cloaked"),window.requestAnimationFrame((function()
{t.ed.classList.add("in")})),this.visible=!0},n.fade=function()
{this.ed.classList.add("fade"),this.visible=!0},n.hide=function(){var
t=this;this.ed.classList.remove("in"),this.ed.classList.remove("fade"),this.ed.clas
sList.add("leaving"),kl(this.ed).on("transitionend",(function n()
{"opacity"===event.propertyName&&(t.ed.classList.remove("leaving"),t.ed.classList.a
dd("cloaked"),t.visible=!
1),kl(t.ed).off("transitionend",n)}))},n.updatePosition=function(t){if(t){var
n=Es(t);if(n.height<265)return this.ed.classList.remove("align-bottom"),void
this.ed.classList.add("hidden");if(n.height<336)return
this.ed.classList.remove("hidden"),void this.ed.classList.add("align-
bottom");this.ed.classList.remove("hidden"),this.ed.classList.remove("align-
bottom")}},n.getWrapper=function(){return this.ed},t}();function Gd(t,n,i){var
e=null,r=Wi.touch?4500:2e3,o=!0,u=!0,a=!1,s=null,c=null,l=[],f=!1,h=null,d=null,v=!
0,p=!1,m=!1,b=!1,w=!1,g=!1,y=i.querySelector(".vp-target"),_=i.querySelector(".vp-
sidedock"),k=i.querySelector(".vp-controls"),E=i.querySelector(".vp-
title"),T=i.querySelector(".vp-video"),S=U(i.querySelectorAll(".vp-nudge")),x=!!
Wi.touch&&S.some((function(t){return!
t.classList.contains("invisible")})),A=t.config.embed.autoplay&&t.config.request.fl
ags.autohide_controls,M=Wi.touch?300:0,C=null,R=od(t.config,"webvr").group||!
1;function I(){clearTimeout(e),e=null}function O()
{g&&(clearTimeout(e),e=setTimeout(L,r))}function j()
{Wh.element&&Wh.element.classList.contains("js-player-fullscreen")&&(a||
(i.classList.add("player-cursor-hide"),u=!0,a=!0))}function L(n){(p||v)&&(b||
(I(),document.activeElement&&document.body.classList.contains("showfocus")&&(_.cont
ains(document.activeElement)||k.contains(document.activeElement))||
(t.events.fire(n?ec.Rl:ec.Ol),u=!0,Wi.spatialPlayback&&t.config.video.spatial||
(y.classList.add("hidden"),y.setAttribute("hidden","")),o=!0,j())))}function D()
{O(),x||w||p&&v||
(t.events.fire(ec.Il),y.classList.remove("hidden"),y.removeAttribute("hidden"))}fun
ction P(){p||v?i.removeAttribute("tabindex"):p||v||m||
i.setAttribute("tabindex","0")}function N(){t.events.on([_i.TIME_UPDATE,_i.SEEKED],
(function n(i)
{i.currentTime>=1.75&&null===e&&(t.events.fire(ec.wc),t.events.off([_i.TIME_UPDATE,
_i.SEEKED],n))}))}function F(){T.classList.remove("threesixty-
video"),t.element.classList.remove("grabbable"),t.element.classList.remove("grabbin
g"),s&&s.hide()}function V(){l.forEach((function(t){return
clearTimeout(t)})),l=[]}function B(t)
{t&&(t.classList.remove("cloaked"),window.requestAnimationFrame((function()
{t.classList.add("in")})))}function H(t)
{t&&(t.classList.add("leaving"),window.requestAnimationFrame((function()
{kl(t).on("transitionend",(function n(i)
{"opacity"===i.propertyName&&(t.classList.remove("in"),t.classList.remove("leaving"
),t.classList.add("cloaked"),kl(t).off("transitionend",n))}))})))}function q(t)
{Es(_).width>60?t.classList.add("vp-alert-bumpdown"):t.classList.remove("vp-alert-
bumpdown")}return
function(){var n=!0;function e(){D()}function c(e){var s;if(r=2e3,u)u=!1;else
if(a&&(i.classList.remove("player-cursor-hide"),a=!1),0!==e.screenX&&e.screenX!
==screen.width-1&&0!==e.screenY&&e.screenY!==screen.height-1){if(n=!
0,Wi.spatialPlayback&&(null==(s=t.config.video)?void 0:s.spatial)){var
c=Es(t.element),l=e.clientX-c.left,h=e.clientY-c.top,d=h>t.element.clientHeight-
55,v=l>t.element.clientWidth-45&&h<180;if(f||!d&&!v)return}o&&D(),O()}else
I(),j(),n&&(L(!0),n=!1)}function l(){L(!0)}function h(t){var
n=k.contains(t.target)||
_.contains(t.target),i=s&&s.getWrapper().contains(t.target);p&&v||i?n||!p&&!v||L(!
0):(clearTimeout(C),C=setTimeout(D,M))}Wi.pointerEvents?kl(i).on("pointerenter",
(function(t){if("mouse"===t.pointerType||
t.pointerType===t.MSPOINTER_TYPE_MOUSE)return
r=2e3,e();r=4500,h(t)})).on("pointermove",(function(t){if("mouse"===t.pointerType||
t.pointerType===t.MSPOINTER_TYPE_MOUSE)return c(t)})).on("pointerleave",
(function(t){if("mouse"===t.pointerType||
t.pointerType===t.MSPOINTER_TYPE_MOUSE)return l()})):kl(i).on("touchmove",
(function()
{r=4500,O()})).on("touchend",h).on("mouseenter",e).on("mousemove",c).on("mouseleave
",l)}(),t.events.on(_i.PLAY,(function(t){A||0===t||
D()})).on(ec.nr,D).on([Ti.BUFFER_ENDED,_i.SEEKED,ec.Pc,ec.mc,ec.Gc],O).on(Ko,
(function(){g=!0})),t.events.on(ec.Bc,(function(t)
{t&&O()})),t.events.on(ec.sl,P).on(ec.Uc,(function(t){v=t,P()})).on(ec.Vc,
(function(t){p=t,P()})),t.events.on(ec.Xl,(function(){b=!0,D()})).on(ec.Zl,
(function(){b=!1})),function(){var e=!1,r=!1,o=0;t.events.on(ec.Bc,(function(t)
{r=t})),kl(i).on(Wi.pointerEvents?"pointerup":"click",(function(i){if(!r&&2!
==i.button&&i.target.classList&&function(t){return(t.classList.contains("vp-
title")||t.classList.contains("vp-target")||
E.contains(t.parentNode)&&"HEADER"===t.parentNode.tagName||T.contains(t))&&!
_.contains(t)}(i.target)){var
e=("pointerup"===i.type||"MSPointerUp"===i.type)&&"mouse"!
==i.pointerType&&i.pointerType!
==i.MSPOINTER_TYPE_MOUSE,u=g&&Wi.spatialPlayback&&t.config.video.spatial&&c;if(Wi.t
ouch||e){var a=-1!==t.backbone.supportedPresentationModes.indexOf("inline")&&!
Wi.mobileAndroid;if(!u){if(g&&a)return;return void t.events.fire(ec.Ac)}}1==+
+o&&setTimeout((function(){if(u){var e=d&&d.x===i.clientX&&d.y===i.clientY;return
1===o&&e&&!Wi.mobileAndroid&&t.events.fire(t.backbone.paused?ec.Ac:ec.xc),1!
==o&&t.backbone.getEffectByName("ThreeSixtyEffect").snapToCenter(),void(o=0)}if(1==
=o){if(n.get(Kc)&&!n.get(Qc))return;t.events.fire(t.backbone.paused?
ec.Ac:ec.xc)}else t.events.fire(ec.Sc);o=0}),200)}})),kl(i).on("mousedown",".vp-
video-wrapper",(function(t){var n;if(!e)return
y.classList.remove("hidden"),y.removeAttribute("hidden"),2!
==t.button&&document.createEvent&&((n=document.createEvent("MouseEvents")).initMous
eEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),y.dispatchEvent(n)),!
1})).on("contextmenu",".vp-video",(function(t){return
y.classList.remove("hidden"),y.removeAttribute("hidden"),!1})),t.events.on(Gs.Zs,
(function(t){if(t)return e=!0,void y.classList.add("hidden");e=!
1,y.classList.remove("hidden")}))}(),function(){var n,e;Wi.touch||
(kl(i).on("focus","a, button, input, [tabindex]",(function()
{e=this,clearTimeout(n),n=null,document.activeElement===this&&D()})),kl(i).on("blur
","a, button, input, [tabindex]",(function()
{document.activeElement===this&&(n=setTimeout(L,50))})),i.addEventListener("focus",
(function(t){D(),e&&e.focus()}),!1),t.events.on(ec.sl,(function(){m=!
0,i.removeAttribute("tabindex")})),t.events.on(ec.cl,(function(){m=!1})))}
(),t.events.on(ec.Zc,(function(t){j(),c&&c.adjustRenderSize(),b&&D()})).on(ec.tl,
(function(t){o=!0,c&&c.adjustRenderSize(),t?L():(D(),I())})),N(),t.events.on(Gs.Vs,
(function(){o=!0,u=!0,v=!0,p=!1,w=!1,g=!1,N(),I()})),t.events.on(Gs.ec,(function()
{var n=function(t){return function(){c&&t.apply(void
0,arguments)}},e=n((function(n){var
i=t.element.classList.contains("webvr");c&&i&&c.toggleVR()})),r=n((function(n)
{c.isVRPresenting?setTimeout((function()
{t.events.fire(xi.WEBVR_ENTER)}),100):setTimeout((function()
{t.events.fire(xi.WEBVR_EXIT)}),100)}));t.events.on(Gs.oc,n((function(){var
n=t.element.classList.contains("webvr");n||
t.element.classList.add("grabbable"),s&&s.updatePosition(t.element),!s||s.visible||
n||s.reveal()}))),t.events.on(ec.pc,n((function()
{F(),Wi.webvr&&c.isVRPresenting&&R&&c.toggleVR()}))),t.events.on(xi.CAMERA_UPDATE,n
((function(t){s&&s.setAngle(t.pitch,t.yaw)}))),t.events.on(Ko,n((function()
{t.config.video.spatial?function(){function n(t)
{h&&(h.innerHTML=Ff.render("threesixty_reminder",t))}var
e=t.backbone.getEffectByName("ThreeSixtyEffect");t.config.embed.settings.spatial_co
mpass?(s||(s=new zd(t.element.querySelector(".vp-controls-wrapper"),(function()
{e.snapToCenter()}))),s.updatePosition(t.element),s.reveal()):s&&s.hide(),t.events.
once(ec._c,(function(){var i=t.config.embed.cards;(null==i?void
0:i.length)&&i[0].timecode<15||(l.push(setTimeout((function(){n({showArrows:!
1,text:Wi.android?"Look around":"Click and drag to look
around"}),q(h),B(h),setTimeout((function(){return H(h)}),3e3)}),7e3)),Wi.android||
l.push(setTimeout((function(){n({showArrows:!1,text:Wi.android?"Look around":"Use
arrow keys to see more"}),q(h),B(h),setTimeout((function(){return
H(h)}),3e3)}),14e3)))})),function(){var t=i;if(!h){var
n=h=document.createElement("div");n.classList.add("cloaked"),n.classList.add("vp-
alert-round"),n.classList.add("vp-alert-round--top"),n.classList.add("vp-alert-
round--threesixty"),t.appendChild(n)}}()}():!
t.config.video.spatial&&s&&(F(),V())}))),(Wi.webvr||Wi.stereoscopic||
Wi.webxr)&&(Wi.webvr&&window.addEventListener("vrdisplaypresentchange",r,!
1),t.events.on(ec.zc,n((function(){V(),Wi.webvr&&c.hasVRHeadset&&R?
c.toggleVR():t.events.fire(ec.Sl)}))),t.events.on(xi.WEBVR_HARDWARE_AVAILABLE,n((fu
nction(t){var
n=i.querySelector(".stereoscopic");n&&n.classList.contains("off")&&R&&n.classList.r
emove("off")}))),t.events.on(xi.WEBVR_ENTER,n((function(n)
{window.addEventListener("vrdisplaydisconnect",e,!
1),window.addEventListener("vrdisplaydeactivate",e,!1);var
r=i.querySelector(".stereoscopic");r&&r.classList.add("on"),s&&s.hide(),t.element.c
lassList.remove("grabbable"),t.element.classList.add("webvr"),c.isUserInteracting=!
1}))),t.events.on(xi.WEBVR_EXIT,n((function(n)
{window.removeEventListener("vrdisplaydisconnect",e),window.removeEventListener("vr
displaydeactivate",e);var
r=i.querySelector(".stereoscopic");r&&r.classList.remove("on"),s&&s.reveal(),t.elem
ent.classList.add("grabbable"),t.element.classList.remove("webvr"),c.isUserInteract
ing=!0}))));var o=null,u=n((function(n){var
i=t.element.classList.contains("webvr");f||i||(f=!
0,n.preventDefault(),t.element.classList.add("grabbing"),d={x:n.clientX,y:n.clientY
},c.makeContact(d))})),a=n((function(n){var
i=t.element.classList.contains("webvr");f&&!
i&&(V(),c.move({x:n.clientX,y:n.clientY}))})),v=n((function(n){var
i=t.element.classList.contains("webvr");f&&!
i&&(t.element.classList.remove("grabbing"),c.releaseContact(!1),f=!
1)})),p=n((function(n){n.preventDefault(),t.element.classList.contains("webvr")||
(c.isUserInteracting||(c.isUserInteracting=!0),null!
==o&&clearTimeout(o),V(),o=setTimeout((function()
{t.element.classList.remove("player-cursor-
hide"),t.element.classList.add("grabbable"),c.isUserInteracting=!
1}),500),t.element.classList.add("player-cursor-
hide"),t.element.classList.remove("grabbable"),c.moveWheel({x:n.deltaX,y:n.deltaY})
)})),m=n((function(t){f||(f=!
0,c.makeContact({x:t.touches[0].clientX,y:t.touches[0].clientY}))})),b=n((function(
t)
{f&&(t.preventDefault(),V(),c.move({x:t.touches[0].clientX,y:t.touches[0].clientY})
)})),w=n((function(t){c.releaseContact(!0),f=!1})),g=n((function(t){f||
V(),c.moveDevice(t.alpha,t.beta,t.gamma,t.orientation)})),_=n((function(n){f=!
1,t.element.classList.remove("grabbing"),c.abandonMotion()}));t.events.on(Ko,
(function(){Wi.android&&c&&window.addEventListener("deviceorientation",g,!
1)})),t.events.once(Ko,(function(){t.store.watch("ui.player.boundingRect",
(function(){s&&s.updatePosition(t.element),c&&c.adjustRenderSize(),f=!
1})),Wi.pointerEvents?
(kl(y).on("pointerdown",u),window.addEventListener("pointermove",a),window.addEvent
Listener("pointerup",v),window.addEventListener("pointerleave",_)):
(kl(y).on("mousedown",u).on("wheel",p),window.addEventListener("touchstart",m,!!
Wi.passiveEvents&&{passive:!1}),window.addEventListener("touchmove",b,!!
Wi.passiveEvents&&{passive:!1}),window.addEventListener("touchend",w,!!
Wi.passiveEvents&&{passive:!
1}),window.addEventListener("mousemove",a),window.addEventListener("mouseup",v),win
dow.addEventListener("mouseleave",_))}))})),t.events.on(Zo,(function(t)
{F(),c=t,V()})),t.events.on(ec.Ec,(function(){w=!
0,clearTimeout(C),C=null})),t.events.on(ec.Tc,(function(){w=!1})),{}}var
Kd=function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:function(){};this.Yf=t,this.sd=this.Yf.debugCollector,this.ld=n}var
n=t.prototype;return n.getCurrent=function(t){return
this.Yf.debugCollector.getCurrent(t)},n.getSeries=function(t){return
this.Yf.debugCollector.getSeries(t)},n.getTemplateData=function(){var
t,n,i,e=this.sd.getCurrent("scanner"),r="MediaSourceScanner"===e,o="HLSLiveScanner"
===e,u=this.sd.getCurrent("video_dims"),a=!(!this.Yf.config.request.files||!
this.Yf.config.request.files.dash)&&this.Yf.config.request.files.dash.separate_av,s
=this.sd.getCurrent("vr_headset")||
null,c=this.Yf.currentTime,l=vt(c,this.Yf.backbone.buffered),f=c+l,h=this.fd(this.Y
f.backbone.buffered),d=this.Yf.backbone.brainDebug,v={playerVersion:kc(this.Yf.conf
ig),sessionId:this.Yf.config.request.session,clientIp:null==(t=this.Yf.config.reque
st)||null==(n=t.client)?void
0:n.ip,clipId:this.Yf.config.video.id,isDash:r,isLive:o,embedSize:u,separateAudioVi
deo:a,isCopyDisabled:!!this.Yf.doNotTrackEnabled||
this.Yf.config.embed.settings.background,isDNTEnabled:this.Yf.doNotTrackEnabled,hid
eCloseButton:!!
this.Yf.config.embed.settings.background,vrHeadsetName:s,currentTime:Is(c,3),buffer
Ahead:Is(l,3),bufferEnd:Is(f,3),readyState:this.Yf.bac
kbone.readyState,support:JSON.stringify(Wi),ua:null==(i=navigator)?void
0:i.userAgent,bufferedRanges:JSON.stringify(h),brainDebug:JSON.stringify(d)};return
Object.assign(v,this.dd(),this.vd(),this.pd(),this.bd(),this.wd(),this.gd(o),this.y
d(),this._d())},n.dd=function(){var
t=this.sd.getCurrent("bandwidth");return{bandwidthKbps:t?"".concat(Math.floor(t.val
ue/1e3).toLocaleString(),"
Kbps"):0,bandwidthMinKbps:"".concat(Math.floor(this.sd.getCurrent("min_bandwidth")/
1e3).toLocaleString(),"
Kbps"),bandwidthMaxKbps:"".concat(Math.floor(this.sd.getCurrent("max_badwidth")/1e3
).toLocaleString()," Kbps")}},n.vd=function(){var
t=this.sd.getCurrent("streams");return{codec:t?
t.codec:null,resolution:t?"".concat(t.width,"×").concat(t.height,"@").concat(Math.r
ound(t.framerate)," ").concat(Math.round(t.bitrate/1e3).toLocaleString()," Kbps
").concat(t.audioBitrate?" /
".concat(Math.round(t.audioBitrate/1e3).toLocaleString(),"
Kbps"):""):null}},n.pd=function(){var
t=this;return{testGroup:Object.keys(this.Yf.config.request.ab_tests).map((function(
n){return"".concat(n,": ").concat(t.Yf.config.request.ab_tests[n].group)})).join(",
")}},n.bd=function(){var t=this.sd.getCurrent("total_frames")||
0,n=this.sd.getCurrent("dropped_frames")||
0;return{totalFrames:t,droppedFrames:n,droppedFramesPercent:0!
==t?"".concat((n/t*100).toFixed(2),"%"):0}},n.wd=function(){var
t=this.sd.getCurrent("files");return t?{delivery:t.mime}:null},n.gd=function(t)
{return t?{liveLatency:"".concat(this.sd.getCurrent("live_latency").toFixed(2),"
seconds"),liveSessionID:this.Yf.config.video.live_event.id}:null},n.yd=function()
{if(!this.Yf.config.video.p2p)return null;var
t=sa(window,"Streamroot.instances[0].stats"),n=sa(t,"realtime.dnaSources");if(void
0===n)return null;var
i=sa(t,"currentContent.cdnDownload"),e=sa(t,"currentContent.dnaDownload");return{p2
pSources:n,p2pOffload:"".concat(Is(e/(i+e)*100,1),"%")}},n._d=function(){var
t=this.Yf.config.request.drm;return t?{drmEnabled:!!
t,drmFastly:t.fastly}:null},n.fd=function(t){if(!t)return null;for(var
n=t.length,i=0,e=[];i<n;i++){var
r=t.start(i),o=t.end(i);e.push({i:i,start:r,end:o})}return e},n.kd=function(t){var
n=document.createElement("textarea");n.value=t,this.Yf.element.appendChild(n),n.sel
ect();var i=document.execCommand("copy");return
this.Yf.element.removeChild(n),i},n.copyDebugPayload=function(){var t=this;return
new r((function(n,i){var e=t.getTemplateData(),r=t.getSeries("markers");delete
e.bandwidthSeriesSvg;var
o={version:2,tpl:e,mark:r},u=btoa(JSON.stringify(o));return t.kd(u)?
n():i()}))},H(t,[{key:"onDataChange",get:function(){return this.ld},set:function(t)
{this.ld=t,this.Yf.debugCollector.onDataChange=this.ld}}]),t}(),Yd=function(t,n,i)
{return Math.min(Math.max(t,n),i)},Jd=function(){function t(t,n)
{this.Z=t,this.Yf=n,this.Ed=new Kd(this.Yf),this.Rn(),this.J=!1,this.Td=!
1,this.Sd=!1}var n=t.prototype;return n.render=function(){if(this.J){var
t={};try{t=this.xd()}catch(t)
{}this.Z.innerHTML=Ff.render("debug_panel",t)}},n.Ad=function(){if(this.J)try{var
t=this.xd();this.Z.querySelector(".vp-stats-debug-
values").innerHTML=Ff.render("debug_values",t)}catch(t){}},n.xd=function(){var
t=this.Ed.getCurrent("scanner"),n="MediaSourceScanner"===t,i="HLSLiveScanner"===t,e
=n||i?this.Md():null,r=n||i?this.Cd(e):null,o=this.Ed.getTemplateData();return
o.bandwidthSeriesSvg=r,o.showSessionId=this.Sd,o},n.Rn=function(){var
t=this;this.Yf.events.on(ec.wl,(function(){"tiny"!
==t.Yf.store.get("ui.player.mode")&&(t.Z.classList.contains("hidden")?
t.showPanel():t.hidePanel())})),kd(this.Z,".vp-copy-
debug",this.Rd.bind(this)),kd(this.Z,".vp-stats-debug-close",(function(){return
t.hidePanel(),!
1})),this.Yf.store.watch("ui.player.mode",this.toggleVisibility.bind(this)),this.Yf
.events.on(ec.Ml,this.Ad.bind(this))},n.hidePanel=function()
{this.Z.classList.add("hidden"),this.Z.setAttribute("hidden",""),this.Z.setAttribut
e("aria-hidden","true"),this.J=!1},n.showPanel=function()
{this.Z.classList.remove("hidden"),this.Z.removeAttribute("hidden"),this.Z.setAttri
bute("aria-hidden","false"),this.J=!0,this.render()},n.toggleVisibility=function(t)
{if("tiny"===t&&this.J)return this.Td=!0,void
this.hidePanel();this.Td&&(this.showPanel(),this.Td=!1)},n.Rd=function(){var
t=this;this.Ed.copyDebugPayload().then((function(){var n=t.Z.querySelector(".vp-
copy-debug-label"),i=n.getAttribute("data-original-text"),e=n.innerText,r=i;i||
(n.setAttribute("data-original-text",e),r=e),n.innerHTML="Copied";var
o=setTimeout((function(){n.innerHTML=r,clearTimeout(o)}),1500)})).catch((function()
{t.Id()}))},n.Md=function()
{return{timeSeries:this.Ed.getSeries("bandwidth"),max:this.Ed.getCurrent("max_badwi
dth")}},n.Od=function(t){var n=Object.keys(sc).find((function(n){return
sc[n]===t}));return cc[n]},n.Id=function(){this.Sd=!0,this.Ad()},n.Cd=function(t)
{for(var n=t.timeSeries,i=t.max||1,e=n.length,r=e<100?0:e-100,o=n[r],u=n[e-1],a=o?
o.time:0,s=u?u.time:0,c=[],l=r;l<e;l++){var f=n[l],h=(f.time-a)/(s-a)*250,d=14-
14*f.value/i;isNaN(d)&&(d=0),isNaN(h)&&(h=0),c.push("".concat(h,",").concat(Yd(d,0,
14)))}var v={height:14,width:250,points:c.join(" "),markers:this.jd(a,s)};return
Ff.render("time_series_graph",v)},n.jd=function(t,n){var
i=this,e=this.Ed.getSeries("markers")||[];return 0===e.length?
null:e.map((function(e){var r=e.t;if(r<t||r>n)return"";var o=(r-t)/(n-t)*250;return
isNaN(o)&&(o=0),"<g>\n <title>".concat(e.title,'</title>\n
<line class="stats-debug-marker" x1="').concat(o,'" y1="',0,'" x2="').concat(o,'"
y2="').concat(14,'" stroke-width="1" stroke="').concat(i.Od(e.type),'" />\n
</g>')})).join("")},t}(),$d=function(){function t(t)
{this.alertTextElement=t.querySelector(".vp-text-alert-
wrapper"),this.alertContentTitle=this.alertTextElement.querySelector(".vp-live-
start-time-title"),this.alertContentTime=this.alertTextElement.querySelector(".vp-
live-start-time-
body"),this.alertContentFooter=this.alertTextElement.querySelector(".vp-live-start-
time-footer")}var n=t.prototype;return n.show=function(t,n,i)
{this.alertContentTitle.innerHTML=t,this.alertContentTime.innerHTML=n,this.alertCon
tentFooter.innerHTML=i,this.alertContentTitle.classList.remove("hidden"),this.alert
ContentTime.classList.remove("hidden"),this.alertContentFooter.classList.remove("hi
dden"),this.alertTextElement.classList.remove("hidden")},n.hide=function()
{this.alertContentTitle.classList.add("hidden"),this.alertContentTime.classList.add
("hidden"),this.alertContentFooter.classList.add("hidden"),this.alertTextElement.cl
assList.add("hidden")},t}(),Xd=function(){function t(t,n,i){this.textAlert=new
Zh(t),this.timeAlert=new $d(t),this.player=n,this.store=i,this.startTime=new
Date(this.store.get(Jc,null)),this.ks=!1,this.Ld(),this.Dd()}var
n=t.prototype;return n.disable=function(){this.hide(),this.ks=!0},n.hide=function()
{this.textAlert.hide(),this.timeAlert.hide()},n.Dd=function(){(this.store.get(Xc)||
this.store.get(Zc))&&this.Pd(),this.store.get(tl)&&this.Nd()},n.Ld=function()
{this.player.events.on(au.EVENT_ACTIVE,this.Pd.bind(this)),this.player.events.on(au
.STREAM_ONLINE,this.Fd.bind(this)),this.player.events.on(au.STREAM_OFFLINE,this.Ud.
bind(this)),this.player.events.once(au.EVENT_ENDED,this.Nd.bind(this))},n.Pd=functi
on(){this.Vd()>6e4?(this.textAlert.hide(),this.Bd()):
(this.timeAlert.hide(),this.textAlert.show("This event hasn't started
yet"))},n.Bd=function(){var t=this.Hd();this.timeAlert.show(t[0],t[1],t[2]),!
this.store.get(Xc)&&!this.store.get(Zc)||this.ks||
setTimeout(this.Dd.bind(this),3e4)},n.Vd=function(){return this.startTime-new
Date},n.Hd=function(){var
t=this.Vd(),n=(t/6e4).toFixed(0),i=(t/36e5).toFixed(0),e=(t/864e5).toFixed(0),r=(ne
w Date).toDateString()===this.startTime.toDateString();if(e>1||!r)return["This
event is scheduled for","".concat(Bf[this.startTime.getMonth()],"
").concat(this.startTime.getDate()),"".concat("at","
").concat(Gf(this.startTime))];if(i>1&&r)return["This event is scheduled
for","Today","".concat("at"," ").concat(Gf(this.startTime))];var
o=n>1?"minutes":"minute";return["This event will start in","".concat(n,"
").concat(o),""]},n.Fd=function(){this.hide()},n.Ud=function()
{this.textAlert.show("Live stream
offline"),Wi.iOS&&Wh.element&&(this.player.events.fire(ec.Qc),Wh.exit())},n.Nd=func
tion(){this.textAlert.show("Live event ended")},t}();function Zd(t,n){var
i,e=n.querySelector(".vp-notification");function r(t,r){if(null!
==n.parentElement.offsetParent)
{n.classList.remove("hidden"),n.removeAttribute("hidden"),n.setAttribute("data-
name",t);var u=function(t){var
i="watchlater"===t||"unwatchlater"===t?.5:.4,e=n.clientHeight;return
n.clientHeight>n.clientWidth&&(e=n.clientWidth),
{height:Math.round(e*i),width:Math.round(e*i*1.6)}}
(t),a="width:"+u.width+"px;height:"+u.height+"px";e.style.cssText=a,e.innerHTML=r,"
watchlater"!==t&&"unwatchlater"!==t||function(t,n){var i=t.querySelector(".hour-
hand"),e=t.querySelector(".minute-hand");if(i&&e){var r=n?1:-1,o=new
Date,u=Math.abs(o.getHours()-12),a=o.getMinutes(),s=a/60*360-
135,c=u/12*360+a/60*5,l=c+45*r,f=s+540*r;i.style[Wi.transformProperty]="rotate("+c+
"deg)",e.style[Wi.transformProperty]="rotate("+s+"deg)",window.requestAnimationFram
e((function(){t.classList.add("animate"),Wi.browser.firefox||Wi.browser.opera||
window.requestAnimationFrame((function()
{i.style[Wi.transformProperty]="rotate("+l+"deg)",e.style[Wi.transformProperty]="ro
tate("+f+"deg)"}))}))}}
(e,"watchlater"===t),clearTimeout(i),n.classList.remove("animate"),window.requestAn
imationFrame((function()
{n.classList.remove("invisible"),i=setTimeout(o,750)}))}}function o()
{n.classList.add("animate"),n.classList.add("invisible")}function u()
{n.classList.remove("animate"),n.classList.remove("invisible"),n.classList.add("hid
den"),n.setAttribute("hidden",""),n.removeAttribute("data-
name"),e.innerHTML="",e.classList.remove("filled"),e.classList.remove("animate"),t.
events.fire(ec.Af)}return kl(n).on("transitionend",(function(t)
{e.contains(t.target)&&"height"===t.propertyName?
setTimeout(o,100):t.target===n&&"opacity"===t.prop
ertyName&&window.requestAnimationFrame(u)})),t.events.on(ec.jl,(function(t){t||
r("like",Ff.render("icon_heart"))})),t.events.on(ec.Ll,(function(t){t||
r("unlike",Ff.render("icon_broken_heart"))})),t.events.on(ec.Dl,(function(t){t||
r("watchlater",Ff.render("icon_clock"))})),t.events.on(ec.Pl,(function(t){t||
r("unwatchlater",Ff.render("icon_clock"))})),t.events.fire(ec.Tf),{}}function
Qd(t,n){var i=rt(),e=!1;function r(t){As(t,"facebook",
{width:580,height:400})}function o(t){As(t,"twitter",
{width:550,height:420})}function u(t){As(t,"tumblr",{width:540,height:600})}var
a={get events(){return i},setup:function(){var i;n.classList.remove("vp-share-
embed-active","vp-share-embed-only"),(null==(i=t.config.embed.settings.share)?void
0:i.embed_only)&&n.classList.add("vp-share-embed-only");var e=n.querySelector(".js-
embedCopy");e&&(e.style.width=function(t,n){var i=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:2;n=Object.keys(n).map((function(t){return n[t]}));var
e=t.cloneNode();e.style.visibility="hidden",e.style.padding=0,t.parentElement.appen
dChild(e);var r=n.map((function(t){return
e.innerText=t,e.clientWidth})),o=Math.max.apply(Math,tt(r)),u=window.getComputedSty
le(t),a=parseFloat(u.fontSize);return
t.parentElement.removeChild(e),"".concat((o+i)/a,"em")}(e,
["Copy","Copied!"])),t.events.on(ec.hl,r).on(ec.dl,o).on(ec.vl,u)},destroy:function
(){t.events.off(ec.hl,r).off(ec.dl,o).off(ec.vl,u)},getShareData:function(){var
n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},o=t.config.video.title,u=t.config.video.owner.name,a=t.config.video.share_url;re
turn
e=document.queryCommandSupported&&document.queryCommandSupported("copy"),r.template
=Ff.render("share",
{url:t.config.video.url,shareUrl:a,playerShareUrl:"https://".concat(t.config.player
_url,"/video/").concat(t.config.video.id,"/share"),title:o,owner:u,embed:"public"==
=t.config.video.embed_permission&&t.config.embed.settings.embed,embedOnly:null==(n=
t.config.embed.settings.share)?void
0:n.embed_only,embedCode:Ad(t.config.video.embed_code),copyButton:e,customizeEmbed:
!!t.config.video.url,readOnly:!Wi.touch,facebookIcon:Ff.render("icon_facebook",
{title:"Share on Facebook"}),twitterIcon:Ff.render("icon_twitter",{title:"Share on
Twitter"}),tumblrIcon:Ff.render("icon_tumblr",{title:"Share on
Tumblr"}),emailIcon:Ff.render("icon_mail",{title:"Share via
Email"}),embedIcon:Ff.render("icon_embed",{title:"Get embed code"}),strings:
{share:"Share",emailSubject:"Check out “"+o+"” from "+u+" on
Vimeo",emailBody:"Check out “"+o+"” from "+u+" on Vimeo.\n\nThe video is available
for your viewing pleasure at "+a+"\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.",embedTitle:"Embed",embedSubtitle:"Add this video to your site
with the embed code below.",copy:"Copy",copySuccess:"Copied!",customize:'<a
href="'.concat(t.config.video.url,'#embed" target="_blank" rel="noopener" aria-
describedby="new-window">')+"Customize this embed</a> on Vimeo"}}),r.qd=".js-
facebook",(null==(i=t.config.embed.settings.share)?void
0:i.embed_only)&&(r.wrapperClass="embed-only",r.qd=".js-embed-
input"),r},showShareView:function(){n.querySelector(".js-share-
screen").classList.remove("cloaked"),n.classList.remove("vp-share-embed-
active"),i.fire(ec._l)},showEmbedView:function()
{t.config.embed.settings.share.embed_only||(n.querySelector(".js-embed-
screen").classList.remove("cloaked"),n.classList.add("vp-share-embed-
active")),i.fire(ec.kl)}};return function(){var r;kl(n).on("transitionend",".js-
share-screen",(function(t)
{"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(i.fir
e(ec.Tl),this.classList.add("cloaked"))})).on("transitionend",".js-embed-screen",
(function(t)
{"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(i.fir
e(ec.El),this.classList.add("cloaked"),Rs(n))})).on("copy","input[name=embed_code]"
,(function(){t.events.fire(ec.ml)})),kd(n,".js-facebook",(function(){return
t.events.fire(ec.hl,this.href),ks(),!1})),kd(n,".js-twitter",(function(){return
t.events.fire(ec.dl,this.href),ks(),!1})),kd(n,".js-tumblr",(function(){return
t.events.fire(ec.vl,this.href),ks(),!1})),kd(n,".js-email",(function(){return
t.events.fire(ec.pl),window.top.location=this.href,ks(),!1})),kd(n,".js-embed",
(function(){return t.events.fire(ec.rl),a.showEmbedView(),ks(),!1})),kd(n,".js-
embedCopy",(function(){if(e)
{n.querySelector("input[name=embed_code]").select();try{document.execCommand("copy"
)&&function(){t.events.fire(ec.ml);var i=n.querySelector(".js-
embedCopy");i.innerHTML=i.getAttribute("data-success-
label"),clearTimeout(r),r=setTimeout((function(){i.innerHTML=i.getAttribute("data-
label")}),2e3)}()}catch(t){}return document.activeElement.blur(),!1}})),Wi.touch?
kl(n).on("focus","input[name=embed_code]",(function(){var
t=this;setTimeout((function()
{t.setSelectionRange(0,9999),t.setAttribute("readonly","readonly")}),0)})).on("blur
","input",(function()
{this.removeAttribute("readonly")})):kl(n).on("click","input[name=embed_code]",
(function(){this.setSelectionRange(0,9999)}))}(),a}function tv(t,n,i){var
e,o,u,a=i.querySelector(".vp-outro"),s=null,c=!1,l=!1,f=!1,h=!1,d=!
1,v=$f(S,250),p=null,m=t.config.request.ads instanceof Object,b=!1;function w()
{return!d&&null===s&&!t.config.embed.loop}function g()
{if(t.config.embed.outro===lc.VOD)return o=lc.VOD,s=y(o),!
0===h&&E(),r.resolve(s);d=!0;var n=t.config.embed.email_capture_form||
t.config.embed.email||{};return
Xe("https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/outr
o?
on_site=").concat(t.config.embed.on_site,"&type=").concat(t.config.embed.outro,"&em
ail=").concat(n?1:0),{withCredentials:!0}).json().then((function(n){return
o=n.type,
(s=y(o,n.data))&&(s.bgimage&&Dc(s.bgimage),s.contexts&&s.contexts.forEach((function
(t){t.videos.forEach((function(t)
{Dc(t.thumbnail)}))}))),Mh(t.config.video.owner)&&function(n,i)
{[lc.VIDEOS,lc.THREEVIDEOS,lc.PROMOTED].includes(n)&&i.contexts&&i.contexts.forEach
((function(n){n.videos.reduce((function(n,i){return n.then(function(n){return
function(){return t.preloadVideo("auto",n.id,{autoplay:!0}).catch((function(t)
{}))}}(i))}),r.resolve())}))}(o,s),s}))}function y(n){var
i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},e=Oc(t.element.clientWidth*Wi.devicePixelRatio,t.element.clientHeight*Wi.deviceP
ixelRatio),r=e.width,o=e.height;if(i.img_base&&(i.bgimage=jc({width:r,height:o,base
Url:i.img_base})),n===lc.VOD){var u=void 0!==t.config.video.vod.is_preorder?
t.config.video.vod.is_preorder:!!
t.config.video.vod.date_available,a=t.config.video.vod.is_coming_soon,s=t.config.vi
deo.vod.date_available_formatted_datetime||
t.config.video.vod.date_available,c="Coming soon to Vimeo On
Demand.";a&&s&&(c="Coming soon to Vimeo On Demand on "+s+"."),u&&(c="Pre-order now.
Watch on
"+s+"."),i={purchased:t.config.user.purchased,title:t.config.video.vod.feature_titl
e,url:t.config.video.vod.url,currency:t.config.request.currency,countries:t.config.
video.vod.countries,country:t.config.request.country,buttons:t.config.video.vod.pur
chase_options,translationMap:t.config.request.dynamic_translation_map,isPreorder:u,
isComingSoon:a,releaseDate:s,strings:{watch:u?"Watch on "+s:"Watch
Now",preRelease:c}}}return[lc.VIDEOS,lc.THREEVIDEOS,lc.PROMOTED].includes(n)&&(t.co
nfig.user.following=i.following,(i={contexts:Array.isArray(i)?i:
[i],owner:t.config.video.owner.id,bgimage:i.bgimage,following:i.following}).context
s&&i.contexts.forEach((function(t){t.videos.forEach((function(n)
{if(n.fullTitle=n.title,n.byline="",n.owner.id!==i.owner&&(n.fullTitle=n.title+"
from "+n.owner.name,n.byline="from "+n.owner.name),n.thumbnail_base){var
e=Math.round(r/t.videos.length);n.thumbnail=jc({width:e,height:Math.round(e/1.778),
baseUrl:n.thumbnail_base})}}))}))),n===lc.LINK&&(i.url=Pd(i.url),i.url2=Pd(i.url2))
,n===lc.SHARE&&(i.strings={back:"Back"}),i}function _(t){a.classList.toggle("vp-
outro--link-medium",t)}function k(t){a.classList.toggle("vp-outro--link-
large",t)}function E(){if(c=!0,o===lc.BEGINNING)return a.innerHTML="",void
t.events.fire(Gs.Vs);if(w())g().then((function(){return E()})).catch((function()
{}));else{var r=function(){if([lc.VIDEOS,lc.THREEVIDEOS,lc.PROMOTED].includes(o))
{var n;if(0===((null==(n=s)?void 0:n.contexts)||[]).reduce((function(t,n){return
t+n.videos.length}),0))return null;s.showFollowButton=!
t.config.user.owner&&t.config.user.logged_in,s.strings={follow:"Follow",following:"
Following",unfollow:"Unfollow"}}return s&&(s.target=!t.config.embed.on_site),p=o,
[lc.THREEVIDEOS,lc.PROMOTED].includes(o)&&(p=lc.VIDEOS),Ff.render("outro_"+p,s)}
();r&&(a.innerHTML=r,a.setAttribute("data-
type",p),i.classList.remove("hidden"),i.removeAttribute("hidden"),l=!0,
[lc.VIDEOS,lc.THREEVIDEOS].includes(o)?function(){var
t=document.querySelector(".js-outro-followWrap");if(t){var
n=window.getComputedStyle(t),i=parseFloat(n.fontSize);t.style.width="".concat(t.cli
entWidth/i,"em")}}():o===lc.LINK?
(n.watch("ui.outro.isLinkTitleVisible",_),n.watch("ui.outro.isLinkDescriptionVisibl
e",k),_(n.get("ui.outro.isLinkTitleVisible")),k(n.get("ui.outro.isLinkDescriptionVi
sible"))):o===lc.SHARE&&function(){var t=i.querySelector(".js-outro-
content"),n=e.getShareData();t.innerHTML=n.template,e.setup()}
(),window.requestAnimationFrame((function()
{window.requestAnimationFrame((function()
{i.classList.add("in"),S()}))})))}}function T(){if(l)return e.destroy(),c=!1,f=!
1,l=!1,void window.requestAnimationFrame((function()
{i.classList.remove("in"),t.events.fire(ec.Zl),A()}));c&&(c=!
1,t.events.fire(ec.Zl))}function S(){var n;if(!f&&i.clientWidth)
{kl(window).off("resize",v),f=!0;var e=[];(null==(n=s)?void
0:n.contexts)&&s.contexts.forEach((function(t)
{t.videos&&t.videos.forEach((function(t){var n=t.id,i=a.querySelector('[data-video-
id="'+n+'"]');i&&i.clientWidth>0&&e.push(n)}))})),t.events.fire(ec.Xl,e)}}function
x(){u=setTimeout((function(){var n=t.config.embed.email_capture_form||
t.config.embed.email||{};"after-video"===n.position||"after"===n.positio
n?(t.events.fire(ec.Al),t.events.on(ec.bf,(function()
{t.events.fire(Gs.Qs)}))):t.events.fire(Gs.Qs)}),250)}function A()
{kl(window).off("resize",v),kl(window).on("resize",v)}return
t.events.on(_i.TIME_UPDATE,(function(t){var
n=t.currentTime,i=t.duration;t.timeProgress,h=!1,w()&&n>=i-
10&&g().catch((function(){}))})),t.events.on(Ko,(function()
{[lc.NOTHING,lc.BEGINNING,lc.EMAIL].includes(t.config.embed.outro)&&(o=t.config.emb
ed.outro,s=!1)})),t.events.on(ec.Hf,(function(){b=!0})),t.events.on(ec.pc,
(function(){if(m&&!b)return t.events.on(ec.Hf,x),void(m=!
1);x()})),t.events.on(ec._loadVideo,(function()
{clearTimeout(u)})),t.events.on(Gs.Qs,(function(n,i){t.performDelegateAction(nc,
(function(){n&&(o=n,s=null,d=!1),i&&i.data&&(s=y(n,i.data)),h=!
0,E()}))})),kl(i).on("click",".js-videoLink",(function(n){var
i=parseInt(this.getAttribute("data-video-
id"),10);t.events.fire(ec.Ql,i),Mh(t.config.video.owner)&&(n.preventDefault(),t.loa
dVideo(i,{autoplay:!0}))})),kl(i).on("click",".js-cta",(function(n)
{t.events.fire(ec.df,this.href)})),kl(i).on("click",".js-link",(function(n)
{t.events.fire(ec.sf,this.href)})),kl(i).on("click",".js-imageLink",(function(n)
{t.events.fire(ec.hf,this.href)})),kl(i).on("transitionend",(function(t)
{i.classList.contains("in")||
(i.classList.add("hidden"),i.setAttribute("hidden",""))}),!
1),t.events.on([Gs._hideOutro,Gs.Vs,_i.PLAY,_i.SEEKED,ec.Dc],T),t.events.on(ec.Xl,
(function(){t.element.classList.add("player-outroVisible")})).on(ec.Zl,(function()
{t.element.classList.remove("player-outroVisible")})),kd(i,".js-outro-follow",
(function(){t.events.fire(ec.al)})),kl(i).on("mouseleave",".js-outro-follow",
(function(t){var n=document.querySelector(".js-outro-
follow");n&&n.classList.remove("vp-outro-follow--activated")})),t.events.on(ec.lf,
(function(){var t=document.querySelector(".js-outro-
follow");t&&(t.setAttribute("aria-pressed",!0),t.classList.add("vp-outro-follow--
activated"))})),t.events.on(ec.ff,(function(){var t=document.querySelector(".js-
outro-follow");t&&t.setAttribute("aria-pressed",!1)})),t.events.on(Gs._showOverlay,
(function(){setTimeout((function()
{i.classList.add("hidden")}),150)})),t.events.on(ec.cl,(function()
{i.classList.contains("in")&&i.classList.remove("hidden")})),t.events.on(Gs.Vs,
(function(){s=null,d=!1,m=t.config.request.ads instanceof Object})),kd(i,".js-vod-
button",(function(){var n=this.getAttribute("data-product-id");return
t.events.fire(ec.ol,n),!1})),kd(i,".js-vod-watch",(function(){if(!
("date_available"in t.config.video.vod))return T(),t.events.fire(ec.ol),!
1})),a&&((e=new Qd(t,a)).events.on(ec.kl,(function()
{t.config.embed.settings.share.embed_only||(i.querySelector(".js-
back").classList.remove("cloaked"),i.classList.add("embed-active"))})).on(ec._l,
(function(){i.classList.remove("embed-active")})),kd(i,".js-back",(function()
{return e.showShareView(),!1})),e.events.on(ec.El,(function(){i.querySelector(".js-
back").classList.add("cloaked")}))),A(),{}}function nv(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"after-
video"===(n=n||t.position)||"after"===n}function iv(t){return
jc({width:150,height:75,baseUrl:t})}var ev=function(){function t(t)
{this.element=t,this.cachedElements={}}var n=t.prototype;return
n.getElement=function(t){return this.cachedElements[t]||
(this.cachedElements[t]=this.element.querySelector(t)),this.cachedElements[t]},n.re
moveElement=function(t)
{this.getElement(t)&&(this.cachedElements[t].remove(),this.cachedElements[t]=null)}
,n.updateAll=function(t,n){this.updateTitle(t.text||
t.custom_message),this.updateSkipBtn(t.allow_skip||
t.skippable,t.position),this.updatePrivacyPolicy(t.privacy_policy),this.updateCusto
mLogo(t.custom_logo),this.updateFields(t.custom_fields,n)},n.updateTitle=function(t
){var n=this.getElement(".vp-email-capture-title");if(t&&n)n.textContent=t;else
if(t&&!n){var i=this.getElement(".vp-email-capture-title-logo-
wrap"),e=Ff.render("email_capture_title",
{title:t});i.insertAdjacentHTML("beforeend",e)}else!t&&n&&this.removeElement(".vp-
email-capture-title")},n.updateSkipBtn=function(t,n){var i=this.getElement(".vp-
email-capture-form-button--cancel");if(t&&i)i.value=nv(null,n)?"Skip":"Skip to
video";else if(t&&!i){var e=this.getElement(".vp-email-capture-form-
skip"),r=Ff.render("email_capture_skip",
{position:n,skipText:"Skip",skipToVideoText:"Skip to
video",positionIsAfter:nv(null,n)});e.insertAdjacentHTML("afterbegin",r)}else!
t&&i&&this.removeElement(".vp-email-capture-form-button--
cancel")},n.updatePrivacyPolicy=function(t){var n=this.getElement(".vp-email-
capture-privacy-policy");if(t&&n)n.href=encodeURI(t);else if(t&&!n){var
i=this.getElement(".vp-email-capture-disclaimer-
wrapper"),e=Ff.render("email_capture_privacy_policy",{text:"Privacy
policy",url:t});i.insertAdjacentHTML("beforeend",e)}else!
t&&n&&this.removeElement(".vp-email-capture-privacy-
policy")},n.updateCustomLogo=function(t){var n=this.getElement(".vp-email-capture-
logo");if(t&&n)n.src=iv(t);else if(t&&!n){var i=this.getElement(".vp-email-capture-
title-logo-wrap"),e=Ff.render("email_capture_logo",
{url:iv(t)});i.insertAdjacentHTML("afterbegin",e)}else!
t&&n&&this.removeElement(".vp-email-capture-logo")},n.updateFields=function(t,n)
{var i=this;if(t){var e=this.getElement(".vp-email-capture-form-fields-
slider").children;e.length>t.length&&U(e).forEach((function(i){t.some((function(t)
{return i.dataset.id===String(t.id)}))||(i.remove(),n())})),t.forEach((function(t)
{i.updateField(t,n)}))}},n.updateField=function(t,n){var
i=t.id,e=t.field_name,r=t.required,o=t.position_in_form,u=this.getElement(".vp-
email-capture-form-fields-slider"),a=this.element.querySelector("[for=custom-
field-".concat(i,"]")),s=this.element.querySelector("#custom-
field-".concat(i));if(a&&s){var
c=s.parentElement,l=u.children;a.textContent=e,s.name=e,s.toggleAttribute("required
",r),c.classList.toggle("required",r);var f=U(l).indexOf(c);f!
==o&&(u.insertBefore(l[f],l[o]),n())}else{var h=Ff.render("email_capture_field",
{field:t});o===u.children.length?
u.insertAdjacentHTML("beforeend",h):u.children[o].insertAdjacentHTML("beforebegin",
h),n()}},n.updateWebinarStartTime=function(t){var n=this.getElement(".vp-email-
capture-wrapper"),i=n.querySelectorAll(".vp-email-capture-start-time"),e=Jf(new
Date(t));if(t&&i.length)U(i).forEach((function(t){t.textContent=e}));else if(t&&!
i.length){var r=this.getElement(".vp-email-capture-title-logo-
wrap"),o=n.querySelectorAll(".vp-email-capture-thank-you-
title"),u=Ff.render("email_capture_start_time",
{startTime:e});r.insertAdjacentHTML("afterbegin",u),U(o).forEach((function(t)
{u=Ff.render("email_capture_start_time",
{startTime:e}),t.insertAdjacentHTML("afterbegin",u)}))}else!
t&&i.length&&U(i).forEach((function(t)
{t.parentNode.removeChild(t)}))},n.clearCachedElements=function()
{this.cachedElements={}},t}();function rv(t,n,i){return i?n?n(t):t:(t&&t.then||
(t=r.resolve(t)),n?t.then(n):t)}function ov(t,n){try{var i=t()}catch(t){return
n(t)}return i&&i.then?i.then(void 0,n):i}function uv(){}function av(t)
{if(t&&t.then)return t.then(uv)}function sv(t){return function(){for(var
n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{return
r.resolve(t.apply(this,n))}catch(t){return r.reject(t)}}}var
cv={skip_to_video:"Skip to
video",skip:"Skip",next:"Next",back:"Back",submit:"Submit",disclaimer:"Share your
email with the owner of this video",privacy_policy:"Privacy
policy",thank_you:"Thank you!",video_starts:"Video starts in",successful:"Your
information was successfully submitted.",step:"Step",of:"of",aria_label:"Email
capture form",reg_login_title:"Enter your email to see if you’re
registered",reg_thank_you:"Thanks for registering!",reg_thank_you_subtitle:"Please
check your email for your personal webinar viewing link. We'll also send you a
reminder on the day of the webinar.",reg_bypass:"Already
registered?",reg_go_back:"Need to register?",login_thank_you:"Great news! You’re
already registered",login_thank_you_subtitle:"Please check your email for your
personal webinar viewing link. We’ll also send you a remind on the day of the
webinar."};function lv(t,n,i){var e,r,o,u,a,s,c,l,f,h,d,v,p=sv((function()
{Rs(i);var e=L(a),r=t.config.request,o=r.timestamp,u=r.expires;function s(n)
{v.classList.remove("loading"),3152===(null==n?void 0:n.error_code)?O(!1):
(f.setCustomValidity("Uh oh. There was a problem. Please try
again."),f.setAttribute("aria-invalid","true"),t.events.fire(ec.rf),T())}var
c="https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/webin
ar/login?time=").concat(o,"&expires=").concat(u);return
v.classList.add("loading"),av(ov((function(){return rv(Xe(c,
{method:"POST",body:e,headers:{"Content-type":"application/json"},withCredentials:!
0}),(function(i){return rv(i.json(),(function(i){!function(i){n.dispatch(Nl(!
0)),t.events.fire(ec.uf,i),"started"===i.video.live_event.status?
(I(),t.events.fire(ec.Ac)):O(!1)}(i)}))}))}),(function(t){return av(ov((function()
{return rv(t.response.json(),(function(t){s(t)}))}),(function()
{s()})))})))})),m=sv((function(){Rs(i);var
e=L(a),r=t.config.request,o=r.timestamp,u=r.expires;function s(n)
{v.classList.remove("loading"),3152===(null==n?void 0:n.error_code)?O(!0):
(f.setCustomValidity("Uh oh. There was a problem. Please try
again."),f.setAttribute("aria-invalid","true"),t.events.fire(ec.rf),T())}var
c="https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/webin
ar/registration?time=").concat(o,"&expires=").concat(u);return
v.classList.add("loading"),av(ov((function(){return rv(Xe(c,
{method:"PUT",body:e,headers:{"Content-type":"application/json"},withCredentials:!
0}),(function(i){return rv(i.json(),(function(i){!function(i){n.dispatch(Nl(!
0)),t.events.fire(ec.uf,i),"started"===i.video.live_event.status?
(I(),t.events.fire(ec.Ac)):O(!0)}(i)}))}))}),(function(t){return av(ov((function()
{return rv(t.response.json(),(function(t){s(t)}))}),(function()
{s()})))})))})),b=rt(),w=E(t.config),g=new ev(i),y=!1,_=!
1,k="Vimeo\\Controller\\VideoSettings\\ServiceController.getInteractions"===t.confi
g.embed.cont
ext;function E(t){var n,i;return t.video.webinar&&"ended"!
==t.video.webinar.status&&!Cu(t.video.webinar.registration_form)?
t.video.webinar.registration_form:(null==(n=t.embed)?void 0:n.email_capture_form)||
(null==(i=t.embed)?void 0:i.email)||{}}function T(){d.querySelector(".vp-
validation-bubble-message").innerHTML=f.validationMessage||"There is an error with
this input.",d.classList.remove("hidden"),d.classList.remove("vp-validation-bubble-
animate"),window.requestAnimationFrame((function(){d.classList.add("vp-validation-
bubble-animate")})),f.focus()}function S(){l.classList.add("vp-email-capture-input-
invalid"),T()}function x(){d.classList.remove("vp-validation-bubble-
animate"),l.classList.remove("vp-email-capture-input-invalid")}var A=function t(n)
{n.target===o&&(o.removeEventListener("transitionend",t),f.focus())};function M(t)
{var n=!(arguments.length>1&&void 0!==arguments[1])||
arguments[1],s=i.querySelector(".vp-email-capture-disclaimer-
wrapper"),d=i.querySelector(".vp-email-capture-current-
step"),v=i.querySelector(".vp-email-capture");l&&(l.setAttribute("aria-hidden",!
0),f.tabIndex=-1);var p=!r&&!k;c&&(p||k)&&(r=Es(e).height),l=u[(c=t)-1],f=a[c-
1],l&&f&&(l.setAttribute("aria-hidden",!
1),f.tabIndex=0),window.requestAnimationFrame((function()
{o.style.transform="translateY(-".concat(r*(c-
1),"px)"),d.textContent=c,h.style.width="".concat(c/u.length*100,"%")})),n&&o.addEv
entListener("transitionend",A),v.classList.toggle("vp-email-capture-first-
step",1===c),s.classList.toggle("cloaked",c<u.length),C()}function C(){var
t=i.querySelector(".vp-email-capture-form-button--back"),n=i.querySelector(".vp-
email-capture-form-button--
next");1===c&&(s.classList.remove("half"),t.classList.remove("show"),t.classList.ad
d("hidden"),t.tabIndex=-
1),c>1&&(s.classList.add("half"),t.classList.remove("hidden"),t.tabIndex=0,t.setAtt
ribute("aria-hidden",!1),window.requestAnimationFrame((function()
{t.classList.add("show")}))),c<u.length?(n.tabIndex=0,n.setAttribute("aria-
hidden",!1),v.tabIndex=-1,v.setAttribute("aria-hidden",!
0),s.classList.remove("showSubmitBtn")):(v.tabIndex=0,v.setAttribute("aria-
hidden",!1),n.tabIndex=1,n.setAttribute("aria-hidden",!
0),s.classList.add("showSubmitBtn"))}function R(){return!f.required||("email"!
==f.type||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]
{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))
$/.test(f.value)?!(f.checkValidity&&!f.checkValidity()&&((f.validity.valueMissing||
f.validity.typeMismatch)&&f.setCustomValidity("This field is
required."),f.validity.typeMismatch&&f.setCustomValidity("Please enter a valid
response."),1)):(f.setCustomValidity("Please enter a valid email address."),!
1))}var I=function(){kl(i).off(["click","touchend"],".vp-email-capture-form-
button--cancel"),kl(i).off(["click","keydown"],".vp-email-capture-form-button--
next"),kl(i).off(["click","keydown"],".vp-email-capture-form-button--
back"),kl(i).off(["click"],".vp-email-capture-form-button--
submit"),kl(i).off(["keyup","blur"],".vp-email-capture-form-button--next-submit-
wrapper"),kl(i).off("click",".vp-email-capture-
wrapper"),kl(i).off(["keyup","input","focus","blur"],".vp-email-capture-form-
input"),kl(i).off("submit",".vp-email-capture-form"),y=!1,b.fire(ec.bf)};function
O(){var n,e=!(arguments.length>0&&void 0!==arguments[0])||
arguments[0],r=i.querySelector(".vp-email-capture");n=e?i.querySelector(".vp-email-
capture-reg-thank-you"):i.querySelector(".vp-email-capture-login-thank-
you"),r.classList.add("hidden"),n.classList.remove("hidden"),t.events.once(uc.LIVE_
EVENT_STARTED,(function(){I()}))}function j(){function n(n)
{v.classList.remove("loading"),f.setCustomValidity("Uh oh. There was a problem.
Please try again."),f.setAttribute("aria-
invalid","true"),t.events.fire(ec.rf),T()}v.classList.add("loading"),function(e,r)
{Rs(i);var o=U(a),u=new
XMLHttpRequest,s=t.config.request,c=s.referrer,l=s.signature,f=s.timestamp,h=s.expi
res,d="https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/s
ubmit-email?
signature=").concat(l,"&time=").concat(f,"&expires=").concat(h,"&referrer=").concat
(c);u.open("POST",d+window.location.search,!0);var v={};o.forEach((function(t)
{v[t.name]=t.value}));var p=JSON.stringify(v);u.setRequestHeader("Content-
Type","application/json"),u.withCredentials=!0,u.timeout=3e3,u.onload=function()
{var e;try{e=JSON.parse(u.responseText)}catch(t){}!function(e,r){!1!==e?
(t.config.embed.email_capture_form=null,t.config.embed.email=null,t.events.fire(ec.
ef),function(){var t=i.querySelector(".vp-email-capture"),n=i.querySelector(".vp-
email-capture-thank-
you");t.classList.add("hidden"),n.classList.remove("hidden"),window.requestAnimatio
nFrame((function(){var t=i.querySelector(".vp-email-capture-video-countdown-
timer"),e=i.querySelector(".vp-email-capture-video-countdown-
meter");n.classList.add("in"),t&&(e.classList.add("vp-email-capture-video-
countdown-meter--active"),t.textContent=3);var r=2,o=setInterval((function(){r<=0?
(I(),clearInterval(o)):(t&&(t.textContent=r),r-=1)}),1e3)}))}()):n(r.status)}
(e,u)},u.onerror=function(t){r(t)},u.send(p)}(0,n)}function L(t){var n={};return
U(t).forEach((function(t){var i=t.name,e=t.value;switch(i)
{case"email":n.email=e;break;case"First name":n.first_name=e;break;case"Last
name":n.last_name=e;break;default:n.data||
(n.data={}),n.data[i]=e}})),JSON.stringify(n)}var D=function(t){return R()?
(x(),M(c+1),!0):(S(),!1)},P=function(){return(function(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"before-
video"===(n=n||t.position)||"before"===n}(w)&&!t.config.video.live_event||
n.get(Qc))&&(t.events.fire(ec.Ac),t.events.fire(ec.xc)),c===u.length&&(R()?
(x(),t.events.fire(ec.gl),n.get(Ul)&&_?p():n.get(Ul)?m():(j(),(!nv(w)&&!
t.config.video.live_event||n.get(Qc))&&t.events.fire(ec.Ac)),!1):(S(),!
1))};function N(t){_=t;var n=w.custom_fields;_&&(n=[{field_name:"Email
address",required:1,position_in_form:0,id:1,locked:1}]),function(t){var
n=Ff.render("email_capture_fields",
{customFields:t,strings:cv});document.querySelector(".vp-email-capture-form-fields-
slider").innerHTML=n,i.querySelector(".vp-email-capture-total-
steps").innerText=t.length,u=i.querySelectorAll(".vp-email-capture-form-custom-
field"),a=i.querySelectorAll(".vp-email-capture-form-input"),l=u[c-1],f=a[c-
1],r=null,V(),M(c>u.length?u.length:c,!1)}(n),document.querySelector(".vp-email-
capture-reg-bypass-wrapper").innerHTML=Ff.render("webinar_registration_bypass_btn",
{showWebinarLogin:_,regBypass:cv.reg_bypass,regGoBack:cv.reg_go_back});var e=_?
cv.reg_login_title:w.custom_message;document.querySelector(".vp-email-capture-
title").innerHTML=Ff.render("email_capture_title",{title:e}),x()}var F={get
events(){return b},getData:function(){var i,e=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:{};w=E(t.config);var o=r.custom_logo||
w.custom_logo,u=r.custom_fields||w.custom_fields||[{field_name:"Email
address",required:1,position_in_form:0,id:1,locked:1},
{field_name:"Name",required:0,position_in_form:1,id:2,static_field:1}];u.sort((func
tion(t,n){return t.position_in_form-n.position_in_form}));var a=r.privacy_policy||
w.privacy_policy,s=(null==(i=t.config.video.webinar)?void
0:i.scheduled_start_time)||null,c=s?Jf(new Date(s)):"";return
e.template=Ff.render("email_capture",{allowSkip:r.allow_skip||w.skippable||
w.allow_skip,customLogo:o?iv(o):null,text:r.text||w.custom_message||
w.text,customFields:u,privacyPolicy:a,positionIsAfter:nv(w),strings:cv,isWebinar:n.
get(Ul),showWebinarLogin:n.get(_),webinarStartTime:c}),g.clearCachedElements(),e.qd
=".vp-email-capture-form-input",e.modal=!0,e.logo=!1,e.preventBackgroundClose=!
0,e.noblur=r.noblur,e.nofocus=r.nofocus,e}};function V(){var
t=i.querySelector(".locked_field"),n=i.querySelectorAll(".static_field");t&&(t.type
="email",t.name="email"),n&&U(n).forEach((function(t)
{"Name"===t.name&&(t.name="name")}))}return t.events.on(ec.sl,(function(p){"email-
capture"===p&&(e=i.querySelector(".vp-email-capture-form-fields-
wrapper"),o=i.querySelector(".vp-email-capture-form-fields-
slider"),u=i.querySelectorAll(".vp-email-capture-form-custom-
field"),a=i.querySelectorAll(".vp-email-capture-form-
input"),s=i.querySelector(".vp-email-capture-form-button--next-submit-
wrapper"),h=i.querySelector(".vp-email-capture-progress-
meter"),d=i.querySelector(".vp-validation-bubble"),v=i.querySelector(".vp-email-
capture-form-button--submit"),V(),M(1,!1),function(){if(!y)
{n.watch("ui.player.breakpoint",(function()
{r=Es(e).height,window.requestAnimationFrame((function()
{o.style.transform="translateY(-".concat(r*(c-1),"px)")}))}));var a=!1;kd(i,".vp-
email-capture-form-button--cancel",(function(){I(),(!nv(w)&&!
t.config.video.live_event||
n.get(Qc))&&t.events.fire(ec.Ac)})),kl(i).on("click",".vp-email-capture-form-
button--next",D),kl(i).on("click",".vp-email-capture-form-button--back",
(function(t){x(),M(c-1)})),kl(i).on("keyup",".vp-email-capture-form-button--next-
submit-wrapper",(function(t){s.classList.add("showfocus")})),kl(i).on("blur",".vp-
email-capture-form-button--next-submit-wrapper",(function(t)
{s.classList.remove("showfocus")})),kl(i).on("click",".vp-email-capture-wrapper",
(function()
{s.classList.remove("showfocus"),f.classList.remove("showfocus")})),kl(i).on("keydo
wn",".vp-email-capture-form-button--back",(function(t){a=!
0})),kl(i).on("keydown",".vp-email-capture-form-button--next",(function(t){a=!
0})),kl(i).on("keyup",".vp-email-capture-form-input",(function(t)
{"Enter"===t.key&&c<u.length&&!a&&D(),9!==t.which||
f.classList.contains("showfocus")||f.classList.add("showfocus"),a=!
1})),kl(i).on("submit",".vp-email-capture-form",(function(t){return!
1})),kl(i).on("click",".vp-email-capture-form-button--
submit",P),kl(i).on("input",".vp-email-capture-form-input",(function()
{f.value.length?
(l.classList.add("active"),f.setCustomValidity(""),R()&&x()):l.classList.remove("ac
tive")})),kl(i).on("focus",".vp-email-capture-form-input",(function()
{l.classList.add("focus")})),kl(i).
on("blur",".vp-email-capture-form-input",(function()
{l.classList.remove("focus")})),n.get(Ul)&&(kl(i).on("click",".vp-email-capture-
reg-bypass",(function(){N(!0)})),kl(i).on("click",".vp-email-capture-reg-go-back",
(function(){N(!1)}))),y=!0}}
())})),n.get(Ul)&&t.events.on(Gs._updateWebinarStartTime,(function(t)
{g.updateWebinarStartTime(t)})),t.events.on(Gs.Fs,(function(t){M(t,!
1)})),t.events.on(Gs._updateEmailCapture,(function(t){n.get(Ul)&&_&&N(!
1),g.updateAll(t,(function(){u=i.querySelectorAll(".vp-email-capture-form-custom-
field"),a=i.querySelectorAll(".vp-email-capture-form-input"),i.querySelector(".vp-
email-capture-total-steps").innerText=u.length,l=u[c-1],f=a[c-1],M(c>u.length?
u.length:c,!1)}))})),F}function fv(t,n,i){var e,r,o,u=i.querySelector(".vp-overlay-
cell"),a=i.querySelector(".vp-overlay"),s=i.querySelector(".vp-overlay-icon-
wrapper"),c=s.querySelector(".vp-overlay-icon"),l=i.querySelector(".vp-overlay-
logo"),f=!1,h=null,d=null,v=new Qd(t,a),p=new lv(t,n,a),m=!1,b=!1;function w(){var
t=Es(i),n=Es(a),e=Es(l),r=n.bottom+(t.height-n.bottom)/2;return t.height-r-
e.height/2+"px"}function g(){var t=Es(i),n=Es(a),e=Es(s),r=t.height/2,o=t.height-
(t.bottom-n.bottom)/2;return{top:r-e.height/2+"px",transform:"translateY("+(o-r)
+"px)"}}function y(n,e){i.setAttribute("data-
name",n),a.innerHTML=e.template,Wi.iOS&&Wh.element&&(t.events.fire(ec.Qc),Wh.exit()
),e.noblur||
ks(o=document.activeElement),e.modal&&(i.classList.add("modal"),i.setAttribute("dat
a-modal","true")),e.preventBackgroundClose&&i.setAttribute("data-background-
close","false"),e.wrapperClass&&i.classList.add(e.wrapperClass),e.icon.type&&(e.log
o&&(l.classList.remove("hidden"),s.classList.add("cloaked"),window.requestAnimation
Frame((function()
{l.innerHTML=Ff.render("logo"),l.style.bottom=w()}))),s.classList.remove("hidden"),
c.innerHTML=e.icon.html,window.requestAnimationFrame((function(){var
t=g();s.style.top=t.top,s.style[Wi.transformProperty]=t.transform})),i.setAttribute
("data-icon",e.icon.type),s.setAttribute("data-
icon",e.icon.type),c.setAttribute("data-icon",e.icon.type),"private-
unlocked"===n&&c.classList.add("open")),i.classList.add("invisible"),i.classList.re
move("hidden"),i.removeAttribute("hidden"),i.classList.add("in"),d=e,h=n,f=!
0,t.events.fire(ec.sl,n),t.element.classList.add("player-
overlayVisible"),window.requestAnimationFrame((function()
{i.classList.remove("invisible"),!e.nofocus&&t.element.contains(o)&&function(t)
{if(t){var n=i.querySelector(t);n&&n.focus()}}
(e.qd),window.requestAnimationFrame((function()
{a.classList.add("in"),u.classList.add("in")}))}))}function _()
{a.classList.remove("in"),a.classList.add("out")}function k(n){if("true"!
==i.getAttribute("data-modal")&&f){i.removeAttribute("data-background-
close"),u.classList.remove("in"),u.classList.add("out"),_(),i.classList.remove("in"
),i.classList.add("out"),clearTimeout(e),e=setTimeout(E,200),(null==n?void
0:n.preventDefault)&&n.preventDefault();var r=i.querySelector(".js-
back");r&&r.classList.add("cloaked"),v.destroy(),t.events.fire(ec.cl,h),t.element.c
lassList.remove("player-overlayVisible"),f=!
1,h=null,d=null,window.requestAnimationFrame((function(){o&&(function(){var
t=arguments.length>0&&void 0!==arguments[0]?
arguments[0]:document.activeElement,n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:null;try{t.focus()}catch(t){n&&n(t)}}(o),o=null)}))}}function E()
{i.setAttribute("hidden",""),i.removeAttribute("data-
name"),i.removeAttribute("data-
icon"),i.classList.add("hidden"),i.classList.remove("out"),i.classList.remove("embe
d-active"),i.classList.remove("modal"),i.classList.remove("embed-
only"),u.classList.remove("out"),u.classList.remove("in"),s.removeAttribute("data-
icon"),s.classList.add("hidden"),s.classList.remove("animate"),c.removeAttribute("d
ata-
icon"),c.innerHTML="",l.classList.add("hidden"),a.classList.remove("out"),a.innerHT
ML="",t.events.fire(ec.ll)}function T(){i.setAttribute("data-
modal","false")}function S(t){if("yes"===t.form.getAttribute("data-bubble"))
{t.form.setAttribute("data-bubble","no");var n=i.querySelector(".vp-validation-
bubble");n.querySelector(".vp-validation-bubble-
message").innerHTML=t.validationMessage||"There is an error with this input.";var
e=Es(t),r=Es(t.form);n.style.left=e.left-
r.left+"px",n.style.top=e.height+1+"px",n.classList.remove("hidden"),t.focus(),wind
ow.requestAnimationFrame((function(){n.classList.add("vp-validation-bubble-
animate")})),x()}}function x(t){var n=i.querySelector(".vp-validation-
bubble");if(n){if(t)return clearTimeout(r),void n.classList.remove("vp-validation-
bubble-animate");clearTimeout(r),r=setTimeout((function(){n.classList.remove("vp-
validation-bubble-animate")}),5e3)}}function A(t){var
n=i.querySelector("input[type=password]");return
n.form.classList.contains("submitted")?(n.setAttribute("aria-
invalid","false"),n.setCustomValidity(""),n.checkValidity&&!n.checkValidity()?
(n.setAttribute("aria-
invalid","true"),n.validity.valueMissing&&n.setCustomValidity("Please enter the
password."),t||S(n),!1):(x(!0),!0)):null}function M()
{C(),s.classList.remove("cloaked"),s.classList.add("animate"),window.requestAnimati
onFrame((function(){s.style[Wi.transformProperty]="translateY(-
10px)"})),T(),_()}function C(){l.classList.add("animate")}function R()
{c.classList.add("open")}function I(){c.classList.add("pulled-back")}function O(n)
{return n.icon={type:"lock",html:Ff.render("icon_lock")},n.qd=".js-login",n.modal=!
0,n.logo=!0,n.template=Ff.render("private_locked",
{action:"https://".concat(t.config.vimeo_url,"/log_in"),strings:{title:"Private
Video",subtitle:"Log in to watch (if you have permission)",logIn:"Log
in"}}),n}function j(n){return
n.icon={type:"lock",html:Ff.render("icon_lock")},n.template=Ff.render("password",
{action:"https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"
/check-password?referrer=").concat(t.config.request.referrer),strings:
{title:"Password Required",subtitle:"If you’ve got it, enter it
below.",password:"Password",watch:"Watch Video"}}),n.qd=".js-password",n.modal=!
0,n.logo=!!t.config.embed.settings.logo,n}function L(t){return
t.icon={type:"lock",html:Ff.render("icon_lock")},t.template=Ff.render("private_unlo
cked",{strings:{title:"Private Video",subtitle:"You are logged in and have
permission to watch (congrats).",watch:"Watch Video"}}),t.qd=".js-watch",t}function
D(t,n){return t.template=Ff.render("error",
{title:n.title,message:n.message,aria_label:"Error"}),t.qd=".js-close",t.modal=!!
n.modal,t.logo=!!
n.logo,n.icon&&"lock"===n.icon&&(t.icon={type:"lock",html:Ff.render("icon_lock")}),
t}function P(n){return n.template=Ff.render("help",
{onSite:t.config.embed.on_site,strings:{title:"Keyboard Shortcuts",volumeUp:"Volume
up",volumeDown:"Volume down",scrubForward:"Scrub forward",scrubBackwards:"Scrub
backwards",like:"Like",share:"Share",watchLater:"Watch Later",captions:"Toggle
Captions",prefs:"Toggle Preferences Menu",fullscreen:"Toggle
fullscreen",viewOnVimeo:"View on Vimeo"}}),n.qd=".js-close",n}function N(n){var
i,e,r=(null==(i=t.config.video.webinar)?void 0:i.scheduled_start_time)||null,o=r?
Jf(new Date(r)):"",u=null==(e=t.config.video.webinar)?void 0:e.custom_logo;return
n.template=Ff.render("webinar_confirmation",{customLogo:u?
iv(u):null,webinarStartTime:o,strings:
{thank_you:cv.login_thank_you,thank_you_subtitle:cv.login_thank_you_subtitle}}),n.m
odal=!0,n}function F(n){var i=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:
{},e=i.redirectUrl,r=i.title,o=i.buttonText,u=i.ignoreText,a=i.bottomText,s=i.newWi
ndow,c=js(t.config.video.privacy,["disable","unlisted"]);return
n.template=Ff.render("app_redirect",
{hideRedirectButton:c,redirectUrl:e,newWindow:s,strings:
{title:r,buttonText:o,ignoreText:u,bottomText:a}}),n.modal=!1,n.logo=!
1,n.preventBackgroundClose=!0,n}function V(){var
n=t.config.embed.email_capture_form||t.config.embed.email||{};if(t.backbone){var
i=n.timecode||0;m=t.backbone.currentTime>i}("before-
video"===n.position||"before"===n.position)&&!m&&B()}function B()
{n.get("ui.overlay.isEmailCaptureVisible")?t.events.fire(Gs._showOverlay,"email-
capture"):b=!0}return t.events.on(Gs._hideOverlay,(function(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.name&&h!==t.name||
(t.unmakeModal&&T(),k())})),t.events.on(Gs._showOverlay,(function(n){var
i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=function(){var
t={modal:!1,template:null,logo:!1,icon:{type:null,html:null}};switch(n)
{case"share":return y(n,v.getShareData(t,i)),void v.setup();case"private-
locked":return void y(n,O(t));case"password":return void y(n,j(t));case"private-
unlocked":return void y(n,L(t));case"error":return void
y(n,D(t,i));case"help":return void y(n,P(t));case"email-capture":return void
y(n,p.getData(t,i));case"app-redirect":return void y(n,F(t,i));case"webinar-
confirmation":return void y(n,N(t))}};if(f&&!i.nohide)return"share"!==h&&"help"!
==h||h!==n?(t.events.once(ec.ll,e),T(),void k()):void
k();e()})),kl(i).on("input","input",(function()
{this.form.classList.add("interacted")})).on("transitionend",".vp-validation-
bubble",(function(t)
{"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&this.c
lassList.add("hidden")})),t.events.on([ec.fl,_i.PLAY],k),t.events.on(ec.Wl,
(function(){"private-locked"===h&&(T(),k())})),t.events.on(ec.Hl,(function()
{"share"===h&&(d=v.getShareData({modal:!1,template:null,logo:!1,icon:
{type:null,html:null}}),a.innerHTML=d.template,v.setup())})),kl(window).on("resize"
,(function(){if(f){l.style.bottom=w();var
t=g();s.style.top=t.top,s.style[Wi.transformProperty]=t.transform}})),kl(i).on("tra
nsitionend",".vp-overlay-logo",(function(t)
{"opacity"===t.propertyName&&this.classList.contains("animate")&&(l.classList.add("
hidden"),l.classList.remove("animate"))})),kl(i).on("transitionend",".vp-overlay-
icon-wrapper",(function(t){t.propertyName.indexOf("transform")>-
1&&(""===this.style[Wi.transformProperty]?
(this.classList.remove("centered"),"lock"!==this.getAttribute("data-icon")||
c.classList.contains("open")||c.querySelector("canvas")?
I():setTimeout(R,100)):"translateY(-
10px)"===this.style[Wi.transformProperty]&&(s.classList.add("centered"),s.style[Wi.
transformProperty]=""))})),kl(i).on("transitionend",".vp-overlay-icon",(function(t)
{t.propertyName.indexOf("transform")>-1&&(this.classList.contains("out")?
(T(),k()):this.classList.contains("pulled-back")?
(c.classList.add("out"),c.classList.remove("pulled-
back")):this.classList.contains("open")&&I())})),n.watch("ui.overlay.isEmailCapture
Visible",(function(n){!n&&f&&"email-capture"===h?(b=f,T(),k()):n&&b&&(b=!
1,t.events.fire(Gs._showOverlay,"email-
capture"))})),t.events.on(ec.ge,V),t.events.on(ec.Hl,V),t.events.on(_i.TIME_UPDATE,
(function(n){var i=n.currentTime,e=void 0===i?
0:i,r=t.config.embed.email_capture_form||t.config.embed.email||{};("during-
video"===r.position||"during"===r.position)&&(e<r.timecode&&(m=!1),e>=r.timecode&&!
m&&(m=!0,B()))})),t.events.on(ec.Al,(function(){B()})),p.events.on(ec.bf,
(function(){t.events.fire(ec.bf),T(),k()})),v.events.on(ec.kl,(function()
{t.config.embed.settings.share.embed_only||(i.querySelector(".js-
back").classList.remove("cloaked"),i.classList.add("embed-active"))})).on(ec._l,
(function(){i.classList.remove("embed-active")})),kd(i,".js-back",(function()
{return v.showShareView(),!1})),v.events.on(ec.El,(function(){i.querySelector(".js-
back").classList.add("cloaked")})),Wi.stereoscopic&&(t.events.on(ec.Sl,(function()
{t.events.fire(Gs._showOverlay,"app-redirect",{redirectUrl:t.doNotTrackEnabled?
t.config.video.share_url:ll(t.config.video.id,"player-spatial-
redirect"),title:"Headset viewing isn’t currently supported in your mobile
browser.",buttonText:"Watch in the Vimeo
app",ignoreText:null,bottomText:null,newWindow:!
t.config.embed.on_site})})),kl(a).on("click",".app-redirect-ignore",(function()
{k()})),kl(a).on("click","[data-new-window]",(function(t){return
window.open(document.querySelector(".app-redirect-button").getAttribute("href")),!
1}))),kl(a).on("click",".popup",(function(){return t.events.fire(Gs.Us,"login-
private-locked"),!1})),kl(a).on("click",".password input[type=submit]",(function()
{this.form.classList.add("submitted"),this.form.setAttribute("data-
bubble","yes"),A(!0)})).on("submit",".password form",(function(){return function(n)
{if(!A())return!1;var
e=n.querySelector("input[type=password]"),r=n.querySelector("input[type=submit]");f
unction o(t){r.classList.remove("loading"),e.setCustomValidity("Uh oh. There was a
problem. Please try again."),e.setAttribute("aria-
invalid","true"),S(e)}r.classList.add("loading"),function(t,n,e){Rs(i);var
r=U(t.querySelectorAll("input")).map((function(t){return t.name?
encodeURIComponent(t.name)+"="+encodeURIComponent(window.btoa(function(t){return
encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,n){return
String.fromCharCode("0x"+n)}))}
(t.value))):encodeURIComponent(t.value)})).join("&"),o=new
XMLHttpRequest;o.open(t.method,t.action+window.location.search,!
0),o.setRequestHeader("Content-Type","application/x-www-form-
urlencoded"),o.withCredentials=!0,o.timeout=3e3,o.onload=function(){var
t;try{t=JSON.parse(o.responseText)}catch(t){}n(t,o)},o.onerror=function(t)
{e(t)},o.send(r)}(n,(function(n,i){if(!1!==n){if(t.events.fire(ec.ql,n),"icon-
hidden"===window.getComputedStyle(u,":after").content)return T(),void k();M()}else
o(i.status)}),o)}(this),!1})).on(["focus","input"],[".password
input[type=email]",".password input[type=password]"],(function()
{A()})),kd(a,".unlocked button",(function(){0===Es(c).width?
(C(),T(),k()):M(),Wi.iPad||Wi.iPhone||t.events.once(ec.ll,(function()
{t.events.fire(ec.Ac)}))})),function(){var n;t.events.on(ec.lc,(function(i){var
e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{modal:!0,final:!0};if(!1!
==e.final){n=i;var r={modal:!1,template:null,logo:!1,icon:
{type:null,html:null}};if(r.modal=e.modal,r.template=Ff.render("error",
{title:e.title,message:e.message}),r.qd=".js-close",f)return k(),void
t.events.once(ec.ll,(function(){return
y(i,r)}));y(i,r)}})),kl(a).on("click",".error",(function(i)
{t.events.fire(ec.cf,i.target.href,n)}))}(),t.events.on(ec.Hl,(function(){"email-
capture"===h&&n.get(Hl)||window.requestAnimationFrame((function()
{T(),k()}))})),kd(i,".js-close",(function()
{t.events.fire(ec.fl)})),kl(i).on(["click","touchend"],[".vp-overlay-content",".js-
share",".vp-overlay-logo"],(function(t)
{t.stopPropagation()})).on(["click","touchend"],[".vp-overlay-cell","nav"],
(function(){return"false"===i.getAttribute("data-background-close")||
(t.events.fire(ec.fl),!1)})),t.events.on(Gs.Qs,(function()
{i.classList.add("hidden")})),t.events.on(ec.Zl,(function()
{i.classList.contains("in")&&i.classList.remove("hidden")})),t.events.fire(ec.Ef),
{}}var hv=[".vp-title a"],dv=[".vp-title a:hover"],vv=["a",".button-link",".vp-
overlay-wrapper .footnote.share a:hover",".vp-title h1",".vp-title
span.user",".menu li:hover",".menu li.active",".vp-outro-link:hover",".vp-outro-
videosTitle a:hover","li.vp-panel-item:hover","li.vp-panel-item-on",".vp-share-
footnote a:hover",".card-link span",".vp-panel-collapsible .vp-panel-
button:hover"],pv=["a:hover",".button-link:hover"],mv=[".vp-overlay-wrapper
.close:hover .fill",".vp-overlay-wrapper .back:hover .fill",".stats-debug-
close:hover .fill",".stats-debug-copy:hover",".card-link:hover .fill"],bv=[".play-
bar .on .fill",".play-bar a:hover .fill",".play-bar button:not(.toggle):hover
.fill",".tiny-bars .fill",".vp-sidedock .on .fill",".controls-outro a:hover
.fill",".card-link .fill",".vp-panel-collapsible .vp-panel-button:hover
.fill"],wv=[".vp-controls .play-bar .vp-cast-button"],gv=[".vp-sidedock
.on:hover .fill"],yv=[".play-bar .on .stroke",".vp-sidedock .on .stroke"],_v=[".vp-
sidedock .on:hover .stroke"],kv=[".vp-sidedock button:hover",".vp-sidedock
button.selected","&.touch-support .vp-sidedock button:active",".vp-controls
.play:hover",".vp-controls .play-bar .played","&.no-playbar .play-bar
button:not(.toggle):hover",".vp-controls.tiny .play-bar
button:not(.toggle):hover",".vp-controls .volume div",".vp-overlay .buttons
li",".vp-overlay .vp-overlay-content button",'.vp-overlay .vp-overlay-content
input[type="submit"]','.vp-overlay .vp-overlay-content a[role="button"]',"li.vp-
panel-item-on:before",".vp-controls .replay:hover",".vp-share-buttons
li","button.vp-share-embedCopy",".vp-outro-button","a.vp-outro-vodButton",".vp-
email-capture-checkIconWrapper",".vp-email-capture-progress-meter",".chapter-
marker",".vp-chapters-active-indicator"],Ev=["li.vp-panel-item-
on:before"],Tv=[".vp-overlay .vp-overlay-content button",'.vp-overlay .vp-overlay-
content input[type="submit"]','.vp-overlay .vp-overlay-content
a[role="button"]',".vp-sidedock button:hover",".vp-sidedock button.selected",".vp-
sidedock button:hover .vod-label",".vp-sidedock button.selected .vod-
label",".play:hover",".vp-share-footnote--embed a",".vp-outro-button",".vp-outro-
button:hover",".vp-outro-wrapper .vp-outro-link:hover","button.vp-share-
embedCopy",".vp-outro-vodWrapper a.vp-outro-vodButton",".vp-outro-vodWrapper a.vp-
outro-vodButton:hover","li.vp-panel-item:hover","li.vp-panel-item-on",".vp-panel-
collapsible .vp-panel-button:hover","input.vp-email-capture-form-button--
next","input.vp-email-capture-form-button--submit"],Sv=[".vp-controls
.play:hover .fill",".vp-sidedock button:hover .fill",".vp-sidedock
button.selected .fill",".play-bar a:hover .fill",".play-bar
button:not(.toggle):hover .fill","&.no-playbar .play-bar
button:not(.toggle):hover .fill",".vp-controls.tiny .play-bar
button:not(.toggle):hover .fill",".vp-sidedock .on .fill",'.vp-share-wrapper
a[role="button"] .fill',".vp-outro-vodButton .fill",".vp-email-capture-
checkIconWrapper .fill",".vp-panel-collapsible .vp-panel-button:hover
.fill"],xv=[".vp-controls .play:hover .stroke",".vp-sidedock button:hover
.stroke",".vp-sidedock button.selected .stroke",".vp-sidedock .on
.stroke"],Av=["li.vp-panel-item-on:before"],Mv=["li.vp-panel-item-
on:before"],Cv=['.vp-overlay-wrapper .vp-overlay a[role="button"]',".vp-sidedock
button:hover",".vp-sidedock button.selected",".play:hover","button.vp-share-
embedCopy",".vp-outro-button",".vp-outro-button:hover",".vp-outro-vodWrapper a.vp-
outro-vodButton",".vp-outro-vodWrapper a.vp-outro-vodButton:hover","input.vp-email-
capture-form-button--next","input.vp-email-capture-form-button--submit"],Rv=[".vp-
controls .play:hover .fill",".vp-sidedock button:hover .fill",".vp-sidedock
button.selected .fill",".vp-controls .play-bar .fullscreen.tiny:hover .fill",".vp-
share-button .fill",".vp-outro-vodButton .fill"],Iv=[".vp-sidedock button:hover
.stroke",".vp-sidedock button.selected .stroke"],Ov=["li.vp-panel-item-
on:before",".vp-email-capture-form-fields-slider .vp-email-capture-form-custom-
field.focus"],jv=['.vp-overlay .vp-overlay-content
input[type="submit"]:active','.vp-overlay a[role="button"]:active',".vp-sidedock
button:active",".vp-outro-vodWrapper a.vp-outro-vodButton:active",".vp-email-
capture-form-button--next:hover",".vp-email-capture-form-button--next:focus",".vp-
email-capture-form-button--submit:hover",".vp-email-capture-form-button--
submit:focus"],Lv=[".vp-email-capture-form-button--next",".vp-email-capture-form-
button--submit"];function Dv(t,n){var
i=n.uuid,e=n.id,r=n.isMobileDevice,o=null;function u(t,n){var
o=".player-".concat(i," "),u=o+t.join(","+o);if(n){var a="".concat(e,"
");u+=",".concat(a).concat(t.join(","+a))}return
r&&(u=u.replace(/:hover/g,":active")),u.replace(/ &/g,"")}return t.events.on(Gs.Ws,
(function(n){var e;try{e=new Kh(n)}catch(t){e=new Kh("00adef")}var r=function(t){o?
function(){for(;o.cssRules.length>0;)o.deleteRule(0)}():function(){var
t=document.createElement("style");t.setAttribute("data-
player",i),document.querySelector("head").appendChild(t),o=t.sheet}();var
n=t.complement,e=new Kh(30,30,30,.9),r=new
Kh(0,0,0,.15).overlayOn(t);e.contrast(n).ratio<3&&n.lighten(5,3,e);var
a,s=t.lightness<40?t.clone().lighten(15,3,t):t.clone().darken(15,3,t);ys(u(hv,!
0),"color:"+t.hex+" !important",o),ys(u(dv,!0),"color:"+n.hex+"
!important",o),ys(u(Ov),"border-
color:"+r.hex,o),ys(u(vv),"color:"+t.hex,o),ys(u(bv),"fill:"+t.hex,o),ys(u(wv),"--
connected-color:"+t.hex,o),ys(u(yv),"stroke:"+t.hex,o),ys(u(kv),"background-
color:"+t.hex,o),ys(u(Ev),"border-
color:"+t.hex,o),ys(u(pv),"color:"+n.hex,o),ys(u(mv),"fill:"+n.hex,o),ys(u(gv),"fil
l:"+s.hex,o),ys(u(_v),"stroke:"+s.hex,o),ys(u(jv),"background-
color:"+r.hex,o),t.luminance>.95&&(n=t.clone().darken(15,3,t),ys(u(Tv),"color:"+n.h
ex,o),ys(u(Sv),"fill:"+n.hex,o),ys(u(xv),"stroke:"+n.hex,o),ys(u(Av),"background-
color:"+n.hex,o),ys(u(Mv),"border-
color:"+n.hex,o),s=n.clone().darken(15,3,n),ys(u(gv),"fill:"+s.hex,o),ys(u(_v),"str
oke:"+s.hex,o)),t.yiq>175&&t.luminance<.95&&(a=s.clone().darken(15,3,s),ys(u(gv),"f
ill:"+a.hex,o),ys(u(_v),"stroke:"+a.hex,o),ys(u(Cv),"color:"+s.hex,o),ys(u(Rv),"fil
l:"+s.hex,o),ys(u(Iv),"stroke:"+s.hex,o));var c=new Kh(t.hex);return
c.alpha=.8,ys(u(Lv),"background-color:"+c.rgba,o),
{main:t.hex,selected:s.hex,sidedockHover:a?s.hex:t.luminance>.95?
n.hex:Kh.white.hex,sidedockSelected:t.luminance>.95?
n.hex:t.hex,sidedockSelectedHover:a?a.hex:s.hex}}
(e);t.config.Wd=r,t.config.embed.color=r.main.replace("#",""),t.events.fire(ec.Bl,t
.config.embed.color)})),t.events.fire(Gs.Ws,t.config.embed.color),{}}function Pv(t)
{var n=null;return t.events.on(Gs.Us,(function(i,e){var
r="https://".concat(t.config.player_url),o="".concat(r,"/video/").concat(t.config.v
ideo.id);switch(i){case"login-like":n=As("".concat(o,"/login/like"),"login",
{width:670,height:545}),t.events.fire(ec.bl,i);break;case"login-watch-
later":n=As("".concat(o,"/login/watch-later"),"login",
{width:670,height:545}),t.events.fire(ec.bl,i);break;case"login-private-
locked":n=As("".concat(o,"/login/private"),"login",
{width:670,height:545}),t.events.fire(ec.bl,i);break;case"purchase":var
u="".concat(r,"/video/").concat(t.config.video.vod.feature_id||
t.config.video.id,"/purchase/vod");(null==e?void
0:e.productId)&&(u+="/".concat(e.productId)),u+="?
referrer=".concat(encodeURIComponent(t.config.request.referrer)),n=As(u,"purchase",
{width:790,height:670}),t.events.fire(ec.bl,i)}})),window.closePopup=function(i)
{if(n){try{n.close(),t.events.fire(ec.yl,i)}catch(t)
{}n=null}},t.config.embed.on_site||(window.confirmPurchase=function(n,i,e){i?
t.loadVideo(n):e&&t.events.fire(ec.Ac)}),t.config.embed.on_site||
(window.confirmLoginAction=function(n,i){t.events.fire(ec.Nl,i)}),{}}function
Nv(t,n,i,e){var r=e[n];return r?
(r=Fv(r=Vv(t,r),i,e.prices),e.expires_in_duration_str&&(r=r.replace("{TIME}",e.expi
res_in_duration_str)),e.available_on_formatted&&(r=r.replace("{DATE}",e.available_o
n_formatted)),r):null}function Fv(t,n,i){var e=i.USD;return n in i&&(e=i[n]),-1!
==t.indexOf("${price}")?t.replace("${price}",e):-1!==t.indexOf("{PRICE}")?
t.replace("{PRICE}",e):t}function Uv(t,n){return!t||0===t.length||-1!
==t.indexOf(n)}function Vv(t,n){return void 0!==t&&void 0!==t[n]?t[n]:n}var
Bv=Object.freeze({__proto__:null,formatVodLabel:Nv,getDisplayPrice:Fv,isAvailableIn
Country:Uv,translateFromRequest:Vv});function Hv(t,n){var i,e,r,o,u,a,s,c,l,f=!
1,h=!1,d=!1,v=!1,p=!1,m=!1,b=!1,w=!1,g=[],y=[],_=null,k=!1,E=!
1,T=null,S=t.config.embed.autoplay&&t.config.request.flags.autohide_controls;functi
on x(){return v||b||w}function A(){f&&(E||(h&&k||x()||S)&&(d||(!p&&!m||x())&&(f=!
1,t.events.fire(ec.Vc,f),(T||n).classList.add("invisible"))))}function M(){if(!f&&!
x()){var i=T||
n;i.classList.add("invisible"),i.classList.remove("hidden"),i.removeAttribute("hidd
en"),n.classList.remove("hidden"),n.removeAttribute("hidden"),n.classList.contains(
"vod")&&n.classList.remove("vod"),setTimeout((function(){f=!
0,t.events.fire(ec.Vc,f),i.classList.remove("invisible")}),0)}}function C(n,i,e)
{var r="data-label-"+e,o="add"!==e||t.config.user.logged_in?r:"data-label-add-
logged-out";n.setAttribute("aria-
label",n.getAttribute(o)),i.classList.add("hidden"),i.setAttribute("hidden",""),i.f
irstChild.innerHTML=n.getAttribute(r)}function R(){var t="BUTTON"===this.tagName?
this:this.querySelector("button"),n=g.indexOf(t);n>=0&&y[n]&&(_&&(window.cancelAnim
ationFrame(_),_=null),y[n].classList.add("invisible"))}function I(){if(i){var
t=i.parentElement;T.insertBefore(t,T.firstChild)}}function O(){var
h;if(1===t.config.view||3===t.config.view||12===t.config.view){var
d=t.config.embed.settings,v=t.config.video.vod&&"purchase_options"in
t.config.video.vod&&t.config.video.vod.purchase_options.length,p=v&&t.config.video.
vod.is_coming_soon,m="ondemand.main"===t.config.embed.context||"Vimeo\\Controller\\
OnDemandController.main"===t.config.embed.context,b=t.config.video.vod&&t.config.us
er.purchased?
1:0,w=v&&d.vod&&Uv(t.config.video.vod.countries,t.config.request.country);w&&p&&m&&
(w=!1);var
_=v&&t.config.video.vod.purchase_options[0],k=null;_&&(k=Nv(t.config.request.dynami
c_translation_map,"label_string",t.config.request.currency,_)),n.innerHTML=Ff.rende
r("sidedock",{loggedIn:!!
t.config.user.logged_in,vodButton:w,purchased:b,vodPurchaseInfo:_,vodDisplayLabel:k
,likeButton:d.like,liked:t.config.user.liked,watchLaterButton:d.watch_later,addedTo
WatchLater:t.config.user.watch_later,collectionsButton:d.collections,shareButton:d.
share,strings:{like:"Like",likeLoggedOut:"Like (this opens in a new
window)",unlike:"Unlike",watchLaterAdd:"Add to Watch
Later",watchLaterAddLoggedOut:"Add to Watch Later (this opens in a new
window)",watchLaterRemove:"Remove from Watch Later",collections:"Add to
collections",share:(null==(h=d.share)?void
0:h.embed_only)?"Embed":"Share"}}),i=n.querySelector(".vod-
button"),w&&(T=n.querySelector(".sidedock-inner"),b&&I());var E=T||n;v&&w&&!
t.config.embed.settings.instant_sidedock?n.classList.add("vod"):Wi.touch&&(f=!
0,t.events.fire(ec.Vc,f),E.classList.remove("hidden"),E.removeAttribute("hidden"),E
.classList.remove("invisible")),e=n.querySelector(".like-
button"),r=n.querySelector(".like-label"),o=n.querySelector(".watch-later-
button"),u=n.querySelector(".watch-later-label"),a=n.querySelector(".collections-
button"),s=n.querySelector(".collections-label"),c=n.querySelector(".share-
button"),l=n.querySelector(".share-label"),g=[i,e,o,c,a],y=[null,r,u,l,s]}}return
O(),function(){var
n=t.config.embed.settings.instant_sidedock,i=t.config.video.vod,e=i&&"purchase_opti
ons"in
i&&i.purchase_options.length,r=i&&Uv(t.config.video.vod.countries,t.config.request.
country);(n||e&&r)&&(S||M())}(),kd(n,".vod-button",(function(){var
n=i.getAttribute("data-product-id");t.events.fire(ec.ol,n)}),R),t.events.on(ec.Xl,
(function(){I(),n.classList.add("sidedock-
outro"),"share"===t.config.embed.outro&&(t.config.embed.settings.share=0,O())})),t.
events.on(ec.Zl,(function(){!function(){if(i){var
t=i.parentElement;n.insertBefore(t,T)}}(),n.classList.remove("sidedock-
outro"),"share"===t.config.embed.outro&&(t.config.embed.settings.share=1,O())})),kd
(n,".like-button",(function(){t.events.fire(ec.nl)}),R),t.events.on(ec.jl,
(function(){e&&(e.classList.add("on"),C(e,r,"remove"))})),t.events.on(ec.Ll,
(function(){e&&(e.classList.remove("on"),C(e,r,"add"))})),kd(n,".watch-later-
button",(function(){t.events.fire(ec.il)}),R),t.events.on(ec.Dl,(function()
{o&&(o.classList.add("on"),C(o,u,"remove"))})),t.events.on(ec.Pl,(function()
{o&&(o.classList.remove("on"),C(o,u,"add"))})),kd(n,".collections-button",
(function(){t.events.fire(ec.ul)}),R),kd(n,".share-button",(function(){return
t.events.fire(t.config.embed.settings.share.embed_only?ec.rl:ec.el),!
1}),R),kl(n).on("blur","button",R).on("mouseleave",".box",R).on(["focus","pointerdo
wn","touchstart","mouseenter"],"button",(function(){var
t=g.indexOf(this);y.forEach((function(n,i){i!
==t&&n&&n.classList.add("invisible")})),t>=0&&y[t]&&(y[t].classList.add("invisible"
),y[t].classList.remove("hidden"),y[t].removeAttribute("hidden",""),_=window.reques
tAnimationFrame((function(){_=window.requestAnimationFrame((function()
{y[t].classList.remove("invisible"),y[t].classList.add("visible")}))})))})).on("tra
nsitionend","label",(function(t)
{"opacity"===t.propertyName&&t.target.classList.contains("invisible")&&(t.target.cl
assList.add("hidden"),t.target.setAttribute("hidden",""),t.target.classList.remove(
"visible"))})),kd(n,"label",(function(){var
t=y.indexOf(this);t>=0&&g[t].click()})),t.events.on([ec.Rl,ec.Ol,ec.Ec],A).on(ec.Il
,M).on(ec.wc,(function(){k=!0,A()})).on(_i.PLAY,(function(){h=!
0})),kl(n).on(["pointerenter","pointerleave","mouseenter","mouseleave"],
(function(t){"pointerType"in t?"mouse"!==t.pointerType&&t.pointerType!
==t.MSPOINTER_TYPE_MOUSE||
(d="pointerenter"===t.type||"MSPointerEnter"===t.type):d="mouseover"===t.type})),kl
(n).on("transitionend",(function(t){var e=T||
n;"opacity"===t.propertyName&&e.classList.contains("invisible")&&(e.classList.add("
hidden"),e.setAttribute("hidden",""),i&&e.contains(i)&&(n.classList.add("hidden"),n
.setAttribute("hidden","")))})),t.events.on(ec.Xc,(function(){d=!1,A()})).on(ec.tl,
(function(t){t||(E=!0)})),t.events.on([ec.If],(function(){p=!0,M()})).on([ec.Of],
(function(){p=!1})),t.events.on(nu,(function(){m=!0,M()})).on(iu,(function(){m=!
1})),t.events.on(ec.sl,(function(){v=!0,d=!1,A()})).on(ec.cl,(function(){v=!
1,M()})),t.events.on(ec.Mf,(function(t){b=t,t&&A()})),t.events.on([ec.Yc,ec.Bc],
(function(t,n){n.isCentered()&&n.isVisible()&&(w=!0,d=!
1,A()),n.isCentered()&&n.isVisible()||(w=!1,M())})),t.events.on(ec.Hl,(function()
{O()})),t.events.on(Gs.Vs,(function(){d=!1,k=!1,A(),h=!1,d=!1,E=!
1})),t.events.fire(ec.yf),{}}function qv(t,n){var i=!0,e=!1,r=!1,o=!1,u=!1,a=!1,s=!
1,c=!0,l=!1,f=!1,h=!1;function d(){i=!1,n.classList.add("invisible")}function v()
{n.classList.remove("hidden"),n.removeAttribute("hidden"),setTimeout((function()
{i=!0,n.classList.remove("invisible")}),0)}function p(){return r||o||u}function m()
{i&&(p()||l?d():a||s&&(c&&e||d()))}function b(){var n;i||(!a||p()?c&&!f&&(l||(s||
p()?(null==(n=t.config.embed)?void 0:n.settings.info_on_pause)&&c&&!
p()&&v():v())):v())}function w(){if(1===t.config.view||3===t.config.view||
12===t.config.view){var i=!!t.config.embed.settings.byline,e=null!
==t.config.video.owner.url,r=t.config.video.owner.url,o=0===t.conf
ig.embed.on_site,u=t.config.embed.settings.spatial_label,a=t.config.request.file_co
decs||t.config.video.file_codecs,s=void 0!
==a,c={ClickTargets:Ws,linkToOwner:e,ownerLink:r,targetBlank:o,showPortrait:!!
t.config.embed.settings.portrait,portraitImg:t.config.video.owner[Wi.devicePixelRat
io>1?"img_2x":"img"],showByline:i,portraitAlt:"Link to video owner's
profile",showTitle:!!t.config.embed.settings.title,showTitleLink:null!
==t.config.video.url,titleLink:t.config.video.url,title:t.config.video.title,is360:
t.config.video.spatial&&u,hasHDR:s&&a.hevc.hdr.length>0,strings:
{}};if(t.config.embed.settings.byline){var
l=t.config.embed.settings.byline_badge,f="";(null==l?void
0:l.type)&&(f=Ff.render("title_byline_badge",
{targetBlank:o,cssClass:l.type,link:l.url||!1,displayBadge:!
t.config.video.live_event})),c.strings.byline="from
"+Ff.render("title_owner_byline",
{ClickTargets:Ws,linkToOwner:e,ownerLink:r,targetBlank:o,owner:t.config.video.owner
.name})+f}t.config.embed.settings.badge&&(c.showPortrait=!
1),t.config.embed.autoplay&&(n.classList.add("hidden"),n.setAttribute("hidden",""))
,n.innerHTML=Ff.render("title",c)}}return
w(),t.events.on([ec.Rl,ec.Ol],m).on(ec.Il,b).on(Ko,(function(){s=!0,c=!
1,m()})).on([ec.Ac,_i.PLAY],(function(){c=!1,f=!1,m()})).on(ec.nr,(function(t,n)
{n||(c=!0,b())})).on(ec.pc,(function(){l=!0,m()})).on(ec.Dc,(function(){h=c,f=!
0})).on(ec.Pc,(function(){h&&(f=!1)})).on(ec.Xc,(function(){m()})).on(ec.tl,
(function(t){t||
b()})),kl(n).on(["pointerenter","pointerleave","mouseenter","mouseleave"],
(function(t){"pointerType"in t?"mouse"!==t.pointerType&&t.pointerType!
==t.MSPOINTER_TYPE_MOUSE||
(e="pointerenter"===t.type||"MSPointerEnter"===t.type):e="mouseover"===t.type})),kl
(n).on("transitionend",(function(t)
{"opacity"===t.propertyName&&n.classList.contains("invisible")&&(n.classList.add("h
idden"),n.setAttribute("hidden",""))}),!1),t.events.on(ec.pc,(function(t)
{m()})),t.events.on([ec.If],(function(){a=!0,b()})).on([ec.Of],(function(){a=!
1,m()})),t.events.on(ec.sl,(function(t){"not-supported"!==t&&"private-unlocked"!
==t&&"help"!==t&&(r=!0,e=!1,m())})).on(ec.cl,(function(){r=!1,e=!
1,setTimeout(b,0)})),t.events.on(ec.Xl,(function(t){o=!0,e=!1,m()})).on(ec.Zl,
(function(){o=!1,e=!1,setTimeout(b,0)})),t.events.on([ec.Yc,ec.Bc],(function(t,n)
{n.isCentered()&&n.isVisible()&&(u=!0,e=!1,m()),n.isCentered()&&n.isVisible()||(u=!
1,e=!1,b())})),t.events.on(ec.Hl,(function()
{w(),3===t.config.view&&b()})),t.events.on(Gs.Vs,(function(){s=!1,c=!0,l=!1,f=!
1,b()})),t.events.fire(ec.gf),{}}function Wv(t,n){function i()
{n.classList.remove("hidden"),n.removeAttribute("hidden"),n.classList.remove("invis
ible")}function e(){kl(n).on("transitionend",(function()
{kl(n).off("transitionend"),n.classList.contains("invisible")&&(n.classList.add("hi
dden"),n.setAttribute("hidden",""))})),n.classList.add("invisible")}return
function(){var r=t.config.embed.settings.badge;if(r){var
o=Wi.devicePixelRatio>1?"img_2x":"img";Wi.svg&&r.svg&&(o="svg"),n.innerHTML=Ff.rend
er("badge",{showPortrait:!1,targetBlank:0===t.config.embed.on_site,badge:
{link:r.link,img:r[o],margin:r.margin||!
1,width:r.width,height:r.height,name:r.name,shadow:r.shadow||!1}}),kd(n,".vp-
badge",(function(){t.events.fire(ec.Jc,r.id)})),t.config.embed.autoplay?
e():i()}else e()}(),{show:i,hide:e}}function zv(t,n){var i=t.events;function e(t)
{t.preventDefault(),i.fire(Gs.Ns,!1)}function r()
{n.classList.add("invisible"),n.classList.remove("hidden"),n.removeAttribute("hidde
n"),setTimeout((function()
{n.classList.remove("invisible")}),0),i.once(ec.mc,o)}function o(t){t>0&&!
n.classList.contains("invisible")&&u()}function u()
{kl(n).on("transitionend",a),n.classList.add("invisible")}function a()
{kl(n).off("transitionend",a),n.classList.add("hidden"),n.setAttribute("hidden","")
}return function(){var t={title:Wi.touch?"Tap to Unmute":"Click to
Unmute"};n.innerHTML=Ff.render("unmute_button",t),kd(n,e),kd(n,".vp-unmute-
button",e),i.once(ec.$c,r),i.on(au.EVENT_ENDED,u)}(),{}}function Gv(t,n){var
i=null,e=!1;function r(){var r=n.querySelector(".vp-badge");if(i=new
Wv(t,r),r.innerHTML)return 16===t.config.embed.settings.badge.id?(i.show(),void
t.events.on(ec.Uc,(function(t){t?i.show():i.hide()}))):void
t.events.on([ec.Ac,_i.PLAY],(function(){e&&i.hide()})).on(Ko,(function(){e=!
0,i.hide()})).on(ec.pc,i.hide).on(ec.sl,(function(t){"not-supported"!==t&&"private-
unlocked"!==t&&"help"!==t&&i.hide()})).on(ec.cl,(function(){e||
i.show()}))}r(),function(){var i=n.querySelector(".vp-unmute");new zv(t,i)}
(),t.events.on(ec.Hl,(function(){r()})),t.events.on(Gs.Vs,(function(){e=!
1,r()}))}var Kv=function(){function t(t){var n=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:
{},i=6,e=76,r=parseInt(e*Wi.devicePixelRatio,10),o=parseFloat(n.timecode);if(isNaN(
o))throw new TypeError("Time must be a number.");if(o<0)throw new TypeError("Time
must be a positive
number.");this.time=o,this.data=n,this.id=n.id,this.displayTime=n.display_time||
i,n.url&&(this.data.url=Pd(n.url)),n.image_url&&(n.image=jc({width:r,height:r,baseU
rl:Pd(n.image_url),crop:!0})),this.renderTemplate()}var n=t.prototype;return
n.renderTemplate=function(){var
t=this,n=document.createElement("div");n.innerHTML=Ff.render("card",this.data),this
.element=n.children[0],this.data.image&&Lc(this.data.image).catch((function(n)
{t.element.querySelector(".js-
cardImageWrap").style.display="none"}))},n.isActive=function(t){return
t>=this.time&&t<this.end},H(t,[{key:"end",get:function(){return
this.time+this.displayTime}}]),t}(),Yv=function(){function t(){var
t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t,n){return
t<n};this.zd={},this.Gd=[],this.Kd=t}var n=t.prototype;return n.Yd=function(t){var
n=this.Gd.length;if(0===n)this.Gd.push(t);else{for(var i=0;i<n;i+
+)if(this.Kd(t,this.Gd[i])){this.Gd[i-1]!
==t&&this.Gd.splice(i,0,t);break}i===n&&this.Gd[i-1]!
==t&&this.Gd.splice(i,0,t)}},n.Jd=function(t,n,i,e){if(e<i)return-1;var
r=parseInt(i+(e-i)/2,10);return t[r]>n?this.Jd(t,n,i,r-1):t[r]<n?
this.Jd(t,n,r+1,e):r},n.delete=function(t){var
n=this.Jd(this.Gd,t,0,this.Gd.length);if(-1===n)throw new Error("key does not
exist");this.Gd.splice(n,1),delete this.zd[t]},n.set=function(t,n){return
this.zd[t]=n,this.Yd(t),this},n.get=function(t){return
this.zd[t]},n.keys=function(){return this.Gd.slice()},n.values=function(){var
t=this;return this.keys().map((function(n){return t.zd[n]}))},n.forEach=function(t)
{for(var n=this.Gd.length,i=0;i<n&&!1!==t(this.zd[this.Gd[i]],this.Gd[i],this);i+
+);},H(t,[{key:"size",get:function(){return this.Gd.length}}]),t}();function
Jv(t,n,i){var e,r,o=i.querySelector(".vp-cards"),u=new Yv,a=!1,s=function(t){return
function(){u.size>0&&t.apply(void 0,arguments)}};function c()
{v(),u.forEach((function(t,n){t.element.parentNode.removeChild(t.element)})),u=new
Yv,Array.isArray(t.config.embed.cards)&&t.config.embed.cards.length&&(t.config.vide
o.title&&t.config.embed.settings.title&&l(-1,{className:"card--
contentInfo",timecode:0,headline:t.config.video.title,teaser:t.config.embed.setting
s.byline?
t.config.video.owner.name:"",image:t.config.video.owner[Wi.devicePixelRatio>1?"img_
2x":"img"],id:"title-card"}),t.config.embed.cards.forEach((function(t)
{l(t.timecode,t)})))}function l(i,e){var r=u.get(i),a=new
Kv(t,e);if(u.set(i,a),r)return o.replaceChild(a.element,r.element),a;var
s=u.keys().indexOf(i);return
o.insertBefore(a.element,o.children[s]),n.dispatch(function(t)
{return{type:"CARDS_SET_SIZE",payload:t}}(u.size)),a}function f(n)
{t.element.classList.toggle("player-
cardsCarousel",n),t.element.classList.toggle("player-cardsCorner",!
n),e.destroy(),n&&e.setUp()}function h(n,i){n&&(i?n.element.classList.add("card-
animating"):n.element.classList.remove("card-
animating"),n.element.classList.add("card-
active"),kl(n.element.childNodes[1]).on("mouseover",(function(){a=!
0})),kl(n.element.childNodes[1]).on("mouseout",(function(){a=!
1})),e.show(n.element),t.events.fire(ec.vf,n.id,n.data))}function d(t){a||
t.classList.remove("card-active")}function v(){U(i.querySelectorAll(".card-
active")).forEach(d)}return e=new Md(o),n.watch("ui.cards.size",(function(n)
{t.element.classList.toggle("player-
withCards",n>0)})),n.watch("ui.cards.isCarouselVisible",f),n.watch("ui.cards.isCard
sThumbVisible",(function(t){i.classList.toggle("cards-wrapper--
withThumbnails",t)})),f(n.get("ui.cards.isCarouselVisible")),t.events.on(ec.Hl,c),t
.events.on(Gs._addCard,(function(t){var
n=l(t.timecode,t);v(),h(n)})),t.events.on(Gs._removeCard,(function(t){v();var
n=u.get(t.timecode).element;n.parentNode.removeChild(n),u.delete(t.timecode)})),e.o
n("slide",s((function(n){var i=u.values()[n];"title-card"!
==i.id&&t.events.fire(ec.vf,i.id,i.data),t.events.fire(Gs.uc,i.time)}))),e.on("tap"
,s((function(n){var i=u.values()[n];i.data.url&&"title-card"!
==i.id&&(t.events.fire(ec.pf,i.id,i.data),t.backbone.paused||
t.events.fire(ec.xc),window.open(i.data.url))}))),t.events.on(_i.TIME_UPDATE,s((fun
ction(t){var i=function(t){var i=u.values().filter((function(n){return
n.isActive(t)})).slice(-1)[0];if(i)return i;if(n.get("ui.cards.isCarouselVisible"))
{var e=u.values().slice(-1)[0];if(e&&t>e.end)return e}return null}
(t.currentTime);i!==r&&(!i&&a||(a=!1,v(),(r=i)&&"title-card"===r.id?
n.get("ui.cards.isCarouselVisible")&&h(r,!0):h(r,!
0)))}))),t.events.on(ec.pc,s(v)),kd(document,".player-cardsCorner
.card",s((function(n){n.preventDefault();var i=Ds(n.target,o.children),e=u.values()
[i];e.data.url&&"title-card"!
==e.id&&(t.events.fire(ec.pf,e.id,e.data),t.backbone.paused||
t.events.fire(ec.xc),window.open(e.data.url))}))),c(),{}}var
$v={16:"shift",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down"};function
Xv(t,n,i){var e,r=!!t.config.embed.on_site,o=i.querySelector(".volume"),u=!
1,a=null,s=t.config.video.fps/5,c=Math.max(s,.618*t.config.video.duration),l=s,f=0,
h=!1,d=$f(g,80);function v(){return!r&&(1===t.config.view||3===t.config.view||
12===t.config.view)}function p(){u&&"help"===e&&t.events.fire(ec.fl)}function
m(t){return"number"!=typeof t.which&&(t.which=t.keyCode),t}function b(t)
{if("keypress"===t.type){var n=String.fromCharCode(t.which);return t.shiftKey||
(n=n.toLowerCase()),n}return t.which in $v?
$v[t.which]:String.fromCharCode(t.which).toLowerCase()}function w(n)
{if(t.config.embed.settings.background)return!0;var i=n.target||
n.srcElement;return"INPUT"===i.tagName||"SELECT"===i.tagName||"TEXTAREA"===i.tagNam
e||i.isContentEditable}function g(i,e){if(!n.get(Kc)){h||(e&&!
t.backbone.paused&&t.events.fire(ec.xc),t.events.fire(ec.Dc,!0,"keyboard"),h=!0),!
function(t){var n=t,i=Math.ceil(s),e=Math.ceil(c-s);l=function(t,n,i,e){return
t/=100,i*(--t*t*t+1)+n}(n,i,e)}(f),1==++f&&(l=5*t.config.video.fps);var r=e?
1:l,o="right"===i?r:-r;!function(n){var
i=n/t.config.video.fps;t.events.fire(Gs.Ds,null,i)}
(Math["right"===i?"ceil":"floor"](t.currentTime*t.config.video.fps)+o)}}function
y(t){var n=a.getTabindexItems(),i=n.indexOf(document.activeElement),e="up"===t?i-
1:i+1,r=null;return!(r=e>=n.length?n[0]:e<0?n[n.length-1]:n[e])||(r.focus(),!
1)}function _(){if(a)return!0;if(n.get(Kc)&&!n.get(Qc))return!0;if(!
document.activeElement||document.activeElement===document.body){var
i=t.backbone.paused?ec.Ac:ec.xc;return t.events.fire(i),p(),!1}}function k(){return
a?(a.element.contains(document.activeElement)&&a.button.focus(),a.hide(),!1):u?
(t.events.fire(ec.fl),!1):void 0}function E(){return a?!
a.element.contains(document.activeElement)||
y("up"):Wi.spatialPlayback&&t.config.video.spatial?
(t.backbone.getEffectByName("ThreeSixtyEffect").keyPress("up"),!1):!(!
t.config.embed.on_site||!document.activeElement||
i.contains(document.activeElement))||(p(),t.events.fire(Gs.Ps,.05,!1,!0),!
1)}function T(){return a?!a.element.contains(document.activeElement)||
y("down"):Wi.spatialPlayback&&t.config.video.spatial?
(t.backbone.getEffectByName("ThreeSixtyEffect").keyPress("down"),!1):!(!
t.config.embed.on_site||!document.activeElement||
i.contains(document.activeElement))||(p(),t.events.fire(Gs.Ps,-.05,!1,!0),!
1)}function S(n,i){if(a)return!a.element.contains(document.activeElement)||
y("left"===i?"up":"down");if(p(),Wi.spatialPlayback&&t.config.video.spatial)return
t.backbone.getEffectByName("ThreeSixtyEffect").keyPress(i),!
1;if(document.activeElement&&document.activeElement===o){var
e="left"===i?-.05:.05;return t.events.fire(Gs.Ps,e,!1,!0),!1}n.shiftKey||0===f?
g(i,n.shiftKey):d(i,n.shiftKey)}return t.events.on(ec.sl,(function(t){u=!
0,e=t,"not-supported"!==t&&"email-capture"!==t||(r=!0)})),t.events.on(ec.cl,
(function(){u=!1,e=null})),t.events.on(ec.Bc,(function(t,n){t||a!==n?
t&&(a=n):a=null})),t.events.on(ec.Hl,(function(t){t&&(r=!1)})),function(){var
i={l:ec.nl,w:ec.il,s:ec.el,c:[ec.Cc,!0],h:[ec.Mc,!
0],f:ec.Sc,d:ec.wl,space:_,up:E,down:T,left:S,right:S,esc:k,"?":
[Gs._showOverlay,"help"]};function r(n){if(m(n),function(t){return!(t.ctrlKey||
t.metaKey||t.altKey)&&(t.which in $v?"keydown"===t.type:"keypress"===t.type)}(n)&&!
w(n)&&v()){var r=b(n);if(r in i){if("function"==typeof i[r])return void(!1===i[r]
(n,r)&&(n.preventDefault(),n.stopPropagation()));!1===function(n)
{if(n=Array.isArray(n)?n:[n],u&&"help"===e)
{if(t.events.fire(ec.fl),n[0]===Gs._showOverlay&&"help"===n[1])return!1;if(n[0]!
==Gs.qs)return setTimeout((function(){t.events.fire.apply(null,n)}),250),!1}return
t.events.fire.apply(null,n),!1}
(i[r])&&(n.preventDefault(),n.stopPropagation())}}}t.config.embed.on_site||
(i.v=Gs.qs),document.addEventListener("keydown",r,!
1),document.addEventListener("keypress",r,!1),document.addEventListener("keyup",
(function(i){if(m(i),!w(i)&&v()){var e=b(i);!Wi.spatialPlayback||!
t.config.video.spatial||"left"!==e&&"right"!==e&&"up"!==e&&"down"!==e?
n.get(Kc)||"left"!==e&&"right"!==e||function(n){l=s,f=0;var
i=n.shiftKey;t.events.fire(ec.Pc,i),h=!1}
(i):t.backbone.getEffectByName("ThreeSixtyEffect").keyUp(e)}}),!1)}
(),t.events.on(ec.tf,(function(){r=!1})).on(ec.nf,(function(){r=!
0})),t.config.embed.on_site&&document.querySelector(".player")===i&&(r=!
1),function(){var t,n=!1;document.body.addEventListener("keyup",(function(t){9!
==t.which||document.body.classList.contains("showfocus")||
document.body.classList.add("showfocus")})),document.body.addEventListener("keydown
",(function(i){32!==i.which&&13!==i.which||(n=!
0,clearTimeout(t),t=setTimeout((function(){n=!
1}),200))})),document.body.addEventListener("click",(function(t){n||
document.body.classList.remove("showfocus")}))}(),{pause:function(){r=!
0},unpause:function(){r=!1}}}var Zv=function(){function t(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:
{},i=n.displayTimeout,e=void 0===i?0:i,r=n.label,o=void
0===r?"Alert":r;rt(this),this.$d=t,this.Xd=!
1,this.Zd=null,this.Qd=null,this.tv=o;var u=Math.round(e/1e3);0!
==u&&(this.tv="".concat(o," Will be dismissed in ").concat(u,"
seconds")),this.nv=null,this.iv=e,this.ev(),this.Rn()}var n=t.prototype;return
n.show=function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:this.iv;if(!0!==this.Xd)
{clearTimeout(this.nv),this.Qd.classList.remove("hidden"),this.Qd.removeAttribute("
hidden"),window.requestAnimationFrame((function(){n.Qd.classList.add("in")}));var
e=this.Qd.querySelector("[data-alert-autofocus]")||this.Qd;e.focus(),this.Xd=!
0,this.fire("show",t),0!==i&&(this.nv=setTimeout((function()
{n.hide("timeout")}),i))}},n.hide=function(t){var n=this;!1!
==this.Xd&&(clearTimeout(this.nv),this.Qd.classList.add("leaving"),window.requestAn
imationFrame((function(){var t=n;n.rv(),kl(n.Qd).on("transitionend",(function n(i)
{"opacity"===i.propertyName&&(t.Qd.classList.remove("leaving"),t.Qd.classList.add("
hidden"),t.Qd.setAttribute("hidden",""),kl(t.Qd).off("transitionend",n))}))})),this
.Xd=!1,this.fire("hide",t))},n.rv=function()
{this.Qd.classList.remove("in")},n.ev=function(){this.Qd||
(this.Qd=document.createElement("div"),this.Qd.classList.add("vp-
alert"),this.Qd.setAttribute("role","alertdialog"),this.Qd.setAttribute("aria-
atomic","true"),this.Qd.classList.add("hidden"),this.Qd.setAttribute("hidden",""),t
his.$d.appendChild(this.Qd),this.rv()),this.Zd instanceof HTMLElement?
(this.Qd.innerHTML="",this.Qd.appendChild(this.Zd)):
(this.Qd.textContent=this.Zd,this.Qd.innerHTML=this.Zd);var
t=document.createElement("button");t.setAttribute("data-
close",""),t.setAttribute("aria-label","Close
alert"),t.classList.add("close"),t.innerHTML=Ff.render("icon_close"),this.Qd.append
Child(t)},n.Rn=function(){var t=this;kl(this.Qd).on("click","[data-close]",
(function(n){t.hide(n)}))},H(t,[{key:"visible",get:function(){return this.Xd}},
{key:"message",get:function(){return this.Zd},set:function(t){t instanceof
HTMLElement&&this.Zd&&t.textContent===this.Zd.textContent||t!
==this.Zd&&(this.Zd=t,this.ev())}}]),t}(),Qv=function(){function t(t,n,i)
{this.player=t,this.backbone=n,this.isBufferingTooLong=!
1,this.isBufferingTooFrequent=!1,this.autoAlertWasDismissed=!1,this.bufferCount=-
1,this.badPlaybackTimer=null,this.ov(i),this.Rh()}var n=t.prototype;return
n.handleBufferStarted=function()
{this.bufferCount+=1,this.av()},n.handleBufferEnded=function()
{clearTimeout(this.badPlaybackTimer),this.badPlaybackTimer=null,this.isBufferingToo
Long=!1},n.Rh=function(){var t=this;this.player.events.on(ec.Cl,(function()
{t.sv()})),this.player.events.on(qs.Os,(function(n)
{t.cv(n)})),this.player.events.on(qs.Ls,(function(n)
{t.lv(n)})),this.player.events.on(qs.Is,this.handleBufferStarted.bind(this)),this.p
layer.events.on(Ti.BUFFER_ENDED,this.handleBufferEnded.bind(this)),this.player.even
ts.on(qs.Rs,(function(){t.autoAlertWasDismissed||
(t.showAlert("stream_studder"),xc.captureBreadcrumb("Alert shown",
{message:"stream_studder"},"video"))})),this.player.events.on(ec.bc,(function(n)
{"auto"===n&&t.alertUI.hide("qualitymenuauto")}))},n.cv=function(t){t||
this.showAlert("warning_alert",{strings:{text:'See a <a
href="https://help.vimeo.com/hc/en-us/articles/115001878167#browsers"
target="_blank" rel="noopener" aria-describedby="new-window">list of browsers</a>
that support 360 viewing.'}})},n.sv=function(){this.showAlert("notice",{strings:
{text:"Debug Payload Copied"}},5e3)},n.lv=function(t){t||
this.showAlert("warning_alert",{strings:{text:'Looking to watch a 360 video? See <a
href="https://help.vimeo.com/hc/en-us/articles/115001878167#browsers"
target="_blank" rel="noopener" aria-describedby="new-window">supported browsers and
settings</a>.'}})},n.showAlert=function(t){var n=arguments.length>1&&void 0!
==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void
0;this.alertUI&&!
this.player.config.embed.settings.background&&(this.alertUI.message=Ff.render(t,n),
this.alertUI.show(null,i))},n.ov=function(t){var n=this;this.alertUI=new Zv(t,
{displayTimeout:1e3}),this.alertUI.on("show",(function(t)
{n.player.events.fire(ec.Mf,!0,t)})),this.alertUI.on("hide",(function(t){var
i=t.target,e=i&&"function"==typeof i.getAttribute;if(e)switch(i.getAttribute("data-
context"))
{case"suggestion":n.player.events.fire(Gs.Hs,"auto"),t="suggestion";break;default:t
="close"}(e||"qualitymenuauto"===t)&&(n.autoAlertWasDismissed=!
0),n.player.events.fire(ec.Mf,!1,t)}))},n.av=function(){var
t=this;null===this.badPlaybackTimer&&0!
==this.bufferCount&&(this.badPlaybackTimer=setTimeout((function()
{t.isBufferingTooLong=!0,t.fv()}),1e4))},n.fv=function()
{"MediaSourceScanner"===this.backbone.currentScannerName&&(this.isBufferingTooLong|
|
this.isBufferingTooFrequent)&&(this.backbone.video.currentFile.restrictedStreamInde
xes.length<=0||
(this.isBufferingTooLong,this.isBufferingTooFrequent,this.player.events.fire(qs.Rs)
,this.bufferCount=0,this.badPlaybackTimer=null,this.isBufferingTooFrequent=!
1,this.isBufferingTooLong=!1))},t}();function tp(t,n,i){return i?n?n(t):t:
(t&&t.then||(t=r.resolve(t)),n?t.then(n):t)}function np(t,n){try{var i=t()}catch(t)
{return n(t)}return i&&i.then?i.then(void 0,n):i}function ip(){}var ep=function()
{function t(t,n){this.Yf=t,this.hv=n,this.dv=0,this.vv()}var n=t.prototype;return
n.pv=function(){this.hv.get(Qc)&&(this.Yf.element.querySelector(".vp-live-viewer-
status-wrapper")||(this.ed=document.createElement("d
iv"),this.ed.classList.add("vp-live-viewer-status-
wrapper","invisible"),this.ed.innerHTML=Ff.render("live_status"),this.ed.querySelec
tor(".vp-live-status-
circle").classList.remove("offline"),this.Yf.element.querySelector(".vp-controls-
wrapper").appendChild(this.ed)))},n.mv=function(){var
t=this.Yf.element.querySelector(".vp-live-viewer-status-
wrapper");t&&this.Yf.element.querySelector(".vp-controls-
wrapper").removeChild(t)},n.vv=function(){var t=this;this.hv.watch(il,(function()
{return t.mv()})),this.Yf.events.on(ec.Hl,(function(){t.Yf.config.video.live_event?
t.pv():t.mv()})),this.Yf.events.on(au.STREAM_ONLINE,(function()
{t.pv(),t.bv()})),this.Yf.events.on(ec.Uc,(function(n){var i;null==(i=t.ed)||
i.classList.toggle("invisible",n)}))},n.bv=function(){try{var t=this;if(!
t.hv.get(Qc)||!t.Yf.config.video.live_event.show_viewer_count)return;var
n=setTimeout((function()
{t.bv()}),3e4),i="".concat(t.Yf.config.video.id);"unlisted"===t.Yf.config.video.pri
vacy&&(i+=":".concat(t.Yf.config.video.unlisted_hash));var
e="https://".concat(t.Yf.config.vimeo_api_url,"/videos/").concat(i,"/stats/live"),o
={jwt_token:t.Yf.config.user.vimeo_bucketed_live_client_token};return
rp(np((function(){return tp(t.Yf.updatePhpTokens(),(function(){return
rp(np((function(){return tp(Xe({url:e,searchParams:o}).json(),(function(n)
{n.viewers?(t.dv=0,t.wv(n.viewers.current)):t.dv++}))}),(function(){t.dv+
+,t.gv()&&clearTimeout(n)})))}))}),(function(i){xc.captureException(i),t.dv+
+,t.gv()&&clearTimeout(n)})))}catch(t){return r.reject(t)}},n.wv=function(t)
{this.Yf.config.video.live_event.show_viewer_count&&(this.ed.querySelector(".vp-
live-viewer-count")||(this.Yf.element.querySelector(".vp-live-viewer-
count").style.display="block",this.ed.innerHTML+=Ff.render("live_viewer_count")),U(
this.Yf.element.querySelectorAll(".vp-live-viewer-count-
value")).forEach((function(n){return n.innerHTML=function(t){return
t=parseFloat(t),isNaN(t)||t<0?"0":t<1e3?t.toString():t>=1e3&&t<1e6?
Math.floor(t/1e3)+"."+Math.round(t%1e3/100)+"k":Math.floor(t/1e6)+"."+Math.round(t
%1e6/1e5)+"m"}(t)})))},n.gv=function(){return
this.dv>3&&(U(this.Yf.element.querySelectorAll(".vp-live-viewer-
count")).forEach((function(t){return t.classList.add("hidden")})),!0)},t}
();function rp(t){if(t&&t.then)return
t.then(ip)}t.BigScreen=Wh,t.VimeoPlayer=function(t,n,i,e){Ff.helpers=Bv;var
o=function(t){if(!0===t)return r.resolve(null);var n=!1;return new r((function(i,e)
{t.link.addEventListener("load",(function(){if(!n){n=!0;var e=(new Date).getTime()-
t.startTime;setTimeout((function(){return i(e)}),100)}}),!1)}))}(i),u=new
_d({element:t,delegate:e,cssLoadedPromise:o}),a=u.store;t.classList.add("js-player-
fullscreen");var
s=u.expose,c=null,l=null,f=null,h=null,d=null,v=null,p=t.querySelector(".vp-
controls"),m=t.querySelector(".vp-sidedock"),b=t.querySelector(".vp-
title"),w=t.querySelector(".vp-cards-wrapper"),g=Wi.mobileAndroid||Wi.iPhone||
Wi.windowsPhone||
Wi.browser.bb10,y={tiny:ec.zl,mini:ec.Gl,normal:ec.Kl,none:ec.Kl};function _(n)
{n&&void 0!==y[n]&&(u.events.fire(y[n]),t.classList.toggle("player-
normal","normal"===n),t.classList.toggle("player-
mini","mini"===n),t.classList.toggle("player-tiny","tiny"===n))}function k(n)
{Object.keys(df).forEach((function(i){return
t.classList.toggle("player-".concat(i),n===i)}))}function E(){var
n=u.config.embed.settings,i=(1===u.config.view||u.config.view,n&&!
n.playbar);t.classList.toggle("no-playbar",i),t.classList.toggle("with-
fullscreen",!!n.fullscreen);var e=n.custom_logo;t.classList.toggle("with-custom-
logo",!!e),t.classList.toggle("with-sticky-custom-
logo",e&&e.sticky),t.classList.toggle("hide-controls-mode",!!n.background||
0===n.controls),t.classList.toggle("touch-support",Wi.touch)}function T(t){var
n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.config.video.url;if(!(!
n||t&&t.metaKey)){if(-
1===n.indexOf("#")&&u.backbone.currentTime>0&&u.backbone.currentTime<u.config.video
.duration-30&&!
u.backbone.paused&&(n+="#at=".concat(Math.floor(u.backbone.currentTime))),!
u.config.embed.on_site)return window.open(n),_s(t),u.events.fire(ec.xc),!
1;window.location=n}}function S(){h||
(k(a.get("ui.player.breakpoint")),h=a.watch("ui.player.breakpoint",k))}function x()
{u.config.video.live_event?a.get(tl)||a.get(il)?v&&(v.disable(),v=null):(v=new
Xd(t,u,a),new ep(u,a)):v&&(v.disable(),v=null)}function A(){E(),d=new
r((function(t,n){var i=null,e=function n()
{clearTimeout(i),window.innerWidth>0&&window.innerHeight>0?
t():i=setTimeout(n,250)};u.events.once(ec.ge,e),u.events.once(ec.lc,e)})),function(
){var t=function(t,n){return u.verifyConfig().then((function(){var
i=u.config.request,e=i.signature,r=i.session,o=i.timestamp,a=i.expires;return
Xe("https://".concat(u.config.player_url,"/video/").concat(u.config.video.id,"/").c
oncat(t,"?
signature=").concat(e,"&session=").concat(r,"&time=").concat(o,"&expires=").concat(
a),{method:n,withCredentials:!0})})).catch((function(i){xc.captureException(i,
{extra:{action:t,method:n}})}))},n=function(t,n){return
u.updatePhpTokens().then((function(){var i="following"===t?
u.config.video.owner.id:u.config.video.id,e=u.config.user.vimeo_api_interaction_tok
ens,r="";if(e)switch(r="?auth=",t)
{case"likes":r+=e.likes;break;case"watchlater":r+=e.watch_later;break;case"followin
g":r+=e.following}var o=u.config.video.unlisted_hash&&"following"!
==t?":".concat(u.config.video.unlisted_hash):"";return
Xe("https://".concat(u.config.vimeo_api_url,"/users/").concat(u.config.user.id,"/")
.concat(t,"/").concat(i).concat(o).concat(r),
{method:n,jwt:u.config.user.vimeo_api_client_token}).catch((function(i)
{xc.captureException(i,{extra:{action:t,method:n}})}))})).catch((function(t)
{xc.captureException(t)}))};u.events.on(ec.ol,(function(t)
{if(u.config.user.purchased)return!
u.config.video.vod.is_feature&&u.config.video.vod.feature_id?void
u.loadVideo(u.config.video.vod.feature_id).then((function(){return
u.events.fire(ec.Ac),u.config.video.vod.feature_id})).catch((function(t)
{xc.captureException(t),u.events.fire(Gs._showOverlay,"error",
{title:"Sorry",message:"There was a problem. Please try again."})})):void
u.events.fire(ec.Ac);u.config.video.vod&&u.config.video.vod.is_coming_soon?
T(null,u.config.video.vod.url):u.performDelegateAction(Xs,(function()
{u.events.fire(Gs.Us,"purchase",{productId:t})}),[t])})),u.events.on(ec.nl,
(function(){u.config.user.logged_in?u.config.user.id!
==u.config.video.owner.id&&(u.config.user.liked?u.performDelegateAction(Ys,
(function(){"disable"!==u.config.video.privacy?
n("likes","DELETE"):t("like","DELETE"),u.config.user.liked=!
1,u.events.fire(ec.Ll)})):u.performDelegateAction(Ks,(function(){"disable"!
==u.config.video.privacy?n("likes","PUT"):t("like","PUT"),u.config.user.liked=!
0,u.events.fire(ec.jl)}))):u.performDelegateAction(Qs,(function()
{u.events.fire(Gs.Us,"login-like")}))})),u.events.on(ec.il,(function()
{(u.config.video.url||"unlisted"===u.config.video.privacy)&&(u.config.user.logged_i
n?u.config.user.watch_later?u.performDelegateAction($s,(function()
{n("watchlater","DELETE"),u.config.user.watch_later=!
1,u.events.fire(ec.Pl)})):u.performDelegateAction(Js,(function()
{n("watchlater","PUT"),u.config.user.watch_later=!
0,u.events.fire(ec.Dl)})):u.performDelegateAction(Qs,(function()
{u.events.fire(Gs.Us,"login-watch-later")})))})),u.events.on(ec.ul,(function()
{u.performDelegateAction(tc,(function(){u.config.video.vod&&u.config.video.vod.url?
T(null,"".concat(u.config.video.vod.url,"#collections")):u.config.video.url&&T(null
,"".concat(u.config.video.url,"#collections"))}))})),u.events.on(ec.el,(function()
{var
t=u.config.embed.settings.share&&u.config.embed.settings.share.embed_only,n=functio
n(){u.events.fire(Gs._showOverlay,"share",t)};Wh.element?
n():u.performDelegateAction(Zs,n)})),u.events.on(ec.rl,(function()
{u.config.embed.settings.share.embed_only&&u.performDelegateAction(Zs,(function()
{u.events.fire(Gs._showOverlay,"share",!0)}))})),u.events.on(ec.al,(function()
{if(u.config.user.logged_in&&u.config.user.id!==u.config.video.owner.id)
{if(u.config.user.following)return
n("following","DELETE"),u.config.user.following=!1,void
u.events.fire(ec.ff);n("following","PUT"),u.config.user.following=!
0,u.events.fire(ec.lf)}}))}(),u.events.on(ec.dc,(function()
{t.classList.add("player-ad")})),u.events.on([ec.vc,Gs.Vs],(function()
{t.classList.remove("player-ad")})),function(){var n=function(){return
function(t,n,i){return t&&t.then||(t=r.resolve(t)),n?t.then(n):t}(d,(function(){var
n=function(){var n=Es(t),i=n.width,e=n.height;return g?
e<=200?"10px":i<450?"12px":i<=1024?"11px":"10px":"10px"}
();p.style.fontSize=n,m.style.fontSize=n,b.style.fontSize=n}))};u.events.on(ec.Zc,n
),u.events.on(ec.tl,n),window.addEventListener("orientationchange",n),g&&(t.classLi
st.add("mobile"),n())}(),a.watch("ui.player.mode",_),S(),function(){function n()
{var n=t;if(e&&e.getFullscreenElement&&"function"==typeof e.getFullscreenElement)
{var i=e.getFullscreenElement();i&&i instanceof
HTMLElement&&i.contains(t)&&i.classList.contains("js-player-
fullscreen")&&(n=i)}return n}u.config.embed.fullscreen=!
0,Wi.iPad&&t.classList.add("no-fullscreen-api-support");var
i=u.config.embed.playsinline&&Wi.iOS>=10,r=Wi.iPad||i;Wh.enabled||r||
(t.classList.add("no-fullscreen-support"),Wi.iOS||(u.config.embed.fullscreen=!
1));var o=!1,a=!1,s=!1;u.events.on([nu,iu],(function(){s=!0})),u.events.on(Gs.Js,
(function(){Wh.enabled||Wh.videoEnabled(t)?(u.events.fire(ec.Xc),a=!
1,Wh.request(n())):u.events.fire(Gs.Zs,!0)})),u.events.on(ec.Sc,(function()
{"picture-in-
picture"===u.backbone.presentationMode&&u.events.fire(Gs.ic),Wh.element?
(u.events.fire(ec.Qc),Wh.exit()):(u.events.fire(ec.Xc),a=!0,Wh.request(n()))}));var
c=Wh.onenter,l=Wh.onexit;if(Wh.onenter=function(t){o||(n().contains(t)?
function(t,i){s?s=!1:o||(o=!0,u.events.fire(ec.Zc,n()===t,a))}
(t):"function"==typeof c&&c(t))},Wh.onexit=function(){o?s?s=!1:o&&(o=!
1,u.events.fire(ec.tl,a),a||u.events.fire(Gs.Zs,!1),a=!1):"function"==typeof
l&&l()},kl(t).on("click","a",(function(t)
{Wh.element===n()&&Wh.exit()})),kl(t).on("gestureend",(function(t){t.sc
ale>1&&u.events.fire(ec.Sc)})),"undefined"!=typeof MSGesture){var f=1,h=new
MSGesture;h.target=t,kl(t).on("pointerdown",(function(t)
{h.addPointer(t.pointerId)})).on(["MSGestureChange"],(function(t)
{f*=t.scale})).on(["MSGestureEnd"],(function(){(!o&&f>=2||
o&&f<1)&&u.events.fire(ec.Sc),f=1}))}}(),kd(t,"a[data-clip-
link]",T),u.events.on(Gs.qs,T),kd(t,"[data-track-click]",(function(t){var
n=t.target.dataset.trackClick;u.events.fire(ec.yc,n)})),x(),u.events.on(ec.Hl,
(function(){E(),x()})),u.events.on(Gs.sc,(function(){v.disable()}))}function M()
{c||(c=new fv(u,a,t.querySelector(".vp-overlay-wrapper")))}function C(){l||(l=new
Dv(u,{uuid:u.uuid,id:t.id,isMobileDevice:!1}))}function R(){f||(f=new Pv(u))}var
I={initializationHandler:function(){return function(){M(),C(),R(),new Wd(u,a,p),new
Gd(u,a,t);var n=new Xv(u,a,t);new Zd(u,t.querySelector(".vp-notification-
wrapper")),new tv(u,a,t.querySelector(".vp-outro-wrapper")),new Hv(u,m),new
qv(u,b),new Gv(u,t),Object.defineProperties(s,{pauseKeyboard:{enumerable:!
0,value:n.pause},unpauseKeyboard:{enumerable:!0,value:n.unpause}})}
(),A(),r.resolve()},postInitializationHandler:function(){return u.backbone&&(new
Jd(t.querySelector(".vp-stats-debug"),u),new Jv(u,a,w),new
Qv(u,u.backbone,t)),r.resolve()},authorizationHandler:function(t){var
n;S(),t(),M(),C();var i="Error",e="Unhandled video privacy";switch(u.config.view)
{case 4:return new r((function(t,n)
{u.events.fire(Gs._showOverlay,"password"),u.events.once(ec.ql,(function(n)
{t(n)}))}));case 2:R();var o="private-locked",a=null;return
u.config.user.logged_in&&(o="error",a={title:"Private Video",message:"Sorry, you
don’t have permission to watch.",modal:!0,logo:!!
u.config.embed.settings.logo,icon:"lock"}),u.events.fire(Gs._showOverlay,o,a),r.rej
ect();case 7:i=u.config.title,e=u.config.message;break;case 10:return
R(),u.events.fire(Gs._showOverlay,"webinar-confirmation"),r.reject();case
11:if(null==(n=u.config.video.webinar)?void 0:n.registration_form)return new
r((function(t,n){u.events.fire(Gs._showOverlay,"email-
capture"),u.events.once(ec.uf,(function(n){t(n)}))}))}return
u.events.fire(Gs._showOverlay,"error",{title:i,message:e,modal:!
0}),r.reject()}};return u.init(n,I).then((function(){return 3!==u.config.view||
u.config.embed.autoplay||u.events.fire(Gs._showOverlay,"private-unlocked"),!
0})).catch((function(n)
{xc.captureException(n),M(),C(),t.classList.remove("loading"),u.events.fire(ec.lc,f
c.id,fc)})),s},t.requestModule=ur,Object.defineProperty(t,"ph",{value:!0})}
(this.window=this.window||{});

You might also like