/*! For license information please see E-v1-with-vulcan-v2.js.LICENSE.txt */
(function(){var __webpack_modules__=[,,function(t,e,n){"use strict";var i=n(3);null==i.default.Wistia&&(i.default.Wistia={});var o=i.default.Wistia;null==o._initializers&&(o._initializers={}),null==o._destructors&&(o._destructors={}),null==o.mixin&&(o.mixin=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),e.default=i.default.Wistia},function(t,e){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i;try{(i=self).self!==i&&void 0!==n(i.self)&&"undefined"!=typeof window&&(i=window)}catch(t){i="undefined"==typeof globalThis?window:globalThis}e.default=i},,,function(t,e,n){"use strict";n.d(e,{render:function(){return I},h:function(){return p},Component:function(){return v},options:function(){return o}});var i,o,r,a,s,u,l={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function p(t,e,n){var o,r,a,s={};for(a in e)"key"==a?o=e[a]:"ref"==a?r=e[a]:s[a]=e[a];if(2<arguments.length&&(s.children=3<arguments.length?i.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return y(t,s,o,r,null)}function y(t,e,n,i,a){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++r:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function m(t){return t.children}function v(t,e){this.props=t,this.context=e}function g(t,e){if(null==e)return t.__?g(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?g(t):null}function b(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return b(t)}}function _(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!w.__r++||u!==o.debounceRendering)&&((u=o.debounceRendering)||s)(w)}function w(){for(var t;w.__r=a.length;)t=a.sort((function(t,e){return t.__v.__b-e.__v.__b})),a=[],t.some((function(t){var e,n,i,o,r,a;t.__d&&(r=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(i=h({},o)).__v=o.__v+1,A(a,o,i,e.__n,void 0!==a.ownerSVGElement,null==o.__h?null:[r],n,null==r?g(o):r,o.__h),x(n,o),o.__e!=r&&b(o)))}))}function S(t,e,n,i,o,r,a,s,u,f){var h,d,p,v,b,_,w,S=i&&i.__k||c,O=S.length;for(n.__k=[],h=0;h<e.length;h++)if(null!=(v=n.__k[h]=null==(v=e[h])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?y(null,v,null,null,v):Array.isArray(v)?y(m,{children:v},null,null,null):0<v.__b?y(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(p=S[h])||p&&v.key==p.key&&v.type===p.type)S[h]=void 0;else for(d=0;d<O;d++){if((p=S[d])&&v.key==p.key&&v.type===p.type){S[d]=void 0;break}p=null}A(t,v,p=p||l,o,r,a,s,u,f),b=v.__e,(d=v.ref)&&p.ref!=d&&(w||(w=[]),p.ref&&w.push(p.ref,null,v),w.push(d,v.__c||b,v)),null==b?u&&p.__e==u&&u.parentNode!=t&&(u=g(p)):(null==_&&(_=b),"function"==typeof v.type&&v.__k===p.__k?v.__d=u=k(v,u,t):u=T(t,v,p,S,b,u),"function"==typeof n.type&&(n.__d=u))}for(n.__e=_,h=O;h--;)null!=S[h]&&("function"==typeof n.type&&null!=S[h].__e&&S[h].__e==n.__d&&(n.__d=g(i,h+1)),R(S[h],S[h]));if(w)for(h=0;h<w.length;h++)D(w[h],w[++h],w[++h])}function k(t,e,n){for(var i,o=t.__k,r=0;o&&r<o.length;r++)(i=o[r])&&(i.__=t,e="function"==typeof i.type?k(i,e,n):T(n,i,i,o,i.__e,e));return e}function T(t,e,n,i,o,r){var a,s,u;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=r||null==o.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(o),a=null;else{for(s=r,u=0;(s=s.nextSibling)&&u<i.length;u+=2)if(s==o)break t;t.insertBefore(o,r),a=r}return void 0===a?o.nextSibling:a}function O(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||f.test(e)?n:n+"px"}function P(t,e,n,i,o){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||O(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||O(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?i||t.addEventListener(e,r?C:E,r):t.removeEventListener(e,r?C:E,r);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function E(t){this.l[t.type+!1](o.event?o.event(t):t)}function C(t){this.l[t.type+!0](o.event?o.event(t):t)}function A(t,e,n,i,r,a,s,u,l){var c,f,d,p,y,g,b,_,w,k,T,O=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,u=e.__e=n.__e,e.__h=null,a=[u]),(c=o.__b)&&c(e);try{t:if("function"==typeof O){if(_=e.props,w=(c=O.contextType)&&i[c.__c],k=c?w?w.props.value:c.__:i,n.__c?b=(f=e.__c=n.__c).__=f.__E:("prototype"in O&&O.prototype.render?e.__c=f=new O(_,k):(e.__c=f=new v(_,k),f.constructor=O,f.render=B),w&&w.sub(f),f.props=_,f.state||(f.state={}),f.context=k,f.__n=i,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=O.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,O.getDerivedStateFromProps(_,f.__s))),p=f.props,y=f.state,d)null==O.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==O.getDerivedStateFromProps&&_!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(_,k),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(_,f.__s,k)||e.__v===n.__v){f.props=_,f.state=f.__s,e.__v!==n.__v&&(f.__d=!1),f.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),f.__h.length&&s.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(_,f.__s,k),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,y,g)}))}f.context=k,f.props=_,f.state=f.__s,(c=o.__r)&&c(e),f.__d=!1,f.__v=e,f.__P=t,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(i=h(h({},i),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(p,y)),T=null!=c&&c.type===m&&null==c.key?c.props.children:c,S(t,Array.isArray(T)?T:[T],e,n,i,r,a,s,u,l),f.base=e.__e,e.__h=null,f.__h.length&&s.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=M(n.__e,e,n,i,r,a,s,l);(c=o.diffed)&&c(e)}catch(t){e.__v=null,(l||null!=a)&&(e.__e=u,e.__h=!!l,a[a.indexOf(u)]=null),o.__e(t,e,n)}}function x(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function M(t,e,n,o,r,a,s,u){var c,f,h,p=n.props,y=e.props,m=e.type,v=0;if("svg"===m&&(r=!0),null!=a)for(;v<a.length;v++)if((c=a[v])&&(c===t||(m?c.localName==m:3==c.nodeType))){t=c,a[v]=null;break}if(null==t){if(null===m)return document.createTextNode(y);t=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,y.is&&y),a=null,u=!1}if(null===m)p===y||u&&t.data===y||(t.data=y);else{if(a=a&&i.call(t.childNodes),f=(p=n.props||l).dangerouslySetInnerHTML,h=y.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},v=0;v<t.attributes.length;v++)p[t.attributes[v].name]=t.attributes[v].value;(h||f)&&(h&&(f&&h.__html==f.__html||h.__html===t.innerHTML)||(t.innerHTML=h&&h.__html||""))}if(function(t,e,n,i,o){var r;for(r in n)"children"===r||"key"===r||r in e||P(t,r,null,n[r],i);for(r in e)o&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||P(t,r,e[r],n[r],i)}(t,y,p,r,u),h)e.__k=[];else if(v=e.props.children,S(t,Array.isArray(v)?v:[v],e,n,o,r&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&g(n,0),u),null!=a)for(v=a.length;v--;)null!=a[v]&&d(a[v]);u||("value"in y&&void 0!==(v=y.value)&&(v!==t.value||"progress"===m&&!v)&&P(t,"value",v,p.value,!1),"checked"in y&&void 0!==(v=y.checked)&&v!==t.checked&&P(t,"checked",v,p.checked,!1))}return t}function D(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function R(t,e,n){var i,r;if(o.unmount&&o.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||D(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){o.__e(t,e)}i.base=i.__P=null}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&R(i[r],e,"function"!=typeof t.type);n||null==t.__e||d(t.__e),t.__e=t.__d=void 0}function B(t,e,n){return this.constructor(t,n)}function I(t,e,n){var r,a,s;o.__&&o.__(t,e),a=(r="function"==typeof n)?null:n&&n.__k||e.__k,s=[],A(e,t=(!r&&n||e).__k=p(m,null,[t]),a||l,l,void 0!==e.ownerSVGElement,!r&&n?[n]:a?null:e.firstChild?i.call(e.childNodes):null,s,!r&&n?n:a?a.__e:e.firstChild,r),x(s,t)}i=c.slice,o={__e:function(t,e){for(var n,i,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},r=0,v.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof t&&(t=t(h({},n),this.props)),t&&h(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),_(this))},v.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),_(this))},v.prototype.render=m,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,w.__r=0},function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?i(Object(e),!0).forEach((function(n){r(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{standardSvgAttrs:function(){return a}});var a=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return{x:"0px",y:"0px",viewBox:"0 0 ".concat(t," ").concat(e),"enable-background":"new 0 0 ".concat(t," ").concat(e),style:o({fill:"#ffffff",height:"100%",left:0,strokeWidth:0,top:0,width:"100%"},n),focusable:"false"}}},,function(t,e,n){"use strict";n.d(e,{interFontFamily:function(){return i},interNumbersSemiBold:function(){return o}});var i="WistiaPlayerInter, Helvetica, Sans-Serif",o="WistiaPlayerInterNumbersSemiBold, Helvetica, Sans-Serif"},function(t,e,n){"use strict";n.d(e,{seqId:function(){return o}});var i=n(2),o=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"wistia_",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=i.default._sequenceVal||1,o=""+t+n+e;return i.default._sequenceVal=n+1,o}},function(t,e,n){"use strict";n.d(e,{getLanguage:function(){return h},defineTranslations:function(){return d},getTranslation:function(){return m},getDefaultTranslation:function(){return b}});var i=n(2),o=n(12),r=n(14),a=n.n(r),s=i.default.languages=i.default.languages||{},u=i.default.translations=i.default.translations||{};i.default._translationPromises||(i.default._translationPromises={});var l,c=["ar","de","es","en-US","fr","it","ja","ko","pt","ru","zh-CN"],f=function(t,e,n){s[t]={code:t,text:y(e)},n&&d(t,n)},h=function(t){return s[t]},d=function(t,e){if(null==s[t])throw new Error("Must define a language with code ".concat(t," before defining its translations."));var n=u[t];n?(0,o.merge)(n,e):u[t]=(0,o.clone)(e)},p=i.default.cachedDecodings=i.default.cachedDecodings||{},y=function(t){return l||(l=document.createElement("textarea")),null!=p[t]?p[t]:(l.innerHTML=t,p[t]=l.value,l.value)},m=function(t,e){var n;return n=u[t]&&u[t][e]?u[t][e]:u["en-US"][e],y(function(t){return null==t?"?":t}(n))},v=function(){return i.default.languagePreference=navigator.languages||navigator.language?navigator.languages||[navigator.language]:["en-US"],i.default.languagePreference},g=function(t){if(i.default._translationPromises[t])return i.default._translationPromises[t];var e=new(a())((function(e,n){i.default.asyncRequire(["translations/".concat(t,".js")]).then((function(){e({code:t,translations:u[t]})})).catch(n)}));return i.default._translationPromises[t]=e,e},b=function(){var t=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:v)().reduce((function(t,e){var n=-1!==c.indexOf(e),i=e.split("-")[0],o=-1!==c.indexOf(i);return n?t.push(e):o&&t.push(i),t}),[])}()[0];return t&&"en"!==t||(t="en-US"),u[t]?a().resolve({code:t,translations:u[t]}):g(t)};f("en-US","English"),d("en-US",{PLAY:"Play",PLAY_BUTTON_TITLE_WHEN_NOT_PLAYING:"Play Video",PLAY_BUTTON_TITLE_WHEN_PLAYING:"Pause",REWATCH:"Rewatch",SKIP:"Skip"}),i.default._initializers.initDefaultTranslation=b,i.default.getDefaultTranslation=b,i.default.suppportedLanguages=c,i.default.defineLanguage=f,i.default.getLanguage=h,i.default.getLanguagePreference=v,i.default.defineTranslations=d,i.default.getTranslation=m,i.default.loadAndDefineTranslation=g},function(t,e,n){"use strict";n.r(e),n.d(e,{merge:function(){return a},mergeOne:function(){return s},identityFunc:function(){return u},legacyShouldDeleteFromMerge:function(){return l},clone:function(){return c},getDeep:function(){return f},setDeep:function(){return h},setAndPreserveUndefined:function(){return d},unsetDeep:function(){return y},exists:function(){return m},assign:function(){return i.default},cast:function(){return v},castDeep:function(){return b},only:function(){return _},except:function(){return w},select:function(){return S},filter:function(){return P},values:function(){return T},sort:function(){return O},isArray:function(){return C},isObject:function(){return x},isFunction:function(){return M},isRegExp:function(){return R},isBasicType:function(){return I},isEmpty:function(){return F},isSubsetDeep:function(){return L},equalsDeep:function(){return j},eachDeep:function(){return W},eachLeaf:function(){return H},pick:function(){return V},indexOf:function(){return U},keys:function(){return N}});var i=n(13);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=Array.prototype.slice,a=function(t){if(0==(1>=arguments.length?0:arguments.length-1))return t;for(var e=0;e<(1>=arguments.length?0:arguments.length-1);e++)s(t,1>e+1||arguments.length<=e+1?void 0:arguments[e+1]);return t},s=function t(e,n){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:u,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:l;if(C(n)){C(e)||(e=[]);for(var r,a=0;a<n.length;a++){r=n[a],null==e[a]&&null!=r&&(C(r)?e[a]=[]:x(r)&&(e[a]={}));var s=t(e[a],r,i);o(n,a,s)?delete e[a]:e[a]=s}return i(e)}if(x(n)){for(var c in n)if(n.hasOwnProperty(c)&&(e.hasOwnProperty(c)||null==e[c])){var f=n[c];C(f)?(!C(e[c])&&(e[c]=[]),t(e[c],f,i),e[c]=i(e[c])):x(f)?(!x(e[c])&&(e[c]={}),t(e[c],f,i),e[c]=i(e[c])):null==e?(e={},!o(n,c,f)&&(e[c]=i(f))):o(n,c,f)?delete e[c]:e[c]=i(f)}return i(e)}return i(n)},u=function(t){return t},l=function(t,e,n){return null==n},c=function(t,e){return C(t)?s([],t,e):s({},t,e)},f=function(t,e,n){e="string"==typeof e?e.split("."):r.call(e);for(var i,o=t;null!=t&&e.length;){var a=e.shift();void 0!==t[a]&&(x(t[a])||C(t[a]))||!n||(0===a?(t=o[i]=[])[a]={}:t[a]={}),o=t,i=a,t=t.hasOwnProperty(a)?t[a]:void 0}return t},h=function(t,e,n){return p(t,e,n,!0)},d=function(t,e,n){return p(t,e,n,!1)},p=function(t,e,n){var i=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],o=(e="string"==typeof e?e.split("."):r.call(e)).pop();null!=(t=f(t,e,!0))&&(x(t)||C(t))&&null!=o&&(i&&null==n?delete t[o]:t[o]=n)},y=function(t,e){return h(t,e)},m=function(t,e){return void 0!==f(t,e)},v=function(t){return null==t?t:x(t)||C(t)?b(t):g(""+t,t)},g=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t;return/^-?[1-9]\d*?$/.test(t)?parseInt(t,10):"0"===t||"-0"===t?0:/^-?\d*\.\d+$/.test(t)?parseFloat(t):!!/^true$/i.test(t)||!/^false$/i.test(t)&&e},b=function(t){return s(t,t,(function(t){return"string"==typeof t?g(t):t}),(function(){return!1}))},_=function(t,e){for(var n={},i={},o=0;o<e.length;o++)i[e[o]]=!0;for(var r in t)i[r]&&(n[r]=t[r]);return n},w=function(t,e){for(var n={},i={},o=0;o<e.length;o++)i[e[o]]=!0;for(var r in t)i[r]||(n[r]=t[r]);return n},S=function(t,e){for(var n,i=[],o="function"==typeof e,r=o?e:null,a=0;a<t.length;a++)if(n=t[a],o)r(n)&&i.push(n);else{var s=!0;for(var u in e){var l=e[u];if(l instanceof Array){if(!n[u]||n[u]<l[0]||n[u]>l[1]){s=!1;break}}else if(l instanceof RegExp){if(!l.test(n[u])){s=!1;break}}else if(l instanceof k){for(var c,f=!1,h=0;h<l.values.length;h++)if(c=l.values[h],n[u]===c){f=!0;break}if(!f){s=!1;break}}else if("function"==typeof l){if(null==n[u]||!l(n[u])){s=!1;break}}else if(n[u]!==l){s=!1;break}}s&&i.push(n)}return i},k=function(t){var e=this;return e.values=t,e},T=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return new k(e)},O=function(t,e){var n="function"==typeof e,i=n?e:null,o=r.call(t);return n?o.sort(i):o.sort((function(t,n){var i;i=e instanceof Array?c(e):e.split(/\s*,\s*/);for(var o=0;0===o&&0<i.length;){var r=i.shift().split(/\s+/),a=r[0],s=r[1];if(s="desc"===s?-1:1,t[a]<n[a]){o=-1*s;break}if(t[a]!==n[a]){o=1*s;break}o=0}return o})),o},P=function(t,e,n){for(var i=void 0===n?undefined:n,o=[],r=0;r<t.length;r++)e.call(i,t[r],r,t)&&o.push(t[r]);return o},E=/^\s*function Array()/,C=function(t){return null!=t&&t.push&&E.test(t.constructor)},A=/^\s*function Object()/,x=function(t){return null!=t&&"object"===o(t)&&A.test(t.constructor)},M=function(t){return null!=t&&"function"==typeof t},D=/^\s*function RegExp()/,R=function(t){return null!=t&&D.test(t.constructor)},B=/^string|number|boolean|function$/i,I=function(t){return null!=t&&(B.test(o(t))||R(t))},F=function(t){return!(null!=t&&(!C(t)||t.length)&&(!x(t)||Object.keys(t).length))},L=function(t,e){if(t===e)return!0;if(null!=t&&null==e||null==t&&null!=e)return!1;var n=!0;return H(t,(function(t,i){t!==f(e,i)&&(n=!1)})),n},j=function(t,e){return L(t,e)&&L(e,t)},W=function t(e,n,i,o,a){if(null==i&&(i=[]),I(e))n(e,i,o,a);else if(x(e)||C(e)){for(var s in n(e,i,o,a),e)if(e.hasOwnProperty(s)){var u=r.call(i);u.push(s),t(e[s],n,u,e,s)}}else n(e,i,o,a)},H=function(t,e){W(t,(function(t,n,i,o){C(t)||x(t)||e(t,n,i,o)}))},V=function(t,e){for(var n,i={},o=0;o<e.length;o++)t[n=e[o]]&&(i[n]=t[n]);return i},U=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},N=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}},function(t,e){"use strict";function n(){return(n=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}var i=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t};e.default=function(t){for(var e=arguments.length,o=Array(1<e?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];if(Object.assign)return n.apply(void 0,[t].concat(o));for(var a=0;a<o.length;a++)i(t,o[a]);return t}},function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(n,i){function o(t,n){return e(n)[0]==t}function r(t,e){return(e=function i(s,u,l,c,f,h){if(c=i.q,s!=o)return r((function(t,e){c.push({p:this,r:t,j:e,1:s,0:u})}));if(l&&o(n,l)|o("o",l))try{f=l.then}catch(t){u=0,l=t}if(o(n,f)){var d=function(t){return function(e){f&&(f=0,i(o,t,e))}};try{f.call(l,d(1),u=d(0))}catch(t){u(t)}}else for(e=function(e,i){return o(n,e=u?e:i)?r((function(t,n){a(this,t,n,l,e)})):t},h=0;h<c.length;)f=c[h++],o(n,s=f[u])?a(f.p,f.r,f.j,l,s):(u?f.r:f.j)(l)}).q=[],t.call(t={then:function(t,n){return e(t,n)},catch:function(t){return e(0,t)}},(function(t){e(o,1,t)}),(function(t){e(o,0,t)})),t}function a(t,e,i,r,a){var s=function(){try{r=a(r),a=r&&o("o",r)|o(n,r)&&r.then,o(n,a)?r==t?i(TypeError()):a.call(r,e,i):e(r)}catch(t){i(t)}};window.setImmediate?window.setImmediate(s):setTimeout(s,0)}function s(t){return r((function(e){e(t)}))}window.Promise?t.exports=window.Promise:(t.exports=r,r.resolve=s,r.reject=function(t){return r((function(e,n){n(t)}))},r.all=function(t){return r((function(e,n,i,o){o=[],i=t.length||e(o),t.map((function(t,r){s(t).then((function(t){o[r]=t,--i||e(o)}),n)}))}))},r.race=function(t){return r((function(e,n){t.map((function(t){s(t).then(e,n)}))}))})}("f")},function(t,e,n){"use strict";n.d(e,{isMouseDown:function(){return l},isMouseDownRecently:function(){return c}});var i=n(2),o=n(16),r=(0,n(20).cachedDetect)();if(null==i.default._isMouseDown){i.default._isMouseDown=!1;var a=function(t){i.default._isMouseDown=!0,i.default._lastMouseDownAt=Date.now(),setTimeout((function(){t.defaultPrevented&&(i.default._isMouseDown=!1)}),0)},s=function(){i.default._lastMouseUpAt=Date.now(),setTimeout((function(){i.default._isMouseDown=!1}),0)};r.touchScreen?((0,o.elemBind)(document,"touchstart",a,!0),(0,o.elemBind)(document,"touchend",(function(){i.default._lastMouseUpAt=Date.now(),setTimeout((function(){i.default._isMouseDown=!1}),0)}),!0)):((0,o.elemBind)(document,"mousedown",a,!0),(0,o.elemBind)(document,"mouseup",s,!0));var u=r.windows?s:a;(0,o.elemBind)(document,"contextmenu",u,!0)}var l=function(){return null==i.default._mouseDownForceReturnVal?i.default._isMouseDown:i.default._mouseDownForceReturnVal},c=function(){return null==i.default._mouseDownForceReturnVal?(t=500,Math.max(i.default._lastMouseDownAt||0,(i.default._lastMouseUpAt||0)-1)>Date.now()-t):i.default._mouseDownForceReturnVal;var t}},function(t,e,n){"use strict";n.r(e),n.d(e,{isDocReady:function(){return r.isDocReady},onDocReady:function(){return r.onDocReady},pageLoaded:function(){return a.default},execScriptTags:function(){return c.execScriptTags},getScriptTags:function(){return c.getScriptTags},removeScriptTags:function(){return c.removeScriptTags},elemOffset:function(){return l.elemOffset},elemZoom:function(){return l.elemZoom},isBoxModel:function(){return l.isBoxModel},elemHtml:function(){return p},getCssTags:function(){return y},execCssTags:function(){return m},removeCssTags:function(){return v},addInlineCss:function(){return g},elemFromObject:function(){return b},elemToObject:function(){return _},elemClone:function(){return w},elemAppend:function(){return S},elemPrepend:function(){return k},elemBefore:function(){return T},elemAfter:function(){return O},elemRemove:function(){return P},elemRemoveClass:function(){return E},elemAddClass:function(){return C},elemHasClass:function(){return A},elemClasses:function(){return D},elemStyle:function(){return B},propsWithVendorPrefixes:function(){return L},getComputedStyle:function(){return j},elemWidth:function(){return W},elemHeight:function(){return H},elemContainsOffset:function(){return V},elemScrollOffset:function(){return U},elemIsHidden:function(){return N},elemInDom:function(){return q},elemIsDescendantOf:function(){return z},elemAncestorWithClass:function(){return K},elemAncestorHasClass:function(){return G},elemAncestors:function(){return Q},elemIsInside:function(){return X},elemAnimate:function(){return $},elemBind:function(){return Z},elemUnbind:function(){return J},elemUnbindAll:function(){return tt},elemUnbindAllInside:function(){return et},elemBindKey:function(){return nt},elemRebind:function(){return it},elemBindOnce:function(){return ot},elemTrigger:function(){return rt},fullscreenElement:function(){return at},elemRequestFullscreen:function(){return st},elemCancelFullscreen:function(){return ut},elemStripEventAttributes:function(){return lt},elemMutationObserver:function(){return ct},docScrollTop:function(){return ft},docScrollLeft:function(){return ht},safeRequestAnimationFrame:function(){return dt},formInputIsFocused:function(){return pt},inUserEventContext:function(){return yt},getLastActiveEventAt:function(){return mt}});var i,o=n(12),r=n(17),a=n(19),s=n(20),u=n(21),l=n(25),c=n(26),f=n(10),h=n(2).default,d=(0,s.cachedDetect)(),p=function(t,e){var n=y(e),i=(0,c.getScriptTags)(e);return e=v(e),e=(0,c.removeScriptTags)(e),t.innerHTML=e,m(n,t),(0,c.execScriptTags)(i)},y=function(t){return t.match(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi)||[]},m=function(t,e){if(!t)return null;(0,o.isArray)(t)||(t=y(t));for(var n,i=[],r=0;r<t.length;r++)if(n=t[r],/<link.*?rel=['"]stylesheet['"][^>]*>/.test(n)){var a=n.match(/href=['"](.*?)['"]/i);if(a){var s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",a[1]),s.className="wistia_injected_style",(e||document.body||document.head).appendChild(s),i.push(s)}}else if(/<style>[\s\S]+?<\/style>/gi.test(n)){var u=n.match(/<style>([\s\S]+?)<\/style>/i);if(u){var l=g(e||document.body||document.head,u[1]);i.push(l)}}return i},v=function(t){return t.replace(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi,"")},g=function(t,e){var n=t||document.body||document.head,i=document.createElement("style");return i.id=(0,f.seqId)("wistia_","_style"),i.setAttribute("type","text/css"),i.className="wistia_injected_style",n.appendChild(i,n.nextSibling),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),i},b=function t(e){if((0,o.isArray)(e)){for(var n=[],i=0;i<e.length;i++)n.push(t(e[i]));return n}var r=e.tagName||"div",a=e.childNodes||[];(0,o.isArray)(a)||(a=[a]);var s=document.createElement(r);for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if("childNodes"===u||"tagName"===u||"ref"===u)continue;var c=u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if("style"===u)if((0,o.isObject)(l))for(var f in l)s.style[f]=l[f];else for(var h=l.split(";"),d=0;d<h.length;d++){var p=h[d].split(/\s*:\s*/),y=p[0],m=p[1];y&&m&&(s.style[y]=m)}else if("events"===u)for(var v in l){var g=l[v];Z(s,v,g)}else"className"===u||"class"===u?s.className=l:"innerHTML"===u?s.innerHTML=l:"innerText"===u?s.innerText=l:null!=l&&"function"==typeof l.toString&&s.setAttribute(c,l.toString())}for(var b,_=0;_<a.length;_++)if(b=a[_],(0,o.isObject)(b)){var w=t(b);S(s,w)}else{var k=document.createTextNode(b.toString());S(s,k)}return"function"==typeof e.ref&&e.ref(s),s},_=function t(e){if((0,o.isArray)(e))for(var n=[],i=0;i<e.length;i++)n.push(t(e[i]));for(var r,a={tagName:e.tagName.toLowerCase()},s=Object.keys(e),u=0;u<s.length;u++){if("tagName"===(r=s[u])||"childNodes"===r||"nodeType"===r||"nodeValue"===r)continue;if("style"===r){a.style={};for(var l=Object.keys(e.style),c=0;c<l.length;c++){var f=l[c],h=e.style[f];h&&!/^\d/.test(f)&&"length"!==f&&(a.style[f]=h)}}else{var d=e.getAttribute(r);null!=d&&(a[r]=d)}}for(var p,y=[],m=0;m<e.childNodes.length;m++)1===(p=e.childNodes[m]).nodeType?y.push(t(p)):3===p.nodeType&&y.push(p.nodeValue);return 0<y.length&&(a.childNodes=y),a},w=function(t){var e=_(t);return b(e)},S=function t(e,n){if((0,o.isArray)(n))for(var i=0;i<n.length;i++)t(e,n[i]);else e.appendChild(n,{wistiaGridCaller:!0})},k=function t(e,n){if(!(0,o.isArray)(n))return 0===e.childNodes.length?S(e,n):e.insertBefore(n,e.childNodes[0]);for(var i=0;i<n.length;i++)t(e,n[i])},T=function t(e,n){if(!(0,o.isArray)(n))return e.parentNode.insertBefore(n,e);n=n.reverse();for(var i=0;i<n.length;i++)t(e,n[i])},O=function t(e,n){if(!(0,o.isArray)(n))return e.parentNode.insertBefore(n,e.nextSibling);n=n.reverse();for(var i=0;i<n.length;i++)t(e,n[i])},P=function t(e){var n;if((0,o.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var i=0;i<e.length;i++)t(e[i]);else null!=e&&(1===e.nodeType||3===e.nodeType)&&(n=e.parentNode)&&(n.removeChild(e),e=null)},E=function t(e,n){if((0,o.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var i=0;i<e.length;i++)t(e[i],n);else if(A(e,n)){var r=e.getAttribute("class");if(r){var a=new RegExp("\\b".concat(n,"\\b"),"g"),s=R(r.replace(a,""));e.setAttribute("class",s)}}},C=function t(e,n){if((0,o.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var i=0;i<e.length;i++)t(e[i],n);else if(!A(e,n)){var r,a=e.getAttribute("class");a?(E(e,n),r=R("".concat(a," ").concat(n))):r=n,e.setAttribute("class",r)}},A=function(t,e){var n=null!=t&&"function"==typeof t.getAttribute&&t.getAttribute("class");if(!n&&t&&"string"==typeof t.className&&(n=t.className),!n)return!1;var i=!1;return M(n,e,(function(t){var o=0===t||" "===n.charAt(t-1),r=t+e.length===n.length,a=" "===n.charAt(t+e.length);if(o&&(r||a))return i=!0,x})),i},x={},M=function(t,e,n){for(var i=-1;-1!=(i=t.indexOf(e,i+1))&&n(i)!==x;);},D=function(t){return t&&"string"!=typeof t.className?[""]:(t&&t.className||"").split(/\s+/)},R=function(t){return t.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," ")},B=function t(e){for(var n=arguments.length,i=Array(1<n?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if((0,o.isArray)(e)||window.NodeList&&e instanceof NodeList){for(var a,s=[],l=0;l<e.length;l++)1===(a=e[l]).nodeType&&s.push(t.apply(void 0,[a].concat(i)));return s}if(2===i.length){var c=i[0],f=i[1];e.style[c]=f}else if(1!==i.length)u.wlog.apply(void 0,["Unexpected args",e].concat(i));else if("string"==typeof i[0]){var h=i[0];try{return e.currentStyle?e.currentStyle[h]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(h):null}catch(t){u.wlog.notice(t)}}else{var d=L(i[0]);for(var p in d){var y=d[p];e.style[p]=y}}},I={borderImage:!0,mixBlendMode:!0,transform:!0,transition:!0,transitionDuration:!0},F=["webkit","moz","o","ms"],L=function(t){if(d.chrome)return t;var e={};for(var n in t){var i=t[n];if(e[n]=i,I[n])for(var o=F,r=0;r<o.length;r++){var a=o[r]+n.charAt(0).toUpperCase()+n.slice(1);n[a]||(e[a]=i)}}return e},j=function(t,e){if(!window.getComputedStyle)return null;var n=window.getComputedStyle(t,null);return null==n?null:null==e?n:n[e]},W=function(t){if(t===window)return window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.offsetWidth:document.body.offsetWidth;if(t===document){var e=document.body,n=document.documentElement;return Math.max(e.scrollWidth,e.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)}var i;return d.browser.quirks?parseInt(t.offsetWidth,10):(i=j(t,"width"))&&null!=i?parseFloat(i):t.currentStyle?t.offsetWidth:-1},H=function(t){if(t===window)return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.offsetHeight:document.body.offsetHeight;if(t===document){var e=document.body,n=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}var i;return d.browser.quirks?parseInt(t.offsetHeight,10):(i=j(t,"height"))&&null!=i?parseFloat(i):t.currentStyle?t.offsetHeight:-1},V=function(t,e,n){var i=(0,l.elemOffset)(t);return i.right=i.left+W(t),i.bottom=i.top+H(t),i.left<=e&&e<i.right&&i.top<=n&&n<i.bottom},U=function(t){var e=0,n=0;if(t.parentNode)for(;t&&t.offsetParent;)n+=t.scrollTop,e+=t.scrollLeft,t=t.parentNode;return{left:e,top:n}},N=function(t){for(;t&&1===t.nodeType;){if("none"===B(t,"display"))return!0;t=t.parentNode}return!1},q=function(t){for(;t=t.parentNode;)if(t===document)return!0;return!1},z=function(t,e){for(var n=Q(t),i=0;i<n.length;i++)if(n[i]===e)return!0;return!1},K=function(t,e){for(var n=Q(t),i=0;i<n.length;i++)if(A(n[i],e))return n[i];return null},G=function(t,e){return!!K(t,e)},Q=function(t){for(var e=t,n=[];e=e.parentNode;)n.push(e);return n},X=function(t,e){return t===e||z(t,e)},Y=function(t,e,n){var i=[];for(var o in t)i.push("".concat(o," ").concat(e,"ms ").concat(n));return i.join(",")},$=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};n=(0,o.merge)({time:400,easing:"ease"},n);var i=Y(e,n.time,n.easing);B(t,{transition:i}),dt((function(){B(t,e),setTimeout((function(){B(t,{transition:""}),"function"==typeof n.callback&&n.callback()}),n.time)}))},Z=function(t,e,n){var i=!!(3<arguments.length&&void 0!==arguments[3])&&arguments[3],o=function(i){!(i=i||window.event).pageX&&!i.pageY&&(i.clientX||i.clientY)&&(i.pageX=i.clientX+ht(),i.pageY=i.clientY+ft()),i.preventDefault||(i.preventDefault=function(){i.returnValue=!1}),i.stopPropagation||(i.stopPropagation=function(){i.cancelBubble=!0}),null==i.which&&(i.which=null==i.charCode?i.keyCode:i.charCode),null==i.which&&null!=i.button&&(1&i.button?i.which=1:2&i.button?i.which=3:4&i.button?i.which=2:d.browser.msie&&0===i.button?i.which=1:i.which=0),i.target||i.srcElement&&(i.target=i.srcElement),i.target&&3===i.target.nodeType&&(i.target=i.target.parentNode);for(var o=arguments.length,r=Array(1<o?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];var s=n.apply(i.target,[i].concat(r));return s===J&&J(t,e,n),s};h._elemBind=h._elemBind||{};var r=nt(t,e,n);return h._elemBind[r]=o,o.elem=t,o.event=e,d.browser.msie&&9>d.browser.version?t.attachEvent("on".concat(e),o):t.addEventListener(e,o,i),function(){J(t,e,n,i)}},J=function(t,e,n){var i=!!(3<arguments.length&&void 0!==arguments[3])&&arguments[3];if(null!=t&&null!=t._wistiaElemId&&null!=n&&n._wistiaBindId){var o=nt(t,e,n),r=h._elemBind[o];return r&&(d.browser.msie&&9>d.browser.version?t.detachEvent("on".concat(e),r):t.removeEventListener(e,r,i),r.elem=null,r.event=null),delete h._elemBind[o]}},tt=function(t){for(var e in h._elemBind){var n=h._elemBind[e];if(n&&t===n.elem){var i=n.event;d.browser.msie&&9>d.browser.version?n.elem.detachEvent("on".concat(i),n):n.elem.removeEventListener(i,n,!1),n.elem=null,n.event=null,delete h._elemBind[e]}}},et=function(t){var e=0;for(var n in h._elemBind){var i=h._elemBind[n];if(i&&X(i.elem,t)){var o=i.event;d.browser.msie&&9>d.browser.version?i.elem.detachEvent("on".concat(o),i):i.elem.removeEventListener(o,i,!1),i.elem=null,i.event=null,delete h._elemBind[n],e+=1}}return e},nt=function(t,e,n){return t._wistiaElemId=t._wistiaElemId||(0,f.seqId)("wistia_elem_"),n._wistiaBindId=n._wistiaBindId||(0,f.seqId)("wistia_bind_"),"".concat(t._wistiaElemId,".").concat(e,".").concat(n._wistiaBindId)},it=function(t,e,n){if(n)return J(t,e,n),Z(t,e,n)},ot=function(t,e,n){return Z(t,e,(function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return n.apply(this,e),J}))},rt=function(t,e){for(var n=arguments.length,i=Array(2<n?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(t.dispatchEvent){var r=document.createEvent("Events");return r.initEvent(e,!0,!1),"click"===e||"doubleclick"===e?r.which=1:"rightclick"===e&&(r.which=2),r.customArguments=i,t.dispatchEvent(r)}if(t.fireEvent){var a={customArguments:i};return t.fireEvent("on"+e,a)}u.wlog.error("neither dispatchEvent nor fireEvent is defined for",t,e)},at=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},st=function(t){return t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):t.msRequestFullscreen?t.msRequestFullscreen():t.webkitEnterFullscreen?t.webkitEnterFullscreen():(u.wlog.notice("no requestFullscreen functionality detected"),null)},ut=function(t){return document.cancelFullscreen?document.cancelFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():t&&t.webkitExitFullscreen?t.webkitExitFullscreen():(u.wlog.notice("no cancelFullscreen functionality detected"),null)},lt=function t(e){var n=e&&e.attributes||[];try{for(var i,o=0;o<n.length;o++)i=n[o],/^on.+/i.test(i.name)&&(e[i.name]=null,e.removeAttribute(i.name))}catch(t){u.wlog.error(t)}if(e.childNodes)for(var r,a=0;a<e.childNodes.length;a++)1===(r=e.childNodes[a]).nodeType&&t(r)},ct=function(t){var e=d.mutationObserver;return e?new window[e](t):null},ft=function(t){var e=document.body,n=document.documentElement;return null==t?n&&n.scrollTop||e&&e.scrollTop||0:(e&&(e.scrollTop=t),void(n&&(n.scrollTop=t)))},ht=function(t){var e=document.body,n=document.documentElement;return null==t?n&&n.scrollLeft||e&&e.scrollLeft||0:(e&&(e.scrollLeft=t),void(n&&(n.scrollLeft=t)))},dt=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,1e3/60)})(t)},pt=function(){return/^textarea|input|select$/i.test(document.activeElement.tagName)},yt=function(){return!!i},mt=function(){return vt},vt=-1;["auxclick","click","contextmenu","dblclick","focus","keydown","keypress","keyup","mousedown","mouseup","reset","submit","touchend","touchstart"].forEach((function(t){Z(document,t,(function(t){i=t,vt=Date.now(),setTimeout((function(){i===t&&(i=void 0)}),0)}),!d.passiveSupported||{capture:!0,passive:!0})}))},function(t,e,n){"use strict";n.d(e,{isDocReady:function(){return o},onDocReady:function(){return r}});var i=n(18),o=function(){return/loaded|complete/.test(document.readyState)},r=function(){var t,e;if(1<arguments.length?(t=arguments[0],e=arguments[1]):(t=1e4,e=arguments[0]),o())e();else if(top===self&&document.documentElement.doScroll){var n=function(){try{return document.documentElement.doScroll("left"),!0}catch(t){return!1}};(0,i.default)(n,e,50,t,e)}else{var r=function(){o()&&(clearTimeout(l),s(),e())},a=function(){document.addEventListener("DOMContentLoaded",r,!1),document.addEventListener("readystatechange",r,!1),window.addEventListener("load",r,!1)},s=function(){document.removeEventListener("DOMContentLoaded",r,!1),document.removeEventListener("readystatechange",r,!1),window.removeEventListener("load",r,!1)},u=function(){s(),e()},l=setTimeout(u,t);a()}}},function(t,e){"use strict";e.default=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:50,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:5e3,o=4<arguments.length?arguments[4]:void 0,r=null,a=(new Date).getTime(),s=function s(){return(new Date).getTime()-a>i?void("function"==typeof o&&o()):void(t()?e():(clearTimeout(r),r=setTimeout(s,n)))};r=setTimeout(s,1)}},function(t,e){"use strict";e.default=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:4e3,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:window;if(/loaded|complete/.test(n.readyState))setTimeout(t,0);else{var o=function(){i.removeEventListener("load",r,!1)},r=function(){clearTimeout(a),o(),t()};i.addEventListener("load",r,!1);var a=setTimeout((function(){o(),t()}),e)}}},function(t,e,n){"use strict";n.d(e,{cachedDetect:function(){return K}});var i,o=n(2),r=n(3),a=navigator.userAgent,s=/(webkit)[ /]([^\s]+)/i,u=/OPR\/([^\s]+)/i,l=/(msie) ([^\s;]+)/i,c=/(trident)\/\s*([^;]+)/i,f=/(edge)\/(\d+(?:\.\d+)?)/i,h=/(mozilla)(?:.*? rv:([^\s)]+))?/i,d=/(android) ([^;]+)/i,p=/(iphone)/i,y=/(ipad)/i,m=/(Windows Phone OS (\d+(?:\.\d+)?))/,v=/OS (\d+)_(\d+)/i,g=/(playstation 3)/i,b=/BlackBerry|BB10/i,_=/(firefox)/i,w=/Mobile VR/i,S=/Version\/([^\s]+)/i,k=function(){return(O()[1]||"webkit").toLowerCase()},T=function(){return O()[2]},O=function(){var t;return(t=a.match(f))||((t=a.match(s))||((t=a.match(u))||((t=a.match(l))?(null!=document.documentMode&&(t[2]=document.documentMode),t):(t=a.match(h))||[])))},P=function(){var t=a.match(d);return null!=t&&{version:t[2]}},E=function(){return p.test(a)},C=function(){return 0<F()||P()},A=function(){try{var t=matchMedia("(hover:hover)");if("not all"!==t.media)return t.matches}catch(t){}return!C()},x=function(){return b.test(a)},M=function(){return!!("MacIntel"===navigator.platform&&0<=navigator.userAgent.indexOf("Mac")&&1<navigator.maxTouchPoints)||y.test(a)},D=function(){return s.test(a)&&!/chrome/i.test(a)&&!M()&&!E()},R=function(){return!(!/Chrome/.test(a)||!/Google Inc/.test(navigator.vendor))&&{version:B()}},B=function(){var t=a.match(/\bChrome\/([^\s]+)/);return t&&t[1]},I=function(){return u.test(a)},F=function(){var t=a.match(v),e=a.match(S);return null==t?null!=e&&e[1]&&M()?parseFloat(e[1]):0:parseFloat("".concat(t[1],".").concat(t[2]))},L=function(){return c.test(a)},j=function(){return f.test(a)},W=function(){return _.test(a)},H=function(){try{try{var t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{t.AllowScriptAccess="always"}catch(t){return[6,0,0]}}catch(t){}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",")}catch(t){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",")}catch(t){}}return[0,0,0]},V=function(){var t=document.createElement("video"),e=!1;try{if(t.canPlayType){(e={}).h264=!!t.canPlayType('video/mp4; codecs="avc1.42E01E"')||!!t.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),e.webm=!!t.canPlayType('video/webm; codecs="vp9, vorbis"'),e.nativeHls=!!t.canPlayType("application/vnd.apple.mpegURL")}}catch(t){e={ogg:!1,h264:!1,webm:!1,nativeHls:!1}}return e},U=function(){try{return"localStorage"in r.default&&null!=r.default.localStorage}catch(t){return!1}},N=["WebKit","Moz","O","Ms",""],q=function(){for(var t=0;t<N.length;t++){var e=N[t]+"MutationObserver";if(r.default[e])return e}return null},z=function(){if(null!=i)return i;try{var t=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("test",null,t)}catch(t){i=!1}return i},K=function(){return o.default._detectCache||(o.default._detectCache=G()),o.default._detectCache},G=function(){var t,e,n,i,o,s,u,l,c,f,h,d,p,y,v={browser:{version:T(),quirks:"msie"===k()&&"BackCompat"===document.compatMode,old:"msie"===k()&&("BackCompat"===document.compatMode||7>T()),ltie8:"msie"===k()&&("BackCompat"===document.compatMode||8>T())},trident:L(),edge:j(),firefox:W(),gearvr:w.test(a),android:P(),oldandroid:P()&&4.1>parseFloat(P().version)&&!L(),iphone:E(),ipad:M(),blackberry:x(),safari:D(),chrome:R(),opera:I(),winphone:{version:m.test(a)[2]},ios:{version:F()},windows:/win/i.test(navigator.platform),mac:/mac/i.test(navigator.platform),linux:/linux/i.test(navigator.platform),retina:null!=r.default.devicePixelRatio&&1<r.default.devicePixelRatio,hoverIsNatural:A(),touchScreen:C(),ps3:g.test(a),flash:(y=H(),{version:parseFloat(y[0]+"."+y[1]),major:parseInt(y[0]),minor:parseInt(y[1]),rev:parseInt(y[2])}),video:V(),mediaSource:r.default.MediaSource&&r.default.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),nativeHls:(E()||M()||D())&&!L()&&V().nativeHls,localstorage:U(),json:!(!r.default.JSON||"function"!=typeof JSON.parse),backgroundSize:(p=document.createElement("div"),""===p.style.backgroundSize||""===p.style.webkitBackgroundSize||""===p.style.mozBackgroundSize||""===p.style.oBackgroundSize),fullscreenEnabled:document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled,vulcanSupport:(h=/webkit|mozilla|edge/.test(k()),d="msie"===k()&&11<=T(),!(E()||M()||P()||x()||!h&&!d||!V().h264||!Object.defineProperties)),mutationObserver:q(),callingPlayRequiresEventContext:0<F()||P()||D(),passiveSupported:z(),webp:(t=R(),e=W(),n=j(),i=I(),o=t&&32<=T(),s=t&&75<=T()&&P(),u=e&&65<=T(),l=e&&67<=T()&&P(),c=n&&18<=T(),f=i&&19<=T(),o||s||u||l||c||f)};return v.browser[k()]=!0,v}},function(t,e,n){"use strict";n.r(e),n.d(e,{ERROR:function(){return l},WARNING:function(){return c},NOTICE:function(){return f},INFO:function(){return h},DEBUG:function(){return d},LOG_LEVELS:function(){return p},Logger:function(){return m},wlog:function(){return k}});var i=n(2),o=n(20),r=n(22);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var u=(0,o.cachedDetect)(),l=0,c=1,f=2,h=3,d=4,p={ERROR:0,WARNING:1,NOTICE:2,INFO:3,DEBUG:4,error:0,warning:1,notice:2,info:3,debug:4},y=function(){},m=function(t){var e=this;null==t&&(t={});return e.error=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(l,n)},e.warn=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(c,n)},e.notice=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(c,n)},e.info=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(h,n)},e.debug=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(d,n)},e.ctx=t,e.ctx.initializedAt||e.reset(),e},v=m.prototype;v.reset=function(){this.ctx.level=l,this.ctx.grep=null,this.ctx.grepv=null,this.ctx.first1000LogLines=[],this.ctx.last1000LogLines=[],this.ctx.initializedAt=(new Date).getTime()},v.setLevel=function(t){var e=this.logFunc(h);null==p[t]?e('Unknown log level "'.concat(t,'"')):(this.ctx.level=p[t],e('Log level set to "'.concat(t,'" (').concat(p[t],")")))},v.setGrep=function(t){this.ctx.grep=t},v.setGrepv=function(t){this.ctx.grepv=t},v.first1000LogLines=function(){return this.ctx.first1000LogLines},v.last1000LogLines=function(){return this.ctx.last1000LogLines},v.matchedGrep=function(t){var e=!1;if(this.ctx.grep||this.ctx.grepv){for(var n=[],i=0;i<t.length;i++)try{var o=t[i];n.push(o.toString&&o.toString())}catch(t){n.push("")}var r=n.join(" "),a=!this.ctx.grep||r.match(this.ctx.grep),s=!this.ctx.grepv||!r.match(this.ctx.grepv);e=a&&s}else e=!0;return e},v.now=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now().toFixed(3):Date.now?Date.now()-this.ctx.initializedAt:(new Date).getTime()-this.ctx.initializedAt},v.messagesToLogLine=function(t,e,n){var i,o=[t,e];o=o.concat(n);try{200<(i=o.join(" ")||"").length&&(i=i.slice(0,200))}catch(t){i="could not serialize"}return i},v.persistLine=function(t){1e3>this.ctx.first1000LogLines.length?this.ctx.first1000LogLines.push(t):(1e3<=this.ctx.last1000LogLines.length&&this.ctx.last1000LogLines.shift(),this.ctx.last1000LogLines.push(t))},v.log=function(t,e){var n,i=t<=this.ctx.level,o=t<d,s=(i||o)&&this.matchedGrep(e);if(t===l&&(0,r.globalTrigger)("problem",{type:"error-logged",data:{messages:e}}),s&&(i||o)&&(n=this.now()),o&&s){var c=this.messagesToLogLine(t,n,e);this.persistLine(c)}if(i&&s){var f,h=this.logFunc(t);1===e.length&&(f=e[0])instanceof Error?(h(f.message),f.stack&&h(f.stack)):u.browser.msie&&(9>u.browser.version||u.browser.quirks)?h(e.join(" ")):h.apply(void 0,a(e))}};var g=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];console.error.apply(console,e)},b=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];console.warn.apply(console,e)},_=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];console.info.apply(console,e)},w=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];console.debug.apply(console,e)},S=function(t){console.log.apply(console,t)};v.logFunc=function(t){return null==t&&(t=this.level),console?(t===l?e=g:t===c?e=b:t===h?e=_:t===d&&(e=w),e||(e=S),"function"!=typeof e&&(this.noConsoleLog=!0,e=y),e):y;var e},v.maybePrefix=function(t,e){if(t){if("function"==typeof t)try{t=t()}catch(e){t='prefix err "'.concat(e.message,'"')}return t instanceof Array?t.concat(e):[t].concat(e)}return e},v.getPrefixedFunctions=function(t){var e=this;return{log:function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.log(l,e.maybePrefix(t,i))},error:function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.log(l,e.maybePrefix(t,i))},warn:function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.log(c,e.maybePrefix(t,i))},notice:function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.log(c,e.maybePrefix(t,i))},info:function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.log(h,e.maybePrefix(t,i))},debug:function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.log(d,e.maybePrefix(t,i))}}},i.default&&null==i.default.wlogCtx&&(i.default.wlogCtx={});var k=new m(i.default.wlogCtx)},function(t,e,n){"use strict";n.d(e,{globalBind:function(){return o},globalOn:function(){return r},globalTrigger:function(){return a}});var i=n(2);(0,n(23).makeWbindable)(i.default);var o=i.default.bind.bind(i.default),r=i.default.on.bind(i.default),a=(i.default.off.bind(i.default),i.default.rebind.bind(i.default),i.default.trigger.bind(i.default));i.default.unbind.bind(i.default)},function(t,e,n){"use strict";n.d(e,{makeWbindable:function(){return r}});var i=n(2),o=n(24);i.default.bindable||(i.default.bindable={bind:function(t,e){return this.specialBind&&!0===this.specialBind.apply(this,arguments)?this:e?(o.bind.call(this,t,e),this):void(i.default.warn&&i.default.warn(this.constructor.name,"bind","falsey value passed in as callback:",e))},unbind:function(t,e){return this.specialUnbind&&!0===this.specialUnbind.apply(this,arguments)||(e?o.unbind.call(this,t,e):this._bindings&&(this._bindings[t]=[]),this._bindings&&this._bindings[t]&&!this._bindings[t].length&&(this._bindings[t]=null,delete this._bindings[t])),this},on:function(t,e){var n=this.specialBind&&this.specialBind.apply(this,arguments);return"function"==typeof n?n:o.bind.call(this,t,e)},off:function(t,e){var n=this.specialUnbind&&this.specialUnbind.apply(this,arguments);return"function"==typeof n?n:o.unbind.call(this,t,e)},rebind:function(t,e){return this.unbind(t,e),this.bind(t,e),this},trigger:function(t){for(var e,n=arguments.length,i=Array(1<n?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(e=o.trigger).call.apply(e,[this,t].concat(i)),this},bindNamed:function(){return o.bindNamed.apply(this,arguments)},unbindNamed:function(){return o.unbindNamed.apply(this,arguments)},unbindAllInNamespace:function(){return o.unbindAllInNamespace.apply(this,arguments)}});var r=function(t){for(var e in i.default.bindable){var n=i.default.bindable[e];t[e]||(t[e]=n)}};i.default.bindable},function(t,e,n){"use strict";n.d(e,{bind:function(){return s},unbind:function(){return u},trigger:function(){return c},bindNamed:function(){return d},unbindNamed:function(){return p},unbindAllInNamespace:function(){return y},bindify:function(){return v}});var i=n(2);function o(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(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 r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=Array.prototype.slice,s=function(t,e){var n=this;return n._bindings||(n._bindings={}),n._bindings[t]||(n._bindings[t]=[]),n._bindings[t].push(e),function(){n.unbind(t,e)}},u=function(t,e){if(!this._bindings)return this;if(!this._bindings[t])return this;for(var n,i=[],o=0;o<this._bindings[t].length;o++)(n=this._bindings[t][o])!==e&&i.push(n);this._bindings[t]=i},l=function(t,e){return this.unbind(t,e),this.bind(t,e),{event:t,fn:e}},c=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return this._bindings&&null!=this._bindings.all&&f.apply(this,["all",t].concat(n)),f.apply(this,[t].concat(n))},f=function(t){if(!this._bindings)return this;if(!this._bindings[t])return this;for(var e,n,r=a.call(arguments,1),s=o(this._bindings[t]),u=0;u<s.length;u++){n=s[u];try{var l=n.apply(this,r);l===this.unbind&&(null==e&&(e=[]),e.push({event:t,fn:n}))}catch(t){if(this._throwTriggerErrors)throw t;i.default.error&&i.default.error(t)}}if(e)for(var c,f=0;f<e.length;f++)c=e[f],this.unbind(c.event,c.fn);return this},h=function(t,e){null==t._namedBindings&&(t._namedBindings={}),null==t._namedBindings[e]&&(t._namedBindings[e]={})},d=function(t,e,n,i){return this.unbindNamed(t,e),function(t,e,n,i,o){h(t,e),t._namedBindings[e][n]={event:i,fn:o}}(this,t,e,n,i),this.bind(n,i),function(){this.unbindNamed(t,e)}},p=function(t,e){h(this,t);var n=function(t,e,n){return h(t,e),t._namedBindings[e][n]}(this,t,e);if(n){var i=n.event,o=n.fn;this.unbind(i,o)}var r=this._namedBindings;return delete r[t][e],m(r[t])&&delete r[t],this},y=function(t){var e=this._namedBindings&&this._namedBindings[t];if(null==e)return this;for(var n in e)e.hasOwnProperty(n)&&this.unbindNamed(t,n)},m=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},v=function(t){return t.bind=s,t.unbind=u,t.on=s,t.off=u,t.rebind=l,t.trigger=c,t.bindNamed=d,t.unbindNamed=p,t.unbindAllInNamespace=y,t};v(function(){}.prototype)},function(t,e,n){"use strict";var i;n.d(e,{isBoxModel:function(){return o},elemOffset:function(){return r},elemZoom:function(){return a}});var o=function(){if(null!=i)return i;var t=document.createElement("div");return t.style.paddingLeft=t.style.width="1px",document.body.appendChild(t),i=2===t.offsetWidth,document.body.removeChild(t),i},r=function(t){var e,n,i=document.body,r=document.defaultView,s=document.documentElement,u=t.getBoundingClientRect(),l=s.clientTop||i.clientTop||0,c=s.clientLeft||i.clientLeft||0;e=r&&null!=r.pageYOffset?r.pageYOffset:o()&&s&&null!=s.scrollTop?s.scrollTop:i.scrollTop,n=r&&null!=r.pageXOffset?r.pageXOffset:o()&&s&&null!=s.scrollLeft?s.scrollLeft:i.scrollLeft;var f=a(t);return{height:u.height*f,top:u.top*f+e-l,left:u.left*f+n-c,width:u.width*f,zoom:f}},a=function t(e){return e&&e!==document.documentElement?t(e.parentElement)*(getComputedStyle(e).zoom||1):1}},function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{getScriptTags:function(){return getScriptTags},execScriptTags:function(){return execScriptTags},removeScriptTags:function(){return removeScriptTags}});var utilities_script_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(27),getScriptTags=function(t){return t.match(/<script.*?src[^>]*>\s*<\/script>|<script.*?>[\s\S]+?<\/script>/gi)||[]},scriptTagsToRunScriptsInput=function scriptTagsToRunScriptsInput(scriptTags){if(!scriptTags)return[];scriptTags instanceof Array||(scriptTags=getScriptTags(scriptTags));for(var hashes=[],i=0;i<scriptTags.length;i++){var scriptTag=scriptTags[i],hash={},matches=scriptTag.match(/<script.*?>/i);matches&&(matches=matches[0].match(/src="([^"]+)"/i),matches&&(hash.src=matches[1],hash.async=/async/i.test(scriptTag.replace(hash.src,"")))),matches||(matches=scriptTag.match(/<script>([\s\S]+?)<\/script>/i),matches&&function(){var src=matches[1];hash.fn=function(){return eval(src)}}()),hashes.push(hash)}return hashes},execScriptTags=function(t,e){if(!t)return null;var n=scriptTagsToRunScriptsInput(t);return(0,utilities_script_utils__WEBPACK_IMPORTED_MODULE_0__.runScripts)(n).then(e)},removeScriptTags=function(t){return t.replace(/<script.*?src[^>]*>\s*<\/script>|<script>[\s\S]+?<\/script>/g,"")}},function(t,e,n){"use strict";n.r(e),n.d(e,{findScriptInDomBySrc:function(){return h},removeScriptsBySrc:function(){return d},runScript:function(){return p},runScripts:function(){return y},scriptInputsToHash:function(){return m}});var i=n(21),o=n(12),r=n(14),a=n.n(r),s=n(28);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?u(Object(e),!0).forEach((function(n){c(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var h=function(t){for(var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var o=n[i],r=o.getAttribute("src")||"";if(e.ignoreQueryParams){var a=r.split("?"),s=a[0];r=s}if(!e.scriptRegex&&e.ignoreProtocol&&(r=r.replace(/^https?:/,""),t=t.replace(/^https?:/,"")),e.scriptRegex&&e.scriptRegex.test(r))return o;if(e.testStartsWith&&0===r.indexOf(t))return o;if(r===t)return o}return null},d=function(t){for(var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e=h(t,n);)if(e&&(e.onload=e.onreadystatechange=e.onerror=null,e.parentNode&&f(e.parentNode.removeChild)))try{e.parentNode.removeChild(e)}catch(t){setTimeout((function(){throw t}),0)}},p=function(t){var e,n,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:8e3,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return null==i&&(i=8e3),null==o&&(o={}),new(a())((function(r){return!0===o.once&&(e=h(t))&&(n=!0),o.once&&n?void((!e.readyState||/loaded|complete/.test(e.readyState))&&setTimeout((function(){r()}),1)):(0,s.default)(t,i).then(r).catch((function(t){r(t),setTimeout((function(){console.error(t)}),1)}))}))},y=function(){for(var t,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];t=n[0]instanceof Array?n[0]:n,t=m(t);var r=[],s=[],u=[];return t.forEach((function(t){var e=l({},t),n=new(a())((function(t){e.resolve=t}));e.promise=n,u.push(e.promise),t.async?r.push(e):s.push(e)})),s.reduce((function(t,e){if(e.fn)try{e.fn()}catch(t){i.wlog.error(t)}finally{e.resolve()}else e.src&&p(e.src,null,e).then(e.resolve);return t.then(e.promise)}),a().resolve()),setTimeout((function(){r.forEach((function(t){if(t.fn)try{t.fn()}catch(t){i.wlog.error(t)}finally{t.resolve()}else t.src&&p(t.src,null,t).then(t.resolve)}))}),1),a().all(u)},m=function(t){for(var e,n=[],i=0;i<t.length;i++)"string"==typeof(e=t[i])?n.push({src:e,async:!1}):(0,o.isObject)(e)?n.push(e):n.push({fn:e,async:!1});return n}},function(t,e,n){"use strict";n.d(e,{runScript:function(){return r}});var i=n(14),o=n.n(i),r=function(t,e){return new(o())((function(n,i){var o;null==e&&(e=8e3),(o=document.createElement("script")).src=t,o.async=!0,o.type="text/javascript";var r=null,a=!1,s=function(){o.onerror=o.onreadystatechange=o.onload=null,clearTimeout(r),clearTimeout(l),r=setTimeout((function(){o&&o.parentNode&&o.parentNode.removeChild(o)}),500)},u=function(){var t=o.readyState;a||t&&!/loaded|complete/.test(t)||(a=!0,setTimeout((function(){n(),s()}),1))},l=setTimeout((function(){a=!0,s(),i("timeout")}),e);o.onerror=function(){a=!0,s(),i("error")},o.onreadystatechange=u,o.onload=u,(document.body||document.head).appendChild(o)}))};e.default=r},,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,{deliveryHost:function(){return w},akamaiHost:function(){return S},prodAkamaiHost:function(){return k},fastlyHost:function(){return T},appHost:function(){return O},cdnFastWistiaComHost:function(){return P},cdnFastWistiaNetHost:function(){return E},eV1Url:function(){return C},eV1Host:function(){return A},eV1HostWithPort:function(){return x},eV1Protocol:function(){return M},mediaDataHost:function(){return D},metricsHost:function(){return R},VALID_PRODUCTION_HOSTS:function(){return B},forceValidFastWistiaHost:function(){return F}});var i=n(35),o=n.n(i),r=n(3),a=n(36),s=o()("app"),u=o()("fast"),l="fast.wistia.net",c="fast.wistia.com",f="embed.wistia.com",h="embed-ssl.wistia.com",d="embed-a.wistia.com",p="embed-a.wistia.com",y="embedwistia-a.akamaihd.net",m="embedwistia-a.akamaihd.net",v="embed-fastly.wistia.com",g="embed-fastly.wistia.com",b="undefined"!=typeof window&&r.default===window&&r.default.location?r.default.location.protocol:"https:",_=function(t,e,n){return"https:"===t?e:n},w=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:b;return _(t,h,f)},S=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:b,e=1<arguments.length?arguments[1]:void 0;return e===c||e===l?k(t):_(t,y,d)},k=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:b;return _(t,m,p)},T=function(){var t=1<arguments.length?arguments[1]:void 0;return t===c||t===l?g:v},O=function(){return s},P=function(){return u},E=function(){return"fast.wistia.net"},C=function(){for(var t,e=document.getElementsByTagName("script"),n=0;n<e.length;n++)if((t=e[n]).src){var i=new a.Url(t.src),o=/\/assets\/external\/E-v1(-with-vulcan-v2)?\.js$/.test(i.rawPath),r=i.host===P()||i.host===E(),s="https:"===location.protocol&&"https:"===i.protocol,u=""===i.protocol||null==i.protocol,l=s||u||"http:"===location.protocol,c=!t.readyState||/loaded|complete/.test(t.readyState);if(o&&r&&l&&c)return i}return new a.Url("".concat((0,a.proto)(),"//").concat(E(),"/E-v1.js"))}(),A=function(){return C.host},x=function(){return C.port?"".concat(A(),":").concat(C.port):A()},M=function(){return C.protocol},D=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return t.embedHost?F(t.embedHost):x()},R=function(){return"pipedream.wistia.com"},B=["wistia.net","wistia.com","wistia.st"],I=new RegExp("("+B.map((function(t){return"\\."+t.replace(".","\\.")})).join("|")+")$"),F=function(t){return t&&I.test(t)?t:x()}},function(t){t.exports=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"app";return"".concat(t,".").concat("wistia.com")}},function(t,e,n){"use strict";n.r(e),n.d(e,{proto:function(){return a},queryParamsToObject:function(){return s},urlComponentToObject:function(){return u},objectToQueryParams:function(){return l},splitPath:function(){return c},joinPath:function(){return f},brack:function(){return h},debrack:function(){return d},Url:function(){return y},createUrl:function(){return v},parseUrl:function(){return g}});var i=n(12),o=n(21);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:location.href;return/^http:\/\//.test(t)?"http:":"https:"},s=function(t){var e={};if(!t)return e;for(var n=t.split("&"),r=0;r<n.length;r++){var a=n[r].split("="),s=a[0],l=a[1];try{s=d(decodeURIComponent(s))||""}catch(t){setTimeout((function(){o.wlog.notice(t)}),50),s=""}(0,i.cast)(s);var c=(0,i.getDeep)(e,s);if(null==c)(0,i.setAndPreserveUndefined)(e,s,u(l));else if((0,i.isArray)(c))c.push(u(l));else{var f=[c];f.push(u(l)),(0,i.setAndPreserveUndefined)(e,s,f)}}return e},u=function(t){if(null==t)return t;var e;try{e=decodeURIComponent(t)}catch(n){setTimeout((function(){o.wlog.notice(n)}),50),e=t}return e},l=function(t){var e=[];return(0,i.eachLeaf)(t,(function(t,n){null==t?e.push(encodeURIComponent(h(n))):e.push(encodeURIComponent(h(n))+"="+encodeURIComponent(t))})),e.join("&")},c=function(t){var e=[];if(null==t)return e;for(var n,i=t.split(/\/+/),o=0;o<i.length;o++)null!=(n=i[o])&&""!==n&&e.push(n);return e},f=function(t){return"string"==typeof t&&(t=t.split("/")),null==t?"":"/"+t.join("/")},h=function(t){for(var e=t[0],n=1;n<t.length;n++)e+="["+t[n]+"]";return e},d=function(t){return t.match(/([\w\-_]+)/g)},p=["protocol","host","port","params","path"],y=function(t){var e=this;return e.params={},e.path=[],e.host="","object"===r(t)?e.fromOptions(t):t&&e.fromRaw(t),e},m=y.prototype;m.fromOptions=function(t){for(var e,n=0;n<p.length;n++)null!=t[e=p[n]]&&(this[e]=t[e]);return this},m.fromRaw=function(t){var e;return this.rawUrl=t,(e=t.match(/^((?:https?:)|(?:file:)|(?:ftp:))?\/\//))&&(this.protocol=e[1]||void 0),(e=t.match(/\/\/([^:?#/]*)/))&&(this.host=e[1]||void 0),(e=t.match(/\/\/.*?(\/[^?#$]+)/)||t.match(/(^\/[^/][^?#$]+)/))&&this.setPath(e[1]),(e=t.match(/:(\d+)/))&&(this.port=parseInt(e[1],10)),(e=t.match(/\?([^#]+)/))&&(this.rawParams=e[1],this.params=s(this.rawParams)),(e=t.match(/#(.*)$/))&&(this.anchor=e[1]),this},m.clone=function(){return new y({protocol:this.protocol,host:this.host,port:this.port,path:(0,i.clone)(this.path),params:(0,i.clone)(this.params),anchor:this.anchor})},m.ext=function(t){if(null!=t){var e=this.ext(),n=this.path.length-1,i=new RegExp("\\.".concat(e),"g");return e&&(this.path[n]="".concat(this.path[n].replace(i,""))),this.path[n]="".concat(this.path[n],".").concat(t)}var o=this.path[this.path.length-1].match(/\.(.*)$/);return null!=o&&o[1]||null},m.isRelative=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.location,e=this.protocol,n=this.host;return!(null!=e&&""!==e&&e!==t.protocol||n&&n!==t.hostname)},m.toString=function(){return this.isRelative()?this.relative():this.absolute()},m.absolute=function(){var t="";null!=this.protocol&&(t=this.protocol);var e="";return null!=this.port&&(e=":"+this.port),"".concat(t,"//").concat(this.host||location.host).concat(e).concat(this.relative())},m.relative=function(){var t="";0<this.path.length&&(t=f(this.path),this._hasTrailingSlash&&(t+="/"));var e="?"+l(this.params);return 1===e.length&&(e=""),"".concat(t).concat(e).concat(this.relativeAnchor())},m.authority=function(){var t=null==this.port?"":":".concat(this.port);return"".concat(this.host).concat(t)},m.relativeProtocol=function(){var t="";return null!=this.port&&(t=":"+this.port),"//".concat(this.host).concat(t).concat(this.relative())},m.relativeAnchor=function(){var t="";return null!=this.anchor&&(t="#".concat(this.anchor)),""+t},m.setPath=function(t){this.rawPath=t,this._hasTrailingSlash=/\/$/.test(this.rawPath),this.path=c(this.rawPath)},y.create=function(t){return new y(t)};var v=y.create;y.parse=function(t){return new y(t)};var g=y.parse},function(t,e,n){"use strict";n.d(e,{cacheMediaData:function(){return o},uncacheMediaData:function(){return r}});var i=n(2);null==i.default._remoteData&&(i.default._remoteData={});var o=function(t,e){return i.default._remoteData["media_".concat(t)]=e},r=function(t){i.default._remoteData["media_".concat(t)]=null,delete i.default._remoteData["media_".concat(t)]}},function(t,e,n){"use strict";n.d(e,{xhrGet:function(){return a},xhrPost:function(){return s}});n(13);var i=n(14),o=n.n(i),r=function(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{};return new(o())((function(o,a){var s=new(r.XMLHttpRequest||XMLHttpRequest);r.afterConstructor&&r.afterConstructor(s);try{s.addEventListener("readystatechange",(function(){if(!(s.readyState<4))if(null!=s.status&&(200<=s.status&&300>s.status||304==s.status))if(s.response&&"string"!=typeof s.response)o({data:s.response,status:s.status,statusText:s.statusText,xhr:s});else if("json"===r.dataType)try{var n=JSON.parse(s.responseText);o({data:n,status:s.status,statusText:s.statusText,xhr:s})}catch(n){var i=new Error("".concat(t," ").concat(e," - Error parsing response text: ").concat(s.responseText,"."));console.error(i.message),a(i)}else o({data:s.responseText,status:s.status,statusText:s.statusText,xhr:s});else{var u=new Error("".concat(t," ").concat(e," - Got an unsuccessful status code: ").concat(s.status,". ").concat(s.statusText));u.status=s.status,console.error(u.message),a(u)}}),!1)}catch(t){console.error(t.message),console.error(t.stack)}s.addEventListener("error",(function(){var t=new Error("XHR error");t.status=s.status,t.xhr=s,a(t)}),!1);if(s.addEventListener("timeout",(function(t){var e=new Error("XHR timeout");e.status=s.status,e.message=t&&t.message,e.xhr=s,a(t)}),!1),s.open(t,e,!0),r.withCredentials&&(s.withCredentials=!0),r.timeout&&(s.timeout=r.timeout),null!=r.dataType&&(s.responseType=r.dataType),"POST"!==t||i["content-type"]||s.setRequestHeader("content-type","application/x-www-form-urlencoded"),i)for(var u in i)i.hasOwnProperty(u)&&s.setRequestHeader(u.toLowerCase(),i[u]);s.send(n),r.afterSend&&r.afterSend(s)}))},a=function(t,e,n){return r("GET",t,null,e,n)},s=function(t,e,n,i){return r("POST",t,e,n,i)}},function(t,e,n){"use strict";n.r(e),n.d(e,{poll:function(){return o.default},throttle:function(){return r.default},unescapeHtml:function(){return a.unescapeHtml},unbreakifyText:function(){return s},stripHtml:function(){return u},camelCase:function(){return l},snakeCase:function(){return c},shallowCamelizeKeys:function(){return f},shallowSnakeKeys:function(){return h},base64Decode:function(){return d},base64Encode:function(){return p},notSetOrTrue:function(){return y},preventOuterMouseWheel:function(){return m},parentFramesLength:function(){return v}});var i=n(2),o=n(18),r=n(40),a=n(41),s=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return t.replace(" ","&nbsp;")},u=function(t){var e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText||""},l=function(t){return t.replace(/[_-]([a-z])/g,(function(t){return t.charAt(1).toUpperCase()}))},c=function(t){return t.replace(/[A-Z]/g,(function(t){return"_"+t.toLowerCase()}))},f=function(t){return Object.keys(t).reduce((function(e,n){return e[l(n)]=t[n],e}),{})},h=function(t){return Object.keys(t).reduce((function(e,n){return e[c(n)]=t[n],e}),{})},d=function(t){return decodeURIComponent(atob(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))},p=function(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})))},y=function(t){return null==t||!0===t},m=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,o=e.scrollTop,r=e.scrollHeight,a=e.offsetHeight,s=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return 0>=o+t-n},u=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return o+t+i>=r-a},l=t.deltaY||-t.wheelDelta,c=0<l?"down":"up",f=!!t.deltaY;if(f)("up"===c&&s()||"down"===c&&u())&&t.preventDefault();else{var h=47.5*l/120;"up"===c&&s(h)?(t.preventDefault(),e.scrollTop=0):"down"===c&&u(h)&&(t.preventDefault(),e.scrollTop=r-a)}},v=function(){try{return parent.frames.length}catch(t){return i.default.warn(t),1}}},function(t,e){"use strict";e.default=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=null,o=null,r=null,a=null,s=0,u=function(){s=!1===n.leading?0:(new Date).getTime(),a=null,r=e.apply(i,o),a||(i=o=null)};return function(){var l=(new Date).getTime();s||!1!==n.leading||(s=l);var c=t-(l-s);return i=this,o=arguments,0>=c||c>t?(clearTimeout(a),a=null,s=l,r=e.apply(i,o),!a&&(i=o=null)):!a&&!1!==n.trailing&&(a=setTimeout(u,c)),r}}},function(t,e,n){"use strict";n.d(e,{unescapeHtml:function(){return o}});var i={},o=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"";if(e.cache){var n=i[t];if(i[t])return n}var o,r=document.createElement("div");return r.innerHTML=t.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;"),o=0<r.childNodes.length?r.childNodes[0].nodeValue:"",e.cache&&(i[t]=o),o}},function(t,e,n){"use strict";n.d(e,{mediaDataTransforms:function(){return k}});var i=n(2),o=n(12),r=n(36),a=n(20),s=(n(43),n(34)),u=n(48),l=n(49);function c(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||h(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 f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||h(t,e)||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 h(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var p=(0,a.cachedDetect)(),y="fastly",m="akamai",v=function(t){return t.assets&&(t.assets=t.assets.map((function(t){if(p.trident&&"mp4"===t.container&&t.url){var e=new r.Url(t.url);e.params.ua_hint="trident",t.url=e.absolute()}return t}))),t};null==i.default.RANDOM_PERCENT_FOR_VIEW&&(i.default.RANDOM_PERCENT_FOR_VIEW=100*Math.random());var g=function t(e,n){if(e.assets&&!w(e))for(var o,r=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.deliveryCdn,o=e.randomPercentForView,r=f("".concat(n||"").split(";"),2),a=r[0],s=r[1];if(a===y||a===m)return n;var l=50;return"".concat(s).split(",").forEach((function(t){var e=f(t.split(":"),2),n=e[0],i=e[1];i&&n===y&&(l=parseFloat(i))})),("random-by-view"===a?null==o?i.default.RANDOM_PERCENT_FOR_VIEW:o:Math.abs((0,u.hashCodeForString)(t.hashedId))%1e3/10)<l?y:m}(e,n),a=0;a<e.assets.length;a++)if((o=e.assets[a]).url){var l=r===y?s.fastlyHost:s.akamaiHost;o.url=o.url.replace(/^https:\/\/embed-ssl\.wistia\.com/,"https://"+l("https:",n.embedHost))}return e.secondaryMediaData&&t(e.secondaryMediaData,n),e},b=function(t){return t.assets&&p.webp&&(t.assets=t.assets.map((function(t){if("still_image"===t.type&&Object(t).url){var e=new r.Url(t.url);e.ext("webp"),t.url=e.absolute()}return t}))),t},_=[],w=function(t){if(t.accountKey)return!1;for(var e,n=0;n<_.length;n++)if(e=_[n],t.accountKey==="wistia-production_".concat(e))return!0;return!1},S=function(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!0!==n.allowOriginalAsMp4)return t;var i=t.assets.filter((function(t){return"original"===t.type}))[0];return null!=i&&null!==(e=i.metadata)&&void 0!==e&&e.served_by_media_api?(0<(0,l.readyPublicOver400)(t.assets).length||(t.assets=[].concat(c(t.assets),[(0,o.assign)({},i,{display_name:"".concat(i.display_name," copy"),container:"mp4",codec:"h264",type:"mp4_video"})])),t):t},k=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.assign)({},t);return n=S(n,e),n=g(n,e),n=b(n),n=v(n)}},function(t,e,n){"use strict";n.r(e),n.d(e,{send:function(){return y},msend:function(){return m},count:function(){return v},sample:function(){return g}});var i=n(2),o=n(44),r=n(21),a=n(12),s=n(16),u=n(36),l=n(34),c=n(38),f=n(45),h=void 0,d=i.default;null==d._metricsCache&&(d._metricsCache={});var p=d._metricsCache,y=function(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{null==p.toMput&&(p.toMput=[]),null==p.requestId&&(p.requestId=0);var u=(0,a.merge)({type:t,key:e,value:null==n?null:n,request_id:p.requestId},i),l=JSON.stringify(u);r.wlog.debug("send metrics",l),p.toMput.push(l),(0,o.doTimeout)("metrics.debounce",(function(){(0,s.pageLoaded)((function(){m.apply(h,p.toMput),p.toMput=[],p.requestId+=1}))}),500)}catch(t){r.wlog.error(t)}},m=function(){if((0,f.isVisitorTrackingEnabled)()){for(var t="".concat((0,u.proto)(),"//").concat((0,l.metricsHost)(),"/mput?topic=metrics"),e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return(0,c.xhrPost)(t,n.join("\n"))}},v=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=2<arguments.length?arguments[2]:void 0;return y("count",t,e,n)},g=function(t,e,n){return y("sample",t,e,n)}},function(t,e,n){"use strict";n.r(e),n.d(e,{doTimeout:function(){return a},clearTimeouts:function(){return s}});var i=n(2),o=n(12),r=i.default;null==r._timeouts&&(r._timeouts={});var a=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;(0,o.isArray)(t)&&(t=t.join("."));var i=l(t);if(s(t,i),e){var a=r._timeouts[i];null==a&&(a=r._timeouts[i]={});var u=setTimeout((function(){delete a[t],e()}),n);return a[t]=u,u}return r._timeouts[i][t]},s=function(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if((0,o.isArray)(t)&&(t=t.join(".")),"__global__"===(n=n||l(t))&&(e=r._timeouts[t]))for(var i in e){var a=e[i];clearTimeout(a),delete e[i]}if(e=r._timeouts[n])for(var s in e){var c=e[s];s.indexOf&&0===s.indexOf(t)&&(s.length===t.length||"."===s.charAt(t.length))&&(clearTimeout(c),delete e[s])}r.blockSweepTimeouts||(r.blockSweepTimeouts=!0,setTimeout(u,0),setTimeout((function(){r.blockSweepTimeouts=!1}),5e3))},u=function(){for(var t in r._timeouts){var e=r._timeouts[t];(0,o.isEmpty)(e)&&delete r._timeouts[t]}},l=function(t){var e=t.indexOf(".");return 0<e?t.substring(0,e):"__global__"}},function(t,e,n){"use strict";n.d(e,{isVisitorTrackingEnabled:function(){return c}});var i=n(2),o=n(22),r=n(46);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var u;i.default._visitorTrackingDomain||(i.default._visitorTrackingDomain=location.hostname||""),i.default._visitorTracking||(null!=(u=(0,r.getWistiaLocalStorage)().visitorTrackingEnabled)&&((0,r.updateWistiaLocalStorage)((function(t){return delete t.visitorTrackingEnabled})),i.default._visitorTracking={},i.default._visitorTracking[i.default._visitorTrackingDomain]={isEnabled:u,updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(t){return t.visitorTracking=i.default._visitorTracking}))),i.default._visitorTracking=(0,r.getWistiaLocalStorage)().visitorTracking||{});i.default.consent=function(t){return null==t?c():l(t)};var l=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:i.default._visitorTrackingDomain;"default"===t?delete i.default._visitorTracking[e]:i.default._visitorTracking[e]={isEnabled:"true"==="".concat(t),updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(t){return t.visitorTracking=i.default._visitorTracking})),(0,o.globalTrigger)("visitortrackingchange",t)},c=function(){if("boolean"==typeof i.default._visitorTracking)return i.default._visitorTracking;if(i.default._visitorTracking){var t=function(){if(i.default._visitorTrackingDomain)for(var t=i.default._visitorTrackingDomain.split(".");0<t.length;){var e=i.default._visitorTracking[t.join(".")],n=e&&e.isEnabled;if(null!=n)return n;t.shift()}}();if(null!=t)return!!t}var e=[];if(i.default.api&&i.default.api.all)try{e.push.apply(e,a(i.default.api.all()))}catch(t){}if(i.default.channel&&i.default.channel.all)try{e.push.apply(e,a(i.default.channel.all()))}catch(t){}return!e.some((function(t){return!0===(t._mediaData||t._galleryData||{}).privacyMode}))}},function(t,e,n){"use strict";n.d(e,{getWistiaLocalStorage:function(){return a},removeWistiaLocalStorage:function(){return s},updateWistiaLocalStorage:function(){return u}});var i=n(2),o=n(47),r="wistia",a=function(){return(0,o.getLocalStorage)(r)},s=function(){return i.default._localStorage=(0,o.removeLocalStorage)(r),i.default._localStorage},u=function(t){return i.default._localStorage=(0,o.updateLocalStorage)(r,t),i.default._localStorage}},function(t,e,n){"use strict";n.d(e,{getLocalStorage:function(){return l},removeLocalStorage:function(){return c},setLocalStorage:function(){return f},updateLocalStorage:function(){return h}});var i=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(t){setTimeout((function(){throw t}),0)},a="_namespacedLocalStorage",s=function(t){if(null!=i.default._localStorageWorks)return i.default._localStorageWorks;try{var e=localStorage.getItem(t);localStorage.removeItem(t),localStorage.setItem(t,e),i.default._localStorageWorks=!0}catch(t){i.default._localStorageWorks=!1}return i.default._localStorageWorks},u=function(){return null==i.default[a]&&(i.default[a]={}),i.default[a]},l=function(t){if(!s())return u()[t]||{};if(localStorage[t])try{return"null"===localStorage[t]?{}:JSON.parse(localStorage[t])}catch(t){r(t)}return{}},c=function(t){if(s())try{localStorage.removeItem(t)}catch(t){r(t)}else u()[t]={}},f=function(t,e){if(!s())return null!=e&&"object"===o(e)&&(u()[t]=e),e;try{u()[t]=e,localStorage[t]=JSON.stringify(e)}catch(t){r(t)}return e},h=function(t,e){var n=l(t);try{e(n)}catch(t){r(t)}return f(t,n)}},function(t,e,n){"use strict";n.d(e,{hashCodeForString:function(){return i}});var i=function(t){var e,n=0;if(0===t.length)return n;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n}},function(t,e,n){"use strict";n.r(e),n.d(e,{FAILED:function(){return d},QUEUED:function(){return p},PROCESSING:function(){return y},READY:function(){return m},filter:function(){return g},one:function(){return b},readyPublicMp3s:function(){return _},readyPublicMp4s:function(){return w},readyPublicM3u8s:function(){return S},readyPublicFlvs:function(){return k},readyPublicMp4sAndFlvs:function(){return T},filterOver400:function(){return O},readyPublicOver400:function(){return P},nonfailedPublicOver400:function(){return E},withinQualityRange:function(){return C},numericSizeSnapped:function(){return A},findClosestAssetByQuality:function(){return x},still:function(){return M},channelArtworkStill:function(){return D},thumbnailAssets:function(){return R},stillUrl:function(){return I},getStillWidth:function(){return F},BAKERY_HOSTS:function(){return L},isBakeryUrl:function(){return j},onePublicReadyWithContainer:function(){return W},mp4:function(){return H},webm:function(){return V},m3u8:function(){return U},flv:function(){return N},original:function(){return q},playable:function(){return z},isScreencast:function(){return K},videoAspect:function(){return G},originalAspect:function(){return Q},iphone:function(){return X},smallestNormalMp4:function(){return Y},urlWithCorrectHost:function(){return $},nearestOutsideRange:function(){return Z},moveToFront:function(){return J}});var i=n(12),o=n(35),r=n.n(o),a=n(36),s=n(20),u=n(34),l=n(21);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(t,e)||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 f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var h=Array.prototype.slice,d=-1,p=0,y=1,m=2,v=["select","sortFn","sortBy","unique"],g=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!t)return[];t.assets&&(t=t.assets),(null!=e.qualityMin||null!=e.qualityMax)&&(t=C(t,e.qualityMin,e.qualityMax),e=(0,i.except)(e,["qualityMin","qualityMax"]));var n=(0,i.only)(e,v),o=n.select||(0,i.except)(e,v);o&&(n.select=o);var r=n.select?(0,i.select)(t,n.select):(0,i.clone)(t);if((n.sortFn||n.sortBy)&&(r=(0,i.sort)(r,n.sortFn||n.sortBy)),n.unique){for(var a={},s=0;s<r.length;s++){var u=r[s],l=u[""+n.unique]||"__undefined__";a[l]||(a[l]=u)}for(var c in r=[],a)r.push(a[c])}return r},b=function(t,e){return g(t,e)[0]||null},_=function(t){return g(t,{ext:"mp3",status:m,public:!0})},w=function(t){return g(t,{container:"mp4",status:m,public:!0})},S=function(t){return g(t,{container:"m3u8",status:m,public:!0})},k=function(t){return g(t,{container:"flv",status:m,public:!0})},T=function(t){return g(t,{container:/mp4|flv/,status:m,public:!0})},O=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],o=null!=i.opt_vbitrate&&500<=i.opt_vbitrate&&1e5>=i.opt_vbitrate,r=null!=i.width&&400<i.width;(o||r)&&e.push(i)}return e},P=function(t){return O(g(t,{container:/mp4|flv/,public:!0,status:m}))},E=function(t){return O(g(t,{container:/mp4|flv/,public:!0,status:function(t){return t!==d}}))},C=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1e4;return g(t,{select:function(t){var i=A(t.width,t.height);return e<=i&&i<=n}})},A=function(t,e){if(e>t){var n=t;t=e,e=n}var i=t/e,o=t*e+1;return o>=3840/i*3840?2160:o>=2560/i*2560?1440:o>=1920/i*1920?1080:o>=1280/i*1280?720:o>=960/i*960?540:o>=640/i*640?360:e},x=function(t,e){var n;n="4k"===e?2160:parseInt(e,10);var i=C(t,n,n)[0];if(i)return i;var o=Z(t,n,n);if(1===o.length)return o[0];var r=G(t),a=Math.round(r*n),s=c(o,2),u=s[0],l=s[1];return Math.abs(u.width-a)<Math.abs(l.width-a)?u:l},M=function(t){var e=b(t,{type:/^still_image$/,sortBy:"created_at desc"});return e||(e=D(t)),e||(e=b(t,{container:/mp4/,sortBy:"width desc"})),e},D=function(t){return b(t,{type:/^channel_still_image$/,sortBy:"created_at desc"})},R=function(t,e){if(e.stillUrl)return[{height:null,url:e.stillUrl,width:null}];var n=M(t),i=n.width/n.height;return[320,640,960,1280,1920,3840].map((function(e){var n=Math.round(e/i);return{height:n,url:I(t,{videoWidth:e,videoHeight:n,playButton:!1}),width:e}}))},B=r()("fast"),I=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=M(t);if(n){if(n.status!==m){var o=D();if(!o||o.status!==m)return"//".concat(B,"/assets/images/blank.gif");o.url}var r=(e=(0,i.merge)({aspect:n.width/n.height||1,stillUrl:n.url,playButton:!1,playerColor:e.playerColor||"636155",videoWidth:n.width||640,videoHeight:n.height||360,stillSnap:!0},e)).videoWidth,s=e.videoHeight,u=new a.Url(e.stillUrl);return e.retina&&(u.params.image_play_button_size="2x",r*=2,s*=2),e.stillSnap&&(r=F({videoWidth:r,stillAssetWidth:n.width||640}),s=Math.round(r/e.aspect)),j(e.stillUrl)?("https:"===e.protocol&&(u.protocol="https:",u.host=("fast.wistia.com"===e.embedHost||e.embedHost,"embed-ssl.wistia.com")),u.params.image_crop_resized="".concat(r,"x").concat(s),(null==e.playButton||e.playButton)&&(u.params.image_play_button=1,u.params.image_play_button_color="".concat((""+e.playerColor).replace(/^#+/,""),"e0")),e.ext&&u.ext(e.ext),"bin"===u.ext()&&u.ext("jpg"),u.absolute()):e.stillUrl}},F=function(t){var e=[640,960,1280,1920,3840];3840>t.stillAssetWidth&&e.push(t.stillAssetWidth);for(var n,i=[],o=0;o<e.length;o++)(n=e[o])<=t.stillAssetWidth&&i.push(n);i.sort((function(t,e){return t-e}));for(var r,a=0;a<i.length;a++)if(r=i[a],t.videoWidth<=r)return r;return Math.max.apply(Math,i)},L=["embed.wistia.com","embed-ssl.wistia.com",r()("embed"),r()("prime"),r()("mixergy-cdn"),"embed-a.wistia.com",r()("embed-fastly"),"embedwistia-a.akamaihd.net","embed.wistia.com","embed-ssl.wistia.com","embed-a.wistia.com","embedwistia-a.akamaihd.net","embed-fastly.wistia.com"],j=function(t){if(null==t)return!1;var e=new a.Url(t);return!!e.host&&0<=L.join(",").indexOf(e.host)},W=function(t,e,n){return n=(0,i.merge)({container:e,public:!0,status:m},n),b(t,n)},H=function(t,e){return W(t,"mp4",e)},V=function(t,e){return W(t,"webm",e)},U=function(t,e){return W(t,"m3u8",e)},N=function(t,e){return W(t,"flv",e)},q=function(t){return b(t,{type:"original"})},z=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:(0,s.cachedDetect)();return n.video.webm&&V(t,e)||H(t,e)},K=function(t){var e=q(t);return e&&640<e.width&&1200>e.bitrate},G=function(t){var e=H(t)||N(t)||U(t)||V(t)||q(t);return e&&e.height?e.width/e.height:640/360},Q=function(t){var e=G(t),n=q(t);if(n&&n.width&&n.height){var i=n.width/n.height;return 1<i&&1>e||1>i&&1<e?1/i:i}return e},X=function(t,e){if(1<G(t))return e=(0,i.merge)({width:640},e),H(t,e)||Y(t,e);var n=(0,i.merge)({width:320},e),o=(0,i.merge)({width:640},e);return H(t,n)||H(t,o)||Y(t,e)},Y=function(t,e){return e=(0,i.merge)({sortBy:"width asc",width:[640,1920]},e),H(t,e)},$=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:u.eV1Protocol(),n=new a.Url(t);return j(t)&&("https:"===e?(n.host=u.deliveryHost(location.protocol),n.protocol="https:"):(n.host=u.deliveryHost(location.protocol),n.protocol="http:")),n.absolute()},Z=function(t,e,n){if(0===t.length)return[];for(var i,o,r=h.call(t).sort((function(t,e){return A(t.width,t.height)-A(e.width,e.height)})),a=0;a<r.length;a++){var s=r[a],u=A(s.width,s.height);if(u<e&&(i=s),u>=n){o=s;break}}var c=[];return i&&c.push(i),o&&c.push(o),0===c.length&&(l.wlog.error("nearestOutsideRange: no nearby assets found, using first in list",r[0]),c.push(r[0])),c},J=function(t,e){if(!e)return t;for(var n=-1,i=0;i<t.length;i++)if(t[i].url===e.url){n=i;break}return 0<n&&(t.splice(n,1),t.unshift(e)),t}},,function(t,e,n){"use strict";n.d(e,{globalEventLoop:function(){return u}});var i=n(21),o=n(2),r=i.wlog.getPrefixedFunctions("event_loop"),a=function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this._timeoutId=null,this._latency=null==e.latency?100:e.latency,this._blurLatency=null==e.blurLatency?2e3:e.blurLatency,this._functions={},this._paused={},window.addEventListener("blur",(function(){return t.blur()}),!1),window.addEventListener("focus",(function(){return t.focus()}),!1),this.start()},s=a.prototype;s.start=function(){var t=this;clearTimeout(this._timeoutId),this._loopFn=this._loopFn||function(){t.runFunctions(),t._timeoutId=setTimeout(t._loopFn,t._latency)},this._loopFn()},s.resync=function(){this.start()},s.resyncNextTick=function(){var t=this;setTimeout((function(){t.resync()}),0)},s.stop=function(){clearTimeout(this._timeoutId)},s.clear=function(){this._functions={}},s.runFunctions=function(){this._pausedDirty&&this.updatePaused();var t=[];for(var e in this._functions){var n=this._functions[e],i=(new Date).getTime(),o=i-n.lastRanAt;if(!n.paused&&o>=n.interval){n.lastRanAt=i;try{n.fn()===this.remove&&t.push(e)}catch(t){r.error(t)}}}for(var a=0;a<t.length;a++)this.remove(t[a])},s.add=function(t,e,n){var i=(new Date).getTime();this._functions[t]={addedAt:i,lastRanAt:-1,interval:e,fn:n};var o=n();this._functions[t]&&(this._functions[t].lastRanAt=(new Date).getTime()),this._functions[t]&&o===this.remove?delete this._functions[t]:this._pausedDirty=!0},s.remove=function(t){var e=this;this.forEachMatchingKey(t,(function(t){delete e._functions[t]}))},s.forEachMatchingKey=function(t,e){for(var n in this._functions){var i=this._functions[n];this.key1IncludesKey2(t,n)&&e(n,i)}},s.latency=function(t){return null==t?this._latency:void(this._latency=t)},s.interval=function(t,e){return null==e?this._functions[t].interval:void(null==this._functions[t]?r.notice("setting interval of ",t,"to",e,"failed because",t,"is not defined"):this._functions[t].interval=e)},s.pause=function(t){this._paused[t]=!0,this._pausedDirty=!0},s.unpause=function(t){this._paused[t]=!1,this._pausedDirty=!0},s.isPaused=function(t){for(var e in this.paused){if(this._paused[e]&&this.key1IncludesKey2(e,t))return!0}return!1},s.updatePaused=function(){for(var t in this._functions){this._functions[t].paused=this.isPaused(t)}this._pausedDirty=!1},s.key1IncludesKey2=function(t,e){return"function"==typeof e.indexOf&&0===e.indexOf(t)&&(e.length===t.length||"."===e.charAt(t.length))},s.blur=function(){this._blurred||(this._blurred=!0,this._savedLatency=this._latency,this._latency=this._blurLatency)},s.focus=function(){this._blurred&&(this._blurred=!1,this._latency=this._savedLatency,this.resync())},null==o.default.eventLoop&&(o.default.eventLoop=new a({latency:100,blurLatency:100}));var u=o.default.eventLoop},,,,,,function(t,e,n){"use strict";n.d(e,{cssResetForSelector:function(){return l}});var i=n(13),o={"background-attachment":"scroll","background-color":"transparent","background-image":"none","background-position":"0 0","background-repeat":"no-repeat","background-size":"100% 100%"},r={"box-sizing":"inherit","box-shadow":"none",color:"inherit",display:"block",float:"none",font:"inherit","font-family":"inherit","font-style":"normal","font-weight":"normal","font-size":"inherit","letter-spacing":0,"line-height":"inherit",margin:0,"max-height":"none","max-width":"none","min-height":0,"min-width":0,padding:0,position:"static","text-decoration":"none","text-transform":"none","text-shadow":"none",transition:"none","word-wrap":"normal","-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-user-select":"none","-webkit-font-smoothing":"antialiased"},a={border:0,"border-radius":0,outline:"none",position:"static"},s=function(t){var e=[];for(var n in t){var i=t[n];e.push("".concat(n,":").concat(i))}return e.join(";")},u="\n&{font-size:14px;}\ndiv,span,ul,li,label,fieldset,button,img,a,svg,p{".concat(s(r),"}\na{border:0;}\nh1{").concat(s((0,i.default)({},r,{"font-size":"2em"})),"}\nh2{").concat(s((0,i.default)({},r,{"font-size":"1.5em"})),"}\nh3{").concat(s((0,i.default)({},r,{"font-size":"1.17em"})),"}\np{margin:1.4em 0;}\na,span,svg{display:inline;}\nul,ol,li{").concat(s((0,i.default)({},r,{"list-style-type":"none",position:"static"})),"}\nul:before,ol:before,li:before{display:none}\nul:after,ol:after,li:after{display:none}\nlabel{").concat(s((0,i.default)({},o,{float:"none",outline:"none"})),"}\nbutton{").concat(s((0,i.default)({},o,a)),"}\nimg{").concat(s((0,i.default)({},{border:0,display:"inline-block","vertical-align":"top"},a)),"}\nbutton::-moz-focus-inner{border: 0;}\n"),l=function(t,e){return u.trim().split(/\n+/).map((function(n){return function(t,e,n){var i=n.indexOf("{"),o=n.substring(0,i),r=n.substring(i,n.length);return o.split(/,\s*/).map((function(n){return 0<=n.indexOf("&")?"".concat(n.replace(/&/g,t)).concat(e).concat(r):0<=n.indexOf("::")?"".concat(t).concat(e," ").concat(n).concat(r):"".concat(t).concat(n).concat(e).concat(r)})).join("\n")}(t,e,n)})).join("\n")}},function(t,e,n){"use strict";var i=n(6),o=n(20),r=n(59);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){return(s=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=(0,o.cachedDetect)(),v=function(t){function e(){var t;u(this,e);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return y(d(t=h.call.apply(h,[this].concat(i))),"onSwipe",(function(e,n){var i=t.props.onSwipe;i&&i(e,n)})),y(d(t),"onPinch",(function(e,n){var i=t.props.onPinch;i&&i(e,n)})),y(d(t),"onLongPress",(function(e,n){var i=t.props.onLongPress;i&&i(e,n)})),y(d(t),"onCustomTouchMove",(function(e,n){var i=t.props.onCustomTouchMove;i&&i(e,n)})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t);var n,o,a,h=f(e);return n=e,(o=[{key:"render",value:function(){var t=this.props.tagName||"div";return(0,i.h)(t,s({},this.props,{ref:this.props.elemRef}),this.props.children)}},{key:"componentDidMount",value:function(){this._savedBase=this.base,this.setupBindings()}},{key:"componentDidUpdate",value:function(){this.base!==this._savedBase&&(this._savedBase=this.base,this.destroyBindings(),this.setupBindings())}},{key:"componentWillUnmount",value:function(){this.destroyBindings()}},{key:"setupBindings",value:function(){if(this.unbinds=[],m.touchScreen){var t=this.touchEvents=new r.default(this.base);t.on("swipe",this.onSwipe),t.on("pinch",this.onPinch),t.on("longpress",this.onLongPress),t.on("touchmove",this.onCustomTouchMove)}}},{key:"destroyBindings",value:function(){this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),this.unbinds&&(this.unbinds.map((function(t){return t()})),this.unbinds=null)}}])&&l(n.prototype,o),a&&l(n,a),e}(i.Component);e.default=v},function(t,e,n){"use strict";var i=n(2),o=(n(60),n(24)),r=n(16);function a(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=(0,n(20).cachedDetect)(),l=function(){function t(e){var n=this;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),s(this,"onTouchStart",(function(t){n.rootWidth=(0,r.elemWidth)(n.rootElem),n.rootHeight=(0,r.elemHeight)(n.rootElem),n.rootOffset=(0,r.elemOffset)(n.rootElem),n.resetTouchContext(),t.touches[0]&&(n.xDown=t.touches[0].clientX,n.yDown=t.touches[0].clientY),n.updatePinch(t),2==t.touches.length&&n.touchesAreInsideRootElem()&&t.preventDefault(),n.startedAt=Date.now(),(0,r.elemBind)(document,"touchmove",n.onTouchMoveDocument,{passive:!1}),(0,r.elemBind)(document,"touchend",n.onTouchEndDocument),(0,r.elemBind)(n.rootElem,"touchmove",n.onTouchMove,{passive:!1}),(0,r.elemBind)(n.rootElem,"touchend",n.onTouchEnd);var e=n.getTouchContext(t);n.trigger("touchstart",t,e),n.maybeTriggerMoreSpecificEvent(t,e)})),s(this,"onTouchMove",(function(t){t._handledByTouchMove=!0;var e=t.touches[0].clientX,i=t.touches[0].clientY;(n.xDiff=n.xDown-e,n.yDiff=n.yDown-i,n.updatePinch(t),n.isPinch)||(25<Math.sqrt(n.xDiff*n.xDiff+n.yDiff*n.yDiff)||300<Date.now()-n.startedAt)&&(n.isSwipe=!0);var o=n.getTouchContext(t);n.trigger("touchmove",t,o),n.maybeTriggerMoreSpecificEvent(t,o)})),s(this,"onTouchMoveDocument",(function(t){t._handledByTouchMove||n.onTouchMove(t)})),s(this,"onTouchEnd",(function(t){t._handledByTouchEnd=!0;var e=n.getTouchContext(t);n.trigger("touchend",t,e),n.maybeTriggerMoreSpecificEvent(t,e),setTimeout((function(){n.resetTouchContext(),n.unbindTouchEndAndTouchMove()}),0)})),s(this,"onTouchEndDocument",(function(t){t._handledByTouchEnd||n.onTouchEnd(t)})),this.rootElem=e,this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.initialPinchDistance=null,this.touch1=this.touch2=null,this.pinchDistance=0,this.pinchScale=0,(0,r.elemBind)(e,"touchstart",this.onTouchStart,!!u.passiveSupported&&{passive:!1})}return e=t,(n=[{key:"updatePinch",value:function(t){var e=this.rootOffset;return 2===t.touches.length?(this.touch1={left:t.touches[0].pageX-e.left,top:t.touches[0].pageY-e.top},this.touch2={left:t.touches[1].pageX-e.left,top:t.touches[1].pageY-e.top},this.pinchDistance=Math.sqrt(Math.pow(this.touch1.left-this.touch2.left,2),Math.pow(this.touch1.top-this.touch2.top,2)),null==this.initialPinchDistance&&(this.initialPinchDistance=this.pinchDistance),this.pinchScale=this.pinchDistance/this.initialPinchDistance,this.pinchDelta=this.pinchDistance-this.initialPinchDistance,this.isPinch=!0,this.pinchScale):0}},{key:"getTouchContext",value:function(t){var e=this.rootOffset,n=Date.now()-this.startedAt,i=Object(t.touches[0]);return{xOffset:i.pageX-e.left,yOffset:i.pageY-e.top,xDelta:this.xDiff,yDelta:this.yDiff,absXDelta:Math.abs(this.xDiff),absYDelta:Math.abs(this.yDiff),delta:Math.sqrt(this.xDiff*this.xDiff+this.yDiff*this.yDiff),startedAt:this.startedAt,isSwipe:!this.isPinch&&this.isSwipe,isTap:1e3>n&&!this.isPinch&&!this.isSwipe,isLongPress:1e3<=n&&!this.isPinch&&!this.isSwipe,isPinch:this.isPinch,timeDelta:n,pinchScale:this.pinchScale,pinchDistance:this.pinchDistance}}},{key:"touchIsInsideRootElem",value:function(t){return 0<=t.left&&t.left<this.rootWidth&&0<=t.top&&t.top<this.rootHeight}},{key:"touchesAreInsideRootElem",value:function(){return this.touchIsInsideRootElem(this.touch1)&&this.touchIsInsideRootElem(this.touch2)}},{key:"resetTouchContext",value:function(){this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.pinchDelta=0,this.pinchDistance=0,this.initialPinchDistance=null,this.touch1=this.touch2=null}},{key:"maybeTriggerMoreSpecificEvent",value:function(t,e){e.isLongPress?this.trigger("longpress",t,e):e.isTap?this.trigger("tap",t,e):e.isSwipe?this.trigger("swipe",t,e):e.isPinch&&this.trigger("pinch",t,e)}},{key:"destroy",value:function(){(0,r.elemUnbind)(this.rootElem,"touchstart",this.onTouchStart),this.unbindTouchEndAndTouchMove(),this.rootElem=null}},{key:"unbindTouchEndAndTouchMove",value:function(){(0,r.elemUnbind)(document,"touchmove",this.onTouchMoveDocument),(0,r.elemUnbind)(document,"touchend",this.onTouchEndDocument),(0,r.elemUnbind)(this.rootElem,"touchmove",this.onTouchMove),(0,r.elemUnbind)(this.rootElem,"touchend",this.onTouchEnd)}}])&&a(e.prototype,n),i&&a(e,i),t;var e,n,i}();(0,o.bindify)(l.prototype),i.default.define("vulcanV2Player/TouchEvents.js",l),e.default=l},function(t,e,n){"use strict";var i=n(2),o=n(14),r=n.n(o),a=n(28),s=n(34);if(!i.default.define){var u=i.default.modulePromises={},l=i.default.moduleDeps={},c=i.default.moduleResolveQueues={},f=function(t,e){null==c[t]&&(c[t]=[]),c[t].push(e)},h=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:12e4;if(null!=u[t])return u[t];var n="".concat((0,s.eV1Protocol)(),"//").concat((0,s.eV1HostWithPort)(),"/assets/external/").concat(t);return u[t]=new(r())((function(i,o){f(t,i),(0,a.default)(n,e).catch((function(t){setTimeout((function(){throw t}),1),o(t)}))})),u[t]},d=function(t){if(null!=l[t])return l[t];throw new Error('Cannot synchronously require dep "'.concat(t,'" because it is not defined.'))};i.default.define=function(t,e){l[t]=e,null==u[t]&&(u[t]=r().resolve(e)),c[t]&&(c[t].map((function(t){return t(e)})),delete c[t])},i.default.asyncDefine=function(t,e){return u[t]=e.then((function(e){return i.default.define(t,e),e})),u[t]},i.default.asyncRequire=function(t,e){return t instanceof Array?r().all(t.map((function(t){return h(t,e)}))):h(t,e)},i.default.syncRequire=function(t){return t instanceof Array?t.map((function(t){return d(t)})):d(t)}}},function(t,e,n){"use strict";var i=n(6);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){function e(){return r(this,e),c.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t);var n,o,l,c=u(e);return n=e,(o=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var t=this.props;return(0,i.h)("div",{class:t.class||"w-html-stub",style:t.style,ref:t.stubRef,"data-handle":t.handle})}},{key:"componentDidMount",value:function(){var t=this.props.mount;t&&t(this.base)}},{key:"componentWillUnmount",value:function(){var t=this.props.destroy;t&&t()}}])&&a(n.prototype,o),l&&a(n,l),e}(i.Component);e.default=f},function(t,e,n){"use strict";var i=n(36),o=n(12),r=function(){return top===self?location.href||"":document.referrer||""},a=/^w_([^&]+)/;e.default=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:a;e||(e=r());var s=new i.Url(e),u=s.params||{},l={};for(var c in u)if(u.hasOwnProperty(c)){var f=c.match(n);if(f){var h=f[1];0<=(0,o.indexOf)(t,h)&&(l[h]=u[c])}}return l}},,function(t,e,n){"use strict";n.d(e,{destroyControl:function(){return a}});n(14),n(13),n(65);var i=n(20),o=(n(44),n(16)),r=n(6),a=(n(10),(0,i.cachedDetect)(),function(t){t._destroyed=!0,function(t){t.unbinds instanceof Array&&(t.unbinds.map((function(t){try{"function"==typeof t&&t()}catch(t){setTimeout((function(){throw t}),1)}})),t.unbinds=null)}(t),s(t),l(t),c(t)}),s=function(t){t.rootElem&&(0,o.elemRemove)(Array.prototype.slice.call(t.rootElem.childNodes))},u=function(t){var e=t[0],n=t[1];e&&n&&(0,r.render)((0,r.h)("nothing",null),e)},l=function(t){var e=t.reactMounts;if(e)if(e instanceof Array)u(e);else for(var n in e)e.hasOwnProperty(n)&&e[n]&&u(e[n])},c=function(t){for(var e in t)t.hasOwnProperty(e)&&("_"!==(n=e)[0]||"_"!==n[1])&&"mounted"!==e&&(t[e]=null);var n;t.__prevProps=null,t._destroyed=!0}},function(t,e,n){"use strict";n.d(e,{getControlDefinitions:function(){return o}});var i=n(2);null==i.default._controlDefinitions&&(i.default._controlDefinitions={});var o=function(){return i.default._controlDefinitions||{}};i.default.defineControl=function(t){null!=t.handle?null!=i.default._controlDefinitions[t.handle]||(i.default._controlDefinitions[t.handle]=t,i.default.trigger&&i.default.trigger("controldefined",t)):console.error("Please specify a handle property for control",t)}},,,function(t,e,n){"use strict";n.r(e),n.d(e,{durationStringToSeconds:function(){return o},flexibleDuration:function(){return r},formattedDurationToSeconds:function(){return a},isValidDurationString:function(){return l},padNumber:function(){return c},secondsConverter:function(){return f},getSecondsRemaining:function(){return h}});var i=n(69),o=function(t){var e=(null==t?void 0:t.toString())||"";return l(e)?3600*s("h",e)+60*s("m",e)+s("s",e):0},r=function(t){var e=f(t,"hms"),n=e.hours,i=e.minutes,o=e.seconds;return 0===n?"".concat(i,":").concat(c(o,2)):"".concat(n,":").concat(c(i,2),":").concat(c(o,2))},a=function(t){return l(t)?o(t):(0,i.isValidIso8601)(t)?(0,i.iso8601TimeToSeconds)(t):t},s=function(t,e){var n=new RegExp("\\d+".concat(t)),i=e.match(n);return i?parseInt(i[0].match(/\d+/)[0]):0},u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=function(t){if(!t)return!1;var e=t.toString();return null!==(e=e.replace(u,"")).match(/[\dhms]+/)&&null!==e.match(/[hms]+/)&&e.match(/[\dhms]+/)[0]===e&&!function(t){return 0<["h","m","s"].filter((function(e){var n=new RegExp(e,"g"),i=t.match(n);return!!(null!==i&&1<i.length)})).length}(e)&&!!function(t){var e=t.match(/[hms]/g),n=!1;if(3===e.length&&"h"===e[0]&&"m"===e[1]&&"s"===e[2])return!0;if(2===e.length){var i=e.join("");return["hm","hs","ms"].forEach((function(t){i===t&&(n=!0)})),n}return!0}(e)},c=function(t){for(var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=""+t;n.length<e;)n="0"+n;return n},f=function(t,e){var n=0,i=0,o=0,r=/h/.test(e),a=/m/.test(e);return r&&0<t&&(n+=Math.floor(t/3600),t%=3600),a&&0<t&&(i+=Math.floor(t/60),t%=60),o=Math.round(t),r&&60===i&&(n+=1,i=0),a&&60===o&&(i+=1,o=0),{hours:n,minutes:i,seconds:o}},h=function(t,e){return(e.getTime()-t.getTime())/1e3}},function(t,e,n){"use strict";n.r(e),n.d(e,{iso8601TimeToSeconds:function(){return o},isValidIso8601:function(){return r},secondsToIso8601Date:function(){return a},secondsToIso8601Duration:function(){return s},secondsToIso8601Time:function(){return u}});var i=n(68),o=function(t){var e=t.toString()||"",n=0,i=[1,60,3600];return e.split(":").reverse().forEach((function(t,e){n+=t*i[e]})),0|Math.abs(parseInt(n))},r=function(t){if(!t||"string"!=typeof t)return!1;var e=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");return null!==e.match(/[\d:]+/)&&!(e.match(/[\d:]+/)[0]!==e)},a=function(t){var e=new Date(1e3*t),n=e.getFullYear(),i=e.getMonth()+1,o=e.getDate();return 10>i&&(i="0".concat(i)),10>o&&(o="0".concat(o)),"".concat(n,"-").concat(i,"-").concat(o)},s=function(t){var e=(0,i.secondsConverter)(t,"hms"),n=e.hours,o=e.minutes,r=e.seconds,a="";return n&&(a+="".concat(n,"H")),(o||60<t&&0!==r)&&(a+="".concat(o,"M")),(r||0===t)&&(a+="".concat(r,"S")),a},u=function(t){var e=(0,i.secondsConverter)(t,"hms"),n=e.hours,o=e.minutes,r=e.seconds,a=n.toString(),s=o.toString(),u=r.toString();return["00".substring(a.length)+a,"00".substring(s.length)+s,"00".substring(u.length)+u].join(":")}},,,,function(t,e){"use strict";function n(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}var i=/^#?([0-9a-f]{3,4}|[0-9a-f]{6,8})$/i,o=/^rgba?\((\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?)(?:,\s*([01]?\.?\d*))?\)$/,r=/^\d+(\.\d+)*%$/,a=/([0-9a-f])/gi,s=function(t){return r.test(t)?2.55*parseFloat(t):t},u=function(t,e,n){return 0>n&&(n+=1),1<n&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},l=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),e instanceof t?(this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a):e?this.parse(e):(this.r=this.g=this.b=0,this.a=1)}return e=t,(r=[{key:"parse",value:function(t){if(t+="",i.test(t)){var e=t.replace(/^#/,"");(3===e.length||4===e.length)&&(e=e.replace(a,"$1$1")),this.r=parseInt(e.substr(0,2),16),this.g=parseInt(e.substr(2,2),16),this.b=parseInt(e.substr(4,2),16),this.a=8===e.length?parseInt(e.substr(6,2),16)/255:1}else if(o.test(t)){var n=t.match(o);this.r=parseFloat(s(n[1])),this.g=parseFloat(s(n[2])),this.b=parseFloat(s(n[3])),this.a=n[4]?parseFloat(n[4]):1}return this}},{key:"clone",value:function(){return new t(this)}},{key:"_hslFromRgb",value:function(){var t=this.r/255,e=this.g/255,n=this.b/255,i=Math.max(t,e,n),o=Math.min(t,e,n),r=(i+o)/2;i===o&&(this._h=this._s=0);var a,s,u=i-o;return 0==u?(this._h=0,this._s=0,this._l=100*t,this):(a=.5<r?u/(2-i-o):u/(i+o),s=i===t?(e-n)/u+(e<n?6:0):i===e?(n-t)/u+2:(t-e)/u+4,s/=6,this._h=360*s,this._s=100*a,this._l=100*r,this)}},{key:"_rgbFromHsl",value:function(){var t=this._h/360,e=this._s/100,n=this._l/100,i=.5>n?n*(1+e):n+e-n*e,o=2*n-i;return this.r=255*u(o,i,t+1/3),this.g=255*u(o,i,t),this.b=255*u(o,i,t-1/3),this}},{key:"blendChannel",value:function(t,e,n){return this[t]=n*e+(1-n)*this[t],this}},{key:"blend",value:function(e,n){return e=new t(e),this.blendChannel("r",e.r,n),this.blendChannel("g",e.g,n),this.blendChannel("b",e.b,n),this}},{key:"lightenChannel",value:function(t,e){return this[t]+=e,0>this[t]?this[t]=0:255<this[t]&&(this[t]=255),this}},{key:"lighten",value:function(t){return this.looksLikePercent(t)?this.lightness(this.lightness()+parseFloat(t)):(this.lightenChannel("r",t),this.lightenChannel("g",t),this.lightenChannel("b",t)),this}},{key:"darken",value:function(t){return"string"==typeof t?this.lighten("-".concat(t)):this.lighten(-t)}},{key:"looksLikePercent",value:function(t){return/^-?\d+(\.\d+)?%$/.test(t)}},{key:"lightness",value:function(t){return this._hslFromRgb(),null==t?this._l:(this._l=Math.max(0,Math.min(100,t)),this._rgbFromHsl(),this)}},{key:"saturation",value:function(t){return this._hslFromRgb(),null==t?this._s:(this._s=Math.max(0,Math.min(100,t)),this._rgbFromHsl(),this)}},{key:"grayLevel",value:function(){return(.299*this.r+.587*this.g+.114*this.b)/255}},{key:"whiteLevel",value:function(){return Math.min(Math.min(this.r,this.g),this.b)}},{key:"isGrayscale",value:function(){return this.r===this.g&&this.g===this.b}},{key:"distanceFrom",value:function(t){return Math.sqrt(Math.pow(this.r-t.r,2)+Math.pow(this.g-t.g,2)+Math.pow(this.b-t.b,2))}},{key:"channelDominance",value:function(){var t=this;return["r","g","b"].sort((function(e,n){return t[n]-t[e]}))}},{key:"alpha",value:function(t){return null==t?this.a:(this.a=t,this)}},{key:"red",value:function(t){return null==t?this.r:(this.r=t,this)}},{key:"green",value:function(t){return null==t?this.g:(this.g=t,this)}},{key:"blue",value:function(t){return null==t?this.b:(this.b=t,this)}},{key:"toHex",value:function(){var t=Math.round(this.r).toString(16),e=Math.round(this.g).toString(16),n=Math.round(this.b).toString(16);return 1===t.length&&(t="0"+t),1===e.length&&(e="0"+e),1===n.length&&(n="0"+n),""+t+e+n}},{key:"toHexWithAlpha",value:function(){var t=Math.round(255*this.a).toString(16);return 1===t.length&&(t="0"+t),""+t+this.toHex()}},{key:"toRgb",value:function(){return"rgb(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),")")}},{key:"toRgba",value:function(){return"rgba(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),",").concat(this.a,")")}},{key:"toRgbaOrHex",value:function(){return this.toRgba()}},{key:"toPercent",value:function(){return"rgba(".concat(this.r/255*100,"%,").concat(this.g/255*100,"%,").concat(this.b/255*100,"%,").concat(this.a,")")}},{key:"toIeGradient",value:function(){return"progid:DXImageTransform.Microsoft.gradient(startColorStr='#".concat(this.toHexWithAlpha(),"', endColorStr='#").concat(this.toHexWithAlpha(),"')")}},{key:"toString",value:function(){return this.toPercent()}}])&&n(e.prototype,r),l&&n(e,l),t;var e,r,l}();e.default=l},,function(t,e,n){"use strict";var i=n(6);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=l.call(this,t)).state={filledWidth:0,isDisplayNone:!0,isOpaque:!1,widthTransitionShouldDelay:!0},n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,t);var n,o,u,l=s(e);return n=e,(o=[{key:"componentDidMount",value:function(){this.maybeFadeInOrOut()}},{key:"componentDidUpdate",value:function(t,e){var n=t.isVisible;this.maybeFadeInOrOut(n);var i=e.filledWidth;this.maybeChangeFilledWidth(i)}},{key:"fadeIn",value:function(){var t=this,e=this.props.isVisible;clearTimeout(this.fadeTimeout),this.setState({isDisplayNone:!1},(function(){e&&(t.fadeTimeout=setTimeout((function(){e&&requestAnimationFrame((function(){t.setState({isOpaque:!0})}))}),0))}))}},{key:"fadeOut",value:function(){var t=this,e=this.props.isVisible;clearTimeout(this.fadeTimeout),this.setState({isOpaque:!1},(function(){e||(t.fadeTimeout=setTimeout((function(){e||t.setState({isDisplayNone:!0})}),200))}))}},{key:"filledBarStyle",value:function(){var t=this.state,e=t.widthTransitionShouldDelay,n=t.filledWidth,i=this.props.color;return{backgroundColor:"#".concat(i),height:"100%",transition:"width 500ms ease-out ".concat(e?"500ms":""),width:"".concat(n,"%")}}},{key:"maybeFadeInOrOut",value:function(t){var e=this.props.isVisible;e!==t&&(e?this.fadeIn():this.fadeOut())}},{key:"maybeChangeFilledWidth",value:function(t){var e=this,n=this.props.percentWatched;null!=n&&n!==t&&setTimeout((function(){requestAnimationFrame((function(){e.setState({filledWidth:n})}))}),0)}},{key:"removeTransitionDelay",value:function(){this.setState({widthTransitionShouldDelay:!1})}},{key:"unfilledBarStyle",value:function(){var t=this.state,e=t.isDisplayNone,n=t.isOpaque;return{backgroundColor:"#ffffff",bottom:0,display:e?"none":"",height:n?"".concat(6*this.props.scale,"px"):0,opacity:n?.8:0,transition:"opacity 1s, height .5s",width:"100%"}}},{key:"render",value:function(){var t=this;return(0,i.h)("div",{style:this.unfilledBarStyle()},(0,i.h)("div",{onTransitionEnd:function(){return t.removeTransitionDelay()},style:this.filledBarStyle()}))}}])&&r(n.prototype,o),u&&r(n,u),e}(i.Component);e.default=c},function(t,e,n){"use strict";n.d(e,{getLastTime:function(){return r},setLastTime:function(){return a},getResumableKeyForVideo:function(){return s},setResumableKeyForVideo:function(){return u},atOrNearEnd:function(){return l},atOrNearBeginning:function(){return c},shorterThanResumableThreshold:function(){return f},withinResumableTime:function(){return h}});var i=n(47),o=function(t){return"wistia-video-progress-".concat(t)},r=function(t){return(0,i.getLocalStorage)(o(t)).lastTime},a=function(t,e){(0,i.updateLocalStorage)(o(t),(function(t){t.lastTime=e}))},s=function(t){return(0,i.getLocalStorage)(o(t)).resumableKey},u=function(t,e){(0,i.updateLocalStorage)(o(t),(function(t){t.resumableKey=e}))},l=function(t,e){return(r(t)||0)+5>e},c=function(t){return(r(t)||0)<10},f=function(t){return t<300},h=function(t,e){return!c(t)&&!l(t,e)}},,,,function(t,e,n){"use strict";n(81),n(132);window.Wistia.wistia=Date.now()},function(t,e,n){"use strict";n(60),n(23),n(22),n(82),n(83),n(84),n(85),n(90),n(103),n(104),n(107),n(108),n(109),n(113),n(114),n(115),n(117),n(118),n(119),n(120),n(121),n(123),n(124),n(125),n(126),n(127),n(128),n(130),n(131)},function(t,e,n){var i=[].slice;!function(t){var e,o,r,a,s;if(!(o=t).wlog)a=n(21),s=a.wlog,e=a.LOG_LEVELS,r=n(36).parseUrl,o.wlog=s,o.log=s.error,o.error=s.error,o.warn=s.warn,o.notice=s.notice,o.info=s.info,o.debug=s.debug,o.logLevels=e,o.stacktrace=function(){try{throw new Error("stacktrace")}catch(t){return t.stack}},o.logHelpers={_log:function(){var t,e,n;return n=arguments[0],e=2<=arguments.length?i.call(arguments,1):[],t=o[n],e=[].concat(this._logPrefix()).concat(e),t.apply(null,e)},_logPrefix:function(){return[this.constructor.name]},error:function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this._log.apply(this,["error"].concat(i.call(t)))},warn:function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this._log.apply(this,["notice"].concat(i.call(t)))},notice:function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this._log.apply(this,["notice"].concat(i.call(t)))},info:function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this._log.apply(this,["info"].concat(i.call(t)))},debug:function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this._log.apply(this,["debug"].concat(i.call(t)))},log:function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this._log.apply(this,["error"].concat(i.call(t)))}},o._initializers.initWLog=function(){var t,e,n,i,o,a,u,l,c,f,h;if(e=r(location.href),document.referrer&&(c=r(document.referrer)),((t=null==e||null==(n=e.params)?void 0:n.wlog)||top!==self&&(t=null==c||null==(i=c.params)?void 0:i.wlog))&&s.setLevel(t),((f=null==e||null==(o=e.params)?void 0:o.wgrep)||(f=null==c||null==(a=c.params)?void 0:a.wgrep))&&s.setGrep(new RegExp(f,"i")),(h=null==e||null==(u=e.params)?void 0:u.wgrepv)||(h=null==c||null==(l=c.params)?void 0:l.wgrepv))return s.setGrepv(new RegExp(h,"i"))},o._destructors.destroyWLog=function(){return null==s?void 0:s.reset()}}(Wistia)},function(t,e,n){var i,o;i=n(20).cachedDetect,(o=Wistia)._initializers.initDetect=function(){if(!o.detect)return o.detect=i()}},function(t,e,n){!function(t){var e,i,o;if(e=t,i=n(51).globalEventLoop,null==(o=e._initializers)||!o.initEventLoop)e._initializers.initEventLoop=function(){return e.eventLoop=i},e._destructors.destroyEventLoop=function(){var t;return null!=(t=e.eventLoop)&&t.stop(),e.eventLoop=null}}(Wistia)},function(t,e,n){!function(t){var e,i,o,r,a,s,u;if(!(o=t).embed)e=n(86),i=n(14),r=n(88).fetchMedia,s=n(42).mediaDataTransforms,u=n(12).merge,o._embed={},o.embed=function(t,e){var n,i;return null==e&&(e={}),o.info("Wistia.embed",t,e),"string"==typeof t?n=t:t.type&&"ab-test"===t.type?(n=t.hashedId,[t.control,t.variant].filter(Boolean).forEach((function(t){return a(t,e)})),o.cacheAbTest(t.hashedId,t)):(n=t.hashedId,i=u({},t.embed_options,e),s(t,i),o.cacheMedia(n,t)),new o.PublicApi(n,e)},o.embedEngine=function(t,n,a,l){var c;return null==a&&(a={}),null==l&&(l={}),c="string"==typeof n?n:n.hashedId,new i((function(i){var f;return f=function(n){var r,s;return r=e.buildContext(l),s=e.bestUsableEngine(r,n,a),o.asyncRequire(s).then((function(e){var o;return o=new e(t,n,u({duration:n.duration},a)),i(o)}))},"string"==typeof n?r(c,(function(t){return s(t,a),o.cacheMedia(c,t),f(t)}),a):f(n)}))},a=function(t,e){return s(t.media,e),o.cacheMedia(t.media.hashedId,t.media)}}(Wistia)},function(t,e,n){"use strict";n.r(e),n.d(e,{PLUGIN_CONFIGS:function(){return C},bestPlayer:function(){return A},bestUsableEngine:function(){return x},bestUsableEngineClass:function(){return M},buildContext:function(){return D},canCopyMetaDataFromHls:function(){return R},canPlayInline:function(){return B},canUsePlayer:function(){return I},choosePlayer:function(){return F},determinePlayerPreferenceFromInput:function(){return j},doesBrowserSupportHlsTools:function(){return W},enginesToLoad:function(){return H},getDefaultContext:function(){return V},hasAssetsForPlayer:function(){return q},hasDesktopHlsAssets:function(){return G},hasEnoughReadyMp4Assets:function(){return Q},hasSupportedHlsAssets:function(){return X},isBrowserInNativeAndroid:function(){return Z},isBrowserOldChrome:function(){return J},isHlsEnabledOrOverridden:function(){return tt},isMobile:function(){return nt},isNotPlayable:function(){return it},isPasswordProtected:function(){return ot},isSupportedPlayer:function(){return at},isValidPlayer:function(){return ut},logWarnings:function(){return lt},noFallbackFromFlash:function(){return ct},playerPlugins:function(){return ft},report:function(){return ht},shouldServeHls:function(){return dt},supportedPlayers:function(){return pt},usablePlayers:function(){return yt},urlHasBeenTamperedWith:function(){return mt},xhrHasBeenTamperedWith:function(){return bt}});var i=n(2),o=n(49),r=n(12),a=n(20),s=n(43),u=n(87),l=n(3);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?c(Object(e),!0).forEach((function(n){h(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d,p=n(21).wlog.getPrefixedFunctions("judy"),y="auto",m="external",v="flash",g="hlsVideo",b="html5",_="manualQualityVideo",w="nativeHlsVideo",S="notplayable",k="passwordprotected",T="twoStrokeVideo",O="vulcan-v2",P="sphericalVideo",E=["vulcan-v2","html5","simplehtml5","flash","external","notplayable","passwordprotected"],C={notPlayableVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},vulcanV2Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},hlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},nativeHlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},passwordProtectedVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},encodingProgress:{on:!0,initBeforeHasData:!1,async:!0,loadWeight:100},externalPlayer:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},flashPlayer:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},html5Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1}},A=function(t,e,n){var i=t.location,o=t.detect,r=t.logger,a=e.assets,s=rt({mediaData:e,options:n},o);return o.oldandroid?(r.info("oldandroid"),I(t,v,a)&&"https:"===i.protocol?(r.info("flash on old android"),v):(r.info("external on old android"),m)):I(t,O,a)&&s||I(t,O,a)?(r.info("default, ret",O),O):"Audio"===e.mediaType||"LiveStream"===e.mediaType?O:I(t,v,a)?(r.info("default, ret",v),v):I(t,b,a)?(r.info("default, ret",b),b):ct(t)?(r.info("no fallback from flash, return",v),v):(r.info("nothing left, use",m),m)},x=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=t.detect,o=t.logger;o.info("bestUsableEngineClass");var r=dt(t,e,n),a=rt({mediaData:e,options:n},i);return n.engine?n.engine:a?(o.info(P),"engines/spherical_video.js"):"Audio"===e.mediaType?"engines/simple_audio.js":st(e)||n.secondaryVideoUrl?(o.info(T),"engines/two_stroke_video.js"):r&&i.nativeHls?(o.info(w),"engines/native_hls_video.js"):r?(o.info(g),"engines/hls_video.js"):(o.info(_),"engines/manual_quality_video.js")},M=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=t.detect,r=t.logger;r.info("bestUsableEngineClass");var a=dt(t,e,n),s=i.default.engines||{};return"Audio"===e.mediaType?s.SimpleAudio:st(e)&&s.TwoStrokeVideo||n.secondaryVideoUrl&&s.TwoStrokeVideo?(r.info(T),s.TwoStrokeVideo):a&&o.nativeHls&&s.NativeHlsVideo?(r.info(w),s.NativeHlsVideo):a&&s.HlsVideo?(r.info(g),s.HlsVideo):(r.info(_),s.ManualQualityVideo)},D=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=L(t);return f(f(f({},V()),t),{},{pageUrl:e})},R=function(t){var e=(0,o.filter)(t,{container:"mp4",public:!0,sortBy:"width desc",status:o.READY,type:/\b(?!captioned_video)\S+/}),n={};U(t).forEach((function(t){n[t.display_name]=t}));var i=e.filter((function(t){return n[t.display_name]&&n[t.display_name].metadata}));return!!(i[0]&&400<=i[0].width)},B=function(t){var e=t.detect;return e.android||10<=e.ios.version},I=function(t,e,n){return at(t,e)&&q(t,e,n)},F=function(t,e,n){var i=t.detect,o=t.logger,r=e.assets,a=n.force,s=n.playerForce;!s&&a&&(s=a),o.info("choosePlayer input",e.hashedId);var u=j(t,e,n);if(s&&!ut(t,s)&&(o.error('Invalid playerForce option: "'.concat(s,'", ignoring')),s=a=null),u&&u!==y&&!ut(t,u)&&(o.error('Invalid playerPreference option: "'.concat(u,'", ignoring')),u=y),o.info("playerPreference is",u),s)return o.info('"playerForce" used, return',s),s;if(ot(t,n))return o.info("return",k),k;if(it(t,e))return o.info("return",S),S;if(u!==y&&I(t,u,r)){var l=rt({mediaData:e,options:n},i);return u!==O&&l?(o.info("this player doesn't support spherical, return",O),O):(o.info('"playerPreference" used, return',u),u)}return o.info("choosing player with no preference"),A(t,e,n)},L=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return t.pageUrl?t.pageUrl:Object(window.FreshUrl).originalUrl?window.FreshUrl.originalUrl:window.top===window.self?location.href||"":document.referrer||""},j=function(t,e,n){var i=n.playerPreference||n.platformPreference;return i&&i!==y?i===b?nt(t)?b:O:"simplehtml5"===i?b:i:y},W=function(t){var e=!!window.Promise;return(t.mediaSource||t.nativeHls)&&e},H=function t(e,n){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=e.detect,a=e.logger,s=[];a.info("enginesToLoad");var u=dt(e,n,i);u&&o.nativeHls?(a.info(w),s.push(w)):u?(a.info(g),s.push(g)):(a.info(_),s.push(_));var l=rt({mediaData:n,options:i},o);if(l&&(s.push(P),a.info(P)),st(n)){a.info(T),s.push(T);var c=(0,r.except)(i,["twoStroke"]),f=n.secondaryMediaData,h=t(e,f,c);s=s.concat(h)}else i.secondaryVideoUrl&&(a.info("secondaryVideoUrl",T),s.push(T));var d={};s.map((function(t){d[t]=!0}));var p=[];for(var y in d)p.push(y);return p},V=function(){return d||(d={detect:(0,r.clone)((0,a.cachedDetect)()),inIframe:top!==self,location:window.location,logger:p,pageUrl:location.href,silenceGlobalWarnings:l.default.wistiaSilenceGlobalWarnings,userAgent:navigator.userAgent})},U=function(t){return(0,o.filter)(t,{container:"m3u8",display_name:function(t){return"Audio"!=t},metadata:function(t){return t&&t.max_bitrate},sortBy:"width desc",status:o.READY,type:"hls_video"})},N=function(t,e){var n={};return n[e]=C[e],n},q=function(t,e,n){if(!ut(t,e))return!1;if(e===S||e===k)return!0;if(e===O)return z(n)||K(n);if(e===b)return 0<(0,o.readyPublicMp4s)(n).length;if(e===v)return 0<(0,o.readyPublicFlvs)(n).length||0<(0,o.readyPublicMp4s)(n).length;if(e===m)return 0<(0,o.readyPublicMp4s)(n).length;throw new Error("Unhandled player type '".concat(e,"'"))},z=function(t){return 0<(0,o.readyPublicMp4s)(t).length||0<(0,o.readyPublicM3u8s)(t).length},K=function(t){return 0<(0,o.readyPublicMp3s)(t).length},G=function(t){var e=U(t),n=(0,o.filter)(t,{container:"mp4",public:!0,status:o.READY,sortBy:"width desc"});return 0<e.length&&(0===n.length||e[0].width>=n[0].width)},Q=function(t){var e=(0,o.filter)(t,{container:"mp4",metadata:function(t){return t&&t.max_bitrate},public:!0,sortBy:"width desc",status:o.READY,type:/\b(?!captioned_video)\S+/});return!!(e[0]&&400<=e[0].width)||R(t)},X=function(t){return Q(t.assets)||(0,s.count)("player/originV2/media-has-no-metadata",1,{hashedId:t.hashedId}),Q(t.assets)},Y=function(t,e){var n=t.pageUrl,i=$(n);if(null!=i)return i;var o=(0,u.setOrGet)("forceHls");return null==o?e.hls:o},$=function(t){var e=t&&t.match&&t.match(/[&?]whls=([^&]+)/),n=e&&e[1];return null==n?null:(0,r.cast)(n)},Z=function(t,e){return t.android&&(!1===e.playsinline||!0===e.nativeMode)},J=function(t){return t.chrome&&50>parseInt(t.chrome.version)},tt=function(t,e,n){return e.hls_enabled||!!Y(t,n)},et=function(t){return t.trident},nt=function(t){var e=t.detect;return e.iphone||e.ipad||e.android},it=function t(e,n){var i=n.assets,r=e.detect,a="Audio"===n.type?0==(0,o.readyPublicMp3s)(i).length:0==(0,o.readyPublicMp4sAndFlvs)(i).length;return"LiveStream"===n.mediaType?et(r):0===i.length||1===i.length&&"original"===i[0].type||a||0<(0,o.nonfailedPublicOver400)(i).length&&0===(0,o.readyPublicOver400)(i).length||st(n)&&t(e,n.secondaryMediaData)},ot=function(t,e){var n=(0,r.getDeep)(e,"plugin.passwordProtectedVideo");return null!=n&&!1!==n.on},rt=function(){var t,e,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=1<arguments.length?arguments[1]:void 0;if(n.options.overrideSpherical)return!1;var o=(null===(t=n.mediaData)||void 0===t?void 0:t.spherical)+"",r=(null===(e=n.opts)||void 0===e?void 0:e.spherical)+"";return("true"==o||"true"===r)&&!et(i)},at=function(t,e){return!!ut(t,e)&&0<=(0,r.indexOf)(pt(t),e)},st=function(t){return!!t.secondaryMediaData},ut=function(t,e){return 0<=(0,r.indexOf)(E,e)},lt=function(t){var e=t.detect,n=t.userAgent,i=t.logger;if(!t.silenceGlobalWarnings){var o=e.browser.msie&&11>e.browser.version,r=/phantomjs/i.test(n);!bt()||r||o||i.error("The XMLHttpRequest constructor has been tampered with. Because this affects CORS/Range XHR requests, HLS playback has been disabled. To enable HLS playback and other important features, please remove code that changes the definition of window.XMLHttpRequest."),mt()&&e.mediaSource&&!r&&!o&&i.error("window.URL.createObjectURL has been tampered with. Because this affects use of Media Source Extensions, HLS playback has been disabled. window.URL is a browser API that should not be clobbered. Its current value is:",window.URL)}},ct=function(t){var e=t.detect;return e.browser.msie&&(9>e.browser.version||e.browser.quirks)||e.browser.mozilla},ft=function(t,e,n,i){var o=t.logger,a={};o.info("playerPlugins input",e,n.hashedId,n,i),e===S?(0,r.merge)(a,N(0,"notPlayableVideo")):e===k?(0,r.merge)(a,N(0,"passwordProtectedVideo")):e===b?(0,r.merge)(a,N(0,"html5Player")):e===v?(0,r.merge)(a,N(0,"flashPlayer")):e===m?(0,r.merge)(a,N(0,"externalPlayer")):e===O&&(0,r.merge)(a,N(0,"vulcanV2Player"));var s=[];for(var u in a)s.push(u);return o.info.apply(o,["playerPlugins output"].concat(s,[a])),a},ht=function(t,e,n){return{bestPlayer:A(t,e,n),playerPreferenceFromInput:j(t,e,n),supportedPlayers:pt(t),usablePlayers:yt(t,e.assets)}},dt=function(t,e,n){if("LiveStream"===e.type)return!0;var i=t.detect;return W(i)&&!J(i)&&!et(i)&&!Z(i,n)&&tt(t,e,n)&&!1!==Y(t,n)&&X(e)&&(!bt(t)&&!mt(t)||Y(t,n))},pt=function(t){var e=t.detect,n=[S,k,m];return(e.vulcanSupport||e.iphone||e.ipad||e.android)&&n.push(O),e.video.h264&&n.push(b),9<=e.flash.version&&n.push(v),n},yt=function(t,e){for(var n,i=[],o=pt(t),r=0;r<o.length;r++)n=o[r],I(t,n,e)&&i.push(n);return i},mt=function(){return"function"!=typeof(window.URL&&window.URL.createObjectURL)},vt=/\s*function\s+XMLHttpRequest\(\)\s*{\s*\[native code\]\s*}\s*/m,gt=/\[object XMLHttpRequestConstructor\]/m,bt=function(){if(XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.constructor){var t=XMLHttpRequest.prototype.constructor.toString();return!(vt.test(t)||gt.test(t))}return!0}},function(t,e,n){"use strict";n.r(e),n.d(e,{uncache:function(){return a},setOrGet:function(){return s},removeLocalStorage:function(){return u},dumpLocalStorage:function(){return l}});var i=n(2),o=n(46),r=n(12);i.default._localStorage||(i.default._localStorage=(0,o.getWistiaLocalStorage)());var a=function(){i.default._localStorage={}},s=function(t,e){var n=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];if(null!=e){var a=n?r.unsetDeep:r.setDeep;return i.default._localStorage=(0,o.updateWistiaLocalStorage)((function(n){return a(n,t,e)})),e}return null==t?i.default._localStorage:(0,r.getDeep)(i.default._localStorage,t)},u=function(t){return s(t,"nada",!0)},l=o.removeWistiaLocalStorage},function(t,e,n){"use strict";n.r(e),n.d(e,{fetchMedia:function(){return v},mediaDataUrl:function(){return g},mediaDataScriptRegExp:function(){return b},cacheMedia:function(){return _},cacheAbTest:function(){return w},uncacheMedia:function(){return S},mediaFromCache:function(){return T},abTestFromCache:function(){return O}});var i=n(3),o=n(2),r=n(12),a=n(21),s=n(89),u=n(27),l=n(37),c=n(10),f=n(44),h=n(34),d=n(36),p=n(87),y=n(43),m=n(42);null==o.default._remoteData&&(o.default._remoteData={});var v=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=P(t,n);if(i){a.wlog.info("W.remote.media",t,"from local cache");var o="remote-media.".concat(t,".").concat((0,c.seqId)()),u=i;return i.type&&"ab-test"===i.type&&(a.wlog.info("W.remote.media",t,"responded",i),u=E(i,n)),(0,f.doTimeout)(o,(function(){e(u)})),o}a.wlog.info("W.remote.media",t,"fetching");var l=g(t,n),h={};null!=n.password&&(h.password=n.password),n.idType&&(h.idType=n.idType);var d=function(i){if(i.error)a.wlog.info("W.remote.media",t,"error",i),_(t,i),e(i);else if(i.type&&"ab-test"===i.type){a.wlog.info("W.remote.media",t,"responded",i);var o=E(i,n);e(o)}else{var s,u=(0,r.merge)({},null===(s=i.media)||void 0===s?void 0:s.embed_options,n);delete i.media.unnamed_assets,(0,m.mediaDataTransforms)(i.media,u),_(t,i.media),a.wlog.info("W.remote.media",t,"responded",i.media),e(i.media)}},p=function(){a.wlog.error("Timed out fetching ".concat(l))},y={onerror:p,timeout:1e4,once:null==n.once||n.once,scriptRegex:b(t)};return(0,s.jsonpPlus)(l,h,d,y)},g=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(e.useMediaDataHostLogic){var n=(0,h.mediaDataHost)(e);return"".concat((0,h.eV1Protocol)(),"//").concat(n,"/embed/medias/").concat(t,".json")}var i=(0,h.forceValidFastWistiaHost)(e.embedHost);return"".concat((0,d.proto)(),"//").concat(i,"/embed/medias/").concat(t,".json")},b=function(t){var e="https:"===location.protocol?"https":"https?";return new RegExp("^(".concat(e,":)?//((").concat((0,h.cdnFastWistiaComHost)().replace(".","\\."),")|(").concat((0,h.cdnFastWistiaNetHost)().replace(".","\\."),"))/embed/medias/").concat(t,"\\.jsonp\\??"))},_=function(t,e){return(0,l.cacheMediaData)(t,e)},w=function(t,e){return o.default._remoteData["ab_test_".concat(t)]=e},S=function(t){(0,l.uncacheMediaData)(t),k(t)},k=function(t){window["wistiajsonp-/embed/medias/".concat(t,".json")]=null,(0,u.removeScriptsBySrc)(g(t),{scriptRegex:b(t)})},T=function(t){return P(t,{idType:"media"})},O=function(t){return P(t,{idType:"ab-test"})},P=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.idType||"media",r=o.default._remoteData["".concat(n,"_").concat(t)];if(r)return r;var a=i.default["wistiajsonp-/embed/medias/".concat(t,".json")];return null!=a&&a.media?a.media:null},E=function(t,e){if(t.error)return t;t.missingVideos&&console.warn("The following videos were not present in the AbTest: ",t.missingVideos),w(t.hashedId,t);var n=[t.control,t.variant].filter(Boolean);n.forEach((function(t){var n,i=(0,r.merge)({},null===(n=t.media)||void 0===n?void 0:n.embed_options,e);(0,m.mediaDataTransforms)(t.media,i),_(t.media.hashedId,t.media)}));var i,o,a,s,u,l="ab_test.".concat(t.hashedId,".selected_media_hashed_id");i=t.winnerHashedId?t.winnerHashedId:(0,p.setOrGet)(l),"undefined"==typeof crypto?a=+(.5<(u=Math.random())):a=1&(s=crypto.getRandomValues(new Uint8Array(1)))[0];var c=2===n.length?a:0;o=n[c].media;var f=!1;n.some((function(t){if(t.media.hashedId===i)return o=t.media,f=!0,!0}));var h={numberOfMedias:n.length,coinFlip:a,savedMedia:f,agent:navigator.userAgent||null,selectedHashedId:o.hashedId,stringCryptoRandom:s+""};return null==s?h.mathRandom=u:h.cryptoRandom=s[0],(0,y.send)("count","player/ab-test-selection",1,h),(0,p.setOrGet)(l,o.hashedId),o}},function(t,e,n){"use strict";n.r(e),n.d(e,{jsonp:function(){return c},jsonpPlus:function(){return f}});var i=n(3),o=n(2),r=n(36),a=n(27),s=n(28),u=n(39),l=n(21).wlog.getPrefixedFunctions("jsonp");function c(t,e,n,c){var f,h,d="?";for(var p in e=e||{})"callback"!=p&&e.hasOwnProperty(p)&&null!=e[p]&&(d+=encodeURIComponent(p)+"="+encodeURIComponent(e[p])+"&");if(l.info(t,d,c),c&&c.once&&(f=(f=(t+d).replace(/\.json(?!p)/,".jsonp")).replace(/&$/,""),h=(0,a.findScriptInDomBySrc)(f,{ignoreProtocol:!0,scriptRegex:c.scriptRegex})),h){var y="wistiajsonp-"+new r.Url(f).relative();l.info("script already in DOM",f,"polling",y),(0,u.poll)((function(){return l.info("found",y,"on root object"),null!=i.default[y]}),(function(){n(i.default[y])}),15,3e4)}else{var m;m=e&&e.callback?e.callback:"wistiajson"+ ++o.default._jsonpCounter,l.info("defining on root:",m),i.default[m]=function(t){n(t),delete i.default[m],i.default[m]=null};var v=t+d+"callback="+m;l.info("runScript",v),(0,s.runScript)(v).catch((function(t){console.error(t)}))}return m}null==o.default._jsonpCounter&&(o.default._jsonpCounter=0);var f=function(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};i.timeout||(i.timeout=5e3),i.onerror||(i.onerror=function(){});var o=setTimeout(i.onerror,i.timeout),r=function(t){clearTimeout(o),n&&n(t)};c(t,e,r,i)}},function(t,e,n){var i=function(t,e){return function(){return t.apply(e,arguments)}},o=[].slice;!function(t){var e,r,a,s,u,l,c,f,h,d,p,y,m,v,g,b,_,w,S,k,T,O,P,E,C,A,x,M,D,R,B,I,F,L,j,W,H,V,U,N,q,z,K,G,Q,X,Y,$,Z,J,tt,et,nt,it,ot,rt,at,st,ut,lt,ct,ft,ht,dt,pt;if(!(s=t).PublicApi)e=n(86),r=n(14),a=n(91),z=n(92).pluginScriptsToLoad,K=n(94).prefetchEngineAndPlugins,Q=n(95),L=Q.injectJsonLd,ot=Q.removeInjectedJsonLd,X=n(36),G=X.proto,q=X.parseUrl,Y=n(98),dt=Y.wData,pt=Y.wRemoveData,$=n(44),f=$.doTimeout,l=$.clearTimeouts,Z=n(69),st=Z.secondsToIso8601Time,at=Z.secondsToIso8601Duration,J=n(68),D=J.formattedDurationToSeconds,J.isValidDurationString,J.durationStringToSeconds,ut=n(10).seqId,tt=n(12),c=tt.clone,U=tt.merge,W=tt.isEmpty,u=tt.cast,lt=tt.setDeep,R=tt.getDeep,H=tt.isObject,F=n(99).inferQualityRangeFromOpts,s.Judy=e,s.Assets=n(49),et=n(16),p=et.elemAddClass,et.elemAfter,y=et.elemAnimate,m=et.elemAppend,v=et.elemBefore,g=et.elemFromObject,b=et.elemHasClass,_=et.elemHeight,w=et.elemInDom,S=et.elemIsHidden,k=et.elemOffset,et.elemPrepend,T=et.elemRebind,O=et.elemRemove,P=et.elemStyle,E=et.elemUnbind,C=et.elemUnbindAll,A=et.elemUnbindAllInside,x=et.elemWidth,I=et.inUserEventContext,rt=n(100).scrollTop,nt=n(34),d=nt.eV1Protocol,h=nt.eV1HostWithPort,B=n(22).globalTrigger,ht=n(101).uniqId,ct=n(39).throttle,it=n(102),j=it.insertIntoArray,ft=it.toArray,V=n(42).mediaDataTransforms,M=n(62).default,s.PublicApi=function(){function t(t,e){var n,o,r;this._definePluginMethod=i(this._definePluginMethod,this),this._doResize=i(this._doResize,this),this._doMonitor=i(this._doMonitor,this),this._initWithMediaData=i(this._initWithMediaData,this),this._allocEmbedSlot=i(this._allocEmbedSlot,this),this.on("problem",(r=this,function(t){return t.video=r,B("problem",t)})),this.info("initialize"),this._hasImpl=new a,this._notReplacing=new a,this._notReplacing(!0),this.hasPlugins=new a,this.up=new a,this.up(!0),this.down=new a,this.down(!1),this.inViewport=new a,this.inViewport(!1),this._implVersion=0,this._playlistIndex=0,this._attrs={},this.params={},this.options={},this.controls={},this._pluginStopGos={},this.plugins={},this.data={},this._definePluginMethod(),this.hashedId(t),this._givenOptions=e,this._playlist=[],this._setupContainer(),this._validate(),this._inferPropertiesBeforeMediaData(),this._dedupContainer(),this._addToGlobalCache(),this._setupBindings(),this.supportedPlayers=[],this.addToPlaylist(this.hashedId(),e),this.down(this.looksDown()),this.up(this.looksUp()),this._hasImpl(function(t){return function(){if(t._wvideoInUrl())return t._scrollToContainer(),t.popover?t.embedded((function(){return t.popover.showAndPlay()})):t.play()}}(this)),null!=(o=window.wistiaEmbeds)&&o.bindHandles(),this.monitor(),this.embedded(function(t){return function(){return t.monitor()}}(this)),this.ready(function(t){return function(){return t.monitor()}}(this)),n=function(t){return function(){return t._onInitializable((function(){return t._withFreeEmbedSlots((function(){var e;return t._initTime=(new Date).getTime(),t.hasData((function(){return t._hasDataTime=(new Date).getTime()})),t.embedded((function(){return t._embeddedTime=(new Date).getTime()})),t.ready((function(){return t._readyTime=(new Date).getTime()})),(e=t._gatherOptions()).mediaData?t._initWithMediaData(e.mediaData):s.remote.media(t.hashedId(),t._initWithMediaData,t._gatherOptions())}))}))}}(this),this._shouldBePopover()?(this.popover={show:function(t){return function(){return t._hasImpl((function(){return t.popover.show()}))}}(this),hide:function(t){return function(){return t._hasImpl((function(){return t.popover.hide()}))}}(this),height:function(t){return function(e,n){return null==e?0:t._hasImpl((function(){return t.popover.height(e,n)}))}}(this),width:function(t){return function(e,n){return null==e?0:t._hasImpl((function(){return t.popover.width(e,n)}))}}(this)},s.asyncRequire("popover.js").then(function(t){return function(){return t.popover=new s.Popover(t),n()}}(this))):n(),this.trigger("initembed")}return t.prototype._withFreeEmbedSlots=function(t){var e,n;return this._setupEmbedSlots(),e=null,this.embedded((n=this,function(){return clearTimeout(e),e=setTimeout((function(){return n._freeEmbedSlot()}),n._embedSlotThrottleInterval())})),null==this._freeEmbedSlotOnError&&(this._freeEmbedSlotOnError=function(t){return function(){return t._freeEmbedSlot(),t.unbind}}(this)),this.rebind("servererror",this._freeEmbedSlotOnError),s._embedSlotFree(function(n){return function(){return n._allocEmbedSlot(),e=setTimeout((function(){return n._freeEmbedSlot()}),1e3),t()}}(this))},t.prototype._onInitializable=function(t){return this.popover&&S(this.container)?(this.info("popover, delaying init until container is visible"),s.eventLoop.add(this.uuid+".wait_for_container_visible",500,(e=this,function(){var n;if(!S(e.container)){e.info("container became visible, initializing");try{t()}catch(t){n=t,s.error(n)}return s.eventLoop.remove}}))):t();var e},t.prototype._setupEmbedSlots=function(){if(null==s._embedSlots&&(s._embedSlots=[]),!s._embedSlotFree)return s._embedSlotFree=new a,s._embedSlotFree(!0)},t.prototype._maxEmbedSlots=function(){var t,e;return 20<(e=function(){var e,n;for(t in n=[],e=dt("video"))e[t],n.push(t);return n}().length)?5:10<e?8:13},t.prototype._embedSlotThrottleInterval=function(){return 500},t.prototype._freeEmbedSlot=function(){var t;if(this._setupEmbedSlots(),s._embedSlots=function(){var e,n,i,o;for(o=[],e=0,n=(i=s._embedSlots).length;e<n;e++)(t=i[e])!==this&&o.push(t);return o}.call(this),s._embedSlots.length<this._maxEmbedSlots())return s._embedSlotFree(!0)},t.prototype._allocEmbedSlot=function(){if(this._setupEmbedSlots(),s._embedSlots.push(this),s._embedSlots.length>=this._maxEmbedSlots())return s._embedSlotFree(!1)},t.prototype._shouldLazyLoad=function(){var t;return t=this._gatherOptions(),!window._inWistiaIframe&&parent===self&&(t.lazyLoad||this.popover&&!1!==t.lazyLoad)},t.prototype._initWithMediaData=function(t){var n,i,o,r;this.info("_initWithMediaData",t);try{0===s.Player.assets(t,{public:!0}).length&&s.Metrics.videoCount(this,"player/no-public-assets")}catch(t){n=t,this.debug(n)}return this.isRemoved()?void this.notice("abort, video already removed"):t.error?(this.notice("display error message from server"),this._displayServerError(t),void this.trigger("servererror")):(this.hashedId(t.hashedId),this._originalMediaData=c(t),this._mediaData=t,this._mediaData=V(t,this._gatherOptions()),this.data.media=t,this.info("_optionSources",this._optionSources()),this._opts=this._gatherOptions(),this.info("_opts",c(this._opts)),U(this._mediaData,this._opts.mergeMediaData),this._inferPropertiesAfterMediaData(),o=e.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=e.playerPlugins(this.judyCtx(),o,this._mediaData,this._opts),e.logWarnings(this.judyCtx(),o,this._mediaData,this._opts),this._implVersion+=1,i=this._implVersion,this._execPlugins().then((r=this,function(){var t,n,a;if(r._implVersion===i){r.hasPlugins(!0),n=s.PublicApi.classFor(o),r.supportedPlayers=e.supportedPlayers(r.judyCtx(),r._mediaData.assets);try{r._impl=new n(r).init()}catch(e){throw t=e,r.error("Failed to initialize impl of class",n,"preferred",o,"supported",r.supportedPlayers),t}return r.grid=r._impl.setupGrid({initDimensions:!1}),r._hasImpl(!0),r.hasData(!0),(null==(a=r._embedContainer)?void 0:a.parentNode)?(r._runMethodsFromOptions(),r._impl.embed(),0<r._getFadeInTime()&&P(r._impl.gridChildren(),{opacity:0}),r._impl.embedded((function(){return 0<r._getFadeInTime()?y(r._impl.gridChildren(),{opacity:1},{time:r._getFadeInTime(),callback:function(){return r.trigger("transitiondone")}}):r.trigger("transitiondone")})),f(r.uuid+".prefetch_next_media",(function(){return r.prefetchNextMedia()}),2e3),r._injectJsonLd()):r.notice("embed(): container removed, giving up")}r.notice("_initWithMediaData(): impl changed from",i,"to",r._implVersion,"not completing init")})))},t.prototype._getFadeInTime=function(){return null==this._opts.fadeInTime?200:this._opts.fadeInTime},t.prototype.judyCtx=function(){return this._judyCtx||(this._judyCtx=e.buildContext({pageUrl:this._attrs.pageUrl}))},t.prototype._wvideoInUrl=function(){return!this._opts._inIframe&&q(this._attrs.pageUrl).params.wvideo===this.hashedId()},t.prototype._scrollToContainer=function(){var t;return t=k(this.container),rt(t.top-100)},t.prototype._injectJsonLd=function(){if(this._jsonLdId&&ot(this._jsonLdId),"notplayable"!==this.playerType&&"passwordprotected"!==this.playerType&&!this._opts._inIframe&&!1!==this._opts.seo)return this._jsonLdId="w-json-ld"+this._impl.uuid,L(this._jsonLdId,this._mediaData,{videoWidth:this.videoWidth(),videoHeight:this.videoHeight()})},t.prototype._setDeprecatedProperties=function(){return this.options=c(this._opts),this.params=c(this._opts),U(this.params,this._attrs),this._attrs.email&&(this.params.trackEmail=this._attrs.email),this._hasImpl((t=this,function(){var e;return t.playerType=t.embedType=null==(e=t._impl)?void 0:e.playerType}));var t},t.prototype.elem=function(){var t;return null==(t=this._impl)?void 0:"function"==typeof t.elem?t.elem():void 0},t.prototype._execPlugins=function(){return this._pluginScripts=z(this._mediaData,this._opts,this._playerPlugins),s.plugin._setFnForDefinedPlugins(this,this._pluginScripts),this.info("_execPlugins",this._pluginScripts),s.plugin._execQueue(this,this._pluginScripts)},t.prototype._optionSources=function(t){var e,n,i,o,r,a,u,l;if(null==t&&(t={}),"v1"===(i=(t=U({givenOptions:c(this._givenOptions),mediaData:c(this._mediaData),hashedId:this._hashedId,container:this.container},t)).givenOptions).version?e={}:t.mediaData?delete(e=c(t.mediaData.embed_options)).stillUrl:e={},r=M(["autoPlay","deliveryCdn","hls","techInfo"],this._inferPageUrl()),n={},u={customize:e,global:s.options("__global__"),hashedId:s.options(t.hashedId),dom:s.options("__"+t.container.id+"_dom_options__"),container:s.options(t.container.id),inline:i,inferredOptions:n,queryParamOptions:r,override:t.override||{}},i.optionSourceOverrides)for(o in a=i.optionSourceOverrides)l=a[o],u.hasOwnProperty(o)&&(u[o]=l);for(o in u)l=u[o],W(l)&&delete u[o];return u},t.prototype._gatherOptions=function(t){var e,n,i,o,r,a,s;for(e in null==t&&(t={}),i={},a=this._optionSources(t))s=a[e],(0<=(null==(o=t.only)?void 0:o.indexOf(e))||0>(null==(r=t.except)?void 0:r.indexOf(e))||!t.only&&!t.except)&&U(i,s);return u(i),this._normalizeOptions(i),n=t.mediaData||this._mediaData,"html5"===i.playerPreference&&(i.playerPreference="vulcan-v2"),(null==n?void 0:n.useMediaDataHostLogic)&&(i.useMediaDataHostLogic=!0),i},t.prototype.hashedId=function(t){return null==t?this._hashedId:(this._hashedId=t,this)},t.prototype.isAudio=function(){return"Audio"===this._mediaData.mediaType},t.prototype.isLiveMedia=function(){return"LiveStream"===this._mediaData.mediaType},t.prototype._normalizeOptions=function(t){return t.twitter&&(this.info("twitter detected"),R(t,"plugin.socialbar-v1")&&(this.info("disabled socialbar"),lt(t,"plugin.socialbar-v1.on",!1))),null!=t.playButtonVisible&&(t.playButton=u(t.playButtonVisible),delete t.playButtonVisible),t},t.prototype._setupContainer=function(){var t,e,n,i;if(this._containerId=this._givenOptions.container?this._givenOptions.container:"wistia_"+this.hashedId(),this.container="string"==typeof this._containerId?document.getElementById(this._containerId):this._containerId,this.container){for(this.container.wistiaApi=this,this._startingHtml=this.container.innerHTML,e=0,n=(i=Array.prototype.slice.call(this.container.childNodes)).length;e<n;e++)t=i[e],b(t,"wistia_swatch")||O(t);p(this.container,"wistia_embed_initialized")}return this.info("container",this.container)},t.prototype._inferPropertiesBeforeMediaData=function(){var t;if(this.chrome=g({id:ut("wistia_chrome_"),class:"w-chrome",style:s.generate.relativeBlockCss(),tabindex:-1}),P(this.chrome,{outline:"none",overflow:"hidden",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),t=this._gatherOptions(),this._shouldBePopover()?(this._popoverContainer=g({role:"dialog",id:this.container.id+"_popover_container"}),!(s.detect.safari||s.detect.iphone||s.detect.ipad)&&this._popoverContainer.setAttribute("aria-modal",!0),this._embedContainer=g({id:this.container.id+"_popover",style:{height:this._popoverSize(t).height+"px",width:this._popoverSize(t).width+"px"}}),m(this._popoverContainer,this._embedContainer),m(document.body,this._popoverContainer)):this._embedContainer=this.container,m(this._embedContainer,this.chrome),this.uuid=t.uuid?t.uuid:ut(),this.info("uuid",this.uuid),null!=t.playlistLoop&&(this._attrs.playlistLoop=t.playlistLoop),this._embedContainer)return this._attrs.startingWidth=x(this._embedContainer),this._attrs.startingHeight=_(this._embedContainer)},t.prototype._shouldBePopover=function(){var t;return!(t=this._gatherOptions())._inIframe&&(!0===t.popover||"v2"===t.popover)},t.prototype._popoverSize=function(t){var e,n,i,o,r;return null==t&&(t=this._opts),null==t&&(t={}),t.popoverSize?(r=(o=(null==(i=t.popoverSize)?void 0:i.split("x"))||[640,360])[0],e=o[1],r=parseInt(r),e=parseInt(e)):this._mediaData&&(n=this.asset({container:"mp4",width:[0,960],sortBy:"width desc"}))?(r=n.width,e=n.height):(r=640,e=360),{width:r,height:e}},t.prototype._inferPropertiesAfterMediaData=function(){var t,e,n,i,o,r;return this._attrs.shouldTrack=!this._opts.doNotTrack&&!this.isLiveMedia(),this._attrs.seekThreshold=this._opts.seekThreshold||1.5,i=(o=F(this._opts,this._mediaData))[0],n=o[1],this._attrs.qualityMin=i,this._attrs.qualityMax=n,this._attrs.qualityMax<this._attrs.qualityMin&&(this.error("qualityMax "+this._attrs.qualityMax+" is less than qualityMin "+this._attrs.qualityMin+". Setting qualityMax to "+this._attrs.qualityMin+"."),this._attrs.qualityMax=this._attrs.qualityMin),this._attrs.pageUrl||(this._attrs.pageUrl=this._inferPageUrl()),this._attrs.referrerUrl||(this._attrs.referrerUrl=document.referrer),null!=this._opts.trackEmail&&(this._attrs.email=this._opts.trackEmail),!this._attrs.email&&this._attrs.shouldTrack&&((r=this._extractEmailFromParams())&&(this._attrs.email=r)),!this._attrs.email&&s.localStorage([this._attrs.pageUrl,"trackEmail"])&&(this._attrs.email=s.localStorage([this._attrs.pageUrl,"trackEmail"])),e=(t=this._attrs.playerColor)&&t!==this._opts.playerColor,this._attrs.playerColor=s.Player._sanePlayerColor(this._opts.playerColor||"636155"),e&&this.trigger("playercolorchange",this._attrs.playerColor,t),this._attrs.playerBackgroundColor=this._opts.playerBackgroundColor||"#000000",this._attrs.trackWithJs=!0,this._attrs.newStillLogic=!0,this._opts.noDeprecatedProperties||this._setDeprecatedProperties(),this},t.prototype._inferPageUrl=function(){var t,e,n;return(null==(t=this._opts)?void 0:t.pageUrl)?this._opts.pageUrl:(null==(e=window.FreshUrl)?void 0:e.originalUrl)?null==(n=window.FreshUrl)?void 0:n.originalUrl:top===self?location.href||"":document.referrer||""},t.prototype._extractEmailFromParams=function(){var t,e,n,i,o;return(i=(null==(e=this._attrs.pageUrl)?void 0:e.match(/wemail\=([^\&\#]+)/))||null)?i[1]:(o=(null==(n=this._attrs.pageUrl)?void 0:n.match(/wkey\=([^\&\#]+)/))||null)?(t=o[1],s.base64.decode(t)):null},t.prototype._runMethodsFromOptions=function(){var t,e,n,i,o;if(null!=this._opts.foreignData&&this.foreignData(this._opts.foreignData),null==this._opts.email?null!=this._opts.trackEmail&&this.email(this._opts.trackEmail):this.email(this._opts.email),null!=this._opts.playerLanguage&&this.playerLanguage(this._opts.playerLanguage),null!=this._opts.videoFoam&&this.videoFoam(this._opts.videoFoam),this._opts.controlScaling&&this.controlScaling(this._opts.controlScaling),this._hasImpl((o=this,function(){if(null!=o._opts.playerColor&&"flash"!==o.playerType)return o.playerColor(o._opts.playerColor)})),null!=this._opts.volume&&this.volume(this._opts.volume),(!0===this._opts.muted||0===this._opts.volume)&&this.mute(),!1===this._opts.muted&&this.unmute(),this._opts.suppressPlay&&this.suppressPlay(this._opts.suppressPlay),(!this.popover||("function"==typeof(t=this.popover).isVisible?t.isVisible():void 0))&&this._opts.autoPlay&&this._hasImpl(function(t){return function(){return t._playSuspendedOffScreenEnabled()?t.inViewport()?t.play():t.bind("enterviewport",(function(){return t.play(),t.unbind})):t.play()}}(this)),this._opts.pause&&this.pause(),null!=this._opts.time)return n=s.detect.iphone||s.detect.ipad||s.detect.android,e=this.popover&&!this.popover._visible,i="playing"!==this.state()&&(n||e),this.time(this._opts.time,{lazy:i})},t.prototype._playSuspendedOffScreenEnabled=function(){return null!=this._opts.playSuspendedOffScreen&&"auto"!==this._opts.playSuspendedOffScreen?this._opts.playSuspendedOffScreen:this.isMuted()},t.prototype._validate=function(){var t;if(0<(t=this._errors()).length)throw new Error(t.join(", "));return!0},t.prototype._errors=function(){var t;return t=[],this.container||t.push('Could not find element with ID "'+this._containerId+'" in DOM. Failed to initialize video "'+this._hashedId+'".'),t},t.prototype._dedupContainer=function(){var t,e,n,i,o,r,a;if(dt("video")){for(a in r=[],i=dt("video"))t=i[a],this.container.id&&(null==(o=t.container)?void 0:o.id)===this.container.id&&r.push(t);for(e=0,n=r.length;e<n;e++)t=r[e],this.notice("_dedupContainer",t.container.id),t.remove();if(0<r.length)return this.container.wistiaApi=this}},t.prototype._addToGlobalCache=function(){return this.info("_addToGlobalCache",this.uuid),dt(["video",this.uuid],this)},t.prototype._displayServerError=function(t){var e;return t.iframe?(e=this._gatherOptions().useMediaDataHostLogic?d()+"//"+h():G()+"//"+s.remote.embedHost(),this.container.innerHTML="<iframe src='"+e+"/embed/iframe/"+this.hashedId()+"' height='"+this.height()+"' width='"+this.width()+"' frameborder='0' scrolling='no'></iframe>"):this.container.innerHTML="<div style='background:#fff;border:2px dashed #ddd;color:#aaa;font-family:Century Gothic,Arial;font-size:14px;text-align:center;width:"+this.width()+";height:"+this.height()+";'><div style='padding:20px;'>"+(t.message||t.error)+"</div></div>"},t.prototype._implExec=function(){var t,e,n;return e=arguments[0],t=2<=arguments.length?o.call(arguments,1):[],this._hasImpl((n=this,function(){var i;return n._impl[e]?n._impl[e]._originalMethod===n[e]?void n.warn("calling "+e+" would result in an infinite loop"):(i=n._impl)[e].apply(i,t):n.warn(e+" is not defined",s.stacktrace())})),this},t.prototype._implGet=function(){var t,e,n,i;return n=arguments[0],e=arguments[1],t=3<=arguments.length?o.call(arguments,2):[],null==e&&(e=null),this._hasImpl()?this._impl[n]?this._impl[n]._originalMethod===this[n]?void this.warn("calling "+n+" would result in an infinite loop"):(i=this._impl)[n].apply(i,t):this.warn(n+" is not defined",s.stacktrace()):e},t.prototype._implSetOrGet=function(){var t,e,n;return n=arguments[0],e=arguments[1],0<(t=3<=arguments.length?o.call(arguments,2):[]).length?this._implExec.apply(this,[n].concat(o.call(t))):this._implGet(n,e)},t.prototype._implPromise=function(){var t,e,n;return e=arguments[0],t=2<=arguments.length?o.call(arguments,1):[],new r((n=this,function(i,o){return n._hasImpl((function(){var a,s;return n._impl[e]?n._impl[e]._originalMethod===n[e]?void n.warn("calling "+e+" would result in an infinite loop"):(s=(a=n._impl)[e].apply(a,t))instanceof r?s.then(i).catch(o):i(s):o(new Error(e+" is not defined on _impl"))}))}))},t.prototype.rebuild=function(){return this._hasImpl((t=this,function(){return t._impl.rebuild(),t._runMethodsFromOptions()}));var t},t.prototype.fullRebuild=function(t){return null==t&&(t={}),this.replaceWith(this._impl._mediaData,U({force:this._impl.playerType,inPlace:!1,transition:"none"},t))},t.prototype.rebuildAs=function(t,e){return null==e&&(e={}),this.fullRebuild(U(this._givenOptions,e,{force:t,transition:"none"}))},t.prototype.replace=function(t,e){return null==e&&(e={}),this.replaceWith(t,U({inlineOptionsOnly:!0},e))},t.prototype.replaceWith=function(t,e){var n,i;return null==e&&(e={}),this.info("replaceWith",t,e),i=this,n=function(){var n,o,r,a;return a=i._impl?i._replaceWithMediaData:i._initWithMediaData,i._impl.trigger("beforereplace",t),i._notReplacing(!1),i.hasData(!1),i._hasImpl(!1),i._initTime=(new Date).getTime(),i.hasData((function(){return i._hasDataTime=(new Date).getTime(),i.embedded((function(){return i._embeddedTime=(new Date).getTime()}))})),H(t)?a.call(i,t,e):(o=s.mediaFromCache(t))?a.call(i,o,e):(delete(n=c(i._gatherOptions())).idType,r=U({},n,e),s.remote.media(t,(function(t){return a.call(i,t,e)}),r))},this._hasImpl(function(t){return function(){return t._notReplacing(n)}}(this)),this},t.prototype._replaceWithMediaData=function(){var t,e;return t=1<=arguments.length?o.call(arguments,0):[],this._impl.commandQueueOpen.synchronize((e=this,function(n){return e._replaceWithMediaDataQueuable.apply(e,t),e._notReplacing(n)}))},t.prototype._replaceWithMediaDataQueuable=function(t,n){var i,o,r,l,h,d,p,y,m,v,g,b,_,w,S,k;return null==n&&(n={}),n=c(n),this.info("_replaceWithMediaData",t,n),t.error?(this._displayServerError(t),void this.trigger("servererror")):(null==n.playlistIndex?this._inPlaylist(t.hashedId)&&(this._playlistIndex=this._playlistIndexOf(t.hashedId)):(this._playlistIndex=n.playlistIndex,delete n.playlistIndex),null!=n.playlistShouldAutoAdvance&&(this._playlistShouldAutoAdvance=n.playlistShouldAutoAdvance),n.inlineOptionsOnly&&(h=n.inlineOptionsOnly,delete n.inlineOptionsOnly),null!=n.inPlace&&(l=n.inPlace,delete n.inPlace),null!=n.transition&&(w=n.transition,delete n.transition),null!=n.transitionTime&&(S=n.transitionTime,delete n.transitionTime),this.hasData(!1),this._hasImpl(!1),null!=(m=this._impl._tracker)&&m.stopMonitoring(),this._clobberVideoBindings(),this._savedState={},this._suspended=!1,"function"==typeof(p=this._impl).wipeOutstandingAsyncFunctions&&p.wipeOutstandingAsyncFunctions(),this._hashedId=t.hashedId,this._originalMediaData=t,this.data.media=t,this._givenOptions=n,this._mediaData=t,this._opts=h?this._gatherOptions({only:"inline"}):this._gatherOptions(),this._embedOptions=null,this._mediaData=V(t,this._opts),p.trigger("beforereplaceengine"),p.freezeLastFrame(),y=new a,_=function(){return y.go()},I()&&!0===this._opts.autoPlay&&!p.isMuted()?(i=p.engine)?(i.stopStreaming(),i.play().then(_).catch(_),setTimeout(_,2e3)):_():_(),!1===u(null==(v=this._mediaData.embed_options.plugin)||null==(g=v.passwordProtectedVideo)?void 0:g.on)&&null!=(null==(b=this._opts.plugin)?void 0:b.passwordProtectedVideo)&&(this._opts.plugin.passwordProtectedVideo.on=!1),this.info("_opts",c(this._opts)),U(this._mediaData,this._opts.mediaData),this._inferPropertiesAfterMediaData(),r="notplayable"!==p.playerType&&"passwordprotected"!==p.playerType&&(!("html5"!==p.playerType||!(s.detect.iphone||s.detect.android||s.detect.ipad||s.detect.safari))||null!=l&&l),this.info("inPlace",r),d=e.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=e.playerPlugins(this.judyCtx(),d,this._mediaData,this._opts),e.logWarnings(this.judyCtx(),d,this._mediaData,this._opts),r&&(this.removePlugins(),p.stopStreaming()),this.plugin=null,this._pluginStopGos={},this._definePluginMethod(),this.hasPlugins(!1),p.commandQueueOpen.setQueue([]),this.removeSwatch(),this._implVersion+=1,o=this._implVersion,y((k=this,function(){var t;return null!=(t=p.engine)&&t.destroy(),k._execPlugins().then((function(){var t,n;return k._implVersion===o?(k.hasPlugins(!0),k.supportedPlayers=e.supportedPlayers(k.judyCtx(),k._mediaData.assets),n=s.PublicApi.classFor(d),k._impl=new n(k).init(),k._setupBindings(),k.grid=r?k._impl.grid=p.grid:k._impl.setupGrid({initDimensions:!1}),"function"==typeof(t=k._impl).transferStateFrom&&t.transferStateFrom(p),k._hasImpl(!0),k.hasData(!0),r||k._runMethodsFromOptions(),r?k._replaceMode((function(){return k._impl.initFrom(p)})):k._replaceMode((function(){return k._embedWithTransitionFrom(p,w,{time:S})})),k.embedded((function(){return k._notReplacing(!0)})),r&&k._runMethodsFromOptions(),k._allowContainerMatch()&&k.width(k.containerWidth(),{constrain:!0}),f(k._impl.uuid+".inject_json_ld",(function(){return k._injectJsonLd()})),k.trigger("afterreplace"),f(k.uuid+".prefetch_next_media",(function(){return k.prefetchNextMedia()}),2e3)):void k.notice("replaceWith(): impl changed from",o,"to",k._implVersion,"not completing replacement")}))})))},t.prototype._embedWithTransitionFrom=function(t,e,n){var i,o;return null==e&&(e="none"),this.info("_embedWithTransitionFrom",t,e),i=new r((o=this,function(t){var e,n;return(null==(e=o._impl.lastPlayInfo())?void 0:e.isPending)?(n=o._impl.on("play",(function(){return n(),t()})),f(o._impl.uuid+".slow_play_fallback",(function(){return o._impl.embedded((function(){return n(),t()}))}),2e3)):o._impl.embedded(t)})),"slide"===e||"slideleft"===e?(this.info("slideleft"),this._impl.embed(t),i.then(function(e){return function(){return t.slideOutLeft(n,(function(){return t.remove()})),e._impl.slideInLeft(n,(function(){return e._impl.trigger("transitiondone")}))}}(this))):"slideright"===e?(this.info("slideright"),this._impl.embed(t),i.then(function(e){return function(){return t.slideOutRight(n,(function(){return t.remove()})),e._impl.slideInRight(n,(function(){return e._impl.trigger("transitiondone")}))}}(this))):"fade"===e?(this.info("fade"),"transparent"!==t._opts.wmode&&(t.grid.center.style.backgroundColor="#000"),null!=n.time&&(n.time=Math.round(n.time/2)),t.fadeOut(n,function(e){return function(){var o;return t.remove(),"transparent"!==e._impl._opts.wmode&&null!=(o=e._impl.grid)&&(o.center.style.backgroundColor="#000"),e._impl.embed(t),i.then((function(){return e._impl.fadeIn(n,(function(){var t;return null!=(t=e._impl)&&(t.grid.center.style.backgroundColor=""),e._impl.trigger("transitiondone")}))}))}}(this))):"crossfade"===e?(this.info("crossfade"),t.grid&&P(t.grid.root,{position:"absolute",zIndex:0}),P(this._impl.grid.root,{zIndex:1}),this._impl.embed(t),i.then(function(e){return function(){return e._impl.fadeIn(n,(function(){return t.remove(),P(e._impl.grid.root,{zIndex:""}),e._impl.trigger("transitiondone")}))}}(this))):(this.info("no transition"),this._impl.embed(t),t.remove(),i.then(function(t){return function(){return setTimeout((function(){return t._impl.trigger("transitiondone")}),0)}}(this)))},t.prototype._clobberVideoBindings=function(){var t,e,n;for(t in n=[],e=this._bindings)e[t],"afterreplace"===t||"beforereplace"===t||"all"===t?n.push(void 0):n.push(this.unbind(t));return n},t.prototype._replaceMode=function(t){return this.info("_replaceMode",!0),this._impl._replacing=!0,t(),this._impl.embedded((e=this,function(){return e._impl._replacing=!1,e.info("_replaceMode",!1)}));var e},t.prototype.remove=function(t){var e,n,i,o,r,a,u,c;return null==t&&(t={}),this.info("remove"),this.trigger("down"),this.trigger("beforeremove"),this._freeEmbedSlot(),null!=(e=this.elem())&&null!=(n=e.mux)&&"function"==typeof n.destroy&&n.destroy(),this.removeSwatch(),this._implExec("remove",{trigger:!1}),this._hasImpl(!1),ot(this._jsonLdId),null!=(i=this.popover)&&"function"==typeof i.remove&&i.remove(),null!=(o=this._impl)&&o.stopStreaming(),null!=(r=this._intersectionObserver)&&r.disconnect(),C(this._foamDummyElem),O(this._foamDummyElem),null!=(a=s.eventLoop)&&a.remove(this.uuid),l(this.uuid),this._unbindListeners(),O(this.chrome),pt(["video",this.uuid]),this.trigger("afterremove"),this._bindings={},this.container.wistiaApi=t.unsetWistiaApiOnContainer?void 0:"removed",this._impl=null,null!=(u=window.__wistiaStores)&&(u[this.uuid]=null),null==(c=window.__wistiaStores)?void 0:delete c[this.uuid]},t.prototype.removeSwatch=function(){var t;if(t=this.container.querySelector(".wistia_swatch"))return O(t)},t.prototype.fullRemove=function(){var t,e,n;return e=this._embedContainer,n=this._popoverContainer,t=this.container,this.remove(),O(e),O(n),O(t),this.container=this._embedContainer=null,this},t.prototype.isRemoved=function(){return!dt(["video",this.uuid])},t.prototype._unbindListeners=function(){if(A(this.chrome),this._throttleTriggerViewport&&E(window,"scroll",this._throttleTriggerViewport),this._doResize)return E(window,"resize",this._doResize)},t.prototype._saveState=function(){var t;return this._savedState={state:this.state(),time:this.time(),volume:this.volume(),inFullscreen:this.inFullscreen(),uuid:null==(t=this._impl)?void 0:t.uuid}},t.prototype.suspend=function(){var t,e;if(!this._suspended)return this._saveState(),this.info("suspend",c(this._savedState)),this.pause(),this.suppressPlay(!0),((null==(t=this._impl)?void 0:"function"==typeof t._inNativeMode?t._inNativeMode():void 0)||!s.detect.fullscreenEnabled)&&this.cancelFullscreen(),this._suspended=!0,this._suspendPlayBinding=(e=this,function(){return e.pause()}),this._suspendSeekBinding=function(t){return function(){return t.pause(),t.time(t._savedState.time)}}(this),this.bind("play",this._suspendPlayBinding),this.bind("seek",this._suspendSeekBinding),this.trigger("suspendstatechange",!0),this},t.prototype.unsuspend=function(t){var e,n,i;if(null==t&&(t={}),this._suspended)return n=U({},this._savedState,t),this.info("unsuspend",c(n)),this._suspended=!1,this.unbind("play",this._suspendPlayBinding),this.unbind("seek",this._suspendSeekBinding),n.uuid!==(null==(e=this._impl)?void 0:e.uuid)||(this.suppressPlay(!1),this.volume(n.volume),i={pause:"playing"!==n.state},null!=n.time&&.5<Math.abs(n.time-this.time())&&("ended"===n.state?"flash"===this.playerType&&1800<this.duration()?this.time(n.time-10,i):this.time(n.time-1,i):this.time(n.time,i)),"playing"===n.state&&this.play(),this.trigger("suspendstatechange",!1)),this},t.prototype._setupBindings=function(){return this.bind("afterend",(t=this,function(){return t.playlistShouldAutoAdvance()?t._suspended?t.bind("suspendstatechange",(function(e){if(!1===e)return"ended"===t.state()&&t._nextEmbedOrPlaylistLoop(),t.unbind})):t._nextEmbedOrPlaylistLoop():void 0})),this.bind("widthchange",function(t){return function(){var e,n;return null!=(e=t._impl)&&(e._width=t._width=t.width()),null==(n=t._impl)?void 0:n._videoWidth=t._videoWidth=t.videoWidth()}}(this)),this.bind("heightchange",function(t){return function(){return t._impl._height=t._height=t.height(),t._impl._videoHeight=t._videoHeight=t.videoHeight()}}(this)),window.IntersectionObserver?(this.looksUp()&&(this.inViewport(this._isInViewportNow()),this.inViewport()?this.trigger("enterviewport"):this.trigger("leaveviewport")),this._intersectionObserver=new IntersectionObserver(function(t){return function(e){return e[0].isIntersecting?(t.trigger("enterviewport"),t.inViewport(!0)):(t.trigger("leaveviewport"),t.inViewport(!1))}}(this)),this._intersectionObserver.observe(this.container)):top===self?(null==this._throttleTriggerViewport&&(this._throttleTriggerViewport=ct(300,function(t){return function(){var e;return(e=t._isInViewportNow())&&!t._inViewport?(t._inViewport=!0,t.inViewport(!0),t.trigger("enterviewport")):!e&&t._inViewport?(t._inViewport=!1,t.inViewport(!1),t.trigger("leaveviewport")):void 0}}(this))),T(window,"scroll",this._throttleTriggerViewport),this.bind("initembed",this._throttleTriggerViewport),this.bind("up",this._throttleTriggerViewport),this.looksUp()&&this._throttleTriggerViewport()):(this._inViewport=!0,this.inViewport(!0)),T(window,"resize",this._doResize);var t},t.prototype._nextEmbedOrPlaylistLoop=function(){return this.nextVideo()?this.embedNext():this._attrs.playlistLoop?(this.info("playlistLoop"),this.embedIndex(0,{autoPlay:!0})):void 0},t.prototype._isInViewportNow=function(){var t,e,n,i;return!(this.down()||this.looksDown())&&(!(window.IntersectionObserver||top===self)||(t=(e=k(this.container).top)+_(this.container),i=rt(),n=rt()+_(window),e>=i&&e<n||t>=i&&t<n||e<=i&&t>=n))},t.prototype._pauseEventLoop=function(){var t;if(s.eventLoop.pause(this.uuid),null==(t=this._impl)?void 0:t.uuid)return s.eventLoop.pause(this._impl.uuid)},t.prototype._unpauseEventLoop=function(){var t;if(s.eventLoop.unpause(this.uuid),null==(t=this._impl)?void 0:t.uuid)return s.eventLoop.unpause(this._impl.uuid)},t.prototype.playlistIndex=function(){return this._playlistIndexOf(this.hashedId())},t.prototype.nextVideo=function(){return 0<=this.playlistIndex()&&this._playlist[this.playlistIndex()+1]||null},t.prototype.previousVideo=function(){return 0<this.playlistIndex()&&this._playlist[this.playlistIndex()-1]||null},t.prototype._playlistIndexOf=function(t){var e,n,i,o;for(e=n=0,i=this._playlist.length;0<=i?n<=i:n>=i;e=0<=i?++n:--n)if((null==(o=this._playlist[e])?void 0:o.hashedId)===t)return e;return-1},t.prototype._inPlaylist=function(t){return 0<=this._playlistIndexOf(t)},t.prototype._setTransitionOptions=function(t){if(t.transition||(t.transition=this._opts.playlistTransition||"fade"),t.transitionTime||(t.transitionTime=this._opts.playlistTransitionTime),t.playlistIndex&&"slide"===t.transition)return t.playlistIndex>=this._playlistIndex?t.transition="slideleft":t.transition="slideright"},t.prototype.embedNext=function(t){var e,n;return n=this.nextVideo(),this.info("embedNext",n),(e=U({autoPlay:!0,resumable:!1},n.options,t)).playlistIndex=this._playlistIndex+1,e.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this._setTransitionOptions(e),this.replaceWith(n.hashedId,e)},t.prototype.embedPrevious=function(t){var e,n;return n=this.previousVideo(),this.info("embedPrevious",n),(e=U({autoPlay:!0,resumable:!1},n.options,t)).playlistIndex=this._playlistIndex-1,e.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(n.hashedId,e)},t.prototype.embedIndex=function(t,e){var n,i;return i=this._playlist[t],this.info("embedIndex",t,i),(n=U({autoPlay:!0},i.options,e)).playlistIndex=t,n.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(i.hashedId,n)},t.prototype.addToPlaylist=function(t,e,n){var i,o,r,a,s,u,l;for(null==e&&(e={}),null==n&&(n={}),null==this._playlist&&(this._playlist=[]),r=0,a=(s=ft(t)).length;r<a;r++)i={hashedId:o=s[r],options:e},(n=c(n)).after?n.detect=function(t){return t.hashedId===n.after}:n.before&&(n.detect=function(t){return t.hashedId===n.before}),this.info("addToPlaylist",i,n),j(this._playlist,i,n),(o===(null==(u=this.nextVideo())?void 0:u.hashedId)||o===(null==(l=this.previousVideo())?void 0:l.hashedId))&&this.prefetchMedia(o,e);return this.info("updated _playlist",c(this._playlist)),this.trigger("playlistchange",this._playlist),this._playlist},t.prototype.setPlaylist=function(t,e){return null==e&&(e={}),this._playlist=[],this.addToPlaylist(t,e),this._playlistIndex=this._playlistIndexOf(this.hashedId()),this.trigger("playlistchange",this._playlist)},t.prototype.playlistShouldAutoAdvance=function(){return null==this._playlistShouldAutoAdvance||this._playlistShouldAutoAdvance},t.prototype.setPlaylistShouldAutoAdvance=function(t){return this._playlistShouldAutoAdvance=t},t.prototype.prefetchNextMedia=function(){var t;if(!this._opts._inLegacyPlaylist&&(t=this.nextVideo()))return this.prefetchMedia(t.hashedId,t.options)},t.prototype.prefetchMedia=function(t,e){return this.info("@prefetchMedia",t),s.remote.media(t,(n=this,function(i){var o;return n.info("prefetched",t),o=n._gatherOptions({givenOptions:e,mediaData:i,hashedId:i.hashedId,container:n.container}),K(i,o)}),e);var n},t.prototype.addPlugin=function(t,e){return null==e&&(e={}),this.info("addPlugin",t,e),new r((n=this,function(i){return n._hasImpl((function(){return n.hasPlugin(t)||s.plugin._inject(n,t,e),n.plugin(t).then((function(t){return i(t)}))}))}));var n},t.prototype.hasPlugin=function(t){return!!this.plugin[t]},t.prototype.turnOffPluginApis=function(){var t,e,n,i;for(e in this.info("turnOffPluginApis"),i=[],n=this.plugin)n[e],i.push("function"==typeof(t=this._pluginStopGos)[e]?t[e](!1):void 0);return i},t.prototype.removePlugin=function(t){var e,n,i;if(n=this.plugin[t]){try{"function"==typeof n.remove&&n.remove()}catch(t){e=t,setTimeout((function(){throw e}),0)}return delete this.plugin[t],(null==(i=this._impl.plugin)?void 0:i[t])&&delete this._impl.plugin[t],n.uuid&&this.plugins&&(delete this.plugins[this.uuid],pt(["plugins",t,this.uuid,n.uuid])),this.fit(),this.trigger("pluginremoved",t)}},t.prototype.removePlugins=function(){var t,e,n;for(t in this.info("removePlugins"),n=[],e=this.plugin)e[t],n.push(this.removePlugin(t));return n},t.prototype.containerWidth=function(){return x(this._embedContainer)},t.prototype.containerHeight=function(){return _(this._embedContainer)},t.prototype._goToDownState=function(){var t;return this.info("_goToDownState"),this._stateBeforeDown=this._lastState,this.up(!1),this.down(!0),null!=(t=this._impl.engine)&&t.pause(),this.ready(!1),this.trigger("down")},t.prototype._goToUpState=function(){var t;return this.info("_goToUpState"),this.down(!1),this._ignoreUp=!0,this._doSizing(),this._ignoreUp=!1,this.up(!0),this.ready(!1),"flash"===this.embedType?this.rebuild():(this.fit(),null!=(t=this._impl)&&t.checkForReady(),"playing"===this._stateBeforeDown&&this.play()),this.trigger("up")},t.prototype._checkDownState=function(){var t;return t=this.looksDown(),this.up()&&t?(this.info("moving to down state"),this._goToDownState()):this.down()&&!t?(this.info("moving to up state"),this._goToUpState()):void 0},t.prototype._removeHandleIfGoneFromDOM=function(){return!!this.embedded()&&(this.elem()?this._embedContainer&&!this._embedContainer.parentNode&&(this.warn("container removed from DOM",this._embedContainer.id),this.remove({unsetWistiaApiOnContainer:!0}),!0):(this.warn("video element removed from DOM",this._embedContainer.id),this.remove(),!0))},t.prototype._doFoam=function(){var t,e,n,i,o,r,a,s,u,l,c;if(null==this._parentBoxSizing&&(this._parentBoxSizing=P(this._embedContainer.parentNode,"box-sizing")),this.popover?(u=(c=x(window))/(l=_(window)),e=500<(s=Math.min(c,l))?160:.2>Math.abs(u-this.aspect())?.2*s:.1*s,a=u>this.aspect()?Math.round((l-e)*this.aspect()):c-e):"border-box"===this._parentBoxSizing?(!this._foamDummyElem&&(this._foamDummyElem=g({class:"wistia_video_foam_dummy","data-source-container-id":this._embedContainer.id,style:{border:0,display:"block",height:0,margin:0,padding:0,position:"static",visibility:"hidden",width:"auto"}}),v(this._embedContainer,this._foamDummyElem)),a=x(this._foamDummyElem)):a=x(this._embedContainer.parentNode),!(isNaN(a)||this._lastParentWidth===a&&this._didFoam))return this._didFoam=!0,o=(r=a)-this.extraWidth(),n=(i=this.heightForWidth(o))+this.extraHeight(),(t=this.videoFoam()).maxHeight&&n>t.maxHeight&&(i=(n=t.maxHeight)-this.extraHeight(),r=(o=this.widthForHeight(i))+this.extraWidth()),t.maxWidth&&r>t.maxWidth&&(o=(r=t.maxWidth)-this.extraWidth(),n=(i=this.heightForWidth(o))+this.extraHeight()),t.minHeight&&n<t.minHeight&&(i=(n=t.minHeight)-this.extraHeight(),r=(o=this.widthForHeight(i))+this.extraWidth()),t.minWidth&&r<t.minWidth&&(o=(r=t.minWidth)-this.extraWidth(),n=(i=this.heightForWidth(o))+this.extraHeight()),this.info("videoFoam set width",r),this.width(r,{constrain:!0}),this._lastParentWidth=a},t.prototype._allowFoam=function(){var t;return this._hasImpl()&&this.grid&&(this.up()||this._ignoreUp)&&this.looksUp()&&(this._attrs.videoFoam||(null==(t=this.popover)?void 0:t.isResponsive()))&&!this.isAudio()},t.prototype._allowContainerMatch=function(){return(this.up()||this._ignoreUp)&&!this._opts.dontMonitorSize&&!this.inFullscreen()},t.prototype._doContainerMatch=function(){var t,e;if(e=this.containerWidth(),t=this.containerHeight(),this._lastWidth!==e&&(this.notice("container width changed to "+e+", matching"),this.width(e,{dontChangeContainer:!0}),this.info("_doContainerMatch set width",e),this.trigger("widthchange",e,this._lastWidth),this._lastWidth=e),this._lastHeight!==t)return this.notice("container height changed to "+t+", matching"),this.height(t,{dontChangeContainer:!0}),this.trigger("heightchange",t,this._lastHeight),this._lastHeight=t},t.prototype.monitor=function(){return this.info("monitor"),this._lastWidth=this._attrs.startingWidth,this._lastHeight=this._attrs.startingHeight,this._lastParentWidth=this.width(),this._didFoam=!1,this._hasImpl((t=this,function(){return s.eventLoop.add(t.uuid+".monitor",500,t._doMonitor)}));var t},t.prototype._doMonitor=function(){if(!this._removeHandleIfGoneFromDOM())return this._checkDownState(),this.chrome&&!w(this.chrome)&&(this.notice("Chrome was removed from DOM. Injecting it back in."),m(this._embedContainer,this.chrome)),this._doSizing()},t.prototype._doSizing=function(){return this.popover?this.popover.fixedSizeTooBigForWindow()?this._doFoam():this._opts.popoverSize?(this._lastWidth=this.width(),this._lastHeight=this.height(),this.width(this._popoverSize().width),this.height(this._popoverSize().height)):this._doFoam():this._allowFoam()?this._doFoam():this._allowContainerMatch()?this._doContainerMatch():void 0},t.prototype.looksDown=function(){return!this._embedContainer||!w(this._embedContainer)||S(this._embedContainer)},t.prototype.looksUp=function(){return!this.looksDown()},t.prototype._doResize=function(){return"function"==typeof this._throttleTriggerViewport&&this._throttleTriggerViewport(),this._debounceDoMonitor||this.embedded((t=this,function(){return requestAnimationFrame((function(){return t._doMonitor(),t._debounceDoMonitor=!1}))})),this._debounceDoMonitor=!0;var t},t.prototype._definePluginMethod=function(){return this.plugin?void 0:this.plugin=(t=this,function(e,n){var i;return(i=t._pluginStopGos[e])||(i=t._pluginStopGos[e]=new a)(!!t.plugin[e],t.plugin[e]),n?i((function(){return n(t.plugin[e])})):i});var t},t.prototype.videoFoam=function(t){return null==t?this._attrs.videoFoam||!1:(this.info("videoFoam",t),this._attrs.videoFoam=t,this.monitor(),t)},t.prototype._transformAndUpdateMediaData=function(){var t,e,n;return this._mediaData=V(this._originalMediaData,this._opts),null!=(t=this._impl)&&null!=(e=t.engine)&&e.onMediaDataChanged(this._mediaData,this._opts),null==(n=this._impl)?void 0:n._mediaData=this._mediaData},t.prototype.specialBind=function(){var t,e,n,i,r,a,s;return e=arguments[0],t=2<=arguments.length?o.call(arguments,1):[],"crosstime"===e?(i=t[0],n=t[1],this.onCrossTime(i,n),s=this,function(){return s.unbindOnCrossTime(i,n)}):"betweentimes"===e&&(r=t[0],a=t[1],n=t[2],this.betweenTimes(r,a,n),function(t){return function(){return t.unbindBetweenTimes(r,a,n)}}(this))},t.prototype.specialUnbind=function(){var t,e,n,i,r,a;return e=arguments[0],t=2<=arguments.length?o.call(arguments,1):[],"crosstime"===e?(i=t[0],n=t[1],this.unbindOnCrossTime(i,n),!0):"betweentimes"===e&&(r=t[0],a=t[1],n=t[2],this.unbindBetweenTimes(r,a,n),!0)},t.prototype.onCrossTime=function(t,e){var n,i,o,r,a,s,u,c;if(!/^(\d+\.)?\d+$/.test(t))throw"onCrossTime: Expected first argument to be a number";if("function"!=typeof e)throw"onCrossTime: Expected second argument to be a function";return null==this._onCrossTimeBindings&&(this._onCrossTimeBindings={}),null==(i=this._onCrossTimeBindings)[t]&&(i[t]=[]),u=this.uuid+"."+ht("after_time_"),n=this.time()>t,c=this,o=function(){return c.time()<t?r():n||(n=!0,e.call(c)!==c.unbind)?void 0:c.unbindOnCrossTime(t,e)},r=function(e){return function(){return e.time()>=t?(l(u),o()):n?void 0:f(u,o,1e3*(t-e.time()))}}(this),a=function(e){return function(){if(e.time()<t){if(n=!1,2>t-e.time())return r()}else if(!n)return o()}}(this),s=function(){return l(u)},this.bind("play",a),this.bind("timechange",a),this.bind("pause",s),this.bind("end",s),this.bind("waiting",s),"playing"!==this.state()||n||a(),this._onCrossTimeBindings[t].push({fn:e,setupTimeoutFromNowIfClose:a,suspendTimeoutIndefinitely:s}),this},t.prototype.unbindOnCrossTime=function(t,e){var n,i,o,r,a,s;if(!this._onCrossTimeBindings||!this._onCrossTimeBindings[t])return this;for(n=null,o=0,r=0,a=(s=this._onCrossTimeBindings[t]).length;r<a;r++){if((i=s[r]).fn===e){n=i;break}o+=1}return n?(this.unbind("play",n.setupTimeoutFromNowIfClose),this.unbind("timechange",n.setupTimeoutFromNowIfClose),this.unbind("pause",n.suspendTimeoutIndefinitely),this.unbind("end",n.suspendTimeoutIndefinitely),this.unbind("waiting",n.suspendTimeoutIndefinitely),this._onCrossTimeBindings[t].splice(o,1),0===this._onCrossTimeBindings[t].length&&delete this._onCrossTimeBindings[t],this):this},t.prototype.betweenTimes=function(t,e,n){var i,o,r,a,s;if(!/^(\d+\.)?\d+$/.test(t)||!/^(\d+\.)?\d+$/.test(e))throw"betweenTimes: Expected first two arguments to be numbers";if("function"!=typeof n)throw"betweenTimes: Expected second argument to be a function";return r=t+"-"+e,null==this._betweenTimeBindings&&(this._betweenTimeBindings={}),null==(i=this._betweenTimeBindings)[r]&&(i[r]=[]),a=!1,s=this,o=function(){var i,o;if(o=s.time(),t<=o&&o<e&&!a?(a=!0,i=n.call(s,a)):!(t<=o&&o<e)&&a&&(a=!1,i=n.call(s,a)),i===s.unbind)return s.unbindBetweenTimes(t,e,n)},this.onCrossTime(t,o),this.onCrossTime(e,o),this.bind("timechange",o),o(),this._betweenTimeBindings[r].push({fn:n,onTimechange:o}),this},t.prototype.unbindBetweenTimes=function(t,e,n){var i,o,r,a,s,u,l;if(l=t+"-"+e,!this._betweenTimeBindings[l])return this;for(i=null,r=0,a=0,s=(u=this._betweenTimeBindings[l]).length;a<s;a++){if((o=u[a]).fn===n){i=o;break}r+=1}return i?(this.unbindOnCrossTime(t,i.onTimechange),this.unbindOnCrossTime(e,i.onTimechange),this.unbind("timechange",i.onTimechange),this._betweenTimeBindings[l].splice(r,1),0===this._betweenTimeBindings[l].length&&delete this._betweenTimeBindings[l],this):this},t.prototype.aspect=function(){return this._implGet("aspect",0)},t.prototype.asset=function(){return this._implGet.apply(this,["asset",null].concat(o.call(arguments)))},t.prototype.assets=function(){return this._implGet.apply(this,["assets",null].concat(o.call(arguments)))},t.prototype.audioDescriptionControlEnabled=function(){return this._implSetOrGet.apply(this,["audioDescriptionControlEnabled",!1].concat(o.call(arguments)))},t.prototype.bigPlayButtonEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonEnabled",!1].concat(o.call(arguments)))},t.prototype.bigPlayButtonTimeEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonTimeEnabled",!1].concat(o.call(arguments)))},t.prototype.cancelOverlay=function(){return this._implPromise.apply(this,["cancelOverlay"].concat(o.call(arguments)))},t.prototype.cancelFullscreen=function(){return this._implExec("cancelFullscreen")},t.prototype.captureCurrentFrame=function(){return this._implGet.apply(this,["captureCurrentFrame",null].concat(o.call(arguments)))},t.prototype.closeTabMenu=function(){return this._implExec("closeTabMenu")},t.prototype.controlScaling=function(){return this._implSetOrGet.apply(this,["controlScaling","auto"].concat(o.call(arguments)))},t.prototype.createControl=function(){return this._implGet.apply(this,["createControl",null].concat(o.call(arguments)))},t.prototype.defineOverlay=function(){return this._implExec.apply(this,["defineOverlay"].concat(o.call(arguments)))},t.prototype.destroyControl=function(){return this._implExec.apply(this,["destroyControl"].concat(o.call(arguments)))},t.prototype.duration=function(){return this._implGet("duration",null)},t.prototype.embedded=function(){return this._implSetOrGet.apply(this,["embedded",!1].concat(o.call(arguments)))},t.prototype.embedOptions=function(){return this._hasImpl()?this._implGet.apply(this,["embedOptions",{}].concat(o.call(arguments))):this._embedOptions?this._embedOptions:this._embedOptions=this._gatherOptions()},t.prototype.enterInputContext=function(){return this._implExec.apply(this,["enterInputContext"].concat(o.call(arguments)))},t.prototype.eventKey=function(){return this._implGet("eventKey",null)},t.prototype.exitInputContext=function(){return this._implExec.apply(this,["exitInputContext"].concat(o.call(arguments)))},t.prototype.extraHeight=function(){return this._implGet("extraHeight",0)},t.prototype.extraWidth=function(){return this._implGet("extraWidth",0)},t.prototype.fit=function(){return this._implExec("fit")},t.prototype.fullscreenButtonEnabled=function(){return this._implSetOrGet.apply(this,["fullscreenButtonEnabled",!1].concat(o.call(arguments)))},t.prototype.focus=function(){return this._implPromise.apply(this,["focus"].concat(o.call(arguments)))},t.prototype.getBuffered=function(){return this._implGet("getBuffered",[])},t.prototype.getFocusedChapter=function(){return this._implGet("getFocusedChapter",null)},t.prototype.getInputContext=function(){return this._implGet("getInputContext",[])},t.prototype.getMediaElement=function(){return this._implGet("getMediaElement",null)},t.prototype.getMediaType=function(){return this._implGet("getMediaType",null)},t.prototype.getOverlays=function(){return this._implGet("getOverlays",{})},t.prototype.getRegion=function(){return this._implGet.apply(this,["getRegion",null].concat(o.call(arguments)))},t.prototype.hasData=function(){return this._implSetOrGet.apply(this,["hasData",!1].concat(o.call(arguments)))},t.prototype.height=function(){return this._implSetOrGet.apply(this,["height",null].concat(o.call(arguments)))},t.prototype.heightForWidth=function(){return this._implGet.apply(this,["heightForWidth",null].concat(o.call(arguments)))},t.prototype.hideControls=function(){return this._implExec.apply(this,["hideControls",null].concat(o.call(arguments)))},t.prototype.humanDuration=function(){return at(this.duration())},t.prototype.ieSizeHack=function(){return this._implExec("ieSizeHack")},t.prototype.inFullscreen=function(){return this._implGet("inFullscreen",!1)},t.prototype.inSilentPlaybackMode=function(){return this._implGet("inSilentPlaybackMode",!1)},t.prototype.isMuted=function(){return this._implGet("isMuted")},t.prototype.isResumableEnabled=function(){return this._implGet("isResumableEnabled")},t.prototype.lastPauseInfo=function(){return this._implGet("lastPauseInfo",{})},t.prototype.lastPlayInfo=function(){return this._implGet("lastPlayInfo",{})},t.prototype.layout=function(){return this._implSetOrGet.apply(this,["layout","primary"].concat(o.call(arguments)))},t.prototype.look=function(){return this._implSetOrGet.apply(this,["look",{}].concat(o.call(arguments)))},t.prototype.mp4Asset=function(){return this._implGet.apply(this,["mp4Asset",null].concat(o.call(arguments)))},t.prototype.mute=function(){return this._implExec("mute")},t.prototype.playerLanguage=function(t){return t&&(this._wasPlayerLanguageSetViaApi=!0),this._implSetOrGet.apply(this,["playerLanguage","en-US"].concat(o.call(arguments)))},t.prototype.name=function(){return this._implSetOrGet.apply(this,["name",""].concat(o.call(arguments)))},t.prototype.openChaptersTab=function(){return this._implExec("openChaptersTab")},t.prototype.openShareTab=function(){return this._implExec("openShareTab")},t.prototype.openTabMenu=function(){return this._implExec("openTabMenu")},t.prototype.openTranscriptTab=function(){return this._implExec("openTranscriptTab")},t.prototype.originalAsset=function(){return this._implGet.apply(this,["originalAsset",null].concat(o.call(arguments)))},t.prototype.pause=function(){return this._implExec("pause")},t.prototype.percentWatched=function(){return this._implGet("percentWatched",0)},t.prototype.playbarControlEnabled=function(){return this._implSetOrGet.apply(this,["playbarControlEnabled",!1].concat(o.call(arguments)))},t.prototype.play=function(){return this._implExec("play")},t.prototype.playbackRate=function(){return this._implSetOrGet.apply(this,["playbackRate",1].concat(o.call(arguments)))},t.prototype.playbackRateControlEnabled=function(){return this._implSetOrGet.apply(this,["playbackRateControlEnabled",!1].concat(o.call(arguments)))},t.prototype.playerColor=function(){return this._implSetOrGet.apply(this,["playerColor","636155"].concat(o.call(arguments)))},t.prototype.playerBackgroundColor=function(){return this._implSetOrGet.apply(this,["playerBackgroundColor","000000"].concat(o.call(arguments)))},t.prototype.qualityControlEnabled=function(){return this._implSetOrGet.apply(this,["qualityControlEnabled",!1].concat(o.call(arguments)))},t.prototype.requestFullscreen=function(){return this._implExec("requestFullscreen")},t.prototype.requestOverlay=function(){return this._implPromise.apply(this,["requestOverlay"].concat(o.call(arguments)))},t.prototype.ready=function(){return this._implSetOrGet.apply(this,["ready",!1].concat(o.call(arguments)))},t.prototype.releaseChromeless=function(){return this._implExec.apply(this,["releaseChromeless"].concat(o.call(arguments)))},t.prototype.releaseControls=function(){return this._implExec.apply(this,["releaseControls"].concat(o.call(arguments)))},t.prototype.requestChromeless=function(){return this._implExec.apply(this,["requestChromeless"].concat(o.call(arguments)))},t.prototype.requestControls=function(){return this._implExec.apply(this,["requestControls"].concat(o.call(arguments)))},t.prototype.secondsWatched=function(){return this._implGet("secondsWatched",0)},t.prototype.secondsWatchedVector=function(){return this._implGet("secondsWatchedVector",[])},t.prototype.selectableQualities=function(){return this._implGet("selectableQualities",[])},t.prototype.selectedQuality=function(){return this._implGet("selectedQuality",[])},t.prototype.setFocusedChapter=function(){return this._implSetOrGet.apply(this,["setFocusedChapter",null].concat(o.call(arguments)))},t.prototype.settingsControlEnabled=function(){return this._implSetOrGet.apply(this,["settingsControlEnabled",!1].concat(o.call(arguments)))},t.prototype.shouldResume=function(){return this._implGet("shouldResume")},t.prototype.showControls=function(){return this._implExec.apply(this,["showControls",null].concat(o.call(arguments)))},t.prototype.smallPlayButtonEnabled=function(){return this._implSetOrGet.apply(this,["smallPlayButtonEnabled",!1].concat(o.call(arguments)))},t.prototype.state=function(){return this._implGet("state","beforeplay")},t.prototype.stillUrl=function(){return this._implGet.apply(this,["stillUrl",null].concat(o.call(arguments)))},t.prototype.suppressPlay=function(){return this._implSetOrGet.apply(this,["suppressPlay",this].concat(o.call(arguments)))},t.prototype.thumbnailAssets=function(){return this._implGet("thumbnailAssets",[])},t.prototype.time=function(){var t,e;return e=arguments[0],t=2<=arguments.length?o.call(arguments,1):[],null==e?this._implSetOrGet("time",0):this._implSetOrGet.apply(this,["time",0,D(e)].concat(o.call(t)))},t.prototype.timeInHumanDuration=function(){return at(this._implGet.apply(this,["time",0].concat(o.call(arguments))))},t.prototype.timeInIso8601Duration=function(){return st(this._implGet.apply(this,["time",0].concat(o.call(arguments))))},t.prototype.trim=function(){return this._implSetOrGet.apply(this,["trim",{start:0,end:-1}].concat(o.call(arguments)))},t.prototype.unmute=function(){return this._implExec("unmute")},t.prototype.undefineOverlay=function(){return this._implPromise.apply(this,["undefineOverlay"].concat(o.call(arguments)))},t.prototype.videoHeight=function(){return this._implSetOrGet.apply(this,["videoHeight",null].concat(o.call(arguments)))},t.prototype.videoQuality=function(){return this._implSetOrGet.apply(this,["videoQuality","auto"].concat(o.call(arguments)))},t.prototype.videoWidth=function(){return this._implSetOrGet.apply(this,["videoWidth",null].concat(o.call(arguments)))},t.prototype.visitorKey=function(){return s.visitorKey.value()||null},t.prototype.volume=function(){return this._implSetOrGet.apply(this,["volume",0].concat(o.call(arguments)))},t.prototype.volumeControlEnabled=function(){return this._implSetOrGet.apply(this,["volumeControlEnabled",!1].concat(o.call(arguments)))},t.prototype.whenVideoElementInDom=function(){return new r((t=this,function(e){return t._hasImpl((function(){return e(t._implGet.apply(t,["whenVideoElementInDom",null].concat(o.call(arguments))))}))}));var t},t.prototype.width=function(){return this._implSetOrGet.apply(this,["width",null].concat(o.call(arguments)))},t.prototype.widthForHeight=function(){return this._implGet.apply(this,["widthForHeight",null].concat(o.call(arguments)))},t.prototype.chaptersEnabled=function(){return this._implSetOrGet.apply(this,["chaptersEnabled",null].concat(o.call(arguments)))},t.prototype.chaptersVisibleOnLoad=function(){return this._implSetOrGet.apply(this,["chaptersVisibleOnLoad",null].concat(o.call(arguments)))},t.prototype.addChapter=function(){return this._implExec.apply(this,["addChapter"].concat(o.call(arguments)))},t.prototype.getChapter=function(){return this._implGet.apply(this,["getChapter",null].concat(o.call(arguments)))},t.prototype.removeChapter=function(){return this._implExec.apply(this,["removeChapter"].concat(o.call(arguments)))},t.prototype.chapters=function(){return this._implSetOrGet.apply(this,["chapters",[]].concat(o.call(arguments)))},t.prototype.customerLogo=function(){return this._implExec.apply(this,["customerLogo"].concat(o.call(arguments)))},t.prototype.setControlEnabled=function(t,e){return this._implSetOrGet("setControlEnabled",null,t,e)},t.prototype.isControlDisabled=function(t){return this._implGet("isControlDisabled",!1,t)},t.prototype.isControlEnabled=function(t){return this._implGet("isControlEnabled",!1,t)},t.prototype.whenControlMounted=function(t){return this._implPromise("whenControlMounted",t)},t.prototype.getControl=function(t){return this._implGet("getControl",null,t)},t.prototype.getEmail=function(){return this.email()},t.prototype.getEventKey=function(){return this.eventKey()},t.prototype.getVisitorKey=function(){return this.visitorKey()},t.prototype.setEmail=function(t){return this.email(t)},t.prototype.setPlayerColor=function(){return this._implExec.apply(this,["playerColor"].concat(o.call(arguments)))},t.prototype.removeReadyFn=function(){var t,e;return t=1<=arguments.length?o.call(arguments,0):[],this._hasImpl((e=this,function(){var n;return(n=e._impl.ready).remove.apply(n,t)}))},t.prototype.isKeyboardFocused=function(t){return this._implSetOrGet("isKeyboardFocused",null,t)},t.prototype.email=function(t){var e,n;return null==t?this._attrs.email||null:(this.info("email",t),e=this._attrs.email,this._attrs.email=t,s.localStorage([this._attrs.pageUrl,"trackEmail"],t),(null==(n=this._opts)?void 0:n.noDeprecatedProperties)||(this.params.trackEmail=t),this._implExec("email",t),t!==e&&this.trigger("emailchange",t),this)},t.prototype.foreignData=function(t){var e,n;if(void 0===t)return this._attrs.foreignData||this._foreignData||null;if(null===t)return this._attrs.foreignData=null,this.trigger("foreigndatachange",t);if(this.info("foreignData",t),!H(t))throw new Error("foreignData can only be an Object");return t=c(t),this._attrs.foreignData=t,null!=(e=this._impl)&&null!=(n=e.tracker)&&n.transmit({force:!0}),this.trigger("foreigndatachange",t)},t.classFor=function(t){var e;return t instanceof s.Player?t=t.embedType:t instanceof s.PublicApi&&(t=null==(e=t._impl)?void 0:e.embedType),("vulcan"===t?s.VulcanPlayer:"vulcan-v2"===t?s.VulcanV2Player:"html5"===t?s.Html5Player:"flash"===t?s.FlashPlayer:"external"===t?s.ExternalPlayer:"notplayable"===t?s.NotPlayablePlayer:"passwordprotected"===t?s.PasswordProtectedPlayer:s.Player)||(s.Metrics.count("player/"+t+"-class-not-defined",1,{ua:navigator.userAgent,detect:s.detect}),s.error("PublicApi.classFor: embedType is "+t+" but its class is not defined. Using 'vulcan-v2' instead."),s.VulcanV2Player)},t}(),s.mixin(s.PublicApi.prototype,s.bindable),N=s.PublicApi.prototype.trigger,s.PublicApi.prototype._triggerNoImpl=function(){var t,e,n;return e=arguments[0],t=2<=arguments.length?o.call(arguments,1):[],N.call.apply(N,[this,e].concat(o.call(t))),null==(n=window.wistiaEmbeds)?void 0:n.trigger.apply(n,[e,this].concat(o.call(t)))},s.PublicApi.prototype.trigger=function(){var t,e;return t=1<=arguments.length?o.call(arguments,0):[],this._impl?(e=this._impl).trigger.apply(e,t):this._triggerNoImpl.apply(this,t)},s.mixin(s.PublicApi.prototype,s.logHelpers),s.PublicApi.prototype._logPrefix=function(){var t;return[this.constructor.name,this.hashedId()||"no hashedId",null==(t=this.container)?void 0:t.id,this.uuid]}}(Wistia)},function(t,e,n){var i,o,r=[].slice;o=n(44).doTimeout,(i=function(){function t(){return this._queue=[],this._green=!1,this._lock=!1,this.allInOne=(t=this,function(){return t._allInOne.apply(t,arguments)}),this.defineMethodsOn(this.allInOne),this.allInOne;var t}return t.prototype.defineMethodsOn=function(t){var e,n,i,o;for(n in e={},this,i=[],this)o=this[n],i.push(function(n,i,o){if("[object Function]"===e.toString.call(i))return t[n]=function(){return o[n].apply(o,arguments)}}(n,o,this));return i},t.prototype.flush=function(){var t,e;if(t=1<=arguments.length?r.call(arguments,0):[],!this._green)return this;for(this._lock=!0;0<this._queue.length&&(e=this._queue.shift(),t.length||!this.goArgs?this.tryAndReport((function(){return e.apply(null,t)})):this.tryAndReport(function(t){return function(){return e.apply(null,t.goArgs)}}(this)),!this._block&&this._green););return this._lock=!1,this},t.prototype._debug=function(){return"undefined"!=typeof console&&null!==console?console.log.apply(console,arguments):void 0},t.prototype.synchronize=function(){var t,e,n,i;for(n=0,i=(e=1<=arguments.length?r.call(arguments,0):[]).length;n<i;n++)t=e[n],this.synchronizeFn(t);return this},t.prototype.synchronizeFn=function(t){var e,n,i,o;return n=null,o=this,e=function(){return clearTimeout(n),o._block=!1,o.go()},i=function(n){return function(){return n._block=!0,n.stop(),t(e)}}(this),n=setTimeout(function(n){return function(){return n._debug("StopGo#synchronize timed out",t),e()}}(this),5e3),this.runFn(i),this},t.prototype.tryAndReport=function(t){var e;try{return t()}catch(t){return(e=t).stack?("undefined"!=typeof console&&null!==console&&console.log(e.message),"undefined"!=typeof console&&null!==console?console.log(e.stack):void 0):"undefined"!=typeof console&&null!==console?console.log(e):void 0}},t.prototype.clearSynchronized=function(){return this.setQueue([]),this._block=!1,this._green=!0},t.prototype.filter=function(t){var e;return this._queue=function(){var n,i,o,r;for(r=[],n=0,i=(o=this._queue).length;n<i;n++)e=o[n],t(e)&&r.push(e);return r}.call(this),this},t.prototype.push=function(t){return this._queue.push(t),this},t.prototype.go=function(){var t;return t=1<=arguments.length?r.call(arguments,0):[],this._green=!0,this.goArgs=t,this.flush.apply(this,t),this},t.prototype.stop=function(){return this._green=!1,this},t.prototype.run=function(){var t,e,n,i;for(n=0,i=(e=1<=arguments.length?r.call(arguments,0):[]).length;n<i;n++)t=e[n],this.runFn(t);return this},t.prototype.then=function(){return this.run.apply(this,arguments)},t.prototype.runFn=function(t){return this._green&&!this._block?this._lock?this.tryAndReport(t):(this.push(t),this.flush()):this.push(t),this},t.prototype.remove=function(){var t,e,n,i;for(n=0,i=(e=1<=arguments.length?r.call(arguments,0):[]).length;n<i;n++)t=e[n],this.removeFn(t);return this},t.prototype.removeFn=function(t){return this.filter((function(e){return t!==e})),this},t.prototype.setQueue=function(t){return this._queue=t,this},t.prototype.getQueue=function(){return this._queue},t.prototype._allInOne=function(){var t,e;return t=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],!0===t?this.go.apply(this,e):!1===t?this.stop():null==t?this._green:t instanceof Array?this.run.apply(this,t):"string"==typeof t?this[t].apply(this,e):this.run.apply(this,arguments)},t}()).when=function(){var t,e,n,o,a,s,u,l;for(l=1<=arguments.length?r.call(arguments,0):[],s=new i,n=function(){return s.go.apply(s,arguments)},t=function(t,e){return n=function(){return e((function(){return t.apply(null,arguments)}))}},e=0,o=(a=l.reverse()).length;e<o;e++)u=a[e],t(n,u);return n(),s},i._drainStopGosAsync=function(t,e,n){var r;if(null==n&&(n=0),!(1>e.length))return(r=e.shift()).run((function(){return i._drainStopGosAsync(t,e,n+1)})),o(t+"."+n,(function(){return r.go()}),0),r},t.exports=i},function(t,e,n){"use strict";n.d(e,{pluginScriptsToLoad:function(){return d},allow3rdParty:function(){return g}});var i=n(2),o=n(12),r=n(86),a=n(34),s=n(20),u=n(93),l=(0,s.cachedDetect)(),c="Audio",f=["audioChapters","audioShare","captions","captions-v1","chapters","cropFill","customizePreview","dimTheLights","dimthelights","encodingProgress","eventbrite","externalPlayer","facebookPixel","flashPlayer","googleAds","hlsVideo","html5Player","hubspotForm","marketoForm","midrollLink-v1","midrollLink-v2","nativeHlsVideo","notPlayableVideo","passwordProtectedVideo","postRoll-v1","requireEmail-v1","share","share-v2","socialbar-v1","thumbnailTextOverlay","thumbnailTextOverlay-v2","videoThumbnail","vulcanV2Player","watchNext"],h=function(t){return Object.keys(t).filter((function(t){return-1===f.indexOf(t)}))},d=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},s=r.buildContext(),c=t.mediaType,f=t.embed_options,d=Object(f).plugin,g=e.plugin||d||{},b=(0,o.merge)({},g,n),_=h(b);0<_.length&&(0,u.countMetric)("custom-plugin",1,{customPlugins:_,hashedId:t.hashedId,url:window.location.href});var w=r.choosePlayer(s,t,e),S=p(b,e);if((l.safari||l.iphone||l.ipad)&&!1!==e.airplayButton){var k={name:"airplay",options:b.airplay||{},async:!0,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/airplay.js")};S.push(k)}var T=y(S,e,w,c);return"vulcan-v2"===w&&e.chaptersOn&&!b.chapters&&T.push({name:v("chapters"),src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/chapters.js"),async:!0}),e.showCustomerLogo&&e.customerLogoImageUrl&&t.enableCustomerLogo&&T.push({name:"customerLogo",options:b.customerLogo||{},async:!0,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/customerLogo.js")}),(!0===e.branding||!0===t.branding)&&T.push({name:"wistiaLogo",options:b.wistiaLogo||{},async:!0,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/wistiaLogo.js")}),"vulcan-v2"!==w||i.default.VulcanV2Player||T.push({name:"vulcanV2Player",options:{},async:!1,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/vulcanV2Player.js")}),m(T)},p=function(t,e){var n=[];return Object.keys(t).forEach((function(i){if(t.hasOwnProperty(i)&&function(t){return"socialbar-v1"!==t&&-1===t.indexOf("transcript")}(v(i))){var o=t[i];if(o&&!1!==o.on){var r=v(i),s={name:r,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/").concat(r,".js"),async:null==o.async?!/^(requireEmail|captions|midrollLink|share)/.test(i):o.async,options:o};o.src&&g(e)&&(s.src=o.src),n.push(s)}}})),n},y=function(t,e,n,i){return t.map((function(t){if("vulcan-v2"===n)switch(t.name){case"captions-v1":t.name="captions",t.src=t.src.replace(/captions-v1/,"captions");break;case"share":i===c?(t.name="audioShare",t.src=t.src.replace(/share/,"audioShare")):(t.name="share-v2",t.src=t.src.replace(/share/,"share-v2"));break;case"chapters":i===c?(t.name="audioChapters",t.src=t.src.replace(/chapters/,"audioChapters")):t.name="chapters";break;case"postRoll-v1":t.name="postRoll-v2",t.src=t.src.replace(/postRoll-v1/,"postRoll-v2");break;case"midrollLink-v1":t.name="midrollLink-v2",t.src=t.src.replace(/midrollLink-v1/,"midrollLink-v2");break;case"requireEmail-v1":e._inLegacyPlaylist||(t.name="turnstile",t.src=t.src.replace(/requireEmail-v1/,"turnstile"))}return t}))},m=function(t){var e=function(t){var e=0;return t&&t.options&&t.options.loadWeight&&(e=t.options.loadWeight),e};return t.sort((function(t,n){return e(t)-e(n)}))},v=function(t){return"requireEmail"===t?"requireEmail-v1":"postRoll"===t?"postRoll-v2":t},g=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return!1!==t.allowThirdParty&&!/([\w_-]+\.)?wistia\.(com|st|io)$/.test(window.location.hostname)}},function(t,e,n){"use strict";n.d(e,{countMetric:function(){return c}});var i=n(2),o=n(13),r=n(19),a=n(45),s=n(38),u=void 0;null==i.default._simpleMetricsCache&&(i.default._simpleMetricsCache={}),i.default._simpleMetricsPostFunction||(i.default._simpleMetricsPostFunction=s.xhrPost),null==i.default._simpleMetricsDebounceInterval&&(i.default._simpleMetricsDebounceInterval=500);var l=i.default._simpleMetricsCache,c=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=2<arguments.length?arguments[2]:void 0;return h("count",t,e,n)},f=function(){if((0,a.isVisitorTrackingEnabled)()){for(var t="https://".concat("pipedream.wistia.com","/mput?topic=metrics"),e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return i.default._simpleMetricsPostFunction(t,n.join("\n"))}},h=function(t,e,n){var s=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if((0,a.isVisitorTrackingEnabled)())try{null==l.toMput&&(l.toMput=[]);var c=(0,o.default)({type:t,key:e,value:null==n?null:n},s),h=JSON.stringify(c);l.toMput.push(h),clearTimeout(i.default._msendTimeout),i.default._msendTimeout=setTimeout((function(){(0,r.default)((function(){f.apply(u,l.toMput),l.toMput=[]}))}),i.default._simpleMetricsDebounceInterval)}catch(t){console.error(t.message),console.error(t.stack)}}},function(t,e,n){"use strict";n.d(e,{prefetchEngineAndPlugins:function(){return l}});var i=n(2),o=n(86),r=n(27),a=n(92),s=n(14),u=n.n(s),l=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.pluginScriptsToLoad)(t,e),r=o.buildContext(),s=o.bestUsableEngine(r,t,e),l=c(n),f=i.default.asyncRequire(s);return u().all([l,f])},c=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=t.filter((function(t){if(!i.default.plugin._prefetched[t.src])return i.default.plugin._prefetched[t.src]="fetching",t}));return 0===e.length?u().resolve():(0,r.runScripts)(e).then((function(){e.forEach((function(t){i.default.plugin._prefetched[t.src]="fetched"}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,{injectJsonLd:function(){return p},removeInjectedJsonLd:function(){return y}});var i=n(69),o=n(96),r=n(12),a=n(34),s=n(49),u=n(36),l=n(97),c=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.videoWidth,o=e.videoHeight,u=e.embedOptions;return u||(u=(0,r.cast)((0,r.clone)(t.embed_options))),{"@context":"http://schema.org/","@id":"https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId),"@type":"AudioObject",duration:"PT".concat((0,i.secondsToIso8601Duration)(t.duration)),name:t.name,thumbnailUrl:(0,s.stillUrl)(t.assets,{ext:"jpg",protocol:"https:",videoWidth:n,videoHeight:o,embedHost:u.embedHost}),contentUrl:h(t),embedUrl:f(u,t),uploadDate:(0,i.secondsToIso8601Date)(t.createdAt),description:t.seoDescription}},f=function(t,e){var n,i="https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(e.hashedId);return(0,o.shouldAddKeyMoments)(t,e.duration)&&!(0,o.shouldAddClipsFromChapters)(t)&&null!==(n=e.embed_options.plugin)&&void 0!==n&&n.videoThumbnail?"".concat(i,"?wseektoaction=true"):i},h=function(t){var e=t.assets;if("Audio"===t.mediaType)return(0,s.readyPublicMp3s)(e)[0].url;var n=(0,s.findClosestAssetByQuality)((0,s.readyPublicMp4s)(e),1080),i=new u.Url(n.url);return i.ext("m3u8"),i.absolute()},d=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.videoWidth,u=e.videoHeight,c=e.embedOptions;c||(c=(0,r.cast)((0,r.clone)(t.embed_options)));var d={"@context":"http://schema.org/","@id":"https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId),"@type":"VideoObject",duration:"PT".concat((0,i.secondsToIso8601Duration)(t.duration)),name:t.name,thumbnailUrl:(0,s.stillUrl)(t.assets,{ext:"jpg",protocol:"https:",videoWidth:n,videoHeight:u,embedHost:c.embedHost}),contentUrl:h(t),embedUrl:f(c,t),uploadDate:(0,i.secondsToIso8601Date)(t.createdAt),description:t.seoDescription};if(t.captions&&t.captions[0]&&(d.transcript=t.captions[0].text),(0,o.shouldAddKeyMoments)(c,t.duration))if((0,o.shouldAddClipsFromChapters)(c)){var p=(0,l.normalizeChapters)(c),y=p.chapterList;d.hasPart=(0,o.clipsFromChapters)(y,location.href,t.duration)}else d.potentialAction=(0,o.seekToAction)();return d},p=function(t,e){var n,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};n="Audio"===e.mediaType?c(e,i):d(e,i);var o=JSON.stringify(n),r=document.createElement("script");r.className="w-json-ld",r.type="application/ld+json",r.innerHTML=o,r._wistia=!0,r.setAttribute("id",t),y(t);var a=document.querySelectorAll("script.w-json-ld"),s=a[a.length-1];s?s.parentNode.insertBefore(r,s.nextSibling):document.head.insertBefore(r,document.head.childNodes[0])},y=function(t){if(t){var e=document.getElementById(t);e&&(e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e))}}},function(t,e,n){"use strict";n.d(e,{shouldAddClipsFromChapters:function(){return s},shouldAddKeyMoments:function(){return u},clipsFromChapters:function(){return l},seekToAction:function(){return c}});var i=n(36),o=n(97);function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s=function(t){var e=(0,o.normalizeChapters)(t);if(!e)return!1;var n=e.chapterList;return!1!==e.on&&"false"!==e.on&&0<(null==n?void 0:n.length)},u=function(t,e){var n=t.plugin||{},i=n.passwordProtectedVideo,o=n["requireEmail-v1"],r=!0===(null==i?void 0:i.on)||"true"===(null==i?void 0:i.on),a=o&&!1!==o.on&&"end"!==o.time&&!o.persistentTurnstile;return!(r||a||!(30<=e))},l=function(t,e,n){if(t&&0!==t.length)return function(t){var e={};return r(t).sort((function(t,e){return t.time-e.time})).filter((function(t){var n=t.time,i=t.title,o=t.deleted;return!(e[n]||o||"Chapter Title"===i||(e[n]=!0,0))}))}(t).map((function(t,o,r){var a=t.time,s=t.title,u=new i.Url(e),l=Math.floor(a),c=r[o+1]?r[o+1].time:n;return u.params.wtime="".concat(l,"s"),{"@type":"Clip",endOffset:Math.floor(c),name:s,startOffset:l,url:u.absolute()}}))},c=function(){var t=new i.Url(location.href);return{"@type":"SeekToAction",target:"".concat(t.absolute(),"?wtime={seek_to_second_number}"),"startOffset-input":"required name=seek_to_second_number"}}},function(t,e,n){"use strict";n.d(e,{normalizeChapters:function(){return i}});var i=function(t){var e=t.plugin,n=t.chaptersOn,i=t.chapterList;return null!=e&&e.chapters?e.chapters:i||n?{on:n,chapterList:i&&0<i.length?i:[]}:void 0}},function(t,e,n){"use strict";n.r(e),n.d(e,{wData:function(){return r},wRemoveData:function(){return a}});var i=n(2),o=n(12),r=function(t,e){return(0,o.isArray)(t)||(t=t.split(".")),null!=e&&(0,o.setDeep)(i.default,["_data"].concat(t),e),(0,o.getDeep)(i.default,["_data"].concat(t))},a=function(t){return(0,o.isArray)(t)||(t=t.split(".")),(0,o.unsetDeep)(i.default,["_data"].concat(t))}},function(t,e,n){"use strict";n.d(e,{parseLegacyVideoQualityWidth:function(){return u},inferQualityRangeFromOpts:function(){return l}});var i=n(49);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||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 r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=2160,s=function(t){return"4k"===t?2160:parseInt(t,10)},u=function(t,e){var n=(0,i.filter)(e,{container:/mp4|flv/,status:i.READY,public:!0})[0];if(/width:/.test(t)&&n){var r=o(t.match(/width:(\d+)/i),2),a=(r[0],r[1]),s=parseInt(a,10),u=n.width/n.height;return Math.round(s/u)}},l=function(t){return t.videoQuality&&"auto"!==t.videoQuality?"sd-only"===t.videoQuality?[200,360]:"md"===t.videoQuality?[540,a]:"hd-only"===t.videoQuality?[720,a]:[360,a]:[t.qualityMin?s(t.qualityMin):360,t.qualityMax?s(t.qualityMax):a]}},function(t,e,n){"use strict";n.d(e,{scrollLeft:function(){return i},scrollTop:function(){return o}});var i=function(t){var e,n,i,o;if(!t)return(null===(e=document)||void 0===e||null===(n=e.documentElement)||void 0===n?void 0:n.scrollLeft)||(null===(i=document)||void 0===i||null===(o=i.body)||void 0===o?void 0:o.scrollLeft)||0;document.body&&(document.body.scrollLeft=t),document.documentElement&&(document.documentElement.scrollLeft=t)},o=function(t){var e,n,i,o;if(!t)return(null===(e=document)||void 0===e||null===(n=e.documentElement)||void 0===n?void 0:n.scrollTop)||(null===(i=document)||void 0===i||null===(o=i.body)||void 0===o?void 0:o.scrollTop)||0;document.body&&(document.body.scrollTop=t),document.documentElement&&(document.documentElement.scrollTop=t)}},function(t,e,n){"use strict";n.d(e,{uniqId:function(){return i}});var i=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=(new Date).getTime();window.performance&&"function"==typeof window.performance.now&&(n+=window.performance.now());var i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx-xxxxxxxxx-xxxxxxxxxxxx-xxxx".replace(/[xy]/g,(function(t){var e=0|(n+16*Math.random())%16;return n=Math.floor(n/16),("x"===t?e:8|3&e).toString(16)}));return t+i+e}},function(t,e,n){"use strict";n.r(e),n.d(e,{indexOf:function(){return i},insertIntoArray:function(){return o},toArray:function(){return r}});var i=function(t,e){for(var n=0,i=t.length,o=0<=i;o?n<=i:n>=i;o?n++:n--)if("function"==typeof e){if(e(t[n]))return n}else if(t[n]===e&&t[n]===e)return n;return-1},o=function(t,e,n){var o;return null==n&&(n={}),n.after?0<=(o=i(t,n.detect||n.after))?t.splice(o+1,0,e):"undefined"!=typeof console&&null!==console?console.log("".concat(n.after," not found when trying to add ").concat(e," to array")):void 0:n.before?0<=(o=i(t,n.detect||n.before))?t.splice(o,0,e):"undefined"!=typeof console&&null!==console?console.log("".concat(n.before," not found when trying to add ").concat(e," to array")):void 0:null==n.index?t.push(e):t.splice(n.index,0,e)},r=function(t,e){if(null==e&&(e=/\s+/),t instanceof Array)return t;if("string"==typeof t)return t.split(e);throw new Error("Don't know how to convert ".concat(t," into an array."))}},function(t,e,n){!function(t){var e,i,o;if(o=n(12),e=o.isObject,i=o.merge,!t.generate)t.generate={},t.generate.html=function(n){var i,o,r,a,s,u,l,c,f,h,d,p,y,m;if(/string|number|boolean/.test(typeof n))return n.toString();if(n instanceof Array){for(d="",s=0,c=n.length;s<c;s++)a=n[s],d+=t.generate.html(a);return d}if("object"!=typeof n)return n.toString();for(l in o=[],n)y=n[l],"tagName"===l?p=y:"childNodes"===l?r=y:o.push({key:l,val:y});for(p||(p="div"),d="<"+p,u=0,f=o.length;u<f;u++)"style"===(i=o[u]).key&&e(i.val)&&(i.val=function(){var t,e;for(h in e=[],t=i.val)m=t[h],e.push(h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()+":"+m);return e}().join(";")+";"),d+=" "+i.key+'="'+i.val+'"';return/^(br|hr|img|link|meta|input)$/i.test(p)?d+=" />":(d+=">",r&&("string"==typeof r?d+=r:"object"==typeof r&&(d+=t.generate.html(r))),d+="</"+p+">"),d},t.generate.stillWidth=function(t){var e,n,i,o,r,a,s,u;for(a=[640,960,1280,1920,3840],3840>t.stillAssetWidth&&a.push(t.stillAssetWidth),e=[],n=0,o=a.length;n<o;n++)(u=a[n])<=t.stillAssetWidth&&e.push(u);for(i=0,r=(s=e.sort((function(t,e){return t-e}))).length;i<r;i++)if(u=s[i],t.videoWidth<=u)return u;return Math.max.apply(Math,e)},t.generate.relativeBlockCss=function(t,e){return null==t&&(t="100%"),null==e&&(e="100%"),"display:inline-block;*display:inline;height:"+e+";line-height:normal;margin:0;padding:0;position:relative;vertical-align:top;width:"+t+";zoom:1;"},t.generate.video=function(e,n,o){return o=i({},n.params,o,{uuid:n.uuid,videoWidth:n.videoWidth(),videoHeight:n.videoHeight()}),"flash"===e?t.generate.flashEmbedCode(n._mediaData,o):"html5"===e?t.generate.html5EmbedElem(n._mediaData,o):"romulus"===e?t.generate.romulusEmbedElem(n._mediaData,o):"external"===e?t.generate.externalEmbedCode(n._mediaData,o):"flashUrl"===e?t.generate.flashUrl(n._mediaData,o):void 0}}(Wistia)},function(t,e,n){"use strict";var i=n(86),o=n(49),r=n(14),a=n.n(r),s=n(91),u=n.n(s),l=n(38),c=n(34),f=n(51),h=n(105),d=n(44),p=n(11),y=n(12),m=n(106),v=n(20),g=n(16),b=n(10);function _(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}var w=(0,v.cachedDetect)();!function(t){var e=window.Wistia;if(!e.Player){var n=function(){function t(e){var n=this;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.publicApi=e,this.uuid=(0,b.seqId)(),this._baseEventLoopDuration=300,this._eventLoopDuration=300,this.info("constructor"),this.transferFacadeProperties(),this._impl=this,(0,y.keys)(e).forEach((function(t){var i=e[t];i instanceof u()&&!n.hasOwnProperty(t)&&(n[t]=i)})),this.plugin=this.publicApi.plugin,this.ready=new(u()),this.hasData=new(u()),this.embedded=new(u()),this.commandQueueOpen=new(u()),this.hasData(!0),this.commandQueueOpen(!0),this.playing=new(u()),this.notFullscreen=new(u()),this.resetStateVariables(),this.publicApi.isLiveMedia()||this.setupPercentTracking(),this._recordFirstEmbedIfEligible(),this}return n=t,(r=[{key:"animate",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.info("animate",e,n);var i=n.callback;return n.callback=function(){(0,g.elemStyle)(t.grid.root,{position:"relative"}),null==i||i()},(0,g.elemStyle)(this.grid.root,{position:"absolute"}),(0,g.elemAnimate)(this.grid.root,e,n),this}},{key:"aspect",value:function(){if(this._opts.aspect)return this._opts.aspect;if(this.publicApi.isAudio())return this.publicApi.width()/this.publicApi.height();if(this._currentAsset)return"variable"==this._currentAsset.width?this.mp4Aspect()||this.originalAspect():this._currentAsset.width/this._currentAsset.height;var t=this.asset({container:/mp4|flv/});return t?t.width/t.height:640/360}},{key:"asset",value:function(t){if("string"==typeof arguments[0]){var e=arguments[0]+"Asset",n=arguments[1];return this[e](n)}var i=arguments[0];return this.assets(i)[0]||null}},{key:"assets",value:function(t){return o.filter(this._mediaData.assets,t)}},{key:"bigPlayButtonEnabled",value:function(){return this}},{key:"canAutoPlay",value:function(){return!0}},{key:"cancelFullscreen",value:function(){this.info("cancelFullscreen"),this.rebuild()}},{key:"checkForReady",value:function(){throw new Error("Define in subclass!")}},{key:"cleanupRefs",value:function(){var t,e=this;null===(t=this.cleanup)||void 0===t||t.call(this),(0,y.keys)(this).forEach((function(t){var n,i=e[t];null!=i&&i!==e&&(null===(n=i.cleanup)||void 0===n||n.call(i))}))}},{key:"constrainToHeight",value:function(t){return this.videoWidth(this.widthForHeight(this.videoHeight()),t)}},{key:"constrainToWidth",value:function(t){return this.videoHeight(this.heightForWidth(this.videoWidth()),t)}},{key:"disableTextTracks",value:function(){var t=this;this.info("disableTextTracks"),this._disableTextTracks||(this._disableTextTracks=function(){var e;null!==(e=t.elem())&&void 0!==e&&e.textTracks&&Array.prototype.slice.call(t.elem().textTracks).forEach((function(t){t.mode="disabled"}))}),this.rebind("play",this._disableTextTracks)}},{key:"duration",value:function(){return this._mediaData.duration||null}},{key:"elem",value:function(){return null}},{key:"embed",value:function(){throw new Error("Define in subclass!")}},{key:"embedOptions",value:function(){return this._embedOptions||(this._embedOptions=(0,y.clone)(this._opts)),this._embedOptions}},{key:"eventKey",value:function(){return this._tracker.eventKey()}},{key:"extraHeight",value:function(){return Math.max((0,g.elemHeight)(this.grid.above),(0,g.elemHeight)(this.grid.top))+Math.max((0,g.elemHeight)(this.grid.below),(0,g.elemHeight)(this.grid.bottom))}},{key:"extraWidth",value:function(){return(0,g.elemWidth)(this.grid.left)+(0,g.elemWidth)(this.grid.right)}},{key:"fade",value:function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length,n=Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return g.elemAnimate.apply(void 0,[this.gridChildren(),{opacity:t}].concat(n))}},{key:"fadeIn",value:function(){var t=this,e=this._shortAnimArgs(arguments),n=e.callback;e.callback=function(){(0,g.elemStyle)(t.gridChildren(),{opacity:""}),null==n||n()},(0,g.elemStyle)(this.gridChildren(),{opacity:0}),setTimeout((function(){return t.fade(1,e)}),1)}},{key:"fadeOut",value:function(){var t=this,e=this._shortAnimArgs(arguments);(0,g.elemStyle)(this.gridChildren(),{opacity:1}),setTimeout((function(){return t.fade(0,e)}),1)}},{key:"fit",value:function(){return this.info("fit"),this._opts.dontFit||(this.grid.root.style.height="".concat((0,g.elemHeight)(this.chrome),"px"),this.grid.root.style.width="".concat((0,g.elemWidth)(this.chrome),"px")),e.grid.fitVertical(this),e.grid.fitHorizontal(this)}},{key:"flashAsset",value:function(t){return o.flv(this._mediaData.assets,t)}},{key:"flashAssetInRange",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o.flv(this._mediaData.assets,(0,y.merge)(this.qualityOptions(),t))}},{key:"focus",value:function(){var t;null===(t=this.chrome)||void 0===t||t.focus()}},{key:"freezeLastFrame",value:function(){}},{key:"fullscreenButtonEnabled",value:function(){return this}},{key:"getVisitorKey",value:function(){return this.visitorKey()}},{key:"getEventKey",value:function(){return this.eventKey()}},{key:"getMediaElement",value:function(){}},{key:"getMediaType",value:function(){return this._mediaData.mediaType||null}},{key:"gridChildren",value:function(){var t=this,n=this.grid;window.NodeList&&!NodeList.prototype.forEach&&(n=Array.prototype.slice.call(this.grid));var i=[];return(0,y.keys)(n).forEach((function(n){t.grid[n].childNodes.forEach((function(n){e.isGridElem(t.grid,n)||i.push(n)}))})),i}},{key:"hashedId",value:function(){return this._hashedId}},{key:"hdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"hlsAsset",value:function(t){return o.m3u8(this._mediaData.assets,t)}},{key:"hlsAssetInRange",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o.m3u8(this._mediaData.assets,(0,y.merge)(this.qualityOptions(),t))}},{key:"height",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null!=t){this.info("height",t,n),t=parseInt(t,10);var i=this.height();return this.grid.wrapper.style.height=this.chrome.style.height="".concat(t,"px"),n.dontChangeContainer||(this._embedContainer.style.height="".concat(t,"px")),this.grid.center.style.height="100%",this._opts.dontFit?(this.grid.main.style.height="".concat(t-(0,g.elemHeight)(this.grid.above)-(0,g.elemHeight)(this.grid.below),"px"),this.grid.main.style.marginTop="".concat((0,g.elemHeight)(this.grid.top),"px")):(e.grid.fitHorizontal(this),e.grid.fitVertical(this)),(t!==i||n.trigger)&&this.trigger("heightchange",t,i),n.constrain&&this.constrainToHeight({trigger:n.trigger}),this}return(0,g.elemHeight)(this.grid.center)+Math.max((0,g.elemHeight)(this.grid.above),(0,g.elemHeight)(this.grid.top))+Math.max((0,g.elemHeight)(this.grid.below),(0,g.elemHeight)(this.grid.bottom))}},{key:"heightForWidth",value:function(t){return w.trident?Math.round(t/this.aspect()):t/this.aspect()}},{key:"implContainer",value:function(){return this._opts.subContainer?this._embedContainer:this.grid.center}},{key:"inFullscreen",value:function(){return!1}},{key:"init",value:function(){return this.setupPipedreamTracking(),this}},{key:"inSilentPlaybackMode",value:function(){return!1}},{key:"iphoneAsset",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this._iphoneAsset||(this._iphoneAsset=o.iphone(this._mediaData.assets,t)),this._iphoneAsset}},{key:"iphoneAssetInRange",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o.iphone(this._mediaData.assets,(0,y.merge)(this.qualityOptions(),t))}},{key:"isMuted",value:function(){return!!this._opts.muted}},{key:"isScreencast",value:function(){return o.isScreencast(this._mediaData.assets)}},{key:"isRemoved",value:function(){return null===this.grid}},{key:"lastPlayInfo",value:function(){return{}}},{key:"mp4Aspect",value:function(){var t=this.mp4Asset({width:640})||this.mp4Asset({width:960})||this.mp4Asset();return t?t.width/t.height:null}},{key:"mdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"mp4Asset",value:function(t){return o.mp4(this._mediaData.assets,t)}},{key:"mp4AssetInRange",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o.mp4(this._mediaData.assets,(0,y.merge)(this.qualityOptions(),t))}},{key:"mute",value:function(){this._muted=!0,this.trigger("volumechange",this.volume())}},{key:"originalAspect",value:function(){var t=this.originalAsset();if(t)return t.width/t.height;var e=this.bestAsset();return e().width/e().height}},{key:"originalAsset",value:function(){return this._original||(this._original=o.original(this._mediaData.assets)),this._original}},{key:"name",value:function(t){return null!=t&&(this._name=t,this.trigger("namechange",t)),null==this._name?this._mediaData.name||"":this._name}},{key:"pause",value:function(){var t=this;return this.info("pause"),this.ready((function(){return t.pause()})),this}},{key:"percentWatched",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatched()/Math.ceil(this.duration()):0}},{key:"placeEmbed",value:function(t){var n=this.implContainer();this.info("placeEmbed",n,t),this.wrapperElem=(0,g.elemFromObject)({id:(0,b.seqId)("wistia_video_wrapper_"),style:e.generate.relativeBlockCss(),class:"wistia_video_wrapper"}),(0,g.elemStyle)(this.wrapperElem,{overflow:"hidden"}),(0,g.elemAppend)(n,this.wrapperElem),"string"==typeof t?this.wrapperElem.innerHTML+=t:(0,g.elemAppend)(this.wrapperElem,t)}},{key:"play",value:function(){var t=this;return this.info("play"),this.ready((function(){return t.play()})),this}},{key:"playableAsset",value:function(t){return o.playable(this._mediaData.assets,t)}},{key:"playableAssetInRange",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o.playable(this._mediaData.assets,(0,y.merge)(this.qualityOptions(),t))}},{key:"playbackRate",value:function(t){return null==t?1:this}},{key:"playbarControlEnabled",value:function(){return this}},{key:"playerColor",value:function(t){if(null!=t){this.info("playerColor",t);var e=this._attrs.playerColor;return this._attrs.playerColor=(0,h.sanePlayerColor)(t),e!==this._attrs.playerColor&&this.trigger("playercolorchange",this._attrs.playerColor,e),this}return this._attrs.playerColor}},{key:"playerLanguage",value:function(t){var e=this;return null==t?(0,p.getLanguage)(this._attrs.playerLanguage)||(0,p.getLanguage)("en-US"):void this.embedded((function(){if(!(0,p.getLanguage)(t))throw new Error("Language ".concat(t," isn't defined."));t!==e._attrs.playerLanguage&&(e._attrs.playerLanguage=t,e.trigger("playerlanguagechange",(0,p.getLanguage)(t)))}))}},{key:"qualityOptions",value:function(){var t=this._attrs;return{qualityMin:t.qualityMin,qualityMax:t.qualityMax}}},{key:"rebuild",value:function(){var t=this;return this.info("rebuild"),this.embedded((function(){t.ready(!1),t._oldVideoElem=t.elem(),t.stopStreaming(),(0,g.elemRemove)(t.wrapperElem),t.wipeOutstandingAsyncFunctions(),t.embed()})),this}},{key:"remove",value:function(){var t,e,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.info("remove"),!1!==n.trigger&&this.trigger("beforeremove"),this.hasData(!1),this.ready(!1),this.embedded(!1),null===(t=this.engine)||void 0===t||t.destroy(),this.stopStreaming(),!1!==n.trigger&&(this.trigger("down"),this.trigger("afterremove")),this.wipeOutstandingAsyncFunctions(),this._bindings={},this.cleanupRefs(),null!==(e=this.grid)&&void 0!==e&&e.root&&((0,g.elemUnbindAllInside)(this.grid.root),(0,g.elemRemove)(this.grid.root)),this.grid=null}},{key:"requestFullscreen",value:function(){}},{key:"resetStateVariables",value:function(){this.info("resetStateVariables"),this._lastTimePosition=-1,this._lastState="beforeplay",this._streamSet=!1,this._issuedPlay=!1,this._issuedPause=!1,this._beforePlay=!0,this._hasPlayed=!1,this._waiting=0,this._ended=!1,this.playing(!1)}},{key:"sdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"secondsWatched",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatched():0}},{key:"secondsWatchedVector",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatchedVector():[]}},{key:"setPlayerColor",value:function(t){return this.playerColor(t),this}},{key:"setupGrid",value:function(t){return this.grid||(this.grid=e.createGrid(this,t),(0,g.elemAppend)(this.chrome,this.grid.root)),this.grid}},{key:"setupPercentTracking",value:function(){var t=this;if(!this._trackPercent){if(this._secondsWatchedTracker=new m.default(this.duration()),"playing"===this.state())for(var e=Math.ceil(this.time()),n=0;n<e;n++)this._secondsWatchedTracker.trackSecond(n);this._trackPercent=function(e){var n=t.percentWatched();t._secondsWatchedTracker.trackSecond(e),t.percentWatched()!==n&&(t.trigger("percentwatchedchanged",t.percentWatched(),n),t._percentWatchedThreshold(t.percentWatched()))},this.rebind("secondchange",this._trackPercent)}}},{key:"setupPipedreamTracking",value:function(){var t=this;this.whenVideoElementInDom().then((function(){t._opts.flashShim||(0,d.doTimeout)("".concat(t.uuid,".track-initembed"),(function(){e.Metrics.videoCount(t,"player/initembed"),e.Metrics.assetBuckets(t).forEach((function(n){e.Metrics.videoCount(t,"player/initembed.".concat(n))}));var n=(0,i.usablePlayers)(t.publicApi.judyCtx(),t.publicApi._mediaData);e.Metrics.videoCount(t,"player/available-players",1,{available_players:n})}),100)})),this.bind("play",(function(){return e.Metrics.videoCount(t,"player/play"),e.Metrics.assetBuckets(t).forEach((function(n){e.Metrics.videoCount(t,"player/play.".concat(n))})),t.unbind})),e.Metrics.countEventOnce(this,"enter-fullscreen"),e.Metrics.countEventOnce(this,"end"),e.Metrics.countShowLoadingOnce(this),e.Metrics.countShowLoadingAll(this),e.Metrics.countShowLoadingLongTimeOnce(this),e.Metrics.countShowLoadingLongTimeAll(this),this.bind("secondchange",(function(){if(10<=t.secondsWatched())return e.Metrics.videoCount(t,"player/played-10-seconds"),t.unbind})),this.bind("secondchange",(function(){if(30<=t.secondsWatched())return e.Metrics.videoCount(t,"player/played-30-seconds"),t.unbind}))}},{key:"slide",value:function(t,e){for(var n=arguments.length,i=Array(2<n?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return this.animate.apply(this,[{transform:"translate(".concat(t,"px,").concat(e,"px)")}].concat(i))}},{key:"slideInLeft",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,g.elemStyle)(this.grid.root,{transform:"translate(".concat(this.videoWidth(),"px, 0px)")}),setTimeout((function(){return t.slide(0,0,e)}),1),this}},{key:"slideInRight",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,g.elemStyle)(this.grid.root,{transform:"translate(".concat(-this.videoWidth(),"px, 0px)")}),setTimeout((function(){return t.slide(0,0,e)}),1),this}},{key:"slideOutLeft",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,g.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout((function(){return t.slide(-t.videoWidth(),0,e)}),1),this}},{key:"slideOutRight",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,g.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout((function(){return t.slide(t.videoWidth(),0,e)}),1),this}},{key:"smallPlayButtonEnabled",value:function(){return this}},{key:"suppressPlay",value:function(t){return null==t||(this.info("suppressPlay",t),this._suppressPlay=!!t),this._suppressPlay}},{key:"state",value:function(){return"beforeplay"}},{key:"stillAsset",value:function(){return o.still(this._mediaData.assets)}},{key:"stillUrl",value:function(t){var e,n;return(t=(0,y.merge)({videoWidth:this.videoWidth(),videoHeight:this.videoHeight()},this._opts,t)).playerColor||(t.playerColor=null===(e=this._mediaData)||void 0===e||null===(n=e.embed_options)||void 0===n?void 0:n.playerColor),o.stillUrl(this._mediaData.assets,t)}},{key:"stopStreaming",value:function(){}},{key:"thumbnailAssets",value:function(){return o.thumbnailAssets(this._mediaData.assets,(0,y.merge)({},this._opts,{playButton:!1,videoHeight:this.videoHeight(),videoWidth:this.videoWidth()}))}},{key:"time",value:function(t){var e=this;return null==t?0:(this.info("time",t),this.ready((function(){return e.time(t)})),this)}},{key:"transferFacadeProperties",value:function(){var t=this;"\n      _attrs\n      _embedContainer\n      _givenOptions\n      _hashedId\n      _hasImpl\n      _mediaData\n      _opts\n      _originalMediaData\n      _tracker\n      chrome\n      container\n      controls\n      data\n      down\n      fullscreenContainer\n      options\n      params\n      plugin\n      plugins\n      up\n      ".split(/[\n\s]+/).forEach((function(e){t[e]=t.publicApi[e]}))}},{key:"trim",value:function(t){return null==t?this._trimSettings||{start:0,end:-1}:void(this._trimSettings=t)}},{key:"unmute",value:function(){this._muted=!1,this._isPlayingSilently=!1,this.trigger("volumechange",this.volume())}},{key:"videoHeight",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null!=t){this.info("videoHeight",t,n),t=parseInt(t,10);var i=this.height();this.grid.main.style.height="".concat(t,"px"),this.grid.center.style.height="100%",this.grid.main.style.height="${h}px";var o=Math.max((0,g.elemHeight)(this.grid.above),(0,g.elemHeight)(this.grid.top)),r=Math.max((0,g.elemHeight)(this.grid.below),(0,g.elemHeight)(this.grid.bottom)),a=o+r;return this.grid.wrapper.style.height=this.chrome.style.height="".concat(t+a,"px"),n.dontChangeContainer||(this._embedContainer.style.height="".concat(t+a,"px")),e.grid.fitHorizontal(this),e.grid.fitVertical(this),(t!==i||n.trigger)&&this.trigger("heightchange",t,i),n.constrain&&this.constrainToHeight({trigger:n.trigger}),this}return(0,g.elemHeight)(this.grid.center)}},{key:"videoWidth",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null!=t){this.info("videoWidth",t,n),t=parseInt(t,10);var i=this.width();this.grid.center.style.width="100%",this.grid.main.style.width="".concat(t,"px");var o=(0,g.elemWidth)(this.grid.left)+(0,g.elemWidth)(this.grid.right);return this.grid.wrapper.style.width=this.chrome.style.width="".concat(t+o,"px"),n.dontChangeContainer||(this._embedContainer.style.width="".concat(t+o,"px")),e.grid.fitHorizontal(this),e.grid.fitVertical(this),(t!==i||n.trigger)&&this.trigger("widthchange",t,i),n.constrain&&this.constrainToWidth({trigger:n.trigger}),this}return(0,g.elemWidth)(this.grid.center)}},{key:"videoQuality",value:function(t){return null==t?"auto":this}},{key:"visitorKey",value:function(){return this._tracker.visitorKey()}},{key:"volume",value:function(t){var e=this;return null==t?0:(this.info("volume",t),this.ready((function(){return e.volume(t)})))}},{key:"volumeControlEnabled",value:function(){return this}},{key:"webmAsset",value:function(t){return o.webm(this._mediaData.assets,t)}},{key:"webmAssetInRange",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o.webm(this._mediaData.assets,(0,y.merge)(this.qualityOptions(),t))}},{key:"whenVideoElementInDom",value:function(){return new(a())((function(t){}))}},{key:"width",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null!=t){this.info("width",t,n),t=parseInt(t,10);var i=this.width();return this.grid.wrapper.style.width=this.chrome.style.width="".concat(t,"px"),n.dontChangeContainer||(this._embedContainer.style.width="".concat(t,"px")),this.grid.center.style.width="100%",this._opts.dontFit?(this.grid.main.style.width="".concat(t-(0,g.elemWidth)(this.grid.left)-(0,g.elemWidth)(this.grid.right),"px"),this.grid.main.style.marginLeft="".concat((0,g.elemWidth)(this.grid.left),"px")):(e.grid.fitHorizontal(this),e.grid.fitVertical(this)),(t!==i||n.trigger)&&this.trigger("widthchange",t,i),n.constrain&&this.constrainToWidth({trigger:n.trigger}),this._width=t,this}return(0,g.elemWidth)(this.grid.left)+(0,g.elemWidth)(this.grid.center)+(0,g.elemWidth)(this.grid.right)}},{key:"widthForHeight",value:function(t){return w.trident?Math.round(t*this.aspect()):t*this.aspect()}},{key:"wipeOutstandingAsyncFunctions",value:function(){this.info("wipeOutstandingAsyncFunctions"),f.globalEventLoop.remove(this.uuid),(0,d.clearTimeouts)(this.uuid),this._remoteMediaKey&&(0,d.clearTimeouts)(this._remoteMediaKey)}},{key:"_isExternallyEmbedded",value:function(){return!this._isOnWistia()}},{key:"_isLoggedIn",value:function(){return document.querySelector("body").classList.contains("logged_in")}},{key:"_isOnWistia",value:function(){var t=this._opts._inIframe?document.referrer:window.location.href;return/wistia\.(io|st|com)/.test(t)}},{key:"_isShared",value:function(){return this._isOnWistia()&&!this._isLoggedIn()}},{key:"_percentWatchedThreshold",value:function(t){var e=this;this._thresholds||(this._thresholds=[.25,.5,.75,1]);var n=[],i=Math.round(100*t)/100;this._thresholds.forEach((function(t){i>=t?e.trigger("percentWatchedThreshold",t):n.push(t)})),this._thresholds=n}},{key:"_recordFirstEmbedIfEligible",value:function(){var t=this._mediaData,e=t.accountKey,n=t.firstEmbedForAccount,i=t.firstShareForAccount,o=t.hashedId;if(n||i){var r="".concat((0,c.eV1Protocol)(),"//").concat((0,c.appHost)(),"/account/activities"),a={account_key:e,media_hashed_id:o};n&&this._isExternallyEmbedded()?(a.first_embed=this._isExternallyEmbedded(),(0,l.xhrPost)(r,JSON.stringify(a),{},{dataType:"json"})):i&&this._isShared()&&(a.first_share=this._isShared(),(0,l.xhrPost)(r,JSON.stringify(a),{},{dataType:"json"}))}}},{key:"_refreshDataFromServer",value:function(t,n){var i=this,o=this.embedOptions().embedHost||e.remote.embedHost();return(0,l.xhrGet)("//".concat(o,"/embed/medias/").concat(this.hashedId(),".json"),{},{dataType:"json"}).then((function(n){return i.publicApi._originalMediaData=n.data.media,i._mediaData=i.publicApi._transformAndUpdateMediaData(),i._newStill&&i._replaceStillAsset(i._newStill),i.publicApi._mediaData=i._mediaData,e.cacheMedia(i.hashedId(),i._mediaData),null==t||t(),i.trigger("refreshed-from-server"),i._mediaData})).catch(n)}},{key:"_replaceStillAsset",value:function(t){var e=this.assets().filter((function(t){return"still_image"!==t.type}));this._mediaData.assets=e,this._mediaData.assets.push(t)}},{key:"_shortAnimArgs",value:function(t){return"function"==typeof t[0]?{callback:t[0]}:(0,y.merge)({},t[0],{callback:t[1]})}}])&&_(n.prototype,r),s&&_(n,s),t;var n,r,s}();n.FAILED=-1,n.PROCESSING=1,n.QUEUED=0,n.READY=2,n.asset=o.one,n.assets=o.filter,n.assetsWithinQualityRange=o.withinQualityRange,n.bakeryHosts=function(){return o.BAKERY_HOSTS},n.isBakeryUrl=o.isBakeryUrl,n.stillAsset=o.still,n.stillUrl=o.stillUrl,n._sanePlayerColor=h.sanePlayerColor,e.mixin(n.prototype,e.bindable),e.mixin(n.prototype,e.logHelpers),n.prototype._logPrefix=function(){var t;return[this.constructor.name,this.hashedId()||"no hashedId",null===(t=this._embedContainer)||void 0===t?void 0:t.id,this.uuid]};var r=n.prototype.trigger;n.prototype.trigger=function(){for(var t,e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return r.apply(this,n),(t=this.publicApi)._triggerNoImpl.apply(t,n)},Object.getOwnPropertyNames(e.PublicApi.prototype).forEach((function(t){var i=e.PublicApi.prototype[t];"function"!=typeof i||n.prototype.hasOwnProperty(t)||function(t,e){n.prototype[t]=function(){var e;return(e=this.publicApi)[t].apply(e,arguments)},n.prototype[t]._originalMethod=e}(t,i)})),e.Player=e.Video=n}}()},function(t,e,n){"use strict";n.d(e,{sanePlayerColor:function(){return i}});var i=function(t){if(t){if(6>(t="".concat(t).replace(/^#/g,"")).length){for(var e="",n=0;n<6-t.length;n++)e+="0";t="".concat(e).concat(t)}return/^[\da-f]{6}$/i.test(t)||(t="636155"),t}return"636155"}},function(t,e){"use strict";function n(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}var i=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.duration=e,this.reset()}return e=t,(i=[{key:"trackSecond",value:function(t){t>=this._secondsWatched.length||(this._secondsWatched[t]+=1,1===this._secondsWatched[t]?this._totalWatched+=1:this._totalRewatched+=1)}},{key:"secondsWatched",value:function(){return this._totalWatched||0}},{key:"secondsWatchedVector",value:function(){return this._secondsWatched}},{key:"reset",value:function(){this._secondsWatched=[];for(var t=0;t<Math.ceil(this.duration);t++)this._secondsWatched.push(0);this._totalWatched=0,this._totalRewatched=0}}])&&n(e.prototype,i),o&&n(e,o),t;var e,i,o}();e.default=i},function(t,e,n){var i,o;i=Wistia,o=n(16),null==i._onFullscreenChange&&(i._onFullscreenChange=function(){return o.fullscreenElement()?i.trigger("enterfullscreen",o.fullscreenElement()):i.trigger("cancelfullscreen")}),i._initializers.initFullscreenTriggers=function(){return o.elemRebind(document,"mozfullscreenchange",i._onFullscreenChange),o.elemRebind(document,"webkitfullscreenchange",i._onFullscreenChange),o.elemRebind(document,"MSFullscreenChange",i._onFullscreenChange),o.elemRebind(document,"fullscreenchange",i._onFullscreenChange)},i._destructors.destroyFullscreenTriggers=function(){return o.elemUnbind(document,"mozfullscreenchange",i._onFullscreenChange),o.elemUnbind(document,"webkitfullscreenchange",i._onFullscreenChange),o.elemUnbind(document,"MSFullscreenChange",i._onFullscreenChange),o.elemUnbind(document,"fullscreenchange",i._onFullscreenChange)}},function(t,e,n){var i,o,r,a,s,u,l;i=Wistia,n(34).eV1Protocol,s=n(36).proto,u=n(44),r=u.doTimeout,o=u.clearTimeouts,l=n(10).seqId,a=n(12).merge,i.BandwidthTest=function(){function t(t){this.opt=t,this.opt=a({minKbps:2500,timeoutLength:4e3,freshFor:36e5},this.opt),this.opt.uuid||(this.opt.uuid=l("bandwidth_test_"))}return t.prototype.start=function(){var t,e,n,i;return null!=(e=this._testXhr)&&e.abort(),this._testStart=(new Date).getTime(),this._testXhr=new XMLHttpRequest,this._testXhr.open("GET",this.testFileUrl(),!0),t=999999+(n=1e6*Math.floor(100*Math.random())),this._testXhr.setRequestHeader("Range","bytes="+n+"-"+t),r(this.uuid+".cancel_bandwidth_test",(i=this,function(){return i.trigger("timeout"),i.fail()}),this.opt.timeoutLength),this._testDataLoaded=0,this._onTestXhrProgress=function(t){return function(e){return t._testDataLoaded=e.loaded,t.trigger("progress",e)}}(this),this._testXhr.addEventListener("progress",this._onTestXhrProgress),this._onTestXhrLoaded=function(t){return function(){return t.succeed()}}(this),this._testXhr.addEventListener("load",this._onTestXhrLoaded),this._testXhr.send(null),this.trigger("started")},t.prototype.fail=function(){return this._sampleKbps(),this._supportsHd=!1,this.saveResult(),this.trigger("failed"),this.end()},t.prototype.succeed=function(){if(this._sampleKbps(),this._supportsHd=!0,this.saveResult(),this.trigger("succeeded"),this.end(),this._suspiciouslyFast())return this._reportSuspiciousBandwidthTest()},t.prototype._reportSuspiciousBandwidthTest=function(){var t,e,n;try{if(this._suspiciouslyFast())return i.Metrics.count("player/suspicious-bandwidth-test",1,{bw_test_time:this._testTime,visitor_key:i.visitorKey.value(),location:("undefined"!=typeof location&&null!==location?null==(e=location.protocol)?void 0:e.length:void 0)&&("undefined"!=typeof location&&null!==location?null==(n=location.hostname)?void 0:n.length:void 0)?location.protocol+"//"+location.hostname:null,connection_type:i.Metrics.connectionType(),agent:navigator.userAgent})}catch(e){return t=e,i.error(t)}},t.prototype._suspiciouslyFast=function(){return.05>this._testTime},t.prototype._sampleKbps=function(){return this._testEnd=(new Date).getTime(),this._testTime=(this._testEnd-this._testStart)/1e3,this._kbps=8*this._testDataLoaded/1e3/this._testTime},t.prototype.endEarly=function(){return null==this._supportsHd&&null!=this._testDataLoaded?(this._sampleKbps(),this._supportsHd=!(1<this._testTime)||this._kbps>=this.opt.minKbps,this.trigger("ended-early"),this.end()):(this.end(),this.trigger("ended-early"))},t.prototype.end=function(){var t,e,n;return this._onTestXhrLoaded&&null!=(t=this._testXhr)&&t.removeEventListener("load",this._onTestXhrLoaded),this._onTestXhrProgress&&null!=(e=this._testXhr)&&e.removeEventListener("progress",this._onTestXhrProgress),null!=(n=this._testXhr)&&n.abort(),this._testXhr=null,o(this.uuid+".cancel_bandwidth_test"),this.trigger("ended")},t.prototype.testFileUrl=function(){return this.opt.testFileUrl||("https:"===s()?"https://embed-ssl.wistia.com/deliveries/6992339c876a95a37250fbe5b0a0eaecca3018a5/file.jpg?bust=2015-12-29a":"http://embed.wistia.com/deliveries/76a57ca47a1978a834d82dcf7eeb03a6.bin?bust=2015-12-29a")},t.prototype.saveKey=function(){return this.opt.saveKey||"bandwidth_test"},t.prototype.saveResult=function(){return i.localStorage(this.saveKey(),{updatedAt:(new Date).getTime(),supportsHd:this._supportsHd,clientKbps:this._kbps})},t.prototype.savedResult=function(){return i.localStorage(this.saveKey())},t.prototype.isFresh=function(){var t;return(new Date).getTime()-((null==(t=this.savedResult())?void 0:t.updatedAt)||0)<this.opt.freshFor},t.prototype.supportsHd=function(){return this._supportsHd||!1},t}(),i.mixin(i.BandwidthTest.prototype,i.bindable)},function(t,e,n){var i,o,r,a,s,u,l,c,f,h,d,p,y,m,v=function(t,e){return function(){return t.apply(e,arguments)}};n(2).default,f=n(45).isVisitorTrackingEnabled,p=n(12),a=p.assign,h=p.merge,l=n(76).getResumableKeyForVideo,u=n(44).doTimeout,m=n(38).xhrPost,i=n(36).Url,d=n(16).pageLoaded,h=n(12).merge,y=n(27).runScript,r=n(110),o=n(112),s=function(t){var e;return null==(e="none"===t)?{true:!1}:e},c=function(t){var e;return{campaign:(e=new i(t._attrs.pageUrl).params).utm_campaign||null,medium:e.utm_medium||null,source:e.utm_source||null}},function(t){t.VideoTracker2||(t.VideoTracker2=function(){function e(t){var e;this.publicApi=t,this.resendAllFailedEvents=v(this.resendAllFailedEvents,this),this.retrySendingFailedEvent=v(this.retrySendingFailedEvent,this),this.isIE=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/MSIE/),this.eventQueue=[],this.initializedOnce=!1,this.monitoring=!1,this._setStartValues(),this.publicApi.hasData((e=this,function(){e.utmParams=c(e.publicApi),e.params=h({transmitInterval:1e3*(e.publicApi._mediaData.trackingTransmitInterval||10)},e.publicApi._opts),e.publicApi._attrs.shouldTrack}))}return e.prototype.NUM_BUCKETS=1e3,e.prototype.conversions={"missing-conversion":0,"pre-roll-email":1,"post-roll-email":2,"mid-roll-email":3,"post-roll-click":4,"mid-roll-click":5,"non-video":6},e.prototype._setStartValues=function(){return this.clockStart=(new Date).getTime(),this._played=!1,this.lastRecordedTime=0,this.lastSeekTime=0,this.lastSecondsWatched=0,this.lastBucket=-1},e.prototype._getAccountKey=function(){return this.publicApi._opts.accountKey||this.publicApi._mediaData.accountKey},e.prototype._getEnabledEmbedOptions=function(){var t,e,n,i,o,r,a,s;for(e in r=(t=this.publicApi.embedOptions()).plugin||{},o={},n={turnstile_enabled:"requireEmail-v1",annotation_link_enabled:"midrollLink-v1",call_to_action_enabled:"postRoll-v1",eventbrite_enabled:"eventbrite",hubspot_form_enabled:"hubspotForm",marketo_form_enabled:"marketoForm"})i=n[e],o[e]=!!r[i]&&("true"===(a=r[i].on)||!0===a);return o.auto_play_enabled="true"===(s=t.autoPlay)||!0===s,o.looping_enabled="loop"===t.endVideoBehavior,o},e.prototype._data=function(){var t;return t=h({account_key:this._getAccountKey(),event_details:this.eventQueue,foreign_data:this.publicApi.foreignData(),media_duration:parseFloat(this.publicApi._mediaData.duration),media_id:this.publicApi._mediaData.mediaKey,media_type:this._mediaType(),referrer:this.publicApi._attrs.pageUrl,referrer_url:this.publicApi._attrs.referrerUrl,resumable_key:this.resumableKey(),session_id:this.visitorKey(),utm_params:this.utmParams,visitor_version:this.videoTrackerLocalStorage.getVisitorVersion(),event_version:"1.0.0",player_type:"es5",enabled_embed_options:this._getEnabledEmbedOptions()},this.videoTrackerSession.fetchSessionData()),this.publicApi.email()&&(t.email=this.publicApi.email()),(this.publicApi._opts.anonymizeIp||!f())&&(t.anonymizeIp=!0),this.params.conversionType&&(t.conversion_type=this.conversions[this.params.conversionType]),this.params.conversionData&&(t.conversion_data=this.params.conversionData),this.publicApi._opts.channel&&(t.channel=this.publicApi._opts.channel),this.publicApi._mediaData.channelId&&(t.channel_id=this.publicApi._mediaData.channelId),this.publicApi._mediaData.episodeId&&(t.episode_id=this.publicApi._mediaData.episodeId),this.publicApi._mediaData.projectId&&(t.project_id=this.publicApi._mediaData.projectId),JSON.stringify(t)},e.prototype._mediaType=function(){return this.publicApi._mediaData.mediaType},e.prototype.reset=function(){return this.stopMonitoring(),this._setStartValues(),this.initializedOnce=!1},e.prototype.initialize=function(){return this.initializedOnce||(this.publicApi.info("video tracker initialize"),this.videoTrackerLocalStorage=new o(this._getAccountKey(),this.publicApi.hashedId(),(t=this,function(){var e;return(e=t.publicApi).info.apply(e,arguments)})),this._failedEventsQueue=[],this._retryTimer=null,this._retryInterval=1e3,this.initializedOnce=!0,this._setStartValues(),this.log("initialized"),this.videoTrackerLocalStorage.recordLoad(),this.debounceTransmit()),this;var t},e.prototype.monitor=function(){return this.initializedOnce||this.publicApi.hasData((e=this,function(){return e.videoTrackerSession=new r(e.publicApi)})),this.publicApi.embedded(function(e){return function(){return e.stopMonitoring(),e.publicApi.info("_tracker.monitor"),e.initialize(),null==e.onPlaybackRateChange&&(e.onPlaybackRateChange=function(t){return e.log("playbackRateChange",null,t)}),null==e.onPlay&&(e.onPlay=function(){if(e.log("play"),e.videoTrackerLocalStorage.recordPlay(),!e._played)return e._played=!0,e.debounceTransmit()}),null==e.onPause&&(e.onPause=function(){if(.3<Math.abs(e.publicApi.duration()-e.publicApi.time()))return e.log("pause")}),null==e.onEnd&&(e.onEnd=function(){return e.log("end"),e.transmit()}),null==e.onSeek&&(e.onSeek=function(t,n){if(!(5>Math.abs(n-t)))return e.lastSeekTime=n,e.log("seek")}),null==e.onPercentWatchedThreshold&&(e.onPercentWatchedThreshold=function(t){return e.log("percentWatchedThreshold",null,t),e.transmit()}),e.monitoring=!0,e.publicApi.rebind("play",e.onPlay),e.publicApi.rebind("pause",e.onPause),e.publicApi.rebind("end",e.onEnd),e.publicApi.rebind("seek",e.onSeek),e.publicApi.rebind("playbackratechange",e.onPlaybackRateChange),e.publicApi.rebind("percentWatchedThreshold",e.onPercentWatchedThreshold),e.videoTrackerSession.setupBindings(),"playing"===e.publicApi.state()&&e.onPlay(),u(e.publicApi.uuid+".start_tracking_timeout",(function(){return e.publicApi.info("_tracker start tracking_loop"),t.eventLoop.add(e.publicApi.uuid+".tracking_loop",e.params.transmitInterval,(function(){return"playing"===e.publicApi.state()&&e.log("update"),e.transmit()}))}),Math.random()*e.params.transmitInterval+1e3)}}(this));var e},e.prototype.stopMonitoring=function(){if(this.publicApi.info("_tracker.stopMonitoring"),this.monitoring=!1,this.onPlay&&this.publicApi.unbind("play",this.onPlay),this.onPause&&this.publicApi.unbind("pause",this.onPause),this.onEnd&&this.publicApi.unbind("end",this.onEnd),this.onSeek&&this.publicApi.unbind("seek",this.onSeek),this.onPercentWatchedChanged&&this.publicApi.unbind("percentwatchedchanged",this.onPercentWatchedChanged),this.videoTrackerSession)return this.videoTrackerSession.removeBindings()},e.prototype.distilleryUrl=function(){return this.publicApi._opts.statsUrl||this.publicApi._mediaData.distilleryUrl},e.prototype.sendToDistillery=function(e){return t.detect.browser.msie&&11>t.detect.browser.version?this.sendDataUsingJsonp(e):this.sendDataUsingXhr(e).catch((n=this,function(e){return t.Metrics.videoCount(n.publicApi,"player/distillery-error-response/"+e.status)}));var n},e.prototype.sendDataUsingXhr=function(t){return 3e4,m(this.distilleryUrl(),encodeURIComponent(t),{"content-type":"text/plain"},{timeout:3e4})},e.prototype.sendDataUsingJsonp=function(t){var e;return 3e4,e=this.distilleryUrl()+"?data="+encodeURIComponent(t),this.isIE&&(e+="&ie=1"),y(e,3e4)},e.prototype.retrySendingFailedEvent=function(){return this.sendToDistillery(this._failedEventsQueue.shift())},e.prototype.resendAllFailedEvents=function(){var t,e,n,i,o,r;if(n=this._failedEventsQueue.length,clearTimeout(this._retryTimer),0<n){for(350,r=this._failedEventsQueue,t=function(t){return function(e,n){return setTimeout((function(){return t.sendToDistillery(e)}),350*n)}}(this),e=i=0,o=r.length;i<o;e=++i)t(r[e],e);return this._failedEventsQueue=[]}},e.prototype.readyToTrack=function(e){return this.publicApi.hasData((function(){return d((function(){return t.visitorKey.ready().then(e)}))}))},e.prototype.transmit=function(e){return null==e&&(e={}),this.publicApi._attrs.shouldTrack?this.readyToTrack((n=this,function(){var i;if(0<n.eventQueue.length||e.force)return i=n._data(),n.publicApi.info("_tracker.transmit",i),n.publicApi.trigger("transmit-stats",i),n.sendToDistillery(t.base64.encode(i)),n.eventQueue=[]})):void 0;var n},e.prototype.debounceTransmit=function(){return u(this.publicApi.uuid+".transmit_play_data",(t=this,function(){return t.transmit()}),350);var t},e.prototype.log=function(t,e,n){var i,o,r,a;if(this.publicApi._attrs.shouldTrack)return this.publicApi.info("_tracker.log",t,e,n),this.videoTrackerSession.ping(),r=(a=(o=this.videoTrackerSession.secondsWatched())-this.lastSecondsWatched)/this.publicApi.duration(),this.lastSecondsWatched=o,"conversion"===t?(this.params.conversionType=e,this.params.conversionData=n,this.transmit({force:!0})):(i={key:t,value:this.timeInVideo(),timeDelta:this.timeDelta(),uniquePlayedTime:a,uniquePlayedRatio:r},"initialized"===t?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastLoadForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastLoadForMedia(),i.isUnique=s(this.videoTrackerLocalStorage.lastLoadForMedia())):"play"===t?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastPlayForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastPlayForMedia(),i.isUnique=s(this.videoTrackerLocalStorage.lastPlayForMedia()),this._played?i.key="unpause":(this.addPlayedTime(i),this.addBuckets(i),this.lastRecordedTime=this.timeInVideo())):"seek"===t?(this.addPlayedTime(i,this.lastSeekTime),this.addBuckets(i,this.lastSeekTime),this.lastRecordedTime=this.timeInVideo()):"update"===t?(this.addPlayedTime(i),this.addBuckets(i),this.lastRecordedTime=this.timeInVideo()):"playbackRateChange"===t||"percentWatchedThreshold"===t?i.value=n:"end"==t&&(this.addPlayedTime(i),this.addBuckets(i),this.lastBucket=-1,this.lastRecordedTime=this.timeInVideo()),this.publicApi.debug("_tracker.log",i),this.eventQueue.push(i))},e.prototype.addPlayedTime=function(t,e){var n,i;return n=void 0===e?this.timeInVideo():e,i=Math.max(n-this.lastRecordedTime,0),t.playedTime=i+""},e.prototype.addBuckets=function(t,e){var n,i;if("beforeplay"!==this.publicApi.state()&&(i=this.publicApi.time(),n=this._timeToBucket(e||i),this.lastBucket<n&&(t.startBucket=this.lastBucket+1,t.endBucket=n),this.lastBucket=this._timeToBucket(i),e))return this.lastBucket-=1},e.prototype._timeToBucket=function(t){return Math.floor(t/this.publicApi.duration()*this.NUM_BUCKETS)},e.prototype.logConversionOpportunity=function(e){var n;if(this.publicApi._attrs.shouldTrack)return this.videoTrackerSession.ping(),null==e.co_key?t.Metrics.videoCount(this.publicApi,"player/no-co-key",1):(n={key:"conversion",value:e,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logConversionOpportunity",e),this.eventQueue.push(n))},e.prototype.logAction=function(t,e){var n,i;return null==e&&(e={}),this.videoTrackerSession.ping(),n={time:this.publicApi.time(),key:t,type:"default",category:"default",text:"test",uniqueToVisitor:!1},i={value:a({},n,e),key:"action",timeDelta:this.timeDelta()},this.eventQueue.push(i)},e.prototype.logCaptionSelection=function(t){var e;if(this.publicApi._attrs.shouldTrack)return this.videoTrackerSession.ping(),t.caption_key?(e={key:"caption",value:t,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logCaptionSelection",t),this.eventQueue.push(e)):void 0},e.prototype.logChapterClick=function(t,e){return this.logAction("chapterConversion",{text:t.title,type:"conversion",category:"chapter",uniqueToVisitor:!0,time:e}),this.logAction("chapterSelection-"+t.id,{text:t.title,type:"interaction",category:"chapter",time:e})},e.prototype.logShareClick=function(t){return this.logAction("shareConversion",{text:t,type:"conversion",category:"share",uniqueToVisitor:!0}),this.logAction("shareClick-"+t,{text:t,type:"interaction",category:"share"})},e.prototype.resumableKey=function(){return!1===this.publicApi.embedOptions().resumable?null:l(this.publicApi.hashedId())},e.prototype.timeInVideo=function(){var t;return null==(t=this.publicApi.time())&&(t="beforeplay"===this.publicApi.state()?0:this.publicApi.duration()),t.toFixed(1)},e.prototype.timeDelta=function(){return(new Date).getTime()-this.clockStart},e.prototype.visitorKey=function(){return this.publicApi.visitorKey()},e.prototype.eventKey=function(){if(this.videoTrackerSession)return this.videoTrackerSession.eventKey()},e}())}(Wistia)},function(t,e,n){var i,o,r,a;n(2).default,r=n(111).default,i=n(106).default,a=n(101).uniqId,o=function(){function t(t){this.publicApi=t,this.lastFetchTime=(new Date).getTime(),this.secondsWatchedTracker=new i(this.publicApi.duration())}return t.prototype.EVENT_KEY_REFRESH_INTERVAL=1800,t.prototype.withRefresh=function(t){if(r(this.lastFetchTime)>this.EVENT_KEY_REFRESH_INTERVAL&&this.reset(),this.lastFetchTime=(new Date).getTime(),"function"==typeof t)return t()},t.prototype.fetchSessionData=function(){return this.withRefresh((t=this,function(){return{event_key:t.eventKey(),seconds_watched:t.secondsWatchedTracker.secondsWatched()}}));var t},t.prototype.secondsWatched=function(){return this.withRefresh((t=this,function(){return t.secondsWatchedTracker.secondsWatched()}));var t},t.prototype.ping=function(){return this.withRefresh()},t.prototype.setupBindings=function(){return null==this.binding&&(this.binding=(t=this,function(e){return t.secondsWatchedTracker.trackSecond(e)})),this.publicApi.rebind("secondchange",this.binding);var t},t.prototype.reset=function(){return this._eventKey=null,this.secondsWatchedTracker.reset()},t.prototype.removeBindings=function(){if(this.binding)return this.publicApi.unbind("secondchange",this.binding)},t.prototype.eventKey=function(){return this.isValidKey(this._eventKey)||(this._eventKey=a("9a3822b2e749c6cd22c74e307b40f5b5".substring(0,7)+"_"),this.publicApi.trigger("eventkeychange",this._eventKey)),this._eventKey},t.prototype.isValidKey=function(t){return 25<(null==t?void 0:t.length)&&/^[a-z0-9_\-\.]+$/i.test(t)},t}(),t.exports=o},function(t,e){"use strict";e.default=function(t){return t?Math.round(((new Date).getTime()-t)/1e3):null}},function(t,e,n){var i,o;n(2).default,o=n(111).default,i=function(){function t(t,e,n){this.accountKey=t,this.hashedId=e,this.logFn=n}return t.prototype.nullToNone=function(t){return null===t?"none":t},t.prototype.lastLoadForAccount=function(){return this._lastLoadForAccount||(this._lastLoadForAccount=this.nullToNone(o(Wistia.localStorage("accounts_loaded."+this.accountKey))))},t.prototype.lastLoadForMedia=function(){return this._lastLoadForMedia||(this._lastLoadForMedia=this.nullToNone(o(Wistia.localStorage("medias_loaded."+this.hashedId))))},t.prototype.lastPlayForAccount=function(){return this._lastPlayForAccount||(this._lastPlayForAccount=this.nullToNone(o(Wistia.localStorage("accounts_played."+this.accountKey))))},t.prototype.lastPlayForMedia=function(){return this._lastPlayForMedia||(this._lastPlayForMedia=this.nullToNone(o(Wistia.localStorage("medias_played."+this.hashedId))))},t.prototype.lastRecordingOfActionForMedia=function(t){return this.nullToNone(o(Wistia.localStorage("action_recorded."+this.hashedId+"."+t)))},t.prototype.recordLastActionForMedia=function(t){return Wistia.localStorage("action_recorded."+this.hashedId+"."+t,(new Date).getTime())},t.prototype.recordLoad=function(){return this.logFn("recordLoad"),Wistia.localStorage("accounts_loaded."+this.accountKey,(new Date).getTime()),Wistia.localStorage("medias_loaded."+this.hashedId,(new Date).getTime())},t.prototype.recordPlay=function(){return this.logFn("recordPlay"),Wistia.localStorage("accounts_played."+this.accountKey,(new Date).getTime()),Wistia.localStorage("medias_played."+this.hashedId,(new Date).getTime())},t.prototype._saveVisitorVersion=function(t){if(null==t&&(t=1),null==Wistia.localStorage("visitor_version"))return Wistia.localStorage("visitor_version",t)},t.prototype.getVisitorVersion=function(){return Wistia.localStorage("visitor_version")||(this._saveVisitorVersion(0),0)},t.prototype.clearActionRecordings=function(){return["chapterImpression","chapterConversion","shareImpression","shareConversion"].forEach((t=this,function(e){return Wistia.localStorage("action_recorded."+t.hashedId+"."+e,"",!0)}));var t},t}(),t.exports=i},function(t,e,n){var i;i=n(39),Wistia.base64||(Wistia.base64={}),Wistia.base64.decode||(Wistia.base64._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Wistia.base64.encode=i.base64Encode)},function(t,e,n){var i;i=n(39),Wistia.base64||(Wistia.base64={}),Wistia.base64.decode||(Wistia.base64._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Wistia.base64.decode=i.base64Decode)},function(t,e,n){!function(t){var e,i,o,r,a,s,u,l;if(!t.remote)a=n(35),n(27),e=n(49),i=t.Hosts=n(34),o=t.MediaData=n(88),r=t.PlaylistData=n(116),s=(l=n(89)).jsonp,u=l.jsonpPlus,t.remote={},t.remote.appHostname=a,t.remote.embedHost=i.cdnFastWistiaComHost,t.remote.externalEmbedHost=i.cdnFastWistiaNetHost,t.remote.appHost=i.appHost,t.remote.assetHost=i.deliveryHost,t.remote.assetUrlWithCorrectHost=function(t,n,i){return e.assetUrlWithCorrectHost(n,i)},t.remote.media=o.fetchMedia,t.cacheMedia=o.cacheMedia,t.cacheAbTest=o.cacheAbTest,t.uncacheMedia=o.uncacheMedia,t.uncacheAbtest=o.uncacheAbTest,t.mediaFromCache=o.mediaFromCache,t.abTestFromCache=o.abTestFromCache,t.remote.playlist=r.fetchPlaylist,t.remote.fetch=u,t.jsonp={get:s}}(Wistia)},function(t,e,n){"use strict";n.r(e),n.d(e,{fetchPlaylist:function(){return c}});var i=n(2),o=n(89),r=n(36),a=n(34),s=n(21),u=n(10),l=n(44);null==i.default._remotePlaylist&&(i.default._remotePlaylist={});var c=function(t,e){var n=i.default._remotePlaylist[t];if(n)(0,l.doTimeout)("remote-playlist.".concat(t,".").concat((0,u.seqId)()),(function(){e(n)}));else{var c="".concat((0,r.proto)(),"//").concat((0,a.cdnFastWistiaComHost)(),"/embed/playlists/").concat(t,".json");(0,o.jsonpPlus)(c,{},(function(n){i.default._remotePlaylist[t]=n,e(n)}),{onerror:function(){s.wlog.error("Timed out fetching ".concat(c))},timeout:1e4})}}},function(t,e,n){!function(t){var e,i,o,r,a,s,u,l;if(!t.Metrics)n(34).metricsHost,l=(a=n(43)).send,e=a.count,u=a.sample,r=n(12).merge,s=n(16),o=s.elemWidth,i=s.elemHeight,t.Metrics={count:e,sample:u,send:l,videoCount:function(t,e,n,i){return null==n&&(n=1),this.videoSend(t,"count",e,n,i)},videoSample:function(t,e,n,i){return this.videoSend(t,"sample",e,n,i)},videoSend:function(e,n,a,s,u){return null==u&&(u={}),"function"==typeof e.hasData?e.hasData((l=this,function(){var c,f,h,d,p,y,m,v,g,b,_,w,S,k,T;if(c=("function"==typeof e.bandwidthTest?e.bandwidthTest().savedResult():void 0)||{},u=r({location:("undefined"!=typeof location&&null!==location?null==(v=location.protocol)?void 0:v.length:void 0)&&("undefined"!=typeof location&&null!==location?null==(g=location.hostname)?void 0:g.length:void 0)?location.protocol+"//"+location.hostname:null,agent:navigator.userAgent,account_key:null==(b=e._mediaData)?void 0:b.accountKey,at:e.time(),video_id:e.hashedId(),embed_type:e.playerType,duration:e.duration(),client_kbps:c.clientKbps,supports_hd:c.supportsHd,autoplay:null!=(_=e._opts)&&_.autoPlay,in_iframe:top!==self,device_pixel_ratio:window.devicePixelRatio,window_width:o(window),window_height:i(window),video_width:e.videoWidth(),video_height:e.videoHeight(),visitor_key:null==(w=e._tracker)?void 0:w.visitorKey(),event_key:null==(S=e._tracker)?void 0:S.eventKey(),event_time_delta:null==(k=e._tracker)?void 0:k.timeDelta(),connection_type:l.connectionType(),version:9,channel:t.channelName},u),/romulus|html5|vulcan/.test(e.playerType)&&(t.detect.trident?u.errorState=null==(T=e.elem())||null==(h=T.error)?void 0:h.code:u.errorState=null==(d=e.elem())?void 0:d.error),null!=e._cacheStatus&&(u.cache_status=e._cacheStatus),null!=e._assetServer&&(u.asset_server=e._assetServer),null!=e._cacheHit&&(u.cache_hit=e._cacheHit),e.inFullscreen&&(u.in_fullscreen=e.inFullscreen()),null==e._substream?(u.substream=null,u.adaptive=null,f=null==(p=e.data)?void 0:p.asset):(u.substream=e._substream.index,u.adaptive=e._substream.adaptive,u.current_level=e._substream.currentLevel,u.all_level_names=e._substream.allLevelNames,f=e._substream.asset,u.hls_error_counts=e._substream.hlsErrorCounts()),null!=f&&(u.asset_type=f.type,u.asset_slug=f.slug,u.bitrate=f.bitrate,u.asset_height=f.height,u.asset_width=f.width),0<(null==(y=e.videoElem)||null==(m=y.buffered)?void 0:m.length)&&(u.bufferedFrom0=e.videoElem.buffered.end(0)),null!=e._timeToFirstByte&&(u.time_to_first_byte=e._timeToFirstByte),u.buffered=null==e.totalBuffered?void 0:e.totalBuffered(),u.played=null==e.totalPlayed?void 0:e.totalPlayed(),l.send(n,a,s,u),e._mediaData&&e._mediaData.accountKey&&e._mediaData.accountSpecificMetrics)return l.send(n,e._mediaData.accountKey+"/"+a,s,u)})):void 0;var l},countEvent:function(t,e,n){var i;return n||(n=e),null==(i=this._private.countEventCallbacks)[n]&&(i[n]=this._private.mkCountEventCallback(e,n)),t.rebind(e,this._private.countEventCallbacks[n])},countEventOnce:function(t,e,n){var i;return n||(n=e),null==(i=this._private.countEventOnceCallbacks)[n]&&(i[n]=this._private.mkCountEventOnceCallback(e,n)),t.rebind(e,this._private.countEventOnceCallbacks[n])},sampleEvent:function(t,e,n){var i;return n||(n=e),null==(i=this._private.sampleEventCallbacks)[n]&&(i[n]=this._private.mkSampleEventCallback(e,n)),t.rebind(e,this._private.sampleEventCallbacks[n])},countShowLoadingOnce:function(t){var e,n;return e=-1,t.bind("waiting",(n=this,function(i){return 2>e&&2<=i?(n.videoCount(t,"player/show-loading/first",1),e=i,t.unbind):e=i}))},countShowLoadingAll:function(t){var e,n;return e=-1,t.bind("waiting",(n=this,function(i){return 2>e&&2<=i&&n.videoCount(t,"player/show-loading/all",1),e=i})),t.bind("done-waiting",(function(){return e=-1}))},countShowLoadingLongTimeOnce:function(t){var e,n;return e=-1,t.bind("waiting",(n=this,function(i){return 5>e&&5<=i?(n.videoCount(t,"player/show-loading-long-time/first",1),e=i,t.unbind):e=i}))},countShowLoadingLongTimeAll:function(t){var e,n;return e=-1,t.bind("waiting",(n=this,function(i){return 5>e&&5<=i&&n.videoCount(t,"player/show-loading-long-time/all",1),e=i})),t.bind("done-waiting",(function(){return e=-1}))},assetBuckets:function(e){var n,i;return n=e.engine?e.engine.currentAsset():e._currentAsset,i=t.detect.iphone||t.detect.android||t.detect.blackberry||/mobile/i.test(navigator.userAgent),n?i?t.detect.iphone?["mobile","iphone"]:t.detect.android?["mobile","android"]:["mobile"]:/hls/.test(n.type)?["hls"]:/md/.test(n.type)?["md"]:/hd/.test(n.type)?["hd"]:["sd"]:[]},connectionType:function(){var t;return null==(t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection)?void 0:t.type},sumTimeRanges:function(t){var e,n,i,o;if(null==t)return null;for(o=0,e=n=0,i=t.length;0<=i?n<i:n>i;e=0<=i?++n:--n)o+=t.end(e)-t.start(e);return o},millisecondsSince:function(t){return(new Date).getTime()-t},_private:{countEventCallbacks:{},mkCountEventCallback:function(e,n){return function(i){return n||(n=e),t.Metrics.videoCount(this,"player/"+n,i)}},countEventOnceCallbacks:{},mkCountEventOnceCallback:function(e,n){return function(i){return n||(n=e),t.Metrics.videoCount(this,"player/"+n,i),this.unbind}},sampleEventCallbacks:{},mkSampleEventCallback:function(e,n){return function(i){return n||(n=e),t.Metrics.videoSample(this,"player/"+n,i)}}}}}(Wistia)},function(t,e,n){!function(t){var e,i,o,r,a,s,u,l,c,f;if(t.Plugin||(t.Plugin={}),!t.Plugin.Base)a=n(34),i=a.eV1HostWithPort,o=a.eV1Protocol,e=n(92).allow3rdParty,r=n(12).merge,s=n(98),c=s.wData,f=s.wRemoveData,l=n(10).seqId,u=n(27).runScripts,t.Plugin.Base=function(){function e(){this.pluginName="plugin"}return e.prototype.instances=function(){return c(["plugins",this.pluginName,this.video.uuid])},e.prototype.register=function(t){var e;return(e=this.playlist||this.video||this.audio).plugins[this.uuid]=t,c(["plugins",this.pluginName,e.uuid,this.uuid],t)},e.prototype.remove=function(e){var n;if(null==e&&(e={}),(n=this.playlist||this.video||this.audio).plugins[this.uuid]=null,f(["plugins",this.pluginName,n.uuid,this.uuid]),n.plugins[this.uuid]===this&&delete n.plugins[this.uuid],n.plugin[this.pluginName]===this&&delete n.plugin[this.pluginName],!e.dontFit)return t.grid.fitHorizontal(n),t.grid.fitVertical(n)},e.prototype.fit=function(){},e.prototype.init=function(t,e){return null==t.plugins&&(t.plugins={}),(null==t?void 0:t.playlist)?this.playlist=t:this.video=t,this.target=this.playlist||this.video||this.audio,this.options=e||{},this.params=r({},e||{}),this.uuid=this.params.uuid||l("wistia_","_plugin")},e}(),t.plugin||(t.plugin=function(e,n){var i,o,r,a,s,u;if((i=null==(a=t.pluginQueue)||null==(s=a[e])?void 0:s.shift())&&(r=function(){var t,o;return i.video.info("initializing plugin",e,i.options),t=n(i.video._impl||i.video,i.options)||!0,i.video.plugin[e]=t,i.video._impl&&(i.video._impl.plugin[e]=t),i.video.trigger("plugininitialized",e),null==(o=i.video._pluginStopGos)?void 0:"function"==typeof o[e]?o[e](!0,t):void 0},o=function(){return i.options.initBeforeHasData?r():i.video.hasData(r)},!0!==i.options.initBeforeHasData&&(null==(u=i.video)?void 0:u.looksDown())?(i.video.notice('W.plugin: delaying initialization of plugin until "up"',e,i.options),i.video.bind("up",(function(){return o(),this.unbind}))):i.video._implVersion===i.implVersion?o():i.video.notice("W.plugin impl changed, ignoring initialization",e,i.options)),!t.plugin[e])return t.plugin[e]=n},t.plugin._prefetched={},t.plugin._inject=function(e,n,r){var a,s;if(null==r&&(r={}),!1!==r.on)return a=o()+"//"+i()+"/assets/external/"+n+".js",s=[{name:n,options:r,src:r.src&&t.plugin._allow3rdParty(e.options)?r.src:a,async:!0}],t.plugin._setFnForDefinedPlugins(e,s),t.plugin._execQueue(e,s)},t.plugin._allow3rdParty=function(t){return e(t)},t.plugin._setFnForDefinedPlugins=function(e,n){var i,o,r,a;for(r=[],i=0,o=n.length;i<o;i++)a=n[i],t.plugin[a.name]&&r.push(function(n){return n.fn=function(){var i;return i=function(){var i,o,r;return o=t.plugin[n.name](e._impl||e,n.options)||!0,e.plugin[n.name]=o,e._impl&&(e._impl.plugin[n.name]=o,e.trigger("plugininitialized",n.name)),null==(r=e._pluginStopGos)?void 0:"function"==typeof r[i=n.name]?r[i](!0,o):void 0},n.options.initBeforeHasData?i():e.hasData(i)},n.async=!1}(a));return r},t.plugin._queueUndefinedPlugins=function(e,n){var i,o,r,a,s,u;for(null==t.pluginQueue&&(t.pluginQueue={}),s=[],i=0,o=n.length;i<o;i++)(a=n[i]).subScripts?s.push(function(){var n,i,o,s;for(s=[],n=0,i=(o=a.subScripts).length;n<i;n++)u=o[n],r=u.name||u.src,null==t.pluginQueue[r]&&(t.pluginQueue[r]=[]),a.fn?s.push(void 0):s.push(t.pluginQueue[r].push({video:e,implVersion:e._implVersion,options:u.options}));return s}()):(r=a.name||a.src,null==t.pluginQueue[r]&&(t.pluginQueue[r]=[]),a.fn?s.push(void 0):s.push(t.pluginQueue[r].push({video:e,implVersion:e._implVersion,options:a.options})));return s},t.plugin._execQueue=function(e,n,i){return t.plugin._queueUndefinedPlugins(e,n),u(n).then(i)},t.plugin._init=function(e,n,i){var o,r;return r=e.charAt(0).toUpperCase()+e.substr(1),(o=new(0,t.Plugin[r])).init(n,i),o},t.plugin._instance=function(t,e,n){return c(["plugins",t,e.uuid,n])},t.plugin._remove=function(e,n,i){var o;null!=(o=t.plugin._instance(e,n,i))&&o.remove()},t.plugin._isActive=function(e,n,i){return!!t.plugin._instance(e,n,i)},t.plugin._defined=function(){var e,n,i,o;for(e in i=[],n=t.plugin)o=n[e],/^_/.test(e)||i.push({name:e,options:o});return i})}(Wistia)},function(t,e,n){!function(t){var e;if(!t.localStorage)e=n(87),t.localStorage=e.setOrGet,t.removeLocalStorage=e.removeLocalStorage,t.dumpLocalStorage=e.dumpLocalStorage,t._initializers.initLocalStorage=function(){return e.init()},t._destructors.destroyLocalStorage=function(){return e.uncache()}}(Wistia)},function(t,e,n){var i,o,r,a,s,u,l,c,f,h,d,p,y;i=Wistia,d=n(16),o=d.addInlineCss,s=d.elemAppend,u=d.elemFromObject,l=d.elemHeight,c=d.elemRemove,f=d.elemStyle,h=d.elemWidth,a=n(93).countMetric,p=n(10).seqId,i.gridify||(i.gridifyCss=function(t){return t.replace(/_grid$/,""),"#"+t+"_wrapper{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;font-family:Arial,sans-serif;font-size:14px;height:100%;position:relative;text-align:left;width:100%;}\n#"+t+"_wrapper *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}\n#"+t+"_above{position:relative;}\n#"+t+"_main{display:block;height:100%;position:relative;}\n#"+t+"_behind{height:100%;left:0;position:absolute;top:0;width:100%;}\n#"+t+"_center{height:100%;overflow:hidden;position:relative;width:100%;}\n#"+t+"_front{display:none;height:100%;left:0;position:absolute;top:0;width:100%;}\n#"+t+"_top_inside{position:absolute;left:0;top:0;width:100%;}\n#"+t+"_top{width:100%;position:absolute;bottom:0;left:0;}\n#"+t+"_bottom_inside{position:absolute;left:0;bottom:0;width:100%;}\n#"+t+"_bottom{width:100%;position:absolute;top:0;left:0;}\n#"+t+"_left_inside{height:100%;position:absolute;left:0;top:0;}\n#"+t+"_left{height:100%;position:absolute;right:0;top:0;}\n#"+t+"_right_inside{height:100%;right:0;position:absolute;top:0;}\n#"+t+"_right{height:100%;left:0;position:absolute;top:0;}\n#"+t+"_below{position:relative;}"},i.gridifyHtml=function(t){return{id:t+"_wrapper",childNodes:[{id:t+"_above"},{id:t+"_main",childNodes:[{id:t+"_behind"},{id:t+"_center"},{id:t+"_front"},{id:t+"_top_inside",childNodes:{id:t+"_top"}},{id:t+"_bottom_inside",childNodes:{id:t+"_bottom"}},{id:t+"_left_inside",childNodes:{id:t+"_left"}},{id:t+"_right_inside",childNodes:{id:t+"_right"}}]},{id:t+"_below"}]}},i.createGrid=function(t,e){var n,o;for(o in n=i.createGridSkeleton(),i.initGridEventListeners(n),i.initGridDimensions(t,n,e),n)"STYLE"!==n[o].nodeName&&!0!==t._opts._inLegacyPlaylist&&r(n[o],t);return n},r=function(t,e){return t.originalAppendChild=t.appendChild,t.originalAppend=t.append,t.originalPrepend=t.prepend,t.appendChild=function(n,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==i._hasTrackedGrid&&(i._hasTrackedGrid=!0,y(e)),t.originalAppendChild(n)},t.append=function(n,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==i._hasTrackedGrid&&(i._hasTrackedGrid=!0,y(e)),t.originalAppend(n)},t.prepend=function(n,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==i._hasTrackedGrid&&(i._hasTrackedGrid=!0,y(e)),t.originalPrepend(n)}},y=function(t){return a("custom-grid-append",1,{hashedId:t._mediaData.hashedId,href:window.location.href,plugins:i.plugin._defined()})},i.createGridSkeleton=function(){var t,e,n,r,a,l,h,d;for(e=p("wistia_grid_"),n=u(i.gridifyHtml(e)),t=o(n,i.gridifyCss(e)),(l={}).css=t,l.root=n,f(n,{display:"none"}),s(document.body,n),r=0,a=(d=["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"]).length;r<a;r++)l[h=d[r]]=document.getElementById(e+"_"+h);return c(n),f(n,{display:"block"}),l},i.initGridEventListeners=function(t){return t.center.addEventListener("scroll",(function(){return t.center.scrollTop=0}))},i.initGridDimensions=function(t,e,n){var i,o;if(null==n&&(n={}),!1!==n.initDimensions)return o=t._embedContainer,i=t.chrome,t._opts,i.style.height=l(o)+"px",e.main.style.width=h(o)+"px"},i.gridify=function(t,e){var n,r,a,s,u,c;for(u={},n=e.id+"_grid",e.innerHTML=i.generate.html(i.gridifyHtml(n)),r=0,a=(s=["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"]).length;r<a;r++)u[c=s[r]]=document.getElementById(n+"_"+c);return o(u.wrapper,i.gridifyCss(n)),u.wrapper.style.height=l(e)+"px",u.main.style.width=h(e)+"px",u},i.isGridElem=function(t,e){var n;for(n in t)if(e===t[n])return!0;return!1},i.grid={},i.grid.allNodesHidden=function(t){var e,n,i;if(0===t.length)return!0;for(e=0,n=t.length;e<n;e++)if((i=t[e]).style&&"none"!==i.style.display)return!1;return!0},i.grid.zeroEmptySections=function(t){var e,n,o,r,a,s;for(a=[],n=0,o=(r=["top","bottom","left","right","above","below"]).length;n<o;n++)s=r[n],(e=t.grid[s]).childNodes.length?i.grid.allNodesHidden(e.childNodes)?(e.style.height="0px",e.style.fontSize="0px",e.style.lineHeight="0px",a.push(e.isEmpty=!0)):(e.style.height="",e.style.fontSize="",a.push(e.style.lineHeight="")):(e.appendChild(document.createTextNode(" "),{wistiaGridCaller:!0}),e.style.height="0px",e.style.fontSize="0px",e.style.lineHeight="0px",a.push(e.isEmpty=!0));return a},i.grid.wrapperHeight=function(t){var e;return e=t.grid.wrapper,l(e)},i.grid.wrapperWidth=function(t){var e;return e=t.grid.wrapper,h(e)},i.grid.fitVertical=function(t){var e,n,o,r,a;t._opts.dontFit||(i.grid.zeroEmptySections(t),o=(n=t.grid).main,n.wrapper,a=Math.max(l(n.above),l(n.top)),e=Math.max(l(n.below),l(n.bottom)),r=Math.max(0,i.grid.wrapperHeight(t)-a-e),o.style.height=r+"px",0===h(n.left)&&(o.style.left="0px"),o.style.marginTop=l(n.top)+"px")},i.grid.fitHorizontal=function(t){var e,n,o,r,a;t._opts.dontFit||(i.grid.zeroEmptySections(t),(e=t.grid).wrapper,o=e.main,n=h(e.left),a=h(e.right),r=i.grid.wrapperWidth(t)-n-a,o.style.width=r+"px",o.style.left=n+"px")},i.grid.fit=function(t,e){/left|right/.test(e)?i.grid.fitHorizontal(t):/top|bottom|above|below/.test(e)&&i.grid.fitVertical(t),t.ieSizeHack()})},function(t,e,n){!function(t){var e,i,o,r,a,s,u,l,c,f,h,d,p,y,m,v;if(!t.embeds)t.embeds={},e=n(91),v=n(21).wlog,h=n(17).onDocReady,o=n(122).asyncChain,m=n(39).throttle,p=n(16),u=p.elemClasses,l=p.elemHasClass,c=p.elemMutationObserver,d=n(36).queryParamsToObject,a=n(44).clearTimeouts,y=n(12),r=y.cast,f=y.isObject,i=y.assign,s=y.clone,t.embeds.setup=function(e){return t.embeds.notEmbedding((function(){var n;if(h(n=function(){var n,i,r,a,s,u,l,c,f;t.embeds.notEmbedding(!1),a=[];try{for((e=t.embeds.uninitialized(e))&&e.length&&0<e.length&&t.info("initializing",null==e?void 0:e.length,"embedElems"),u=0,l=e.length;u<l;u++){r=e[u];try{t.info("initializing elem",r),s=t.embeds.hashedIdForElem(r,{asyncOnly:!0}),r.id?document.getElementById(r.id)!==r&&(c=t.embeds.genIdFor(s),t.error('Duplicate DOM ID found for container "'+r.id+'". Changing it to "'+c+'" to avoid issues.',r),r.id=c):r.id=t.embeds.genIdFor(s),f=t.embeds.optionsFromElemClass(r),t.options("__"+r.id+"_dom_options__",f),function(e,n){a.push((function(){if(!t.embeds.containerIsInitialized(n))return t.embed(e,{container:n.id})}))}(s,r)}catch(e){n=e,t.error(n)}}}catch(e){i=e,t.error(i)}return a.push((function(){return t.watchForInit()})),a.push((function(){return t.embeds.notEmbedding(!0)})),o("embeds_setup",a)}),0===t.detect.ios.version&&!t.detect.safari)return n()}))},t.embeds._setupThrottled=m(500,t.embeds.setup),t.embeds.optionsFromElemClass=function(t){var e,n,i,o,a,s;for(o=[],e=0,i=(s=u(t)).length;e<i;e++)0<(n=s[e]).indexOf("=")&&o.push(n);return a=d(o.join("&")),r(a),a},t.embeds.hashedIdForElem=function(t,e){var n,i,o,r,a,s;return null==e&&(e={}),e.asyncOnly?(null==(n=t.className)||null==(i=n.match(/wistia_async_([^\s]+)/))?void 0:i[1])||null:(null==(o=t.className)||null==(r=o.match(/wistia_async_([^\s]+)/))?void 0:r[1])||(null==(a=t.className)||null==(s=a.match(/wistia_([^\s]+)/))?void 0:s[1])||null},t.embeds.genIdFor=function(t){var e,n,i;for(e="wistia-"+t,i=1;n=e+"-"+i,document.getElementById(n);)i+=1;return n},t.embeds._options={},t.embeds.options=function(e,n){var i,o,a,u;if(f(e)&&(n=e,e="__global__"),null!=n)return t.embeds._options[e]=r(s(n));if(e){if(t.embeds._options[e])return t.embeds._options[e];if(null===(i=t.api(e)))return{};for(o in a=t.embeds._options)if(u=a[o],t.api(o)===i)return u;return{}}return t.embeds._options},t.options=t.embeds.options,t.embeds.api=function(t){var e,n,i,o,r,a,s;return null==t&&(t="wistia_embed"),document.querySelectorAll?document.querySelectorAll("div."+t+",span."+t):(n=(null==(o=document.body)?void 0:o.getElementsByTagName("div"))||[],s=(null==(r=document.body)?void 0:r.getElementsByTagName("span"))||[],e=function(){var e,o,r;for(r=[],e=0,o=n.length;e<o;e++)i=n[e],l(i,t)&&r.push(i);return r}(),a=function(){var e,n,o;for(o=[],e=0,n=s.length;e<n;e++)i=s[e],l(i,t)&&o.push(i);return o}(),e.concat(a))},t.embeds.uninitialized=function(e){var n,i,o,r;for(null==e&&(e=t.embeds.api()),r=[],i=0,o=e.length;i<o;i++)n=e[i],t.embeds.hashedIdForElem(n,{asyncOnly:!0})&&!t.embeds.containerIsInitialized(n)&&r.push(n);return r},t.embeds.containerIsInitialized=function(e){return e&&e.wistiaApi&&!(e.wistiaApi instanceof t.IframeApiProxy)},t.embeds.initialized=function(e){var n,i,o,r;for(r in o=[],i=t._data.video)n=i[r],o.push(n);return o},t.embeds.observe=function(){var e,n;if(!t.embeds.initObserver){if(t.embeds.initObserver=c((function(e){var n,i,o,r,a,s,u,c,f,h;for(i=[],n=!1,o=0,r=e.length;o<r;o++)for(0<(null==(f=(u=e[o]).addedNodes)?void 0:f.length)&&(n=!0),s=0,a=(h=u.addedNodes||[]).length;s<a;s++)c=h[s],l(c,"wistia_embed")&&i.push(c);if(0<i.length&&setTimeout((function(){return t.embeds.setup(i)}),10),n)return t.embeds._setupThrottled()})),e={subtree:!0,childList:!0},0<t.detect.ios.version||t.detect.safari)return h((function(){return t.embeds.initObserver.observe(document.body,e)}));try{return t.embeds.initObserver.observe(document.body,e)}catch(i){return n=i,v.notice(n),h((function(){try{return t.embeds.initObserver.observe(document.body,e)}catch(t){return n=t,v.error(n)}}))}}},t.embeds.unobserve=function(){var e;return null!=(e=t.embeds.initObserver)&&e.disconnect(),t.embeds.initObserver=null},t.embeds.poll=function(e){return null==e&&(e=500),t.eventLoop.add("poll_setup_embeds",e,(function(){return t.embeds.setup()}))},t.embeds.unpoll=function(){var e;return null==(e=t.eventLoop)?void 0:e.remove("poll_setup_embeds")},t.embeds.watch=function(){return t.embeds._dontWatch=!1,t.detect.mutationObserver&&!t.detect.trident?(t.embeds.observe(),t.embeds.poll(2e3)):t.embeds.poll()},t.embeds.dontWatch=function(){return t.embeds._dontWatch=!0,t.embeds.unwatch()},t.embeds.unwatch=function(){return t.embeds.unobserve(),t.embeds.unpoll()},t.flushInit=function(){var e,n,i,o;if(window.wistiaInit){if(wistiaInit instanceof Array)for(i=0,o=wistiaInit.length;i<o;i++){n=wistiaInit[i];try{"function"==typeof n&&n(t)}catch(t){e=t,v.error(e)}}else"function"==typeof wistiaInit&&wistiaInit(t);return window.wistiaInit=null}},t.addQueue=function(e){return t._queueNames.push(e),t.watchForInit()},t._queueNames=["_wq","wistiaInitQueue"],t._wqBoundListeners=[],t.flushInitQueue=function(){var e,n,i,o,r,a,s,u,l,c,h,d,p,y,m;for(y=[],r=0,s=(p=t._queueNames).length;r<s;r++)if(h=p[r],(c=window[h])&&c instanceof Array&&0<c.length){for(o=[];0<c.length;)if(m=c.shift(),f(m))if(m.revoke&&t.revokeQueueListener(m.revoke),m.__unbinds||(m.__unbinds=[]),m.id)d=!1,m.options&&("_all"===m.id?(t.options(m.options),d=!0):(t.options(m.id,m.options),d=!0)),function(e){var n,i;i="_all"===e.id?[]:[e.id],e.onFind&&(n=i.concat([function(t){return e.onFind(t)}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,n)),d=!0),e.onHasData&&(n=i.concat([function(t){return t.hasData((function(){return e.onHasData(t)}))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,n)),d=!0),e.onEmbedded&&(n=i.concat([function(t){return t.embedded((function(){return e.onEmbedded(t)}))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,n)),d=!0),e.onReady&&(n=i.concat([function(t){return t.ready((function(){return e.onReady(t)}))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,n)),d=!0),d?t._wqBoundListeners.push(e):t.error("No initialization function provided for ID "+e.id,e)}(m);else for(a in i=function(e,n,i){var r,a;return"function"==typeof i?(a=function(t){return t.hasData((function(){return i(t)}))},r=function(){return e.__unbinds="_all"===n?e.__unbinds.concat(t.api(a)):e.__unbinds.concat(t.api(n,a)),t._wqBoundListeners.push(e)},o.push(r)):f(i)?(r="_all"===n?function(){return t.options(i)}:function(){return t.options(n,i)},o.push(r)):"__unbinds"!==n&&"revoke"!==n?t.error("Unknown initialization object:",i,"Expected Object or Function."):void 0},m)i(m,a,m[a]);else"function"==typeof m?function(e){var n;n=function(){return e(t)},o.push(n)}(m):t.notice(h+": Don't know what to do with "+m+", ignoring.");for(l=0,u=o.length;l<u;l++){n=o[l];try{"function"==typeof n&&n(t)}catch(t){e=t,v.error(e)}}y.push(c.length=0)}return y},t.getInitQueueListeners=function(){return i([],t._wqBoundListeners)},t.revokeQueueListener=function(e){var n,i,o,r,a,s,u,l;for(s=[],n=0,i=(u=e instanceof Array?e:[e]).length;n<i;n++){if((e=u[n]).__unbinds){for(r=0,o=(a=e.__unbinds).length;r<o;r++)"function"==typeof(l=a[r])&&l();delete e.__unbinds}s.push(t._wqBoundListeners=t._wqBoundListeners.filter((function(t){return t!==e})))}return s},t.watchForInit=function(){if(null==t._pollInit&&(t._pollInit=function(){return t.flushInitQueue(),t.flushInit()}),t._pollInit(),t.eventLoop)return t.eventLoop.unpause("poll_init"),t.eventLoop.add("poll_init",500,t._pollInit)},t.api=function(e,n){var i,o,r,a,s,u,l,c,f,h,d;if(null!=e){if(n)return t.api.onFind(e,n);if("function"==typeof e)return t.api.onFind(e);if("string"!=typeof e)"number"==typeof e?(s=e,i=t.api.all(),0>s&&(s=i.length+s),r=(null==(d=i[s])?void 0:d.container)||null):window.HtmlElement&&e instanceof HtmlElement?r=e:t.error("W.api: Unrecognized matcher",e);else if(c=e,!(r=document.getElementById(c)))for(u=0,l=(o=t.api.all()).length;u<l;u++)if(0===(null==(f=(a=o[u]).hashedId())?void 0:f.indexOf(c))||0===(null==(h=a.container.id)?void 0:h.indexOf(c))){r=a.container;break}return(null==r?void 0:r.wistiaApi)&&(r.wistiaApi instanceof t.PublicApi||t.IframeApi&&r.wistiaApi instanceof t.IframeApi)?r.wistiaApi:null}return t.api.all()[0]||null},t.api.all=function(){return t.api._apiHandles().concat(t.api._iframeHandles())},t.api._apiHandles=function(){return t.embeds.initialized()},t.api._apiHandlesByDomOrder=function(){var e,n,i,o,r;for(r=[],i=0,o=(n=t.embeds.api("wistia_embed_initialized")).length;i<o;i++)(e=n[i]).wistiaApi&&e.wistiaApi instanceof t.PublicApi&&r.push(e.wistiaApi);return r},t.api._iframeHandles=function(){var e,n,i,o;for(o in i=[],n=t._data.iframe_api)e=n[o],i.push(e);return i},t.api.onFind=function(e,n){var i,o;return"function"==typeof e&&(n=e,e=null),i=function(i){return(null===e||t.api(e)===i)&&(n(i),!0)},wistiaEmbeds.each(i),o=[wistiaEmbeds.on("initembed",i),wistiaEmbeds.on("afterreplace",i)],function(){var t,e,n,i;for(n=[],t=0,e=o.length;t<e;t++)i=o[t],n.push(i());return n}},t._asyncInitSoonAfterLoad=function(e){return null==e&&(e=10),setTimeout((function(){var e;try{return t.embeds.setup(),t.embeds._dontWatch||t.embeds.watch(),t.watchForInit()}catch(t){return e=t,v.error(e)}}),e)},t._initializers.initAsyncEmbeds=function(){var n,i,o;return t.embeds.notEmbedding=new e,t.embeds.notEmbedding(!0),null==t._data&&(t._data={}),null==(n=t._data).video&&(n.video={}),null==(i=t._data).iframe_api&&(i.iframe_api={}),window._inWistiaIframe?setTimeout((function(){return t.watchForInit()}),10):(t._asyncInitSoonAfterLoad(),t._asyncInitSoonAfterLoad(500),null==(o=t.eventLoop)?void 0:o.pause("poll_init"))},t._destructors.destroyAsyncEmbeds=function(){var e,n;return a("embeds_setup"),null!=(e=t.eventLoop)&&e.remove("poll_init"),null==(n=t.embeds)?void 0:n.unwatch()}}(Wistia)},function(t,e,n){"use strict";n.d(e,{asyncChain:function(){return l}});var i=n(91),o=n.n(i),r=n(21),a=n(44);function s(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=function(t,e){var n,i=[],u=s(e);try{for(u.s();!(n=u.n()).done;){var l=n.value;!function(t){i.push((new(o())).run((function(){try{return t()}catch(t){return r.wlog.error(t)}})))}(l)}}catch(t){u.e(t)}finally{u.f()}var c=i[i.length-1];o()._drainStopGosAsync(t,i);var f=new(o());return c.then((function(){return(0,a.doTimeout)("".concat(t,".last"),(function(){return f.go()}),0)})),f}},function(t,e,n){"use strict";var i=n(2),o=n(17),r=n(44);i.default._initializers.initEmbedLinks=function(){window.wistiaEmbeds.bind("initembed",(function(){(0,r.doTimeout)("maybe_load_embed_links_1",s,1),(0,r.doTimeout)("maybe_load_embed_links_1000",s,1e3),(0,r.doTimeout)("maybe_load_embed_links_3000",s,3e3)})),(0,o.onDocReady)((function(){s(),(0,r.doTimeout)("maybe_load_embed_links_5000",s,5e3)}))},i.default._destructors.destroyEmbedLinks=function(){i.default.EmbedLink.EmbedLinkClass&&i.default.EmbedLink.EmbedLinkClass._onEv1Destroy()};var a=function(){return i.default.asyncRequire("embedLinks.js")},s=function(){(function(){for(var t=i.default.api._apiHandlesByDomOrder(),e=0;e<t.length;e++)if(t[e]._opts&&t[e]._opts.playlistLinks)return!0;return!!(0<document.querySelectorAll('a[href^="#wistia_"]').length)})()&&a()};i.default.EmbedLink={},i.default.EmbedLink.setup=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return a().then((function(){var t;(t=i.default.EmbedLink.EmbedLinkClass).setup.apply(t,e)}))},i.default.EmbedLink.setupAll=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return a().then((function(){var t;(t=i.default.EmbedLink.EmbedLinkClass).setupAll.apply(t,e)}))},i.default.EmbedLink.destroyAll=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return a().then((function(){var t;(t=i.default.EmbedLink.EmbedLinkClass).destroyAll.apply(t,e)}))}},function(t,e,n){var i=[].slice;!function(t){var e,o,r,a,s,u,l,c;if(o=n(14),u=n(16),r=u.elemRebind,a=u.elemUnbind,t.iframeInit||(t.iframeInit=function(e,n){return t.asyncRequire("insideIframe.js").then((function(t){return t(e,n)}))}),!t.IframeApiProxy){for(s in e=function(){function e(t){this.iframe=t,this.loadIframeApi()}return e.prototype.loadIframeApi=function(){return new o((function(e){return setTimeout((function(){return t.asyncRequire("iframeApi.js").then(function(t){return function(){return t._loaded=!0,e()}}(this))}),0)}))},e.prototype.proxyFn=function(){var t,e,n,o;return e=arguments[0],t=2<=arguments.length?i.call(arguments,1):[],this._loaded?(n=this.iframe.wistiaApi)[e].apply(n,t):(this.loadIframeApi().then((o=this,function(){var n;if(o.iframe.wistiaApi!==o)return(n=o.iframe.wistiaApi)[e].apply(n,t)})),this)},e.prototype._hasImpl=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["_hasImpl"].concat(i.call(t)))},e.prototype.hasData=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["hasData"].concat(i.call(t)))},e.prototype.embedded=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["embedded"].concat(i.call(t)))},e.prototype.ready=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["ready"].concat(i.call(t)))},e.prototype.up=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["up"].concat(i.call(t)))},e.prototype.down=function(){return this.proxyFn.apply(this,["down"].concat(i.call(args)))},e}(),l=t.PublicApi.prototype)c=l[s],e.prototype[s]||"function"!=typeof c||function(t){e.prototype[t]=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,[t].concat(i.call(e)))}}(s);t.IframeApiProxy=e}null==t.maybeRequireIframeApi&&(t.maybeRequireIframeApi=function(){var t,n,i,o,r;if(0<(r=document.querySelectorAll("iframe.wistia_embed,iframe[name=wistia_embed],iframe.wistia_playlist,iframe[name=wistia_playlist]")).length){for(o=[],t=0,i=r.length;t<i;t++)(n=r[t]).wistiaApi?o.push(void 0):o.push(n.wistiaIframeApiProxy=n.wistiaApi=new e(n));return o}}),null==t.onIframePostMessage&&(t.onIframePostMessage=function(e){if("new-wistia-iframe"===e.data)return t.asyncRequire("iframeApi.js"),a}),r(window,"message",t.onIframePostMessage),t.bind("ev1initend",(function(){return t.maybeRequireIframeApi(),r(window,"message",t.onIframePostMessage)})),t.bind("ev1destroystart",(function(){return a(window,"message",t.onIframePostMessage)}))}(Wistia)},function(t,e,n){var i={}.hasOwnProperty;!function(t){var e,o,r;if(r=n(98).wData,e=n(44).doTimeout,o=n(10).seqId,!t.EmbedListener)t.EmbedListener=function(n){function a(){var t;this.uuid=o(),this.bindHandles(),this.bind("down",(t=this,function(){return t.info("got down event, prune and rebind handles"),e("prune_zombies_later",(function(){return t.pruneZombies(),t.bindHandles()}))})),this.bind("up",function(t){return function(e){return t.info("got up event, set _bound=false for",e),e._bound=!1,t.bindHandles()}}(this))}return function(t,e){function n(){this.constructor=t}for(var o in e)i.call(e,o)&&(t[o]=e[o]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(a,Array),a.prototype.bindHandles=function(){var t,e,n,i,o;for(t=this.allUnboundHandles(),this.info("bindHandles",t),o=[],n=0,i=t.length;n<i;n++)e=t[n],this.info("bind to all events for",e),e._bound=!0,o.push(this.push(e));return o},a.prototype.pruneZombies=function(){var t,e,n,i,o,r,a,s,u,l,c;for(this.info("pruneZombies"),c=[],n=0,r=(s=this.allBoundHandles()).length;n<r;n++)(t=s[n]).looksDown()?this.info("prune zombie",t):c.push(t);for(e=i=0,u=this.length;0<=u?i<=u:i>=u;e=0<=u?++i:--i)delete this[e];for(this.length=0,l=[],o=0,a=c.length;o<a;o++)t=c[o],l.push(this.push(t));return l},a.prototype.allBoundHandles=function(){var t,e,n,i,o;for(o=[],e=0,n=(i=this.allHandles()).length;e<n;e++)(t=i[e])._bound&&o.push(t);return o},a.prototype.allUnboundHandles=function(){var t,e,n,i,o;for(o=[],e=0,n=(i=this.allHandles()).length;e<n;e++)(t=i[e])._bound||o.push(t);return o},a.prototype.allHandles=function(){return this.apiHandles().concat(this.iframeApiHandles())},a.prototype.iframeApiHandles=function(){var e,n,i,o,r;for(this.iframes||(this.iframes=document.getElementsByTagName("iframe")),r=[],n=0,i=(o=this.iframes).length;n<i;n++)(e=o[n]).wistiaApi&&!(e.wistiaApi instanceof t.IframeApiProxy)&&"removed"!==e.wistiaApi&&r.push(e.wistiaApi);return r},a.prototype.apiHandles=function(){var t,e,n,i;if(e=[],window.Wistia)for(n in i=r("video"))t=i[n],e.push(t);return e},a.prototype.each=function(t){var e,n,i,o,r;for(r=[],n=0,i=(o=this.allBoundHandles()).length;n<i;n++)e=o[n],r.push(t(e));return r},a.prototype.onFind=function(t){var e,n;return n=this,e=function(e){return e.up((function(){return n.info("onFind",e),t(e),e.unbind}))},this.each(e),this.bind("initembed",e)},a}(),t.mixin(t.EmbedListener.prototype,t.bindable),t.mixin(t.EmbedListener.prototype,t.logHelpers),t._initializers.initEmbedShepherd=function(){return window.wistiaEmbeds?(t.info("window.wistiaEmbeds already exists, call bindHandles"),"function"==typeof wistiaEmbeds.bindHandles&&wistiaEmbeds.bindHandles()):(t.info("initialize embed shepherd"),window.wistiaEmbeds=new t.EmbedListener),t.info("call window.wistiaEmbedShepherdReady()"),"function"==typeof window.wistiaEmbedShepherdReady?window.wistiaEmbedShepherdReady():void 0},t._destructors.destroyEmbedShepherd=function(){var t;return null!=(t=window.wistiaEmbeds)&&t.each((function(t){return t._bound=!1})),window.wistiaEmbeds=null}}(Wistia)},function(t,e,n){!function(t){var e,i,o,r,a,s;if(!(o=t).VisitorKey)i=n(14),r=n(22).globalBind,a=n(45).isVisitorTrackingEnabled,s=n(101).uniqId,e="__distillery",r("visitortrackingchange",(function(t,e){var n,i,r,s,u;for(i=0,r=(s=o.api.all()).length;i<r;i++)"function"==typeof(u=s[i])._postDownVisitorTrackingEnabled&&u._postDownVisitorTrackingEnabled();if(o.visitorKey){if(!a())return o.visitorKey.unpersist(),"function"==typeof(n=o._destructors).destroyMux?n.destroyMux():void 0;if(o.visitorKey.value())return o.visitorKey.persist(o.visitorKey.value())}})),o.VisitorKey=function(){function t(){var t,e,n;this.ready=(e=this.ready,n=this,function(){return e.apply(n,arguments)}),this.unbinds=[],setTimeout((t=this,function(){return t.unbinds.push(o.api.onFind((function(e){return e.hasData((function(){var n;return e.iframe||!0!==(null==(n=e._mediaData)?void 0:n.privacyMode)||t.unpersist(),t.ready()}))})))}),0)}return t.prototype.ready=function(){return this._readyPromise||(this._readyPromise=new i((t=this,function(e){return t.savedValue()||t.persist(o.VisitorKey.generate()),e()}))),this._readyPromise;var t},t.prototype.reinitialize=function(){return this.destroy(),this.unbinds=[],this._readyPromise=null,this.ready()},t.prototype.persist=function(t){return o.VisitorKey.isValid(t)?(this.info("@persist",t),this._value=t,a()&&!0!==window.wistiaDisableCookies&&this.localStorageValue()!==this._value?o.localStorage(e,this._value):void 0):void this.error(new Error("Attempted to persist invalid visitor key '"+t+"'"))},t.prototype.unpersist=function(){return this.clearFromCurrentDomain()},t.prototype.clear=function(){return this.info("clear"),this.unpersist(),this._value=null},t.prototype.clearFromCurrentDomain=function(){return o.removeLocalStorage(e,null)},t.prototype.value=function(){var t;return(t=this._value||this.savedValue())||(t=o.VisitorKey.generate(),this.persist(t)),t},t.prototype.savedValue=function(){return a()?this.localStorageValue():void 0},t.prototype.localStorageValue=function(){return o.localStorage(e)},t.prototype.isValid=function(){return o.VisitorKey.isValid(this.value())},t.prototype.destroy=function(){var t,e,n;for(t=0,e=(n=this.unbinds).length;t<e;t++)(0,n[t])();return this.unbinds=[]},t.isValid=function(t){return 25<(null==t?void 0:t.length)&&/^[a-z0-9_\-\.]+$/i.test(t)},t.generate=function(){return s("9a3822b2e749c6cd22c74e307b40f5b5".substring(0,7)+"_")},t}(),o.mixin(o.VisitorKey.prototype,o.logHelpers),o._initializers.initVisitorKey=function(){return o.visitorKey=new o.VisitorKey},o._destructors.destroyVisitorKey=function(){var t;return null!=(t=o.visitorKey)&&t.destroy(),o.visitorKey=null}}(Wistia)},function(){var t;(t=Wistia)._initializers.initSpecificTime=function(){var e,n,i,o,r;try{return parent===self?(r=location.href.match(/[?&]wtime=([\dhms]*)/),i=null==(o=location.href.match(/[?&]wvideo(id)?=([^&]+)/))?void 0:o[2],2<=(null==r?void 0:r.length)&&!t._specificTimeInitiated?(t._specificTimeInitiated=!0,n=!1,wistiaEmbeds.onFind((function(t){return i&&t.hashedId()!==i||n?void 0:(n=!0,t.embedded((function(){var e;return null==(e=t.popover)?void 0:e.show()})),t.time(r[1]).play())}))):void 0):void 0}catch(n){return e=n,t.error(e),t._specificTimeInitiated=!1}}},function(t,e,n){var i;(i=Wistia).Interpolation||(i.Interpolation=n(129))},function(t){var e;e=function(){function t(e){var n,i,o,r,a,s,u,l,c;if(l=e.seedRange,u=e.seedFunction,c=e.seedStart,o=null==(r=e.outputStart)?0:r,i=null==(a=e.outputEnd)?1:a,n=null==(s=e.easing)?t.linear:s,null==l)throw new Error("Must provide seedRange argument");if(null!=u&&"function"!=typeof u)throw new Error("Given seed is not a function");if("function"!=typeof n)throw new Error("Invalid easing function given: "+this.easing);this._seedRange=l,this._seedFunction=u||function(){return(new Date).getTime()},this._outputStart=o,this._outputEnd=i,this._easing=n,this._seedStart=("function"==typeof c?c():void 0)||this.seed()}return t.prototype.seed=function(){return this.seedFunction()()},t.prototype.seedStart=function(){return this._seedStart},t.prototype.seedRange=function(){return this._valOrFn(this._seedRange)},t.prototype.seedFunction=function(){return this._seedFunction},t.prototype.outputStart=function(){return this._valOrFn(this._outputStart)},t.prototype.outputEnd=function(){return this._valOrFn(this._outputEnd)},t.prototype.easing=function(){return this._valOrFn(this._easing)},t.prototype.value=function(){return this._easing.apply(this,this.easingArgs())},t.prototype.atEnd=function(){return 1===this.ratio()},t.prototype.atStart=function(){return 0===this.ratio()},t.prototype.easingArgs=function(){return[this.c(),this.t(),this.d(),this.b()]},t.prototype.seedDelta=function(){return 0<this.seedRange()?Math.min(this.seedRange(),this.seed()-this.seedStart()):0>this.seedRange()?Math.max(this.seedRange(),this.seed()-this.seedStart()):0},t.prototype.ratio=function(){var t;return 0===(t=this.seedRange())?1:Math.max(0,Math.min(1,this.seedDelta()/t))},t.prototype.c=function(){return this.outputEnd()-this.outputStart()},t.prototype.t=function(){return this.seedDelta()},t.prototype.d=function(){return this.seedRange()},t.prototype.b=function(){return this.outputStart()},t.prototype._valOrFn=function(t){return"function"==typeof t?t():t},t.linear=function(t,e,n,i){return t*e/(n||1)+i},t.easeInOut=function(t,e,n,i){return 1>(e/=(n||1)/2)?t/2*e*e+i:-t/2*((e-=1)*(e-2)-1)+i},t}(),t.exports=e},function(){var t;(t=window.Wistia).mux||(t.mux={}),t._initializers.initMux=function(){if(!t.mux._setup){var e=window.crypto||window.msCrypto;return(void 0!==e?1<=e.getRandomValues(new Uint32Array(1))[0]/4294967296:+(1<=Math.random()))?void(t.mux._disabled=!0):(t.mux._setup=!0,t.mux._disabled=!1,void t.api.onFind((function(e){var n=function(){return window.wistiaDisableMux};!n()&&(t.mux._disabled||e.iframe||e._opts&&!1===e._opts.mux||t.asyncRequire("wistia-mux.js").then((function(t){e.embedded((function(){n()||t(e)}))})))})))}},t._destructors.destroyMux=function(){t.mux._disabled=!0;for(var e=t.api.all(),n=0;n<e.length;n++){var i;null===(i=e[n].mux)||void 0===i||i.destroy()}}},function(t,e,n){"use strict";var i=n(2),o=n(16);window._wq=window._wq||[],window._wq.push({id:"_all",onHasData:function(t){(function(t){if(t._mediaData&&t._mediaData.integrations)for(var e in t._mediaData.integrations)if(t._mediaData.integrations[e])return!0;return!1})(t)&&(0,o.pageLoaded)((function(){setTimeout((function(){i.default.asyncRequire("allIntegrations.js")}),1e3)}))}})},function(){var t;(t=Wistia).initializeOnce=function(){return t._initializers.initDetect(),t._initializers.initWLog(),t._initializers.initVisitorKey(),t._initializers.initEventLoop(),t._initializers.initFullscreenTriggers(),t.define("E-v1.js",t),t.trigger("ev1initonce")},t.initializeEveryTime=function(){var e;return t.trigger("ev1initstart"),t._initializers.initEmbedShepherd(),t._initializers.initMux(),t._initializers.initAsyncEmbeds(),t._initializers.initEmbedLinks(),t._initializers.initSpecificTime(),t._initializers.initDefaultTranslation(),null!=(e=t.eventLoop)&&e.resync(),t.trigger("ev1initend")},t.destroy=function(){return t.trigger("ev1destroystart"),t._destructors.destroyAsyncEmbeds(),t._destructors.destroyEmbedShepherd(),t._destructors.destroyEmbedLinks(),t._destructors.destroyFullscreenTriggers(),t._destructors.destroyEventLoop(),t._destructors.destroyVisitorKey(),t._destructors.destroyWLog(),t._destructors.destroyMux(),t.trigger("ev1destroyend")},t.destroyGlobals=function(){var t,e;for(t in window.Wistia=null,window.wistiaApi=null,window.wistiaDispatch=null,window.wistiaBindIframes=null,window.wistiaEmbeds=null,window._wistiaElemId=null,window.wistiaInitQueue=null,window.wistiaInit=null,window.wistiaEmbedShepherdReady=null,e=[],window)window[t],/^wistiajson/.test(t)?e.push(window[t]=null):e.push(void 0);return e},t.reinitialize=function(){return t.destroy(),t.initializeOnce(),t.initializeEveryTime()},t._initialized||(t._initialized=!0,t.initializeOnce()),t.initializeEveryTime()},,,function(t,e,n){"use strict";n(6);function i(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}var o=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.video=e,this.unbinds=[],this.reactMounts={}}return e=t,(n=[{key:"mount",value:function(t){this.rootElem=t}}])&&i(e.prototype,n),o&&i(e,o),t;var e,n,o}();e.default=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=n(2),o=n(59),r=(n(193),n(9)),a=n(194),s=n(73),u=n(12),l=n(68),c=n(16),f=n(6),h=n(20),d=n(15);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(){return(y=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}(t,e)||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 v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function g(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=k(t);if(e){var o=k(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?S(t):e}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O,P,E,C=(0,h.cachedDetect)(),A="vulcanV2Player/shared/ui_components",x="w-playbar",M=1.001,D=function(t){return Math.min(1,Math.max(0,t))},R=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),T(S(n=v.call(this,t)),"onFocusChapterMarkers",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),T(S(n),"onFocus",(function(t){var e=n.props.onFocus;e&&e(t),(0,d.isMouseDown)()||n.setState({isKeyboardFocused:!0})})),T(S(n),"onFocusOut",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),T(S(n),"onMouseEnter",(function(t){n.touchEvents||(t.wistiaPlayerHandled=!0,n.setState({hoveredAt:Date.now(),isHovering:!0}),n.cachePositionDetails(),n.props.shouldShowStoryboard&&n.loadStoryboard())})),T(S(n),"onMouseLeave",(function(t){n.touchEvents||(t.wistiaPlayerHandled=!0,n.setState({hoveredAt:void 0,isHovering:!1}))})),T(S(n),"onMouseMove",(function(t){if(!n.touchEvents){t.wistiaPlayerHandled=!0;var e=n.getPercentFromPossiblyExternalMouseEvent(t);n.setState({hoverPercent:e})}})),T(S(n),"onMouseDown",(function(t){if(!n.touchEvents&&!t.wistiaPlayerHandled&&!t.ctrlKey){t.preventDefault(),n.wrapperElem.focus(),t.wistiaPlayerHandled=!0,n.cachePositionDetails();var e=n.getPercentFromPossiblyExternalMouseEvent(t);n.handleWithProp("onDragStart",t,e),n.setState({dragPercent:e,dragMode:!0,wasBeforePlayOnDrag:n.props.isBeforePlay}),(0,c.elemBind)(document,"mousemove",n.onMouseMoveDragging),(0,c.elemBind)(document,"mouseup",n.onMouseUpDragging)}})),T(S(n),"onMouseMoveDragging",(function(t){t.preventDefault(),t.wistiaPlayerHandled=!0;var e=n.getPercentFromPossiblyExternalMouseEvent(t);n.handleWithProp("onDrag",t,e),n.setState({dragPercent:e,dragMode:!0})})),T(S(n),"onMouseUpDragging",(function(t){t.wistiaPlayerHandled=!0;var e=n.getPercentFromPossiblyExternalMouseEvent(t);n.setState({dragPercent:e,dragMode:!1,isOverPlayhead:!1}),n.handleWithProp("onDragEnd",t,e),(0,c.elemUnbind)(document,"mousemove",n.onMouseMoveDragging),(0,c.elemUnbind)(document,"mouseup",n.onMouseUpDragging)})),T(S(n),"onTouchStart",(function(t){t.preventDefault(),t.wistiaPlayerHandled=!0,n.cachePositionDetails();var e=n.getPercentFromTouchEvent(t);n.handleWithProp("onDragStart",t,e),n.setState({dragPercent:e,dragMode:!0}),n.touchEvents.on("touchmove",n.onTouchMoveDragging),n.touchEvents.on("touchend",n.onTouchEndDragging)})),T(S(n),"onTouchMoveDragging",(function(t){t.preventDefault(),t.wistiaPlayerHandled=!0;var e=n.getPercentFromTouchEvent(t);n.handleWithProp("onDrag",t,e),n.setState({dragPercent:e,dragMode:!0})})),T(S(n),"onTouchEndDragging",(function(t){t.wistiaPlayerHandled=!0;var e=n.getPercentFromTouchEvent(t);n.setState({dragPercent:e,dragMode:!1,isOverPlayhead:!1}),n.handleWithProp("onDragEnd",t,e),n.touchEvents.off("touchmove",n.onTouchMoveDragging),n.touchEvents.off("touchend",n.onTouchEndDragging)})),T(S(n),"onMouseEnterPlayhead",(function(){n.setState({isOverPlayhead:!0})})),T(S(n),"onMouseLeavePlayhead",(function(){n.setState({isOverPlayhead:!1})})),T(S(n),"setWrapperRef",(function(t){n.wrapperElem=t,n.props.setPlaybarElemRef&&n.props.setPlaybarElemRef(t)})),T(S(n),"startAnimLoopIfPlaying",(function(){n.props.isPlaying&&n.props.isVisible&&requestAnimationFrame(n.continuouslyUpdatePlaybar)})),T(S(n),"stopAnimLoop",(function(){cancelAnimationFrame(n.animReq)})),T(S(n),"continuouslyUpdatePlaybar",(function(){n.drawCanvas(),n.maybeUpdateTimeText(),(0,u.assign)(n.playheadEl.style,n.playheadStyle()),n.startAnimLoopIfPlaying()})),T(S(n),"loadStoryboard",(function(){return i.default.asyncRequire("vulcanV2Player/video/ui_components/Storyboard.js").then((function(t){E=t,n.setState({loadedStoryboard:!0})}))})),T(S(n),"loadChapters",(function(){return i.default.asyncRequire(["".concat(A,"/ChapterMarkers.js"),"".concat(A,"/ChapterTitles.js")]).then((function(t){var e=m(t,2),i=e[0],o=e[1];O=i,P=o,n.setState({loadedChapters:!0})}))})),n.state={currentBufferTime:t.getCurrentBufferTime(),currentTime:t.getCurrentTime(),dragMode:!1,dragPercent:0,hasPlayed:!1,hoverPercent:0,isHovering:!1,isKeyboardFocused:!1,isOverPlayhead:!1,loadedChapters:!1,loadedStoryboard:!1,timeWidth:null,wasBeforePlayOnDrag:!1},n.setColorsFromPlayerColor(t.color),t.chapters&&0<t.chapters.length&&n.loadChapters(),n.playheadScale=M,n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(e,t);var n,h,p,v=_(e);return n=e,(h=[{key:"canvasHeight",value:function(){return this.props.height*(window.devicePixelRatio||1)}},{key:"canvasStyle",value:function(){return{height:"".concat(this.props.height,"px"),left:"".concat(-this.leftBarMargin(),"px"),position:"absolute",top:0,width:"".concat(this.leftBarMargin()+this.unfilledBarWidth()+this.rightBarMargin(),"px")}}},{key:"canvasWidth",value:function(){return(this.leftBarMargin()+this.unfilledBarWidth()+this.rightBarMargin())*(window.devicePixelRatio||1)}},{key:"playheadStyle",value:function(){var t=1.4*this.barHeight()*4,e=this.props.height/2-t/2,n=this.playedPercent()*this.unfilledBarWidth()-t/2;return{borderRadius:"50%",height:"".concat(t,"px"),left:"".concat(n,"px"),opacity:0,position:"absolute",top:"".concat(e,"px"),width:"".concat(t,"px")}}},{key:"componentWillReceiveProps",value:function(t){var e=this.props;e.color!==t.color&&this.setColorsFromPlayerColor(t.color),this.setState({dragMode:!1,currentTime:e.getCurrentTime(),currentBufferTime:e.getCurrentBufferTime()}),t.chapters&&0<t.chapters.length&&this.loadChapters()}},{key:"drawCanvas",value:function(){var t,e=this;if(this.canvasEl){var n=window.devicePixelRatio||1,i=this.state,o=i.dragMode,r=i.hoverPercent,a=i.isHovering,s=i.isKeyboardFocused,l=i.isOverPlayhead,c=this.canvasWidth(),f=this.canvasHeight(),h=this.canvasEl.getContext("2d");h.globalCompositeOperation="source-over",h.clearRect(0,0,c,f);var d=this.unfilledBarWidth(),p=this.props.height*n/2;h.strokeStyle="rgba(255,255,255,.6)",h.lineWidth=this.barHeight()*n,h.beginPath(),h.lineCap="round",h.moveTo(this.leftBarMargin()*n,p),h.lineTo((this.leftBarMargin()+d)*n,p),h.stroke();var y=this.playedPercent()*d;h.strokeStyle="rgba(255,255,255,1)",h.lineWidth=this.barHeight()*n,h.beginPath(),h.lineCap="round",h.moveTo(this.leftBarMargin()*n,p),h.lineTo((this.leftBarMargin()+y)*n,p),h.stroke();var m=this.props.chapters,v=this.props,g=v.chapterWithFocusedMarker,b=v.duration,_=1.4*this.barHeight()*n;if(0<(null===(t=m)||void 0===t?void 0:t.length)){if(g){m=(0,u.clone)(m);for(var w=-1,S=0;S<m.length;S++)if(m[S].id===g.id){w=S;break}m.splice(w,1),m.push(g)}m.forEach((function(t){var i=t.time/b,o=(e.leftBarMargin()+i*d)*n,r=_;g===t&&(r*=1.5),h.beginPath(),h.arc(o,p,1.6*r,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="destination-out",h.fill()})),m.forEach((function(t){var i=t.time/b,o=(e.leftBarMargin()+i*d)*n,r=.6,a=_;g===t&&(a*=2,r=1),h.beginPath(),h.arc(o,p,a,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="source-over",h.fillStyle="rgba(255,255,255,".concat(r,")"),h.fill();var s=a-.75*e.barHeight()*n;h.beginPath(),h.arc(o,p,s,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="destination-out",h.fillStyle="rgba(0,0,0,1)",h.fill()})),h.globalCompositeOperation="source-over"}var k=o||s||l,T=k?2:M,O=!1;T!==this.playheadScale&&(O=!0,this.playheadScale=k?2:M,this.lastScaledAt=Date.now());var P=k?0:100;O&&this.animateUntil(Date.now()+P);var E=0==P?1:2-Math.min(1,(Date.now()-this.lastScaledAt)/P),C=this.lastScaledAt?E*T:1,A=1.4*this.barHeight()*n*C,x=(this.leftBarMargin()+y)*n,D=2*A,R=2*D,B=h.createRadialGradient(x,p,0,x,p,D);if(B.addColorStop(0,"rgba(255,255,255,.5)"),B.addColorStop(1,"rgba(255,255,255,0)"),h.beginPath(),h.rect(x-D,p-D,R,R),h.closePath(),h.fillStyle=B,h.fill(),h.beginPath(),h.arc(x,p,A,0,2*Math.PI),h.closePath(),h.fillStyle="rgba(255,255,255,1)",h.fill(),s&&(h.beginPath(),h.arc(x,p,1.5*A,0,2*Math.PI),h.closePath(),h.strokeWidth=n||1,h.stroke()),a&&!o&&!g){h.beginPath();var I=1.4*this.barHeight()*n,F=(this.leftBarMargin()+r*this.unfilledBarWidth())*n-I/2;h.arc(F,p,I,0,2*Math.PI),h.closePath(),h.fillStyle="rgba(255,255,255,1)",h.fill()}}}},{key:"animateUntil",value:function(t){(!this._animEndTime||t>this._animEndTime)&&(this._animEndTime=t),this._animating||(this.animateCanvasUntilEndTime(),this._animating=!0)}},{key:"animateCanvasUntilEndTime",value:function(){var t=this;requestAnimationFrame((function(){return Date.now()>t._animEndTime?void(t._animating=!1):(t.drawCanvas(),void t.animateCanvasUntilEndTime())}))}},{key:"render",value:function(){var t=this;return this.oldWrapperElem=this.wrapperElem,(0,f.h)("div",{class:"".concat(x,"-wrapper w-css-reset w-css-reset-tree"),style:this.wrapperStyle()},this.props.shouldShowTime?this.renderTime():void 0,(0,f.h)("div",{"aria-label":"Playbar","aria-orientation":"horizontal","aria-valuemax":this.props.duration,"aria-valuemin":0,"aria-valuenow":this.ariaValueNow(),"aria-valuetext":this.ariaValueText(),onBlur:this.props.onBlur,onFocus:this.onFocus,onfocusout:this.onFocusOut,onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,ref:this.setWrapperRef,role:"slider",style:this.dragAreaStyle(),tabindex:this.props.isVisible?0:-1},(0,f.h)("canvas",{height:this.canvasHeight(),ref:function(e){return t.canvasEl=e},style:this.canvasStyle(),width:this.canvasWidth()}),(0,f.h)("div",{onMouseEnter:this.onMouseEnterPlayhead,onMouseLeave:this.onMouseLeavePlayhead,ref:function(e){return t.playheadEl=e},style:this.playheadStyle()}),void 0===O?null:(0,f.h)(O,y({},this.props,{onFocus:this.onFocusChapterMarkers,timeLeft:-10,timeRight:-10})),this.props.shouldShowStoryboard&&void 0!==E?(0,f.h)(E,y({},this.props,{hasChapters:this.state.loadedChapters,isHovering:this.state.isHovering,getDurationBeforeCuts:this.props.getDurationBeforeCuts,getTimeBeforeCuts:this.props.getTimeBeforeCuts,hoverPercent:this.state.hoverPercent,left:this.props.left+this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin(),width:this.unfilledBarWidth()})):null,this.props.shouldShowTimeOnHover&&this.state.isHovering&&(0,f.h)(a.default,{left:this.state.hoverPercent*this.unfilledBarWidth(),time:this.getHoverTime(),height:this.props.height,widthOfPlaybar:this.unfilledBarWidth()}),this.props.shouldShowChapterTitles&&void 0!==P?(0,f.h)(P,y({},this.props,{left:this.props.left+this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin(),width:this.unfilledBarWidth()})):null))}},{key:"renderTime",value:function(){var t=this;return(0,f.h)("div",{class:"".concat(x,"__time"),style:this.timeStyle(),ref:function(e){return t.timeElem=e}})}},{key:"componentDidMount",value:function(){this.drawCanvas(),this.lastRenderedAt=Date.now(),C.touchScreen&&this.wrapperElem&&(this.touchEvents=new o.default(this.wrapperElem),this.touchEvents.on("touchstart",this.onTouchStart)),this.maybeUpdateTimeText();var t=this.props;t.isPlaying&&this.setState({hasPlayed:!0}),t.isPlaying&&this.startAnimLoopIfPlaying()}},{key:"componentDidUpdate",value:function(t,e){this.drawCanvas();var n=this.props;this.lastRenderedAt=Date.now(),C.touchScreen&&this.wrapperElem&&this.oldWrapperElem!==this.wrapperElem&&(this.touchEvents&&this.touchEvents.destroy(),this.touchEvents=new o.default(this.wrapperElem),this.touchEvents.on("touchstart",this.onTouchStart)),n.isPlaying&&!this.state.hasPlayed&&this.setState({hasPlayed:!0}),this.maybeUpdateTimeText();var i=n.isPlaying&&!t.isPlaying,r=e.currentBufferTime!=this.state.currentBufferTime,a=n.isVisible&&!t.isVisible;(i||a||r)&&this.startAnimLoopIfPlaying(),!n.isVisible&&t.isVisible&&this.stopAnimLoop(),this.props.setTimeWidth(this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin()),this.props.setRightBarMargin(this.rightBarMargin())}},{key:"componentWillUnmount",value:function(){(0,c.elemUnbind)(document,"mousemove",this.onMouseMoveDragging),(0,c.elemUnbind)(document,"mouseup",this.onMouseUpDragging),this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null)}},{key:"getHoverTime",value:function(){return(0,l.flexibleDuration)(Math.round(this.state.hoverPercent*this.props.duration))}},{key:"placeholderStyle",value:function(){return{cursor:"default",height:"100%",outline:"none",position:"relative",width:"100%"}}},{key:"wrapperStyle",value:function(){var t=this.props,e=t.videoWidth,n=t.width;return{display:"flex",height:"100%",width:n===e?"".concat(n,"px"):"100%"}}},{key:"dragAreaStyle",value:function(){return{cursor:"pointer",flex:"1 1",height:"".concat(this.props.height,"px"),outline:"none",marginLeft:"".concat(this.leftBarMargin(),"px"),marginRight:"".concat(this.rightBarMargin(),"px"),position:"relative"}}},{key:"leftBarMargin",value:function(){return 0===this.props.leftControlBarWidth?this.rightBarMargin():1.5*this.rightBarMargin()}},{key:"rightBarMargin",value:function(){var t=this.props,e=t.duration,n=t.scale,i=7*(0,l.flexibleDuration)(900).length,o=7*(0,l.flexibleDuration)(e).length;return 10*(i<o?i/o:1)*n}},{key:"timeLeftPadding",value:function(){var t=this.props,e=t.leftControlBarWidth,n=t.isPlaceholder;return t.shouldShowTime?0===e?this.leftBarMargin()/1.33:n?this.leftBarMargin():this.leftBarMargin()/3:0}},{key:"timeStyle",value:function(){var t=this.props,e=t.height,n=t.scale;return{boxSizing:"content-box",color:"white",fontFamily:r.interNumbersSemiBold,fontSize:"".concat(13*n,"px"),letterSpacing:"".concat(.5*n,"px"),lineHeight:"".concat(e,"px"),paddingLeft:"".concat(this.timeLeftPadding(),"px"),pointerEvents:"none",position:"relative",textAlign:"center",width:"".concat(this.timeWidth(),"px")}}},{key:"timeWidth",value:function(){var t=this.props,e=t.duration,n=t.scale;return t.shouldShowTime?7*(0,l.flexibleDuration)(e).length*n:0}},{key:"filledBarStyle",value:function(){var t=this.barHeight();return{background:"#fff",borderRadius:"".concat(t,"px"),height:"".concat(t,"px"),left:0,position:"absolute",top:0,width:"".concat(100*this.playedPercent(),"%")}}},{key:"barHeight",value:function(){return 2*this.props.scale}},{key:"unfilledBarStyle",value:function(){var t=this.props.height;return{background:"rgba(255,255,255,.6)",borderRadius:"".concat(this.barHeight(),"px"),height:"".concat(this.barHeight(),"px"),left:0,pointerEvents:"none",position:"absolute",top:"".concat((t-this.barHeight())/2,"px"),width:"".concat(this.unfilledBarWidth(),"px")}}},{key:"unfilledBarWidth",value:function(){return this.props.width-this.timeLeftPadding()-this.timeWidth()-this.leftBarMargin()-this.rightBarMargin()}},{key:"playedPercent",value:function(){var t=this.state,e=this.props,n=e.duration,i=e.getCurrentTime,o=e.isSeeking,r=e.resumableTime;return t.dragMode||t.wasBeforePlayOnDrag&&(o||!t.hasPlayed)?t.dragPercent:r&&!t.hasPlayed?D(r/n):D(i()/n)}},{key:"bufferedAheadPercent",value:function(){var t=this.state;if(this.props.isBeforePlay)return 0;if(t.dragMode){var e=t.currentBufferTime/this.props.duration;return D(e-t.dragPercent)}return D((this.props.getCurrentBufferTime()-this.props.getCurrentTime())/this.props.duration)}},{key:"emptyPercent",value:function(){return 1-D(this.playedPercent()+this.bufferedAheadPercent())}},{key:"timeText",value:function(){var t=this.state,e=this.props;return t.dragMode||t.wasBeforePlayOnDrag&&(this.props.isSeeking||!t.hasPlayed)?(0,l.flexibleDuration)(t.dragPercent*e.duration):t.hasPlayed||1<=this.props.getCurrentTime()?(0,l.flexibleDuration)(e.getCurrentTime()):e.resumableTime?(0,l.flexibleDuration)(e.resumableTime):(0,l.flexibleDuration)(e.duration)}},{key:"ariaValueNow",value:function(){return this.state.dragMode?this.state.dragPercent*this.props.duration:this.props.getCurrentTime()}},{key:"ariaValueText",value:function(){return(0,l.flexibleDuration)(this.ariaValueNow())}},{key:"cachePositionDetails",value:function(){this.offset=(0,c.elemOffset)(this.wrapperElem)}},{key:"getPercentFromPossiblyExternalMouseEvent",value:function(t){return t.target===this.wrapperElem?this.getPercentFromMouseEvent(t):this.getPercentFromPageX(t.pageX)}},{key:"getPercentFromMouseEvent",value:function(t){var e=t.offsetX,n=this.offset?this.offset.zoom:1;return this.getPercentFromOffsetX(e/n)}},{key:"getPercentFromOffsetX",value:function(t){return Math.max(0,Math.min(1,t/this.unfilledBarWidth()))}},{key:"getPercentFromPageX",value:function(t){if(void 0===this.offset)return 0;var e=this.unfilledBarWidth(),n=this.offset.width/e,i=(t-this.offset.left)/n;return this.getPercentFromOffsetX(i)}},{key:"getPercentFromTouchEvent",value:function(t){var e=t.changedTouches;return"0"in e?this.getPercentFromPageX(e[0].pageX):0}},{key:"handleWithProp",value:function(t,e){var n=this.props[t];if(n){for(var i=arguments.length,o=Array(2<i?i-2:0),r=2;r<i;r++)o[r-2]=arguments[r];n.apply(void 0,[e].concat(o))}}},{key:"maybeUpdateTimeText",value:function(){var t=this.timeText();this.timeElem&&t!==this._lastTimeText&&(this.timeElem.innerText=t),this._lastTimeText=t}},{key:"playheadLeftPosition",value:function(){return this.unfilledBarWidth()*this.playedPercent()}},{key:"setColorsFromPlayerColor",value:function(t){this.playedColor=new s.default(t).darken(30).alpha(.7),this.bufferedColor=new s.default(t).lighten(75).alpha(.6),this.emptyColor=new s.default(t).lighten(40).alpha(.3)}}])&&g(n.prototype,h),p&&g(n,p),e}(f.Component);e.default=R},function(t,e,n){"use strict";var i=n(2),o=n(16),r="\n@font-face {\nfont-family: 'WistiaPlayerInterNumbersSemiBold';\nfont-feature-settings: 'tnum' 1;\nsrc: url(data:application/x-font-woff;charset=utf-8;base64,".concat("d09GMk9UVE8AAAaMAAwAAAAACgAAAAZBAAMD1wAAAAAAAAAAAAAAAAAAAAAAAAAADYpwGhQbIBwqBmAAgTIBNgIkAzAEBgWDGgcgGykJEZWkARP8KHCbm2tEznyIN98tPTUk9Ig3oiVV3pbDIzXa+f/fZgXpALFTZhBoMVFC9cp036dXvRKVmVnsxe+D+1NDQI5lG7ikZWEINIElTeBIdnxlhauQ5GQtoLHA/wN0riVdSx5xgbxF3KTbgnjVQ4B9P7YqCx7FpEZK+6ilx0AoopUh4aExJEKmkU+0ncdr4iFfKhdSFD9y91LCRaxNbVqvi0dND3rxI7ndUDR7EiwT3bhiua9krFA0oepCy2hCjwmjnjDjKjNTDz2ZuHtN8820Wfw/l8u4w4yV/f8/6uscs5rmiN00LcP4hAofyZUSyS3WinX0RGFFtnGrjj36x6dlNa57+PLTlrUisH2n9orfgd+R34XfDd0NsWDXwfwhvKHpbs3UBni37dBlPvO4KYn/PgylilcgSdw6sjsSSxsRGfIJgqhi14bKZCHcQvjUh/+3HMotTYrGLVYCxyMFjEnYC98yTAp6atAKVxaZ9eu2NMji8WTj4w/Y34elD60PPwb5bEywLqAX/amwmUo6TBCy14N/TL44jb3sE5JdUIPXXI0RBSoGt3BUObn4agKGIxxQhlyQacbstK4fS2mZoBtFNQ1bd+4zND2vQu6anl7gWFOj8MV2DVMtU44xMhpwElrrjA7zO5IqWojd/v1Vso6cqp91zC2YrGhDOy07Iqyza2q9smDIwUYek0AWbCt/8x78QmrzayQ6xtpmqfCYsLfgU9HdeP3UqutZTTNd/9Q8k08XzXzIxSdvLPda8YaeeZnkxUwql0nDKyUYdaWZjGAy7UDLHpVqBVHTxSV0wBy21El9u/491ik2J3YkdiP2LPZL41RBeeNUWtp97Bbn0Ee1g9wr9qqV/X+4R9nlPX03743dylnaXZyNp8v58yLOsFYCbUnCVQzjN+5QhlmKccO7aMkueWJggROd4qnw2x5LydUcg/NRamE3XMlkGovpRWPKWEavP74P2O1RANM/3gIIPJj7TX+lqU2geQuaBx4B/7cWAOx0ucTiEHYJU9y5DBuUMYNIHeHZz9tn+Fw2G5EBTqUlHRfRi4eB5wNlJsRsv5k4b6HyFkhIC6BO4LzPbWhW7rbCcxubeKHOc6UaBKZBMMd4j8XuRUynOCCa4EMfF9grkI1NcTaSAVtk1nrIOwFfeEBlQw4f4phb6zHzBOm0ZZ0dBcaZRVdYIo5xYiyOMEWONwQHmjKGE//VuRBgul1QrpyxmMvF4vGj0xfuuQrNt4tVTsRhEnjY9AuKa1FVLSEneQWzFd5WbO7hasX08ONUOVQgwQuVqACFXkSoIoUgK1hJEkAgbkG5CjqBS5wrRFuY2IfVwhRnLsVyZTZpatveGR4yEbYqbE6J80nM4aa+LD7Oqmr8PdSJFUQVynmgN4lerGQV1+uLdYzdOFWHPW/iK2gIQayhizQ0NMwyvBEBlrDczRfmU40CTtAHqLQGnjQG8MYkxm1MwJuTqjHwVCu9iRJ1C8ojWGHxUYowH0c5X57zpXquvlw0wzHHGMTfufxiJ1psFJTzq6nGeDvHF4LgmHHWCUViZBaInRn+cswnBi460RBPRYg9TRUQ0CZUC5LAT0qLLu50FpdTeBhjGf7/h4dg9hE0uqsBx/saOcYRDIfnOhfzGFBHyizcJK3p2edUjWrC0rn1aGjXtfVUCHMAKKhlxV8eTEIcV2jCOdKiqahv/MisrfRQVnxPJoOU62mR6pu2ZllIzo8zOZqQB7kWJXW2/c0aihata5PcIVJKfFRgHAETmEQVTCELptGMGcyigTnMJ1voUVN6uCZS9pV2hrwl7FYMvBwtUSd7L7E5qP9t7BIPRF7EcmA9ct2nIPHrxgWajtDltbXuBLuaY6qRZGa5ZlX5anfR0lYXaHUzVSFjZa8rfdhZ8rKXFZg21LVL5LFjI5TlDIbwnFGHE2dypHs6Q50N015dpOgLONEUlOqoiQgIaeCsjMq9gITDKwRMieQgKUy9UQY1BTFYZU2KpE2SkILMIjW8IdFwIKmMaK8oClJVssAEtFnz5dQ1s+w6EZoNGtPGQfzx+aoE8ikiP8GCYOWtgB+HBdWDaxACAZInVq14dZI85RRDvZGIghyONw59KV/BBEQ02P1ER8hmNGiURT2hQP8WfAY=",");\n}\n");i.default._interNumbersFontFaceSemiBold||(i.default._interNumbersFontFaceSemiBold=(0,o.addInlineCss)(document.body||document.head,r))},function(t,e,n){"use strict";var i=n(9),o=n(6);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){function e(){return a(this,e),f.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,t);var n,r,c,f=l(e);return n=e,(r=[{key:"getLeftValue",value:function(){var t=this.props.left;return this.isInBeginningZone()?0:this.isInEndZone()?void 0:t}},{key:"getRightValue",value:function(){return this.isInEndZone()?0:void 0}},{key:"getTopValue",value:function(){var t=this.props.height/2-1.5*this.heightOfTimeBadge();return Math.max(2,t)}},{key:"isInBeginningZone",value:function(){return this.props.left<this.widthOfTimeBadge()/2}},{key:"isInEndZone",value:function(){return this.props.left>=this.props.widthOfPlaybar-this.widthOfTimeBadge()/2}},{key:"timeBadgeStyle",value:function(){var t=this.isInBeginningZone()||this.isInEndZone();return{color:"#fff",fontFamily:i.interNumbersSemiBold,fontSize:"13px",left:this.getLeftValue(),position:"absolute",right:this.getRightValue(),top:this.getTopValue(),transform:t?"":"translateX(-50%)"}}},{key:"widthOfTimeBadge",value:function(){var t;return(null===(t=this._timeBadgeRef)||void 0===t?void 0:t.getBoundingClientRect().width)||24}},{key:"heightOfTimeBadge",value:function(){var t;return(null===(t=this._timeBadgeRef)||void 0===t?void 0:t.getBoundingClientRect().height)||16}},{key:"render",value:function(){var t=this;return(0,o.h)("span",{ref:function(e){return t._timeBadgeRef=e},style:this.timeBadgeStyle()},this.props.time)}}])&&s(n.prototype,r),c&&s(n,c),e}(o.Component);e.default=h},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=n(6);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(){return(r=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){function e(){return a(this,e),f.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,t);var n,o,c,f=l(e);return n=e,(o=[{key:"render",value:function(){var t=this.props.tagName||"div";return(0,i.h)(t,r({},this.props,{ref:this.props.elemRef,style:this.visuallyHiddenStyles()}),this.props.children)}},{key:"visuallyHiddenStyles",value:function(){return{clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}}}])&&s(n.prototype,o),c&&s(n,c),e}(i.Component);e.default=h},,,,function(t,e,n){"use strict";n.d(e,{controlMultiplierBasedOnVideo:function(){return l}});n(16),n(44);var i=n(20),o=n(12);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t,e)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s=(0,i.cachedDetect)(),u=function(t){if(!(s.iphone||s.ipad||s.android))return[640,960];if(null!=t&&t.isAudio())return[500,960];var e,n,i,r,a=(n=document.querySelector("meta[name=viewport]"),i=n&&n.getAttribute("content"),r={},i&&i.split(/[\s,]+/).forEach((function(t){var e=t.split("=");2===e.length&&(r[e[0]]=(0,o.cast)(e[1]))})),r);if(a.width){e="number"==typeof a.width?0+a.width:screen.width||window.innerWidth;var u=Math.max(a["minimum-scale"]||0,Math.min(a["maximum-scale"]||10,a["initial-scale"]||1));1>u&&(e/=u)}else e=window.innerWidth;return[e,2*e/3]},l=function(t,e){var n=t.videoWidth(),i=r(e||u(t),2),o=i[0],a=i[1];return n<o?n/o:n>a?n/a:1}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=n(258),o=n(12),r=n(6),a=n(34);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){return(u=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function l(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),y(d(n=p.call(this,t)),"afterTwoSeconds",(function(){n._displayed||1!==n.state.normalThumbOpacity||n.setState({normalThumbOpacity:0})})),y(d(n),"onDisplayNormalThumb",(function(){n.setState({normalThumbOpacity:1}),n._displayed=!0,n.onDisplay&&n.onDisplay()})),n.state={normalThumbOpacity:t.isVisible?1:0},n.onDisplay=t.onDisplay,n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t);var n,s,h,p=f(e);return n=e,(s=[{key:"componentWillReceiveProps",value:function(t){!this.onDisplay&&t.onDisplay&&(this.onDisplay=t.onDisplay)}},{key:"render",value:function(){this.props.isVisible&&(this._hasRenderedVisible=!0);var t={backgroundColor:this.props.backgroundColor,fitStrategy:this.props.fitStrategy,isVisible:this.props.isVisible,stillSnap:this.props.stillSnap,stretchLimit:this.props.stretchLimit,videoHeight:this.props.videoHeight,videoWidth:this.props.videoWidth,thumbnailAltText:this.props.thumbnailAltText},e=(0,o.assign)({},t,{ariaHidden:!0,images:[{url:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1Host)(),"/embed/medias/").concat(this.props.hashedId,"/swatch")}]}),n=(0,o.assign)({},t,{onDisplay:this.onDisplayNormalThumb,images:this.props.images});return(0,r.h)("div",{ref:this.props.elemRef},this.props.swatchEnabled&&this._hasRenderedVisible?(0,r.h)(i.default,u({},e,{wrapperStyle:this.swatchWrapperStyle()})):null,this._hasRenderedVisible?(0,r.h)(i.default,u({},n,{wrapperStyle:this.normalThumbWrapperStyle()})):null)}},{key:"componentDidMount",value:function(){setTimeout(this.afterTwoSeconds,2e3)}},{key:"normalThumbWrapperStyle",value:function(){var t=this.props.swatchEnabled&&this.props.uiHasRendered&&1===this.state.normalThumbOpacity?"opacity 3s":"";return{height:"100%",left:0,opacity:this.state.normalThumbOpacity,position:"naturalHeight"===this.props.fitStrategy?"relative":"absolute",top:0,transition:t,width:"100%"}}},{key:"swatchWrapperStyle",value:function(){return{filter:"blur(5px)",height:"100%",left:0,position:"naturalHeight"===this.props.fitStrategy?"relative":"absolute",top:0,width:"100%"}}}])&&l(n.prototype,s),h&&l(n,h),e}(r.Component);e.default=m},function(t,e,n){"use strict";var i=n(259),o=n(6),r=n(12),a=n(16),s=n(11);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=(0,n(20).cachedDetect)();(0,s.defineTranslations)("en-US",{THUMBNAIL_VIDEO_THUMBNAIL:"Video Thumbnail"});var y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=d.call(this,t)).initialState=n.state={isLoaded:!1,isDisplaying:!1},n.onDisplay=n.props.onDisplay,n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t);var n,u,h,d=f(e);return n=e,(u=[{key:"componentWillReceiveProps",value:function(t){t.images!==this.props.images&&(clearTimeout(this.loadTimeout),this._sortedImages=null,this.loadTimeout=null,this.setState({isLoaded:!1,isDisplaying:!1})),!this.onDisplay&&t.onDisplay&&(this.onDisplay=t.onDisplay)}},{key:"render",value:function(){var t=this,e=void 0===this.props.thumbnailAltText?this.translate("VIDEO_THUMBNAIL"):this.props.thumbnailAltText;return(0,o.h)("div",{style:this.wrapperStyle(),class:"w-css-reset"},(0,o.h)("img",{class:"w-css-reset",srcset:1<this.props.images.length?this.srcSet():null,src:this.bestSrc(),style:this.imgStyle(),alt:e,ref:function(e){return t.imgElem=e},"aria-hidden":this.props.ariaHidden?"true":null}))}},{key:"translate",value:function(t){return(0,s.getTranslation)(this.props.playerLanguage,"THUMBNAIL_".concat(t))}},{key:"componentDidMount",value:function(){this.setStateBasedOnImgStatus(),this.maybeCallOnDisplay(this.initialState)}},{key:"componentDidUpdate",value:function(t,e){this.setStateBasedOnImgStatus(),this.maybeCallOnDisplay(e)}},{key:"maybeCallOnDisplay",value:function(){this.onDisplay&&this.state.isDisplaying&&!this.calledOnDisplay&&(this.calledOnDisplay=!0,this.onDisplay())}},{key:"setStateBasedOnImgStatus",value:function(){var t=this,e=this.state,n=this.imgElem;e.isLoaded||(!n.onload&&(n.onload=function(){(0,a.elemInDom)(n)&&t.setState({isLoaded:!0})}),n.complete&&this.setState({isLoaded:!0})),!e.isDisplaying&&e.isLoaded&&this.setState({isDisplaying:!0})}},{key:"wrapperStyle",value:function(){var t=this.state.isDisplaying&&this.props.isVisible;return(0,r.assign)({},this.props.wrapperStyle,{display:this.state.isLoaded&&!t?"none":"block"})}},{key:"baseStyle",value:function(){var t=this.props.fitStrategy;return"cover"!==t||p.browser.trident?"contain"===t?this.containStyle():"fill"===t?this.fillStyle():"naturalHeight"===t?this.naturalHeightStyle():"modernContain"===t?this.modernContainStyle():this.containStyle():this.coverStyle()}},{key:"imgStyle",value:function(){var t=this.state.isDisplaying&&this.props.isVisible;return(0,r.assign)(this.baseStyle(),{clip:t?"auto":"rect(0,0,0,0)",display:this.state.isLoaded&&!t?"none":"block"})}},{key:"modernContainStyle",value:function(){return{height:"100%",objectFit:"contain",position:"absolute",width:"100%",top:0,left:0}}},{key:"containStyle",value:function(){if(!this.imgElem)return{height:"100%",left:0,position:"absolute",top:0,width:"100%"};var t,e,n=this.props,i=n.videoWidth,o=n.videoHeight,r=i/o,a=this.imgElem.naturalWidth/this.imgElem.naturalHeight;!1===n.stillSnap?(t=i,e=o):r>a?(e=o,t=Math.round(e*a)):r<=a&&(t=i,e=Math.round(t/a));var s=Math.max(0,o-e),u=Math.max(0,i-t),l=Math.round(s/2),c=Math.round(u/2),f=l,h=c,d=l,p=c;2*d<=this.stretchLimit()&&(d=0,f=0,e=o),2*p<=this.stretchLimit()&&(p=0,h=0,t=i);var y=this.props.backgroundColor||"#000";return{borderTop:"".concat(f,"px solid ").concat(y),borderBottom:"".concat(d,"px solid ").concat(y),borderLeft:"".concat(p,"px solid ").concat(y),borderRight:"".concat(h,"px solid ").concat(y),boxSizing:"content-box",height:"".concat(e,"px"),left:0,position:"absolute",top:0,webkitTouchCallout:"none",width:"".concat(t,"px")}}},{key:"coverStyle",value:function(){return{height:"100%",objectFit:"cover",position:"absolute",width:"100%"}}},{key:"fillStyle",value:function(){return{height:"100%",objectFit:"fill",position:"absolute",width:"100%"}}},{key:"naturalHeightStyle",value:function(){return{width:"100%",position:"relative"}}},{key:"bestSrc",value:function(){return(0,i.bestImage)(this.props.images,{videoWidth:this.props.videoWidth,videoHeight:this.props.videoHeight}).url}},{key:"srcSet",value:function(){var t=this.sortedImages();return 0===t.length&&(t=[(0,i.blankImage)(this.props.videoWidth,this.props.videoHeight)]),t.map((function(t){return"".concat(t.url," ").concat(t.width,"w")})).join(", ")}},{key:"sortedImages",value:function(){return this._sortedImages||(this._sortedImages=(0,i.sortedImages)(this.props.images)),this._sortedImages}},{key:"stretchLimit",value:function(){var t=this.props.stretchLimit;return null==t?10:t}}])&&l(n.prototype,u),h&&l(n,h),e}(o.Component);e.default=y},function(t,e,n){"use strict";n.d(e,{bestImage:function(){return o},blankImage:function(){return r},sortedImages:function(){return a}});var i=n(34),o=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=a(t);if(0===n.length)return r(e.videoWith,e.videoHeight);var i=e.videoWidth,o=(window.devicePixelRatio||1)*i;if(o<=n[0].width)return n[0];for(var s,u=0;u<n.length;u++)if((s=n[u]).width>=o)return s;return n[n.length-1]},r=function(t,e){return{height:e,url:"https://".concat((0,i.eV1HostWithPort)(),"/assets/images/blank.gif"),width:t}},a=function(t){return t.map((function(t){return t.aspect=t.width/t.height,t}))}},,,,,,,,,,,,function(t,e,n){"use strict";var i=n(6),o=n(12),r=n(7);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){return(s=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){function e(){return u(this,e),d.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t);var n,a,h,d=f(e);return n=e,(a=[{key:"shouldComponentUpdate",value:function(t){return this.props.isPlaying!==t.isPlaying}},{key:"render",value:function(){return(0,i.h)("div",{style:this.rootStyle()},(0,i.h)("div",{style:{display:this.props.isPlaying?"block":"none",height:"100%",width:"100%"}},this.renderPauseIcon()),(0,i.h)("div",{style:{display:this.props.isPlaying?"none":"block",height:"100%",width:"100%"}},this.renderPlayIcon()))}},{key:"renderPlayIcon",value:function(){var t=this.props.noPadding,e=t?0:20,n=t?0:9,o=11.556,r="".concat(e+o,",").concat(n+7.5," ").concat(e,",").concat(n+15," ").concat(e,",").concat(n);return(0,i.h)("svg",s({},this.svgAttrs(o+2*e,15+2*n),{class:"w-css-reset w-css-reset-tree"}),(0,i.h)("polygon",{points:r}))}},{key:"renderPauseIcon",value:function(){var t=this.props.noPadding,e=t?0:20,n=t?0:11.3;return(0,i.h)("svg",s({},this.svgAttrs(10+2*e,12+2*n),{class:"w-css-reset w-css-reset-tree"}),(0,i.h)("g",null,(0,i.h)("rect",{x:e,y:n,width:"3.5",height:12}),(0,i.h)("rect",{x:e+6.5,y:n,width:"3.5",height:12})))}},{key:"rootStyle",value:function(){return{height:"100%",width:"100%"}}},{key:"svgAttrs",value:function(){var t=this.props.noPadding,e=this.props.isPlaying,n=t?0:20,i=t?0:e?11.3:9,a=e?12:16,s=e?10:11.556,u=(0,r.standardSvgAttrs)(s+2*n,a+2*i);return(0,o.merge)(u.style,this.props.svgStyle),u}}])&&l(n.prototype,a),h&&l(n,h),e}(i.Component);e.default=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,{getViewerPreferences:function(){return r},setViewerPreference:function(){return a}});var i=n(47),o=function(){return"wistia-viewer-preferences"},r=function(){return(0,i.getLocalStorage)(o())},a=function(t,e){(0,i.updateLocalStorage)(o(),(function(n){n[t]=e}))}},,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{getDurationAfterCuts:function(){return a}});var r=function(t){var e=t.attributes;return null!=e.duration?e.duration:2<=t.video.readyState?t.video.duration:void 0},a=function(t){var e=u(t),n=r(t);if(1>e.length)return n;var i=n;return e.forEach((function(t){i-=t.end-t.start})),i},s=Object.freeze([]),u=function(t){var e=t.attributes,n=e.cuts,i=e.trimStart,o=e.trimEnd;if(t._cuts&&n===t._rawCuts)return t._cuts;if(!n&&null==i&&null==o)return s;t._rawCuts=n,t._cuts=l(t);var r={start:t.attributes.trimStart,end:t.attributes.trimEnd};return t._cuts=c(t,r,t._cuts),Object.freeze(t._cuts),t._cuts},l=function(t){var e=r(t),n=t.attributes,i=n.cuts,o=n.trimStart,a=n.trimEnd;if(!i)return[];var s=i.map((function(n){var i=null==n.start?0:f(t,n.start),o=null!=n.end&&-1!==n.end?f(t,n.end):e;return o>i?{start:i,end:o}:null})).filter(Boolean);null!=o&&s.push({start:0,end:o}),null!=a&&s.push({start:a,end:e}),s=s.sort((function(t,e){return t.start-e.start}));var u={start:0,end:0};return s=s.map((function(t){return t.end<u.end?null:(t.start<u.end&&(t.start=u.end),u=t,t)})).filter(Boolean)},c=function(t,e,n){var o=i(n),a=r(t),s=e.start,u=e.end,l=o[0],c=o[o.length-1],f=l&&(0===l.start||0>l.start)?l:void 0,h=c&&(c.end>=a||0>c.end)?c:void 0;if(null!=s)if(0<=s){var d={start:0,end:s};f?o.splice(0,1,d):o.unshift(d)}else f&&o.shift();if(null!=u)if(0<=u){var p={start:u,end:a};h?o.splice(o.length-1,1,p):o.push(p)}else h&&o.pop();return o},f=function(t,e){var n=r(t);return Math.min(n,Math.max(0,e))}},,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,{uncacheNamespace:function(){return o},makeNamespace:function(){return i}});var i=function(t){return function(e){return null==e[t]&&(e[t]={}),e[t]}},o=function(t,e){e[t]={}}},,function(t,e,n){"use strict";n.d(e,{filteredHlsAssets:function(){return a}});var i=n(358),o=n(49),r=(n(12),n(99),n(355)),a=((0,r.makeNamespace)("asset_to_level"),(0,r.makeNamespace)("level_to_asset"),function(t,e){var n=e;(0,o.isScreencast)(t.allAssets)&&(n=i.filterAssetsForScreencast(t,n)),0<t.attributes.qualityMin&&(n=i.rejectAudioAsset(t,n));var r=t.attributes,a=r.qualityMin,s=r.qualityMax,u=(0,o.withinQualityRange)(n,a,s);return n=0<u.length?u:(0,o.nearestOutsideRange)(n,a,s)})},function(t,e,n){"use strict";n.d(e,{allHlsAudioAssets:function(){return r},audioTracksForVideo:function(){return a},anyViableAsset:function(){return s},bestAssetForCurrentSize:function(){return u},filterByQualityAndMaxWidth:function(){return l},filterAssetsForScreencast:function(){return f},mediumQualityStartingAsset:function(){return h},rejectAudioAsset:function(){return d}});n(357);var i=n(49),o=n(12),r=(n(39),n(34),function(t){return(0,i.filter)(t,{type:"mp4_alternate_audio",status:i.READY})}),a=function(t){var e=[{audioCodec:void 0,autoselect:!0,default:!0,forced:!1,groupId:"audio",id:0,lang:void 0,name:"Off",label:"Off",type:"AUDIO",isSelected:!0}];return t.forEach((function(t,n){var i,o;e.push({audioCodec:void 0,autoselect:!1,default:!1,forced:!1,groupId:"audio",id:n+1,lang:void 0,name:(null===(i=t.details)||void 0===i?void 0:i.languageMetadata.name)||"Alt Audio",label:(null===(o=t.details)||void 0===o?void 0:o.languageMetadata.name)||"Alt Audio",type:"AUDIO",isSelected:!1})})),e},s=function(t,e){return(0,i.one)(e,{sortBy:"width asc"})},u=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=l(t,e,n);return i[i.length-1]},l=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=t.attributes,r=o.qualityMin,a=o.qualityMax,s=(0,i.withinQualityRange)(e,r,a);0===s.length&&(s=(0,i.nearestOutsideRange)(e,r,a));var u=Math.min(n.maxWidth||8192,c(o.width,o.devicePixelRatio)),l=(0,i.filter)(s,{width:[0,u]});return 0===l.length?[s[0]]:l},c=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window.devicePixelRatio||1,n=1.2*Math.max(1.25,e),i=t*n;return i},f=function(t,e){var n=(0,o.filter)(e,(function(t){return 640<t.width}));return 0<n.length?n:e},h=function(t,e){return u(t,e,{maxWidth:1279})},d=function(t,e){return(0,o.filter)(e,(function(t){return"Audio"!=t.display_name}))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,{useState:function(){return y},useReducer:function(){return m},useEffect:function(){return v},useRef:function(){return g}});var i,o,r,a=n(6),s=0,u=[],l=a.options.__b,c=a.options.__r,f=a.options.diffed,h=a.options.__c,d=a.options.unmount;function p(t,e){a.options.__h&&a.options.__h(o,t,s||e),s=0;var n=o.__H||(o.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function y(t){return s=1,m(O,t)}function m(t,e,n){var r=p(i++,2);return r.t=t,r.__c||(r.__=[n?n(e):O(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=o),r.__}function v(t,e){var n=p(i++,3);!a.options.__s&&T(n.__H,e)&&(n.__=t,n.__H=e,o.__H.__h.push(n))}function g(t){return s=5,b((function(){return{current:t}}),[])}function b(t,e){var n=p(i++,7);return T(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function _(){u.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(S),t.__H.__h.forEach(k),t.__H.__h=[]}catch(e){t.__H.__h=[],a.options.__e(e,t.__v)}})),u=[]}a.options.__b=function(t){o=null,l&&l(t)},a.options.__r=function(t){c&&c(t),i=0;var e=(o=t.__c).__H;e&&(e.__h.forEach(S),e.__h.forEach(k),e.__h=[])},a.options.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==u.push(e)&&r===a.options.requestAnimationFrame||((r=a.options.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(i),w&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);w&&(e=requestAnimationFrame(n))})(_)),o=null},a.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(S),t.__h=t.__h.filter((function(t){return!t.__||k(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.options.__e(n,t.__v)}})),h&&h(t,e)},a.options.unmount=function(t){d&&d(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(S)}catch(t){a.options.__e(t,e.__v)}};var w="function"==typeof requestAnimationFrame;function S(t){var e=o;"function"==typeof t.__c&&t.__c(),o=e}function k(t){var e=o;t.__c=t.__(),o=e}function T(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function O(t,e){return"function"==typeof e?e(t):e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=(0,n(20).cachedDetect)();e.default=function(t){var e=t.lastPlayInfo(),n=Date.now()-e.issuedAt,o=!e.source||e.rejectedAt,r=e.isPending&&"user-event"===e.source&&2e3>n,a=t._opts&&"reset"===t._opts.endVideoBehavior&&"ended"===t.state(),s=e.isPending&&"non-user-event"===e.source&&!t.isMuted()&&(!1===t._opts.silentAutoPlay||null==t._opts.silentAutoPlay)&&(i.iphone||i.ipad||i.safari);return t.up()&&("beforeplay"===t.state()||a)&&(o||s||r||a)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(545)},function(t,e,n){"use strict";var i=n(2),o=(n(65),n(546),n(549),n(550),n(553),n(555),n(557),n(559),n(560),n(562),n(564),n(566),n(567),n(568),n(570),n(571),n(573),n(574),n(576),n(579)),r=n(581),a=n(582),s=n(583),u=n(584),l=n(585),c=n(586),f=n(587),h=n(588),d=n(76),p=n(17),y=n(594),m=n(595),v=n(339),g=n(358),b=n(86),_=n(73),w=(n(6),n(14)),S=n.n(w),k=n(16),T=n(12),O=n(44);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}(t,e)||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 C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function A(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function x(t,e,n){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=B(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==P(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=(0,n(20).cachedDetect)();if(!i.default.VulcanV2Player){var F=function(t){function e(t){var n;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e),(n=C.call(this,t)).playerType="vulcan-v2",n._enabledControls={},n._visibilityRequests={},n._inputContextsToEnter=[],n._playerContext=[],n._overlays={},n._initialized=n.setupBehaviors(),n._isKeyboardFocused=void 0,n.setupTracking(),t._playlist&&1<t._playlist.length&&n.loadLastFrameCanvasControl(),n.on("playlistchange",(function(t){1<t.length&&n.loadLastFrameCanvasControl()}));var o=n.on("beforereplace",(function(){o(),n.loadLastFrameCanvasControl()})),r=["playPauseLoadingControl.js"];return I.touchScreen&&r.push("skipControls.js"),(0,p.onDocReady)((function(){i.default.asyncRequire(r)})),n._opts.techInfo&&i.default.asyncRequire("vulcanV2Player/video/controls/TechInfoControl/TechInfoControl.js"),n._opts.spherical&&i.default.asyncRequire("vulcanV2Player/video/controls/SphericalControl/SphericalControl.js"),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M(t,e)}(e,t);var n,w,P,C=D(e);return n=e,(w=[{key:"loadLastFrameCanvasControl",value:function(){this.ready((function(){i.default.asyncRequire("vulcanV2Player/video/controls/LastFrameCanvasControl.js")}))}},{key:"setupBehaviors",value:function(){var t=this;return new(S())((function(e){t.addBehaviors([o.default,r.default,a.default,s.default,m.PlaySuspendedOffScreenBehavior,u.default,l.default,c.default]),t.publicApi.isLiveMedia()||t.addBehavior(f.default),"Audio"===t._mediaData.type?i.default.asyncRequire(["vulcanV2Player/audio/AudioUIBehavior.js","interFontFace.js"]).then((function(n){var i=E(n,1)[0];t.addBehavior(i),e()})):(t.addBehavior(h.default),e())}))}},{key:"removeBehaviors",value:function(){for(var t in this.behaviors)this.behaviors.hasOwnProperty(t)&&this.removeBehavior(t)}},{key:"setupTracking",value:function(){this.publicApi.isLiveMedia()?this._tracker=new y.default(this.publicApi):(this._tracker=new i.default.VideoTracker2(this.publicApi),this._tracker.visitorKey(),this._tracker.monitor())}},{key:"elem",value:function(){return this.engine?this.engine.getMediaElement():(this._dummyVideo||(this._dummyVideo=document.createElement("video")),this._dummyVideo)}},{key:"embed",value:function(t){var n=this;return this._initialized.then((function(){return t instanceof e?n.behaviors.embed.embed(t):n.behaviors.embed.embed()}))}},{key:"eventKey",value:function(){return this._tracker.eventKey()}},{key:"renderUI",value:function(){var t=this;return this.ui||(this.ui=this.behaviors.ui),(this.ui.lastRenderPromise||S().resolve()).then((function(){return t.ui.render()}))}},{key:"rebuild",value:function(){return this.behaviors.embed.rebuild(this)}},{key:"onDimensionChangeSafe",value:function(){if(this.grid)try{this.onWidthChange(this.videoWidth()),this.onHeightChange(this.videoHeight())}catch(t){this.error(t)}}},{key:"transferStateFrom",value:function(t){this.behaviors.fullscreen&&this.behaviors.fullscreen.transferStateFrom(t),this.isKeyboardFocused(t.isKeyboardFocused()),!0!==this.publicApi._opts.skipFocus&&this.focus()}},{key:"bestEngine",value:function(){return b.bestUsableEngine(this.publicApi.judyCtx(),this._mediaData,this._opts)}},{key:"initEngineAfterEmbedded",value:function(){var t=this;this.embedded((function(){return t.behaviors.embed.initializeEngine()}))}},{key:"setupBindings",value:function(){this.setupVideoBindings()}},{key:"setupVideoBindings",value:function(){var t=this;this.publicApi.bind("click",(function(){t.initEngineAfterEmbedded()})),this.publicApi.bind("mouseenter",(function(){t.initEngineAfterEmbedded()})),this.publicApi.bind("focusin",(function(){t.initEngineAfterEmbedded()})),this.bind("widthchange",(function(e){t.onWidthChange(e)})),this.bind("heightchange",(function(e){t.onHeightChange(e)}))}},{key:"addBehavior",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];null==this.behaviors&&(this.behaviors={});var n=t.handle;if(n){this.behaviors[n]&&(this.behaviors[n].destroy(),this.behaviors[n]=null);try{var i=this.behaviors[n]=new t(this);return e&&i.init(),i}catch(t){setTimeout((function(){throw t}),0),delete this.behaviors[n]}}else this.error("No handle defined for",t)}},{key:"addBehaviors",value:function(t){var e=this,n=t.map((function(t){return e.addBehavior(t,!1)}));return n.map((function(t){try{t.init()}catch(n){e.error("error in init for",t.constructor.handle,"behavior"),setTimeout((function(){throw n}),0)}})),n}},{key:"removeBehavior",value:function(t){this.behaviors[t]&&(this.behaviors[t].destroy(),delete this.behaviors[t])}},{key:"isMediaDataUsingEmbedSsl",value:function(){for(var t,e=0;e<this._mediaData.assets.length;e++)if((t=this._mediaData.assets[e]).url&&/embed-ssl\.wistia\.com/.test(t.url))return!0;return!1}},{key:"onWidthChange",value:function(t){this.engine&&this.engine.onWidthChange(t)}},{key:"onHeightChange",value:function(t){this.engine&&this.engine.onHeightChange(t)}},{key:"controlScaling",value:function(t){if(null==t)return this._controlScaling||"auto";var e=this._controlScaling;this._controlScaling=t,e!==t&&this.trigger("controlscalingchange",t,e)}},{key:"audioDescriptionControlEnabled",value:function(t){this.setControlEnabled("audioDescriptionButton",t)}},{key:"bigPlayButtonEnabled",value:function(t){this.setControlEnabled("bigPlayButton",t)}},{key:"bigPlayButtonTimeEnabled",value:function(t){this.isControlEnabled("bigPlayButton")&&this.ui.controls.bigPlayButton.setTimeEnabled(t)}},{key:"smallPlayButtonEnabled",value:function(t){this.setControlEnabled("smallPlayButton",t)}},{key:"playbarControlEnabled",value:function(t){this.setControlEnabled("playbar",t)}},{key:"settingsControlEnabled",value:function(t){this.setControlEnabled("settingsButton",t)}},{key:"playbackRateControlEnabled",value:function(t){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setPlaybackRateEnabled(t)}},{key:"qualityControlEnabled",value:function(t){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setQualityEnabled(t)}},{key:"volumeControlEnabled",value:function(t){this.setControlEnabled("volumeButton",t)}},{key:"fullscreenButtonEnabled",value:function(t){this.setControlEnabled("fullscreenButton",t)}},{key:"hideControls",value:function(){return this.ui.releaseControls("showControls")}},{key:"showControls",value:function(){return this.requestControls("showControls",4e3)}},{key:"requestChromeless",value:function(t,e){return this.requestControls(t,e,!1)}},{key:"releaseChromeless",value:function(t){return this.releaseControls(t)}},{key:"requestControls",value:function(t,e){var n=this,i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];return this._visibilityRequests[t]=i,null!=e&&(0,O.doTimeout)("".concat(this.uuid,".").concat(t,".release_controls"),(function(){n.releaseControls(t)}),e),this.ui.maybeToggleControls()}},{key:"releaseControls",value:function(t){return this._visibilityRequests[t]=null,this.ui.maybeToggleControls()}},{key:"fit",value:function(){x(B(e.prototype),"fit",this).call(this),this.embedded((function(){}))}},{key:"getBuffered",value:function(){if(!this.engine)return[];if(this.engine.activeBufferRange()){var t=E(this.engine.activeBufferRange(),2);return[{start:t[0],end:t[1]}]}return[]}},{key:"rangeBuffered",value:function(){this.engine.activeBufferRange()}},{key:"timeBuffered",value:function(){var t=this.rangeBuffered();return t?t[1]-t[0]:0}},{key:"totalBuffered",value:function(){return this.engine?this.engine.totalBuffered():0}},{key:"totalPlayed",value:function(){return this.engine?this.engine.totalPlayed():0}},{key:"sequentialBufferedRange",value:function(){return this.engine?this.engine.sequentialBufferedRange():[0,0]}},{key:"requestFullscreen",value:function(){return this.behaviors.fullscreen.requestFullscreen()}},{key:"cancelFullscreen",value:function(){return this.behaviors.fullscreen.cancelFullscreen()}},{key:"inFullscreen",value:function(){var t;return null===(t=this.behaviors.fullscreen)||void 0===t?void 0:t.inFullscreen()}},{key:"stopStreaming",value:function(){this.info("stopStreaming"),this.engine&&this.engine.stopStreaming()}},{key:"cleanup",value:function(){this.info("cleanup"),this.removeBehaviors()}},{key:"assetOptions",value:function(){return this.engine.selectableAssets()}},{key:"videoQuality",value:function(t){var e=this;return null==t?this.engine?this.engine.getCurrentQuality():"auto":(this.info("videoQuality",t),this.initEngineAfterEmbedded(),void this.commandQueueOpen.synchronize((function(n){e.ready((function(){e.engine.changeQuality(t,"playing"===e.state()).then(n)}))})))}},{key:"changeAudioTrack",value:function(t){var e=this;null!=t&&(this.initEngineAfterEmbedded(),this.info("changeAudioTrack",t),this.commandQueueOpen.synchronize((function(n){e.ready((function(){e.engine.changeAudioTrack(t).then(n)}))})))}},{key:"getAudioTracks",value:function(){var t=this.bestEngine();return this.engine?this.engine.getAudioTracks():"engines/hls_video.js"===t||"engines/native_hls_video.js"===t?(0,g.audioTracksForVideo)((0,g.allHlsAudioAssets)(this._mediaData.assets)):[]}},{key:"getCurrentAudioTrack",value:function(){return this.engine?this.engine.getCurrentAudioTrack():0}},{key:"selectedQuality",value:function(){return this.engine?this.engine.selectedQuality():"auto"}},{key:"selectableQualities",value:function(){return this.engine?this.engine.selectableQualities():["auto"]}},{key:"stillUrl",value:function(t){return t=(0,T.merge)({playButton:!1},t),x(B(e.prototype),"stillUrl",this).call(this,t)}},{key:"play",value:function(){var t=this;this.suppressPlay()||this.trigger("playcalled"),this.initEngineAfterEmbedded();var e=(0,k.inUserEventContext)()&&!this.ready();this.info("play");var n=function(){t._isPlayPending=!1,t._lastPlayType=void 0,t._lastPlayRejectedAt=Date.now(),t.trigger("playrejected",t.lastPlayInfo())};return this.publicApi.isLiveMedia()&&!1===this.ready()?(n(),void console.log("The call to play() failed likely because the livestream media was not yet ready. Try calling play() in an onReady event instead.")):(this.commandQueueOpen.synchronize((function(o){return t.suppressPlay()?void o():(t._isPlayPending=!0,t._lastPlayType=void 0,t._lastPlaySource=L(),t._lastPlayIssuedAt=Date.now(),t._lastPlayResolvedAt=null,t._lastPlayRejectedAt=null,t.trigger("playpending",t.lastPlayInfo()),void t.ready((function(){t._calledPlay=!0,t._mozillaAtEnd()&&t.engine.setCurrentTime(0);var r={};return e&&!1===t._opts.silentAutoPlay&&(r.silentAutoPlay="allow",t.trigger("clicked-play-before-ready")),i.default.detect.ios.version&&10.1>i.default.detect.ios.version&&!(0,k.inUserEventContext)()&&!t.engine.isInitializingFromUnmuted()?(t.notice("Play rejected because not in user context."),n(),void o()):void(t._playPromise=t.engine.play(r).then((function(e){t._isPlayPending=!1,t._lastPlayType=e,t._lastPlayResolvedAt=Date.now(),"play-silently"!==e||t._inSilentPlaybackMode||(t._inSilentPlaybackMode=!0,t.trigger("silentplaybackmodechange",!0)),o()})).catch((function(e){t.notice(e),n(),o()})))})))})),this)}},{key:"pause",value:function(){var t=this;return this.info("pause"),this.trigger("receivepause"),this.initEngineAfterEmbedded(),this.commandQueueOpen.synchronize((function(e){t._isPausePending=!1,t._lastPauseSource=L(),t._lastPauseIssuedAt=Date.now(),t.ready()?t.engine.pause().then((function(){t._isPausePending=!1,e()})):e()})),this}},{key:"time",value:function(t,e){var n=this;return null==t?this.engine&&this.engine.getCurrentTime()||0:(this.info("time",t),"beforeplay"===this.state()&&(this._startPosition=t),this.initEngineAfterEmbedded(),this.commandQueueOpen.synchronize((function(i){"beforeplay"===n.state()&&(n._lastPlaySource=L(),n._lastPlayIssuedAt=Date.now(),n._isPlayPending=!0,n._lastPlayType=void 0,n._isPausePending=!0,n._lastPauseIssuedAt=n._lastPlayIssuedAt,n._lastPauseSource=n._lastPlaySource),t=Math.max(0,Math.min(n.duration(),t)),n.ready((function(){return e&&e.lazy&&"playing"!==n.state()?(n.engine.seekOnPlay(t).then(n.behaviors.relayEvents.fireTimeChangedEventsIfChanged),n._isPlayPending=!1,void i()):void("beforeplay"===n.state()?n._seekPromise=n.engine.seek(t,e).catch((function(e){n.notice(e),n.engine.seekOnPlay(t),n._isPlayPending=!1,n._lastPlayRejectedAt=Date.now(),n._lastPlayType=void 0,n.trigger("playrejected",n.lastPlayInfo()),i()})).then((function(t){n.behaviors.relayEvents.fireTimeChangedEventsIfChanged(),n._isPlayPending=!1,n._isPausePending=!1,n._lastPlayType=t,"play-silently"===t&&(n._inSilentPlaybackMode=!0,n.trigger("silentplaybackmodechange",!0)),i()})):(n.info("time ".concat(t,": set immediately")),n.engine.setCurrentTime(t),n.behaviors.relayEvents.fireTimeChangedEventsIfChanged(),i()))}))})),this)}},{key:"duration",value:function(){if(this.publicApi.isLiveMedia())return 1/0;if(this.engine)return this.engine.getDuration();var t=this._mediaData.secondaryMediaData?this._mediaData.secondaryMediaData.duration:this._mediaData.duration,e={attributes:{cuts:this._opts.cuts,duration:t,trimEnd:this._opts.trimEnd,trimStart:this._opts.trimStart}};return(0,v.getDurationAfterCuts)(e)}},{key:"volume",value:function(t){return null==t?this.engine?this.engine.getVolume():null==this._volume?1:this._volume:(this.info("volume",t),t=Math.max(0,Math.min(1,t)),this.initEngineAfterEmbedded(),this._volume=t,this.ready()&&this.engine.setVolume(t),this)}},{key:"mute",value:function(){var t=this;this._muted=!0,this.ready()?this.engine.mute():this.ready((function(){t.engine.mute()}))}},{key:"unmute",value:function(){this._muted=!1,this.ready()&&(i.default.detect.callingPlayRequiresEventContext?"playing"!==this.state()||(0,k.inUserEventContext)()?(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1))):this.notice("could not unmute"):(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1))))}},{key:"isMuted",value:function(){return this.engine?this.engine.isMuted():null==this._muted?!!this._opts.muted:this._muted}},{key:"isResumableEnabled",value:function(){return this.behaviors[f.default.handle]&&!this.publicApi.isLiveMedia()&&(!0===this._opts.resumable||!1!==this._opts.resumable&&this.meetsAutoCriteraForResumable())}},{key:"meetsAutoCriteraForResumable",value:function(){var t=this.isControlEnabled("playbar")||this._opts.playbar;return!(0,d.shorterThanResumableThreshold)(this.duration())&&!this._opts.autoPlay&&"loop"!==this._opts.endVideoBehavior&&(t||this.isAudio())}},{key:"shouldResume",value:function(){return this.isResumableEnabled()&&(0,d.withinResumableTime)(this.publicApi.hashedId(),this.duration())}},{key:"state",value:function(){if(this.engine){var t,e=this.engine.getPlaybackMode();return"beforeplay"===e&&null!==(t=this.behaviors.relayEvents)&&void 0!==t&&t._hasPlayed?"paused":e}return"beforeplay"}},{key:"setAriaLiveText",value:function(t){this.ui||(this.ui=this.behaviors.ui),this.ui.setAriaLiveText(t)}},{key:"lastPauseInfo",value:function(){return{source:this._lastPauseSource,issuedAt:this._lastPauseIssuedAt,isPending:!!this._isPausePending}}},{key:"lastPlayInfo",value:function(){return{source:this._lastPlaySource,issuedAt:this._lastPlayIssuedAt,isPending:!!this._isPlayPending,playType:this._lastPlayType,resolvedAt:this._lastPlayResolvedAt,rejectedAt:this._lastPlayRejectedAt}}},{key:"playerColor",value:function(t){var e=this;return null==t?this._attrs.playerColor:(this.info("playerColor",t),this.embedded((function(){var n=e._attrs.playerColor;t=i.default.Player._sanePlayerColor(t),e._attrs.playerColor=new _.default(t).toHex(),n!==e._attrs.playerColor&&e.trigger("playercolorchange",e._attrs.playerColor,n)})),this)}},{key:"playerBackgroundColor",value:function(t){if(null!=t){this.info("playerBackgroundColor",t);var e=this._attrs.playerBackgroundColor;return this._attrs.playerBackgroundColor=new _.default(t).toHex(),e!==this._attrs.playerBackgroundColor&&this.trigger("playerbackgroundcolorchange",this._attrs.playerBackgroundColor,e),this}return this._attrs.playerBackgroundColor}},{key:"width",value:function(t){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==t||i.fullscreen||!this.inFullscreen()?x(B(e.prototype),"width",this).call(this,t,i):(this.info("notFullscreen => width(".concat(t,")")),this.notFullscreen((function(){x(B(e.prototype),"width",n).call(n,t,i)})),this)}},{key:"height",value:function(t){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==t||i.fullscreen||!this.inFullscreen()?x(B(e.prototype),"height",this).call(this,t,i):(this.info("notFullscreen => height(".concat(t,")")),this.notFullscreen((function(){x(B(e.prototype),"height",n).call(n,t,i)})),this)}},{key:"videoWidth",value:function(t){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==t||i.fullscreen||!this.inFullscreen()?x(B(e.prototype),"videoWidth",this).call(this,t,i):(this.info("notFullscreen => videoWidth(".concat(t,")")),this.notFullscreen((function(){x(B(e.prototype),"videoWidth",n).call(n,t,i)})),this)}},{key:"videoHeight",value:function(t){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==t||i.fullscreen||!this.inFullscreen()?x(B(e.prototype),"videoHeight",this).call(this,t,i):(this.info("notFullscreen => videoHeight(".concat(t,")")),this.notFullscreen((function(){x(B(e.prototype),"videoHeight",n).call(n,t,i)})),this)}},{key:"playbackRate",value:function(t){var e=this;return null==t?this.engine?this.engine.getPlaybackRate():1:(this.initEngineAfterEmbedded(),this.ready((function(){e.info("playbackRate",t);var n=parseFloat(t);if(isNaN(n))return e.error('playbackRate: Invalid argument "#{rate}" given. Expected a float.'),e;t=n;var i=e.engine.getPlaybackRate();e.engine.setPlaybackRate(t),e._eventLoopDuration=Math.max(50,Math.min(500,e._baseEventLoopDuration/t)),e._playbackRate=t,i!==e._playbackRate&&e.trigger("playbackratechange",e._playbackRate)})),this)}},{key:"trim",value:function(t){var e=this;return null==t?this.engine.getTrim():void this.embedded((function(){(0,T.equalsDeep)(t,e.engine.getTrim())||(e.engine.setTrim(t),e.trigger("trimchange",t))}))}},{key:"captureCurrentFrame",value:function(){var t;return(t=this.engine).captureCurrentFrame.apply(t,arguments)}},{key:"getReportAProblemData",value:function(t){var e=this,n=function(t){try{return t()}catch(t){return"threw exception: ".concat(t.message)}},o=j(this.publicApi._opts),r=this.publicApi._optionSources();Object.keys(r).forEach((function(t){r[t]=j(r[t])}));var a={media_key:this._mediaData.mediaKey,account_key:this._mediaData.accountKey,visitor_key:this.visitorKey(),event_key:this.eventKey(),referrer:document.referrer,page_url:location.href,extra_data:{first_1000_logs:i.default.wlog.first1000LogLines(),last_1000_logs:i.default.wlog.last1000LogLines(),browser_time:new Date,option_sources:n((function(){return r})),embed_options:o,active_plugins:n((function(){return Object.keys(e.publicApi.plugin)})),assets:this._mediaData.assets,selectedAsset:this.engine.selectedAsset(),attrs:this._attrs,assetOptions:n((function(){return e.assetOptions()})),isScreencast:n((function(){return e.isScreencast()})),judy:n((function(){return b.report(e.publicApi.judyCtx(),e._mediaData,e._opts)})),detect:i.default.detect,engineDiagnostics:n((function(){return e.engine.diagnosticData()}))}};for(var s in this.publicApi.plugin)if("vulcanVideo"!=s){var u=this.publicApi.plugin[s];"function"==typeof u.getReportAProblemData&&(a.extra_data[s]=u.getReportAProblemData())}return a}},{key:"isKeyboardFocused",value:function(t){return null!=t&&(this._isKeyboardFocused=t),this._isKeyboardFocused}},{key:"setControlEnabled",value:function(t,e){var n=this,i=this.isControlEnabled(t)!==e;this._enabledControls[t]=e;var o=function(){e?n.trigger("controlenabled",t):n.trigger("controldisabled",t)};return i?this.embedded()?this.renderUI().then(o):new(S())((function(t){n.embedded(t),o()})):this.ui&&this.ui.lastRenderPromise||S().resolve()}},{key:"isControlDisabled",value:function(t){var e=i.default._controlDefinitions[t];return!!(e&&e.isVideoChrome&&this._opts.chromeless)||!1===this._enabledControls[t]}},{key:"isControlEnabled",value:function(t){return!1!==this._enabledControls[t]&&null!=this.publicApi.controls[t]}},{key:"whenControlMounted",value:function(t){var e=this;return new(S())((function(n){e.embedded((function(){e.behaviors.ui.whenControlMounted(t).then(n)}))}))}},{key:"getControl",value:function(t){return this.ui&&this.ui.controls&&this.ui.controls[t]}},{key:"_doEnterInputContexts",value:function(){var t=this;this._inputContextsToEnter=this._inputContextsToEnter.reverse().filter((function(e){var n=t._playerContext.indexOf(e);0<n&&t._playerContext.splice(n,1),(-1===n||0<n)&&(t._playerContext.unshift(e),t.trigger("inputcontextchange",e))}))}},{key:"enterInputContext",value:function(t){var e=this;(0,O.clearTimeouts)("".concat(this.uuid,".enter_input_contexts")),this._inputContextsToEnter.push(t),(0,O.doTimeout)("".concat(this.uuid,".enter_input_contexts"),(function(){e._doEnterInputContexts()}),10)}},{key:"originalenterInputContext",value:function(t){var e=this._playerContext.indexOf(t);0<e&&this._playerContext.splice(e,1),(-1===e||0<e)&&(this._playerContext.unshift(t),this.trigger("inputcontextchange",t))}},{key:"exitInputContext",value:function(t){var e=this.getInputContext(),n=this._playerContext.indexOf(t);if(-1!==n){this._playerContext.splice(n,1);var i=this.getInputContext();e!==i&&this.trigger("inputcontextchange",i)}}},{key:"getInputContext",value:function(){return this._playerContext[0]}},{key:"getMediaElement",value:function(){return this.engine&&this.engine.getMediaElement()}},{key:"whenVideoElementInDom",value:function(){var t=this;return this._whenVideoElementInDom?this._whenVideoElementInDom:this.engine?S().resolve(this.getMediaElement()):this._whenVideoElementInDom=new(S())((function(e){t.bind("engine-initialized",(function(){return e(t.getMediaElement()),t.unbind}))}))}},{key:"inSilentPlaybackMode",value:function(){return!!this._inSilentPlaybackMode}},{key:"checkForReady",value:function(){this.behaviors.embed.checkForReady()}},{key:"loadOverlayCode",value:function(){var t=this;return new(S())((function(e){return t.behaviors.overlays?void e():void i.default.asyncRequire("vulcanV2Player/behaviors/OverlaysBehavior.js").then((function(n){t.behaviors.overlays||t.addBehavior(n),e()}))}))}},{key:"defineOverlay",value:function(t,e){var n=this;return this.loadOverlayCode().then((function(){n._overlays[t]=e}))}},{key:"requestOverlay",value:function(t){var e=this;return this.loadOverlayCode().then((function(){return e.behaviors.overlays.requestOverlay(t)}))}},{key:"cancelOverlay",value:function(t){var e=this;return this.loadOverlayCode().then((function(){return e.behaviors.overlays.cancelOverlay(t)}))}},{key:"undefineOverlay",value:function(t){var e=this;return this.loadOverlayCode().then((function(){return e.behaviors.overlays.undefineOverlay(t)}))}},{key:"getOverlays",value:function(){return this._overlays}},{key:"layout",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==t?this._layout:(this.whenVideoElementInDom().then((function(){e.engine.setLayout(t,n)})),void(this._layout=t))}},{key:"focus",value:function(){this.isAudio()?this.whenControlMounted("audioBackgroundFocus").then((function(t){t.focus()})):this.whenControlMounted("backgroundFocus").then((function(t){t.focus()}))}},{key:"_inNativeMode",value:function(){var t;return(null===(t=this.behaviors.ui)||void 0===t?void 0:t.inNativeMode())||!1}},{key:"_bandwidthTest",value:function(){return this.behaviors.bandwidthTest.bandwidthTest()}},{key:"_mozillaAtEnd",value:function(){return this.behaviors.relayEvents.mozillaAtEnd()}},{key:"_focusNextVisibleElem",value:function(){return this.behaviors.ui.focusNextVisibleElem()}},{key:"openTabMenu",value:function(){this.isAudio()&&this.ui.openTabMenu()}},{key:"closeTabMenu",value:function(){this.isAudio()&&this.ui.closeTabMenu()}},{key:"openChaptersTab",value:function(){var t=this;this.isAudio()&&this.whenControlMounted("chaptersTab").then((function(e){t.ui.setSelectedTab(e.constructor.handle),t.openTabMenu()}))}},{key:"openShareTab",value:function(){var t=this;this.isAudio()&&this.whenControlMounted("shareTab").then((function(e){t.ui.setSelectedTab(e.constructor.handle),t.openTabMenu()}))}},{key:"openTranscriptTab",value:function(){var t=this;this.isAudio()&&this.whenControlMounted("transcriptTab").then((function(e){t.ui.setSelectedTab(e.constructor.handle),t.openTabMenu()}))}}])&&A(n.prototype,w),P&&A(n,P),e}(i.default.Video);i.default.VulcanV2Player=F,i.default.plugin("vulcanV2Player",(function(t,e){i.default.info("vulcanV2Player no-op plugin executed")}));var L=function(){return(0,k.inUserEventContext)()?"user-event":"non-user-event"},j=function(t){var e=(0,T.clone)(t);return e.container&&(e.container="removed to avoid circular"),e}}i.default.VulcanV2Player},function(t,e,n){"use strict";var i=n(2),o=n(547),r=n(548),a=n(135),s=n(64),u=n(6),l=n(11),c=n(14),f=n.n(c);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(){return(d=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function p(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?g(t):e}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}(0,l.defineTranslations)("en-US",{AUDIO_DESCRIPTION_HIDE_MENU:"Hide audio description menu",AUDIO_DESCRIPTION_SHOW_MENU:"Show audio description menu"});var _=function(t){function e(t){var n,i,o,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=h.call(this,t),i=g(n),r=function(t){+n.video.engine.getCurrentAudioTrackId()!=+t&&n.video.changeAudioTrack(t)},(o="onClickTrack")in i?Object.defineProperty(i,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[o]=r,n.video=t,n.unbinds.push(t.on("playerlanguagechange",(function(){n.menuElem&&n.renderMenu()})),t.on("audiostreamchange",(function(){n.menuElem&&n.renderMenu()}))),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(e,t);var n,a,c,h=m(e);return n=e,(a=[{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"mountDialog",value:function(t){var e=this;this.dialogRoot=t;var n=i.default.asyncRequire(["interFontFace.js"]).then((function(){e.renderMenu()}));return this.loading(new(f())((function(t){n.then(t)}))),n}},{key:"onControlPropsUpdated",value:function(t){this.dialog&&this.dialog.isOpen()&&this.renderMenu(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&(this.renderButton(),this.renderMenu())}},{key:"renderButton",value:function(){this.updateButtonLabel(),(0,u.render)((0,u.h)(o.default,null),this.buttonRoot),this.reactMounts.button=[this.buttonRoot]}},{key:"renderMenu",value:function(){var t=this;if(this.dialog.isOpen()&&this.dialogRoot){var e=this.video.engine.getAudioTracks();(0,u.render)((0,u.h)(r.default,d({},this.props,{elemRef:function(e){return t.menuElem=e},onClick:this.onClickTrack,scale:this.props.scale,tracks:e})),this.dialogRoot),this.reactMounts.menu=[this.dialogRoot]}}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("HIDE_MENU")):this.setButtonLabel(this.translate("SHOW_MENU")))}},{key:"translate",value:function(t){return(0,l.getTranslation)(this.props.playerLanguage.code,"AUDIO_DESCRIPTION_".concat(t))}}])&&p(n.prototype,a),c&&p(n,c),e}(a.default);_.shouldMount=function(t){return!!(!1!==t._opts.audioDescriptionIsRequired&&t._impl&&t._impl.getAudioTracks&&1<t._impl.getAudioTracks().length)},_.handle="audioDescriptionButton",_.type="control-bar-right",_.sortValue=51,_.isVideoChrome=!0,i.default.defineControl(_),i.default.AudioDescriptionControl=_},function(t,e,n){"use strict";var i=n(6),o=n(7);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?s(Object(e),!0).forEach((function(n){l(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){function e(){return c(this,e),l.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t);var n,r,s,l=d(e);return n=e,(r=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var t={fill:"none",stroke:"#ffffff","stroke-width":"1.8","stroke-linecap":"round"},e=u(u({},t),{},{"stroke-linejoin":"round"});return(0,i.h)("svg",a({},(0,o.standardSvgAttrs)(40,34),{onMouseEnter:this.props.onMouseEnter}),(0,i.h)("g",e,(0,i.h)("path",{d:"M19.6,14.5c2.2,0,3,1.4,3,2.8c0,1.3-0.7,2.8-3,2.8h-1.5v-5.6H19.6z"}),(0,i.h)("polyline",{points:"9.9,20.1 12.5,14.5 14.9,20.1 \t\t\t"}),(0,i.h)("path",{d:"M10.4,18.9h4"})),(0,i.h)("g",t,(0,i.h)("path",{d:"M27.4,24.7c2.2-2.1,3.2-4.9,3.2-7.4c0-2.7-1-5.3-3.2-7.4"}),(0,i.h)("path",{d:"M24.5,12.8c1.4,1.2,2,2.8,2,4.5c0,1.6-0.5,3.3-2,4.5"})))}}])&&f(n.prototype,r),s&&f(n,s),e}(i.Component);e.default=m},function(t,e,n){"use strict";var i=n(222),o=n(6),r=n(11),a=n(9),s=n(15),u=n(7),l=n(10);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(){return(h=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function y(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),t}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}(0,r.defineTranslations)("en-US",{AUDIO_DESCRIPTION_OFF:"Off"});var S=function(t){function e(){return d(this,e),n.apply(this,arguments)}m(e,t);var n=g(e);return y(e,[{key:"render",value:function(){var t=this;return(0,o.h)("div",null,(0,o.h)("fieldset",{style:{border:0,padding:0,margin:0}},(0,o.h)(i.default,{tagName:"legend"},"Audio Description Menu"),this.props.tracks.map((function(e){return(0,o.h)(k,h({},t.props,{track:e}))}))))}}]),e}(o.Component),k=function(t){function e(t){var i;return d(this,e),f(_(i=n.call(this,t)),"onBlur",(function(){i.state.isKeyboardFocused&&i.setState({isKeyboardFocused:!1})})),f(_(i),"onClick",(function(){i.props.onClick(i.props.track.id)})),f(_(i),"onFocus",(function(){(0,s.isMouseDown)()||i.setState({isKeyboardFocused:!0})})),f(_(i),"onMouseEnter",(function(){i.setState({isHovering:!0})})),f(_(i),"onMouseLeave",(function(){i.setState({isHovering:!1})})),i.uuid=(0,l.seqId)(),i}m(e,t);var n=g(e);return y(e,[{key:"checkStyle",value:function(){return{height:O(this),verticalAlign:"middle",visibility:this.props.track.isSelected?"visible":"hidden",width:T(this)}}},{key:"menuItemStyle",value:function(){return{background:this.state.isHovering?"rgba(0,0,0,.3)":"",boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",display:"block",fontFamily:a.interFontFamily,fontSize:P(this),lineHeight:O(this),marginRight:"".concat(10*this.props.scale,"px"),textAlign:"left",width:"100%"}}},{key:"translate",value:function(t){return(0,r.getTranslation)(this.props.playerLanguage.code,"AUDIO_DESCRIPTION_".concat(t))}},{key:"render",value:function(){var t=this.props,e=t.track,n=t.elemRef,r=e.label;"Original"===r&&(r=this.translate("OFF"));var a="AD-".concat(this.uuid,"-").concat(r,"+").concat(e.id);return(0,o.h)("div",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:n,style:this.menuItemStyle()},(0,o.h)(i.default,{checked:!!e.isSelected,id:a,name:"Audio Description Menu",onBlur:this.onBlur,onClick:this.onClick,onFocus:this.onFocus,tagName:"input",type:"radio",value:r}),(0,o.h)("label",{class:"w-css-reset",for:a},(0,o.h)("svg",h({},(0,u.standardSvgAttrs)(40,34),{class:"w-checkmark",style:this.checkStyle()}),(0,o.h)("polyline",{fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",points:"17,17 20,20 25,14 "})),r))}}]),e}(o.Component),T=function(t){return"".concat(function(t){return 40*t.props.scale}(t),"px")},O=function(t){return"".concat(function(t){return 34*t.props.scale}(t),"px")},P=function(t){return 14*t.props.scale};e.default=S},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(64),a=n(6),s=n(11);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=(0,n(20).cachedDetect)();(0,s.defineTranslations)("en-US",{BACKGROUND_FOCUS_SHOW_CONTROLS:"Show controls"});var v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),y(d(n=u.call(this,t)),"onControlPropsUpdated",(function(t){var e=n.props.isFocusable;t.isFocusable!=e&&e&&n._focusImmediately&&(n.el.focus({preventScroll:!0}),n._focusImmediately=!1)})),y(d(n),"focus",(function(){n.props.isFocusable?n.el.focus({preventScroll:!0}):n._focusImmediately=!0})),y(d(n),"onBlur",(function(){n.video.exitInputContext("background-focus"),n.video.controls.focusOutline.hide()})),y(d(n),"onFocus",(function(){n.video.enterInputContext("background-focus"),!0===n.video.isKeyboardFocused()&&n.video.controls.focusOutline.show()})),y(d(n),"render",(function(){(0,a.render)((0,a.h)("button",{ref:function(t){return n.el=t},"aria-label":n.getTranslation(),class:"w-css-reset w-vulcan-v2-button",onBlur:n.onBlur,onFocus:n.onFocus,style:n.style(),tabIndex:0}),n.rootElem),n.reactMounts=[n.rootElem]})),n.video=t,n._focusImmediately=!1,n.unbinds.push(n.video.on("play",n.render),n.video.on("pause",n.render),n.video.on("end",n.render)),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t);var n,i,o,u=f(e);return n=e,(i=[{key:"destroy",value:function(){(0,r.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t,this.render()}},{key:"style",value:function(){return{width:0,height:0,pointerEvents:"none"}}},{key:"getTranslation",value:function(){return m.touchScreen&&!this.props.chromeless?this.translate("BACKGROUND_FOCUS_SHOW_CONTROLS"):"playing"===this.video.state()?this.translate("PLAY_BUTTON_TITLE_WHEN_PLAYING"):this.translate("PLAY_BUTTON_TITLE_WHEN_NOT_PLAYING")}},{key:"translate",value:function(t){return(0,s.getTranslation)(this.props.playerLanguage.code,t)}}])&&l(n.prototype,i),o&&l(n,o),e}(o.default);v.shouldMount=function(){return!0},v.handle="backgroundFocus",v.type="background",v.sortValue=100,i.default.defineControl(v)},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(551),a=n(64),s=n(226),u=n(6);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),m(p(n=l.call(this,t)),"renderButton",(function(){n.__destroyed||((0,u.render)((0,u.h)(r.default,{baseHeight:80,baseWidth:125,color:n.video.playerColor(),duration:n.video.duration(),elemRef:function(t){return n.buttonElem=t},isLiveMedia:n.video.isLiveMedia(),isVisible:n.shouldShow(),leftNudgeFraction:n.getLeftNudgeFraction(),noMixBlendMode:n.video.embedOptions().noMixBlendMode,onClick:n.onClick,playerLanguage:n.props.playerLanguage,scale:n.scale(),showBpbTime:n._timeEnabled,topNudgeFraction:n.getTopNudgeFraction(),videoHeight:n.props.videoHeight-.75*n.props.controlBarHeight,videoName:n.video.name()||"",videoWidth:n.props.videoWidth}),n.rootElem),n.reactMounts=[n.rootElem])})),m(p(n),"onClick",(function(){n.video.play(),n.video.focus()})),n.unbinds.push(t.on("playercolorchange",n.renderButton),t.on("play",n.renderButton),t.on("playrejected",n.renderButton),t.on("playpending",n.renderButton),t.on("playerlanguagechange",n.renderButton),t.on("end",n.renderButton),t.on("up",n.renderButton),t.on("trimchange",n.renderButton)),n._timeEnabled=n.video._opts.bpbTime,n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,t);var n,i,o,l=h(e);return n=e,(i=[{key:"mount",value:function(t){this.rootElem=t,this.renderButton()}},{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){(this.props.videoWidth!==t.videoWidth||this.props.videoHeight!==t.videoHeight)&&this.renderButton()}},{key:"shouldShow",value:function(){var t=this.video;return!1===t.lastPlayInfo().isPending&&("beforeplay"===t.state()||"ended"===t.state()&&"reset"===t._opts.endVideoBehavior)}},{key:"scale",value:function(){return Math.min(1.3,Math.max(.3,(0,s.controlMultiplierBasedOnVideo)(this.video,[640,960])))}},{key:"setTimeEnabled",value:function(t){this._timeEnabled=t,this.renderButton()}},{key:"setLeftNudgeFraction",value:function(t){this._leftNudgeFraction=t,this.renderButton()}},{key:"setTopNudgeFraction",value:function(t){this._topNudgeFraction=t,this.renderButton()}},{key:"getLeftNudgeFraction",value:function(){return null==this._leftNudgeFraction?this.video._opts.bpbLeftNudge:this._leftNudgeFraction}},{key:"getTopNudgeFraction",value:function(){return null==this._topNudgeFraction?this.video._opts.bpbTopNudge:this._topNudgeFraction}},{key:"getButtonOffsets",value:function(){var t=this.buttonElem;return{offsetHeight:t.offsetHeight,offsetTop:t.offsetTop}}}])&&c(n.prototype,i),o&&c(n,o),e}(o.default);v.shouldMount=function(t){var e=t._opts.playButton;return null==e||!0===e},v.handle="bigPlayButton",v.type="above-control-bar",i.default.defineControl(v)},function(t,e,n){"use strict";var i=n(552),o=n(9),r=n(11),a=n(6),s=n(73),u=n(39),l=n(68),c=n(20),f=n(7);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(){return(d=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function p(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?g(t):e}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=(0,c.cachedDetect)(),S=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_(g(n=h.call(this,t)),"onMouseEnter",(function(){n.setState({isHovering:!0})})),_(g(n),"onMouseLeave",(function(){n.setState({isHovering:!1})})),_(g(n),"onFocusIn",(function(){n.setState({isHovering:!0})})),_(g(n),"onFocusOut",(function(){n.setState({isHovering:!1})})),n.state={isHovering:!1},n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(e,t);var n,i,c,h=m(e);return n=e,(i=[{key:"render",value:function(){var t=this.props,e=t.baseHeight,n=t.baseWidth,i=t.elemRef,o=t.scale,r=(0,f.standardSvgAttrs)(n,e);return r.style.position="absolute",r.style.height="".concat(e*o,"px"),(0,a.h)("div",{class:"w-bpb-wrapper w-css-reset w-css-reset-tree",ref:i,style:this.wrapperStyle()},(0,a.h)("button",{class:"w-big-play-button w-css-reset-button-important w-vulcan-v2-button",style:this.buttonStyle(),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onfocusin:this.onFocusIn,onfocusout:this.onFocusOut,"aria-label":"".concat(this.translate("TITLE_WHEN_NOT_PLAYING"),": ").concat((0,u.unescapeHtml)(this.props.videoName)),tabIndex:this.props.buttonTabIndex},(0,a.h)("div",{style:this.blendStyle()}),(0,a.h)("div",{style:this.overlayStyle()}),(0,a.h)("svg",d({},r,{alt:""}),(0,a.h)("rect",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"none",width:n,height:e}),(0,a.h)("polygon",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#FFFFFF",points:"53,22 53,58 79,40"}))),this.props.showBpbTime&&!0!==this.props.isLiveMedia?(0,a.h)("div",{class:"w-bpb-time",style:this.timeStyle()},(0,l.flexibleDuration)(this.props.duration)):null)}},{key:"translate",value:function(t){return(0,r.getTranslation)(this.props.playerLanguage.code,"PLAY_BUTTON_".concat(t))}},{key:"wrapperStyle",value:function(){var t=this.props,e=t.baseHeight,n=t.baseWidth,i=t.isVisible,o=t.leftNudgeFraction,r=t.topNudgeFraction,a=t.scale,s=n*a,u=e*a;return{display:i?"block":"none",left:"calc(50% + ".concat(100*(o||0),"%)"),marginLeft:"-".concat(s/2,"px"),marginTop:"-".concat(u/2,"px"),position:"absolute",top:"calc(50% + ".concat(100*(r||0),"%)")}}},{key:"shouldMixBlendMode",value:function(){var t=this.props.noMixBlendMode;return!w.trident&&!w.edge&&!t}},{key:"blendStyle",value:function(){var t=this.props,e=t.baseHeight,n=t.baseWidth,i=t.color,o=t.scale;return{background:new s.default(i||"#000").alpha(1).toRgba(),display:this.shouldMixBlendMode()?"block":"none",left:0,height:"".concat(e*o,"px"),mixBlendMode:"darken",position:"absolute",top:0,width:"".concat(n*o,"px")}}},{key:"overlayStyle",value:function(){var t=this.props,e=t.baseHeight,n=t.baseWidth,i=t.color,o=t.scale,r=this.state.isHovering,a=new s.default(i||"#000");return a.alpha(.7),this.shouldMixBlendMode()||a.alpha(.85),r&&a.lighten(30),{backgroundColor:a.toRgba(),height:"".concat(e*o,"px"),left:0,position:"absolute",top:0,transition:"background-color 150ms",width:"".concat(n*o,"px")}}},{key:"buttonStyle",value:function(){var t=this.props,e=t.scale,n=t.baseHeight,i=t.baseWidth;return{cursor:"pointer",height:"".concat(n*e,"px"),boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",width:"".concat(i*e,"px")}}},{key:"timeStyle",value:function(){var t=this.props.scale;return{background:"rgba(0,0,0,.4)",color:"#fff",fontFamily:o.interNumbersSemiBold,fontSize:"".concat(18*t,"px"),lineHeight:"".concat(30*t,"px"),pointerEvents:"none",textAlign:"center"}}}])&&p(n.prototype,i),c&&p(n,c),e}(a.Component);e.default=(0,i.default)(S)},function(t,e,n){"use strict";var i=n(6),o=n(16);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=function(t){return function(e){function n(){var t;a(this,n);for(var e=arguments.length,i=Array(e),o=0;o<e;o++)i[o]=arguments[o];return d(f(t=p.call.apply(p,[this].concat(i))),"onClick",(function(e){var n=t.props.onClick;n&&n(e)})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(n,e);var r,c,h,p=l(n);return r=n,(c=[{key:"render",value:function(){return(0,i.h)(t,this.props)}},{key:"componentDidMount",value:function(){this.setupBindings()}},{key:"componentDidUpdate",value:function(){this.destroyBindings(),this.setupBindings()}},{key:"componentWillUnmount",value:function(){this.destroyBindings()}},{key:"setupBindings",value:function(){this.unbinds=[],this.unbinds.push((0,o.elemBind)(this.base,"click",this.onClick))}},{key:"destroyBindings",value:function(){this.unbinds&&(this.unbinds.map((function(t){return t()})),this.unbinds=null)}}])&&s(r.prototype,c),h&&s(r,h),n}(i.Component)}},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(554),a=n(64),s=n(6),u=n(24),l=n(15),c=n(11),f=n(20),h=n(14),d=n.n(h);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(){return(y=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function m(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k=(0,f.cachedDetect)();(0,c.defineTranslations)("en-US",{CLICK_FOR_SOUND_DESKTOP_TEXT:"Click for sound",CLICK_FOR_SOUND_MOBILE_TEXT:"Tap for sound"});var T=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),S(_(n=f.call(this,t)),"renderButton",(function(){var t,e=!!n.video._opts.silentAutoPlayIsChromeless,o=n.isVisible();if(e&&(o?n.video.requestChromeless("clickForSound"):n.video.releaseChromeless("clickForSound")),n.video.trigger("clickforsoundvisibilitychange",o),o){var a=new(d())((function(t){return setTimeout(t,1e3)}));t=d().race([a,i.default.asyncRequire("interFontFace.js")])}else t=d().resolve();n.lastRenderPromise||(n.lastRenderPromise=d().resolve()),n.lastRenderPromise.then((function(){n.lastRenderPromise=new(d())((function(e){t.then((function(){(0,s.render)((0,s.h)(r.default,y({},n.props,{backdropEnabled:n.getSilentAutoplayBackdropState(),buttonText:n.buttonText(),elemRef:function(t){return n.buttonRoot=t},isVisible:o,onClick:n.onClick,scale:n.scale()})),n.rootElem),n.reactMounts=[n.rootElem],n.trigger("buttonrootrendered"),e()}))}))}))})),S(_(n),"onClick",(function(t){(0,l.isMouseDown)()||n.video.focus(),n.video.unmute(),n.trigger("click",t)})),n.silentAutoPlayBackdropEnabled=n.video._opts.silentAutoPlayBackdropEnabled,n.unbinds.push(t.on("play",n.renderButton),t.on("silentplaybackmodechange",n.renderButton),t.on("volumechange",n.renderButton)),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(e,t);var n,o,u,f=g(e);return n=e,(o=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t,this.renderButton()}},{key:"onControlPropsUpdated",value:function(t){var e=this.props;(t.scale!==e.scale||t.controlsAreVisible!==e.controlsAreVisible||t.controlBarHeight!==e.controlBarHeight)&&this.renderButton(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&this.renderButton()}},{key:"getSilentAutoplayBackdropState",value:function(){return null==this.silentAutoPlayBackdropEnabled||this.silentAutoPlayBackdropEnabled}},{key:"setSilentAutoPlayBackdropEnabled",value:function(t){this.silentAutoPlayBackdropEnabled=t,this.renderButton()}},{key:"isVisible",value:function(){return null==this._isVisible?this.video.inSilentPlaybackMode():this._isVisible}},{key:"setIsVisible",value:function(t){this._isVisible=t,this.renderButton(),this.video.trigger("clickforsoundvisibilitychange",this.isVisible())}},{key:"buttonText",value:function(){return this._buttonText?this._buttonText:k.touchScreen?this.translate("MOBILE_TEXT"):this.translate("DESKTOP_TEXT")}},{key:"setButtonText",value:function(t){this._buttonText=t,this.renderButton()}},{key:"afterButtonRenders",value:function(){var t=this;return new(d())((function(e){t.bind("buttonrootrendered",(function(){return e(t.buttonRoot),t.unbind}))}))}},{key:"translate",value:function(t){var e;return(0,c.getTranslation)(null===(e=this.props)||void 0===e?void 0:e.playerLanguage.code,"CLICK_FOR_SOUND_".concat(t))}},{key:"scale",value:function(){return 1.5*this.props.scale}}])&&m(n.prototype,o),u&&m(n,u),e}(o.default);(0,u.bindify)(T.prototype),T.handle="clickForSoundButton",T.type="above-control-bar",i.default.defineControl(T)},function(t,e,n){"use strict";var i=n(58),o=n(6),r=n(9),a=n(15);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=function(t){function e(){var t;u(this,e);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return y(d(t=p.call.apply(p,[this].concat(i))),"onFocus",(function(){(0,a.isMouseDown)()||t.setState({isKeyboardFocused:!0})})),y(d(t),"onBlur",(function(){t.setState({isKeyboardFocused:!1})})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t);var n,s,h,p=f(e);return n=e,(s=[{key:"render",value:function(){var t=this.props.elemRef;return(0,o.h)(i.default,{class:"w-css-reset w-css-reset-tree","data-handle":"click-for-sound-backdrop",elemRef:t,onClick:this.props.onClick,style:this.rootStyle()},(0,o.h)("button",{"aria-label":this.props.buttonText,style:this.buttonStyle(),onFocus:this.onFocus,onBlur:this.onBlur,class:"w-vulcan-v2-button"},(0,o.h)("svg",{viewBox:"0 0 237 237"},(0,o.h)("style",null,this.styleText()),(0,o.h)("polygon",{fill:"white",points:"88 107 65 107 65 131 89 131 112 154 112 84"}),(0,o.h)("g",{fill:"none",stroke:"white","stroke-width":"10","stroke-linecap":"round"},(0,o.h)("path",{class:"volume__small-wave",d:"M 142 86 C 151 107 151 130 142 151"}),(0,o.h)("path",{class:"volume__large-wave",d:"M 165 74 C 178 97 178 140 165 163"})))))}},{key:"styleText",value:function(){return"\n      @keyframes VOLUME_SMALL_WAVE_FLASH {\n          0% { opacity: 0; }\n         33% { opacity: 1; }\n         66% { opacity: 1; }\n        100% { opacity: 0; }\n      }\n\n      @keyframes VOLUME_LARGE_WAVE_FLASH {\n          0% { opacity: 0; }\n         33% { opacity: 1; }\n         66% { opacity: 1; }\n        100% { opacity: 0; }\n      }\n\n      .volume__small-wave {\n        animation: VOLUME_SMALL_WAVE_FLASH 2s infinite;\n        opacity: 0;\n      }\n\n      .volume__large-wave {\n        animation: VOLUME_LARGE_WAVE_FLASH 2s infinite .3s;\n        opacity: 0;\n      }\n    "}},{key:"rootStyle",value:function(){return{display:this.props.isVisible?"block":"none",height:"100%",left:0,pointerEvents:this.props.backdropEnabled?"auto":"none",position:"absolute",top:0,width:"100%"}}},{key:"buttonStyle",value:function(){var t=this.props.scale;return{background:"rgba(0,0,0,0.8)",border:"2px solid ".concat(this.state.isKeyboardFocused?"#fff":"transparent"),borderRadius:"50%",cursor:"pointer",height:"".concat(35*t,"px"),width:"".concat(35*t,"px"),lineHeight:"".concat(35*t,"px"),outline:"none",pointerEvents:"auto",position:"absolute",right:"".concat(15*t-2,"px"),textAlign:"left",top:"".concat(15*t-2,"px")}}},{key:"textStyle",value:function(){var t=this.props.scale;return{color:"white",display:"inline-block",fontFamily:r.interFontFamily,fontSize:"".concat(13*t,"px"),marginLeft:"".concat(-4*t,"px"),marginTop:"".concat(-.75*t,"px"),verticalAlign:"top",whiteSpace:"nowrap",width:"36%"}}}])&&l(n.prototype,s),h&&l(n,h),e}(o.Component);e.default=m},function(t,e,n){"use strict";var i=n(556),o=n(135),r=n(2),a=n(59),s=n(64),u=n(14),l=n.n(u),c=(n(6),n(16)),f=n(20),h=n(15);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(t,e)||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 y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function m(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k=(0,f.cachedDetect)(),T=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),S(_(n=f.call(this,t)),"onContextMenu",(function(t,e){var o,r;t.altKey||null!==(o=(r=n.video.ui).shouldOnlyShowControlBar)&&void 0!==o&&o.call(r)||("contextmenu"===t.type&&t.preventDefault(),n.pageX=t.pageX,n.pageY=t.pageY,n._hasLoaded||n.loading(new(l())((function(t){n.resolveLoadingPromise=t})),{x:n.pageX,y:n.pageY}),new(l())((function(t){!(e&&e.isLongPress)&&(0,h.isMouseDown)()?(0,c.elemBind)(document,"mouseup",(function(e){return n.pageX=e.pageX,n.pageY=e.pageY,t(),c.elemUnbind})):t()})).then((function(){(0,i.logPromiseErrors)(n.loadContextMenu().then((function(){n.renderMenu&&(n.resolveLoadingPromise(),n.renderMenu(),n.menuElemRef.focus())})))})))})),S(_(n),"onClick",(function(t){(0,c.elemIsInside)(t.target,n.rootElem)||k.safari&&t.ctrlKey||(n.hideMenu?n.hideMenu():!n._hasLoaded&&n.loading(new(l())((function(t){return t()}))))})),S(_(n),"onDocumentMouseUp",(function(t){t.ctrlKey||(0,c.elemIsInside)(t.target,n.rootElem)||((0,c.elemUnbind)(document,"mouseup",n.onDocumentMouseUp),n.loadContextMenu().then((function(){n.hideMenu()})))})),k.touchScreen?(n.touchEvents=new a.default(t.chrome),n.touchEvents.bind("longpress",n.onContextMenu)):n.unbinds.push((0,c.elemBind)(t.chrome,"contextmenu",n.onContextMenu)),n.unbinds.push((0,c.elemBind)(t.chrome,"click",n.onClick)),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(e,t);var n,o,u,f=g(e);return n=e,(o=[{key:"mount",value:function(t){this.rootElem=t}},{key:"destroy",value:function(){this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),(0,s.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){this.props.playerLanguage!==t.playerLanguage&&this._visible&&this.renderMenu()}},{key:"loadContextMenu",value:function(){var t=this;return r.default.asyncRequire(["interFontFace.js","vulcanV2Player/shared/controls/ContextMenuControl/menu.js"]).then((function(e){var n=p(e,2),i=(n[0],n[1]);for(var o in i)t[o]=i[o].bind(t);t._hasLoaded=!0}))}}])&&m(n.prototype,o),u&&m(n,u),e}(o.default);T.handle="contextMenu",T.type="foreground",r.default.defineControl(T)},function(t,e,n){"use strict";n.d(e,{logPromiseErrors:function(){return o}});var i=function(t){setTimeout((function(){throw t}),0)},o=function(t){return t.catch(i)}},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(558),a=n(64),s=n(6),u=n(11);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}(0,u.defineTranslations)("en-US",{ELLIPSIS_LESS:"Show fewer buttons",ELLIPSIS_MORE:"Show more buttons"});var g=function(t){function e(){var t;c(this,e);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return v(y(t=l.call.apply(l,[this].concat(i))),"onClickButton",(function(){t.video.ui.isShowingMore()?(t.video.ui.showLess(),t.renderButton()):(t.video.ui.showMore(),t.renderButton())})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t);var n,i,o,l=d(e);return n=e,(i=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"mountButton",value:function(t){this.buttonElem=t,this.renderButton()}},{key:"renderButton",value:function(){(0,s.render)((0,s.h)(r.default,null),this.buttonElem),this.setButtonLabel(this.translate(this.video.ui.isShowingMore()?"LESS":"MORE"))}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"ELLIPSIS_".concat(t))}}])&&f(n.prototype,i),o&&f(n,o),e}(o.default);g.handle="ellipsisButton",g.isVideoChrome=!0,g.type="ellipsis",g.sortValue=1e5,g.shouldMount=function(t){var e,n,i=(null===(e=t._impl.ui)||void 0===e?void 0:e.getControlsByType("control-bar-right"))||[],o=(null===(n=t._impl.ui)||void 0===n?void 0:n.getControlsByType("playbar"))||[];return 0<i.length&&0<o.length&&t._impl.ui&&!t._impl.ui.shouldShowMoreDefaultValue()},i.default.defineControl(g)},function(t,e,n){"use strict";var i=n(6),o=n(7);function r(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){return(0,i.h)("svg",(0,o.standardSvgAttrs)(40,34),(0,i.h)("circle",{cx:"20",cy:"17",r:"2"}),(0,i.h)("circle",{cx:"13",cy:"17",r:"2"}),(0,i.h)("circle",{cx:"27",cy:"17",r:"2"}))}}])&&r(e.prototype,n),a&&r(e,a),t;var e,n,a}();e.default=a},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(64),a=n(6);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=s.call(this,t)).video=t,n._isVisible=!1,n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t);var n,i,o,s=c(e);return n=e,(i=[{key:"destroy",value:function(){(0,r.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t,this.render()}},{key:"hide",value:function(){this._isVisible=!1,this.render()}},{key:"show",value:function(){this._isVisible=!0,this.render()}},{key:"style",value:function(){return{boxShadow:"0 0 0 2px #fff inset",display:this._isVisible?"block":"none",height:"100%",left:0,pointerEvents:"none",position:"absolute",right:0,width:"100%"}}},{key:"render",value:function(){(0,a.render)((0,a.h)("div",{style:this.style(),class:"w-focus-outline"}),this.rootElem)}}])&&u(n.prototype,i),o&&u(n,o),e}(o.default);d.shouldMount=function(t){return!t.isAudio()},d.handle="focusOutline",d.type="foreground",d.sortValue=100,i.default.defineControl(d)},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(561),a=n(64),s=n(6),u=n(11),l=n(16);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=(0,n(20).cachedDetect)();(0,u.defineTranslations)("en-US",{FULLSCREEN_DOUBLE_TAP:"Double-tap to zoom in or out",FULLSCREEN_TITLE_WHEN_IN_FULLSCREEN:"Unfullscreen",FULLSCREEN_TITLE_WHEN_NOT_IN_FULLSCREEN:"Fullscreen"});var b=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),v(y(n=c.call(this,t)),"onClickButton",(function(){n.toggleFullscreen()})),v(y(n),"onKeyUp",(function(t){if(!(0,l.formInputIsFocused)()){var e=n.video.getInputContext();("background-focus"===e||"player-mouseover"===e||"player-focus"===e||"playbar-focus"===e)&&70===t.keyCode&&n.toggleFullscreen()}})),n.unbinds.push(t.on("enterfullscreen",(function(){n.renderButton()})),t.on("cancelfullscreen",(function(){n.renderButton()})),(0,l.elemBind)(document,"keyup",n.onKeyUp)),_()||w(n.video)||!S()||(n.mountDialog=n.maybeMountDialog),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t);var n,i,o,c=d(e);return n=e,(i=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&(this.renderButton(),this.dialog&&this.dialog.isOpen()&&this.renderDialog())}},{key:"maybeMountDialog",value:function(t){this.dialogElem=t,this.renderDialog()}},{key:"renderDialog",value:function(){this.dialogElem.innerHTML=this.translate("DOUBLE_TAP")}},{key:"mountButton",value:function(t){this.buttonElem=t,this.renderButton()}},{key:"renderButton",value:function(){if(this.buttonElem){var t=this.video.inFullscreen()?this.translate("TITLE_WHEN_IN_FULLSCREEN"):this.translate("TITLE_WHEN_NOT_IN_FULLSCREEN");this.setButtonLabel(t),(0,s.render)((0,s.h)(r.default,null),this.buttonElem),this.reactMounts=[this.buttonElem]}}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"FULLSCREEN_".concat(t))}},{key:"toggleFullscreen",value:function(){if(_()||w(this.video)){var t=this.video;t.inFullscreen()?t.cancelFullscreen():t.requestFullscreen()}}}])&&f(n.prototype,i),o&&f(n,o),e}(o.default);b.handle="fullscreenButton",b.type="control-bar-right",b.sortValue=1e3,i.default.defineControl(b);var _=function(){return g.fullscreenEnabled},w=function(t){var e=t._mediaData,n=t._opts,i=(e.spherical||n.spherical)&&!n.overrideSpherical,o=!!e.secondaryMediaData,r=top!==self;return 0<g.ios.version&&(!r||!i&&!o)},S=function(){return 0<g.ios.version||g.android};b.shouldMount=function(t){var e=t._opts.fullscreenButton;return(!0===e||null==e)&&(_()||w(t)||S())}},function(t,e,n){"use strict";var i=n(6),o=n(7);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){function e(){return s(this,e),h.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t);var n,r,f,h=c(e);return n=e,(r=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var t={fill:"none",stroke:"#ffffff","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10};return(0,i.h)("svg",(0,o.standardSvgAttrs)(40,34),(0,i.h)("g",null,(0,i.h)("g",null,(0,i.h)("polyline",a({},t,{points:"31.4,12.6 31.4,8.7 25.8,8.7"})),(0,i.h)("polyline",a({},t,{points:"14.7,8.7 9.1,8.7 9.1,12.6"})),(0,i.h)("polyline",a({},t,{points:"25.8,24.8 31.4,24.8 31.4,20.9"})),(0,i.h)("polyline",a({},t,{points:"9.1,20.9 9.1,24.8 14.7,24.8"}))),(0,i.h)("rect",a({x:"13.7",y:"12.3"},t,{"enable-background":"new",width:"13.3",height:"8.9"}))))}}])&&u(n.prototype,r),f&&u(n,f),e}(i.Component);e.default=d},function(t,e,n){"use strict";var i=n(135),o=n(563),r=n(2),a=n(64),s=n(16),u=n(6);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),m(p(n=l.call(this,t)),"show",(function(t){n._isVisible=!0,n.renderMenu(t)})),m(p(n),"hide",(function(){n._isVisible=!1,(0,u.render)((0,u.h)("nothing",null),n.rootElem),n.reactMounts=[n.rootElem]})),n._isVisible=!1,n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,t);var n,i,r,l=h(e);return n=e,(i=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t}},{key:"renderMenu",value:function(t){var e=t.x||0,n=t.y||0,i=(0,s.elemOffset)(this.video._embedContainer);this._isVisible&&((0,u.render)((0,u.h)(o.default,{videoOffset:i,x:e,y:n}),this.rootElem),this.reactMounts=[this.rootElem])}}])&&c(n.prototype,i),r&&c(n,r),e}(i.default);v.handle="loadingHourglass",v.type="foreground",r.default.defineControl(v)},function(t,e,n){"use strict";var i=n(6),o=n(16);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function s(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){function e(t){var n,i,o,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=h.call(this,t),i=f(n),r=function(t){var e=t.pageX-n.props.videoOffset.left+10,i=t.pageY-n.props.videoOffset.top;n.setState({x:e,y:i})},(o="onMouseMove")in i?Object.defineProperty(i,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[o]=r,n.animationInterval=void 0,n.state={x:n.props.x+10,y:n.props.y,floatingPixel:8},n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,t);var n,r,c,h=l(e);return n=e,(r=[{key:"componentWillMount",value:function(){var t=this;this.animationInterval=setInterval((function(){var e=t.state.floatingPixel+1;10<e&&(e=8),t.setState({floatingPixel:e})}),500),(0,o.elemBind)(document,"mousemove",this.onMouseMove)}},{key:"componentWillUnmount",value:function(){clearInterval(this.animationInterval),(0,o.elemUnbind)(document,"mousemove",this.onMouseMove)}},{key:"sandStyle",value:function(){return{fill:"#000000",width:"1",height:"1"}}},{key:"anchorStyle",value:function(){return{height:0,left:"".concat(this.state.x,"px"),position:"absolute",top:"".concat(this.state.y,"px"),width:0}}},{key:"sandProps",value:function(t,e){return{className:"sand",x:t,y:e,style:this.sandStyle()}}},{key:"useRules",value:function(){return{fill:"#FFFFFF","fill-rule":"evenodd"}}},{key:"hourGlassProps",value:function(t){return{stroke:"#000000",x:"1.5",y:t,width:"12",height:"2"}}},{key:"defsProps",value:function(t){return{x:1,y:t,width:13,height:3}}},{key:"render",value:function(){var t=this;return(0,i.h)("div",{style:this.anchorStyle(),onMouseMove:this.onMouseMove},(0,i.h)("svg",{width:"15px",height:"20px",viewBox:"0 0 15 20",version:"1.1"},(0,i.h)("defs",null,(0,i.h)("rect",a({id:"path-1"},this.defsProps(1))),(0,i.h)("rect",a({id:"path-2"},this.defsProps(16))),(0,i.h)("polygon",{id:"path-3",points:"2 3 13 3 13 7 10.25 10 13 13 13 17 2 17 2 13 4.75 10 2 7"})),(0,i.h)("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,i.h)("g",{id:"hourglass"},(0,i.h)("g",{id:"top"},(0,i.h)("use",a({},this.useRules(),{xlinkKref:"#path-1"})),(0,i.h)("rect",this.hourGlassProps(1.5))),(0,i.h)("g",{id:"bottom"},(0,i.h)("use",a({},this.useRules(),{xlinkHref:"#path-2"})),(0,i.h)("rect",this.hourGlassProps(16.5))),(0,i.h)("g",{id:"glass"},(0,i.h)("use",a({},this.useRules(),{xlinkHref:"#path-3"})),(0,i.h)("path",{stroke:"#000000",d:"M2.5,3.5 L2.5,6.80550815 L5.42828419,10 L2.5,13.1944918 L2.5,16.5 L12.5,16.5 L12.5,13.1944918 L9.57171581,10 L12.5,6.80550815 L12.5,3.5 L2.5,3.5 Z"})),(0,i.h)("rect",{id:"floater",fill:"#000000",x:"7",y:this.state.floatingPixel,width:"1",height:"1"}),[[5,6],[7,6],[6,7],[8,7],[7,11],[6,12],[8,12],[7,13],[6,14],[8,14],[5,13],[9,13],[4,14],[10,14],[5,6],[9,6]].map((function(e){return(0,i.h)("rect",t.sandProps(e[0],e[1]))}))))))}}])&&s(n.prototype,r),c&&s(n,c),e}(i.Component);e.default=d},function(t,e,n){"use strict";var i=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){function e(){return r(this,e),l.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t);var n,i,o,l=u(e);return n=e,(i=[{key:"width",value:function(){return this.props.width}},{key:"left",value:function(){return this.props.left}}])&&a(n.prototype,i),o&&a(n,o),e}(n(565).default);f.shouldMount=function(t){var e=t._opts.playbar;return!0===e||null==e},f.handle="playbar",f.type="playbar",i.default.defineControl(f)},function(t,e,n){"use strict";var i=n(135),o=n(192),r=n(76),a=n(64),s=n(49),u=n(44),l=n(15),c=n(16),f=n(6);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(){return(d=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function p(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function y(t,e,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?b(t):e}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),w(b(n=g.call(this,t)),"renderPlaybar",(function(){var t=n.video,e=t.plugin.chapters,i=e?e.getAllChapters():[],o=e?e.getChapterWithVisibleTitle():null,r=e?e.getChapterWithFocusedMarker():null,a=n.PlaybarComponent;(0,f.render)((0,f.h)(a,d({getCurrentTime:n.getCurrentTime,getCurrentBufferTime:n.getCurrentBufferTime,duration:t.duration(),isBeforePlay:"beforeplay"===t.state(),isVisible:n.props.controlsAreVisible,isPlaying:"playing"===t.state(),isSeeking:t._impl.engine&&t._impl.engine.isSeeking()},n.props,{onDragStart:n.onDragStart,onDrag:n.onDrag,onDragEnd:n.onDragEnd,onBlur:n.onBlurPlaybar,onFocus:n.onFocusPlaybar,isPlaceholder:n.isPlaceholder(),chapters:i,chapterWithFocusedMarker:r,chapterWithVisibleTitle:o,onClickChapter:n.onClickChapter,onMouseEnterOrFocusChapter:n.onMouseEnterOrFocusChapter,onMouseLeaveOrBlurChapter:n.onMouseLeaveOrBlurChapter,mediaData:n.video._mediaData,embedOptions:n.video._opts,color:n.video.playerColor(),showTime:n.showTime,lastSeekedAt:n._lastSeekedAt||0,shouldShowStoryboard:n.shouldShowStoryboard(),shouldShowChapterTitles:!0,shouldShowTime:n.shouldShowTime(),storyboardAsset:n.storyboardAsset(),leftControlBarWidth:n.props.leftControlBarWidth,setTimeWidth:n.setTimeWidth,setRightBarMargin:n.setRightBarMargin,resumableTime:n.resumableTime(),getDurationBeforeCuts:n.getDurationBeforeCuts,getTimeBeforeCuts:n.getTimeBeforeCuts})),n.rootElem),n.reactMounts=[n.rootElem]})),w(b(n),"getDurationBeforeCuts",(function(){var t;return null!==(t=n.video)&&void 0!==t&&t.engine?n.video.engine.getDurationBeforeCuts():-1})),w(b(n),"getTimeBeforeCuts",(function(t){var e;return null!==(e=n.video)&&void 0!==e&&e.engine?n.video.engine.getTimeBeforeCuts(t):-1})),w(b(n),"setTimeWidth",(function(t){n._timeWidth=t})),w(b(n),"setRightBarMargin",(function(t){n._rightBarMargin=t})),w(b(n),"renderNothing",(function(){(0,f.render)((0,f.h)("nothing",null),n.rootElem),n.reactMounts=[n.rootElem]})),w(b(n),"renderIfNotPlaying",(function(){"playing"!==n.video.state()&&n.render()})),w(b(n),"getCurrentTime",(function(){return n.video?n.video.time():0})),w(b(n),"getCurrentBufferTime",(function(){var t=n.video?n.video.getBuffered():[];return 0===t.length?0:t[t.length-1].end})),w(b(n),"onClickChapter",(function(t,e){e&&(n.video.time(e.time),"beforeplay"===n.video.state()&&n.video.play())})),w(b(n),"onMouseEnterOrFocusChapter",(function(t,e){e&&(n.chaptersPlugin().setChapterWithVisibleTitle(e.id),n.chaptersPlugin().setChapterWithFocusedMarker(e.id))})),w(b(n),"onMouseLeaveOrBlurChapter",(function(){n.chaptersPlugin().setChapterWithVisibleTitle(null),n.chaptersPlugin().setChapterWithFocusedMarker(null)})),w(b(n),"onDragStart",(function(t,e){n.video.requestControls("playbar-drag"),n.stateBeforeDrag=n.video.state(),n.onDrag(t,e),(0,u.doTimeout)("".concat(n.video.uuid,".maybe-pause-on-scrub"),(function(){(0,l.isMouseDown)()&&n.video.pause()}),300)})),w(b(n),"onDrag",(function(t,e){var i=e*n.video.duration();i===n._timeSeekedToRecently||(n.video.time(i),n._timeSeekedToRecently=i,(0,u.doTimeout)("".concat(n.video.uuid,".prevent-double-seek"),(function(){n._timeSeekedToRecently=null}),300))})),w(b(n),"onDragEnd",(function(t,e){n.video.releaseControls("playbar-drag"),n.onDrag(t,e),("beforeplay"===n.stateBeforeDrag||"playing"===n.stateBeforeDrag)&&n.video.play()})),w(b(n),"onFocusPlaybar",(function(){n.video.enterInputContext("playbar-focus")})),w(b(n),"onBlurPlaybar",(function(){n.video.exitInputContext("playbar-focus")})),w(b(n),"onKeyDown",(function(t){var e=n.video;if(n.isVisible()&&!n.video._opts.spherical&&!(0,c.formInputIsFocused)()){var i=e.getInputContext();if("playbar-focus"===i||"player-mouseover"===i||"background-focus"===i||"player-focus"===i){var o=e.duration(),r=t.keyCode;if(32===r)return void(("playbar-focus"===i||"player-mouseover"===i)&&t.preventDefault());null==n.keyDownStartedAt&&(n.keyDownStartedAt=Date.now());var a,s=Date.now()-n.keyDownStartedAt;a="playing"===e.state()?t.shiftKey||200<s?33===r||34===r?30>o?5:60>o?10:10+o/60:30>o?2:60>o?5:5+o/60/2:33===r||34===r?60>o?5:20:2:t.shiftKey||200<s?1:1/24;var u=0;39===r||33===r?u=1:(37===r||34===r)&&(u=-1),-1==u?(t.preventDefault(),e.time(e.time()-a)):1===u&&(t.preventDefault(),e.time(e.time()+a))}}})),w(b(n),"onKeyUp",(function(t){if(n.isVisible()&&!(0,c.formInputIsFocused)()){n.keyDownStartedAt=null;var e=n.video;"playbar-focus"===e.getInputContext()&&32===t.keyCode&&("playing"===e.state()?e.pause():e.play())}})),n.PlaybarComponent=o.default,n.showTime=!0,n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(e,t);var n,i,h,g=v(e);return n=e,(i=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"mount",value:function(t){var n=this;y(_(e.prototype),"mount",this).call(this,t);var i=this.video;this.unbinds.push(i.on("play",(function(){n.render()})),i.on("pause",(function(){n.render()})),i.on("progress",this.renderIfNotPlaying),i.on("timechange",this.renderIfNotPlaying),i.on("end",(function(){n.render()})),i.on("widthchange",(function(){n.render()})),i.on("playercolorchange",(function(){n.render()})),i.on("seekcomplete",(function(){n._lastSeekedAt=Date.now(),n.render()})),i.on("seeking",(function(){n.render()})),i.on("trimchange",(function(){n.renderNothing(),n.render()})),(0,c.elemBind)(document,"keydown",this.onKeyDown),(0,c.elemBind)(document,"keyup",this.onKeyUp));var o=function(){var t=i.plugin.chapters;n.unbinds.push(t.on("focuschange",(function(){n.render()})),t.on("changechapters",(function(){n.render()})))};i.plugin("chapters").then(o),i.on("plugininitialized",(function(t){"chapters"===t&&o()})),this.render()}},{key:"onControlPropsUpdated",value:function(t){t.width!==this.props.width&&this.render(),t.controlsAreVisible&&!this.props.controlsAreVisible&&this.render(),!t.controlsAreVisible&&this.props.controlsAreVisible&&this.render()}},{key:"render",value:function(){this.video.publicApi.isLiveMedia()?this.renderNothing():this.renderPlaybar()}},{key:"resumableTime",value:function(){return this.video.shouldResume()?(0,r.getLastTime)(this.video.hashedId()):void 0}},{key:"timeWidth",value:function(){return this._timeWidth}},{key:"rightBarMargin",value:function(){return this._rightBarMargin}},{key:"chaptersPlugin",value:function(){return this.video.plugin.chapters}},{key:"isPlaceholder",value:function(){return!1}},{key:"isVisible",value:function(){return!0}},{key:"shouldShowTime",value:function(){return!0}},{key:"shouldShowStoryboard",value:function(){if(null!=this._shouldShowStoryboard)return this._shouldShowStoryboard;var t=!!this.storyboardAsset(),e=!!this.video._mediaData.secondaryMediaData;return this._shouldShowStoryboard=t&&!e}},{key:"storyboardAsset",value:function(){return(0,s.one)(this.video._mediaData.assets,{type:"storyboard",status:s.READY,metadata:function(t){return t&&t.frame_count&&t.frame_width&&t.frame_height}})}}])&&p(n.prototype,i),h&&p(n,h),e}(i.default);e.default=S},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(271),a=n(64),s=n(6),u=n(226);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=(0,n(20).cachedDetect)(),v=function(t){function e(t){var n,i,o,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=l.call(this,t),i=p(n),r=function(){return n.playedOnce?n.video.isControlEnabled("centeredPlayPauseToggler")&&!n.props.chromeless||n.video._inNativeMode()?void 0:n.ignoreNextPlayOrPause?void(n.ignoreNextPlayOrPause=!1):(n.isPlaying="playing"===n.video.state(),void n.renderAndFade()):void(n.playedOnce=!0)},(o="showIconAndFade")in i?Object.defineProperty(i,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[o]=r,n.isOpaque=!1,n.unbinds.push(t.on("play",n.showIconAndFade),t.on("pause",n.showIconAndFade)),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,t);var n,i,o,l=h(e);return n=e,(i=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t}},{key:"onControlPropsUpdated",value:function(t){t.videoWidth!==this.props.videoWidth&&this.renderButton()}},{key:"renderAndFade",value:function(){var t=this,e=this.video.lastPlayInfo();if(!this.isPlaying||"user-event"===e.source){var n=this.video.lastPauseInfo();(this.isPlaying||"user-event"===n.source)&&(this.isOpaque=!0,this.renderButton(),clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout((function(){t.isOpaque=!1,t.renderButton()}),20))}}},{key:"renderButton",value:function(){(0,s.render)((0,s.h)("div",{class:"w-play-pause-notifier",style:this.rootStyle()},(0,s.h)("div",{style:this.graphicStyle()},(0,s.h)(r.default,{isPlaying:!this.isPlaying,noPadding:!0}))),this.rootElem),this.reactMounts=[this.rootElem]}},{key:"oldRootStyle",value:function(){var t=this.scale(),e=this.isPlaying,n=e?60:50;return{height:"".concat((e?72:80)*t,"px"),left:"50%",pointerEvents:"none",position:"absolute",opacity:this.isOpaque?.5:0,top:"50%",transform:"translate(-".concat(e?33:50,"%, -50%) scale(").concat(this.isOpaque?.9:1.1,")"),transition:this.isOpaque?"":"opacity .8s, transform .8s",width:"".concat(n*t,"px")}}},{key:"rootStyle",value:function(){var t=this.scale();return{background:"rgba(0,0,0,.6)",borderRadius:"50%",height:"".concat(140*t,"px"),left:"50%",pointerEvents:"none",position:"absolute",opacity:this.isOpaque?.6:0,top:"50%",transform:"translate(-50%, -50%) scale(".concat(this.isOpaque?.7:.8,")"),transition:this.isOpaque?"":"opacity .8s, transform .8s",width:"".concat(140*t,"px")}}},{key:"graphicStyle",value:function(){var t=this.scale(),e=this.isPlaying,n=e?60:50;return{height:"".concat((e?72:80)*t,"px"),left:"50%",pointerEvents:"none",position:"absolute",top:"50%",transform:"translate(-".concat(e?38:50,"%, -").concat(e?47:50,"%)"),width:"".concat(n*t,"px")}}},{key:"scale",value:function(){return Math.min(1.3,Math.max(.3,(0,u.controlMultiplierBasedOnVideo)(this.video,[640,960])))}},{key:"svgStyle",value:function(){return{filter:"drop-shadow(0px 0px 3px rgba(0,0,0,0.5))"}}}])&&c(n.prototype,i),o&&c(n,o),e}(o.default);v.shouldMount=function(t){return!1!==t.embedOptions().playPauseNotifier&&!m.touchScreen},v.handle="playPauseNotifier",v.type="above-control-bar",i.default.defineControl(v)},function(t,e,n){"use strict";var i=n(2),o=n(6),r=n(135),a=n(75),s=n(515),u=n(76),l=n(64);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=c.call(this,t)).video=t,n.unbinds.push(t.on("play",(function(){return n.renderProgressIndicator()})),t.on("playrejected",(function(){return n.renderProgressIndicator()})),t.on("playpending",(function(){return n.renderProgressIndicator()})),t.on("up",(function(){return n.renderProgressIndicator()})),t.on("end",(function(){return n.renderProgressIndicator()}))),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t);var n,i,r,c=d(e);return n=e,(i=[{key:"boundedScale",value:function(){var t=this.props.scale;return Math.min(Math.max(t,.8),2)}},{key:"destroy",value:function(){(0,l.destroyControl)(this)}},{key:"isVisible",value:function(){return this._isVisible}},{key:"mount",value:function(t){this.rootElem=t,this.renderProgressIndicator()}},{key:"onControlPropsUpdated",value:function(t){t.containerWidth!==this.props.containerWidth&&this.renderProgressIndicator()}},{key:"rootStyle",value:function(){return{bottom:0,left:0,position:"absolute",width:"100%"}}},{key:"renderProgressIndicator",value:function(){var t=function(t,e){return null!=t&&e?100*t/e:void 0}((0,u.getLastTime)(this.video.hashedId()),this.video.duration());this._isVisible=0<t&&this.video.shouldResume()&&(0,s.default)(this.video),(0,o.render)((0,o.h)("div",{style:this.rootStyle()},(0,o.h)(a.default,{color:this.video.playerColor(),isVisible:this._isVisible,percentWatched:t,scale:this.boundedScale()})),this.rootElem)}}])&&f(n.prototype,i),r&&f(n,r),e}(r.default);m.handle="playbarlessProgressIndicator",m.type="foreground",m.sortValue=1800,m.shouldMount=function(t){return!t.isAudio()&&!1!==t._opts.resumable&&"v1"!==t._opts.version&&!t._opts.controlsVisibleOnLoad},i.default.defineControl(m)},function(t,e,n){"use strict";var i=n(2),o=n(569),r=n(135),a=n(64),s=n(16),u=n(20),l=n(6),c=n(11),f=n(14),h=n.n(f);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(t,e)||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 y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function m(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k=(0,u.cachedDetect)();(0,c.defineTranslations)("en-US",{SETTINGS_PLAYBACK_RATE_TITLE:"Speed",SETTINGS_QUALITY_AUTO:"Auto",SETTINGS_QUALITY_TITLE:"Quality",SETTINGS_TITLE:"Settings",SETTINGS_HIDE_MENU:"Hide settings menu",SETTINGS_SHOW_MENU:"Show settings menu"});var T=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),S(_(n=f.call(this,t)),"onKeyUp",(function(t){var e=n.video.getInputContext(),i=0<=["player-mouseover","player-focus","playbar-focus","background-focus"].indexOf(e);if(!(0,s.formInputIsFocused)()&&i&&n.getPlaybackRateEnabled()){if(">"===t.key){var o=Math.min(n.video.playbackRate()+.25,2);n.video.playbackRate(o)}if("<"===t.key){var r=Math.max(n.video.playbackRate()-.25,.5);n.video.playbackRate(r)}}})),S(_(n),"loadMenuCode",(function(){return i.default.asyncRequire(["interFontFace.js","vulcanV2Player/video/controls/SettingsControl/dialog.js"]).then((function(t){var e=p(t,2),i=(e[0],e[1]);n.renderMenuImpl||(n.renderMenuImpl=i.renderMenu.bind(_(n)),n.onSelect=i.onSelect.bind(_(n)))}))})),S(_(n),"onMouseEnterButton",(function(){n.loadMenuCode()})),n.unbinds.push(t.on("playbackratechange",(function(){n.menuElem&&n.renderMenu()})),t.on("qualitychange",(function(){n.menuElem&&n.renderMenu()})),t.on("playerlanguagechange",(function(){n.menuElem&&n.renderMenu()})),(0,s.elemBind)(document,"keyup",n.onKeyUp)),t.hasData((function(){if(null==n._isQualityEnabled){var e=t._opts.qualityControl;n._isQualityEnabled=!0===e||null==e}var i=k.browser.msie||k.trident;if(null==n._isPlaybackRateEnabled&&!i){var o=t._opts.playbackRateControl;n._isPlaybackRateEnabled=!0===o||null==o}})),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(e,t);var n,r,u,f=g(e);return n=e,(r=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"translate",value:function(t){return(0,c.getTranslation)(this.props.playerLanguage.code,"SETTINGS_".concat(t))}},{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"mountDialog",value:function(t){return this.dialogRoot=t,this.renderMenu()}},{key:"renderButton",value:function(){this.setButtonLabel(this.translate("TITLE")),this.updateButtonLabel(),(0,l.render)((0,l.h)(o.default,{onMouseEnter:this.onMouseEnterButton}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot]}},{key:"renderMenu",value:function(){var t=this;if(this.dialog.isOpen()){var e=this.loadMenuCode().then((function(){t.renderMenuImpl()}));return this.loading(new(h())((function(t){e.then(t)}))),e}}},{key:"onControlPropsUpdated",value:function(t){this.dialog&&this.dialog.isOpen()&&this.renderMenu(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&(this.renderButton(),this.renderMenu())}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("HIDE_MENU")):this.setButtonLabel(this.translate("SHOW_MENU")))}},{key:"setQualityEnabled",value:function(t){var e=this;return this._isQualityEnabled=t,this.loadMenuCode().then((function(){e.dialog.isOpen()&&e.renderMenuImpl()}))}},{key:"getPlaybackRateEnabled",value:function(){return!!this._isPlaybackRateEnabled}},{key:"setPlaybackRateEnabled",value:function(t){var e=this;return this._isPlaybackRateEnabled=t,(k.browser.msie||k.trident)&&(this._isPlaybackRateEnabled=!1),this.loadMenuCode().then((function(){e.dialog.isOpen()&&e.renderMenuImpl()}))}}])&&m(n.prototype,r),u&&m(n,u),e}(r.default);T.shouldMount=function(t){var e=t._opts,n=e.settingsControl,i=e.qualityControl,o=e.playbackRateControl;return!t.isLiveMedia()&&!1!==n&&(!0===i||null==i||!0===o||null==o)},T.handle="settingsButton",T.type="control-bar-right",T.sortValue=200,T.isVideoChrome=!0,i.default.defineControl(T),i.default.SettingsControl=T},function(t,e,n){"use strict";var i=n(6),o=n(7);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){function e(){return s(this,e),h.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t);var n,r,f,h=c(e);return n=e,(r=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){return(0,i.h)("svg",a({},(0,o.standardSvgAttrs)(40,34),{onMouseEnter:this.props.onMouseEnter}),(0,i.h)("g",null,(0,i.h)("g",null,(0,i.h)("path",{d:"M28.3,16.4h-1.9c-0.4,0-0.8-0.3-0.9-0.7l-0.4-1.1c-0.2-0.3-0.1-0.8,0.2-1.1l1.3-1.3c0.3-0.3,0.3-0.7,0-1l-0.4-0.4c-0.3-0.3-0.7-0.3-1,0l-1.3,1.3c-0.3,0.3-0.8,0.3-1.1,0.1l-1.1-0.5c-0.4-0.1-0.7-0.5-0.7-0.9V9.1c0-0.4-0.3-0.7-0.7-0.7h-0.6c-0.4,0-0.7,0.3-0.7,0.7v1.7c0,0.4-0.3,0.8-0.7,0.9l-1.2,0.5c-0.3,0.2-0.8,0.1-1.1-0.2l-1.2-1.2c-0.3-0.3-0.7-0.3-1,0l-0.4,0.4c-0.3,0.3-0.3,0.7,0,1l1.2,1.2c0.3,0.3,0.3,0.8,0.1,1.1l-0.5,1.2c-0.1,0.4-0.5,0.7-0.9,0.7h-1.6c-0.4,0-0.7,0.3-0.7,0.7v0.6c0,0.4,0.3,0.7,0.7,0.7h1.6c0.4,0,0.8,0.3,0.9,0.7l0.5,1.2c0.2,0.3,0.1,0.8-0.1,1.1l-1.2,1.2c-0.3,0.3-0.3,0.7,0,1l0.4,0.4c0.3,0.3,0.7,0.3,1,0l1.2-1.2c0.3-0.3,0.8-0.3,1.1-0.2l1.2,0.5c0.4,0.1,0.7,0.5,0.7,0.9v1.7c0,0.4,0.3,0.7,0.7,0.7h0.6c0.4,0,0.7-0.3,0.7-0.7V24c0-0.4,0.3-0.8,0.7-0.9l1.1-0.5c0.3-0.2,0.8-0.1,1.1,0.1l1.3,1.3c0.3,0.3,0.7,0.3,1,0l0.4-0.4c0.3-0.3,0.3-0.7,0-1l-1.3-1.3C25,21,25,20.5,25.1,20.2l0.4-1.1c0.1-0.4,0.5-0.7,0.9-0.7h1.9c0.4,0,0.7-0.3,0.7-0.7v-0.6C29,16.7,28.7,16.4,28.3,16.4z M23.8,17.5c0,2.2-1.8,3.9-3.9,3.9c-2.2,0-3.9-1.8-3.9-3.9s1.7-3.9,3.9-3.9C22.1,13.6,23.8,15.3,23.8,17.5z"}))))}}])&&u(n.prototype,r),f&&u(n,f),e}(i.Component);e.default=d},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(271),a=n(64),s=n(6),u=n(11);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=(0,n(20).cachedDetect)(),g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),m(p(n=l.call(this,t)),"renderButton",(function(){if(n.buttonRoot&&("playing"===n.video.state()?n.setButtonLabel(n.translate("TITLE_WHEN_PLAYING")):n.setButtonLabel(n.translate("TITLE_WHEN_NOT_PLAYING")),(0,s.render)((0,s.h)("div",{style:n.wrapperStyle()},(0,s.h)(r.default,{isPlaying:"playing"===n.video.state(),noPadding:!0,svgStyle:{verticalAlign:"top"}})),n.buttonRoot),n.reactMounts=[n.rootElem],v.trident)){var t=n.buttonRoot.parentNode;t.style.display="none",setTimeout((function(){t.style.display=""}),1)}})),m(p(n),"onClickButton",(function(){var t=n.video;"playing"===t.state()?t.pause():t.play()})),m(p(n),"onKeyDownButton",(function(t){(32===t.keyCode||13===t.keyCode)&&(t.__handledAlready=!0)})),n.unbinds.push(t.on("play",n.renderButton),t.on("pause",n.renderButton),t.on("end",n.renderButton)),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,t);var n,i,o,l=h(e);return n=e,(i=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){(t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code||this.props.scale!==t.scale)&&this.renderButton()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"wrapperStyle",value:function(){var t=this.props.scale,e="playing"===this.video.state(),n=e?"".concat(10*t,"px 0 ").concat(11*t,"px 0"):"".concat(10*t,"px 0 ").concat(9*t,"px 0");return{boxSizing:"border-box",height:"100%",marginLeft:e?0:"".concat(1*t,"px"),padding:n,position:"relative",width:"100%"}}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"PLAY_BUTTON_".concat(t))}},{key:"pcfButtonWidth",value:function(){return 40}}])&&c(n.prototype,i),o&&c(n,o),e}(o.default);g.shouldMount=function(t){var e=t.embedOptions().smallPlayButton,n=!0===e||null==e,i=t._impl.ui&&t._impl.ui.shouldShowMoreDefaultValue();return n&&i},g.handle="smallPlayButton",g.type="control-bar-left",g.sortValue=100,i.default.defineControl(g)},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(572),a=n(64),s=n(6),u=n(11);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}(0,u.defineTranslations)("en-US",{STATUS_BAR_EMBED_CODE_COPIED:"Embed Code is now copied to your clipboard!"});var y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=l.call(this,t))._isVisible=!1,n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,t);var n,i,o,l=h(e);return n=e,(i=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"flash",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2e3;this._isVisible=!0,this.renderMenu(this.translate(t)),setTimeout((function(){e.hide()}),n)}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"STATUS_BAR_".concat(t))}},{key:"hide",value:function(){this._isVisible=!1,(0,s.render)((0,s.h)("nothing",null),this.rootElem)}},{key:"renderMenu",value:function(t){this._isVisible&&((0,s.render)((0,s.h)(r.default,{message:t}),this.rootElem),this.reactMounts=[this.rootElem])}}])&&c(n.prototype,i),o&&c(n,o),e}(o.default);y.handle="statusBar",y.type="background",i.default.defineControl(y)},function(t,e,n){"use strict";var i=n(6);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){function e(){return r(this,e),c.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t);var n,o,l,c=u(e);return n=e,(o=[{key:"styles",value:function(){return{background:"rgba(0,0,0,.3)",boxShadow:"none",cursor:"pointer",display:"flex",alignItems:"center",fontSize:d(this),lineHeight:h(this),padding:"0 ".concat(10*this.props.scale,"px"),width:"100%",height:"30px",color:"#fff",position:"absolute",justifyContent:"center"}}},{key:"render",value:function(){return(0,i.h)("div",{style:this.styles()},this.props.message)}}])&&a(n.prototype,o),l&&a(n,l),e}(i.Component),h=function(t){return"".concat(function(t){return 34*t.props.scale}(t),"px")},d=function(t){return"".concat(14*t.props.scale,"px")};e.default=f},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(257),a=n(515),s=n(64),u=n(20),l=n(6),c=n(14),f=n.n(c);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(){return(d=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function p(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?g(t):e}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=(0,u.cachedDetect)(),w=function(t){function e(t){var n,i,o,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=u.call(this,t),i=g(n),a=function(t){var e=n.video,i=e.lastPlayInfo(),o=Date.now()-i.issuedAt,a=e.embedOptions().thumbnailAltText;n._isVisible=n.shouldShow(),(0,l.render)((0,l.h)(r.default,d({},n.props,{backgroundColor:"transparent"===e.embedOptions().wmode?"transparent":void 0,elemRef:function(t){return n.thumbnailElem=t},images:n.thumbnailAssets,isVisible:n.shouldShow(),onDisplay:t,hashedId:n.video.hashedId(),swatchEnabled:!e._opts.stillUrl&&n._swatchEnabled,uiHasRendered:n.video._impl.ui.hasRendered(),fitStrategy:n.video._opts.fitStrategy,thumbnailAltText:a})),n.rootElem),n._isVisible&&(n._hasRenderedVisible=!0),n._isVisible&&2e3>o&&setTimeout((function(){n._destroyed||n.renderThumbnail()}),2e3-o+1),n.reactMounts=[n.rootElem]},(o="renderThumbnail")in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,n.unbinds.push(t.on("play",(function(){n._hasPlayed=!0,n.renderThumbnail()})),t.on("playrejected",(function(){n.renderThumbnail()})),t.on("playpending",(function(){n.renderThumbnail()})),t.on("up",n.renderThumbnail),t.on("end",n.renderThumbnail)),n._swatchEnabled=t._opts.swatchEnabled?t._opts.swatchEnabled:t._embedContainer.querySelector(".wistia_swatch"),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(e,t);var n,i,o,u=m(e);return n=e,(i=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"mount",value:function(t){var e=this;if(this.rootElem=t,this.thumbnailAssets=this.thumbnailAssets||this.video.thumbnailAssets(),!this.shouldShow())return f().resolve();var n=new(f())((function(t){return setTimeout(t,1e3)})),i=new(f())((function(t){e.renderThumbnail(t),e.video.embedded((function(){e.__destroyed||e.renderThumbnail()}))}));return f().race([i,n])}},{key:"shouldShow",value:function(){return(0,a.default)(this.video)}},{key:"onControlPropsUpdated",value:function(t){var e=this;this._hasRenderedVisible&&["videoWidth","videoHeight","playerLanguage"].some((function(n){return e.props[n]!==t[n]}))&&this.renderThumbnail()}}])&&p(n.prototype,i),o&&p(n,o),e}(o.default);w.shouldShow=function(){return(0,a.default)(this.video)},w.shouldMount=function(t){return!t._opts.spherical||_.trident},w.handle="thumbnail",w.type="background",w.sortValue=1e3,i.default.defineControl(w)},function(t,e,n){"use strict";var i=n(135),o=n(575),r=n(2),a=n(64),s=n(321),u=n(16),l=n(6),c=n(11);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=(0,n(20).cachedDetect)();(0,c.defineTranslations)("en-US",{VOLUME_TITLE_WHEN_MUTED:"Unmute",VOLUME_TITLE_WHEN_UNMUTED:"Mute"});var _=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),g(m(n=y.call(this,t)),"loadSliderCode",(function(){return r.default.asyncRequire(["vulcanV2Player/video/controls/VolumeSliderControl/VolumeSliderControl.js"])})),g(m(n),"onClickButton",(function(){b.touchScreen||n.toggleMute()})),g(m(n),"onFocusInButton",(function(){n._isFocused=!0,n.video.enterInputContext("volume-button-focus"),n.loadSliderCode()})),g(m(n),"onFocusOutButton",(function(){n._isFocused=!1,n.video.exitInputContext("volume-button-focus")})),g(m(n),"onMouseEnter",(function(){n._isFocused=!0,n.loadSliderCode().then((function(){n._isFocused&&n.video.controls.volumeSlider.mounted.then((function(){n.video.controls.volumeSlider.show()}))}))})),g(m(n),"onMouseLeave",(function(){n._isFocused=!1,n.video.controls.volumeSlider&&n.video.controls.volumeSlider.hide()})),g(m(n),"onKeyUp",(function(t){if(!(0,u.formInputIsFocused)()&&!t.wistiaPlayerHandled){var e=n.video,i=e.getInputContext();("background-focus"===i||"player-mouseover"===i||"player-focus"===i||"volume-button-focus"===i||"volume-slider-focus"===i)&&77===t.keyCode&&(e.isMuted()?(e.unmute(),(0,s.setViewerPreference)("muted",void 0)):(e.mute(),(0,s.setViewerPreference)("muted",!0)))}})),g(m(n),"onKeyDown",(function(t){if(!(0,u.formInputIsFocused)()&&!t.wistiaPlayerHandled){var e=n.video,i=e.getInputContext();if("player-mouseover"===i||"player-focus"===i||"volume-button-focus"===i||"volume-slider-focus"===i){var o=t.keyCode,r=0;if(38===o?r=1:40===o&&(r=-1),1===r){t.preventDefault();var a=t.shiftKey?.01:.1;e.volume(e.volume()+a),(0,s.setViewerPreference)("volume",e.volume())}else if(-1===r){t.preventDefault();var l=t.shiftKey?.01:.1;e.volume(e.volume()-l),(0,s.setViewerPreference)("volume",e.volume())}}}})),n.video=t,n.unbinds.push(t.on("volumechange",(function(){n.buttonRoot&&n.renderButton()})),(0,u.elemBind)(document,"keyup",n.onKeyUp),(0,u.elemBind)(document,"keydown",n.onKeyDown)),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t);var n,i,f,y=p(e);return n=e,(i=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&this.renderButton()}},{key:"mountButton",value:function(t){var e=(0,s.getViewerPreferences)(),n=e.volume;!0===e.muted?(this.video.mute(),this.video.volume(0)):n&&this.video.volume(n),this.buttonRoot=t,this.renderButton()}},{key:"renderButton",value:function(){this.buttonRoot&&(this.setButtonLabel(this.video.isMuted()?this.translate("TITLE_WHEN_MUTED"):this.translate("TITLE_WHEN_UNMUTED")),(0,l.render)((0,l.h)(o.default,{volume:this.video.isMuted()?0:this.video.volume(),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot])}},{key:"translate",value:function(t){return(0,c.getTranslation)(this.props.playerLanguage.code,"VOLUME_".concat(t))}},{key:"getButtonTitle",value:function(){return 0===this.video.volume()?"Unmute":"Mute"}},{key:"toggleMute",value:function(){var t=this.video;if(t.isMuted()){var e=(0,s.getViewerPreferences)().volume;e?t.volume(e):0===t.volume()&&t.volume(1),t.unmute(),(0,s.setViewerPreference)("muted",void 0)}else t.mute(),(0,s.setViewerPreference)("muted",!0)}}])&&h(n.prototype,i),f&&h(n,f),e}(i.default);_.shouldMount=function(t){var e=t._opts.volumeControl;return!(!0!==e&&null!=e||b.iphone||b.ipad||b.android)},_.handle="volumeButton",_.type="control-bar-right",_.sortValue=100,r.default.defineControl(_)},function(t,e,n){"use strict";var i=n(6),o=n(7);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function s(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h="opacity 100ms",d=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=f.call(this,t)).state={volume:t.volume},n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,t);var n,r,c,f=l(e);return n=e,(r=[{key:"waveCount",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.props.volume;return.66<t?2:.33<t?1:0<t?0:-1}},{key:"shouldComponentUpdate",value:function(t){return this.waveCount()!==this.waveCount(t.volume)}},{key:"render",value:function(){var t={fill:"none",stroke:"#ffffff","stroke-line-cap":"round","stroke-miterlimit":"10"};return(0,i.h)("svg",a({},(0,o.standardSvgAttrs)(40,34),{onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.onMouseLeave}),(0,i.h)("g",{style:this.speakerGroupStyle()},(0,i.h)("g",null,(0,i.h)("path",{d:"M13.8,14.2c-0.5,0.5-1.4,0.8-2,0.8h-1.6C9.5,15,9,15.5,9,16.2v1.6c0,0.7,0.5,1.2,1.2,1.2h1.6c0.7,0,1.6,0.4,2,0.8l2.3,2.3c0.5,0.5,0.8,0.3,0.8-0.4v-9.6c0-0.7-0.4-0.8-0.8-0.4L13.8,14.2z"})),(0,i.h)("g",null,(0,i.h)("path",a({},t,{"stroke-width":"2",d:"M22,11.7c0,0,1.1,2.5,1.1,5s-1.1,5-1.1,5",style:this.wave1Style()})),(0,i.h)("path",a({},t,{"stroke-width":"2",d:"M25.8,9.2c0,0,1.7,3.8,1.7,7.5c0,3.7-1.7,7.5-1.7,7.5",style:this.wave2Style()}))),(0,i.h)("g",{style:this.waveXStyle()},(0,i.h)("line",a({},t,{"stroke-width":"1.8102",x1:"19.2",y1:"15",x2:"23.2",y2:"19"})),(0,i.h)("line",a({},t,{"stroke-width":"1.8102",x1:"19.2",y1:"19",x2:"23.2",y2:"15"})))))}},{key:"speakerGroupStyle",value:function(){return{transform:"translateX(".concat(this.positioningOffset(),"px)"),transition:"transform 100ms"}}},{key:"positioningOffset",value:function(){var t=this.waveCount();return 0==t?7:2>t?3:1.25}},{key:"waveXStyle",value:function(){return{opacity:0>this.waveCount()?1:0,transition:h}}},{key:"wave1Style",value:function(){return{opacity:1<=this.waveCount()?1:0,transition:h}}},{key:"wave2Style",value:function(){return{opacity:2<=this.waveCount()?1:0,transition:h}}}])&&s(n.prototype,r),c&&s(n,c),e}(i.Component);e.default=d},function(t,e,n){"use strict";var i=n(2),o=n(135),r=n(6),a=n(577);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){return(u=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function l(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){function e(t){var n,i,o,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=h.call(this,t),i=d(n),r=function(t){n.video.setAriaLiveText(t)},(o="setAriaLiveText")in i?Object.defineProperty(i,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[o]=r,n.video=t,n.undbinds=[],n.undbinds.push(n.video.on("play",(function(){n.renderLiveStreamStatus()})),n.video.on("pause",(function(){n.renderLiveStreamStatus()})),n.video.on("end",(function(){n.renderLiveStreamStatus()})),n.video.on("widthchange",(function(){n.renderLiveStreamStatus()})),n.video.on("playerlanguagechange",(function(){n.renderLiveStreamStatus()}))),n.video.ready((function(){n.renderLiveStreamStatus()})),n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t);var n,o,s,h=f(e);return n=e,(o=[{key:"onControlPropsUpdated",value:function(t){t.controlsAreVisible!==this.props.controlsAreVisible&&this.renderLiveStreamStatus()}},{key:"mount",value:function(t){var e=this;return this.rootElem=t,i.default.asyncRequire("interFontFace.js").then((function(){e.renderLiveStreamStatus(),e.reactMounts=[e.rootElem]}))}},{key:"renderLiveStreamStatus",value:function(){var t,e=null;null!==(t=this.video._mediaData.liveStreamEventDetails)&&void 0!==t&&t.scheduledFor&&(e=new Date(this.video._mediaData.liveStreamEventDetails.scheduledFor)),(0,r.render)((0,r.h)(a.default,u({videoState:this.video.state(),videoReady:this.video.ready(),scheduledFor:e,setAriaLiveText:this.setAriaLiveText},this.props)),this.rootElem)}}])&&l(n.prototype,o),s&&l(n,s),e}(o.default);y.handle="liveStreamStatusOverlay",y.type="foreground",y.sortValue=500,y.shouldMount=function(t){return t.isLiveMedia()},i.default.defineControl(y)},function(t,e,n){"use strict";var i=n(6),o=n(447),r=n(9),a=n(68),s=n(578),u=n(11);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function f(t,e){var n=t.toLocaleString(navigator.language,{month:"short",day:"numeric",year:"numeric"}),i=t.toLocaleString(navigator.language,{hour:"numeric",minute:"numeric",timeZoneName:"short"});return"".concat(n," ").concat((0,u.getTranslation)(e,"LIVE_STREAM_STATUS_SCHEDULED_FOR_TIME_SEPARATOR")," ").concat(i)}function h(t){var e=t.state;return(0,i.h)("div",{style:{backgroundColor:"live"===e?"#fa4040":"",borderRadius:"50%",width:"12px",height:"12px",marginRight:"4px"}})}(0,u.defineTranslations)("en-US",{LIVE_STREAM_STATUS_COUNTDOWN:"Stream begins in",LIVE_STREAM_STATUS_LIVE:"Live",LIVE_STREAM_STATUS_LIVE_ARIA:"The stream is now live",LIVE_STREAM_STATUS_MINUTES:"minutes",LIVE_STREAM_STATUS_SCHEDULED_FOR:"Scheduled for",LIVE_STREAM_STATUS_SCHEDULED_FOR_ARIA:"The stream is scheduled for",LIVE_STREAM_STATUS_SCHEDULED_FOR_TIME_SEPARATOR:"at",LIVE_STREAM_STATUS_SECONDS:"seconds",LIVE_STREAM_STATUS_STREAM_ENDED:"The stream has ended",LIVE_STREAM_STATUS_WAITING_FOR_HOST:"Waiting for host to begin",LIVE_STREAM_STATUS_WAITING_FOR_HOST_ARIA:"Waiting for host to begin live stream"});var d={initial:"idle",states:{idle:{on:{READY:"live",NOT_READY:"beforeStream",START_COUNTDOWN:"countdown",PAST_SCHEDULE:"waitingForHost"}},beforeStream:{on:{PAST_SCHEDULE:"waitingForHost",READY:"live",START_COUNTDOWN:"countdown"}},countdown:{on:{PAST_SCHEDULE:"waitingForHost",READY:"live"}},waitingForHost:{on:{READY:"live",END:"ended"}},live:{on:{END:"ended"}},ended:{}}};function p(t){var e=t.children,n=t.scale,o=t.show;return(0,i.h)("div",{className:"w-css-reset",style:{left:0,position:"absolute",top:0,display:"flex",opacity:o?1:0,transition:"opacity 200ms",margin:"".concat(m({base:12,scale:n}),"px 0 0 ").concat(m({base:12,scale:n}),"px")}},e)}function y(t,e){var n,i=null===(n=d.states[t].on)||void 0===n?void 0:n[e.type];return void 0===i?t:i}function m(t){var e=t.scale,n=t.base,i=2*n;return Math.min(i,Math.max(0,e*n))}function v(t){var e=t.children,n=t.scale;return(0,i.h)("div",{className:"w-live-status",style:{backgroundColor:"rgba(11, 13, 14, 0.7)",padding:"".concat(m({base:8,scale:n}),"px ").concat(m({base:12,scale:n}),"px"),display:"flex",color:"#fff",alignItems:"center",borderRadius:"4px",fontFamily:r.interFontFamily,fontSize:"".concat(m({base:14,scale:n}),"px")}},e)}e.default=function(t){var e=this,n=t.controlsAreVisible,r=t.playerLanguage,c=t.scale,m=t.scheduledFor,g=t.videoReady,b=t.videoState,_=l((0,o.useState)(new Date),2),w=_[0],S=_[1],k="playing"!==b||n,T=l((0,o.useReducer)(y,d.initial),2),O=T[0],P=T[1];(0,o.useEffect)((function(){"ended"===b?P({type:"END"}):g?P({type:"READY"}):function(t){return!!t&&Date.now()<t.getTime()}(m)?P(function(t){return!!t&&3600>(0,a.getSecondsRemaining)(new Date,t)}(m)?{type:"START_COUNTDOWN"}:{type:"NOT_READY"}):P(function(t){return!!t&&600<(0,a.getSecondsRemaining)(t,new Date)}(m)?{type:"END"}:{type:"PAST_SCHEDULE"})}),[w,g,b]),(0,o.useEffect)((function(){e.props.setAriaLiveText(E())}),[O]),(0,o.useEffect)((function(){if("countdown"===O){var t=(0,a.getSecondsRemaining)(new Date,m),n=Math.ceil(t),i=Math.ceil(t/60),o=t/60,r="";0==i%5?r="".concat(C("COUNTDOWN")," ").concat(i," ").concat(C("MINUTES")):o&&0==n%5&&(r="".concat(C("COUNTDOWN")," ").concat(n," ").concat(C("SECONDS"))),e.props.setAriaLiveText(r)}}),[w]),(0,s.useInterval)((function(){return S(new Date)}),"live"===O||"ended"===O?null:1e3);var E=function(){return"live"===O?C("LIVE_ARIA"):"ended"===O?C("STREAM_ENDED"):"waitingForHost"===O?C("WAITING_FOR_HOST_ARIA"):"beforeStream"===O?"".concat(C("SCHEDULED_FOR_ARIA")," ").concat(f(m,r.code)):void 0},C=function(t){return(0,u.getTranslation)(r.code,"LIVE_STREAM_STATUS_".concat(t))};return(0,i.h)(p,{scale:c,show:k},(0,i.h)(v,{scale:c},"live"===O&&(0,i.h)(h,{state:"live"}),"live"===O?C("LIVE"):"ended"===O?C("STREAM_ENDED"):"waitingForHost"===O?C("WAITING_FOR_HOST"):"beforeStream"===O?"".concat(C("SCHEDULED_FOR")," ").concat(f(m,r.code)):"countdown"===O?"".concat(C("COUNTDOWN")," ").concat((0,a.flexibleDuration)((0,a.getSecondsRemaining)(new Date,m))):void 0))}},function(t,e,n){"use strict";n.d(e,{useInterval:function(){return o}});var i=n(447);function o(t,e){var n=(0,i.useRef)(t);(0,i.useEffect)((function(){n.current=t}),[t]),(0,i.useEffect)((function(){if(null!==e){var t=setInterval((function(){return n.current()}),e);return function(){return clearInterval(t)}}}),[e])}},function(t,e,n){"use strict";var i=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){function e(){return r(this,e),c.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t);var n,o,l,c=u(e);return n=e,(o=[{key:"init",value:function(){var t=this,e=this.impl;e.embedded((function(){"engines/manual_quality_video.js"===e.bestEngine()&&(t.bandwidthTest().isFresh()?(t._supportsHd=t.bandwidthTest().savedResult().supportsHd,t.impl.whenVideoElementInDom().then((function(){t.impl.engine.setAttributes({supportsHd:t._supportsHd})}))):t.hdAsset()&&null!=!t._supportsHd&&t.unbinds.push(e.on("play",(function(){return t.doBandwidthTest(),e.unbind}))))}))}},{key:"bandwidthTest",value:function(){return this._bandwidthTest||(this._bandwidthTest=new i.default.BandwidthTest({timeoutLength:4e3,uuid:this.impl.uuid,saveKey:"vulcan.bandwidth"})),this._bandwidthTest}},{key:"doBandwidthTest",value:function(){var t=this,e=this.impl;e.info("doBandwidthTest"),this._endBandwidthTestEarly||(this._endBandwidthTestEarly=function(){e.info("_endBandwidthTestEarly"),t.bandwidthTest().endEarly(),i.default.Metrics.videoCount(e,"player/bandwidth_test/ended_early")});var n=["seek","pause","end","switched-to-asset-without-load"];n.map((function(n){t.unbinds.push(e.on(n,t._endBandwidthTestEarly))})),this._failBandwidthTestOnWaiting||(this._failBandwidthTestOnWaiting=function(){return e.info("_failBandwidthTestOnWaiting"),t.bandwidthTest().fail(),i.default.Metrics.videoCount(e,"player/bandwidth_test/failed"),e.unbind}),this.unbinds.push(e.on("waiting",this._failBandwidthTestOnWaiting)),this._endBandwidthTestOnTime=function(){e.info("_endBandwidthTestOnTime"),t._supportsHd=t.bandwidthTest().supportsHd(),e.engine.setAttributes({supportsHd:!0}),t._failBandwidthTestOnWaiting&&e.unbind("waiting",t._failBandwidthTestOnWaiting),t._endBandwidthTestEarly&&n.map((function(n){e.unbind(n,t._endBandwidthTestEarly)})),i.default.Metrics.videoCount(e,"player/bandwidth_test/ended_on_time")},this.bandwidthTest().bind("ended",this._endBandwidthTestOnTime),this.bandwidthTest().start()}},{key:"supportsHd",value:function(){return!!this.hdAsset()&&(null==this._supportsHd||this._supportsHd)}},{key:"hdAsset",value:function(){if(this._hdAsset)return this._hdAsset;var t=this.impl;return this._hdAsset=t.playableAssetInRange({width:[980,t._opts.maxHdWidth||2e3],sortBy:"width desc, bitrate desc"}),this._hdAsset}}])&&a(n.prototype,o),l&&a(n,l),e}(n(580).PlayerBehavior);f.handle="bandwidthTest",e.default=f},function(t,e,n){"use strict";function i(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}n.d(e,{PlayerBehavior:function(){return o}});var o=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.impl=e,this.unbinds=[],this.namedUnbinds={}}return e=t,(n=[{key:"addNamedUnbind",value:function(t,e){this.namedUnbinds[t]&&this.namedUnbinds[t](),this.namedUnbinds[t]=e}},{key:"removeNamedUnbind",value:function(t){this.namedUnbinds[t]&&(this.namedUnbinds[t](),delete this.namedUnbinds[t])}},{key:"destroy",value:function(){for(var t in this.unbinds instanceof Array&&this.unbinds.map((function(t){return t()})),this.namedUnbinds)this.namedUnbinds.hasOwnProperty(t)&&this.namedUnbinds[t].map((function(t){return t()}));this.unbinds=[],this.namedUnbinds={},this.impl=null,this._destroyed=!0}}])&&i(e.prototype,n),o&&i(e,o),t;var e,n,o}()},function(t,e,n){"use strict";var i=n(2),o=n(580),r=n(98),a=n(42),s=n(16),u=n(76),l=n(15),c=n(39),f=n(44),h=n(12),d=n(49);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k=function(t){function e(){var t;y(this,e);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return S(_(t=b.call.apply(b,[this].concat(i))),"onFocusIn",(function(){var e=!(0,l.isMouseDownRecently)();t.impl&&t.impl.isKeyboardFocused(e)})),S(_(t),"updateBackgroundColor",(function(){var e=t.impl;if(e.videoWrapper&&!e._replacing&&e.embedded()){var n=e.ui&&e.ui.isChromeless()&&("non-user-event"===e.lastPlayInfo().source||e._opts.autoPlay)&&e.isMuted();if("transparent"!==e._opts.wmode&&!n||e.inFullscreen()){var i=e._attrs.playerBackgroundColor||e._opts.backgroundColor||"#000";e.videoWrapper.style.backgroundColor=i||"#000"}else e.videoWrapper.style.backgroundColor="transparent"}})),S(_(t),"updateStartPosition",(function(){var e,n=t.impl,i="beforeplay"===n.state(),o="user-event"===(null===(e=n.lastPlayInfo())||void 0===e?void 0:e.source),r=n.shouldResume()&&i&&o;if(n.engine&&!r)n.engine.updateStartPosition(-1);else if(r){var a=(0,u.getLastTime)(n.hashedId());n.time(a,{lazy:!0})}})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(e,t);var n,o,p,b=g(e);return n=e,(o=[{key:"init",value:function(){this.unbinds.push(this.impl.on("playerbackgroundcolorchange",this.updateBackgroundColor),this.impl.publicApi.on("transitiondone",this.updateBackgroundColor),this.impl.on("playpending",this.updateStartPosition))}},{key:"embed",value:function(t){var e=this,n=this.impl,i=n&&n._opts.oldImpl;n.oldImpl=i||t,i&&i!==t?(this.impl.on("engine-initialized",(function(){i.rebuild(),i.fullRebuild()})),n.oldImpl=i):n.oldImpl=t,n.resetStateVariables(),n.videoWrapper=(0,s.elemFromObject)({class:"w-video-wrapper w-css-reset",style:{clip:"rect(0,0,0,0)",height:"100%",position:"absolute",top:0,width:"100%"}}),this.updateBackgroundColor(),(0,s.elemPrepend)(n.implContainer(),n.videoWrapper),n.uiContainer||(n.uiContainer=(0,s.elemFromObject)({class:"w-ui-container",style:{height:"100%",pointerEvents:n._inNativeMode()?"none":"",left:0,position:"absolute",top:0,width:"100%"}}),(0,s.elemAppend)(n.implContainer(),n.uiContainer)),n.uiContainer.addEventListener("focusin",this.onFocusIn),n.up((function(){e._preloadPreference=e.preloadValue(),n._replacing&&(e.initializeEngine(),n.info("embedded"),n.embedded(!0)),n.renderUI().then((function(){try{n.setupBindings()}catch(t){setTimeout((function(){throw t}),0)}(0,f.doTimeout)("".concat(n.uuid,".finish_embedding"),(function(){n.info("embedded"),n.embedded(!0),(0,s.pageLoaded)((function(){e.initializeEngine()}))}),0)}))})),n.down()&&n.embedded(!0)}},{key:"preloadValue",value:function(){var t,e,n=this.impl;if(t=n._opts.autoPlay&&!n.publicApi.popover&&n.looksUp()?"auto":null==n._opts.preload?n._mediaData.preloadPreference:n._opts.preload,n._mediaData.spherical)if(n._opts._inIframe)e="none";else{var i=[],o=(0,r.wData)("video");for(var a in o)i.push(o[a]);e=1<i.length?"none":"auto"}else if("metadata"===t)e="metadata";else if(!0===t||"auto"===t)e="auto";else if(!1===t||"none"===t)e="none";else{var s=[],u=(0,r.wData)("video");for(var l in u)s.push(u[l]);e=n._opts._inIframe&&top!==parent||n._opts._inIframe&&25<(0,c.parentFramesLength)()||n._opts._inIframe&&(!window._allIframes||2<window._allIframes.length)||!n._opts._inIframe&&2<s.length||n._mediaData.stats&&5e3<n._mediaData.stats.loadCount&&.1>n._mediaData.stats.uniquePlayCount/n._mediaData.stats.uniqueLoadCount?"none":"metadata"}return e}},{key:"rebuild",value:function(){var t=this.impl;return t.info("rebuild"),t.trigger("beforerebuild"),t.embedded((function(){t.embedded(!1),t.ready(!1),t.removeBehaviors(),t.enginePromise=null,t.engine=null,t._oldVideoElem=t.elem(),t._whenVideoElementInDom=null,t.stopStreaming(),(0,s.elemRemove)(t.videoWrapper),t.videoWrapper=null,t.ui=null,t._lastPlayType=null,t._lastPlaySource=null,t._lastPlayIssuedAt=null,t._lastPlayResolvedAt=null,t._lastPlayRejectedAt=null,t.wipeOutstandingAsyncFunctions(),t.setupBehaviors(),t.embed(),t.trigger("afterrebuild")})),t}},{key:"checkForReady",value:function(){var t=this.impl;t._checkDownState(),t.up((function(){t.embedded((function(){t.onDimensionChangeSafe(),t.engine&&t.engine.onReady().then((function(){t.onDimensionChangeSafe(),t.ready(!0)}))}))}))}},{key:"initializeEngine",value:function(){var t=this,e=this.impl;if(e){if(e.enginePromise)return e.enginePromise;var n=e.bestEngine();return e.enginePromise=i.default.asyncRequire(n).then((function(n){if(e.grid)try{e._mediaData=(0,a.mediaDataTransforms)(e._mediaData,e._opts),e.engine=new n(e.videoWrapper,e._mediaData,t.engineAttributes(),e.oldImpl&&e.oldImpl.engine),e.oldImpl=null,e.trigger("engine-initialized"),e.setupBindings(),t.checkForReady()}catch(t){e.error(t)}}))}}},{key:"engineAttributes",value:function(){var t,e,n,o=this.impl;if(o._opts.videoQuality?t=o._opts.videoQuality:(o._opts.videoFoam||720<=o.videoWidth())&&(t="md"),o._bandwidthTest().isFresh()&&(e=o._bandwidthTest().savedResult().clientKbps),o._mediaData.secondaryMediaData)n=(0,h.clone)(o._mediaData.secondaryMediaData);else if(o._opts.secondaryVideoUrl){var r=(0,h.clone)(o._mediaData),a=o.originalAsset();r.assets=[{container:"mp4",ext:"mp4",codec:"x264",public:!0,url:o._opts.secondaryVideoUrl,height:a.height,width:a.width,type:"mp4_video",display_name:"".concat((0,d.numericSizeSnapped)(a.width,a.height),"p"),status:d.READY,created_at:(new Date).getTime()}],n=r}var s,l=o._opts.layoutTiming;o._opts.twoStroke&&o._opts.twoStroke.layoutTiming&&(l=o._opts.twoStroke.layoutTiming),(o._startPosition||o.shouldResume())&&(s=o._startPosition||(0,u.getLastTime)(o.hashedId())),o.isResumableEnabled()&&((0,u.atOrNearBeginning)(o.hashedId())?i.default.Metrics.videoCount(o,"player/resumable-close-to-beginning"):(0,u.atOrNearEnd)(o.hashedId(),o.duration())&&i.default.Metrics.videoCount(o,"player/resumable-close-to-end"));var c=0===o._opts.trimStart&&-1===o._opts.trimEnd;return{backgroundColor:"transparent"===o._opts.wmode?"transparent":o.playerBackgroundColor(),controls:o._inNativeMode(),cuts:o._opts.cuts,duration:o._mediaData.duration,fitStrategy:o._opts.fitStrategy,hashedId:o.hashedId(),height:o.videoHeight(),hls:o._opts.hls,layoutTiming:l,liveMedia:o.isLiveMedia(),loop:"loop"===o._opts.endVideoBehavior,muted:o._muted,editTree:o._opts.editTree,playsinline:!0,preload:this._preloadPreference,qualityMax:o._attrs.qualityMax,qualityMin:o._attrs.qualityMin,savedBandwidth:e,secondaryMediaData:n,silentAutoPlay:o._opts.silentAutoPlay,startPosition:s,trimEnd:c?void 0:o._opts.trimEnd,trimStart:c?void 0:o._opts.trimStart,videoQuality:t,volume:o._volume,width:o.videoWidth()}}}])&&m(n.prototype,o),p&&m(n,p),e}(o.PlayerBehavior);k.handle="embed",e.default=k},function(t,e,n){"use strict";var i=n(2),o=n(580),r=n(100),a=n(20),s=n(22),u=n(44),l=n(10),c=n(16);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?v(t):e}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=(0,a.cachedDetect)(),w=function(t){function e(){var t;h(this,e);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return b(v(t=f.call.apply(f,[this].concat(i))),"onEnterFullscreen",(function(e){var n=t.impl;e===n.chrome&&(n.info("_onEnterFullscreen"),n.trigger("beforeenterfullscreen"),t._hasBeenInFullscreen=!0,t._inFullscreen=!0,n.notFullscreen(!1),t.injectFullscreenStyles(),n.behaviors.embed.updateBackgroundColor(),n.width((0,c.elemWidth)(window),{fullscreen:!0,dontChangeContainer:!0}),n.height((0,c.elemHeight)(window),{fullscreen:!0,dontChangeContainer:!0}),n.engine&&n.engine.onEnterFullscreen(),n.trigger("enterfullscreen"),n.trigger("enter-fullscreen"))})),b(v(t),"onEnterWebkitFullscreen",(function(e){var n=t.impl;t._hasBeenInFullscreen=!0,t._inFullscreen=!0,t._nativeFullscreen=!0,n.notFullscreen(!1),n.trigger("enterfullscreen"),n.trigger("enter-fullscreen")})),b(v(t),"onCancelFullscreen",(function(){var e=t.impl;t._nativeFullscreen?(t._nativeFullscreen=!1,t._inFullscreen=!1,e.notFullscreen(!0),e.trigger("cancelfullscreen"),e.trigger("cancel-fullscreen")):t._inFullscreen&&(e.info("onCancelFullscreen"),t._inFullscreen=!1,e.notFullscreen(!0),t.removeFullscreenStyles(),e.behaviors.embed.updateBackgroundColor(),e.width(t._widthBeforeFullscreen),e.height(t._heightBeforeFullscreen),e.fit(),e.engine&&e.engine.onLeaveFullscreen(),e.trigger("cancelfullscreen"),e.trigger("cancel-fullscreen"))})),b(v(t),"onOrientationChange",(function(){var e=t.impl;if(t.fullscreenResizeToWindowFlurry(),-90===window.orientation||90===window.orientation){if("playing"!==e.state()||e.engine.isMuted())return;e.requestFullscreen()}else e.cancelFullscreen()})),b(v(t),"fullscreenResizeToWindowFlurry",(function(){var e=t.impl;t.fullscreenResizeToWindow(),[0,50,100,200,300,500,1e3].forEach((function(n){(0,u.doTimeout)("".concat(e.uuid,".fs-resize-flurry-").concat(n),t.fullscreenResizeToWindow,n)}))})),b(v(t),"fullscreenResizeToWindow",(function(){var e=t.impl;if(e.inFullscreen()&&!t._nativeFullscreen){e.debug("fullscreenResizeToWindow");var n=e.width(),i=e.height(),o=(0,c.elemWidth)(window),r=(0,c.elemHeight)(window);n!==o&&e.width(o,{fullscreen:!0,dontChangeContainer:!0}),i!==r&&e.height(r,{fullscreen:!0,dontChangeContainer:!0})}})),b(v(t),"maybeAutoFullscreen",(function(){t.impl.isAudio()||t.impl._inNativeMode()&&!1===t.impl._opts.playsinline&&(0,c.inUserEventContext)()&&!t._hasAutoFullscreened&&(t._hasAutoFullscreened=!0,t.requestFullscreen())})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,t);var n,o,a,f=y(e);return n=e,(o=[{key:"init",value:function(){var t=this,e=this.impl;this.unbinds.push((0,s.globalOn)("enterfullscreen",this.onEnterFullscreen),(0,s.globalOn)("cancelfullscreen",this.onCancelFullscreen),(0,c.elemBind)(window,"resize",(function(){t.fullscreenResizeToWindowFlurry()})),e.on("playpending",this.maybeAutoFullscreen)),e.whenVideoElementInDom().then((function(){e.engine.bind("webkitbeginfullscreen",t.onEnterWebkitFullscreen),e.engine.bind("webkitendfullscreen",t.onCancelFullscreen)})),this.getIsFullscreenOnRotateToLandscape()&&(window.screen.orientation?this.unbinds.push((0,c.elemBind)(window.screen.orientation,"change",this.onOrientationChange)):this.unbinds.push((0,c.elemBind)(window,"orientationchange",this.onOrientationChange)))}},{key:"injectFullscreenStyles",value:function(){if(!this._fullscreenStyle){document.body.id||(this._docBodyId=(0,l.seqId)("wistia_","_tmp_body_id"),document.body.setAttribute("id",this._docBodyId));var t="\n      #".concat(document.body.id,", #").concat(document.body.id," :full-screen-ancestor {\n        animation-name: none;\n        -webkit-animation-name: none;\n        transform: none;\n        -webkit-transform: none;\n      }\n    ");["webkit","moz","ms","o"].map((function(e){t+="\n      #".concat(document.body.id," :-").concat(e,"-full-screen-ancestor {\n        animation-name: none;\n        -webkit-animation-name: none;\n        transform: none;\n        -webkit-transform: none;\n      }\n      ")+"\n"})),this._fullscreenStyle=(0,c.addInlineCss)(this.impl.wrapperElem,t)}}},{key:"removeFullscreenStyles",value:function(){this._fullscreenStyle&&(this._docBodyId&&document.body.id===this._docBodyId&&(document.body.removeAttribute("id"),this._docBodyId=null),(0,c.elemRemove)(this._fullscreenStyle),this._fullscreenStyle=null)}},{key:"requestFullscreen",value:function(){if(!this.impl._opts._inIframe||!/two_stroke/i.test(this.impl.bestEngine())||!_.iphone&&!_.ipad){var t=this.impl;t.inFullscreen()||(t.info("requestFullscreen"),this._widthBeforeFullscreen=t.width(),this._heightBeforeFullscreen=t.height(),t.width(t.width()),t._inNativeMode()?t.engine&&t.engine.requestFullscreen():_.fullscreenEnabled?(0,c.elemRequestFullscreen)(t.chrome):this.getAllowFakeFullscreen()?this.enterFakeFullscreen():t.engine&&("beforeplay"===t.state()&&(_.iphone||_.ipad)&&t.engine.play().then((function(){return t.engine.pause()})),t.engine&&t.engine.requestFullscreen()))}}},{key:"cancelFullscreen",value:function(){var t=this.impl;t.inFullscreen()&&(t.info("cancelFullscreen"),t._inNativeMode()?t.engine.cancelFullscreen():_.fullscreenEnabled?(0,c.elemCancelFullscreen)():this.getAllowFakeFullscreen()?this.cancelFakeFullscreen():t.engine.cancelFullscreen())}},{key:"getAllowFakeFullscreen",value:function(){return!this.impl._opts._inIframe&&10<=_.ios.version&&(this.impl._opts.fakeFullscreen||/two_stroke/i.test(this.impl.bestEngine()))}},{key:"getIsFullscreenOnRotateToLandscape",value:function(){if(!_.touchScreen)return!1;if(0<_.ios.version&&10>_.ios.version)return!1;var t=this.impl._opts.fullscreenOnRotateToLandscape;return null==t||t}},{key:"enterFakeFullscreen",value:function(){var t=this.impl;this._widthBeforeFullscreen=t.width(),this._heightBeforeFullscreen=t.height(),this._inFakeFullscreen=!0,this._chromeParent=t.chrome.parentNode,document.body.appendChild(t.chrome),this._leftOffsetBeforeFullscreen=(0,r.scrollLeft)(),this.onEnterFullscreen(t.chrome),this.setupFakeFullscreenBindings(),(0,c.elemStyle)(t.chrome,{position:"fixed",top:0,left:0,zIndex:2147483647}),(0,r.scrollLeft)(0),t.engine&&t.engine.onEnterFullscreen()}},{key:"setupFakeFullscreenBindings",value:function(){var t=this,e=this.impl;i.default.eventLoop.add("".concat(e.uuid,".fakefullscreen"),100,(function(){t.fullscreenResizeToWindow()})),this._preventDefaultForTouchMove||(this._preventDefaultForTouchMove=function(t){t.preventDefault()}),(0,c.elemRebind)(e.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"cancelFakeFullscreen",value:function(){var t=this.impl;this._inFakeFullscreen=!1,this.onCancelFullscreen(t.chrome),this._chromeParent&&this._chromeParent.appendChild(t.chrome),t.chrome.style.position="",(0,r.scrollLeft)(this._leftOffsetBeforeFullscreen),i.default.eventLoop.remove("".concat(t.uuid,".fakefullscreen")),t.engine&&t.engine.onLeaveFullscreen(),null!=this._preventDefaultForTouchMove&&(0,c.elemUnbind)(t.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"transferStateFrom",value:function(t){var e=this,n=t.behaviors&&t.behaviors.fullscreen;if(n)for(var i in n){if(n.hasOwnProperty(i)){var o=n[i];"_"===i[0]&&"function"!=typeof o&&(this[i]=o)}n._inFullscreen&&function(){var t=e.impl;t.notFullscreen((function(){t.width(e._widthBeforeFullscreen),t.height(e._heightBeforeFullscreen)}))}()}}},{key:"inFullscreen",value:function(){return!!this._inFullscreen}},{key:"inNativeFullscreen",value:function(){return!!this._nativeFullscreen}}])&&d(n.prototype,o),a&&d(n,a),e}(o.PlayerBehavior);w.handle="fullscreen",i.default._onFullscreenChange||(i.default._onFullscreenChange=function(){(0,c.fullscreenElement)()?(0,s.globalTrigger)("enterfullscreen",(0,c.fullscreenElement)()):(0,s.globalTrigger)("cancelfullscreen")},i.default._initializers.initFullscreenTriggers=function(){(0,c.elemRebind)(document,"mozfullscreenchange",i.default._onFullscreenChange),(0,c.elemRebind)(document,"webkitfullscreenchange",i.default._onFullscreenChange),(0,c.elemRebind)(document,"MSFullscreenChange",i.default._onFullscreenChange),(0,c.elemRebind)(document,"fullscreenchange",i.default._onFullscreenChange)},i.default._destructors.destroyFullscreenTriggers=function(){(0,c.elemUnbind)(document,"mozfullscreenchange",i.default._onFullscreenChange),(0,c.elemUnbind)(document,"webkitfullscreenchange",i.default._onFullscreenChange),(0,c.elemUnbind)(document,"MSFullscreenChange",i.default._onFullscreenChange),(0,c.elemUnbind)(document,"fullscreenchange",i.default._onFullscreenChange)}),e.default=w},function(t,e,n){"use strict";var i=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){function e(){var t;r(this,e);for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return h(c(t=f.call.apply(f,[this].concat(o))),"onPlay",(function(){if(null==t._startedLoadingAt)return t._startedLoadingAt=Date.now(),t.impl.unbind})),h(c(t),"onProgress",(function(){var e=t.impl;if(e.engine.anyBuffered())return t._firstByteReceivedAt=Date.now(),null!=t._startedLoadingAt&&(t._timeToFirstByte=t._firstByteReceivedAt-t._startedLoadingAt),e.unbind})),h(c(t),"onWaiting",(function(e){var n=t.impl,o=n.engine.anyBuffered();t._noDataFor5Seconds||!(5<=e)||o||(t._noDataFor5Seconds=!0,i.default.Metrics.videoCount(n,"player/no-data/5-seconds")),t._noDataFor10Seconds||!(10<=e)||o||(t._noDataFor10Seconds=!0,i.default.Metrics.videoCount(n,"player/no-data/10-seconds")),t._noDataFor15Seconds||!(15<=e)||o||(t._noDataFor15Seconds=!0,i.default.Metrics.videoCount(n,"player/no-data/15-seconds"))})),h(c(t),"onClickedPlayBeforeReady",(function(){i.default.Metrics.videoCount(t.impl,"player/clicked-play-before-ready")})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t);var n,o,l,f=u(e);return n=e,(o=[{key:"init",value:function(){var t=this;this.impl.whenVideoElementInDom().then((function(){return t.doInit()}))}},{key:"doInit",value:function(){var t=this.impl;t.engine&&t.engine.getPreload()&&(this._startedLoadingAt=Date.now()),this.unbinds.push(t.on("play",this.onPlay),t.on("progress",this.onProgress),t.on("waiting",this.onWaiting),t.on("clicked-play-before-ready",this.onClickedPlayBeforeReady))}}])&&a(n.prototype,o),l&&a(n,l),e}(n(580).PlayerBehavior);d.handle="metrics",e.default=d},function(t,e,n){"use strict";var i=n(2),o=n(580);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=(0,n(20).cachedDetect)(),y=function(t){function e(){var t;a(this,e);for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];return d(f(t=c.call.apply(c,[this].concat(o))),"onError",(function(){var e=t.impl,n=e.getMediaElement();if(n&&n.error&&3===n.error.code&&/native_hls_video/.test(t.impl.bestEngine())){var o=e.lastPlayInfo().isPending;e.commandQueueOpen.clearSynchronized();var r=o?"playing":"not-playing";i.default.Metrics.videoCount(e,"player/rebuild-non-hls-on-error/".concat(r)),t.unbinds.push(e.on("play",(function(){return i.default.Metrics.videoCount(e,"player/rebuild-non-hls-on-error/".concat(r)),e.unbind}))),e.publicApi.fullRebuild({hls:!1,autoPlay:o&&!(p.ios.version&&10.1>p.ios.version)})}})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,t);var n,o,r,c=l(e);return n=e,(o=[{key:"init",value:function(){this.unbinds.push(this.impl.on("error",this.onError))}}])&&s(n.prototype,o),r&&s(n,r),e}(o.PlayerBehavior);y.handle="playbackErrorHandling",e.default=y},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=function(t){function e(){return o(this,e),l.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,t);var n,i,u,l=s(e);return n=e,(i=[{key:"init",value:function(){var t=this;this.unbinds=[this.impl.on("waiting",(function(e){5<=e&&t.impl.trigger("problem",{type:"long-buffer",data:{secondsWaiting:e}})})),this.impl.on("error",(function(e){var n=t.impl.getMediaElement().error;t.impl.trigger("problem",{type:"video-error",errorCode:n&&n.code||n,errorMessage:n&&n.message})}))]}}])&&r(n.prototype,i),u&&r(n,u),e}(n(580).PlayerBehavior);c.handle="problemMonitoring",e.default=c},function(t,e,n){"use strict";var i=n(2),o=n(580),r=n(51),a=n(14),s=n.n(a);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function f(t,e,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=function(t){function e(){var t;l(this,e);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return v(y(t=u.call.apply(u,[this].concat(i))),"maybeFireStateAndTimeEvents",(function(){t.fireStateChangedEventsIfChanged(),t.fireTimeChangedEventsIfChanged()})),v(y(t),"onLookChange",(function(e){t.impl.trigger("lookchange",e)})),v(y(t),"onPause",(function(){t.maybeFireStateAndTimeEvents()})),v(y(t),"onPlaying",(function(){t._beforePlay=!1,t._ended=!1,t.maybeFireStateAndTimeEvents()})),v(y(t),"onEnded",(function(){t.maybeFireStateAndTimeEvents()})),v(y(t),"onAudioStreamChanged",(function(){t.impl.trigger("audiostreamchange")})),v(y(t),"onVolumeChange",(function(){var e=t.impl.isMuted();t.impl.trigger("volumechange",t.impl.volume(),e),e!==t._isMuted&&(t._isMuted=e,t.impl.trigger("mutechange",e))})),v(y(t),"onRateChange",(function(){t.impl.trigger("playbackratechange",t.impl.playbackRate()),r.globalEventLoop.interval("".concat(t.impl.uuid,".events"),t.impl._eventLoopDuration)})),v(y(t),"onProgress",(function(e){t.impl.trigger("progress",e)})),v(y(t),"onError",(function(e){t.impl.trigger("error",e)})),v(y(t),"onSeeking",(function(e){t.impl.trigger("seeking",e),t.engine.bind("seeked",(function(e){return t.impl.trigger("seekcomplete",e),t.engine.unbind}))})),v(y(t),"onCustomWaiting",(function(e){t._waiting=e,t.impl.trigger("waiting",e)})),v(y(t),"onCustomDoneWaiting",(function(e){t._waiting=-1,t.impl.trigger("done-waiting",e)})),v(y(t),"fireTimeChangedEventsIfChanged",(function(){if(!t._destroyed){var e=t.impl,n=!1,i=Date.now(),o=e.time(),r=o!==t._lastTimePosition,a=o-t._lastTimePosition,u=Math.floor(o),l=Math.floor(t._lastTimePosition),c=(i-t._lastClockTime)/1e3,f=e.playbackRate(),h="beforeplay"===e.state()&&.3>o,d=1<Math.abs(Math.floor(o)-Math.floor(t._lastTimePosition));if(r&&0<=o&&!h){if(t._ended=!1,e.trigger("timechange",o),u!==l){if(.05>Math.abs(a/f-c)&&d){n=!0;for(var p=l+1;p<u;p++)e.trigger("secondchange",p)}e.trigger("secondchange",u)}t._beforePlay||t._ended||n||!d||!(Math.abs(o-t._lastTimePosition)>e._attrs.seekThreshold)||e.trigger("seek",o,t._lastTimePosition),t._lastTimePosition=o}return t._lastClockTime=i,s().resolve()}})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t);var n,o,a,u=d(e);return n=e,(o=[{key:"init",value:function(){var t=this;this.resetState(),this.impl.whenVideoElementInDom().then((function(){return t.doInit()}))}},{key:"doInit",value:function(){var t=this,e=this.impl,n=e.engine;this.unbinds.push(n.bind("lookchange",this.onLookChange),n.bind("pause",this.onPause),n.bind("playing",this.onPlaying),n.bind("ended",this.onEnded),n.bind("volumechange",this.onVolumeChange),n.bind("audiostreamchange",this.onAudioStreamChanged),n.bind("ratechange",this.onRateChange),n.bind("progress",this.onProgress),n.bind("custom-waiting",this.onCustomWaiting),n.bind("custom-done-waiting",this.onCustomDoneWaiting),n.bind("error",this.onError)),r.globalEventLoop.add("".concat(e.uuid,".events"),e._eventLoopDuration,(function(){if(!e.looksDown()){t.fireStateChangedEventsIfChanged(),t.fireTimeChangedEventsIfChanged();var n=e.videoQuality();n!==t._lastQuality&&(e.trigger("qualitychange",n),t._lastQuality=n)}}))}},{key:"destroy",value:function(){r.globalEventLoop.remove("".concat(this.impl.uuid,".events")),f(m(e.prototype),"destroy",this).call(this)}},{key:"resetState",value:function(){this._waiting=-1,this._lastTimePosition=-1,this._beforePlay=!0,this._ended=!1,this._isMuted=this.impl.isMuted(),this._hasPlayed=!1}},{key:"fireStateChangedEventsIfChanged",value:function(){if(!this._destroyed){var t=this.impl,e=t.state();e!==this._lastState&&(t.trigger("statechange",e,this._lastState),"playing"===e&&(this._hasPlayed=!0,this._ended=!1,t.trigger("play",t.lastPlayInfo())),"paused"===e&&t.trigger("pause",t.lastPauseInfo()),"ended"===e&&(this._ended=!0,t.trigger("end"),this.triggerAfterendTimeout()),"ended"!==e&&this.mozillaAtEnd()&&(t.engine.pause(),this._ended=!0,t.trigger("end"),this.triggerAfterendTimeout()),this._lastState=e)}}},{key:"mozillaAtEnd",value:function(){return!this._ended&&i.default.detect.browser.mozilla&&45>i.default.detect.browser.version&&!i.default.detect.edge&&i.default.detect.windows&&.6<=this._waiting&&2>Math.abs(this.impl.time()-this.impl.duration())}},{key:"triggerAfterendTimeout",value:function(){var t=this;setTimeout((function(){t.impl.trigger("afterend")}),0)}}])&&c(n.prototype,o),a&&c(n,a),e}(o.PlayerBehavior);g.handle="relayEvents",e.default=g},function(t,e,n){"use strict";var i=n(580),o=n(76);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){function e(){var t;a(this,e);for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return d(f(t=c.call.apply(c,[this].concat(i))),"onEnd",(function(){(0,o.setLastTime)(t._hashedId,t.impl.time()),t.destroyResumableKey()})),d(f(t),"onSecondChange",(function(){t._hasPlayed&&((0,o.setLastTime)(t._hashedId,t.impl.time()),!t.impl.shouldResume()&&t.destroyResumableKey(),null===t._resumableKey&&t.setResumableKeyToEventKey())})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,t);var n,i,r,c=l(e);return n=e,(i=[{key:"init",value:function(){this._hasPlayed=!1,this._hashedId=this.impl.hashedId(),this._unbinds=[],this._resumableKey=(0,o.getResumableKeyForVideo)(this._hashedId)||null,this.setupBindings(),!this.impl.shouldResume()&&this._resumableKey&&this.destroyResumableKey()}},{key:"destroy",value:function(){this._unbinds.map((function(t){"function"==typeof t&&t()})),this._unbinds=[]}},{key:"destroyResumableKey",value:function(){(0,o.setResumableKeyForVideo)(this._hashedId,null),this._resumableKey=null}},{key:"lastTime",value:function(){return(0,o.getLastTime)(this._hashedId)}},{key:"resumableKey",value:function(){return this._resumableKey}},{key:"setupBindings",value:function(){var t=this;this._unbinds.push(this.impl.on("play",(function(){return t._hasPlayed=!0})),this.impl.on("end",this.onEnd),this.impl.on("secondchange",this.onSecondChange));var e=this.impl.on("eventkeychange",(function(){t.initResumableKey(),e()}))}},{key:"setResumableKeyToEventKey",value:function(){var t=this.impl.eventKey();t&&(this._resumableKey=t,(0,o.setResumableKeyForVideo)(this._hashedId,this._resumableKey))}},{key:"initResumableKey",value:function(){this._resumableKey||this.setResumableKeyToEventKey()}}])&&s(n.prototype,i),r&&s(n,r),e}(i.PlayerBehavior);p.handle="resumable",e.default=p},function(t,e,n){"use strict";var i=n(2),o=n(589),r=n(590),a=n(591),s=n(57),u=n(580),l=n(14),c=n.n(l),f=n(10),h=n(6),d=n(15),p=n(226),y=n(20),m=n(44),v=n(12),g=n(11),b=n(16);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}(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 S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function k(){return(k=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function T(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function P(t,e,n){return(P="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=M(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=M(t);if(e){var o=M(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return A(this,n)}}function A(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?x(t):e}function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var R=(0,y.cachedDetect)(),B=function(t){return"control-bar-left"===t||"control-bar-right"===t||"ellipsis"===t||"playbar"==t},I=["above-control-bar","background","control-bar-left","control-bar-right","ellipsis","foreground","left-flyout","playbar","right-flyout"].reduce((function(t,e){return t[e]=!0,t}),{}),F=function(t){return t.pcfButtonWidth?t.pcfButtonWidth():null==t.constructor.width?40:t.constructor.width},L=function(t){return t.pcfButtonHeight?t.pcfButtonHeight():null==t.constructor.height?34:t.constructor.height},j=function(t){function e(){var t;T(this,e);for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];return D(x(t=y.call.apply(y,[this].concat(o))),"onBlurButton",(function(e,n){var i=n.constructor.type;B(i)&&(n.__isFocused=!1,t.render())})),D(x(t),"onFocusButton",(function(e,n){var i=n.constructor.type;B(i)&&(n.__isFocused=!0,t.render())})),D(x(t),"onFocusComplete",(function(){t.impl.trigger("focuscomplete")})),D(x(t),"onFocusIn",(function(e){if(t.isMostRecentFocusViaMouse=(0,d.isMouseDownRecently)(),!(0,d.isMouseDownRecently)()&&!t._isMouseDownFromTouch||e.srcElement!==t.layoutRef){t.updateFocusedControl(e.target),t.impl.enterInputContext("player-focus");var n=t.isKeyboardFocused;t.isKeyboardFocused=!((0,d.isMouseDownRecently)()||t._isMouseDownFromTouch),!n&&t.isKeyboardFocused&&(t.impl.trigger("focusin",e),t.maybeToggleControls())}else e.srcElement.blur()})),D(x(t),"onFocusOut",(function(e){t.updateFocusedControl(null),t.impl.exitInputContext("player-focus"),t.isKeyboardFocused?(0,m.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_blur"),(function(){var n;document.activeElement&&(0,b.elemIsInside)(document.activeElement,t.layoutRef)||(t.isKeyboardFocused=!1,null===(n=t.impl)||void 0===n||n.trigger("focusout",e),t.maybeToggleControls())}),1e3):(0,m.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_blur"),t.maybeToggleControls,50)})),D(x(t),"onKeyDown",(function(e){if(e.target===t.layoutRef){var n=e.keyCode;e.__handledAlready||32!==n&&13!==n||t.togglePlay()}})),D(x(t),"onMouseEnter",(function(e){t.impl.trigger("mouseenter",e),t.isHovering=!0,t.maybeToggleControls(),t.impl.enterInputContext("player-mouseover")})),D(x(t),"onMouseLeave",(function(e){t.impl.trigger("mouseleave",e),t.isHovering=!1,t.maybeToggleControls(),t.impl.exitInputContext("player-mouseover")})),D(x(t),"onMouseMove",(function(e){if(!R.touchScreen&&"beforeplay"!==t.impl.state()){var n=t.lastPageX!==e.pageX||t.lastPageY!==e.pageY;n&&(t.lastMovedMouseAt=Date.now(),t.lastPageX=e.pageX,t.lastPageY=e.pageY),n&&(t.maybeToggleControls(),t.shouldShowControls()&&(clearTimeout(t.maybeToggleControlsTimeout),(0,b.elemIsInside)(e.target,t.backgroundElem)?(t.lastMouseMoveWasFromBackground=!0,t.maybeToggleControlsTimeout=setTimeout(t.maybeToggleControls,t.showControlsTimeout())):(t.lastMouseMoveWasFromBackground=!1,t.maybeToggleControls())))}})),D(x(t),"onClick",(function(e){var n;t.lastMovedMouseAt=Date.now();var o=null===(n=i.default.PopoverV3)||void 0===n?void 0:n._activePopover,r=!(0,d.isMouseDownRecently)();o&&o.setShouldShowFocusOutline(r),t.lastPageX=e.pageX,t.lastPageY=e.pageY,(0,b.elemIsInside)(e.target,t.backgroundElem)?R.touchScreen?(t.isBeforePlayOrReset()?t.impl.play():t.isChromeless()?t.togglePlay():R.ios.version&&10.1>R.ios.version?(t.tappedToHide=!1,t.impl.play()):t._areControlsVisible?t.tappedToHide=!t.tappedToHide:t.tappedToHide=!1,t.maybeToggleControls(),setTimeout(t.maybeToggleControls,t.showControlsTimeout())):(t.togglePlay(),t.impl.isKeyboardFocused(r),t.impl.focus()):"beforeplay"!==t.impl.state()&&(t.tappedToHide=!1,t.maybeToggleControls(),setTimeout(t.maybeToggleControls,t.showControlsTimeout()))})),D(x(t),"onDblClick",(function(e){if(!R.touchScreen&&(0,b.elemIsInside)(e.target,t.backgroundElem)){var n=t.impl;t.impl.isControlEnabled("fullscreenButton")&&(n.inFullscreen()?n.cancelFullscreen():n.requestFullscreen())}})),D(x(t),"onTouchStart",(function(e){e._touchStartFromControlDialog&&(t._touchStartFromControlDialog=!0),t._cancelSwipe=!t.impl.inFullscreen()})),D(x(t),"onSwipe",(function(e,n){if(!t._cancelSwipe){t._swipeCtx=n;var i=t.impl,o=i.height(),r=i.width(),a=n.absYDelta/o,s=n.absXDelta/r;if(175<n.timeDelta&&(.02>a||s>a))return t._cancelSwipe=!0,void(0,b.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:function(){(0,b.elemAnimate)(i.chrome,{transform:""})}});if(.02<=a&&a>s){var u=n.yDelta/o;(0,b.elemStyle)(i.chrome,{transform:"translate(0, ".concat(-1*u*o,"px)")})}}})),D(x(t),"onPinch",(function(e,n){if(t.impl.isControlEnabled("fullscreenButton")){t._pinchCtx=n;var i,o,r=t.impl;t.impl.inFullscreen()?(i=.3,o=2.5):(i=.8,o=2.5),n.pinchScale*=1>n.pinchScale?1+.5*(1-n.pinchScale):1+.25*(n.pinchScale-1);var a=Math.max(i,Math.min(o,n.pinchScale));(0,b.elemStyle)(r.chrome,{transform:"scale(".concat(a,")")})}})),D(x(t),"onTouchEnd",(function(){if(t.impl.isControlEnabled("fullscreenButton")){var e=t._pinchCtx,n=t._swipeCtx;t._pinchCtx=null,t._swipeCtx=null;var i=t.impl;if(e)!i.inFullscreen()&&1.5<e.pinchScale?((0,b.elemStyle)(i.chrome,{transform:""}),i.requestFullscreen()):i.inFullscreen()&&.7>e.pinchScale?((0,b.elemStyle)(i.chrome,{transform:""}),i.cancelFullscreen()):(0,b.elemAnimate)(i.chrome,{transform:"scale(1)"},{time:400,callback:function(){(0,b.elemStyle)(i.chrome,{transform:""})}});else if(n){var o=i.height(),r=i.width(),a=n.absYDelta/o,s=n.absXDelta/r,u=function(){(0,b.elemStyle)(i.chrome,{transform:""})};if(.16<a&&a>s&&500>Date.now()-n.startedAt&&!1===t._touchStartFromControlDialog){t._cancelSwipe=!0;var l=0<n.yDelta?-1:1;(0,b.elemAnimate)(i.chrome,{transform:"translate(0, ".concat(l*o,"px)")},{time:200,callback:function(){i.cancelFullscreen(),u()}})}else t._cancelSwipe=!0,(0,b.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:u})}t._touchStartFromControlDialog=!1}})),D(x(t),"maybeToggleControls",(function(){if(!t._destroyed){var e=t._shouldShowControls;return t._shouldShowControls=t.shouldShowControls(),e===t._shouldShowControls?c().resolve():t.lastRenderPromise.then((function(){return t.render()}))}})),D(x(t),"mountRefsFn",(function(e){(0,v.assign)(t.mountRefs,e)})),D(x(t),"backgroundRefFn",(function(e){t.backgroundElem=e})),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(e,t);var n,u,l,y=C(e);return n=e,(u=[{key:"init",value:function(){var t=this;this.mountPromises=[],this.controls={},this.controlsByType={},this.dialogs=[],this.mountRefs={},this.buttonMountRefs={},this.lastRenderPromise=c().resolve(),this.lastMouseMoveWasFromBackground=!0,this._touchStartFromControlDialog=!1,this._ariaLiveText="",(0,g.getDefaultTranslation)().then((function(e){var n=t.impl.publicApi;n&&!n._wasPlayerLanguageSetViaApi&&t.impl.playerLanguage(e.code)})),this.domId||(this.domId=(0,f.seqId)("w-vulcan-v2-"))}},{key:"setupBindings",value:function(){var t=this;this._hasSetupBindings=!0;var e=this.impl;this.unbinds.push(e.on("play",(function(){t.doneWaitingForPlay=!0,null!=t.tappedToHide&&(t.tappedToHide=!1),t.render(),t.maybeToggleControls(),setTimeout(t.maybeToggleControls,t.showControlsTimeout())})),e.on("pause",(function(){R.touchScreen&&(null!=t.tappedToHide&&(t.tappedToHide=!1),t.maybeToggleControls())})),e.on("playrejected",(function(){t.doneWaitingForPlay=!0,t.showVideoWrapper(),t.render()})),e.on("enter-fullscreen",(function(){t._scale=null,t.cachedVideoHeight=null,t.cachedVideoWidth=null,t.render(),t.lastMouseMoveWasFromBackground=!0,t.maybeToggleControls(),(0,m.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_fullscreen"),t.maybeToggleControls,t.showControlsTimeout())})),e.on("cancel-fullscreen",(function(){t._scale=null,t.cachedVideoHeight=null,t.cachedVideoWidth=null,t.render(),t.lastMouseMoveWasFromBackground=!0,t.maybeToggleControls(),(0,m.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_fullscreen"),t.maybeToggleControls,t.showControlsTimeout())})),e.on("up",(function(){t._scale=null,t.cachedVideoHeight=null,t.cachedVideoWidth=null,t.render()})),e.on("playerlanguagechange",(function(){t.render()})),e.on("playercolorchange",(function(){t.render()})),e.on("popoverhide",(function(){t.render()})),e.on("popovershow",(function(){t.render()})),e.on("widthchange",(function(){t._scale=null,t._isShowingMore=null,t.cachedVideoWidth=null,t.render()})),e.on("heightchange",(function(){t._scale=null,t.cachedVideoHeight=null,t.render()})),i.default.on("controldefined",(function(){t.render()})),(0,b.elemBind)(document,"keyup",(function(n){(0,b.formInputIsFocused)()||"player-mouseover"===e.getInputContext()&&!1!==e._opts.hoverHotkeysEnabled&&32===n.keyCode&&t.togglePlay()})),(0,b.elemBind)(window,"mouseout",(function(e){var n=e.relatedTarget||e.toElement;n&&"HTML"!==n.nodeName||(t.isHovering=!1,t.impl.exitInputContext("player-mouseover"))})),(0,b.elemBind)(document,"touchend",(function(){(0,d.isMouseDown)()&&(t._isMouseDownFromTouch=!0),setTimeout((function(){t._isMouseDownFromTouch=!1,t.render()}),50)})),(0,b.elemBind)(window,"languagechange",(function(){(0,g.getDefaultTranslation)().then((function(e){var n=t.impl.publicApi,i=t.impl.playerLanguage().code!==e.code;n&&!n._wasPlayerLanguageSetViaApi&&i&&t.impl.playerLanguage(e.code)}))}))),e.whenVideoElementInDom().then((function(){t.unbinds.push(t.impl.engine.bind("webkitplaybacktargetavailabilitychanged",(function(){setTimeout((function(){t.render()}),0)})))})),e.whenVideoElementInDom().then((function(){t.unbinds.push(t.impl.engine.bind("audiotracksupdated",(function(){setTimeout((function(){t.render()}),0)})))}))}},{key:"render",value:function(){var t=this;if(this.isRendering&&this.lastRenderPromise)return this.queuedRenderPromise||(this.queuedRenderPromise=this.lastRenderPromise.then((function(){return t.render().then((function(){t.queuedRenderPromise=void 0}))}))),this.queuedRenderPromise;var e=this.impl;if(this._destroyed||!e.grid)return new(c())((function(){}));if(this._hasSetupBindings||this.setupBindings(),this.cssResetStyle||(this.cssResetStyle=(0,b.addInlineCss)(e.uiContainer,this.cssResetContent())),null==this.doneWaitingForPlay){var n=e._isPlayPending&&"beforeplay"===e.state();this.doneWaitingForPlay=!n}return this.lastRenderPromise=new(c())((function(n){t.isRendering=!0;var i=t.setupControls(),r=i.newControls,a=i.existingControls;t.setControlProps();var s=null==t._shouldShowControls?t.shouldShowControls():t._shouldShowControls;t._areControlsVisible=t._shouldShowControls,(0,h.render)((0,h.h)(o.default,{ariaLiveText:t._ariaLiveText,afterRender:0<r.length?function(){t.afterRender(a,r,n)}:null,allMounted:t.allMounted,backgroundRef:t.backgroundRefFn,bottomBarRightInnerRef:function(e){t.bottomBarRightInnerRef=e},color:e.playerColor(),controlBarHeight:t.controlBarHeight(),controlsByType:t.controlsByType,domId:t.domId,doneWaitingForPlay:t.doneWaitingForPlay,inFullscreen:e.inFullscreen(),inNativeMode:t.inNativeMode(),isMouseDownFromTouch:t._isMouseDownFromTouch,isShowingMore:t.isShowingMore(),hasClickedToShowMore:null!=t._isShowingMore,layoutRef:function(e){return t.layoutRef=e},leftControlWidth:t.leftControlWidth,mountRefs:t.mountRefsFn,noMixBlendMode:e._opts.noMixBlendMode,onClick:t.onClick,onDblClick:t.onDblClick,onFocusComplete:t.onFocusComplete,onfocusin:t.onFocusIn,onfocusout:t.onFocusOut,onKeyDown:t.onKeyDown,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseMove:t.onMouseMove,onPinch:t.onPinch,onSwipe:t.onSwipe,onTouchEnd:t.onTouchEnd,onTouchStart:t.onTouchStart,playerLanguage:e.playerLanguage(),rightControlWidth:t.rightControlWidth,shouldShowControls:s,videoHeight:t.videoHeight(),videoState:e.state(),videoWidth:t.videoWidth()}),e.uiContainer),0===r.length&&t.afterRender(a,r,n)})),this.lastRenderPromise}},{key:"afterRender",value:function(t,e,n){var i=this;if(!this._destroyed&&this.impl.grid)try{if(this.runOnControlPropsUpdated(t),this.renderButtons(t),this.mountControls(e),this.didFirstRender)n();else{this.didFirstRender=!0;var o=new(c())((function(t){return(0,m.doTimeout)("".concat(i.impl.uuid,".two_seconds_elapsed"),t,2e3)}));this.allMountedPromise=c().race([o,c().all(this.mountPromises)]).catch((function(t){setTimeout((function(){throw t}),0)})).then((function(){i.allMounted=!0,i.render().then(n)})),0===this.mountPromises.length&&n(),this.doneWaitingForPlay?this.allMountedPromise.then((function(){i.showVideoWrapper()})):((0,m.doTimeout)("".concat(this.impl.uuid,".bail_on_autoplay"),(function(){i.doneWaitingForPlay||(i.doneWaitingForPlay=!0,i.showVideoWrapper(),i.render())}),2e3),this.showVideoWrapperAfterInitialPlay())}}catch(t){setTimeout((function(){throw t}),0)}finally{this.isRendering=!1}else this.isRendering=!1}},{key:"setControlProps",value:function(){var t=this,e=this.impl,n=this.anyDialogOpen(),i=this.isChromeless(),o=this.shouldShowControls(),r=this.isHovering,a=this.isMostRecentFocusViaMouse,s=e.playerLanguage(),u=this.scale(),l=this.videoHeight(),c=this.videoWidth(),f=this.vulcOffset=(0,b.elemOffset)(e.grid.center),h=this.bottomBarOffset={left:f.left,top:f.top+this.videoHeight()-this.controlBarHeight()},d=0;this.getControlsByType("control-bar-left").map((function(e){e.__prevProps=e.props,e.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:o,focusNextVisibleControl:t.createFocusNextControlFunction(e),height:Math.round(L(e)*u),isMostRecentFocusViaMouse:a,left:d,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:Math.round(F(e))*u},d+=e.props.width})),this.leftControlWidth=d,this.getControlsByType("control-bar-right","ellipsis").map((function(e){e.__prevProps=e.props,e.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:o,focusNextVisibleControl:t.createFocusNextControlFunction(e),height:Math.round(L(e)*u),isMostRecentFocusViaMouse:a,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:Math.round(F(e))*u}}));var p=0;this.getControlsByType("ellipsis").slice().reverse().map((function(t){p+=t.props.width,t.props.left=c-p})),this.ellipsisWidth=p,this.getControlsByType("control-bar-right").slice().reverse().map((function(t){p+=t.props.width,t.props.left=c-p})),this.rightControlWidth=p;var y=this.leftControlWidth+(0<this.ellipsisWidth?this.ellipsisWidth:this.rightControlWidth),m=c-y,g=this.getControlsByType("playbar")[0];g&&(g.__prevProps=g.props,g.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:o,focusNextVisibleControl:this.createFocusNextControlFunction(g),height:this.controlBarHeight(),isMostRecentFocusViaMouse:a,left:d,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:m}),this.playbarControlWidth=m;var _=this.controlBarHeight();["background","foreground","left-flyout","above-control-bar","right-flyout"].map((function(e){(t.controlsByType[e]||[]).map((function(e){e.__prevProps=e.props,e.props={anyDialogOpen:n,chromeless:i,controlBarHeight:_,isFocusable:t.allMounted&&t.doneWaitingForPlay,controlsAreVisible:o,focusNextVisibleControl:t.createFocusNextControlFunction(e),isHoveringOnPlayer:r,isMostRecentFocusViaMouse:a,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c}}))}));var w=h.top;this.eachButtonControl((function(t){t.props.top=w})),g&&(0,v.assign)(g.props,{top:w}),this.eachControl((function(e){e.props.leftControlBarWidth=t.leftControlWidth,e.props.rightControlBarWidth=t.rightControlWidth}))}},{key:"runOnControlPropsUpdated",value:function(t){t.forEach((function(t){if("function"==typeof t.onControlPropsUpdated)try{t.onControlPropsUpdated(t.__prevProps||{})}catch(t){setTimeout((function(){throw t}),0)}t.__prevProps=null}))}},{key:"setupControls",value:function(){var t=this,e=this.impl,n=!1,o=[];for(var r in this.controls){var a=this.controls[r];if(I[a.constructor.type]){var s=a.constructor.shouldMount;if(e.isControlDisabled(r)||s&&!s(e.publicApi)){if(a.destroy)try{a.destroy()}catch(t){setTimeout((function(){throw t}),1)}a.__destroyed=!0,delete this.mountRefs[r],delete this.buttonMountRefs[r],delete this.controls[H(a)],n=!0,o.push(a),e.trigger("controldestroyed",r)}}}var u=!1,l=[],f=[],h=function(n){var o=i.default._controlDefinitions[n];if(!I[o.type])return"continue";var r=null!=t.controls[n],a=!e.isControlDisabled(n)&&(null==o.shouldMount||o.shouldMount(e.publicApi));if(a&&r&&f.push(t.controls[n]),!r&&a){try{var s=t.controls[n]=new o(e);s.mounted=new(c())((function(t){s.__didMount=function(){s.mounted.isResolved=!0,e.trigger("controlmounted",n),t()}})),l.push(s)}catch(t){setTimeout((function(){throw t}),1)}u=!0}};for(var d in i.default._controlDefinitions)h(d);if(u||n){var p={};for(var y in this.eachControl((function(t){var e=t.constructor.type;null==p[e]&&(p[e]=[]),p[e].push(t)})),p)p[y].sort((function(t,e){return(t.constructor.sortValue||0)-(e.constructor.sortValue||0)}));this.controlsByType=p,e.publicApi.controls=e.controls=this.controls}return{newControls:l,existingControls:f,destroyedControls:o}}},{key:"whenControlMounted",value:function(t){var e=this;return new(c())((function(n){var i=e.controls[t];i&&i.mounted?i.mounted.then((function(){n(i)})):e.impl.bind("controlmounted",(function(i){if(i===t)return n(e.controls[t]),e.impl.unbind}))}))}},{key:"mountControls",value:function(t){var e=this;t.forEach((function(t){var n=t.constructor.type,i=H(t),o=e.mountRefs[i];if(t.nextControlOfSameType||(t.nextControlOfSameType=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:t;return e.nextControlOfSameType(n)}),t.loading||(t.loading=function(i){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r="control-bar-right"===n;return r?e.renderButtonWithDialogLoader(t,i):e.renderHourglassLoader(i,o)}),"control-bar-left"!==n&&"control-bar-right"!==n&&"ellipsis"!==n)e.mountControl(t,(function(){return t.mount(o)}));else if(t.mountButton){var r=e.renderButtonWithDialog(t);e.mountControl(t,(function(){return t.mountButton(r)}))}else t.mount&&e.mountControl(t,(function(){return t.mount(o)}))}))}},{key:"mountControl",value:function(t,e){try{var n=H(t),i=e();i&&i.then&&i.catch?(i.handle=n,this.mountPromises.push(i),i.then((function(){t.__didMount()}))):t.__didMount()}catch(t){setTimeout((function(){throw t}),0)}}},{key:"renderButtons",value:function(t){var e=this;t.forEach((function(t){t.mountButton&&e.renderButtonWithDialog(t)}))}},{key:"renderButtonWithDialog",value:function(t){var e=this,n=H(t);if(this.impl){try{t.mountDialog&&!t.dialog&&(t.dialog=new r.default(this,{dialogWillOpen:W(t.controlDialogWillOpen,t),dialogOpened:W(t.controlDialogOpened,t),dialogWillClose:W(t.controlDialogWillClose,t),dialogClosed:W(t.controlDialogClosed,t),control:t}),this.dialogs.push(t.dialog))}catch(t){setTimeout((function(){throw t}),0)}var i;if(t.setButtonLabel||(t.setButtonLabel=function(n){t.__buttonLabel=n,e.renderButtonWithDialog(t)}),this.mountRefs[n])return(0,h.render)((0,h.h)(a.default,k({},t.props,{buttonLabel:t.__buttonLabel,buttonRef:function(e){t.buttonElement=e},closeDialogOnFocusOut:this.impl._opts.closeDialogsOnFocusOut,color:this.impl.playerColor(),control:t,key:"".concat(n,"_button_and_dialog"),onBlurButton:this.onBlurButton,onFocusButton:this.onFocusButton,rootRef:function(t){return e.buttonMountRefs[n]=t},stubRef:function(t){return i=t},videoState:this.impl.state()})),this.mountRefs[n]),i}}},{key:"renderButtonWithDialogLoader",value:function(t,e){var n=this;return new(c())((function(i){var o="".concat(n.impl.uuid,".loading_dialog_indicator.").concat((0,f.seqId)());(0,m.doTimeout)(o,(function(){n.setLoadingDialogAndRender(t,!0),R.touchScreen?(0,b.elemBind)(document,"touchstart",(function(){try{n.setLoadingDialogAndRender(t,!1)}catch(t){setTimeout((function(){throw t}),0)}return i(),b.elemUnbind})):(0,b.elemBind)(document,"mousedown",(function(){try{n.setLoadingDialogAndRender(t,!1)}catch(t){setTimeout((function(){throw t}),0)}return i(),b.elemUnbind}))}),300),e.then((function(){(0,m.clearTimeouts)(o),n.setLoadingDialogAndRender(t,!1),i()}))}))}},{key:"setLoadingDialogAndRender",value:function(t,e){t.__isDialogLoading=e,this.renderButtonWithDialog(t)}},{key:"renderHourglassLoader",value:function(t,e){var n=this;return new(c())((function(i){var o="".concat(n.impl.uuid,".loading_indicator.").concat((0,f.seqId)());(0,m.doTimeout)(o,(function(){n.controls.loadingHourglass.show(e),R.touchScreen?(0,b.elemBind)(document,"touchstart",(function(){try{n.controls.loadingHourglass.hide()}catch(t){setTimeout((function(){throw t}),0)}return i(),b.elemUnbind})):(0,b.elemBind)(document,"mousedown",(function(){try{n.controls.loadingHourglass.hide()}catch(t){setTimeout((function(){throw t}),0)}return i(),b.elemUnbind}))}),300),t.then((function(){(0,m.clearTimeouts)(o),n.controls.loadingHourglass.hide(),i()}))}))}},{key:"eachControl",value:function(t){for(var e in this.controls)I[this.controls[e].constructor.type]&&t(this.controls[e])}},{key:"eachButtonControl",value:function(t){this.getControlsByType("control-bar-left","control-bar-right","ellipsis").forEach(t)}},{key:"spaceForPlaybar",value:function(){var t=0;return this.eachButtonControl((function(e){t+=F(e)})),this.videoWidth()-t*this.scale()}},{key:"controlBarHeight",value:function(){var t=this.impl;return this.isBeforePlayOrReset()&&!t._opts.controlsVisibleOnLoad||this.isChromeless()?0:Math.round(34*this.scale())}},{key:"isBeforePlayOrReset",value:function(){var t=this.impl;return"beforeplay"===t.state()||t._opts&&"reset"===t._opts.endVideoBehavior&&"ended"===t.state()}},{key:"shouldShowControls",value:function(){var t=this.impl;return!(this.isChromeless()||(this.isBeforePlayOrReset()&&this.doneWaitingForPlay?null!=t._opts.controlsVisibleOnLoad&&!0!==t._opts.controlsVisibleOnLoad:!this.hasRequestedControlsVisible()&&(R.touchScreen?null==this.tappedToHide||this.tappedToHide||"playing"===t.state()&&!this.anyDialogOpen()&&!(this.lastMovedMouseAt&&3e3>Date.now()-this.lastMovedMouseAt&&this.lastMovedMouseAt>t.lastPlayInfo().issuedAt):!this.anyDialogOpen()&&!this.isKeyboardFocused&&(!t.inFullscreen()&&!this.isHovering||!(this.lastMovedMouseAt&&3e3>Date.now()-this.lastMovedMouseAt)&&this.lastMouseMoveWasFromBackground))))}},{key:"hasRequestedControlsVisible",value:function(){var t=this.impl._visibilityRequests;for(var e in t)if(t[e])return!0;return!1}},{key:"createFocusNextControlFunction",value:function(t){var e=this,n=this.nextVisibleFocusableControl(t);return function(t){var i=n;t&&(i=e.nextVisibleFocusableControl(t));var o=H(i),r=e.mountRefs[o];return e.focusNextVisibleElem(r)}}},{key:"focusNextVisibleElem",value:function(t){for(var e=t||this.impl.uiContainer,n=this.getVisibleFocusableElems(e),i=0,o=0;o<n.length;o++)if(document.activeElement===n[o]){i=o;break}return 0!==n.length&&(i===n.length-1?n[0].focus():n[i+1].focus(),!0)}},{key:"getVisibleFocusableElems",value:function(t){var e=t.querySelectorAll('button, [href], input, select, textarea, [tabindex="0"]');return Array.prototype.slice.call(e).filter((function(t){return!(0,b.elemIsHidden)(t)}))}},{key:"updateFocusedControl",value:function(t){var e=this;this.eachControl((function(n){var i=n.constructor.handle,o=e.mountRefs[i];n.__isFocused=t&&(0,b.elemIsInside)(t,o)})),this.render()}},{key:"showControlsTimeout",value:function(){return this.impl.inFullscreen()||R.touchScreen?3e3:5e3}},{key:"togglePlay",value:function(){var t=this.impl;"playing"===t.state()?t.pause():t.play()}},{key:"showVideoWrapperAfterInitialPlay",value:function(){var t=this;this.impl.ready((function(){var e=[t.impl._playPromise,t.impl._seekPromise].filter((function(t){return null!=t}));return c().all(e).then((function(){t.showVideoWrapper()}))}))}},{key:"showVideoWrapper",value:function(){(0,b.elemStyle)(this.impl.videoWrapper,{clip:""})}},{key:"anyDialogOpen",value:function(){for(var t in this.controls){var e=this.controls[t];if(e.dialog&&e.dialog.isOpen())return!0}return!1}},{key:"openDialog",value:function(t){this.dialogs.map((function(e){e!==t&&e.close()})),this.render()}},{key:"closeDialog",value:function(t){this.render()}},{key:"resizeDialog",value:function(t){this.render()}},{key:"videoWidth",value:function(){return null==this.cachedVideoWidth?this.cachedVideoWidth=this.impl.videoWidth():this.cachedVideoWidth}},{key:"videoHeight",value:function(){return null==this.cachedVideoHeight?this.cachedVideoHeight=this.impl.videoHeight():this.cachedVideoHeight}},{key:"scale",value:function(){return null==this._scale?"auto"===this.impl.controlScaling()?this._scale=Math.min(1.3,Math.max(.6,(0,p.controlMultiplierBasedOnVideo)(this.impl))):this.impl.controlScaling():this._scale}},{key:"destroy",value:function(){for(var t in this.buttonMountRefs)this.buttonMountRefs.hasOwnProperty(t)&&(0,h.render)((0,h.h)("nothing",null),this.mountRefs[t]);(0,h.render)((0,h.h)("nothing",null),this.impl.uiContainer),this.eachControl((function(t){if(t.destroy)try{t.destroy()}catch(t){setTimeout((function(){throw t}),0)}t.__destroyed=!0})),this.unbinds.forEach((function(t){return t()})),(0,b.elemRemove)(this.cssResetStyle),this.cssResetStyle=null,P(M(e.prototype),"destroy",this).call(this)}},{key:"nextVisibleFocusableControl",value:function(t){var e=this.nextControlOfSameType(t);if(e)return e;for(var n,i,o=t.constructor.handle,r=Object.keys(this.mountRefs),a=r.indexOf(o)+1,s=r.slice(a),u=0;u<s.length;u++)if(i=this.mountRefs[s[u]],0<this.getVisibleFocusableElems(i).length){n=s[u];break}return n||void 0}},{key:"nextControlOfSameType",value:function(t){var e=t.constructor.type,n=this.controlsByType[e],i=n.indexOf(t),o=n[i+1];return"control-bar-left"===e&&(!o&&this.controlsByType.playbar&&(o=this.controlsByType.playbar[0]),!o&&this.controlsByType["control-bar-right"]&&(o=this.controlsByType["control-bar-right"][0]),!o&&this.controlsByType.ellipsis&&(o=this.controlsByType.ellipsis[0])),o}},{key:"hasAnyVideoChromeControls",value:function(){for(var t in this.controls){var e=this.controls[t];if(e.constructor.isVideoChrome||B(e.constructor.type))return!0}return!1}},{key:"hasRequestedChromeless",value:function(){var t=this.impl._visibilityRequests;for(var e in t)if(!1===t[e])return!0;return!1}},{key:"isChromeless",value:function(){return this.inNativeMode()||this.impl._opts.chromeless||this.hasRequestedChromeless()||!this.hasAnyVideoChromeControls()}},{key:"inNativeMode",value:function(){var t=this.impl._opts;return!0===t.nativeMode||R.ipad&&R.ios.version&&10.1>R.ios.version||!1===t.playsinline&&(R.ipad||R.iphone||R.android)&&!/two_stroke/.test(this.impl.bestEngine())}},{key:"cssResetContent",value:function(){var t="#".concat(this.impl.chrome.id," #").concat(this.impl.grid.wrapper.id),e=(0,s.cssResetForSelector)("".concat(t," "),".w-css-reset"),n=(0,s.cssResetForSelector)("".concat(t," .w-css-reset-tree "),"");return"\n      ".concat(e,"\n      ").concat(n,"\n      ").concat(t," .w-css-reset-max-width-none-important{max-width:none!important}\n      ").concat(t," .w-css-reset-button-important{border-radius:0!important;color:#fff!important;}\n    ")}},{key:"hasRendered",value:function(){return!!this.allMounted}},{key:"shouldShowMoreDefaultValue",value:function(){return.35>(this.rightControlWidth-this.ellipsisWidth)/this.videoWidth()}},{key:"isShowingMore",value:function(){if(this.controlsByType.ellipsis){var t=this.getControlsByType("playbar");return 0===t.length||!(0<t.filter((function(t){return t.__isFocused})).length)&&(!!(0<this.getControlsByType("control-bar-right").filter((function(t){return t.__isFocused})).length)||(null==this._isShowingMore?this.shouldShowMoreDefaultValue():this._isShowingMore))}}},{key:"showMore",value:function(){return this._isShowingMore=!0,this.render()}},{key:"showLess",value:function(){return this.dialogs.forEach((function(t){return t.close()})),this._isShowingMore=!1,this.render()}},{key:"getControlsByType",value:function(){for(var t=this,e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];if(1===n.length&&this.controlsByType[n[0]])return this.controlsByType[n[0]];var o=[];return n.forEach((function(e){o.push.apply(o,w(t.controlsByType[e]||[]))})),o}},{key:"setAriaLiveText",value:function(t){this._ariaLiveText=t,this.render()}}])&&O(n.prototype,u),l&&O(n,l),e}(u.PlayerBehavior);j.handle="ui";var W=function(t,e){return t?t.bind(e):null},H=function(t){return t.constructor.handle};e.default=j},function(t,e,n){"use strict";var i=n(61),o=n(58),r=n(73),a=n(6),s=n(20),u=n(12),l=n(16),c=n(15);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?h(Object(e),!0).forEach((function(n){_(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):h(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function p(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?g(t):e}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=(0,s.cachedDetect)(),S=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_(g(n=f.call(this,t)),"onFocus",(function(){n.props.isMouseDownFromTouch||(0,c.isMouseDownRecently)()||n.setState({isKeyboardFocused:!0}),n.props.onFocusComplete()})),_(g(n),"onBlur",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),_(g(n),"onFocusIn",(function(t){n.props.onfocusin&&n.props.onfocusin(t)})),_(g(n),"onFocusOut",(function(t){n.props.onfocusout&&n.props.onfocusout(t)})),_(g(n),"onClick",(function(t){if((0,c.isMouseDownRecently)()&&n.setState({isKeyboardFocused:!1}),k(t)&&t.preventDefault(),n.props.onClick)return n.props.onClick(t)})),_(g(n),"onTouchEnd",(function(t){if(n.props.onTouchEnd)return n.props.onTouchEnd(t)})),n.state={areControlsOpaque:t.shouldShowControls,isKeyboardFocused:!1},n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(e,t);var n,s,l,f=m(e);return n=e,(s=[{key:"componentWillReceiveProps",value:function(t){this.handleControlBarAnimation(t)}},{key:"render",value:function(){var t=this;return this.mountRefs={},(0,a.h)(o.default,{class:"w-vulcan-v2 w-css-reset",elemRef:this.props.layoutRef,id:this.props.domId,onBlur:this.onBlur,onClick:this.onClick,onDblClick:this.props.onDblClick,onFocus:this.onFocus,onfocusin:this.props.onfocusin,onfocusout:this.props.onfocusout,onKeyDown:this.props.onKeyDown,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onMouseMove:this.props.onMouseMove,onPinch:this.props.onPinch,onSwipe:this.props.onSwipe,onTouchEnd:this.onTouchEnd,onTouchMove:this.props.onTouchMove,onTouchStart:this.props.onTouchStart,style:this.wrapperStyle()},(0,a.h)("div",{class:"w-vulcan--background w-css-reset",style:this.backgroundStyle(),ref:this.props.backgroundRef},this.renderControlCells("background")),(0,a.h)("div",{"aria-live":"polite",class:"w-vulcan--aria-live w-css-reset","aria-atomic":"true",style:{position:"absolute",left:"-99999em"}},this.props.ariaLiveText),(0,a.h)("div",{class:"w-vulcan-overlays-table w-css-reset",style:this.layoutTableStyle()},(0,a.h)("div",{class:"w-vulcan-overlays--left w-css-reset",style:this.tdLeftStyle()},(0,a.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("left-flyout",{height:"100%",pointerEvents:"auto"}))),(0,a.h)("div",{class:"w-vulcan-overlays--center w-css-reset",style:this.tdCenterStyle()},(0,a.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("above-control-bar",{pointerEvents:"auto"}))),(0,a.h)("div",{class:"w-vulcan-overlays--right w-css-reset",style:this.tdRightStyle()},(0,a.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("right-flyout",{height:"100%",pointerEvents:"auto"})))),(0,a.h)("div",{class:"w-bottom-bar w-css-reset",style:this.bottomBarStyle(),ref:function(e){return t.bottomBar=e}},(0,a.h)("div",{class:"w-bottom-bar-lower w-css-reset",style:this.bottomBarLowerStyle()},(0,a.h)("div",{style:this.leftBgStyle()},(0,a.h)("div",{style:this.blendStyle()}),(0,a.h)("div",{style:this.bgOverlayStyle()})),(0,a.h)("div",{style:this.rightBgStyle()},(0,a.h)("div",{style:this.blendStyle()}),(0,a.h)("div",{style:this.bgOverlayStyle()})),(0,a.h)("div",{class:"w-bottom-bar-left w-css-reset",style:this.bottomBarLeftStyle()},(0,a.h)("div",{class:"w-bottom-bar-left-inner w-css-reset",style:this.bottomBarLeftInnerStyle()},this.renderControlCells("control-bar-left",{display:"inline-block",verticalAlign:"top"}))),(0,a.h)("div",{class:"w-bottom-bar-middle w-css-reset",style:this.bottomBarMiddleStyle()},(0,a.h)("div",{class:"w-bottom-bar-middle-inner w-css-reset",style:this.bottomBarMiddleInnerStyle()},this.renderControlCells("playbar",this.playbarStyle()))),(0,a.h)("div",{class:"w-bottom-bar-right w-css-reset",style:this.bottomBarRightStyle()},(0,a.h)("div",{class:"w-bottom-bar-right-inner-anchor w-css-reset",style:this.bottomBarRightInnerAnchorStyle()},(0,a.h)("div",{class:"w-bottom-bar-right-inner w-css-reset",style:this.bottomBarRightInnerStyle()},this.renderControlCells("control-bar-right",{display:"inline-block",verticalAlign:"top"}))),(0,a.h)("div",{class:"w-ellipsis w-css-reset",style:this.ellipsisStyle()},this.renderControlCells("ellipsis",{display:"inline-block",verticalAlign:"top"}))))),(0,a.h)("div",{class:"w-foreground w-css-reset",style:this.foregroundStyle()},this.renderControlCells("foreground",{pointerEvents:"auto"})))}},{key:"componentDidMount",value:function(){this.props.mountRefs&&this.props.mountRefs(this.mountRefs),this.props.afterRender&&this.props.afterRender()}},{key:"componentDidUpdate",value:function(){var t=this.props.mountRefs,e=this.mountRefs,n=this.props.afterRender;setTimeout((function(){t&&t(e),n&&n()}),1)}},{key:"wrapperStyle",value:function(){return{boxSizing:"border-box",cursor:this.props.inFullscreen&&!this.props.shouldShowControls?"none":"default",height:"100%",left:0,pointerEvents:this.props.inNativeMode?"none":"",position:"absolute",visibility:this.props.allMounted&&this.props.doneWaitingForPlay?"visible":"hidden",top:0,width:"100%"}}},{key:"foregroundStyle",value:function(){return{height:"100%",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%"}}},{key:"backgroundStyle",value:function(){return{height:"100%",left:0,pointerEvents:this.props.inNativeMode?"none":"",position:"absolute",top:0,width:"100%"}}},{key:"layoutTableStyle",value:function(){return{display:"table",pointerEvents:"none",position:"absolute",width:"100%"}}},{key:"tdLeftStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdCenterStyle",value:function(){return this.standardCellStyle("100%")}},{key:"tdRightStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdLayoutInnerStyle",value:function(){return{height:"".concat(this.props.videoHeight-this.props.controlBarHeight,"px")}}},{key:"bottomBarStyle",value:function(){var t=this.state.areControlsOpaque,e=this.props.videoState;return{bottom:0,borderCollapse:"collapse",display:t||"beforeplay"!==e?"table":"none",height:"".concat(this.props.controlBarHeight,"px"),left:w.trident?0:"",pointerEvents:"none",position:"absolute",right:w.trident?"":0,tableLayout:"auto",width:"100%"}}},{key:"bottomBarLeftStyle",value:function(){return(0,u.assign)(this.standardCellStyle(0),{opacity:this.getOpacity(),transition:this.getTransition()})}},{key:"bottomBarLeftInnerStyle",value:function(){return this.standardInnerStyle()}},{key:"bottomBarMiddleStyle",value:function(){return(0,u.assign)(this.standardCellStyle("100%"),{opacity:this.getOpacity(),transition:this.getTransition()})}},{key:"bottomBarMiddleInnerStyle",value:function(){var t=this.props,e=t.hasClickedToShowMore,n=t.isShowingMore&&this.isEllipsisShowing(),i=e?150:0;return d(d({},this.standardInnerStyle()),{},{opacity:n?0:1,pointerEvents:n?"none":"auto",transform:"translateY(".concat(n?"-25%":0,")"),transition:"opacity ".concat(i,"ms, transform ").concat(i,"ms")})}},{key:"shouldMixBlendMode",value:function(){return!(w.trident||w.edge)&&!1===this.props.noMixBlendMode}},{key:"blendStyle",value:function(){var t=this.props.color;return{background:new r.default(t||"#000").alpha(1).toRgba(),display:this.shouldMixBlendMode()?"block":"none",height:"100%",mixBlendMode:"darken",left:0,opacity:this.getOpacity(),position:"absolute",top:0,transition:this.getTransition(),width:"100%"}}},{key:"bgOverlayStyle",value:function(){var t=this.props.color,e=new r.default(t||"#000").alpha(.7);return this.shouldMixBlendMode()||e.alpha(.85),{background:e.toRgba(),height:"100%",opacity:this.getOpacity(),left:0,position:"absolute",top:0,transition:this.getTransition(),width:"100%"}}},{key:"bottomBarRightStyle",value:function(){return(0,u.assign)(this.standardCellStyle(0),{opacity:this.getOpacity(),transition:this.getTransition(),whiteSpace:"nowrap"})}},{key:"bottomBarRightInnerAnchorStyle",value:function(){var t=d(d({},this.standardInnerStyle()),{},{display:"inline-block",position:"relative",right:0,top:0,verticalAlign:"top"});return this.isEllipsisShowing()&&(t.height=0),t}},{key:"bottomBarRightInnerStyle",value:function(){var t=this.props,e=t.hasClickedToShowMore,n=t.isShowingMore,i=!this.isEllipsisShowing()||n,o=e?150:0;return d(d({},this.standardInnerStyle()),{},{display:"inline-block",opacity:i?1:0,pointerEvents:i?"auto":"none",position:this.isEllipsisShowing()?"absolute":"relative",right:0,top:0,transform:"translateY(".concat(i?0:"25%",")"),transition:"opacity ".concat(o,"ms, transform ").concat(o,"ms")})}},{key:"ellipsisStyle",value:function(){return d(d({},this.standardInnerStyle()),{},{display:this.props.controlsByType.ellipsis?"inline-block":"none"})}},{key:"standardCellStyle",value:function(t){return{display:"table-cell",verticalAlign:"top",position:"relative",width:t}}},{key:"standardInnerStyle",value:function(){return{height:this.props.controlBarHeight,position:"relative",pointerEvents:this.state.areControlsOpaque?"auto":"none",whiteSpace:"nowrap"}}},{key:"renderControlCells",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=this.props.controlsByType;return(o[t]||[]).map((function(t){var o=t.constructor.handle;return(0,a.h)(i.default,{class:"w-css-reset",handle:o,key:o,mount:function(t){return e.mountRefs[o]=t},style:n})}))}},{key:"handleControlBarAnimation",value:function(t){var e=this;t.shouldShowControls&&!this.props.shouldShowControls&&setTimeout((function(){e.setState({areControlsOpaque:!0})}),1),!t.shouldShowControls&&this.props.shouldShowControls&&this.setState({areControlsOpaque:!1})}},{key:"getOpacity",value:function(){return this.state.areControlsOpaque?1:0}},{key:"getTransition",value:function(){return w.trident?"none":"opacity ".concat("beforeplay"===this.props.videoState?0:.2,"s")}},{key:"playbarStyle",value:function(){return{height:"100%",position:"relative"}}},{key:"leftBgStyle",value:function(){var t=this.props,e=t.controlsByType,n=t.leftControlWidth;return{height:"100%",left:0,position:"absolute",top:0,width:0<(e.playbar||[]).length?"100%":"".concat(n,"px")}}},{key:"rightBgStyle",value:function(){return 0<(this.props.controlsByType.playbar||[]).length?{display:"none"}:{height:"100%",position:"absolute",right:0,top:0,width:"".concat(this.props.rightControlWidth,"px")}}},{key:"bottomBarLowerStyle",value:function(){return{position:"relative"}}},{key:"isEllipsisShowing",value:function(){return!!this.props.controlsByType.ellipsis}}])&&p(n.prototype,s),l&&p(n,l),e}(a.Component),k=function(t){return t.target&&((0,l.elemHasClass)(t.target,"w-vulcan-v2-button")||(0,l.elemAncestorHasClass)(t.target,"w-vulcan-v2-button"))};e.default=S},function(t,e,n){"use strict";var i=n(14),o=n.n(i),r=n(24);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(){function t(e){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};a(this,t),u(this,"dialogWillOpen",(function(){return new(o())((function(t){if(n.config.dialogWillOpen){var e=n.config.dialogWillOpen();if(e&&e.then)return void e.then(t)}t()}))})),u(this,"doOpen",(function(){return new(o())((function(t){n._isOpen?t():(n._isOpen=!0,n._hasOpened=!0,n.ui.openDialog(n),setTimeout(t,170))}))})),u(this,"dialogOpened",(function(){return new(o())((function(t){n.config.dialogOpened&&n.config.dialogOpened(),t()}))})),u(this,"close",(function(){return n.control.mounted.then((function(){return n.isOpen()?n.dialogWillClose().then(n.doClose).then(n.dialogClosed):o().resolve()}))})),u(this,"dialogWillClose",(function(){return new(o())((function(t){if(n.config.dialogWillClose){var e=n.config.dialogWillClose();if(e&&e.then)return void e.then(t)}t()}))})),u(this,"doClose",(function(){return new(o())((function(t){n._isOpen?(n._isOpen=!1,n.ui.closeDialog(n),setTimeout(t,200)):t()}))})),u(this,"dialogClosed",(function(){return new(o())((function(t){n.config.dialogClosed&&n.config.dialogClosed(),t()}))})),this.ui=e,this.config=i,this._isOpen=!1,this._hasOpened=!1,this.control=i.control}return e=t,(n=[{key:"open",value:function(){var t=this;return this.control.mounted.then((function(){return t.isOpen()?o().resolve():t.dialogWillOpen().then(t.doOpen).then(t.dialogOpened)}))}},{key:"isOpen",value:function(){return this._isOpen}},{key:"hasOpened",value:function(){return this._hasOpened}},{key:"resize",value:function(){this._resizeRequestedAt=Date.now(),this.ui.resizeDialog(this)}}])&&s(e.prototype,n),i&&s(e,i),t;var e,n,i}();(0,r.bindify)(l.prototype),e.default=l},function(t,e,n){"use strict";var i=n(592),o=n(593),r=n(16),a=n(6),s=n(15);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),y(d(t=p.call(this)),"onClickButton",(function(){var e=t.props.control;if(e.buttonElement.focus(),!1!==e.toggleDialogOnClick){var n=e.dialog;n&&(n.isOpen()?n.close():n.open())}e.onClickButton&&e.onClickButton()})),y(d(t),"onKeyboardFocusButton",(function(e){if(e.relatedTarget!==t.dummyElem){var n=t.props,i=n.control,o=n.onFocusButton;o&&o(e,i),i.onFocusInButton&&i.onFocusInButton(e)}})),y(d(t),"onBlurButton",(function(e){var n=t.props,i=n.closeDialogOnFocusOut,o=n.control,a=n.onBlurButton,s=o.dialog;setTimeout((function(){var n=document.activeElement;!1===i||!1!==t.state.isMouseInDialog||n&&(0,r.elemIsInside)(n,t.base)||!s||s.close(),a&&a(e,o),o.onFocusOutButton&&o.onFocusOutButton(e)}),150)})),y(d(t),"onKeyDownButton",(function(e){var n=t.props.control;n.onKeyDownButton&&n.onKeyDownButton(e)})),y(d(t),"onMouseEnterDialog",(function(){t.setState({isMouseInDialog:!0})})),y(d(t),"onMouseLeaveDialog",(function(){t.setState({isMouseInDialog:!1})})),y(d(t),"onMouseEnter",(function(e){t._isHovering=!0;var n=t.props.control;n.onMouseEnter&&n.onMouseEnter(e)})),y(d(t),"onMouseLeave",(function(e){t._isHovering=!1;var n=t.props.control;n.onMouseLeave&&n.onMouseLeave(e)})),y(d(t),"onMouseDown",(function(){t._isMouseDown=!0,t._lastClickedElem=document.activeElement,(0,r.elemBind)(document,"mouseup",t.onMouseUp)})),y(d(t),"onMouseUp",(function(){t._isMouseDown=!1,(0,r.elemUnbind)(document,"mouseup",t.onMouseUp)})),y(d(t),"onFocusOut",(function(){setTimeout((function(){var e=t.props.control;if(!1!==t.props.closeDialogOnFocusOut&&e.dialog&&e.dialog.isOpen()&&(!document.activeElement||!(0,r.elemIsInside)(document.activeElement,t.base)))if(!0===t.state.isMouseInDialog&&((0,s.isMouseDownRecently)()||t._isMouseDown)){var n;null===(n=t._lastClickedElem)||void 0===n||n.focus({preventScroll:!0})}else e.dialog.close()}),500)})),y(d(t),"onFocusDummy",(function(){var e=t.props.control;e.dialog.close();var n=e.nextControlOfSameType();n&&n.buttonElement&&n.buttonElement.focus&&n.buttonElement.focus()})),y(d(t),"onBeforeDisplayNone",(function(){var e=t.props.control;if(t.dialogElem&&document.activeElement&&(0,r.elemIsInside)(document.activeElement,t.dialogElem)){var n=e.nextControlOfSameType();n&&n.buttonElement?n.buttonElement.focus():e.buttonElement.focus()}})),y(d(t),"dialogRefFn",(function(e){t.dialogElem=e,t.props.dialogRef&&t.props.dialogRef(e)})),t.state={isMouseInDialog:!1},t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t);var n,u,h,p=f(e);return n=e,(u=[{key:"render",value:function(){var t=this.props.control,e=t.mountDialog&&t.dialog&&t.dialog.hasOpened();return(0,a.h)("div",{class:"w-vulcan-button-wrapper w-css-reset",style:this.wrapperStyle(),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onfocusout:this.onFocusOut,ref:this.props.rootRef},this.renderControlBarButton(),e?this.renderControlBarDialog():null)}},{key:"componentDidMount",value:function(){var t=this.props.buttonRef;t&&t(this.buttonElem)}},{key:"componentDidUpdate",value:function(){var t=this.props.buttonRef;t&&t(this.buttonElem)}},{key:"renderControlBarButton",value:function(){var t=this,e=this.props,n=this.props.control,o=n.mountDialog&&n.dialog&&n.dialog.isOpen();return(0,a.h)(i.default,{buttonLabel:this.props.buttonLabel,buttonRef:function(e){return t.buttonElem=e},controlsAreVisible:this.props.controlsAreVisible,handle:e.control.constructor.handle,isDialogOpen:o,isLoading:e.control.__isDialogLoading||!1,onBlur:this.onBlurButton,onClick:this.onClickButton,onKeyDownButton:this.onKeyDownButton,onKeyboardFocus:this.onKeyboardFocusButton,stubRef:e.stubRef,videoState:this.props.videoState})}},{key:"renderControlBarDialog",value:function(){var t=this.props,e=t.control,n=t.videoHeight-34*t.scale;return(0,a.h)(o.default,{canvasHeight:n,canvasWidth:t.videoWidth,dialogRef:this.dialogRefFn,handle:"".concat(e.constructor.handle,"__dialog"),isOpen:e.dialog.isOpen(),left:e.props.left,mount:function(t){return e.mountDialog(t)},newLook:this.props.newLook,onBeforeDisplayNone:this.onBeforeDisplayNone,onFocusDummy:this.onFocusDummy,onMouseEnter:this.onMouseEnterDialog,onMouseLeave:this.onMouseLeaveDialog,resizeRequestedAt:e.dialog._resizeRequestedAt,scale:t.scale,shouldRenderDummy:!!e.nextControlOfSameType(),top:e.props.top})}},{key:"wrapperStyle",value:function(){var t=this.props.control;return{display:"inline-block",height:"".concat(t.props.height,"px"),position:"relative",verticalAlign:"top",width:"".concat(t.props.width,"px")}}}])&&l(n.prototype,u),h&&l(n,h),e}(a.Component);e.default=m},function(t,e,n){"use strict";var i=n(58),o=n(61),r=n(73),a=n(6),s=n(20),u=n(15),l=n(12);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}function h(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=(0,s.cachedDetect)(),_=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),g(m(n=y.call(this,t)),"onFocus",(function(t){n.setState({isKeyboardFocused:!(0,u.isMouseDownRecently)()}),!(0,u.isMouseDownRecently)()&&n.props.onKeyboardFocus&&n.props.onKeyboardFocus(t)})),g(m(n),"onBlur",(function(t){n.setState({isKeyboardFocused:!1}),n.props.onBlur&&n.props.onBlur(t)})),g(m(n),"onMouseDown",(function(){n.setState({justClicked:!0})})),g(m(n),"onMouseUp",(function(){n.setState({justClicked:!1})})),g(m(n),"onMouseEnter",(function(){n.setState({isHovering:!0})})),g(m(n),"onMouseLeave",(function(){n.setState({isHovering:!1})})),n.interval=void 0,n.state={isKeyboardFocused:!1,isHovering:!1,justClicked:!1,opacity:1},n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t);var n,s,c,y=p(e);return n=e,(s=[{key:"render",value:function(){var t=this,e=this.props,n=e.buttonLabel,r={class:"w-vulcan-v2-button w-css-reset w-css-reset-tree w-css-reset-button-important",style:this.buttonStyle(),"aria-label":n,title:n,onClick:e.onClick,onKeyDown:function(t){e.onKeyDownButton(t)},onMouseDown:!b.touchScreen&&this.onMouseDown,onMouseUp:!b.touchScreen&&this.onMouseUp,onTouchStart:b.touchScreen&&this.onMouseDown,onTouchEnd:b.touchScreen&&this.onMouseUp,elemRef:function(n){t.buttonElem=n,e.buttonRef&&e.buttonRef(n)}};return void 0!==e.isDialogOpen&&(r["aria-expanded"]="".concat(e.isDialogOpen)),b.touchScreen||(r.onFocus=this.onFocus,r.onBlur=this.onBlur,r.onMouseEnter=this.onMouseEnter,r.onMouseLeave=this.onMouseLeave),(0,a.h)(i.default,f({tagName:"button"},r),(0,a.h)(o.default,{class:"w-vulcan-icon-wrapper",style:this.stubStyle(),stubRef:function(e){return t.stubRoot=e},handle:this.props.handle}))}},{key:"componentDidMount",value:function(){this.props.mount&&this.props.mount(this.stubRoot,this.anchorRoot,this.buttonElem),this.props.stubRef&&this.props.stubRef(this.stubRoot)}},{key:"createLoadingInterval",value:function(){var t=this;this.interval=setInterval((function(){var e=.2===t.state.opacity?.8:.2;t.setState({opacity:e})}),400)}},{key:"clearLoadingInterval",value:function(){clearInterval(this.interval),this.setState({opacity:1})}},{key:"componentWillReceiveProps",value:function(t){!1===this.props.isLoading&&!0===t.isLoading?this.createLoadingInterval():!0===this.props.isLoading&&!1===t.isLoading&&this.clearLoadingInterval()}},{key:"componentDidUpdate",value:function(){var t=this;(0,l.assign)(this.stubRoot.style,this.stubStyle()),this.props.stubRef&&this.props.stubRef(this.stubRoot),b.trident&&setTimeout((function(){t.base.style.display="inline-block",setTimeout((function(){t.base.style.display="block"}),1)}),1)}},{key:"rootStyle",value:function(){return{height:"100%",position:"relative",width:"100%"}}},{key:"buttonStyle",value:function(){var t=this.state,e=t.isHovering,n=t.isKeyboardFocused,i=new r.default("#000");return i.alpha(e?.2:0),{backgroundColor:i.toRgba(),boxShadow:n?"0 0 0 2px #fff inset":"none",cursor:"pointer",height:"100%",position:"relative",transition:b.trident?"none":"background-color 150ms",width:"100%"}}},{key:"stubStyle",value:function(){var t=this.state.justClicked;return{boxSizing:"border-box",height:"100%",position:"relative",transform:"scale(".concat(t?1.2:1.001,")"),transition:b.trident?"none":"transform 200ms"}}},{key:"getOpacity",value:function(){return this.props.controlsAreVisible?null==this.state.opacity?1:this.state.opacity:0}}])&&h(n.prototype,s),c&&h(n,c),e}(a.Component);e.default=_},function(t,e,n){"use strict";var i=n(61),o=n(16),r=n(6),a=n(14),s=n.n(a),u=n(20),l=n(51),c=n(10);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=(0,u.cachedDetect)(),_=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),g(m(n=f.call(this,t)),"dialogRefFn",(function(t){n.dialogElem=t,n.props.dialogRef&&n.props.dialogRef(t)})),g(m(n),"handleTransitionsAfterRender",(function(){var t=n.props,e=n.state;t.isOpen?(e.isDisplayNone||e.isOpaque&&null==e.widthInButtons)&&n.setState({isDisplayNone:!1},(function(){n.measureUserElem(),n.setState({isOpaque:!0})})):!e.isDisplayNone&&e.isOpaque&&n.setState({isOpaque:!1},(function(){clearTimeout(n.displayNoneTimeout),n.displayNoneTimeout=setTimeout((function(){n.setState({isDisplayNone:!0})}),b.trident?0:200)}))})),g(m(n),"measureUserElem",(function(){n.stubElem.style.width="";var t=(0,o.elemWidth)(n.stubElem);n.stubElem.style.width="100%";var e=Math.ceil(t/(40*n.props.scale));e!==n.state.widthInButtons&&n.setState({widthInButtons:e})})),g(m(n),"onTouchStart",(function(t){t._touchStartFromControlDialog=!0})),n.uuid=(0,c.seqId)(),n.state={isDisplayNone:!0,isOpaque:!1,widthInButtons:null},n}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t);var n,a,u,f=p(e);return n=e,(a=[{key:"componentWillReceiveProps",value:function(t){this.props.resizeRequestedAt!==t.resizeRequestedAt&&this.setState({widthInButtons:null})}},{key:"componentWillUpdate",value:function(t,e){!0===e.isDisplayNone&&!1===this.state.isDisplayNone&&(this.cancelMeasurementLoop(),t.onBeforeDisplayNone&&t.onBeforeDisplayNone()),!1===e.isDisplayNone&&!0===this.state.isDisplayNone&&this.setupMeasurementLoop()}},{key:"render",value:function(){var t,e=this;return(0,r.h)("div",{class:"w-anchor w-css-reset",style:this.anchorStyle(),onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onTouchStart:this.onTouchStart},(0,r.h)("div",{class:"w-dialog w-css-reset",style:this.dialogStyle(),ref:this.dialogRefFn},(0,r.h)("div",{class:"w-css-reset",style:this.dialogContentWrapperStyle()},(0,r.h)(i.default,{style:this.stubStyle(),stubRef:function(t){return e.stubElem=t},handle:this.props.handle,class:"w-css-reset"}),this.props.shouldRenderDummy?(0,r.h)("div",(g(t={class:"w-dummy-button",style:this.dummyStyle(),onFocus:this.props.onFocusDummy},"class","w-css-reset"),g(t,"tabindex","0"),t)):null)))}},{key:"componentDidMount",value:function(){var t=this.props.mount(this.stubElem);this.mountPromise=t&&t.then&&t.catch?t:s().resolve(),this.mountPromise.then(this.handleTransitionsAfterRender)}},{key:"componentDidUpdate",value:function(){this.mountPromise&&this.mountPromise.then(this.handleTransitionsAfterRender)}},{key:"componentWillUnmount",value:function(){this.cancelMeasurementLoop()}},{key:"anchorStyle",value:function(){return{height:0,left:0,position:"absolute",top:0,width:"100%"}}},{key:"dialogContentWrapperStyle",value:function(){var t=this.state.isOpaque,e=t?48:0;return{opacity:t?1:0,transition:b.trident?"none":"opacity ".concat(100,"ms ease ").concat(e,"ms")}}},{key:"dialogStyle",value:function(){var t=this.props,e=t.canvasHeight,n=t.canvasWidth,i=t.scale,o=this.state,r=o.isDisplayNone,a=o.isOpaque,s=o.widthInButtons,u=0,l=null;if(null!=s){l=40*s*i;var c=this.props.left+l-n;0<c&&(u=-1*c)}var f=a?0:40;return{background:"rgba(0,0,0,0.7)",bottom:0,color:"#fff",display:r?"none":"block",left:u,lineHeight:"34px",maxHeight:"".concat(e,"px"),opacity:a?1:0,overflowX:"hidden",overflowY:"auto",position:"absolute",transition:b.trident?"none":"opacity ".concat(120,"ms ease ").concat(f,"ms, transform ").concat(120,"ms ease ").concat(f,"ms"),transform:"scaleY(".concat(a?1:.6,")"),transformOrigin:"center bottom",width:null==l?null:"".concat(l,"px")}}},{key:"stubStyle",value:function(){return{boxSizing:"border-box",display:"inline-block",height:"100%",verticalAlign:"bottom",width:"100%"}}},{key:"dummyStyle",value:function(){return{clip:"rect(0,0,0,0)",height:"1px",position:"absolute",top:0,width:"1px"}}},{key:"setupMeasurementLoop",value:function(){l.globalEventLoop.add(this.uuid,500,this.measureUserElem)}},{key:"cancelMeasurementLoop",value:function(){l.globalEventLoop.remove(this.uuid)}}])&&h(n.prototype,a),u&&h(n,u),e}(r.Component);e.default=_},function(t,e){"use strict";function n(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}var i=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._publicApi=e,this._clockStart=(new Date).getTime()}return e=t,(i=[{key:"eventKey",value:function(){return""}},{key:"timeDelta",value:function(){return(new Date).getTime()-this._clockStart}},{key:"visitorKey",value:function(){return this._publicApi.visitorKey()}}])&&n(e.prototype,i),o&&n(e,o),t;var e,i,o}();e.default=i},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,{PlaySuspendedOffScreenBehavior:function(){return c}});var c=function(t){function e(){return o(this,e),l.apply(this,arguments)}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,t);var n,i,u,l=s(e);return n=e,(i=[{key:"init",value:function(){var t=this,e=this.impl,n=e.publicApi;this.unbinds.push(n.on("enterviewport",(function(){e.inFullscreen()||t._isSuspended&&(t._isSuspended=!1,n._playSuspendedOffScreenEnabled()&&"paused"===e.state()&&e.play())})),n.on("leaveviewport",(function(){e.inFullscreen()||!t._isSuspended&&n._playSuspendedOffScreenEnabled()&&"playing"===e.state()&&(e.pause(),t._isSuspended=!0)})),e.on("receivepause",(function(){t._isSuspended&&(t._isSuspended=!1)})))}}])&&r(n.prototype,i),u&&r(n,u),e}(n(580).PlayerBehavior);c.handle="playSuspendedOffScreen"}],__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};!function(){"use strict";__webpack_require__(80),__webpack_require__(544)}()})();